list of figures and tables when there are no figures or tables?

I have a rather large project, from which I select portions based on needs. This selection is done using a complex system of \include and \input commands. I would like to generate a list of figures and a list of tables for the output, but in the case there are no figures the list of figures should not appear. The same should happen with tables.  Here is a MWE:   \documentclass[10pt,twocolumn]{article} \usepackage{lipsum} \usepackage[margin=0.75in]{geometry} \usepackage{float} \floatstyle{boxed}   \restylefloat{figure} \restylefloat{table}  \def\ignoreTable#1\end{table}{} \def\ignoreFigure#1\end{figure}{} \begin{document}  \tableofcontents \addcontentsline{toc}{section}{List of Figures} \listoffigures \addcontentsline{toc}{section}{List of Table} \listoftables  \section{First section} \lipsum[\inputlineno] \ignoreFigure \begin{figure}[H]\centering \LaTeX\LaTeX \caption{my figure} \end{figure} \lipsum[\inputlineno] \begin{figure}[H]\centering \LaTeX\TeX \caption{another figure} \end{figure} \section{Second section} \lipsum[\inputlineno] \ignoreTable \begin{table}[H]\centering \TeX\LaTeX \caption{my table} \end{table} \lipsum[\inputlineno] \ignoreTable \begin{table}[H]\centering \TeX\TeX \caption{another table} \end{table} \lipsum[\inputlineno] \end{document}     Where if I write   \def\ignoreTable{\relax} \def\ignoreFigure{\relax}   just after \begin{document} the output is:      Ideally, there would be an "elegant" macro or package, that would eliminate the list of tables, including its entry in the TOC, if there are not tables.


How to get output one page at a time in Fish shell?

I am using a Fish shell and when I search through file with grep, I usually get a long output, which is difficult to further search through. If I use something like this grep -r 'email' . | less, I get an output limited to one page all right but I also loose all colors (the output is white). How do I use less while keeping colors, or is there other way to get my output one page at a time?


PHP change existing array keys with another array value

I have this 2 array:  $array = [ 'one', 'two', 'three' ];  $anohter_array = [ 4, 6, 8 ];   Now, how can I change the variable $array keys to 4, 6, 8 instead of 0, 1, 2?


Can I carry a shoe protector spray in my checked luggage to USA. It says extremely flammable aerosol. Pressurised container. may burst if heated. 200ml


How to serve unknown file types from IIS 7

Is there a way to serve unknown file types in IIS 7?  I only want to do this for a single directory where execution is turned off and everything will be served as a static file.  As it is now, I have to add each file extension that I want to serve as a MIME type. I want to serve everything. How can this be done?


What is the best way to backup Skyrim saved games?

Ok, so I am afraid my hard drive or whole computer will explode. I am getting a new one, so is it possible to just copy my Skyrim saved games on a USB drive, and then just copy them on my new computer's hard drive? Will it work that way? Or is there a reliable way to save them through the cloud in Steam or something?   TL;DR: What is the best way to backup Skyrim save games and put them on my new computer's hard drive if the old one breaks?


virus attack on i3,windows 10,which attacks through the browser

I expirienced  virus attack on my laptop. It attacks through the browser. Browser console opens automatically and some strange script starts to execute. I stopped the internet right there. No harm is made yet but I am afraid to go online. Please can you suggest what should I do now. Note that I am using kaspersky internet security. The virus is able to breach that which is scary.


In a 2-columned document, how do you get a table to stretch across the entire width?

I'm working on a document that runs two columns of text down the page, like many scientific conference proceedings.  However, I'd like for a table to run across the entire width of the page, as it is far too wide to fit into one column.  How do I do this?


Why didn't the Kaminoans use the clones DNA?

In one episode of the Clone Wars (I forget which) one of the Kaminoans say that due to Jango Fett's death, they had to use the only piece of DNA left and are using it to the point where it is starting to cause problems with the clones, but why don't they just take an older clone and use his DNA?


Difference between "dialect" and "accent"

Please I want to know the difference between the two words( dialect and accent)


Java: how to keep a method from altering a variable outside of itself?

Edit to explain difference between this question and "exact duplicate": The proposed question has many answers, and they are written only to answer a conceptual question. My question is conceptual in nature, but I also asked for specific answer on how to do something functionally. Also, as I do not know what pass-by-reference and pass-by-value mean, how could I understand an answer to a question that I also do not understand? The answers available on the other question are not accessible to a layman who does not know the correct vocabulary. Unfortunately, I know "how" to do a lot of things with Java because I have taught myself, but often do not know the "what" or "why". Answering my question in terms of vocabulary words that I do not understand does not help, and is akin to me reading a textbook (which I have tried), and renders the point of asking the question mute. If you cannot answer it in a manner which the uninitiated can understand, and are unwilling to do so, you are so much hot air and certainly no better than the textbook. Thank you for your consideration.  I was getting a bunch of NaNs in my matrices when doing some operations and decided to run through the NetBeans Debugger. I found the issue, and fixed it but would like to know why it was happening. Here is my original code for a method:  public static double[] row_scalar_mult(double scale, double[] row){     for(int i=0; i<row.length;i++){         row[i] = row[i]*scale;     }                  return row; }   What I found was that the row of the 2D array that I passed to this method got acted on directly, which was not the intent. I thought that the method was supposed to just make a copy of it or some such thing and use it without changing what it was given. I fixed it below:  public static double[] row_scalar_mult(double scale, double[] row){     double[] result = new double[row.length];      for(int i=0; i<row.length;i++){         result[i] = row[i]*scale;     }             return result; }   But I am curious about this happening conceptually, and if there is some simple way to declare a variable or a method that keeps the input of the method intact outside the method. Also, I'm sure there is terminology for all of what I'm saying, but I didn't know what words to use in the search. I hope this isn't a repeat.


I can open gedit using the terminal but I want to be able to open the folder that has gedit, how?


Where is the login with Stack Exchange option gone?

I have an account on Stack Exchange but when I try to login to  I do not see the option Login with Stack Exchange.       Why is this option now not available?


When should we split the data into train, valid and test datasets?

In EDA we actually get insights about the data. That is completely fine but what i cannot understand is on which dataset should we do the EDA? Should we do the EDA on train dataset or train + valid dataset or on the complete dataset. I have seen many other questions similar to this and they have controversial answers.    More precisely can anyone given an better explanation why i should/shouldn't use the validation dataset in the EDA than the above questions?.


If Tasha Lem is an incarnation of River Song, why would she ask if Eleventh has a "new body"?

River Song only really knew two Doctors, as far as we know, and was clearly most familiar with Eleventh. Why would Tasha Lem think he has a new body if she's an incarnation of River?  Why would Eleventh rally her against the "psychopath" she's been fighting "all her life" if she isn't River?


I tried to rig but always fail. Failure message is Bone Heat weighting:failed to find solution for one or more bones.


Tumbleweed badge - do close votes alter the outcome?

The above question has been open for well over a week now, it's got no comments, no answers and only 23 views or so (judging by Jeff's answer  that shouldn't be the factor anyway!)  It does have one close vote though, that's the only thing I can think of?  All the other questions about this seem to have been resolved when the user already had the tumbleweed badge - I however don't!  Any ideas?


Benefits and Drawbacks of Swapping Associations of Positivity and Negativity of the Proton and Electron

For historical reasons, I understand that a proton's charge was assigned the label of "positive", the electron's charge was assigned the label of negative, and, crucially, equations of current in E & M are written with the notion that current is the flow of positive charge despite the rarity of actual flows of protons in real systems (which I understand are mostly biological systems).   If the possibility existed to instantaneously and at no cost, retcon these associations such that protons have a negative charge, electrons have a positive charge, and current remains the flow of positive charge, would there be any beneficial or detrimental outcomes?  For instance, would there be:   new interpretations of physical laws that would provide different or better insights into any relevant subfield of Physics significant simplifications to notation in any field of Physics or Engineering significant increases in understanding in the fields of electricity, electronics, electrical engineering, radiation/radiative transport, etc. a noticeably easier learning curve for any subfield of physics dealing with the concept of charge   Additionally, is there a permutation of positive charge, negative charge, and flow of current definition that would improve upon the one I suggested?


I'm practising how to model my Kitchen radio. On the top of the model it has many holes, I've used subdivision modifier on my mesh. My first attempt was to deactivate the submodifier and make an array of holes, but once I turned on the subdivision modifier again, it was extremely unclean mesh.   So what would be the best way to achieve the holes on top of the mesh?  Thank you.


Why does the presence of multiple items in a microwave require you to cook them longer than you would with the singular item?

I am familiar with the physical explanation as to why microwaves heat up food: the rapidly fluctuating electric field exerts a torque on the dipole of the water molecules resulting in vibration and thus and increase in temperature.  As long as all the food in the microwave is exposed to the microwaves, why should it matter how many items are cooking at once? Is there only a finite region on which the microwaves are concentrated?  Lots of food labels contain different cook times based on the number of items you heat at once.


What does it mean "you cast a spell" in terms of a Wild Magic Surge?

Under Wild Magic Surge it states:     Immediately after you cast a sorcerer spell of 1st level   or higher, the DM can have you roll a d20. If you roll a   1, roll on the Wild Magic Surge table to create a random   magical effect.   Some of the effects makes you cast a spell:     07-08 You cast Fireball as a 3rd level spell centered on yourself.   I've always read this as a spontaneous magic effect (hence "surge"), until today I've noticed is explicitly says "you cast Fireball". Does it mean the normal spellcasting process — having its casting time, including V, S, M components, can be interrupted, etc.?  Or is Wild Magic Surge just a side-effect of your another spell, so the fireball (in this case) just appears on you, and is not actually being cast by you?  Related:


What tense is it? He is referring to a future event with past particle form of verb

If every black adult male in the U.S. bought & registered a   semi-automatic rifle tomorrow, Congress would Pass gun control laws by   Friday.         Should not the "bought & registered" should be in their base form (buy & register)? If not then what type of sentence it is? Passive Sentence? If yes then what would be the active form of this sentence?


was making a basic mesh and whilst merging some vertices after mirroring my mesh something happened and I'm unable to see the mesh anymore. It's turned into a long flat plane. I can move the single vertex that I can see in the screenshot in any axis () but if I move it out of that random dark plane I'm unable to see the vertex anymore. Even the default lamp and camera are non-visible when not looked at through the dark plane. I stored a backup mesh in another layer before I mirrored my mesh but the same thing appears on all layers too. Any info would be appreciated, thanks.


I have the following code with following conditions:   A value less than 60 seconds is fast A value more than 60 seconds is slow Must fill out both input fields to show "fast" or "slow"   My only problem is that the code interprets 0 as null. So, If I put 1 minutes 0 seconds, then nothing shows.   I want it to show "fast" when I enter 1 minute 0 seconds.    Thanks in advance.                                <input id="D"      type="number"          class="form-control formBlock"          placeholder="Minutes"          required=""          min="1"          max="59"         onkeyup="if(parseInt(this.value) > 59){ this.value = 59; return false; }"         >     <stat id="Run"></stat>
     <input id="E"       type="number"       class="form-control formBlock"       placeholder="Seconds"          required=""          min="1"          max="59"         onkeyup="if(parseInt(this.value) > 59){ this.value = 59; return false; }"         >


Prevent the file path of an image appearing above the image when using \begin{figure} \includegraphics{filepath}

I have inserted an image in my LaTeX document and the image always displays with the file path of the image directly above it.  How can I prevent this file path from displaying?  I am inserting the image like this:  \begin{figure} \centering     \includegraphics{C:/Users/Name/Pictures/image1.png} \caption{a caption} \label{fig:reference} \end{figure}   Here is a working example of document that produces this behaviour:  \documentclass{article}  \usepackage{graphicx} \begin{document} \begin{figure} \includegraphics{C:/Users/Name/Pictures/image 1.png}  \end{figure}  \end{document}   The image was inserted using the TeXnicCenter Insert>Picture function.  When I generate the pdf document, directly above any image (I have inserted multiple images using this technique) the file path displays above the image, in the case above it would show: "file\path\of\image", how can I prevent this from displaying?


I'm trying to keep track of something with 5 categories and 10 subcategories each. Each item is described with a 0 or a 1. I decided to make a list of lists in the following format: [[0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0]...]  When trying to assign a value to only one of these sub-lists, the code assign it to all the sub-lists. This is a snippet of the code: categories=['a','b','c','d','e','f']  status=[] zeros=[0,0,0,0,0,0,0,0,0,0] for i in categories:     status.append(zeros)  print(status)  category=0 subcategory=1  status[category][subcategory] = 2  print(status)  result: [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]] [[0, 2, 0, 0, 0, 0, 0, 0, 0, 0], [0, 2, 0, 0, 0, 0, 0, 0, 0, 0], [0, 2, 0, 0, 0, 0, 0, 0, 0, 0], [0, 2, 0, 0, 0, 0, 0, 0, 0, 0], [0, 2, 0, 0, 0, 0, 0, 0, 0, 0], [0, 2, 0, 0, 0, 0, 0, 0, 0, 0]]  I want the program to only edit one list at a time but instead if edits all the subcategories. What am I doing wrong here?


Why can't I flag for moderator attention after flagging as "offensive"?

There was a  on Lifehacks that just went about posting a litany of low-quality non-answers, the kind of stuff that should deserve the "offensive" flag.* I flagged a couple of them as "offensive," but then realized that my flags might be better spent flagging one of the posts and describing the users entire behavior, hopefully catching the attention of SE staff (no mods on LH, yet). I was a little confused when I was unable to flag an answer I had previously flagged as "offensive" because "You have already flagged this post for moderator attention."   So I guess this is kinda a ; please let us raise () a custom flag even after an "offensive" flag has been raised, so that an abusive user like this one can be pointed out to moderators through flags, as has been recommended in several MSE posts.  * E.g., as an answer to , that user   do not touch anything. it's so simple [censored]


I have a machine with a warm boot issue, and Windows 10 installed on it. That issue being when updates are applied and the OS attempts to reboot itself it fails. If I manually boot it is fine.....fix for this at the machine/source of the problem, is apparently unsupported.  Due to this I need to prevent Windows 10 from OS updates (not Windows Updates because I have disabled them both in UI and Registry), however when there is a Windows OS Update, this doesn't seem to prevent that from happening. Through the UI mechanisms you can schedule for later, wait an hour, etc but there no option where the user can simply elect to not install the update.  Is there a way to prevent this from happening, sort of just not using pc?


Difference between "void main" and "int main

I study C both from textbooks and websites. Somewhere the sample codes begin the program execution by "void main" and somewhere they begin the function with "int main". What's the difference, really? They both give the same result. Is there anything that makes them slightly  different? If so, please mention what does "void" does, and what "int" does.


How to apply makeup on face with different principled bsdf shader?

I have made a human model with a color map, and I want to paint my makeup with different IOR and other values on different map so it won't mess with the skin detail. Is there any way to make a mask so that I can paint a makeup color map that also become a mask of a shader?


Hyphen or no hyphen when modifying an adjective with a quantity?

I have a sentence which has an object that is described with an adjective:     We need to inform our interested patrons of this change.   If I modify "interested" with "more" or "less", do I connect the words with a hyphen or not?  Example sentence:     We need to inform our less-interested patrons of this change.     Also, please let me know if I have not used the correct terms for sentence parts in this question.


Can I use a collection initializer for Dictionary entries?

I want to use a collection initializer for the next bit of code:  public Dictionary<int, string> GetNames() {     Dictionary<int, string> names = new Dictionary<int, string>();     names.Add(1, "Adam");     names.Add(2, "Bart");     names.Add(3, "Charlie");     return names; }   So typically it should be something like:  return new Dictionary<int, string> {     1, "Adam",    2, "Bart"    ...   But what is the correct syntax for this?


Apparent compilation error with template arguments

Playing around trying to make a fraction class, found an apparent glitch.  This code shows the problem,   The class is:  template <int A, int B> struct two_ints {     static constexpr int first = A < 100 ? A : -1;     static constexpr int second = B < 100 ? B : -1; };   template <typename T> struct myPair {     T one;     T two;     template <int A, int B>     constexpr myPair(two_ints<A, B>)         : one(two_ints<A,B>::first), two(two_ints<A,B>::second){    }      template <int A, int B>     struct make_pair     {         static constexpr myPair<T> value = myPair<T>(two_ints<A,B>());     }; };   When I create an object of the class with "int" as the template perameter it compiles with no problems e.g.  int main() {     typedef myPair<long> int_pair;     int_pair pairTwo(two_ints<67,45>());     int_pair pairThree(int_pair::make_pair<67,45>::value);      return 0; }   But then i uses "long long" as the template parameter and it fails to compile.  int main() {     typedef myPair<long long int> int_pair;     int_pair pairTwo(two_ints<67,45>());     int_pair pairThree(int_pair::make_pair<67,45>::value); //error here      return 0; }   The error is:     undefined reference to myPair::make_pair<67, 45>::value' Using compiler: GNU GCC Compiler  Edit: To complicate matters further, if i make value and constexpr function istead of variable then the code compiles...  static constexpr myPair<T> value() { return myPair<T>(two_ints<A,B>()); }   and then in int main()   int_pair pairThree( int_pair::make_pair<67,45>::value() );   This gives no errors at all.


On PHP 5.3.13/MySQL 5.5.21 the following code doesn't work:  if($check_custom_fields_form!=1){     $sql = "CREATE TABLE IF NOT EXISTS ". $table_custom_fields_form ." (                 `form_name` longtext NOT NULL,                 `field_id` bigint(20) NOT NULL,                 FOREIGN KEY (`field_id`) REFERENCES $table_custom_fields (`ID`) ON DELETE CASCADE ON UPDATE CASCADE     ) CHARACTER SET utf8 COLLATE utf8_general_ci";     dbDelta($sql); } if($check_subscribe_cat!=1){     $sql = "CREATE TABLE IF NOT EXISTS ". $table_subscribe_cat ." (                 `subscribe_id` bigint(20) NOT NULL,                 `cat_id` bigint(20) NOT NULL,                 FOREIGN KEY (`subscribe_id`) REFERENCES ".$wpdb->prefix."tgt_subscription (`ID`) ON DELETE CASCADE ON UPDATE CASCADE,                 FOREIGN KEY (`cat_id`) REFERENCES ".$wpdb->prefix."terms (`term_id`) ON DELETE CASCADE ON UPDATE CASCADE     ) CHARACTER SET utf8 COLLATE utf8_general_ci";     dbDelta($sql);  }   The  suggested a downgrade to MySQL 5.1.37 (no, thanks) or the following update:  if($check_custom_fields_form!=1){         $sql = "CREATE TABLE IF NOT EXISTS ". $table_custom_fields_form ." (                     `form_name` longtext NOT NULL,                     `field_id` bigint(20) NOT NULL,                     KEY(field_id)         ) CHARACTER SET utf8 COLLATE utf8_general_ci";         dbDelta($sql);     } if($check_subscribe_cat!=1){       $sql = "CREATE TABLE IF NOT EXISTS ". $table_subscribe_cat ." (                   `subscribe_id` bigint(20) NOT NULL,                   `cat_id` bigint(20) NOT NULL,                   KEY(subscribe_id),                   KEY(cat_id)       ) CHARACTER SET utf8 COLLATE utf8_general_ci";       dbDelta($sql);    }   Which seems like a rather dirty way to work around the problem (no cascading deletes/updates). Therefore:   Do I really have to live with that ? Is it true that dbDelta only works with foreign key in a 3 year old MySQL version?


How to read hexadecimal data from text file and write in into memory in verilog?

I have a text file named "Hex_data.txt". I want to load content of Hex_data.txt into a variable name RAM in verilog. When I try this, I get an error that the text file can't be found. Where is this file loaded from?  The content of "hex_data.txt" :            21            a4          2a          26          7a          ff           6f   I want to create a variable name "RAM" defined like:   reg [6:0] RAM; in which the above content save like:  RAM[0]=21     RAM[1]=a4           RAM[2]=2a             RAM[3]=26            RAM[4]=7a             RAM[5]=ff             RAM[6]=6f   I wrote a code:  module file_read;      reg [7:0] RAM [0:6];          initial $readmemh("Hex_data.txt", RAM);   integer i;               initial begin                    $display("data:");                for (i=0; i < 7; i=i+1)                $display("%d:%h",i,RAM[i]);              end                 endmodule        But the above code not working. How can i get desired output?


Can I get the bonus AC from Dual Wielder when I have a shield and Tavern Brawler?

I've been wanting to play a fighter recently but for what I want to do I kind of need to understand what I can and cannot do.  So I want play a fighter that also uses a shield as a weapon along with a normal weapon. To do this I'll have to take Tavern Brawler but in order to duel wield I'll have to take the Dual Wielder Feat.     Tavern Brawler           You are Proficient with Improvised Weapons and unarmed strikes    Your unarmed strike uses a d4 for damage              Dual Wielder         You gain a +1 bonus to AC while you are wielding a separate melee weapon in each hand.     You can use Two-Weapon fighting even when the one handed melee weapons you are using aren't light        What I want to know is if Tavern Brawler would allow me to effectively use my Shield as a weapon and still get the AC bonus it provides along with the Dual Wielder feat.


Why it's said when we estimate a parameter, from 100 confidence intervals, 95 will have the parameter. And why it is incorrect to say that is a 95% probability that the true parameter is in the confidence interval? Thank you in advance.


In which ways does Hilbert's Nullstellensatz fail if the field is not algebraically closed?

Hilbert's Nullstellensatz asserts, that if $k$ is  an algebraically closed fields, $I \subset k[x_1,\dots,x_n]$ is an ideal, then $I(V(I)) = \sqrt{I}$. So every polynomial that vanishes on the variety defined by $I$ is actually in the radical of $I$.  Obviously we always have the inclusion $\sqrt{I} \subset I(V(I))$.  Of course this is not true, if $k$ is not algebraically closed, the standard example is $f = x^2 +1  \in \mathbb{R}$. Then $V(f) = \emptyset$, i.e. $I(V(f)) = k[x]$.  My question is: Are there any other examples where the Nullstellensatz does not hold, but $I$ actually has zeroes? Or is this the only class of counterexamples?


Can you write "it's been *awhile* since...", with "awhile" written as one word?

I noticed that some people write "awhile" together in sentences like this:     It's been awhile since ...   While most people seem to write "a while" as two words in sentences like this.  Also, according to this article, "a while" is the right way, because in this sentence "a while" could be replaced with a noun, not adverb:   My question is, can you really write "it's been awhile since ..", or is it grammatically incorrect and you should write "a while" here instead?  UPDATE: This question is not a duplicate, as I'm asking about a specific sentence rather than awhile vs a while in general.


What is the serial upvote detection heuristic?

I found out about serial upvoting detection today (lost 81 rep; I can't imagine how serial upvoting would result in that value, but let's ignore that for now). I decided to go on about my business of the day.  I open tabs for the tags I know about. I open tabs for a bunch of recent questions that look reasonable (including those that have answers, even accepted answers). I go through and start voting, blessing those answers that look good. It only takes 30s or a minute to review some questions and answers to know "Yup, that person got it. Well done." Normally I'd drop a +1 on the answer(s) that are right and move on.  Now I'm spooked. What if (like me) there are knowledgeable users who have high activity rates in short periods of time in an area? Do I have to wait a few minutes between upvotes so that I don't erroneously get flagged as a serial upvoter? Do I have to ensure that I throw a -1 between each +1? Do I have to ensure that I +1 someone else before I +1 the same person twice in a row? Or does the heuristic properly ignore upvotes on answers that temporally proximal to the upvote time, and I'm safe?  I suspect that many will say "We can't give away the secret of the heuristic, or the sock puppets will use that information to work around the system!" But I don't want to start 'working around the system' out of fear due to lack of knowledge.  How can you assure me that the behavior I'm describing as a morning routine will not 'waste' my votes and 'punish' helpful users (by depriving them of deserved upvotes)?


Why do they call it pass by value in Java?

Ok, so I am a relatively new programmer. I have read over and over about passing variables. From what I have read here is what I've come to understand: In Java, when you pass a variable to a method (be it primitive or Object) you are ALWAYS passing by value. But what you are REALLY doing is passing a copy of the reference to an object or variable in memory.   So why do they call it pass by value? It seems to me you are passing by reference. Also, in C when you pass a pointer to a function, aren't you passing the address of a variable in memory? Yet it is called pass by value. What am I overlooking? Can someone please explain and clarify why I this? I know how to pass variables and such and I have read several SO posts on this but I am not fully satisfied yet. Consider an example:    static void setNameStatic(Dog d, String name) {          d.name = name;    }     public static void main (String args[]) {             Dog d = new Dog("dog1");             System.out.println( d.getName() );             setNameStatic( d, "dog2" );             System.out.println( d.getName() );    }   Won't this output: dog1 and dog2. So aren't you going to where the reference is referring to and changing data around? What exactly does the value have to do with here? Any helpful comments are appreciated. And yes, I know it is pass by value, but why isn't it called "pass by sending copy of reference" lol?  Update: Thanks to everyone that gave a helpful answer. I know this was marked duplicate, and sorry about that. I am satisfied with the answers now.


I recently applied the latest SQL Server CUs (Cumulative updates) for their current SPs (Service Packs) on our SQL Servers.  I'm getting the sense that I actually really need to update all of them to the latest SP + CU.  For example, we have a 2014 SP2 server, which now has the latest CU for SP2 (SP2 CU18).  Should I update it to the latest SP + CU (SP3 CU4)? Thanks, -Peter


Contradictory result for scalar-field propagator from Feynman rules and LSZ formula

I am trying to learn how to calculate scattering amplitudes in a Klein-Gordon theory. I am getting stuck with the simplest of the examples: $\phi\to\phi$ in a free scalar-field theory.  If I calculate the amplitude for the process $\phi\to\phi$, I get two different results depending on whether I use Feynman rules or the LSZ formula.  Let's say that the incoming particle has momentum $p_\mathrm{in}$ and that the outgoing one has momentum $p_\mathrm{out}$. Then a simple Feynman diagram gives amplitude = propagator, that is,  $$ p_\mathrm{in} ---\stackrel{p}{\blacktriangleright} ---p_\mathrm{out} \qquad=\qquad \frac{1}{p^2-m^2} \tag{1} $$ where $p$ is the momentum of a virtual particle connecting the in and out states. From momentum conservation, $p_\mathrm{in}=p=p_\mathrm{out}$.  From $(1)$ we get that the amplitude for $\phi\to\phi$ is $$ \mathcal A=\frac{1}{p^2_\mathrm{in}-m^2}=\frac{1}{p^2_\mathrm{out}-m^2} $$  If, on the other hand, we calculate the amplitude for the process with the LSZ reduction formula, we get  $$ \mathcal A(2\pi)^4\delta(p_\mathrm{in}-p_\mathrm{out})=i\int\mathrm dx\,\mathrm dy\ e^{ip_\mathrm{in}x} e^{-ip_\mathrm{out}y}\, \square_x \square_y \langle\phi(x)\phi(y)\rangle $$ where $\square_x\equiv \partial_x^2+m^2$, and $\langle \phi(x)\phi(y)\rangle$ is the propagator. As the KG derivative, when acting on the propagator, results in a delta, i.e., $i\square \langle\phi(x)\phi(y)\rangle=\delta(x-y)$, this integral evaluates to $$ \begin{align} \mathcal A (2\pi)^4\delta(p_\mathrm{in}-p_\mathrm{out})&=\int\mathrm dx\,\mathrm dy\ e^{ip_\mathrm{in}x} e^{-ip_\mathrm{out}y}\, \square_x \delta(x-y)\\ &=(2\pi)^4\delta(p_\mathrm{in}-p_\mathrm{out})(p_\mathrm{in}^2-m^2) \end{align} \tag{2} $$  From $(2)$ we get $$ \mathcal A=p_\mathrm{in}^2-m^2=p_\mathrm{out}^2-m^2 $$  Comparing this to the amplitude from the diagram, we find that the results disagree. Can anybody tell me where is my mistake? I believe that the right result is the first one, so maybe my formula for LSZ is wrong, or cannot be used in a one-particle process?


GetContentAsPDF from Batch Apex and Trigger fails with new Update

[Salesforce Update] The critical update named “PageReference   getContent() and getContentAsPDF() Methods Treated as Callouts” was   scheduled for auto-activation in Winter ’16. To allow for planning and   implementing the solution, the auto-activation date has been postponed   until Spring ’16.      Read more @      We use the GetContentAsPDF to generate PDF documents and attach them to the relevant record. This function is called in the following 2 scenarios:   When a condition on a record is satisfied as it is updated. In this scenario, we call a future method and in the future method, a Apex callout is made to a REST service which generates the document and attaches to the record. A batch class runs once every day to find out the records which satisfy our criterias and if they do, we make a Apex Callout to the same Rest Service which generates the document and attaches to the record.   This all worked fine. But after the Spring 15 release, getContentAsPDF will be counted as a callout. We enabled the critical update in Sandbox (this update will be auto applied to production on 11th September). Once updated, the logic no longer works. We get an error called 'Callout Loop not allowed'. Makes sense because we are now doing another callout from the callout function.  Does anyone have an idea on how to solve this? We are trying different approaches here but none have worked.   Update [26Aug'15]: I got hold of a prerelease org with Winter'16 features enabled and wrote a simple code to    Fire a trigger on Account Update Call a future method Do getContent in future method.  Attach the document as attachment under Account   It worked fine and the attachment also had proper details. I tried the same code in our sandbox which had the critical update applied and the attachment generated was blank.   So basically, till Winter'16 changes are applied (sometime in October), there is no way to use getContent() or getContentAsPDF() batch apex or future class. Are there any alternatives? I have tried Post methods, future to post to future. None have worked.


Null pointer Exception while using SimpleCursorAdapter

I would like to get some data from my database... I'm using the SimpleCursorAdapter to transmit the data to a list view but I get a NullPointer Exception here is the LogCat:  10-01 17:26:42.048: E/Shop(26288): java.lang.NullPointerException 10-01 17:26:42.048: E/Shop(26288):  at       .diamond.clickers.Shop.populateListViewFromDB(Shop.java:104) 10-01 17:26:42.048: E/Shop(26288):  at com.diamond.clickers.Shop.onCreateView(Shop.java:51) 10-01 17:26:42.048: E/Shop(26288):  at android.app.Fragment.performCreateView(Fragment.java:1777) 10-01 17:26:42.048: E/Shop(26288):  at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:904) 10-01 17:26:42.048: E/Shop(26288):  at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1106) 10-01 17:26:42.048: E/Shop(26288):  at android.app.BackStackRecord.run(BackStackRecord.java:690) 10-01 17:26:42.048: E/Shop(26288):  at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1571) 10-01 17:26:42.048: E/Shop(26288):  at android.app.FragmentManagerImpl$1.run(FragmentManager.java:447) 10-01 17:26:42.048: E/Shop(26288):  at android.os.Handler.handleCallback(Handler.java:733) 10-01 17:26:42.048: E/Shop(26288):  at android.os.Handler.dispatchMessage(Handler.java:95) 10-01 17:26:42.048: E/Shop(26288):  at android.os.Looper.loop(Looper.java:157) 10-01 17:26:42.048: E/Shop(26288):  at android.app.ActivityThread.main(ActivityThread.java:5867) 10-01 17:26:42.048: E/Shop(26288):  at java.lang.reflect.Method.invokeNative(Native Method) 10-01 17:26:42.048: E/Shop(26288):  at java.lang.reflect.Method.invoke(Method.java:515) 10-01 17:26:42.048: E/Shop(26288):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858) 10-01 17:26:42.048: E/Shop(26288):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:674) 10-01 17:26:42.048: E/Shop(26288):  at dalvik.system.NativeStart.main(Native Method)   And here is my code:  void populateListViewFromDB() {      Cursor cursor = myDb.getAllRows();      // Allow activity to manage lifetime of the cursor.     // DEPRECATED! Runs on the UI thread, OK for small/short queries.     getActivity().startManagingCursor(cursor);     //if (cursor.moveToLast()) {         //  do {         // do what you need with the cursor here       // Setup mapping from cursor to view fields:     String[] fromFieldNames = new String[]              {DBAdapter.KEY_NAME,DBAdapter.KEY_PRICE,DBAdapter.KEY_LEVEL,DBAdapter.KEY_ART,DBAdapter.KEY_VALUETXT,DBAdapter.KEY_PIC };     int[] toViewIDs = new int[]             {R.id.tv_Shop_item1,     R.id.tv_Shop_Price_item1,R.id.tv_shop_Level_item1,R.id.tv_shop_use_item1,R.id.tv_shop_use_item2,R.id.IV_Shop_item1 };      // Create adapter to may columns of the DB onto elemesnt in the UI.     SimpleCursorAdapter myCursorAdapter =              new SimpleCursorAdapter(                     getActivity().getApplicationContext(),      // Context                     R.layout.item_shop, // Row layout template                     cursor,                 // cursor (set of DB records to map)                     fromFieldNames,         // DB Column names                     toViewIDs               // View IDs to put information in                     );      // Set the adapter for the list view     ListView myList = (ListView)getActivity().findViewById(R.id.listViewShop);     myList.setAdapter(myCursorAdapter);      //  } while (cursor.moveToPrevious());     //} }


Simple Divisor Summation Inequality (with Moebius function)

Show that $$\left| \sum_{k=1}^{n} \frac {\mu(k)}{k} \right| \le 1 $$ where $\mu$ is Moebius function and n is a positive integer.  The hard thing here is that the sum is not directly divisor sum; it's just a normal summation. What I know is that when $F(n)=\sum_{d|n}f(d)$, $$\sum_{k=1}^N F(k)=\sum_{k=1}^N f(k)\left[\frac{N}{k}\right]$$ But it was hardly useful since the given inequality doesn't contain the Guass function, so it became really complicated(and I'm not very confident in using the doulbe-summation). One thing I also know is that $$\frac{\phi(n)}{n}=\sum_{d|n}\frac{\mu(d)}{d}$$ I also tried to use this using Moebius Inversion Formula, but it also became quite complicated. For example, we can derive that $$\frac{\mu(k)}{k}=\sum_{d|k}\frac{\phi(d)}{d} \mu \left(\frac{k}{d}\right)$$ I couldn't make it more compact. So by substitution, we get $$\sum_{k=1}^{n} \frac {\mu(k)}{k}=\sum_{k=1}^{n}\sum_{d\mid k}\frac{\phi(d)}{d} \mu \left(\frac{k}{d}\right)$$ If it were not for the $k$ in the right term of Moebius function, we could use the first lemma I'd written down, but we can't. So I'm just stuck. Could anybody help me solving this problem? It would be really grateful if someone could also give me general methods to tackle divisor-sum problems since I'm having a difficult time in changing the order of doulbe-summations. Thanks!


Simplify sum of factorials with mathematical induction

I want to prove with mathematical induction that:  $$\sum_{i=1}^n i \cdot i! = (n+1)! - 1$$  So in the first step we define $n = 1$:  $$\sum_{i=1}^1 i \cdot i! = 1 \cdot 1! = 1 = 2! - 1$$  In the second step we define $n = n + 1$:  $$\sum_{i=1}^{n+1} i \cdot i! = \sum_{i=1}^n i \cdot i! + (n+1)(n+1)!$$ $$\implies (n+1)! - 1 + (n+1)(n+1)!$$  This can now be simplified to $(n+2)(n+1)! - 1$ but I do not see how...  We could do $(n+1)!(-1 + (n+1)) = (n+1)! \cdot n$ but still this will not be the same as above.  What did I miss?  Bodo


Is the cofinite topology on an uncountable set first countable?

Let $X$ be any uncountable set with the cofinite topology. Is this space first countable?  I don't think so because it seems that there must be an uncountable number of neighborhoods for each $ x \in X$. But I am not sure if this is true.


throwing a $k$-sided dice until you get every face the same number of times

You throw a fair $k$-sided dice repeatedly and keep track of all the results. You stop if you have seen every face exactly the same number of times. What is the expected number of times you have to throw the dice? Is that number even finite?  Start with the simplest example of a $2$-sided dice, ie a fair coin. There is a 50% chance that after 2 flips you will have one head and one tail so you stop. There is a 12.5% chance that after 2 flips you will be at 2:0 and continue but after 4 flips you will be at 2:2, so you stop. One can compute a few more terms but I don't see enough of a pattern to get a summable series.  It is not too hard to compute the probability that after $k\cdot m$ throws of a $k$-sided dice you get every face exactly $m$ times but these probabilities are not independent for different $m$ so I'm not sure whether that is helpful.  The relation to random walks looks useful. One can map the results of throwing a coin repeatedly to a random work on the integers. Seeing the same number of heads and tails is equivalent to coming back to the starting point (at zero). This is a well studied problem and it is known that you come back to zero with probability one in a finite time. The number I'm looking for would be the expected time when you get back to zero for the first time but I haven't found any results on that.  For $k$ bigger than $2$ (and even) the mapping to random walks is not bijective anymore. If you map the outcome of a $6$-sided dice throw to a random walk on the $3$-dimensional integer lattice with each face corresponding to a step in one of the 6 directions that a return to the origin is necessary but not sufficient for having seen each face the same number of times. However, it is known that for a random walk on the integer lattice in dimension of at least $3$, the chance to return to the origin in finite time is strictly smaller than $1$. So this should prove that for a dice with at least $6$ faces, the expected number of throws is not finite.  Is this a finite number for $k=2$ and $k$ between $3$ and $5$? Are there estimates for it?


Can't remove Windows 8 user account files to free up space

So when I was installing Windows 8 Pro (which came as an upgrade from a previous version of Windows) I created an account. Let's call it "DC". During the upgrade Windows used up quite a lot of space for that account: about 25 GB.  Now when Windows 8 is installed I went into the Control Panel / Users and removed the "DC" account. I also made sure to check the box to remove all of its files.  But when I go the "C:\Users\DC" folder on the hard drive, I see that the DC files are still there:    If I do its properties it shows that it still takes 25 GB of space, that I want to reclaim. (I have a 256 GB SSD, so as you see I can't waste that much space!)  I log in as a built-in administrator and try to delete those files (by deleting the "C:\Users\DC" folder in Windows Explorer.) After a quick investigation it turns out that the most of the space is used up by the "Windows.old" file. But no matter what I do, it always results in this window:    I tried booting in a safe mode and it still gave me the same error.  Any idea how to remove that "C:\Users\DC" folder?


Change the Coordinate System for Unity Export?

How to change the axis Z and Y? Make it so that it was like in Unity or maybe this can be done in Unity?


I know what I am asking is a very basic example question. But I am trying to understand the application event using an example and it is not working. I tried to figure it out all by myself for a long time, but couldn't succeed. Can anyone kindly let me know what am I doing wrong. The code is as below     appEvent.evt   <aura:event type="APPLICATION" description="Event template"> </aura:event>      appEventChild.cmp   <aura:component >     <aura:registerEvent name='four' type='c:appEvent' />     <lightning:button label='Submit' onclick='{!c.show}' /> </aura:component>      appEventChildController.js   ({     show : function(component, event, helper) {         var evt = $A.get('e.c:appEvent');         //console.log(evt);         console.log('child called');         evt.fire();     } })      appEventParent.cmp   <aura:component >     <aura:handler name='four' event='c:appEvent' action='{!c.show}' />     <c:appEventChild /> </aura:component>      appEventParentController.js   ({     show : function(component, event, helper) {         console.log('parent is invoked');     } })      appEventApp.app   <aura:application extends='force:slds'>     <c:appEventParent /> </aura:application>   Thanks in advance.


I want to dynamically create a sequence of strings by manipulate an array of elements and create some arithmetic procedure.  for name in FIRST SECOND THIRD FOURTH FIFTH; do     $name = $(( $6 + 1 ))     $name = "${$name}q;d"     echo "${$name}"; printf "\n" done   The desire outcome would be the below for $6 equals 0.  1q;d 2q;d 3q;d 4q;d 5q;d   But I get this error  reel_first_part.sh: line 18: FIRST: command not found reel_first_part.sh: line 19: ${$name}q;d: bad substitution reel_first_part.sh: line 18: FIRST: command not found reel_first_part.sh: line 19: ${$name}q;d: bad substitution reel_first_part.sh: line 18: FIRST: command not found reel_first_part.sh: line 19: ${$name}q;d: bad substitution   I guess it's something simple. It used to work when I did something like   FIRST=$(( $6 + 1 )) FIRST="${FIRST}q;d"


What’s the right version of these two?   Half of the students doesn’t bother to show up.  Half of the students don’t bother to show up.    Or are both right?  The related question  discusses some relevant concepts, but the answer is very general, and it's not clear how to apply it here since "half" is a singular noun, while "two" is a plural noun.   Barrie England's answer there says that in "2/3 of the pizza was eaten," singular agreement is appropriate because "the emphasis is likely to be on the amount of pizza eaten, and not on the number of individual thirds. In contrast, in [2/3 of the visitors were men] the emphasis is on the number of visitors who were men, so plural concord ... is required."  What does it mean to put "emphasis" on "the amount" vs. "the number"?  If "half of the students" is just an approximate or uncertain percentage (like "between 51% and 55%"), rather than an exact count, how do I know whether it's appropriate to emphasize the amount or the number of students?


Dupe text should change to reflect that a question has multiple duplicates

The current text is:     This question was marked as an exact duplicate of an existing question.   But in reality, it is an duplicate of multiple questions.  Should this copy be changed?


Recently my PAYDAY has been crashing a lot because I have been installing and uninstalling a lot of mods. I think that because I have tweaked with the PAYDAY files so much it is starting to crash. I basically want to do a fresh install of the whole game by right clicking on PAYDAY on Steam and clicking 'Delete Local Files'. However I wanted to know if this would also erase my progress.


Getting mount's usage suggestion when attempting /system remount

I'm trying to remount system on a rooted Samsung GT-S6102 running Android 2.3.6:  # mount -o rw,remount,rw /system  Usage: mount [-r] [-w] [-o options] [-t type] device directory  This is exactly like in , so I'm not sure why I'm getting this usage error.


Can I use a 12 V power supply as the source of electricity for this circuit? And where do I connect the positive/negative of my power supply?  I'm a bit new to this so please understand, thank you.


apt-get packages automatically installed (by what?!) and can be removed (but I need them!)

apt-get is prompting me to remove these packages since they were automatically installed but are no longer required:  libcapi20-3 libgif4:i386 libnss-winbind libp11-kit-gnome-keyring:i386 libpam-winbind ttf-droid ttf-liberation ttf-umefont ttf-unfonts-core winbind wine wine-gecko1.4 wine-gecko1.4:i386 wine1.4 wine1.4-amd64 wine1.4-i386:i386 winetricks   I'm not sure, but wine was installed as a playonlinux dependency. I'm obviously using playonlinux and it is currently installed, so either playonlinux package has messed up dependencies or something else happened.  I could quickly mark wine as manually installed, so apt won't ask me to delete it, but I want to know which packages are no longer requiring these dependencies.  Is there any satanic ritual I can use to achieve this?  Thank you so much in advance!


Why when I use multiplication  float a= 1.0500000f; float b= a*100.0f;   why b is 104.99999 but not 105.0 ?   and when I   int f= (int)b;   f is 104


I've designed a logo which looks high res in photoshop. But really distorts in Facebook. I understand that Facebook converts the image, but compared to similar logos, it looks bad. Any ways around this?


merge fields by removing duplicates in sql

I want to update a table by merging the categories separated by comma wherever we have a duplicate IDs for instance:  ID            Category 802              A 802              k            803              x              804              y 804              z  So here is the desired results that I would like to see after the update is run: ID            Category 802              A, k 803              x              804              y, z   Thanks


Should users be directed to a 404 page or a landing page?

We have two pages. One is a landing page, given by the route /region. The other is a detail page for a particular region, given by the route /region/summary/{id}. The landing page is the normal way by which a user would navigate to a detail page.  Suppose a user visits the intermediate route region/summary. Should he be redirected to a 404 page, since technically it's not a valid route, or redirected to the region page, since the main problem is that he didn't provide an id in the route, and he'd find valid links everywhere on the landing page?


This Error is coming "Cannot add property count, object is not extensible" while running LWC

JavaScript   async connectedCallback() {     this.isLoaded=true;     await this.ScrollToTop();     let result = await getLocationwithKeys({});     this.LocationAllData =await this.filterCountData(result);     console.log('this.LocationAllData....' + JSON.stringify(this.LocationAllData));     this.isLoaded=false; }  async filterCountData(result) {     for (let i = 0; i < result.length; i++) {         let count = 0;         if (result[i].VFD_Datas__r)             count = count + result[i].VFD_Datas__r.length;         if (result[i].Existing_Keys__r)             count = count + result[i].Existing_Keys__r.length;         if (result[i].Refrigeration_Data_Tables__r)             count = count + result[i].Refrigeration_Data_Tables__r.length;         if (result[i].Add_Sensors_Data__r)         count = count + result[i].Add_Sensors_Data__r.length;         result[i].count = count;         if(count>0){             result[i].showrecordy =true;         }     }     return result; }   error is coming on count and showrecordy as i am adding into array how can i resolve it.


rendering problem (CUDA error out of memory)

So I am only posting this because I am perplexed. I have been working on my first animation project so I am not great with blender. But I am proficient enough to get some stuff made. Here is the thing I have never messed with physics. So for my first cartoon I made christmas lights that would dangle. I just kinda layed them in my scene then didn't think about them again. they just because background. I would make a scene. keep the last frame for continuity then start a new file. So my cartoon is made up of a buncha little blender files. well I got like 15 files rendered and I got to my last 5 files and now they won't render. I didn't change anything but now when i deleted the christmas lights I now longer get the error. Why does rendering the christmas lights work for EVERY file but the last few. I haven't added anything new. just moved the character around. Its my first cartoon. its not great but I can link it if that helps to look at the image. I am running windows 7 with 16g of ram and a nvidia gtx 670. not great but its worked ok. its been taking about 4 minutes a render......  Oh and I am using cycles.  anyone have any ideas? or am I being a noob some how?    PS the sounds is terrible I am currently doing sound and this is just temp.


What is the penalty for the dummy failing to follow suit?

I failed to have the dummy follow suit because the remaining card of that suit was accidentally hidden under a card of another suit. This was discovered later in the game, and treated as a . Should the penalty have been reduced because the dummy is face up and everyone (opponents included) failed to notice that it had only 12 visible cards to begin with?


I'm trying to make this simple smoke sim, but I just can't figure out what is going on. It feels like I have tried to change every setting from Domain resolution, high resolution, applying scale etc and nothing works. I'm rendering in Eevee (I tried cycles and get the same problem though). Also in Blender 2.81.


Video editing. Audio and Video strip have different length

When I import a video in blender, I get audio and video on two separate channels.  And beside the name displayed on the channel I get some number:  video name: path | number I am talking about  The numbers in both the audio and video channel, do they have to match? The guy in a youtube video tries to match them by changing fps, and they match for him. But I can't get them to match.   So, do they have to match? How can I do it? Would there be any problem if they don't?


Arithmetic of continued fractions, does it exist?

I'm interested in the arithmmetic of continued fractions and specially in multiplication. Consider  $$ f(x)=\cfrac{f_{0}(x)}{1-\cfrac{f_{1}(x)}{1+f_{1}(x)-\cfrac{f_{2}(x)}{1+f_{2}(x)-\cfrac{f_{3}(x)}{1+f_{3}(x)-\cdots}}}} $$   and   $$ g(x)=\cfrac{g_{0}(x)}{1-\cfrac{g_{1}(x)}{1+g_{1}(x)-\cfrac{g_{2}(x)}{1+g_{2}(x)-\cfrac{g_{3}(x)}{1+g_{3}(x)-\cdots}}}} $$   Are there arithmetic rules (algorithms) for the multiplication of continued fractions? Specifically, is it possible to obtain a continued fraction $h(x)=f(x)\cdot g(x)$ where   $$ h(x)=\cfrac{h_{0}(x)}{1-\cfrac{h_{1}(x)}{1+h_{1}(x)-\cfrac{h_{2}(x)}{1+h_{2}(x)-\cfrac{h_{3}(x)}{1+h_{3}(x)-\cdots}}}} $$   I've found , but I'd like more. Does anyone here knows of papers, algorithms, etc?  Thanks.    Update 1: Another .


How to use "cat" command on "find" command's output?

I want to redirect the output of the find command to cat command so I can print the data of the given file.   So for example if the output of find is /aFile/readme then the cat should be interpreted as cat ./aFile/readme. How can I do that instantly ?  Do I have to use pipes ?   I tried versions of this :  cat | find ./inhere -size 1033c 2> /dev/null   But I guess this is completely wrong? Of course I'm sure that the output is only one file and not multiple files.  So how can I do that ? I've searched on Google and couldn't find a solution, probably because I didn't search right :P


When can one omit "that" from a sentence?

In general, when can I omit that from a sentence?   Can I omit that (emphasized) in sentence (2) below?        We say that such algorithms handle concept drift and can learn from time-changing data streams.   When the statistical properties of the target variable change, we say that concept drift has occurred.   She told me that some of her classmates failed.      To me, sentences (1) and (3) sound better without that. If I omit that from (2), it just doesn't sound right when I read it out loud. (I should point out I'm not a native speaker.)  How do you decide when to omit it? Is it just a matter of taste? (I know that is sometimes mandatory.)  Can you think of sentences that "sound better" with that? Can you think of sentences that "sound better" without that? Can you think of a few sentences where it is wrong to omit that?


I have written school reports for several years and recently, a colleague has said a verb like recommend or suggest must be followed by that and the second verb conjugated to the pronoun it refers to. For example, I wrote, 'I recommend he run for at least 2 hours a day'. However, I have now been told it must be, ' I recommend that he runs for at least 2 hours a day'. Another one is below.  Which is correct? I suggest he practise for the upcoming test OR I suggest that he practises for the upcoming test? Can someone please shed some light on this for me. Thank you in anticipation that both forms are correct.


CAD applications, Photoshop, SketchUp , Corel apps for Ubuntu

I am planning to change from Windows to Ubuntu because Windows is hard to maintain (because of virus threats and expensive security software). But I'm  worrying whether CAD applications such as Autodesk AutoCAD, 3ds Max, CorelDraw and SketchUp, are working well with Ubuntu os?


I have IPv6 connectivity through Hurricane Electric tunnel. Since IPv6 day this year, many services (google.com, facebook.com, etc.) enabled IPv6 on their main domains. On my Windows machine, IPv6 is preferred over IPv4. This means that whenever I visit Google, all traffic goes through my tunnel to Hurricane Electric, which raises the latency by more than 100%:  C:\> ping www.google.com  Pinging www.l.google.com [2001:4860:8005::68] with 32 bytes of data: Reply from 2001:4860:8005::68: time=85ms Reply from 2001:4860:8005::68: time=84ms Reply from 2001:4860:8005::68: time=112ms Reply from 2001:4860:8005::68: time=86ms  Ping statistics for 2001:4860:8005::68:     Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds:     Minimum = 84ms, Maximum = 112ms, Average = 91ms   C:\> ping -4 www.google.com  Pinging www.l.google.com [173.194.79.103] with 32 bytes of data: Reply from 173.194.79.103: bytes=32 time=28ms TTL=48 Reply from 173.194.79.103: bytes=32 time=28ms TTL=48 Reply from 173.194.79.103: bytes=32 time=55ms TTL=46 Reply from 173.194.79.103: bytes=32 time=29ms TTL=46  Ping statistics for 173.194.79.103:     Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds:     Minimum = 28ms, Maximum = 55ms, Average = 35ms   Question: How can I make Windows 7 to always prefer IPv4, when both IPv4 and IPv6 records are available for a specific domain name?


I cannot access files downloaded in Ubuntu and moved to NTFS partition in Windows

I downloaded some RAR files in my Ubuntu, then I copied them to my NTFS drive to access from Windows 10. But after logging into Windows I see the folder as having 0 Byte size and I could not open any folder that I created in Ubuntu.   Please let me know what I have to do.


How do I view Linux file system drives on a Windows machine?

I have an external hard drive that was used on a linux system to store a bunch of data.  I no longer have access to that linux system any more but would like to view the files on a Windows machine.  Is there a way to view these files without the use of a virtual machine, or booting into a linux distro?


I'm new to Java and trying to get this program to close the input section but when entering 0 as intended, the loop continues rather than closing and printing the ArrayList. Can you help me figure out what I'm not getting here? package csc320.programming.i; import java.util.ArrayList; import java.util.Scanner; public class MPG {     public static void main(String[] args) {         Boolean close = false;         ArrayList<String> vMake = new ArrayList<String>();         ArrayList<String> vModel = new ArrayList<String>();         ArrayList<String> vYear = new ArrayList<String>();         ArrayList<String> startODO = new ArrayList<String>();         ArrayList<String> endODO = new ArrayList<String>();              Scanner scnr = new Scanner(System.in);                  System.out.println("Press 0 and enter to close the program");         System.out.println("Enter Vehicle Make: ");         String answer = scnr.nextLine();         if (answer == "0") {             close = true;             System.out.println("Program closed");         }         else {             vMake.add(answer);                          do {                 System.out.println("Enter Vehicle Model: ");                 answer = scnr.nextLine();                 vModel.add(answer);                 System.out.println("Enter Vehicle Year: ");                 answer = scnr.nextLine();                 vYear.add(answer);                       System.out.println("Enter Vehicle Starting Odometer: ");                 answer = scnr.nextLine();                 startODO.add(answer);                    System.out.println("Enter Vehicle Ending Odometer: ");                 answer = scnr.nextLine();                 endODO.add(answer);                                   }while (answer != "0");                      }            System.out.println("Vehicle Inventory:");         System.out.println(vMake + " " + vModel + " " + vYear);         System.out.println(startODO + " " + endODO);         scnr.close();     } }


I accidently clicked erase disk and install ubuntu what happened to all my partitions

I had three partitions before installing ubuntu on my system now i only see one what happened to my other partitions and the data they held. If its possible i would like to view that data.


Trying to identify science fiction story: world dedicated to learning spacecraft maintenance

I'm trying to remember a short story in the science-fiction genre.  It is a story which features a society that revolved around teaching people to maintain spaceships, but in the distant past they had become cut off from the people who actually had the spaceships. This society continued to teach spaceship maintenance long after they knew why they were teaching it. All knowledge of how the knowledge was actually practical was lost.  At some point, one or more people with the maintenance knowledge are re-united with the society that actually has the spaceships - which are seriously out of repair because they lost the repair knowledge when they lost contact with the world that did the repairs.  I think the two societies then get together again, but I don't remember how it ended or much of the actual plot.  What is the name of this story?


Why My android device show less RAM and Slow at Jelly bean?

I bought a new Samsung galaxy S Advance(GT-i9070). It came with Gingerbread. It was actually . I clearly verified this with the shop when I bought it. Last day I upgraded my phone to Jell bean with official Russian firmware and reset to factory default settings. But now the phone seems very slow . Also full RAM Capacity seems 521 MB at Application manager. All applications are now consuming  memory from total 521 MB memory. My question is- where is remaining memory? How can I obtain the remaining memory to speed my phone? Some people on the web say to root the phone, install ROM manager etc. Are these approaches good? Please give me a solution


What are good, reliable databases of atomic spectra?

I am looking for a database of atomic spectra, which contains   atomic levels and their energies, electronic configurations, angular-momentum characteristics and lifetimes, and atomic transitions and their energies, initial and final states, linewidths and branching ratios,   and that kind of data, ideally for a broad range of neutral atoms and ions covering the full periodic table.  Ideally, I'm looking for reliable databases which do not have intermittent service interruptions, though databases from countries with intermittent service are also OK.


I'm working on my first redstone structure, so it's extremely simple. It's a secret entrance to my base, and it's just two horizontal stickypistons, one of top of the other, that extend one piece of dirt each when the button is pushed. What I'd like to have it do is the opposite though, to retract a piece of dirt each when a button is pushed. Is there a way to do that?


What was the point of bringing Enterprise to the surface of a planet?

In the original timeline, I haven't seen a federation starship other than USS Voyager on the surface of a planet, whether it was capable of landing or not.  In Star Trek Into Darkness,      it was displayed that Enterprise was kept underwater on a planet.   My Question:      What was the point of bringing Enterprise to the surface, which enabled a couple of chances for violation of the Prime Directive? Why couldn't observations be done with Enterprise in orbit?


Can we turn off Wordpress `transient` cache?

When studying Wordpress, I notice that a lot of database changes are on wp_options table - a closer monitor will show that a lot of transient related changes are made.  I wonder if we can turn off Wordpress's Ttransient cache?  p.s.  A way to delete all transient cache is discussed  - after removed, cache will be recreated as  shared below.


Choosing between an older, prominent supervisor and a younger, junior supervisor for PhD

I'm searching for a PhD position in theoretical physics. My question is:  Should I do my PhD with a prominent professor who is 60 years old and does not care too much about their students or with a junior professor who is not famous and does not have published too much papers, but cares too much about his students and is very supporting and nice professor?


Why do single-author community wiki answers (or questions?) link to revisions, rather than to the author's profile?

Possible Duplicate:             Looking at  , I noticed something peculiar: Community Wiki posts* with only one author have not one, but two different links to the revisions page.    Is this entirely necessary? When clicking on the author's name in this case, I entirely would expect to be brought to the author's profile, rather than to the (potentially one-item-long) revisions list.   *(maybe only answers? couldn't find any good single-author CW question references)


Where was this picture taken (screensaver on LG Oled TV)?

Can someone please tell me where this picture was taken?


A square matrix in the reduced row echelon form

I'm reading the Introduction to Abstract Algebra by W. Keith Nicholson. In the matrix inverses section for the proving many properties, implicitly it has been used the following statement:      If a square matrix is in the reduced row echelon form, it is either   identity matrix or has a zero row.   I really have no idea about the proof and also searching wasn't useful.


How can I make shutdown not require admin password?

If more than one person is logged in on my computer, Ubuntu requires super user authentication when shutting down the computer. How can I make it so that any user can shutdown the computer without being asked for a password?


python context of passed-to-class function

In my model I have a class containing a rather generic function, which calls a higher order function. I put together a simple example of it:  class AClass(object):      def __init__(self, prop, fun):         self.prop = prop         self.fun = fun      def do_sth(self):         self.fun()  def namely_this_(context):     print 2*context.prop  obj1 = AClass(3, namely_this_) obj1.do_sth()   This snippet contains everything to know, just note, that it could be continued by something like:  def namely_this_2(self):     print 4*self.prop obj2 = AClass(2, namely_this_2)  obj2.do_sth()   The above code does not run, instead it throws a  TypeError: namely_this_() takes exactly 1 argument (0 given)   Instead, I have to change the do_sth to      def do_sth(self):         self.fun(self) # the *self* in the parenthesis added   Question: In what way does the namely_this_ differ from functions defined inside a class and is my workaround a viable solution?


When the app starts and I try to immediately rotate the screen It gives me this error:  public void onDestroy() {         super.onDestroy();         appbars.animate().translationY(0).alpha(1).setDuration(100).setInterpolator(new DecelerateInterpolator());      }   Error:   Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.ViewPropertyAnimator  android.support.design.widget.AppBarLayout.animate()' on a null object  reference


I'm trying to create one way node where inserted values are sorted. I tried do this like this, but i receive error on debuging. Please about help, its 's very important for me. struct list { int key; list* next; };  void add(list *&head, int key) {  list* tmp = new list; tmp->key = key;  list* current = head;  if (current == NULL) {     tmp->next = head;     head = tmp;     return; }  while (current != NULL) {       if (current->key == key) {         cout << "Taki klucz juz istnieje" << endl;         return;     }     cout << current->next << endl;      if (key > current->key && current->next == NULL)  {         cout << "---------" << endl;             current->next = tmp;             return;     }     if (key > current->key && current->next!=NULL && key < current->next->key) {         list* currentNextCopy = current->next;         current->next = tmp;         tmp->next = currentNextCopy;         return;     }      current = current->next; }     tmp->next = head;     head = tmp; }  int main() { srand(time(NULL)); list* head = NULL; add(head, 2); add(head, 4); add(head, 3); add(head, 1); add(head, 5);  }  Maybe problem is very stupid, but I'm beginner at C++. Very please help.


I have an application that executes a stored procedure. There is a combo box "City" and the user that can select only one value and I use that value as an SQL parameter in My C# code.   Simplified Example :   Select StudentName, Age  From dbo.Students Where City = @city   @city is replaced by the value from the combo box.  Now the requirement is changed and the combo box supports multiple selection. The selected elements are stored in an array. Now I am using the following approach.   Use String.Join("','") and join the array elements and the result is assigned to @city. Changing the query to use IN operator.  Select StudentName, Age From dbo.Students  Where City IN (@city)   Suppose the selected cities are London and Sydney then @City becomes London','Sydney. Then in SP it will be used as 'London','Sydney' which is syntactically correct. But this query fails.  What do I do incorrectly? What is the best (Nice) approach to handle this?


(I suspect this has been asked before, but I can't find it right now, so I look forward to dupe suggestions.)  On some SE sites, I have privileges to view deleted questions and answers. In the iOS app, some of these posts (particularly comments on them) show up in my Feed. Yet when I click them, I get a blank screen and an error dialog — effectively a 404.  Since I'm authenticated in the app, shouldn't my auth token be enough for the server to allow fetching these posts' content?


Why can I not post in chat rooms on Stack Overflow? My reputation is 26, and it says I need 20

I have 26 reputation points. When I go to a chat room, it says I have to have a reputation of at least 20 to talk. Why can't I post in the chat room, then?   I asked a question about a JavaScript problem, and I think it may have gotten buried. I attempted to go to the JavaScript chat room, and it appears I cannot post there either.


What are the rules for complex-component vectors and why?

I want to take the inverse of a dot product, where both vectors have complex components.  In other words, if $\textbf{A} \cdot \textbf{B} = d$, and I know $\textbf{A}$ and $d$, I want to find a $\textbf{B}$.  I know that I cannot do so uniquely, which is fine; I have a procedure for creating a set of vectors that will satisfy $\textbf{A} \cdot \textbf{B} = d$.  But, it relies on finding vectors that are orthogonal to $\textbf{A}$ and each other.  Normally this would not be a problem; just take $\textbf{A}$, zero all but two of its components, switch the last two, and negate one of them.  Make sure it's a different pair every time.  For more orthogonal vectors, you can take cross products.  The difficulties arise when I consider vectors with complex components.  I want to normalize each of the orthogonal vectors, which means divide by their magnitudes.  I have read that you need to divide by $\sqrt{|v_x|^2 + |v_y|^2 + |v_z|^2 ...}$.  What is the justification for this?  Since I am just normalizing vectors, do I absolutely have to take the magnitudes of the components?  Also, My technique of finding the inverse dot product relies on the identity $\textbf{A} \cdot \textbf{B} = d = |\textbf{A}||\textbf{B}|$.  What modifications might I need to make?  I can post more details if people want.  Also, if anyone has links to stuff to read about, especially with regards to the reasons why, I would be most appreciative.


Paper with editor for longer than two and a half months

I have submitted a paper to a journal 2 and a half months ago. Its status remains "With editor". From your experience, is this normal? If not, how should I deal with that?


Hats are not appearing correctly on expanded usercards in Safari

If I hover over a user with an expandable usercard, the hat is only showing on the profile pic of the usercard for a very short time. After that, it teleports back to the original picture.  I don't want my hat to travel through cyberspace. Please make it stop!  I'm using Safari 11.0.2 on macOS 10.13.


Is it safe for Harry to become an Auror?

Harry plans to die a natural death thereby breaking the power of Elder wand,  “I’m putting the Elder Wand,” he told Dumbledore, who was watching him with enormous affection and admiration, “back where it came from. It can stay there. If I die a natural death like Ignotus, its power will be broken, won’t it? The previous master will never have been defeated. That’ll be the end of it.  Dumbledore nodded. They smiled at each other. -Harry Potter and the Deathly Hallows, Chapter 36: "The Flaw in the Plan"  But Auror job includes many incidents during which he need to fight duels or just have to fight to protect himself, during which any enemy can cast expelliarmus and can become the owner of Elder wand thereby continuing the chain, So is Harry safe to do an Auror job?


exception in thread "main" java.lang.NullPointerException at javax.swing.ImageIcon. at labelframe at LabelTest

My program successfully compiles but when I run it, it gives such error. I think my exception occurs due to image. I have searched on internet for this error but nothing solves my problem. Here is my code  import java.awt.FlowLayout; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.SwingConstants; import javax.swing.Icon; import javax.swing.ImageIcon;  class Labelframe extends JFrame {     private JLabel l1;     private JLabel l2;     private JLabel l3;      public Labelframe()     {         super("Testing JLabel");         setLayout(new FlowLayout());         l1=new JLabel("label with text");         l1.setToolTipText("this is label 1");         add(l1);          Icon bug=new ImageIcon(getClass().getResource("bug1.png"));         l2=new JLabel("label with text and icon",bug,SwingConstants.LEFT);         l2.setToolTipText("this is label 2");         add(l2);          l3=new JLabel();         l3.setText("label with text and icon at bottom");         l3.setIcon(bug);         l3.setHorizontalTextPosition(SwingConstants.CENTER);         l3.setVerticalTextPosition(SwingConstants.BOTTOM);         l3.setToolTipText("this is l3");         add(l3);         setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);         setSize(260,180);         setVisible(true);     } }  public class Labeltest  {     public static void main(String [] args)     {         Labelframe lf=new Labelframe();     } }


I'm writing a python script that will append a line in C:\Windows\System32\drivers\etc\hosts. How do I append a line in this file with administrator permission?


How much light is there in space and how heavy is it?

Our night sky is filled with stars. On a dark night a significant fraction of the sky is light. This light, we are told, has been in transit for many millions of years. There must therefore be quite a lot of light in transit at any one time.  There are many questions here where we are reminded that light has relativistic mass and therefore has a gravitational effect.   How much light is there in transit at any one time? Perhaps a measure per cubic something would be interesting.   And, of course, what gravitational effect would this light exert? Has it's effect been taken into account when the calculations of the amount of dark matter/energy is made?


Sorting text column by numbers with letters

I have a text column. It's made up of the numbers 1, 2, 3 up to 1650, which are currently not in increasing order. However, it also includes text such as 520a, 639a, 639b, 639c. Sorting on increasing value would produce 1, 10, 100, 1000, etc, rather than 1, 2, 3, ... I know how to convert from text to integer, which would work if my cells did not include alpha characters. How can I sort to end up with 1, 2, 3, ..., 10, ..., 100, ..., 519, 520a, 521, ..., 638, 639a, 639b, 639c, 640, ..., 1650?


Map Caps Lock to Escape for server not running X

I am using xmodmap to remap the capslock key to escape for my Linux system running X.   I am now working directly on a headless Ubuntu 14.04 LTS server that does not run X. Is there any easy way to get the same behavior in the system terminal as well, when directly logged in to the machine and typing on a USB keyboard?


I have scenario where i am using $A.get('e.force:createRecord')

When i click on Save button i do not want the page to be redirected to to object detail page.I want to be on same page where me performing the action.How this can be achieved in lightning .I tried to use event.preventDefault().But it is not working.


Is it experimentally verified that elementary/fundamental particles don't have temperature?

Temperature is meaningless if talking about elementary particle i.e. we can't say that an electron is hotter or cooler.... But is this experimentally verified? Because theoretically it is arguable.


critical look at auto .arima in forecast package in R

I asked a question earlier in the forum on auto arima click here . The auto.arima provided strange forecast, upon further looking at the code I did not find anything wrong in my R code see code below. This seems a very straightforward problem. If auto.arima does not fit a simple straightforward dataset, I would be very cautious in using this function to fit more complicated datasets. I would encourage using other tools/ functions and verify forecast.   plot(eggs)  ## Hold out 10 data points - 1984 thru 1993 egg_price = ts(eggs,start = 1900, end = 1983)  ## Fit arima model  fit <- auto.arima(egg_price) fcast <- forecast(fit,h=10) plot(fcast)


Can I run a natural gas dryer from a portable propane tank?

I bought a modular home in the woods with no w/d hookup,I want to know if it's safe & OK to hookup a 5 gallon propane tank to a gas dryer, plug it in & dry my clothes?  Do I have to change something in the dryer to run propane from natural gas? Just trying to be safe. I don't want to blow me & my house up! 😳 ANY HELP OUT THERE PLEASE WOULD APPRECIATED!


How can I prove I am closely related to my sponsor?

I am going to apply for a uk visit visa to visit my Aunt and for tourism. My Aunt will be my sponsor, and on my application I have to show the visa officer that my Aunt and I have a strong close relationship.     Would you help me with what I should show the visa officer to prove that my Aunt and I are closely related?


Need a word that describes a biweekly publication

Our company publishes an internal e-newsletter that we call the <Title> Weekly. We're now going to publish every other week, so the title needs to be changed. The first solution that came to mind was <Title> Biweekly, but a few questions on this site have pointed out that "biweekly" is a troublesome word, and we didn't really like the word anyways.  What is a good word to describe a publication that is now publishing less than it used to? Searching around on this site yielded "fortnightly" as an idea, but that doesn't fly as well across the pond. I just learned about the existence of "hebdomadal", but I doubt that "bihebdomadal" would get approved.  Any ideas? It doesn't even have to be a synonym of biweekly; in fact, it'd probably be better if we went in another direction. The publication is publishing less frequently so the idea of scaling back could be in play, but the new format opens the door for a more focused and relevant publication, because we won't be struggling for content week after week. So, a word like "condensed" could be on the table as well. Or, even a word that's better than "regular" to indicate that while it's not as frequent, it's still a regular publication.


How can I locate where the actions are defined?

Given the following code:  <form>     <h1> My form <h1>     <input type="text" />     <?php do_action( 'woocommerce_checkout_after_customer_details' ); ?> </form>   How can I locate the "woocomerce_checkout_after_customer_details" defined?  It prints a button where I have to add functionality, maybe can I just use add_action() to add new features? in that case: how can I use remove_action() to stop rendering the old button?  Thanks in advance


A part of my blender render is invisible?

For some reason, a part of the render is invisible.  It might be the material (i didnt make it), but i don't know how to fix that    The paint was taken from this but the color was changed a bit    this is the problematic part of the object.


Possible Duplicates:             What is the difference between "I love to sing" and "I love singing"?


Did you enjoy the snow?**      Did you enjoyed the snow?**   What is the difference between these two sentences? For example, today it was snowing, so if I want to ask someone whether they enjoyed it, what should I say?  Thanks!!


50 reputation option does not exist in the bounty offer drop down list

After I clicked the "start a bounty" link, in the drop down list, the 50 reputation option did not exist:


FFMPEG encoder/settings for TEXT-LEGIBILITY and low file size?

I often create long screen-recordings of myself explaining code.  When scrolling text, the movement must be smooth enough. When static, the edges of text must be crisp for legibility.  I tried using CRF (Constant Rate Factor) but the trade-off space does not get me the size compression I believe is possible.  I'd be particularly interested in an encoder that could be "motion-aware".  e.g. if the video is static, don't store any information. But if there is movement in the video, start storing frames etc. There is a  in the new version, but it looks like its for notifications only.  Does anyone have any good encoders (or settings) they can recommend?  Thanks


How to calculate gradient of $f(x)=x^TAx+b^Tx$?

How to calculate the gradient of $f(x)=x^TAx+b^Tx$  when $A$ is symmetric and when $A$ is not symmetric?   I will have confirmation if the computation of the gradient of $f$ when $A$ is a square matrix of size $n \times n$ non-symmetric and when $A$ is symmetric.  I begin my proof  $f:R^n \to R$  1) A is no symmetric:  It is already noted that : $f(x)=a^TAx=x^TA^Tx$ because $a^TAx$ is a scalar$ So about calculating gradient of $$ and he does that using the concept of exterior derivative.   $f(x+a)=(x+a)^T(x+h)+b^T(x+h)$  $x^TAx+a^Ax+x^Aa+a^TAa+B^Tx+B^Th$  $f(x)+x^T(A+A^T)a+a^T+B^Tx+B^Th$  $∇f(x)a=(A+A^T+B^T)x+B^Th$  2) A is symmetric so $A^T=A$  $∇f(x)a=$2Ax  It would be great if someone could help me solve the problems I will be very thankful  Also ,  I will also have another question in both cases the staging for a decadent gradient and quasi newton algorithm, thank you  Paul-henri


I'd like to create a lead via apex and set it's address. I've read that Address is a compound field and that it is totally read only unless via SOAP/REST API. Looking at the docs, I could only find getter methods - nothing to set a value.  How do I go about setting an address via apex?  Thank you!


How to access temporary file straight after creation?

I've script which is connecting to remote host via SSH, creates temporary file and executing the following command:     Calling system(mysql --database=information_schema --host=localhost < /tmp/drush_1JAjtt)   Each time it's creating different file (pattern: drush_xxxxxx).  I've tried couple of times manually running on the remote:  tail -f /tmp/drush_*   but my connection is too slow and most of the time I've end up with the error:     tail: cannot open `/tmp/drush_*' for reading: No such file or directory   Is there any trick accessing such file straight after it's being created to show it's content?


I am looking for a LaTeX editor that can manage Hebrew and RTL, and that is supported on OSX, I came across many but did not find that works. Thanks


Terminal Transparency in Ubuntu GNOME Malfunctions

I recently installed ubuntu GNOME and I have done all the updates and upgrades. When I try to add transparency to my terminal it don't work. It only goes dark-black to white.  Transparency set to none:    Transparency set to maximum    However, when I have added transparency to the terminal and I go into Help -> About, the terminal window applies the right transparency, (very strange).   Transparency with about box open    I would really appreciate some assistance with this issue.


Intuition behind why nodal and mesh analysis work?

I'm looking for an intuitive explanation (not a proof) of why the equations produced by nodal analysis and mesh analysis are always linearly independent and always have a unique solution, if the circuit has a unique solution.  Again, please note, I'm not looking for a proof, rather an intuitive explanation.


I use the following regex which extracts domain names and urls with/without schema and www:  (https?://)?\w+(\.\w+)+(/\w+)*(/\w+\.\w+)?(\?[\w%&=.]*)*(?=[^\w.?&%=])   that works fine in most of the cases, for example for www.medicare.gov  But it doesn't work in case of input text www.medicare.gov.   How to fix it in order to support such or similar cases also?


Placed Image in Illustrator is Blurry when exported as PDF

I am doing some work for a client designing stickers but their logo was originally created by someone else in Photoshop (I can't understand why a logo would ever be made in a raster format). So there is no vector version of their logo, only high-res JPEG and PNG versions.   In my design in illustrator I am having to place a JPEG of the logo into the designs, but when I export them as a PDF for print, the logo appears blurry and fuzzy. Despite being crisp when placed in Illustrator.  I have tried multiple PDF settings, with no difference. Is there anyway to fix this and get the logo to appear crisp in a PDF?   Again, if I export the design as a PNG or JPEG, it is perfect.


Let $(M,g)$ be a Riemannian manifold of dimension $n$ with Riemannian connection $\nabla,$ and let $p \in M.$ Show that there exists a neighborhood $U \subset M$ of $p$ and $n$ (smooth) vector fields $E_1,...,E_n \in \chi (U),$ orthonormal at each point of $U,$ s.t. at $p,$ $\nabla_{E_i}E_j(p)=0.$  What I've found so far;  Let $V$ be a normal neighborhood at $p.$ Let $(W,x(x_1,...,x_n))$ be a local coordinate system at $p$ s.t. $x(W) \subset V.$  Let $\{X_i:=\frac{\partial}{\partial x_i}\}$ be the standard basis of $T_pM.$ By Gram-Schmidt, there exists an orthonormal basis $\{E_i\}$ of $T_pM.$ Consider the orthonormal frame $E_i(t),$ by parallel transporting $\{E_i(0)=E_i\}$ along a  a geodesic $\gamma :I \to M$ starting at $\gamma(0)=p$ and ending in $\gamma(1)=q,$ where $q \in V.$ This gives us an orthonormal frame at each point of $V.$ To satisfy the second condition, let $E_i(t)=\sum_{l}a_{li}X_l$ and  $E_j(t)=\sum_{s}b_{sj}(t)X_s.$ Then   $$\nabla_{E_i}E_j=\sum_{k}(\sum_{l,s} a_{li}(t)b_{sj}(t)\Gamma^k_{ls}+E_i(b_{kj}))X_k,$$  where $\Gamma^k_{is}$ are Christoffel symbols.   To have $\nabla_{E_i}E_j(p)=0,$ we must have $\sum_{l,s}a_{li}(0)b_{sj}(0)\Gamma^k_{ls}+E_i(b_{kj})(p)=0$ for each $k.$      How can I conclude the argument?


Showing that $A[x] \cap A[x^{-1}] $ is an integral extension of $A$ when $x$ is invertible and $x$ belongs to a bigger ring containing $A$

I have a problem- $A, B$ are rings such that $A \subset B$ and  $x$ is an invertible element in $B$.          I have to show that that the ring $T = A[x] \cap A[x^{-1}]$ is an integral extension of $A$. I first tried to show it by definition, taking an element in $T$, assuming it satisfies a n degree polynomial and using other results to show that this element is integral over $A$. But I don't know how an element of $T$ looks like so I don't think this approach is any good.            Next, I thought maybe we can write $T$ as $A[y]$ where $y$ is some element of $B$ in terms of $x$ and show that this $y$ is integral over $A$. But I don't know if that is possible.  I would appreciate it if someone could suggest some better way to solve this problem. Thank you.


I'm trying to identify a novel from the mid 1990s that was based around the idea that a certain subset of the population lived a double life. When they slept they existed in a medieval world and when awake they lived in our current world.   The protagonist was under the impression that he was the only one living this double life. Eventually he was discovered by the others who had this power. As it turns out those that lead this double life had some magical abilities. Their powers were in pairs: life/death, water/fire that sort of thing. The protagonist is able to manipulate life and death.   Some adventures ensue, the details of which I cannot remember. I do remember that in the end of the book the protagonist saves somebody's life by taking the life force of his own unborn twins.   It always felt like a book crying out for a sequel but I never found one and I've since lost the name of the book.


How can I find all the additional packages I installed?

is there a way to get a list of all the package names I have installed additionally to those that shipped with my copy of Ubuntu?  I didn't find options under the manual files of apt, dpkg and apt-get that seemed like they could do this kind of function.  EDIT to clarify: assuming Ubuntu came with packages a,b,c,d,e,f and I manually installed packages x,y,z, how can I get a list of x,y,z?


I'm having some trouble while searching files with find command and the way it handles the search.  Let's say I'm currently in the directory /tmp and the directory contains the files: backup-20151219.zip, backup-20151220.zip, backup-20151221.zip.  Then my search command is:  [root@server tmp]# find /tmp -type f -mtime +2 -name backup* -exec rm -f {} \;   And I get the following:  find: paths must precede expression: backup-20151219.zip Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression]   That's because it matched the backup* regex and used it as the search pattern instead of using it to filter results. That I know.  If I change to another directory which does not contain files beginning with backup*, it shows the expected results.  So, I wanted to know if there is a way to search files using wildcards while being in a directory that may contain matches and show them as results.


Find the number of isosceles triangles with integer sides, if no side exceeds 1994.  I first assumed the sides a,a,b. There will be such a unique triangle iff 2a>b. Hence, for any a, b can vary from 1 to 2a-1.  We also have a,b<1995. I cannot figure out how to proceed to the next part. Do i have to assume angle restrictions as well. Please help me!


List of figures: numbers overlap image caption

I have many images in a part of my document, now the list of figures numbers collide with its respective image caption as seen below. There would be enough space to move the text a bit more to the right... is there any way to reconfigure the LOF?


In a scientific paper, I've seen the following $$\frac{\delta K^{-1}}{\delta p} = -K^{-1}\frac{\delta K}{\delta p}K^{-1}$$ where $K$ is a $n \times n$ matrix that depends on $p$. In my calculations I would have done the following $$\frac{\delta K^{-1}}{\delta p} = -K^{-2}\frac{\delta K}{\delta p}=-K^{-T}K^{-1}\frac{\delta K}{\delta p}$$ Is my calculation wrong? Note: I think $K$ is symmetric.


User badges not showing reputation or badge counts

On all questions  (at least on SO and MSE), I'm no longer seeing badge counts or reputation numbers on user badges on posts (both answers and questions):    Is this intended? Part of testing going on? Or just a bug?


How to assign a variable from another variable in a separate file

I have a file with a bunch of variables such as:  file  DEVICE0_USB="usbSerialNo1" DEVICE1_USB="usbSerialNo2"   and I want to assign the contents of any of these variables to variables in a script, for instance:  script   FAX_MACHINE_USB=$DEVICE0_USB COFFEE_MAKER_USB=$DEVICE1_USB   so that when I echo $FAX_MACHINE_USB I receive usbSerialNo1  I can use source to get the variables from file but this will also run every line in file. In my case it's not a problem since file has only variable declarations, but I still prefer not to do it. Is there another way of achieving it?


Intel HD Graphics 3000: Screen resolution greater than panel's?

From time to time, I need to create screenshots at a resolution higher than the display of my laptop. It has two graphics cards, an Intel HD Graphics 3000, and an NVIDIA NVS 4200M. In the BIOS I can switch the system to discrete graphics. Then, in the NVIDIA settings, I can select a resolution higher than what my screen supports. However, that's cumbersome as it requires a reboot: Normally I run the system with both graphics cards enabled (Optimus), which means that the Windows 7 X64 desktop environment is controlled by the Intel graphics adapter.  Can I set a custom resolution, exceeding my screen's resolution, for an Intel HD Graphics 3000? If so, how?  Sometimes such a resolution is called a virtual screen resolution.  Update: Yes, I am aware of the question . However, it is not a duplicate as I am interested in a solution that the Intel HD Graphics 3000 GPU handles in hardware. Also, I am looking for a temporary solution that I can turn on for some minutes once in a while. I prefer not to have another service running in the background. Furthermore, I am not interested in virtual desktops, which allow moving windows to virtual screens.  Workarounds I tried to no avail: (actually unrelated to this question as those are non-hardware solutions)   : I am not able to change the vertical dimensions of the Chrome 40 window to  greater than those of the screen. Also, there are undesired side effects such as the  mini window scrolling out of sight when activating GiMeSpace. : When I resized Chrome 40 to 2000px height, which is larger than the height of my screen, it started misbehaving. Taking screenshots with Awesome Screenshot didn't work anymore, and content of tabs disappeared, even after resizing the window back to normal.


1-the words tumbled out so fast that I could barely hear them’  2-don't look so worried’  3-I'm not so foolish as to say that  How would you refer to the sub-modifiers/adverbs (so) in sentence 1,2,3.    a) so in sentences 1,2 and 3  b) so's in sentences 1,2 and 3  c) the so's in sentence 1,2 and 3  d) the so in sentence 1,2 and 3  e)...... type your answer


Sci-fi story about an alien AI satellite passing through the solar system

Iirc, at first it's thought to be a comet. But it's discovered to be an alien satellite with an AI onboard. It's flying rapidly through the solar system and is just on a course to utilize the gravity of the sun to be flung off somewhere else. Humanity makes contact with the AI, but there's not a lot of time before it flies off. The story ends with something like the AI giving the location from where it was sent, and (maybe?) noting that it has sent a signal there, but it will take many thousands if not millions of years to get there, and that it doesn't even know if the alien civilization who sent it still exists.


How to resolve "Failed to download repository information"?

Whenever I try to install anything with the Ubuntu Software Center, the following error appears.     Failed to download repository information      Check your Internet connection.      E:Unable to parse package file /var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_precise_multiverse_i18n_Index (1)


What's the difference between shooting in daylight and at sunset?

What's the difference of light between taking photos near sunset or during midday sunshine if there is any? Why would you go for a photo at sunset instead of a daylight photo when the sun is higher in the sky and vice versa?


Why does the Sun's (or other stars') nuclear reaction not use up all its "fuel" immediately?

The temperature and pressure everywhere inside the Sun reach the critical point to start nuclear reactions - there is no reason for it to take such a long time to complete the reaction process.  Just like a nuclear bomb will complete all the reaction within $10^{-6}$seconds.  Why does most of the hydrogen of the Sun still not react even though it reaches the critical point, and why take stars billions of years to run out of fuel?