Can I transfer multiple Pokemon at once?

I've been catching enough Magikarp to evolve my 2nd Gyarados over the past few days. Normally I would just catch, transfer... catch, transfer... repeat. Sometimes I don't keep up with that, and will have 30-40 Magikarp to transfer to the Professor to get the extra candy.  Is there a way to mass transfer multiple Pokemon at once? Or am I stuck with the mundane process of one at a time?


How do you do load testing and capacity planning for web sites?

This is a  about capacity planning for web sites. Related:      What are some recommended tools and methods of capacity planning for web sites and web-applications? Please feel free to describe different tools and techniques for different web-servers, frameworks, etc., as well as best-practices that apply to web servers in general.


Is it possible to shrink a partition without free space left?

Let's consider an Ubuntu 15.04 installation which takes the whole HD space:    Is it possible to shrink either /dev/sda2 or /dev/sda5 in order to get free space (with a view to install a more recent Ubuntu version and make it bootable)?  I tried with Ubuntu Disks utility and Gparted to no avail.


What is the inverse of $y=x!$ for $x>0$?

Trying to find the inverse of the function $y=x!$ for domain restricted to $x>0$. Does this function have an inverse for the given domain? If so, please include methods used for finding the inverse to help further my understanding of the solution. Thanks!


What is the correct punctuation for this sentence?

Yet I cannot remain in these moments for very long without being reminded of nature's harsh and unforgiving side;  I think about fording a raging glacial river in Denali National Park in Alaska and avoiding a bear as he ravages my two-week supply of food.   I am not sure what punctuation to use here.  My reasoning for currently using the semicolon is the rule of two related sentences.  Would a dash serve this thought better?


How much evaporated milk do I use for a half a cup of milk

I'm trying to make peanut butter fudge and it's calling for a half a cup of milk I don't have milk I'd like to know if I can substitute evaporated milk


I have two lists. How can I define a function "remove_repeat_element" to remove repeat elements from them ? ?   def remove_repeat_element(a, b):     ... ...  a = ['bd09fdf7-918e-4a5e-8338-0f6fe78fd238'] b = ['bd09fdf7-918e-4a5e-8338-0f6fe78fd238', '3c26f383-da50-446c-8613-64e1068bd57e']  result = remove_repeat_element(a, b) print result >>> ['3c26f383-da50-446c-8613-64e1068bd57e']   Could someone give me some advice ?? Thanks a lot!


How do I use a image texture "on top" of a shader material on the same model?

So I've started using nodes to create basic toon-like shaders for my models. I used to only work with handdrawn UV textures before so this is a whole new world for me. My goal is that I still want to use hand-drawn, UV-textures for facial features/animations. And so I went about it like I used to do. I unwrap the faces where I want my texture to go. Created a new material and texture, and load my image. (I did this prior to setting up any shader nodes) Everything looks fine and I continue setting up my shader nodes. This is where I ran into problems. When I assigned the "skin shader" to the head/face part of the model. The texture I used for a mouth disappeared or got overwritten I guess. So I select the material with my texture in the list and re-assign it to the part of my model. And I can see the texture again, but since the texture has transparency, the part of my model that I had unwrapped became see-through. Basically like an opening or a hole in the mesh. Like this  I'm guessing I am supposed to use some kind of node-setup in order to make this work properly, and I have been searching online for a while now, and I can't find anything that is of any help. So basically I want to be able to use my mouth texture on top of my toon shader. Sorry if this confusing, I had a hard time articulating my problem into a comprehensible text. And I'm still on Blender 2.78, since I have a hard time getting used to the UI of 2.8


What's the proper answer to the question "Is Eri's host family kind to her?"

A friend of mine is an Assistant Language Teacher at a junior high school in Japan. The textbook for the grade eight class has the question "Is Eri's host family kind to her?"  If I were to answer that question, I would use a plural and say "Yes, they are." But the main teacher of the class says that the proper answer is "Yes, it is," because the question is asked in the singular form. This seems really unnatural to me.  Which of these is correct, and why? The main teacher will not be satisfied with anything other than an answer that's backed up with proper rules of grammar.


How do you prove that r(2, n) = n in Ramsey numbers?  We have to show that r(2,n)<=n and that r(2,n) >= n.


Should Unity 8 have extensions for customizability

I belief that Unity needs somewhat of a customizability features.  What better time to put it in while they are rewriting the code in C++ for version 8.  I think it's more customizable than the applet features of many desktop environment like KDE, XFCE, to just name a few, because you can change/add the appearance, layout, functionality of something about it.  How could I, or anyone change the layout, and functionality of the KDE's logout dialog? If you try, nice luck with that, without forking the code.  For example, I miss the Dodge Window feature for the launcher when they remove it in version 5.2 of unity, the default version that comes with Ubuntu 12.04 LTS, Their was a fork of unity that re-added that feature, the problem was the person/team who fork it needed to fork it.  I know there is this one extension for Gnome-Shell that allows you to auto-hide the top panel.  There is no truly way to theme unity to the fullest it could be done like the menus.  The best thing about extensions is that the Unity team don't need to maintain them, the community will do it.  Just look at how many there are for gnome-shell in the user repos .  You may miss the applets of Gnome 2, just wounder about an extension that anable to have that functionality?  What do you think what unity should have for customizability?


UnboundLocalError: local variable 'user_a' referenced before assignment

I really cannot figure out how to make the code below work. I am getting this exception:     UnboundLocalError: local variable 'u' referenced before assignment   user_a = "No selection" def if_statement():     user_choice = input("Pick 1 or 2\n")     if user_choice == "1":         user_a = input("What would you like A to equal?\n")         if_statement()     elif user_choice == "2":         print("A equals: " + user_a)         if_statement() if_statement()   Can anybody help me on this? I must specify that I am new to Python. Thank you in advance.


How do we prove that $||a|-|b|| \leq |a-b|$ ? I do know that $|a-b|<|a|+|b|$ from the triangle inequalities. As a matter of fact it does remind me of something, I studied in Complex numbers class, .   However, I can't relate both. I did also tried to expand the inequality, with no success, just too many cases for me to handle. Hopefully I can get an answer here. Thanks.


How to know total number of users logged in at the moment on Stack Overflow

Is there a way to know at morning/night how many users are logged in?  When there are many users logged in there is more probability to get an answer from there.


Generating a char using input from user in C++

I wish to make a char with digits between 0-9. The user decides how many digits to use.  For example, if the user inputs 4, the char should be 01234. Please note I cannot use the string data type. I have to use char.  I know how to generate a string for the same logic but not a char. So if there is a way to convert string to char, that will work well. I tried  string randomString; //this contains the set of numbers 0-9 on the basis of the users  input  char charString = randomString;   This however does not work.


Extract part character from a string using calculated column

I have the following string: XXXX.C.2.0.1  how do I extract just the "C"?  thanks


Filtering questions by bounty in iOS app

How can I find questions with a bounty in the iOS app? (and sort by highest bounty and newest questions)


Here is the question:  Prove that for every $\epsilon>0$ and every set $A\in\mathcal{B}(\mathbb{R}^{n})$ there is a compact set $K\subset A$ such that $P(A\setminus K)\leq\epsilon$.   --I have previously shown that there is a closed set $F$ and an open set $G$ such that $F\subset A\subset G$ and $P(G\setminus F)\leq\epsilon$. For the current problem, I think that we can find $K$ as an approximation of the set $F$, such that $K=F_{N}=F\cap[-N,N]^{n}$, which is compact. I think I am just caught up in the set difference algebra, i.e.,$$P(A\setminus K)=P(A\setminus (F\cap[-N,N]^{n}))=P(A\cap(F^{c}\cup[-N,N]^{c})^{c})=\cdots$$  --Any help on how to finish this is appreciated!


How to render Messages in an AjaxResponse?

I have a modal form which when submitted calls submitModalFormAjax(). I am trying to get the messages that were previously created and use an AjaxResponse command to print the messages to the modal's parent page. I have this code:   $response = new AjaxResponse();   \Drupal::messenger()->addMessage($this->t('Form Submitted Successfully'), 'status', TRUE);   $allMessages = \Drupal::messenger()->all();   $html = \Drupal::service('renderer')->render($allMessages);    $response->addCommand(new AfterCommand('div[data-drupal-messages-fallback]', $html));   $response->addCommand(new CloseModalDialogCommand());  $allMessages seems to contain what I expect and it looks like a render array; but the render call returns nothing. If I replace $html with a simple string; it does print as I expect. What am I missing here? What is returned from \Drupal::messenger()->all() and how do I render it?


Do I have to create vector files at the correct print size?

I had to create an 800mm x 2000mm print and so I started by actually creating a 800mm x 2000mm file in Illustrator.  The file contained only vectors so my question is:  Can I create my file size dimensions to be smaller as long as it keeps the correct ratio for the final print?  Like I said, vector ONLY, no photos or raster images.


Restore console session after remote desktop disconnects?

Is it possible (through group policy, etc) to automatically restore the console session to a Windows 8.1 PC after a remote desktop session disconnects?  I'm aware that you can run the command "tscon 1 /dest:console" during the RDP session to disconnect yourself and reconnect the console session, but is it possible to have this happen automatically?


I am looking for a way to take all the faces of an object and make each face it's own object.   In the image above, you'll see a basic representation of what I'm trying to accomplish. On the left is a shape with faces, all attached. On the right is the result I want, an object for each face. The project I'm working on is much more complicated than this example, so I can't select each face and separate by selection. I have over 3,000 faces to work on.


Another "can't use Alt. Series Conv. test" (How do I determine if it converges or diverges?)

Stumped on yet another absolute convergence problem. (Converge conditionally, absolutely, or diverges)  $$\sum_{n=1}^\infty \frac{(-1)^n \ln(n)}{n} $$  First, I tested for absolute convergence, and the series reduced to $\frac{\ln(n)}{n}$   .....Using direct comparison, $\frac{\ln(n)}{n} > \frac{1}{n}$ I determined this diverges.  So, it does not converge absolutely.  Next, to use the alternating series test on the original series, you need to make sure the magnitude of the terms are decreasing.  Well, they are not:  $$\sum_{n=1}^\infty \frac{(-1)^n \ln(n)}{n} = -0 + .35 - .37 + .35.... $$  So, without using the alternating series test, how do I determine if the orig. series converges or diverges?  How can I use the divergence test (Nth term test)?  I'm not sure what the nth term tends to with that (-1) oscillation.  Just focus on $\frac{\ln(n)}{n}$  But we established that diverges, right?   But, I am told this series converges conditionally.  Do I use integral test?


How to update a small office of Ubuntu computers without downloading multiple copies of updates? (Ideally unattended)

I've used unattended and scheduled updates via root cron and am looking to perform updates on a larger scale (using command line: non gui).   Ideally it would download the updates from the repositories once and share a local copy of the updates amongst the machines.  How to keep an office or cluster of machines up to date in a download efficient manner?


I have dedicated FreeBSD box, The email sending without  is working perfectly but very slow. The receiver receives email after almost 15 mins. I checked the maillog it says delays and timeouts that means the server keeps on trying to send email again and again until it successfully sends one. This is consuming lots of CPU.  I am seeking help for configuring smpt module to use my dedicated box's  smtp server, I need help in following places where I have ???? sign:  #SMTP server settings SMTP server -> smpt.mydomain.com  # Tested by pinging, its working SMTP backup server -> mail.mydomain.com  # Also verified by Ping SMTP port -> 25 USE SSL  #SMTP Authentication Username -> ??????? Password -> ???????   I tried using localhost, also username and password of the dedicated box or leaving both lines blank which gives me:     Unable to send e-mail. Contact the site administrator if the problem   persists.   also checking the debug log doesn't show any log, it says check admin/reports/dblog but when I got to the link it just shows me the contents from admin/reports no any dblog


Finding node in XML by case insensitive sub-string search

I'm reading an XML file and I ask the user to enter the name of the airline you want to search, by leaving the XML in upper case the condition passes and displays the information I want, but when leaving the information in minuscule and minuscule or uppercase, It returns nothing.  public class XMLReader     {         public XMLReader()         {         }         //Fin de metdo leerXML.         public void leerXML()         {             Console.WriteLine("Enter the airline you wish to search: ");             string name;             name = Console.ReadLine().ToUpper();              if (!String.IsNullOrEmpty(name))             {                 XElement info = XElement.Load(                   @"C:\Users\thoma\Documents\Visual Studio 2019\Backup Files\data.xml");                  var airlines = info.XPathSelectElements("aerolinea");                 foreach (XElement el in airlines)                 {                     if (!String.IsNullOrEmpty(el.Element("nombre").Value) &&                        ((string)el.Element("nombre").Value).IndexOf(name) >= 0)                     {                         Console.WriteLine((string)el.Element("origen").Value);                         Console.WriteLine((string)el.Element("destino").Value);                         Console.WriteLine((string)el.Element("fecha").Value);                     }                 }             }         }          static void Main(string[] args)         {             XMLReader xmlReader = new XMLReader();             xmlReader.leerXML();             Console.ReadLine();         }     }   Here is the XML  <?xml version="1.0" encoding="iso-8859-1"?> <aerolineas>     <aerolinea id="01">         <nombre>VIVA COLOMBIA</nombre>         <origen>BOG</origen>         <destino>MDE</destino>         <fecha>01/03/2019</fecha>     </aerolinea>     <aerolinea id="02">         <nombre>HK Express</nombre>         <origen>BOG</origen>         <destino>CTG</destino>         <fecha>01/06/2019</fecha>     </aerolinea>     <aerolinea id="03">         <nombre>Volotea</nombre>         <origen>PEI</origen>         <destino>BOG</destino>         <fecha>01/09/2019</fecha>     </aerolinea>     <aerolinea id="04">         <nombre>Vueling</nombre>         <origen>MDE</origen>         <destino>BOG</destino>         <fecha>01/12/2019</fecha>     </aerolinea> </aerolineas>


Constrain a Neural Network to be monotonic?

Is there a way or theorem that allows me to constrain a function $N(x)$, where $N(x)$ is a feedforward mlp such that it will always be a monotonic function. The simplest way is of course to use a penalty method, but this does not 100% guarantee, I am looking to see if there is a function or transformation that can be applied to $N(x)$ that constrains its form to being monotonic.  The only way I can currently think of is by making all weights $w_{i,j,k} >0$ and that the activation function $f(a)$ are monotonic and non-negative (using $f(a) = \frac{tanh(a)+1}{2}$) and having a zero bias.


Finding the curvature and normal vector for an arclength curve

I am trying to find the curvature and normal vector for $$\alpha(t) = \left(\frac13 (1+t)^{3/2}, \frac13 (1-t)^{3/2}, \frac{t}{\sqrt2}\right)$$  $$\alpha'(t) = \left(\frac12 (1+t)^\frac12 , - \frac 12 (1-t)^\frac12, \frac{1}{\sqrt2}\right)$$ $$\|\alpha'(t)\|=\sqrt{\frac14 (1+t) + \frac 14(1-t) + \frac12}=1$$  This is an Arclength parameterization, so we don't need chain rule for the frenet equations:  Curvature is given by $\|\alpha''(t)\|$  $$\alpha''(t) = \left(\frac14 (1+t)^{-\frac12} , \frac 14 (1-t)^{-\frac12}, 0\right)$$ $$=\frac14 \left((1+t)^{-\frac12} , (1-t)^{-\frac12}, 0\right)$$ $$k(t)= \|\alpha''(t)\|=\frac14 \sqrt{(1+t)^{-1} + (1-t)^{-1}}$$ The normal vector $n(t)=\frac{\alpha''(t)}{k(t)}= \left(\frac{1}{\sqrt{-\frac{2}{t-1}}}, \frac{1}{\sqrt{\frac{2}{t+1}}},0\right)$ isn't orthogonal to $\alpha'(t)$ though? What have I done wrong?


Attack an stream cypher using 2 XORed LFSRs

We know that the Key were generated by 2 16Bit LFSRs (output of both is XORed together -> key)  I already extracted a 64 Bit key sequence, but how can I calculate the polynom of the LFSRs (and the initialisation vector)? Since we have 2 LFSRs XORed together which means its non-lineary I can't use a Matrix to calculate the coefficients, or am I wrong?  I hope somebody understands my problem and can give me some hint.  the known keystream: 1010 1110 0000 0011 1111 0010 1011 1001 0001 0100 1101 0111 1001 0011 1110 1101


I have a new annoying icon on my Razr notification bar.  It is a tiny blinking symbol that sort of looks like a tiny house with a cloud over it.  It is blinking above the network strength bars where the "x" would be if there was no service.  Anyone know what that is?


I thought that PSTricks package was not possible to use in pdfLaTeX but .   How can I force pdfLaTeX to use PSTricks then?


Can I see my active diplomatic deals in Civ 6?

When making deals with AI I'm having a hard time assessing if I'm already trading for the resource or not. Is there a way I can see my currently active deals or deal history?  If not, is there a way I can see which resources I am currently importing?


LineNumberReader.readLine() if query not behaving correctly

I am trying to Find out how often the line "character" is in a .txt file I tried This:  String line; int characterAmount; characterAmountReader = new LineNumberReader(new FileReader(filename)); while ((line = characterAmountReader.readLine()) != null) {     if(line == "<character>") {         characterAmount++;     } }   but for some reason it doesn't work : /


Which book among these would you recommend for first year calculus?

I'm struggling a bit with functions(limits, squeeze theorem, etc).  I have done some research and found a list of books on calculus but I'm not sure which one would be better suited for me, so I would appreciate if some experienced people here could advise me which books would be better to master the basics so I can move on with derivatives, etc. Limits is my main problem, so I need a book which explain this in depth so I can master it. Then I'll keep going on with the same book for other chapters.  Below is the list which I found :   Apostol T.M. Calculus Vol. 1 Burn R.P. Numbers and Functions: Steps into Analysis  Courant R. and John F. Introduction to Calculus and Analysis I - One of the better calculus text in print.  Crowell B. Calculus  Dawkins, P Calculus I and Calculus II  Garrett P. Calculus  Ghorpade S.R. and Limaye B.V. A Course in Calculus and Real Analysis  Gill G.S. Calculus Bible  Guichard D. Whitman Calculu.  Hardy G.H. A Course of Pure Mathematics  Hwang A.D. Calculus for Mathematicians, Computer Scientists, and Physicists: An Introduction to Abstract Mathematics  Santos D. Differential Calculus  Shapiro B.E. Calculus and Analysis  Spivak M. Calculus  Strang G. Calculus  Thomas G.B. and Finney R.L. Calculus and Analytic Geometry  Tranter C.J. Advanced Level Pure Mathematics  Tranter C.J. Techniques of Mathematical Analysis  Veeh J.A. Lectures Notes on Calculus  So far I narrowed my list down to Hardy, Spivak and Apostol based on further research, but I haven't got my hands on these books yet to compare them and I'm not sure if these books will be good for me.  Thanks.


A regular tetrahedron has this property:  For any two of its vertices exists a third vertex, which forms a regular triangle with these 2 vertices. (But it doesn't mean any 3 vertices form a regular triangle)  Are there any other polyhedrons that have the same property?  I think there isn't such a polyhedron. But not sure how to prove it. I've tried proving that there isn't an irregular tetrahedron with this property, assuming that there is a pair of unequal sides.


These are sentences that I saw in a grammar book, called the Oxford guide to English Grammar:   "I find these pills work best." "We ran slowest in the race."   Why doesn't sentence one they say "…work the best…"? Again, the definite article was dropped. Why does sentence two not say "…the slowest…"?  Also, this sentence is quoted from a paragraph in The Official Cambridge Guide to IELT: "They contributed the least at only 17%." Why did they use the here, unlike the other two sentences?


How to get instance of referenced entity?

I have a node object with image field named field_image. When I do  $node   ->get('field_image')   ->first()   ->getValue()   I get array with some properties instead of entity object. The array looks like this:  'target_id' => string '8' (length=1) 'alt' => string '' (length=0) 'title' => string '' (length=0) 'width' => string '587' (length=3) 'height' => string '458' (length=3) '_loaded' => boolean true   '_accessCacheability' =>      object(Drupal\Core\Cache\CacheableMetadata)[1092]       protected 'cacheContexts' =>          array (size=0)           ...       protected 'cacheTags' =>          array (size=0)           ...       protected 'cacheMaxAge' => int -1   Do I have to manullay load the file entity using target_id or there is a way to automatically get referenced entity object from instance of Drupal\image\Plugin\Field\FieldType\ImageItem?  Why the referenced entity is not accessible via getter? It could be lazy loaded if it's not available immediately.


I recently tried to install Ubuntu on my Sony Vaio laptop (Windows 7, 64 bits). I downloaded the .iso file from Ubuntu website and burned it on a DVD.  But when I booted the laptop with the DVD, I got first the keypad icon, then chose the language and the choice whether to Install or Try Ubuntu. Whatever choice I made, it seems that it stops working, I got a black screen, I could not hear the DVD turning, etc...  I also tried to boot with a USB, same story. And I also tried to boot another computer from the DVD and this time I worked. So I don't think the CD wasn't burned correctly.


Server Socket Java send several message but Client receive always the same

I've a problem with Server/Client socket. The server sends several object to the client, but the client always has the first message that receive and doesn't receive the other. If I print a message in the client, it receive message, but if I print these message they are always the same. But if I print the message on server side the message are different. Can you help me? I've seen that if I send Integer all works fine. There is the problem only with the object that I must send. This is the code of the server and the client(they are linked to a GUI and a controller):  Server      @Override public void update(Observable o, Object arg) {          if(o instanceof ModelChanges){             arrayPlayersSocket = socketServerCreate.getArrayPlayerSocket();             Iterator<ObjectOutputStream> arrayIterator = arrayPlayersSocket.iterator();             while(arrayIterator.hasNext()){                 outputMessage = (ObjectOutputStream)arrayIterator.next();                 System.out.println(((ModelChanges)arg).getAzione());                 try {                     outputMessage.writeObject(arg);                     outputMessage.flush();                     /*if(arrayPlayersSocket.indexOf(outputMessage) != controller.getTurn().getCurrentPlayer()){                         ModelChanges modelChanges = new ModelChanges();                         modelChanges.spegniBottoniOnLine(false, false, false);                         outputMessage.writeObject(modelChanges);                         outputMessage.flush();                     }*/                 } catch (IOException e) {                     System.out.println("IOException while the server sends an object to the client!");                     return;                 }             }         }  }   Client      @Override public void run() {      while(true){         try {             message = inputMessage.readObject();             if(message instanceof Integer){                 socketClientCreate.setArrayIndex((Integer)message);             }else if(message instanceof ModelChanges){                 ModelChanges modelChanges = (ModelChanges)message;                 view.getMappa().repaintView(modelChanges);             }          } catch (ClassNotFoundException e) {             System.out.println("ClassNotFoundException waiting a message from the server!\n"+e.getStackTrace());             return;         } catch (IOException e) {          }     }  }


Which are the word orders that can be found in English?

Besides , which are the  that can be found in English? Are there any that are peculiar to dialects such as Singlish or Indian English? Please provide an example sentence for each order along with pertinent information such as tense, mood, voice, etc.


I thought of trying out the demo of Portal before I bought the game and was amazed.  But then after chamber 10 something weird happened that wouldn't allow me to continue to chamber 11.  I wasn't sure whether this is a glitch or the demo was over.     The problem is that the exit from the elevator is very warped.  I can shoot portals into the weird warped wall but I can't walk through it.  What is going on?!


I am using this command to list all files that have been modified in the last day (or created)  find ./ -mtime 1 -ls   However it keeps returning files from 30th April when I am running the command just now (2nd May at 19:38)  Can anyone advise why this is occurring and / or give me a better command to use to find files modified or create in the last 24 hours period


I'm building an application to allow technical people to enter configuration changes.  I'd like to add tags to each change.  Right now I'm using spaces, commas and semicolons.  It appears SO uses spaces and requires hyphens to make multiple words.  I read something that leads me to believe that WordPress uses commas and that a space isn't a separator.  Is there any best practice out there?  Has anyone had any good or bad experiences?


Does chaning the owner of /var folder and subfolder make problem?

I wanted to copy many files in /var folder and it made me slow to use the console (because the owner is root) so I changed the owner of /var folder and all if its subfolder to my user.  After restarting my system, my system can't start and throw low graphic error and it said none of your devices can not be detected. So I go to terminal and try to install my graphic driver but while installing I got these error:  /usr/bin/mandb: can't chmod /var/cache/man/nl/CACHEDIR.TAG :operation not permitted   How should I solve this? I use sudo to install driver


Can someone give me a code how to draw this in LaTex.


trying to count characters, words, and lines in C

So the assignment is to emulate the unix command wc in C.  I've got most of the structure down but I've got some problems with the actual counting pieces.  #include <stdio.h> #include <fcntl.h> #include <errno.h> #include <string.h>  int main(int argc, char *argv[]){  int file; int newLine=0, newWord=0, newChar=0, i=0; char *string; char buf[101];  file = open(argv[1], O_RDONLY, 0644);  int charRead=read(file, buf, 101);  if (file == -1){     printf("file does not exist"); } else{     for (i; i<100; i++){         if (buf[i]!='\0'){             newChar++;         }         if (buf[i]==' '){             newWord++;          }         if (buf[i]=='\n'){             newLine++;         }      } } printf("%d\n",newWord); printf("%d\n",newLine); printf("%d\n",newChar); printf("%s",argv[1]); close(file);  }   So the line counter works perfectly well.  The word count is always one short unless there is a space at the end of the word.  I've tried to ameliorate this by making the special case:  if(buf[i]!='\0' || (buf[i]=='\0' && buf[i]!=' '))   but this doesnt' seem to work either.  The other problem is that the character count is always way off.  I think it has something to do with the buffer size, but I can't seem to find much documentation on how to make the buffer work in this scenario.    Please advise.  Thanks!


I have to merge these two lists. This is my uncompleted coding program so far. I cannot make any further progress. I need to help to finish this assignment. The merged list should contain all of the provided number. Also, if you wish, can you leave a detail solving process for my studying?  public class Lab18bvst {     public static void main(String[] args)     {         int[] jsaList1 = {101, 105, 115, 125, 145, 165, 175, 185, 195, 225, 235, 275, 305, 315, 325, 335, 345, 355, 375, 385};         int[] jsaList2 = {110, 120, 130, 140, 150, 160, 170, 180, 190, 200, 210, 220, 230, 240, 250, 270, 280, 320, 350, 400};          Array list1 = new Array(jsaList1,"List #1");         Array list2 = new Array(jsaList2,"List #2");         Array list3 = new Array("Merged List");          list3.merge(list1,list2);          list1.display();         list2.display();         list3.display();      }  } class Array {     private ArrayList<Integer> list;     private int size;     private String listName;      public Array(String ln)     {         list = new ArrayList<Integer>();         size = 0;         listName = ln;     }      public Array(int[] jsArray, String ln)     {         list = new ArrayList<Integer>();         size = jsArray.length;         listName = ln;         for (int j = 0; j < size; j++)             list.add( new Integer( jsArray[j] ));     }      public void display()     {         System.out.println("\n" + listName + ":\n");         System.out.println(list + "\n");     }      public void merge(Array that, Array theOther)    {       int thatIndex, theOtherIndex;       thatIndex = theOtherIndex = 0;        for (int j = 1; j <= that.size + theOther.size; j++)       {          if (thatIndex >= that.size)          {             while(theOtherIndex < theOther.size)             {                this.list.add(theOther.list.get(theOtherIndex));                theOtherIndex++;             }          }          else if (theOtherIndex >= theOther.size)          {             while(thatIndex < that.size)             {                this.list.add(theOther.list.get(thatIndex));                thatIndex++;             }          }          else if           else        }     } }


How to pass shell variable to an awk search pattern?

In my bash script I have a variable that I am trying to pass to a pattern to search for using awk. However what I expected to happen is not working. I have the following text file (text.txt):  ----------- Task:           a  (some info)   .... ------------ Task:           b   (some info)   .... ------------ Task:           c  (some info)   .... ------------   My script has the following:   letter=a awk -v var="$letter" '/Task .* \var/' RS='-+' text.txt   When I do this however I get nothing but if I do the following:  awk '/Task .* a/' RS='-+' text.txt   I get what I expect:   Task:           a  (some info)   ....   NOTE: I need to pass it as a variable because I have a loop that is constantly changing the variable and that's what I am trying to look for. I'd rather use awk since that what I am most familiar with but I am not opposed to hearing other suggestions such as sed or grep.


mkvirtualenv command is not found on Ubuntu 18.04

My Ubuntu 'Bionic Beaver' installation does not recognize the mkvirtualenv sandboxing command. Although my approach was similar to the "shell startup file" approach highlighted .  How would one go about installing and using the mkvirtualenv and workon commands?


When declaring a template, I am used to having this kind of code:  template <class T>   But , they used:  template <unsigned int N>   I checked that it compiles. But what does it mean? Is it a non-type parameter? And if so, how can we have a template without any type parameter?


how do i install microsoft office from usb

I am new to Ubuntu and I have tried using LibreOffice, but I face a lot of problem using LibreOffice Calc instead of MS Excel.  Please help me get MS Excel back so I can do my work smoothly.  Thanks in advance.


Generalizing a property of one-variable rational functions to multiple variables.

I ask this question in response to a discussion on . If $f(x)=p(x)/q(x)$ is a one-variable real rational function, then for each $r\in \mathbb{R},$ $f(x)=r$ has at most $d=\max\{\deg(p),\deg(q)\}$ solutions; this is due to the Fundamental Theorem of Algebra. So, for instance, if we had a rational function of one variable of the form quadratic/quadratic that took the same value at four points, we could conclude it is constant. Does a similar result hold for multivariable functions? If so, when; if not, does a partial result hold?


Cross Product of two sets A and $\varnothing$

The cross product of two sets is A and B is $\{ (a,b): a \in A \text{ and } b \in B \}$  $A \times \varnothing = \{ (a,b): a \in A \text{ and } b \in \varnothing \}$  Let $A = \{ x, y, z \}$  Then $A \times \varnothing = \{ (x,\varnothing), (y,\varnothing), (z,\varnothing) \}$  But $A \times \varnothing = \varnothing$  Where I am going wrong ?


Why does friction play the role of centripetal force during the turning of a car?

What makes frictional force the centripetal force of a car turning along a curve? As friction is the opposing force and acts anti-parallel so there is no component of frictional force towards the center,right? Then how can frictional force be centripetal force?


What is the difference between sector and cluster?

I have gone through wikipedia and other sites and here's the information I have obtained.  Sector: Smallest Addressable Unit (mostly 512 bytes) Cluster: Smallest Allocation Unit (equals to 1 or more sectors and the number of clusters depends on the file system).  Let's say in the below example:  sector =512 bytes and a cluster =8 sectors=4096 bytes. Now, I am having a hard time figuring out, when I am trying to create a file what does the file system do? Does it consider 4096 bytes as the smallest write/read unit or 512 bytes?  If the answer is 4096 bytes: When the manufacturer of the disk drives has provided 512 bytes as the smallest addressable unit, why does the file system consider cluster as the smallest unit? I mean, what are the advantages in doing so?


Prove that the derivative of an even differentiable function is odd, and the derivative of an odd differentiable function is even.


Can you use Skyrim Legendary Edition mods on the normal edition?

I just figured out I had Skyrim in my Steam games. It's the 32-bit non-Legendary Edition Skyrim without any DLCs. Can I still use Legendary Edition mods on it?


Access Stack Exchange using Pale Moon browser

I'm giving the browser  a try, it's been fine so far apart from that I can't login to Stack Exchange on it. I've tried to login in multiple times, and on every attempt the banner at the top appears saying "welcome back [user]..." but then I am redirected back to the page which I tried to login from. To illustrate:    I really like the browser, but I can't use it if I can't access this website! So I'm hoping that it's not a bug and rather than I've not installed a certain plug-in or something.


What happens to the votes given to an answer, if the answer is undeleted after months?

Suppose an answer that was voted (up-voted and/or down-voted) is deleted, and undeleted after months. When it is deleted, any reputation change because that answer is removed. What happens when the answer is undeleted?


The order of $GL_2 (\mathbb{Z}/p)$ seems to be $(p^2 - 1)(p^2 - p)$ using the fact stated in  Wiki page.  Quoting a line from there :     This can be shown by counting the possible columns of the matrix : the first column can be anything but the zero vector; the second column can be anything but the multiples of the first column; and in general, the $k$ th column can be any vector not in the linear span of the first $k − 1$ columns   I know that the the number of distinct (unordered) bases of an $n$-$\text{dim}$  vector space over $\mathbb{F}_p$ is $\frac{(q^n - 1)\cdots (q^n - q^{n-1})}{n!}$ (call this Lemma $1$). I have an understanding of its proof as well.  I am not very much aware of matrices and I have not worked with them.   $\color{red}{[1]}$ How do I prove this using the Lemma $1$ stated above (and/or using the strategy written on the wiki article)?  $\color{red}{[2]}$ It appears that $\left\{\begin{pmatrix} 1 & 0\\ 0 & 0 \end{pmatrix} , \begin{pmatrix} 0 & 1\\ 0 & 0 \end{pmatrix}, \begin{pmatrix} 0 & 0\\ 1 & 0 \end{pmatrix}, \begin{pmatrix} 0 & 0\\ 0 & 1 \end{pmatrix} \right\}$ forms a basis of $GL_2(\mathbb{Z/p})$ which makes it $4$-$\text{dim}$. Why do we work with $n=2$ for this then?


As I usually just switch between windows that are already open, I don't see my desktop often so I'm not sure when this happened, but at some point somewhat recently everything on the desktop disappeared. I still have a desktop folder with all the files accounted for, but that's it. If I try to drag/drop anything to the desktop, it doesn't work. Things are visible if I switch to another DE.  I'm still a Linux newbie, though I managed to figure out how to switch to Nemo around the same time. Don't remember which I did first, but there was some time between switching file managers and the desktop breaking. How do I diagnose/repair this?


If $G$ is abelian, prove that $H = \{g \in G \mid g^2 = e\}$ is a subgroup of $G$.

Let $G$ be an Abelian group. Prove that $H = \{g \in G \mid g^2 = e\}$ is a subgroup of $G$.  I know something similar to this has been asked, but I just want to check my understanding/reasoning:   We want to show: identity inverse closure we know: $G$ is abelian, therefore for all $a,b \in G$, $ab=ba \in G$. Is this reasoning correct: Because $G$ is abelian and $g$ is an element of $G$, $H$ must be closed under multiplication.  We are also given that $gg=e$, and since $H$ is closed under multiplication, $e \in H$.  We must now show that every element of $H$ is its own inverse. <---- This is where I get stuck....


Prove that logical statement $\phi$ build only with $\leftrightarrow$ is tautology iff every atomic statement of $\phi$ appears even number of times

Prove that logical statement $\phi$ build only with $\leftrightarrow$ is a tautology iff every atomic statement of $\phi$ appears even number of times. Hints please, thank you


I am a total newbie.  I managed to install Ubuntu 18.04 on a Dell Inspirion 15, but I have no wi-fi.  I stumbled onto a terminal and typed lshw -C network and got the following:  *-network                     description: Network controller    product: BCM43142 802.11b/g/n    vendor: Broadcom Limited    physical id: 0    bus info: pci@0000:06:00.0    version: 01    width: 64 bits    clock: 33MHz    capabilities: pm msi pciexpress bus_master cap_list    configuration: driver=bcma-pci-bridge latency=0    resources: irq:18 memory:aa100000-aa107fff     *-network    description: Ethernet interface    product: RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller    vendor: Realtek Semiconductor Co., Ltd.    physical id: 0    bus info: pci@0000:07:00.0    logical name: enp7s0    version: 07    serial: 74:e6:e2:39:fd:98    size: 10Mbit/s    capacity: 100Mbit/s    width: 64 bits    clock: 33MHz    capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation    configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8106e-1_0.0.1 06/29/12 latency=0 link=no multicast=yes port=MII speed=10Mbit/s    resources: irq:19 ioport:3000(size=256) memory:aa000000-aa000fff memory:c0000000-c0003fff   What next? I'm clueless!


Does main thread in Java always run faster than any other new threads?

Look at the codes below, it always shows "Main Thread Done".     private static class Person{         private String name;     }      public static void main(String[] args) throws InterruptedException {         final Person person = new Person();          new Thread(()->{              System.out.println("new Thread Done");             //person.name = "Jack";          }).start();           //person.name = "Tom";          System.out.println("Main Thread Done");           //System.out.println(person.name);     }  My question is, why does the main thread always run faster than new thread? Is it possible for result "new Thread Done"? I've tried on Windows, CentOS, macOS, both "Main Thread Done". I didn't find any documents said that main thread in java always faster than any others.


Blackmagic Design's Resolve video editor, V14.0.1, requires libpng12. Unfortunately, only libpng16 is provided with the new 17.10 release.   Is there a way to revert to libpng12 under 17.10? If so, how do I get libpng12 - synaptic doesn't list it when I search for it.


Why can't I set a default output audio device in Ubuntu 19.10?

My laptop with Ubuntu 19.04 detected and set my HDMI output on every boot. But since I upgraded to 19.10, I need to set it manually every boot as follows:  From    to    I already tried every single solution proposed in , but apparently there's something different in 19.10. What I did specifically:   pactl   $ pactl list short sinks 9   alsa_output.pci-0000_00_1f.3.hdmi-stereo-extra1 module-alsa-card.c  s16le 2ch 48000Hz   SUSPENDED  $ pactl set-default-sink 'alsa_output.pci-0000_00_1f.3.hdmi-stereo-extra1'    Add either the device number and device name in /etc/pulse/default.pa like:   set-default-sink 9  and  set-default-sink alsa_output.pci-0000_00_1f.3.hdmi-stereo-extra1  and  set-default-sink 'alsa_output.pci-0000_00_1f.3.hdmi-stereo-extra1'    Comment the line load-module module-switch-on-connect. Switch profiles in PulseAudio Volume Control to HDMI2.   None of these persisted after reboot.


Slinky reverb: the origin of the iconic Star Wars blaster sound

This is a fun problem that I came across recently, which I'm posting here for your delectation. We all love a good slinky: they can be used for all sorts of fun demos in physics. One example is the "spring reverb" effect, which is well known in the film sound effects industry. If you couple a microphone to a slinky, and then tap the slinky, it produces a wonderful chirping noise. This is actually how they made the sound of the blasters in the Star Wars film franchise.   Watch and enjoy  for a scaled-up example. The slinky in this case is a coil of 3.5mm galvanised steel, 100m in length. A piezo transducer is used to pick up the sound. What property of the coil allows it to produce such an interesting noise?


Moving multiple SVN repositories into one

I have looked at multiple questions and none seem to match what I am trying to do.  I started down the path of dump, filter, load but that didn't seem right.  Move may do it but it doesn't feel right since I am combining and versions seem like they will be over-written.     My current structure looks like:  /REPO      /Project_1            /trunk            /branches            /tags      /Project_2           /trunk           /branches           /tags      /Project_3          /trunk          /branches          /tags     I would like to move them into a structure that looks like  /REPO_NEW      /trunk           /Project_1           /Project_2           /Project_3      /branches           /Project_1           /Project_2           /Project_3      /tags           /Project_1           /Project_2           /Project_3   I would like to preserve the history once the restructuring is complete.  The brute force appraoch of disconnecting everything and redoing my directory/file structure and then commiting into the new repository if my absolute fallback as history is lost.


How can we resolve the current drama without causing any more harm to vulnerable groups?

Context: I am a non-binary user who uses singular they as my chosen pronoun. I'm also a relatively new user who just started paying attention to meta right when the situation over the sudden firing of a moderator was becoming a thing.  First, my thoughts on the Monica situation (). From what I've been able to glean about the situation I personally believe that SE mishandled the situation. I feel that they violated their own rules and values by moving way too quickly. I would like it if the issue of Monica's rehiring was put before the moderators and that they would be allowed to make a decision on how things should proceed on that front.  Now onto what I feel about the whole CoC drama. I personally think this situation has been mishandled by both the community and SE. I personally feel that SE should've delayed the release of the new change until after the Monica situation was fully dealt with. This would've allowed for people to disassociate this new change from the previous situation and would've allowed users to approach it with a perspective untainted by anger.   While I do feel SE is at fault for how this was received I also feel that some of the communities' reaction, especially the lashing out at members of the LGBTQ+ community, has been completely inappropriate. Within the past few weeks, I feel like I haven't been welcome here. I have felt attacked and demonized simply because of who I am. It honestly makes me hurt and sad that a community that I had felt was a bastion of rational thought has descended into fights over what I feel should not be a difficult question, but a trivial decision to extend a certain group of people a basic amount of human respect.  While I do feel that many protesting these changes have good intentions I still feel that many hurtful and disrespectful things have been said. whether they were intentional or not doesn't matter. I feel that both the community and SE should hold a burden of shame when it comes to this.  How we can resolve this current drama? And how we can do it without causing further harm to vulnerable groups?


What does it mean when the rank (number of non-zero rows) of a reduced matrix is MORE than the number of variables?

The below is just me trying to explain my thought process, but it's not necessary to read it to understand my question. My question is just: what does it mean when the rank of a matrix is MORE than the number of variables in the matrix?   Let's say A is an augmented matrix in reduced row echelon form. I know that:   If the rank of A is less than the number of variables in the system of linear equations that A is representing, then there are an infinite amount of solutions to the system (there are x free variables where x = number of variables-rank[A]). The way I justify this is: if there isn't at least one row per variable, at least one variables is "unaccounted for" and therefore can have an infinite amount of values.   If the rank of A is equal to the number of variables (i.e. x = 0 using the above definition of x), then there is a single, unique solution).   But what does it mean when there are MORE non-zero rows than variables? Using the above though process, this would mean that one variable is accounted for more than once. Does that mean there are no solutions to the matrix because one variable is said to have two different values? What if the values agree with each other?  Sorry if this is a stupid question, any help is greatly appreciated!


What is the motivation for the $\mathrm{Spin}(n)$ group to be the double cover of $SO(n)$?

The $\mathrm{Spin}(n)$ group is defined to be the double cover of $\mathrm{SO}(n)$. In the case of $n > 2$, this agrees with the universal cover. However, for $n=2$, the physically relevant group should be the universal covering group of $\mathrm{SO}(2)$ rather than $\mathrm{Spin}(2)$. So why do we define it this way and in what cases is $\mathrm{Spin}(2)$ ever useful? Why is it worth to be considered?


Prove inequality $\sqrt{\frac{2a}{b+a}} + \sqrt{\frac{2b}{c+b}} + \sqrt{\frac{2c}{a+c}} \leq 3$

How to prove the following inequality : $$ \sqrt{\frac{2a}{b+a}} + \sqrt{\frac{2b}{c+b}} + \sqrt{\frac{2c}{a+c}} \leq 3 $$ with $a>0,\  b>0$ and $c>0$.


Maximum number of threads in a .NET app?

What is the maximum number of threads you can create in a C# application?  And what happens when you reach this limit?  Is an exception of some kind thrown?


Shift+home and shift+end don't work in laptop

I'm using Ubuntu 14.04 and these key combinations do not work. If I toggle NumLock then Home and End without Shift don't work properly. I found some proposed solutions for older versions of Ubuntu but they refer to menu settings that no longer seem to exist.


I have a question and I'm really struggling to grasp what I need to do. I have Rolle's theorem and Mean Value Theorem given to me, and the question follows;  Let $f(x)$ be a continuous function on $[0,1]$ such that $$\int_{0}^{1} f(y) dy = 1$$  Prove that then $f(x)=1$ for some $x\in[0,1]$.  I don't know if it's the way this is worded but I've never been so confused in my entire life! Thanks in advance.


Malloc inside a function call appears to be getting freed on return?

I think I've got it down to the most basic case:  int main(int argc, char ** argv) {   int * arr;    foo(arr);   printf("car[3]=%d\n",arr[3]);   free (arr);   return 1; }  void foo(int * arr) {   arr = (int*) malloc( sizeof(int)*25 );   arr[3] = 69; }   The output is this:  > ./a.out   car[3]=-1869558540  a.out(4100) malloc: *** error for object 0x8fe01037: Non-aligned pointer                          being freed  *** set a breakpoint in malloc_error_break to debug >   If anyone can shed light on where my understanding is failing, it'd be greatly appreciated.


If $a$ is not a multiple of a prime $p$, then prove that there is an integer $b$ such that $p^b-1$ is a multiple of $a$.


Could entangled particles be used for communication?

As you probably know, when 2 particles are entangled, they share some properties, even when separated long distances. If 2 devices each had entangled particles, would it be possible to communicate though them, by changes properties of one, which changes the properties of the other. If this was possible, then we could communicate faster than light. But, is it possible?


Can't boot into Ubuntu after installing alongside Windows on Dell Inspiron 3542

Today I installed Ubuntu on a partition on my Hard drive, which already had Windows 10 installed. When I boot up my laptop Windows Boot Manager automatically boots into Windows. I have heard that I need to enable GRUB but I'm not even sure how I can get back into Ubuntu. I tried enabling UEFI in boot options but I can only see Windows Boot Manager and not an option to boot into the Ubuntu partition. Any help would be great.


I have this code which adds html element to a div element by clicking the "practice button". However, when I click the submit button on the form, it does not call the "Selected Practice Option". However, my other form on the website calls the "Selected Practice Option". The code does not invoke the jQuery event of "Selected Practice Option". There are no errors in the jQuery code and the html code. Is this an error with jQuery?    /* Pratice Button Clicked Event */     - 35     $("#ob-practice").click(function(){     2 36         $("#newComboDiv").css("display","none");     2 37         $("#practiceComboDiv").css("display","inline-block");     2 38         var data = JSON.parse(localStorage.getItem('c'));     2 39         var text = "<form id='comboselect' action='#'> <select name='option-name'>";     - 40         for (var i in data){     3 41             var m = data[i];     3 42             text += "<option> " + m.name + "</option>";     3 43         }     2 44         text += "</select>"     2 45         text += "<button type='submit' value='submit'> Submit </button> </form>"     2 46         $("#combo-menu").html(text);     2 47     });     | 48     /*Selected Practice Option */     - 49     $("form").on("submit",function(e){     2 50         e.preventDefault();     2 51         var data = $('#comboselect').serializeArray();     2 52         alert("test");     2 53      2 54     });


How do I share an entire album in iCloud photos? Not just individual pictures

I have several albums with photos taken on an iPhone, which I view and work with at . I can select individual pictures and create a share link, and I do this all the time.  But when I select an album, all the share links ghost out.    How can I use iCloud Photo to share whole albums with others?  PS: I'm aware of  but this recommends to use iCloud Photo Sharing which isn't available from iCloud Photos.


I'm trying to install KVM\qemu on Ubuntu 18.10.  According to  I'm running the command:  apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils   and get an error about the packge "libvirt-bin" and "ubuntu-vm-builder":  E: Package 'libvirt-bin' has no installation candidate E: Unable to locate package ubuntu-vm-builder   I see that the package "libvirt-bin" is .  The main repository is set. Anything that I'm doing wrong? Couldn't find any info regrading this issue.  Is it the new Ubuntu version (18.10)?  Thanks


I am trying to model a multivariate time series of percentages. And here's the kicker, at each point, each of my individual time series are bound between 0 and 1, and their Sum per period equals 1. An example of such time series would be,   Y1={0.1,0.3,0.6} Y2={0.2,0.3,0.5} ...   I am thinking of using Genetic Programming and compare it with ARIMA to forecast in and out of sample. I was looking for a while on how to model these issues (someone on this forum with a similar problem modeled ratios, which is not an option for me). If there is no way, I will just model the time series as is and then shave off or add the proportional difference, but this seems like a very ad-hoc procedure. Any ideas?


What is a serialVersionUID and why should I use it?

Eclipse issues warnings when a serialVersionUID is missing.       The serializable class Foo does not declare a static final   serialVersionUID field of type long   What is serialVersionUID and why is it important?  Please show an example where missing serialVersionUID will cause a problem.


Dihedral group $D_4$ (symmetries of a square) is isomorphic to a subgroup of $S_4$ (permutation group)

I have this problem that I have been stuck on for a while. I know that I can write the elements of $D_4$ as products of the identity, rotation by $90$ degrees and a vertical reflection and I have already written the $8$ elements of $D_4$ as their cycle notation is $S_4$ but have no idea what to do from there and would really appreciate the help!


How to gather full network usage statistics on a freebsd router?

I have a freebsd box, which serves as a router from LAN to the outside world. It has several Internet providers, OpenVPN servers and clients, NAT and so on.  I would like to have complete statistics on when, who, to whom, via which provider, via which protocol, and how many bytes have been sent.   I agree that the minimal time scale will be an hour, i.e. no need for millisecond precision.  I tried vnstat2, ntopng and some other programs, but they don't seemed to have what I need or it is not obvious.   I don't understand, why this feature is not easily available. But I am not good in freebsd, so please, give me some clues.


What is the relationship between regression and linear discriminant analysis (LDA)?

Is there a relationship between regression and linear discriminant analysis (LDA)? What are their similarities and differences? Does it make any difference if there are two classes or more than two classes?


I have researched so much in the last few days and have given my enough head in that issue. What I'm trying to achieve is to print directly from web using a print button. I don't want to browser print popup to appear. There will be 2 printers attached to my web application and I want the printer selection automatically.  I know that it is not possible with PHP or without any browser extension or active x plugin.   I also thought a solution to send the print request using web sockets while a java socket client application installation over the user system.   Please suggest me any time saving solution to my problem


How can I make an outlined path thinner in illustrator?

I have been given some SVG icons which are all outlined paths. I need to make the strokes thinner to be consistent with the rest of a design I'm working on. Is there a way to do this without reconstructing the icons from scratch?  (What I am asking to do is )


Can I prevent unauthorized users from accessing files without storing files outside the document root?

I have an interesting dilemma... I am hosting several .mp4 files on a WAMP server. I am well aware of the method of storing files outside of the document root and using a PHP script to authenticate a user before retrieving the file contents. However, these .mp4 files are required to be inside the document root. Is there any way that I can authenticate a user who is trying to directly access one of these files? I have tried a .htaccess rewrite that takes a requested URL ending in ".mp4" and redirects to a PHP script passing the requested file as a parameter, but of course this just loops.   This is the rewrite rule in the .htaccess file...  RewriteEngine on RewriteRule ^(.*).mp4$ /media/auth.php?file=$1.mp4   The idea was, a user will try to access , this reuest would get routed to a PHP script (auth.php) that would pick up the requested file from the URL using $_GET['file'], it would authenticate the user using a $_SESSION variable, and then user a header('Location: ' . $file) to send the authenticated user to the actual file. Again, I realized quickly after implementing this that it would just loop...  Any help would be greatly appreciated. Thanks!  Here's why they cannot be outside the doc root...  @IdontDownVote, very complicated, but I'll attempt a short version... I have this MOSTLY working great with files outside the doc root, with one serious issue. When I access the files using the PHP script, I am able to view the video in the Chrome browser, play, pause, rewind, the whole deal. The only (big) problem is when I use this method, I am not able to Cast the video. When I access a .mp4 file directly, it gives me the option to Download or Cast, but using the PHP script, only the Download option is available. Believe me, I have tried everything including discussing with two Google developers. I posted on Stack Overflow about this issue here with no joy...    I am not sure why this is getting downvoted, this is causing my a lot of headache and I am just looking for advice...


Undefined symbols for architecture x86_64 (using clang)

I was trying to make a list with genericity, and when I try to compile this is what it says:  Undefined symbols for architecture x86_64:   "List<int>::List(int)", referenced from:       _main in main.cc.o   "List<int>::~List()", referenced from:       _main in main.cc.o   This is what I have typed in my .cc and .h  node.h  #ifndef __NODOS_LISTA_DOBLE__ #define __NODOS_LISTA_DOBLE__ #include <vector> template<class T> class Node{ private:     Node<T>* back;     Node<T>* next;     T key; public:     Node (T key);     virtual ~Node(); }; #endif   node.cc  #include "node.h" template <class T> Node<T>::Node(T key){     this->head=nullptr;     this->heap=nullptr;     this->key=key; } template <class T> Node<T>::~Node(){}   list.h  #ifndef __LISTA_DOBLEMENTE_ENLAZADA__ #define __LISTA_DOBLEMENTE_ENLAZADA__ #include "node.h" #include <vector> template<class T> class List { private:     Node<T>* head;     Node<T>* heap; protected: public:     List (T key);     List (std::vector<T>& v);     virtual ~List();     void MakeListNull(); }; #endif   list.cc  #include "list.h" template <class T> List<T>::List (T key){     head=new Node<T>(key);     head->back=nullptr;     heap=head;     heap->next=nullptr; } template <class T> List<T>::List (std::vector<T>& v){     if(v.size()>0){         head=new Node<T>(v[0]);         head->back=nullptr;         Node<T>* nx=head;         for (int cont=1;cont<v.size()-1;cont++){             nx->next=new Node<T>(v[cont]);             nx->next->back=nx;             nx=nx->next;         }         heap=new Node<T>(v[v.size()-1]);         heap->next=nullptr;     } }  template <class T> List<T>::~List(){     this->MakeListNull(); }  template <class T> void List<T>::MakeListNull(){  }   main.cc  #include <iostream> #include "list.h"  int main (int argc, char** argv){     List<int> miLista(5);     return 0; }   I have been looking all the evening on internet and don't know why that error keeps popping, if anyone could help me I would be so grateful.


Question: Suppose a family has 2 children, one of which is a boy. What is the probability that both children are boys?  My attempt:  P(both are boys | one is a boy)  = P(both are boys AND one is a boy) / P(one is a boy)  = P(one is a boy | both are boys) * P(both are boys) / P(one is a boy)  = 1 * (1/4) / (1 - 2(1/2)^2)  = 1/2   But the real answer is 1/3. Why?


Pythonic way for Accessor and Mutator Method at class level

I am learning OOP with Python and I am trying to figure how to get the accessor and mutator method for class level variables. I have no issues with instance level variables but I am having trouble with the class level ones. from abc import ABC, abstractmethod  class Book(ABC):     #Class Variable     _libraryLoanDuration = 14      def __init__(self, bookName, yearPublished, cost):         self._title = title         self._yearPublished = yearPublished         self._cost = cost       #Accessor for class variable     @property     def libraryLoanDuration(cls):         return cls._libraryLoanDuration      #Mutator for class variable     @classmethod     def libraryLoanDuration(cls, newlibraryLoanDuration):         cls._libraryLoanDuration = newlibraryLoanDuration


Extending to a disc means fundamental group is trivial

Working on this problem.      If any $f:S^1\rightarrow X$ extends to a $F:D^2\rightarrow X$, then $\pi_1(X, x_0)$ is trivial.    We can turn any loop $f^\prime:I \rightarrow X$ in $\pi_1(X, x_0)$ into an $f:S^1\rightarrow X$ by defining $f(x) =f^\prime \left(\frac{1}{2\pi}\operatorname{Arg}(x) \right) $.   I want to finish without explicitly showing that $f$ is homotopic to a constant map. (This is part of the "the following are equivalent proof" with that as part (a) so I would like to avoid assuming that or proving it midway. I should be able to do it with the extension map only.) I think I am supposed to use induced maps here and make some kind of diagram but I'm not sure how.


How to put an enumerated list(or a part of it) in a box, excluding the numbered bullets?

doesn't go in box   goes in box   goes in box   doesn't go in box   the numbers don't go in box      I'm using \begin{enumerate} for the list.


What's a safe, green, practical, affordable and effective way to physically destroy hard drives with household tools?

I've been googling around this, and can't really get a satisfying answer.  I want to destroy the drives (old fashioned magnetic hdds) myself, not give them to a recycling company. I know reputable ones exist... but hell, I just don't want there to be any chance my DEA brother -in-law finds out about the international meth ring that I'm operating, so get off my case, ok?  Some of the articles seem to be showcasing  you can have with this project. Shoot a hard drive! Melt a hard drive! Blow up a hard drive! I don't really know what to say to all that, except that it's stupid.  On the other hand, I am not going to buy a purpose-built hard drive crusher. It's my understanding that when you smash up a drive with a hammer it releases toxic fumes... I don't want that.  So, how do you destroy it? And what do you do with the bits afterward?


I want to extract the (paragraph) within the html tags in Python       &lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small; font-family: lato, arial, helvetica, sans-serif;&quot;&gt;   Irrespective of the kind of small business you own, using traditional sales and marketing tactics can prove to be expensive.   &lt;/span&gt;&lt;/p&gt;   My code is   from HTMLParser import HTMLParser  from bs4 import BeautifulSoup  x = """&lt;p style=&quot;text-align: justify;&quot;&gt;&lt;span style=&  quot;font-size: small; font-family: lato, arial, helvetica, sans-serif;&quot;&gt; Irrespective of the kind of small business you own, using traditional sales and marketing tactics can prove to be expensive. &lt;/span&gt;&lt;/p&gt;"""  p1 = HTMLParser() p1.unescape(x) bdy_soup = BeautifulSoup(p1.unescape(x)).get_text(separator=";") print(bdy_soup)   this code is not returning anything please help me to do so ,, any help would be appreciated


Would it be a good idea to change the migration destination sites based on the question tags?   allows one to select from a limited number of destination sites. This group of sites is the same for a whole site, to keep the list short. However, if a question is tagged with , it is likely that  would be a good destination.  What do you think of extending the destination list based on question tags? This would give smaller SE sites a chance of migration input, without polluting the list for all questions. So you still have three or four standard destinations, and then add tag-based destinations to the list.


What is the difference between nohup and crontab?

Say I want to delete the contents of a directory every hour, what is the difference between having let's say a python script do this for me: nohup python dir_cleaner.py & vs setting a cronjob to do this for me? Couldn't find a cut-clear explanation for this difference. Let's say I'd also like to have every hour the exact date + the files listed that were in that directory and have this output to a file prior to the files being deleted. What is the best approach? Apologies if duplicate.


SQL Server 2012 database in suspect mode after upgrade from Developer to Standard Edition

SQL Server database is in suspect mode after an upgrade from developer to standard edition 2012 version. In the log file there are two errors: 933 and error 905. Following error occurred when we tried to get the database back online.     Msg 5069, Level 16, State 1, Line 1 ALTER DATABASE statement failed. Msg 905, Level 21, State 1, Line 1 Database 'VTSDB' cannot be started in this edition of SQL Server because it contains a partition function 'FNprocessedrawdata'. Only Enterprise edition of SQL Server supports partitioning. Msg 933, Level 21, State 1, Line 1 Database 'VTSDB' cannot be started because some of the database functionality is not available in the current edition of SQL Server.


Method does not exist or incorrect signature?

I have a call to a method in a class as follows:  String key1 = "test1"; String key2 = "test2";  long[] datalr = new long[] {}; datalr = TestClass.callerSub(key1,key2);   The test class is as follows:  public class TestClass {  Public TestClass { }  public long[] callerSub(string key1, String key2){  long[] datalr = new long[] {0,0};  datalr[0] = 2; datalr[1] = 3;  return datalr;  } }   I'm getting the following error in the first class:  Error: Compile Error: Method does not exist or incorrect signature: TestClass.callerSub(String, String) at line 54 column 12       which is the following line:  datalr = TestClass.callerSub(key1,key2);   The datalr data in the callerSub method is just an example above,  Any idea why?  Thanks


How can travelers ensure their safety when flying during the COVID-19 epidemic?

In light of the current pandemic, how can travelers ensure that they're not infected while taking the plane? Would it be sufficient to wear a N95 mask with protective goggles or does one require a full-blown hazmat protection suit to ensure absolute safety?  I am aware that the best course of action is to avoid travel altogether, but let's presume that this is not an option.


I have a wormControl class, which should inherit from MyUserControl, but when building the solution, the wormControl is being inherited from UserControl.  Anyway, I want it to inherit from MyUserControl. How to implement it?  Here is my XAML file for UserControl:  <UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:System="clr-namespace:System;assembly=mscorlib" mc:Ignorable="d" x:Class="FishGameAnimations.wormControl" d:DesignWidth="575" d:DesignHeight="339"> /* ...other stuff... */ </UserControl>


I've written a login system in PHP, using a MySQL-database. Currently I'm just saving the users' email-addresses as plaintext in the database. But I'm wondering if I would be better off encrypting these email-addresses to decrypt them later on when I need them.  Let's say, if someone would actually be able to inject some SQL inside a query, and make the entire users-table appear on his screen, he would be able to view all email-addresses in the database and spam them with full power.  Would storing encrypted email-addresses be an interesting thing to do, or not? The fact that I use PHP actually doesn't matter.  BTW: As far as I know my login-system is completely safe for SQL-injection (mysqli_real_escape_string) and XSS-attacks (htmlspecialchars) (as far as I know).


Can a creature's sacrifice benefit be taken when it is sacrificed to Eldrazi Monument?

I asked a general question about , but thought it better to ask a specific question. If a creature has a "Sacrifice this creature for X" ability, can you sacrifice it for that ability and satisfy the requirement of the  with the same sacrifice (assuming it is done during the upkeep)?  Oracle Text:   Creatures you control get +1/+1, have flying, and are indestructible. At the beginning of your upkeep, sacrifice a creature. If you can't, sacrifice Eldrazi Monument.


How to pass parameters to function in a bash script?

I'd like to write a function that I can call from a script with many different variables. For some reasons I'm having a lot of trouble doing this. Examples I've read always just use a global variable but that wouldn't make my code much more readable as far as I can see.  Intended usage example:  #!/bin/bash #myscript.sh var1=$1 var2=$2 var3=$3 var4=$4  add(){ result=$para1 + $para2 }  add $var1 $var2 add $var3 $var4 # end of the script  ./myscript.sh 1 2 3 4   I tried using $1 and such in the function, but then it just takes the global one the whole script was called from. Basically what I'm looking for is something like $1, $2 and so on but in the local context of a function. Like you know, functions work in any proper language.


Check if convergent in the end points of the convergence interval

I have to find the radius of convergence for $\displaystyle\sum_{n=0}^{\infty}\frac{n}{n+1}x^n$, for x$\in$R. I think it is $r^{-1}=\lim_{n\to\infty}\frac{a_{n+1}}{a_n}=\lim_{n\to\infty}\frac{ \frac{n+1}{n+2} }{ \frac{n}{n+1}}=1$ so r=1. Then I have to find out if $\displaystyle\sum_{n=0}^{\infty}\frac{n}{n+1}x^n$ is convergent in  the end points of the convergence interval. I think I have to check for $|r|$. But we can't use ratio test (L=1) or integral test(not decreasing) for $\displaystyle\sum_{n=0}^{\infty}\frac{n}{n+1}$. How can I then check if it's convergent in the end points of the convergence interval?


So guys i want to install ubuntu. I have a laptop running windows 10 and i have aan empty external HDD that i want to install ubuntu to. i tried using ubuntu 18.04 LTS and minimal ubuntu 18.04 LTS but both failed. Normal one didn't even open installer for ubuntu, minimal one failed installing (couldn't download some necessary files). I am currently looking for a program like WinToUsb that can install ubuntu to my HDD from Windows and i can boot up normally. BTW i did some research and there are some programs like LiLi that you can use linux but i want to use the full linux. Is there a solution to my problems.  EDIT: The problem was caused by the .iso file. i re-downloaded it and installed it from my rooted phone using DriveDroid and it worked on second attempt. On first attempt ubuntu's file downloading didn't finish so i restarted the setup and didnt coonect to the internet and it installed normally. And the updates where made after installation.


Every time I attempt to log on to the apple developer forums it tells me I need to create a new user account (even though I already have one), and when I try to sign up it gives me an error:   Anyone else have this issue and/or know how to fix it? Thanks!


Is it possible to reference a dynamically-generated list that's being iterated over in a for loop?

I have a for loop that iterates over a list which is returned by a function. Inside the for loop, I would like to perform a method on this list (list.index()) but I don't know how to reference it since it's dynamically generated by a function. I have the following code: for i in get_order(feature_matrix.shape[0]):      eta = 1/(<<iterated list>>.index(i)+1)  where get_order(n) returns a randomized range(n) list, e.g. [1,0,2]. This list is then iterated over in a for loop. I don't have direct access to this list, or do I? My workaround so far is: list = get_order(feature_matrix.shape[0]) for i in list :      eta = 1/(list.index(i)+1)


What is the probability that when a dice is rolled $6$ times, the sum of scores is $20$?

A similar but easier question is   “What is the probability that when a dice is rolled $3$ times, the sum of score is $13$ ?”  For which you can easily solved by listing down all the possible combination of three numbers $(\leq 6)$ to get $13$.  But if the dice is rolled a lot of times, it becomes very tedious to list down all the combinations. Is there easier method to solve this type of question?  Any help is much appreciated.


List of Stack Exchange subdomains that are not mentioned in "All Sites"

I wanted a list of sub-domains of Stack Exchange that are not mentioned over here   Some of the sub-domains I found which were not mentioned are       Are there any other which are not mentioned?    Mentions by , ,             Other mentions below which are not mentioned in "All Sites" but are mentioned in the drop down menu on the top left of the Stack Exchange website         Any other website that's left out ?


How do I use JavaScript to dynamically get dates in the future?

I'm trying to re-create this website :  I have the html & css complete, but I'm struggling with making it dynamic. how can I use javascript to display the dates? is there a resource you could share with me that would teach me more? thanks!


Gmail account received another person's email

My Gmail address is my full name with a dot between my first and last name. I periodically receive emails for another person with the same name add me however his address DOES NOT have a period between his first and last name.   I usually inform the sender that the email was delivered to the wrong person (ray.mckenzie@)and to make sure they do not put a dot between the first and last name (raymckenzie@). The sender replies that they have in fact NOT put a dot between first and last name and still the email gets delivered to me.   Can you look into this and let me know what's going on?


Problems with network connection after switching USB LAN hub (despite using wifi connection)

I have a 2018 MBP running 10.14.x  I had it connected to a thunderbolt / USB-C to ethernet hub,  Which i was using as a USB hub and ethernet adaptor.   I recently moved desks and started using another thunderbolt / USB-C to ethernet hub the same model as the one above, but a different physical unit.   As soon as i did this the network connection to this machine was patchy, it kept dropping connection, even though the rest of the office was fine. Currently im working using wifi only, but the laptop keeps losing its IP. I can temporary fix the issue, but either renewing my DHCP lease, or turning off wifi and turning on wifi again. But this only lasts a while before the problem comes back. Any ideas ?   So far ive tried the following, but to no avail :    Ive delete the USB LAN bridge from system preference > network. Run the computer using a wifi connection only Changed the location in system preferences > network, from "auto" to custom, to try and reset any network specific pre-sets.    Ive had this issue in the past when moving computers between desks and connecting them to new USBC ethernet adaptors, but in the past deleting the connection type in system preferences > network seemed to solve the issue.


Especially in the beginning of the first movie, Thor is brash and often petulant. He seeks the glory of king-hood without understanding or accepting the self-sacrifice and responsibility that such a role requires. He is brave, yet selfish.   My question is Why was Thor worthy? I would think that some nice, selfless guy should be able to lift Mjolnir, but it is portrayed as some rare trait of extreme virtue that only Thor and perhaps a couple others possess.  Because Thor himself doesn't appear to be excessively virtuous, it seems like the power to lift Mjolnir was endowed on him, not earned by him, so why all this pretense about worthiness?


Thanks for helping me out.  How can I make the following tree-diagrams?


How to make a model cast shadows onto the world texture/background?

In most of my models, I usually end up setting a world background using an HDRI image of some kind or another. This has always been really useful for lighting in general or as a background for my final render.  But what if I want my model to look like it is interacting or touching part of the background? For example, in the image below that I found, the modeled objects look like they're part of the scene, and even appear to cast shadows on the ground. How can I do this?


Is it possible to write a function that can determine the original var name of a passed in param?

The basic goal is to write a function as such: int myInt = 5; PrettyPrint(myVar);  //in some helper class public static void PrettyPrint<T>(T var) {     Console.WriteLine(/* ??? */ + ": " + var); //output: "myInt: 5" }  I know we can do nameof(myVar) inline which would return "myVar", however, is it possible to abstract that into a function that lives somewhere else? If we do nameof in PrettyPrint, in this case it would return "var" and not the original name. Now, I know you're thinking "just pass in a string for the name", but ultimately I'd like the following: public static void PrettyPrintMany<T>(params T[] vars) {     string s = "";     foreach (T v in vars) {         s += <original name> + ": " + t + " | ";     }     Console.WriteLine(s);  }  int myInt = 5; string myStr = cheese; float myFloat = 3.14f;  PrettyPrintMany(v1, v2, v3); //"myInt: 5 | myStr: cheese | myFloat: 3.14 | "  I feel like this is not possible, but maybe there is some clever hackery that can be done?


how to alert message if element is visible current viewport?

I need if element is visible current viewport alerts something message    .wrapper {   margin: auto;   width: 400px;   height: 300px;   outline: 1px solid red;   overflow-y: scroll; }  .element {   font-family: sans-serif;   width: 100%;   height: 50px;   border-bottom: 1px solid grey; }  .element.active{   background: #ccc; }

1

2

3

4

5

6

7

I need when this is visible alert something


I'm adding some html code to a database through a mysql_query. So, a basic query looks like this $qry = "UPDATE Pages SET ".$column."='$value' WHERE id='$id'";  If this is called, an actual query might look like this: $qry = "UPDATE Pages SET content_en='
This is a title
' WHERE id='12'"; However, if the HTML code looks like this:
This is a title
, it'll break the query because of the semi-colon. Is there any way to solve this?


What would be the 1990s equivalent of Wizard's currency to then-U.K. currency?

For instance, how many US dollars or Pounds Sterling would one Galleon be worth?  Considering they are actual gold they should be fairly expensive, but is there some standardized exchange rate?


how to remove old kernels in grub2, including files?

How to remove old kernels in Grub2, including files.  Using the Disk Usage Analyzer, I found that the Linux kernels are located in 4 areas of the root directory:     /boot     /lib/firmware     /lib/modules     /usr/src  All we have to do is, go to each directory and remove the files or directories that are not needed.   Use the command [rm] for files and [rm -r] for directories. You have to use [sudo su] to have administrative account, or use [sudo (command)] to invoke administrative command.  For our example, we will use the linux kernel version 4.4.0-112 You can choose which version you will remove.   at /boot = kernels are all files : abi-4.4.0-112-generic                                    config-4.4.0-112-generic                                    initrd.img-4.4.0-112-generic                                    retpoline-4.4.0-112-generic                                    System.map-4.4.0-112-generic                                    vmliniz-4.4.0-112-generic  (note: not all kernel versions have these files included above)  at /lib/firmware = kernels are in subdirectories : 4.4.0-112-generic  at /lib/modules = kernels are in subdirectories : 4.4.0-112-generic  at /usr/src = kernels are in subdirectories : linux-headers-4.4.0-112                                               linux-headers-4.4.0-112-generic  Now all we need to do is use the command [update-grub]  This will free your hard disk around 300MB worth of disk space for every kernel that you will remove.  Please note that I am using Ubuntu 16.04 Xenial.  And if anybody knows how to delete files in GUI,  please let me know, it would be alot easier.


$x\in\mathbb{R}$. I can prove that both sides converge, and maybe we should show  $\limsup\limits_{n\rightarrow\infty}\left|\sum\limits_{k=0}^{n}\frac{x^k}{n!}-\left(1+\frac{x}{n}\right)^n \right|<\varepsilon$, but the construction of the right hand side is a little tricky for me.


Formula for weighted simple linear regression

This wiki page  has formulas to calculate $\alpha$ and $\beta$. Could anyone tell me how to derive the formulas in weighted case?


What's the difference between "subject to" and "subjected to" in contracts?

Applicants are subject to testing ... Applicants are subjected to testing ...   When employers use "subject to" or "subjected to" in this way, does "subject to" imply they can if they want to, i.e. there's a chance? Does "subjected to" mean employees are required to take a drug test"?


Adjoin inverse element to $\mathbb{Z}/12\mathbb{Z}$

I am looking at describing the ring obtained from $\mathbb{Z}/12\mathbb{Z}$ by adjoining the inverse of 2. I know the final answer is supposed to be that it is isomorphic to $\mathbb{Z}$ but here is what I think so far:   We look at ring $(\mathbb{Z}/12\mathbb{Z})[x]/(2x-1)$=$\mathbb{Z}[x]/(12,2x-1)$. We see that 3 is in $(12,2x-1)$ since 3 = $(2x-1)^2 - 12x^2 + 12x$ when we plug in the inverse of 2 for x.   However, I don't see how $(12,2x-1)$ contains $3x-(2x-1) = x+1$ and then how the ideal $(3,x+1)$ contains $12$ and $2x-1=3x-(x+1)$ so then $\mathbb{Z}[x]/(12,2x-1) = \mathbb{Z}[x]/(3,x+1) = \mathbb{Z}/3\mathbb{Z}$   but from this step above I see that $\mathbb{Z}[x]/(x+1)$ is isomorphic to $\mathbb{Z}$.


If Automorphhic group of Group G is  trivial group then how will you  show that order of group G is less than or equal 2.


In my campaign, there is one player that play a Goliath Runic Knight, and has a 20 in Strength. Having the possibilty to get a size bigger with Gigantism, and counting another size bigger that he really is for pushing, draging and lifting things with Powerful Build.  Rules tells he can possibly lift something that weight around 900kg/2000lbs (or 1200kg/2600lbs, not 100% sure about the math on this one), and with this power house of a man, i'm 100% sure that the question "how far can i throw this character/monster/object/Hot-dog stand" is going to pop up.  The problem is, i don't have an answer for that, for specific object, like weapons or throwable, it's usually written in the rules, but i find nothing on throwing the party's dwarf, so i require a bit of help there.  Also, does anyone know if there is a chart or something for damage taken if this man throw a creature on, say a tree (or a tree on a creature), or i will just have to guess ?  Thanks a lot.


Is haphazard the only word where ph is not pronounced like /f/?


Where can I find the place to ask my question?  I'm looking for a way to copy a web page with its  commands. The page is in HTML with MathJax. I tried the Stack Overflow site, but no answer so far. Here is the link to see the question. .


Make Applications (Ubuntu Software) to access all the DRIVES in my computer

I'm recent user of Ubuntu (Linux). How can we make Applications (Ubuntu Software) to access all the DRIVES in my computer.  For example, I just downloaded « Krita ». When I simply try to open a file saved on my computer ...or... on my USB drive using File > Open then the ensuing window Look In: , NOT ALL locations are accessible, just the /home/andre/snap  ??? and some other folders.  Even my INTERNAL SANSUNG SSD drive is NOT accessible. Thanks.    I'm running Ubuntu 18.04.3 LTS.


Analytic continuation of function continuous on boundary

Suppose one has a function $f$ in the disc algebra ie: $f$ is continuous on $|z|\leq1$ and holomorphic in $|z|<1$. I wondered, can $f$ always be extended to a holomorphic function on some region containing the boundary (ie: $T$ the unit circle). If not can you give me an example? Thank you,


Python: Creating a List of the First n Fibonacci Numbers

I am new to Python and to these forums.   My question is: How can I create a list of n Fibonacci numbers in Python?   So far, I have a function that gives the nth Fibonacci number, but I want to have a list of the first n Fib. numbers for future work.   For example:  fib(8) -> [0,1,1,2,3,5,8,13]


This question led to a new package:      (using a variation of egreg's code, and stating this in the manual; the package isn't really new now, sorry for the delayed announcement)  I have read about "How to get Roman numerals" but asked myself how to get Roman numerals formatted as in     i.e. with fitted over- and underline (without manually using boxes and such)? I'm curious for your answer(s)!


Show that if a graph is 2 connected, then for any two vertices exists a cycle

Show that if $G$ is 2-connected, so each vertex $u$ has vertex $v  \neq\ u$ and circle $C$ that contains $u, v$ and all the neighbors of $v$.


How do I get Python to read and extract words from a text file?

So I need to make a code that opens a txt file, and then takes the content of that file and puts it into another txt file, problem is, I don't know how the command to extract the information from the file, I did some research and found this is the closest thing but It just isn't what I need:   this is my code so far:  myFile = open("Input.txt","wt") myFile.close() myFile = open("Output.txt","wt") myFile.close()


Unable to download softwares from Ubuntu Software Center

I am using Ubuntu 14.04 64-bit version Whenever I try to download some software from ubuntu Software Center it used to show “Failed to download package files” error?  So I followed this post   And tried all steps but after following step 5 of this post my software manager is not even allowing me to download rest softwares as well, install button is not coming in front of softwares in software center>  Please help me to get out this problem.  Result in terminal:    shikhar@Shikhar-asus:~$ sudo apt-get update   Get:1 http://dl.google.com stable InRelease 100% [1 InRelease gpgv 3,435 B] [Connecting to archive.ubuntu.com] [Connecting       Splitting up /var/lib/apt/lists/partial/dl.google.com_linux_chrome_deb_dists_stabIgn   http://dl.google.com stable InRelease   E: GPG error: http://dl.google.com stable InRelease: Clearsigned file isn't valid,   got 'NODATA' (does the network require authentication?)


How can I get the expiry datetime of an HttpRuntime.Cache object?

Is it possible to get the expiry DateTime of an HttpRuntime.Cache object?  If so, what would be the best approach?


$\{a_n\}$ is a sequence such that $|a_{n+1} - a_n| < 5^{-n}$ for all $n>0$.  How to prove that this sequence is a Cauchy sequence?


Splitting of primes in the compositum of fields

If $L_i/K$ are Galois extensions of number fields, $i=1,\ldots,n$, and $L=L_1\cdots L_n$ is the compositum. Then it's true that a prime $\mathfrak{p}$ of $K$ splits in $L$ if and only if it splits in all of $L_i$. Does this also hold if the $L_i$ are not Galois extensions of $K$?  The proof that I know regarding the compositum uses the fact that the $L_i/K$ are Galois, so is this true in the more general setting and how would one prove it?


how to disable Application Menu in top bar in 20.04?

In the past there used to be an option in Settings->Appearance->Behavior to toggle between using the Application Menu in the top menu bar and a window-specific menu button.  In 20.04, I don't see that option anymore.  Not in settings, and not in gnome-tweaks.  This is an example of the menu that I'd like to move down from the top of the screen into the application's window:    Can someone tell me how to do this in Ubuntu 20.04?


I have taxonomy color which  is associated with a custom post type. I am listing all the post meta and the taxonomy  in a table. I have a option in the table  to search  the posts matching the search value.   when search key is entered it will do a ajax call to get the the posts.  this is the query to get all the posts matching the search string.  function get_query_posts_custom($post_id,$start,$length)  {     //get_posts arguments     $args =  array(         'post_type'     => 'custom_post',         'post_status'   => array('publish'),         'numberposts'   => $length,         'offset'        => $start,         'orderby'       => 'menu_order',         'order'         => 'asc',         'post_parent'   => $_product->id     );       //get custom post taxonomy     $taxonomies = (array) maybe_unserialize(get_post_meta( $post_id, 'post_taxonomy', true));     if(empty($attributes)) {         $taxonomies = array();     }      $meta_keys  = array('type','code','key');            if(!empty($search)) {         foreach($meta_keys as $meta_key) {             $meta_query[] = array(                         'key'   => $meta_key,                         'value' => $search,                         'compare'   => 'LIKE';                     );          }          $args['meta_query'] = $meta_query;         $tax_query = array();          foreach($taxonomies as $taxonomy) {             $tax_query  = array(                 'taxonomy'  =>  $taxonomy;                 'field' =>  'slug';                 'terms' =>  $search;                 'operator'  => 'LIKE';             );         }         if(count($tax_query)) {             $args['tax_query'] = $tax_query;         }     }     $results    = get_posts($args);             return $results; }   How to get the posts that matches the search string of a taxonomy?  I searched the wordpress function reference  it says only operator allowed to tax_query are 'IN,NOT IN, OR and AND')  can I use the LIKE operator?


How to save current date and time in flutter sqflie?

I tried to save the current date and time in sqflite every time I save data into the db. This is my date and time column 'last_fetched DATETIME DEFAULT CURRENT_TIMESTAMP'  and I tired this too 'last_fetched DATETIME CURRENT_TIMESTAMP'  it is saving the date but not time. The result 2021-05-15 07:06:52  Where as the real time is 2021-05-15 14:05:47


I just saw a  (now deleted) that had a lot of  (Google translation; it was written in Turkish).  I flagged the question, and commented. After others commented, the OP continued to use offensive language in Turkish in the  (Google translation). The post was then deleted, for posting in an non-English language, or cursing, I don't know.  But, is it a possibility that Stack Overflow can add a feature that blocks the usage of foul language?


What is it called when you “refill” a debit card?

How it is called (in the US) when you go to the bank or an ATM to add cash to your VISA/MasterCard debit card? That is, when you add cash to the bank account which is tied to  that card.   Is it either of these two, or is it something else?   to refill my debit card to add funds to my debit card


How does attacking during a conversation affect initiative?

Say the party is smooth-talking a guard, and the rogue loses patience and throws a dagger. Combat ensues...is the next step to roll initiative? If so, does the rogue's thrown dagger not count as his first round attack?


Using ArcGIS Field Calculator to change text to digit?

I am using ArcGIS Desktop 10.6.  I have one field that is titled SEVERITY, and is string type, and has words like "Medium" "Low" "High," etc.  I would like to assign a number to correspond with the word ("1" for "Low", 2 for "Medium," etc.), and to have that populate in a new field.    I've created the new field, called it "SEVERITY_CODE" and made it an integer.  All I need to do is use the field calculator to say "look at the SEVERITY column, and translate that into numbers for the "SEVERITY_CODE" column but I cannot seem to find it.  The solutions I've found on the web are not helping.    Can anyone help with this?


I upgrade Ubuntu from 13.04 to 14.04,and my notebook now does not accept the upgrade and keep getting this message :  The system running in low - graphics mode.Your screen,graphics card,and input device settings could not be detected correctly.You will need to configure these yourself   And when i click ok it takes me into a white board and can not write anything.My question is,what can i do to return back to 13.04 version?


How do i show this proof?  If $G$ is a connected graph then its center is the vertex $v$ such that the maximum of distances from $v$ to the other vertices of $G$ is minimal possible. Prove that a tree has either one center or two adjacent centers. Give an example of a tree of each type with $7$ vertices.


Boy and girl live on a world where tech is outlawed, find spaceship and travel to another planet

I've been trying to find a book I read as a kid. Its about 2 teens (boy and girl) who live on a world where tech is outlawed by a god the people worship called overseer or overwatcher or overthought I can't remember. But they discover that the god is actually an ancient satellite that effects peoples thoughts. They eventually find and board a spaceship and travel to another planet later turning out to be earth way in the future and they were desendant from the humans that left thousands of years ago. They meet two new species of intelligent creatures. One evolved from rats and the other from bats. That's all I can remember. If anyone knows the book please help. Thank you


Starting an Application via Command Prompt

I can open Notepad just by typing notepad or notepad.exe in command prompt. But for other installed applications, I have to browse to the location first and then run the .exe file. Why is that? Can somebody explain this?


How to save YouTube downloaded video to phone gallery

I have downloaded a youtube video in my youtube app and I want to save this video to my phone gallery. What steps should I have to follow to do this?


I have just been introduced to the topic of integration. My teacher said:   $$\int_{a}^{b} f(x) dx$$  Is the same thing as:  $$\int_{a}^{b} f(\alpha) d\alpha$$  I asked her why, and she said "it is a dummy variable."  But then I thought, are all variables dummy variables? how do you identify a dummy variable?


Evaluating $\int_{0}^{\frac{\pi}{2}}\frac{\sqrt{\sin x}}{\sqrt{\sin x}+\sqrt{\cos x}}\, \mathrm{d}x$

I have to evaluate:  $$\int_{0}^{\pi/2}\frac{\sqrt{\sin x}}{\sqrt{\sin x}+\sqrt{\cos x}}\, \mathrm{d}x. $$ I can't get the right answer! So please help me out!


Why filename with two dot such as "a.b.eps" cannot be compiled by xelatex?

I have a figure name "L=10_W=8.00.eps", I put it in the \figure environment by  \includegraphics{L=10_W=8.00.eps}   compile it with xelatex, but get error:     File ended prematurely  After I renamed it to "L=10_W=8.eps", the error goes away.


/boot full, how do I delete the files kernel there safely with no complicated scripts?

I just update, but, I don't want to restart the computer, 'cause it may not reboot


Binomial or Poisson? Binomial makes most sense but similar p values and Poisson has no overdispersion

I am modelling no. days exercised in a given week and so therefore I am using a binomial GLM. Yet the model is massively overdispersed (even as quasibinomial). When I model as poisson distributed however, the overdispersion is removed. What's more, my p value for the most significant predictor (wake-up time) is pretty much the same (0.08) when its binomial and poisson and the effect sizes are pretty similar (although I know that GLM p values etc. are just approximations). Is the overdispersion when binomial a sign that I should model using a poisson distribution?


Is Transit visa needed for Reykjavik while traveling to India from USA (round trip)

Is Transit visa needed for Reykjavik while traveling to India from USA. I hold Indian passport and valid USA visa. My layover in Reykjavik is for 6.30 hours 1 way and other way is 2.30 hours. Has anyone travel recently in similar situation without applying for any transit visa for Reykjavik, Iceland. I tried calling Embassy but no one answered the call and no response so far for my email sent.