After an upgrade from 16.04 to 18.04 my printer stopped working.  The printer is an Epson E360-dn.  After printing a test page the I get the message Printing followed by Printing Stopped with the Printer's state message saying "Filter Failed".  The printer is network attached.  After reading about similar problems and trying different things (reinstalled cups; sudo aa-complain cupsd then systemctl restart cups.service; deleted printer and reattached as a usb device; dug through the error logs) I am at a loss as to where to go next.  The only error message I can find in /var/log/cups/error_log is an error 32 (Broken pipe)   cindy@Calanthe3:/var/log/cups$ tail error_log     I [08/Oct/2018:17:10:45 +1000] Expiring subscriptions...     D [08/Oct/2018:17:10:45 +1000] [Client 126] con->http=0x5573beab3140     D [08/Oct/2018:17:10:45 +1000] [Client 126] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=106, response=0x5573bea747d0(IPP_STATE_DATA), pipe_pid=0, file=-1     D [08/Oct/2018:17:10:45 +1000] [Client 126] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0     D [08/Oct/2018:17:10:45 +1000] [Client 126] bytes=0, http_state=0, data_remaining=106     D [08/Oct/2018:17:10:45 +1000] [Client 126] Flushing write buffer.     D [08/Oct/2018:17:10:45 +1000] [Client 126] New state is HTTP_STATE_WAITING     D [08/Oct/2018:17:10:45 +1000] [Client 126] Waiting for request.     D [08/Oct/2018:17:10:45 +1000] cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"     I [08/Oct/2018:17:10:46 +1000] Expiring subscriptions...     cindy@Calanthe3:/var/log/cups$ tail error_log     D [08/Oct/2018:17:11:01 +1000] [Client 126] HTTP_STATE_WAITING Closing for error 32 (Broken pipe)     D [08/Oct/2018:17:11:01 +1000] [Client 126] Closing connection.   I tried re-booting from a 18.04 live usb.  I installed the printer with just the default drivers and printing worked out of the box.  Clearly this is related to the upgrade process.  Any ideas of what needs to be reset to defaults or reinstalled for this printer to work?

Upgraded to 18.04 from 16.04. I have a workplace printer connected through appsocket which stopped working.  Printer status is Idle-Filter failed.  Printing queue instantly goes to "stopped".  Right clicking on the printer shows "option finishings has value 3 and cannot be changed". I can't find any info on this error except one pdf to ignore the error.  The printer model Ricoh MP 2555 worked previously with the Ricoh MP C2800 driver. Now it works with neither 2800 or 2555.  The IP address of the printer pings fine. When I try and detect the printer on the network using IP address and I ask it to use the Ricoh MP 2555 driver, it asks for an additional driver which opens Ubuntu software (which never helps) and fails.  I tried changing drivers from "" by providing the ppd file. It still doesn't help. var/log/cups/error.log doesn't tell much, or I don't get it.  Hope someone knows about this error or some kind of a generic solution.


I have a slight problem. After resizing my Ubuntu LVM2 Physical Volume from 250G to 72G, Gparted was able to let me click on the resize button on /dev/sda5     But when I apply the changes it gives me this error:    I want my final partition layout to look like this:

I want to shrink my second (LVM) partition, in order to create a new partition in the newly freed space. I am using the Live CD to do so, because I know I can't resize/move this partition while it is in use. When I opened GParted in the Live CD, I realized that I could not resize the partition, because when I right-click it, the option "resize/move" is disabled.  I tried to unmount it, to "lazy" unmount it (umount -l /dev/sda2) but it didn't work.  A screenshot from GParted:


Let's take the sentence "Have they entered their password?", where we use "they" meaning "he/she", a third person of any or unknown gender. If we replace the pronoun "they" with a more specific noun, e.g. "the user" we'll also need to replace "Have" with "Has" — "Has the user entered the password?".  For some reason I'm thinking that there's a rule in English that say that pronouns can replace nouns without changing the structure of the sentence. Since using "they" as "he/she" is relatively new, does this mean that that old rule is no longer universal? Or is the sentence "Has they entered the password?" now grammatically correct?

There are many (duplicate) questions about the acceptance, popularity and history of singular they (and their, them and themself) around here, it even got a tag of its own. If I didn’t miss anything, however, the proper verb form hasn’t been questioned yet.  As we all know, English third person singular pronouns (it, she, he and one, +body), names (Alice, Bob, …) and nouns (student, teacher, …) demand the +(e)s suffix be added to the finite verb form in simple present, where some auxiliary verbs have a “special” form (is < *bes / *ares and has < *haves). All other subjects don’t, including plural third person pronoun they.  When the plural you replaced thou (with thee, thy / thine), the other marked verb form that had remained in English – i.e. suffix +(e)st or +t – vanished, too. The first and second persons only ever appear as pronouns (I, we; you), not names or nouns, so there was no strong inclination to keep the verbal inflection.  The second person precedent would suggest that singular they be used with uninflected verb forms which is how it’s usually encountered in the wild. Assuming that they someday replaces he and she (and maybe it) it would lead to disagreement with the words the pronoun stands in for:        Alice         goes to her   place  by herself.   Bob           goes to his   place  by himself.   Alice and Bob go   to their place  by themselves. – (common)   Alice and Bob go   to their places by themselves. – (separate)                  She  goes to her   place  by herself.   He   goes to his   place  by himself.   They go   to their place  by themselves.   They go   to their places by themselves.                  They ?goes to their place  by themself.   ditto   They  go   to their place  by themselves.   They  go   to their places by themselves.                  They ?go to their place  by ?themselves.   ditto   They  go to their place  by  themselves.   They  go to their places by  themselves.      So why doesn’t singular they afford s on present-tense verbs like all other third person singular subjects do?   I learned about singular they only long after I had been taught English as a second language in school. That’s why it’s still a conscious decision to use it and hence I could easily adapt to use s forms with it, but would that sound and look funny / strange / wrong to native speakers?


I want to perform a meta analysis of a particular subjects of cancer. My effect sizes are Overall Response Rate (ORR), Disease Control Rate (DCR), Duration of Response (DOR), Progression-Free Survival (PFS), and Overall Survival (OS). While ORR and DCR can be performed by meta analysis of proportions, PFS, OS, and DOR is in median months. I've managed to figure out how to do Cochran Q test for ORR and DCR. However, I can't manage to figure out how to perform heterogeneity test for DOR, PFS, and OS since it's in months and not in binary outcomes.  I have considered using PFS6m(%) and OS1y(%), wich units are in percentages. However, out of 7 studies, only 1 provided PFS6m and OS1y, thus I can't make a meta analysis using those  Furthermore, which statistical software package is eligible to perform I2 test?  And, I performed Spearman correlation between median PFS and median OS, and it shows medium correlation with bad significance (p = 0.294). Is it possible performing meta analysis with those data?  Thanks!

I've been asked to review the literature for all studies that estimate the mean and median Blood Lead Level (BLL) in a certain country, and then perform a meta-analysis to come up with one overall value for the mean and median level.   Is such a thing typically done? I'm not interested in any "effect size," just a univariate measure.   I'd like to create a forest plot and do some of the standard tests of heterogeneity across studies. Is there a package and function in R that will allow me to do a meta-analysis of mean and median BLLs?  Just to clarify, this would be a separate meta-analysis for means, and a separate meta-analysis for medians.


I upgraded a while back to 16.04 (Xenial) LTS.  However, I don't believe apt-get repositories have correctly updated - they appear to still be looking for 14.04 versions:     sudo apt-get update   Hit  trusty-security InRelease   Ign  trusty InRelease   Hit  trusty-updates InRelease   Hit  trusty InRelease   [...]   Ign  main/main Translation-en   W: Failed to fetch   403  Forbidden   How do I go about resolving this?

There are now errors when updating and I cannot install most software due to a corrupted  /etc/apt/sources.list   file. Is there a copy I can download to replace it?  The file would be for Ubuntu 12.04 (Final Beta) in the United States.


Define $a_n$ is real sequence which satisfies   $$a_1=1, \quad a_{n+1}=\sin(a_n)$$  Find  $$\lim_{n\to\infty} \sqrt{n}a_n$$  I just know $$\lim_{n\to\infty} a_n = 0$$  but I don't know what should I do.  I'm interested in two solutions (using Stolz-cesaro, without using stolz-cesaro).

Consider the sequence defined as  $x_1 = 1$  $x_{n+1} = \sin x_n$  I think I was able to show that the sequence $\sqrt{n} x_{n}$ converges to $\sqrt{3}$ by a tedious elementary method which I wasn't too happy about.  (I think I did this by showing that $\sqrt{\frac{3}{n+1}} < x_{n} < \sqrt{\frac{3}{n}}$, don't remember exactly)  This looks like it should be a standard problem.   Does anyone know a simple (and preferably elementary) proof for the fact that the sequence $\sqrt{n}x_{n}$ converges to $\sqrt{3}$?


In Blender Cycles, can a material be formatted so that, when rendering, it ONLY shows the shadows that were cast upon it by objects? This could be used when using a 360° HDRI as world background, to have an object appear to cast shadows on the background.  As an example, in the picture the plane is added to give the cube a shadow. Unfortunately the entire plane keeps showing up in the rendering. I would like to render the cube and the shadow ONLY, as to generate the impression that the cube is sitting on the road deck. Making the material of the plane (but not the shadow) invisible/transparent would do the job. The question is, how?

I am superimposing CGI over video footage, and have run into a problem in making materials for objects that act as 'shadow catchers'.  Essentially I want a shader that is shadeless—like an emitter—but catches shadows and light from other objects. This is so I can reconstruct objects in footage so other objects in the scene interact convincingly with them.  Here's an overcomplicated diagram to illustrate my point:   (In this particular scenario, the problem could be glossed over by using RGB curves, but that is definitely not the case with more complicated scenes)  Isn't this a common situation? How to the real guys do it? Thank you.  (I am welcome suggestions of other ways of doing this.)


Is it possible - for a privileged process - to change the GID of another process. I know that there is the setgroups() system call that allows a process to change it's own GID. However, I want to do this from 'outside' the process (and after the PAM stack was processed). I already saw  post, but there was no real answer to the problem. Are there any reasons for not changing the GID after PAM traversal other than there might be problems with opened resources like file descriptors? I understand that opened files would still use the old GID after the change.

Is there a way to change PID, PPID, SID of a running process? It would make sense for the answer to be no, but I'd like to make sure.


I have encountered an exam question. The model answer is edible. A)The fruit is edible and its juice is made into wine. B)The fruit is eatable and its juice is made into wine. Is eatable acceptable in the above case?

I thought only edible was correct, even Google suggested edible when I did a search to see which one was more popular on the internet:   Edible: 17.2 million Eatable: 2.2 million   The first results are from dictionaries, the meaning being "that can be eaten".  What's the difference between them?


I have a Sharepoint library which is having 10 folders, i want to move those folders(along with files inside those folders) from one library to another library with in same site using CSOM**(C#)**. Please help me out.

I have folder structure like in Shared documents/East using CSOM and C# Main Folder   Folder1   Folder2      File1      File2  I have to copy all folders with files to Shared documents/West ....


I'm trying to create a new virtual host where any subdomain will point to the document root.   It needs to be a wild card as new subdomains will be added progmatically.  What I have so far in my vhost config (relevant part):  <VirtualHost *:80>      DocumentRoot "C:/xampp/htdocs/test"      ServerName test.dev      ServerAlias *.test.dev </VirtualHost>   Windows hosts:  127.0.0.1   *.test.dev   I'm only able to access test.dev but not a subdomain of it.

I want to setup my local development machine so that any requests for *.local are redirected to localhost. The idea is that as I develop multiple sites, I can just add vhosts to Apache called site1.local, site2.local etc, and have them all resolve to localhost, while Apache serves a different site accordingly.  I am on Windows XP.  I tried adding   127.0.0.1       *.local   to my c:\windows\system32\drivers\etc\hosts file, also tried:  127.0.0.1       .local   Neither of which seem to work.  I know I can set them up on different port numbers, but that is a pain since it is hard to remember which port is which.  I don't want to have to setup a local DNS server or anything hard, any suggestions?


Can anyone explain why in  the answer is 5! * 2! * 10P3? I understand the 5! and 2! but for 10P3 the first thing I thought of was 3!  Thanks.

There are five distinct computer science books, three distinct mathematics books, and two distinct art books. In how many ways can these books be arranged on a shelf if one of the art books is on the left of all computer science book, and the other art book is on the right of all the computer science books?     For my answer I was thinking since there are $10$ books total and $5$ are computer science books, then I could place an art book on the first, second, third, fourth slot ... but I do not know how to finish it, I am sure it has something to do with rule of sum. Any advice appreciated. Thank you.


My home router shows two things -  Connect to a 2.4 GHz Wifi Connect to a 5 GHz Wifi I found the range of 5 GHz lower than that of 2.4 GHz Is that normal or something wrong with the router configuration?  Like right now when I am typing this question the 2.4 GHz shows 2 points or sometimes 3 points of signal strength whereas the 5 GHz shows just 1 point.  And sometimes even gives trouble loading websites.

I've been having an ongoing problem with my home WiFi network. As stated in the title, my 2.4GHz network is slow but 5GHz is perfectly fine. I've checked with a WiFi analyzer and there aren't too many other 2.4 networks around, and I'm using the recommended channel. The connection is generally spotty, sometimes seeming fine and other times dropping to a crawl.  In an attempt to combat the problem I bought a new router, and split off some of the traffic to my old router. So my network setup is:   main router: Netgear Nighthawk X10 R9000, on 192.168.0.1 child router (downstairs): TP Link Archer C3200, on 192.168.1.1   The child router is hardwired in to the main router on a cat5 cable, and broadcasts its own 2.4 and 5GHz networks, and both routers have the same problem. The main router does have other electronics nearby (AV receiver, home wireless phone, cable box, modem), but the child router has nothing nearby.  I've switched from 2.4 to 5GHz and run speed tests while 2.4 is going slow, and 5GHz is always fine.  For the most part this isn't a major problem, I'm just using 5GHz whenever I can. But I have a home security system, and those cameras only run on 2.4GHz. So whenever I connect to one of them, it complains that the network is slow, and it's difficult for me to review saved clips. Also, maybe one day in the future I'll decide to save money and switch to a cheaper internet plan, losing 5GHz entirely.  So my questions are:   how can this be? how can I troubleshoot it / fix it? could it be my ISP? (optimum online) is there a way to monitor all 2.4GHz traffic and see if some massive amount of data is passing through it all the time, indicating maybe a virus on a local machine or something?


When adding a new bookmark with Ctrl+D in Firefox, it used to ask me where to put it in terms of bookmark directory structure.  However, recently it's not even bothering to ask me and put the bookmark under the bookmark menu by default. Then I always need to open the bookmark menu and drag & drop to the right sub folder, which is quite tedious.  Is there any way to make Firefox ask me where to put the bookmark everytime I add one?

I'm using Firefox 29.0.1 and would like to change the default folder a bookmark is saved to.  Currently when saving a bookmark (Ctrl + D hotkey) the folder is always "Bookmarks Menu" but I want it to be "Unsorted Bookmarks". It's really annoying and tiring to always have to select that folder when setting a bookmark.


so when I'm coding Im trying to have the output print out 0.12 instead of .12. Here is my code below  echo -n "What is the total cost? "; read cents cost=$(echo "scale =2;$cost_in_cents/100" | bc); percent=$(echo "scale =2;$percent / 100" | bc); tip=$(echo "scale =2;$cost*$percent" | bc); overall_cost=$(echo "scale =2;$cost+$tip" | bc); average_cost=$(echo "scale =2;$overall_cost/${#GUESTS[@]}" | bc);   the output again gives me the correct output of .12 but I need a zero before the decimal place. Thanks in advance!

echo "scale=3;1/8" | bc   shows .125 on the screen. How to show 0.125 if the output result is less than one?


So say I have a function like this:  function cookie(){     var a = 5;      function cat(){return a}     return cat()}  cookie() // 5   It works fine, it gets the variable a from the parent function. Now, when I define the cat function outside of cookie, it doesn't work like that  function cat(){return a} function cookie(){     var a = 5;      return cat()}  cookie() // "a is not defined" error message   So this does make sense, but I'm still wondering how I could pass the local variable from the function cookie, to the function cat.  How do I go about making the local variable "a" from cookie to also be defined in cat, as a local variable?

What is the scope of variables in javascript? Do they have the same scope inside as opposed to outside a function? Or does it even matter? Also, where are the variables stored if they are defined globally?


I have a mountain textured with three different textures by using two mix shaders. I am using Blender 2.80.75. In texture view I can only see a pink color but in render view I see the correct result. Is this a bug or what? Thanks in advance

I made a character, and its one of my first times texturing, and I saved my character into a new folder, and when I came back to the model ALL the textures were pink, I used to know what to do, but I stopped texturing, how do I bring my textures back?


How can I prove that if X be a second countable space and N a base for the topology of X then there is a countable base B for the topology of X such that B ⊂ N.

If the topology of a space  has a countable base, then each base contains a countable subfamily which is also a base.


In Harry Potter, a Fidelius Charm conceals a place by hiding knowledge of its location in the souls of one or more individuals. The location is "invisible, intangible, unplottable, and soundproof," according to . However, this does  not prevent any knowledge whatsoever of the probable location of the concealed place, as evidenced by Death Eaters standing watch outside Grimmauld place when Harry Potter and Co. took up residence there.   The question is, does a Fidelius charm create any sort of protection from physical or magical harm? Could someone burn down a building protected thus, simply by setting a fire nearby? More relevant, could someone like Voldemort go nuclear and cast some sort of area spell that caught the concealed location in its range? It seems as if Voldemort could have done this, if the Death Eaters had some general idea of the location at which Harry, Ron, and Hermione were staying. There could have been additional protection spells so strong that Voldemort could not penetrate them, but wouldn't those nearly obviate the Fidelius Charm? (Picture Voldemort hovering impotently beyond the protective spells in Book 7).

I've read J.K. Rowling's website and FAQ. I've read every interview with her that I know of. I've read all the books many, many times. I've read the HP Wikia, the Lexicon, essays, fan fiction, and even been to panels that touch on the subject of charms at HP cons.  I would like a definitive explanation on the Fidelius charm.   Who can tell who what, what happens when the Secret Keeper dies, who can say what to who? I've read so much contradicting information -- I'm pretty good at figuring these things out, but I'm stumped on this one.   How exactly does the Fidelius charm work?


I play in a group that has different levels of D&D experience from first time players to those that have been playing since the inception of D&D. We are currently playing in 5th edition. When we are in a combat setting, if a player holds their action in combat, they are told by the more experienced players their initiative changes to 0 and they now go last in initiative order for the remainder of combat. Is this correct or is this a rule from a different edition?

In D&D 4e there was an option to Delay your initiative:     Perform your actions as desired and adjust your initiative to your new   position in the order.   Does this rule to change initiative order still exist in 5th edition? I cannot find it in the PHB.


When compiling C source files, we include header files for example using #include "myheader.h".  The pre-processor will expand this header file before compiling the file. However, how does it find this header file exactly? I believe, the path of the header files is passed as an argument to the linker using -I for example to gcc.   I always thought that the linker only runs after compilation. So does the linker actually run before, to find stuff such as header files, and after compilation to combine various object files etc. ? Thanks

In the C and C++ programming languages, what is the difference between using angle brackets and using quotes in an include statement, as follows?   #include <filename>  #include "filename"


I would love to put the images in logos related to the center of the boxes.    How can I affect this?

I have a div 200 x 200 px. I want to place a 50 x 50 px image right in the middle of the div.   How can it be done?  I am able to get it centered horizontally by using text-align: center for the div. But vertical alignment is the issue..


In the context of binary classification how do you interpret ROC curve: more precisely:   1) Why the diagonal stand for a random classifier?   [Edit] Let's imagine a random classifier: each time he see an observation he labels this observation to 1 with a probability of 0.5.   So with a lot of observations,    among the observation with true label 1 half of them will be correctly classified. In the same way there is a 0.5 false positive rate (among the true label 0 half of them will be classified 1).   So on ROC curve this classifier will be on the diagonal on the point (0.5,0.5). But I can only see this case unless i don't understand well the meaning of random classifier in this context...  2) Why ROC curve is insensitive to Class skew ? Why ROC curve is insensitive to  class distributions or error costs.  Let's imagine we have a sample of observation and we draw the ROC curve. Now let's add a lot of observation wich are labelled 0, does the ROC curve stay the same ? what does it mean and how to explain this ?  Her I saw an explanation: ; the answers seems good if we assume that when we increase the number of negative sample they should be distributed with the same score distribution that the previous neagative samples.    PS: A mathematical paper (with proof) could help me to well understand the previous assertion since it will be formally defined. I found this one (in my language) but i am not sur it is correct since there seem to have a mistake since the begining with the RECALL definition: .  So if you have any reference please share it. I

I am interested in calculating area under the curve (AUC), or the c-statistic, by hand for a binary logistic regression model.  For example, in the validation dataset, I have the true value for the dependent variable, retention (1 = retained; 0 = not retained), as well as a predicted retention status for each observation generated by my regression analysis using a model that was built using the training set (this will range from 0 to 1).  My initial thoughts were to identify the "correct" number of model classifications and simply divide the number of "correct" observations by the number of total observations to calculate the c-statistic. By "correct", if the true retention status of an observation = 1 and the predicted retention status is > 0.5 then that is a "correct" classification. Additionally, if the true retention status of an observation = 0 and the predicted retention status is < 0.5 then that is also a "correct" classification. I assume a "tie" would occur when the predicted value = 0.5, but that phenomenon does not occur in my validation dataset. On the other hand, "incorrect" classifications would be if the true retention status of an observation = 1 and the predicted retention status is < 0.5 or if the true retention status for an outcome = 0 and the predicted retention status is > 0.5. I am aware of TP, FP, FN, TN, but not aware of how to calculate the c-statistic given this information.


Choose the word or set of words that, when inserted in the sentence, best fits the meaning of the sentence as a whole      It was advised that ____ inside until the storm passed our area.      1) we are staying        2) we stay      3) we may      4) we stayed   I believe that the answer is 2. But, I also think 4 is equally correct because I know most subjunctive structures can be replaced by "should + infinitive" or ordinary present and past tenses. Am I right?

1.Etiquette requires that the bride's father makes a speech. 2.The situation requires that he go there.  UPDATED: These are two different sentences. My questions are about those, not only one of them. No one has explained anything as to the latter. I am wondering the reason for--in the first sentence -- there has been used the s on makes. Basically, I meant although the two sentences are subjunctive, in fact, why the first one has used s.


I have the following Ubuntu version: 14.04.6 LTS and I'm trying to upgrade to 16.04 with  sudo do-release-upgrade   This command fails reporting:  An unresolvable problem occurred while calculating the upgrade: E:Unable to correct problems, you have held broken packages. This can be caused by:    * Upgrading to a pre-release version of Ubuntu    * Running the current pre-release version of Ubuntu    * Unofficial software packages not provided by Ubuntu   And /var/log/dist-upgrade/main.log says:  2019-09-06 17:15:26,873 ERROR Dist-upgrade failed: 'E:Error, pkgProblemResolver:::Resolve generated breaks, this may be caused by held packages   My question is: how to identify and delete these broken deps?  Thank you.

I am not sure what caused this error, but here is what the whole error says, and also this is sitting as a notification, and preventing me from updating any software using Update Manager - Please provide some assistance or tell me how to figure out what to do to fix it.  Could not calculate the upgrade  An unresolvable problem occurred while calculating the upgrade.  Please report this bug against the 'update-manager' package and include the following error message: 'E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.'


The  keyword does away with the need for an explicit type declaration and I have read with interest the  of when it might be appropriate.  I have also read about (but not used)  which seems to take things a step further by making it .  With Boo, both the type and the declaration can be implied.  Which leads me to wonder, why did the C# language designers bother to include a var keyword at all?    Update: Yes, var supports Anonymous types, but anonymous types by themselves do not necessitate the var keyword...  var anon = new { Name = "Terry", Age = 34 };   versus  anon = new { Name = "Terry", Age = 34 };

After discussion with colleagues regarding the use of the 'var' keyword in C# 3 I wondered what people's opinions were on the appropriate uses of type inference via var?  For example I rather lazily used var in questionable circumstances, e.g.:-  foreach(var item in someList) { // ... } // Type of 'item' not clear. var something = someObject.SomeProperty; // Type of 'something' not clear. var something = someMethod(); // Type of 'something' not clear.   More legitimate uses of var are as follows:-  var l = new List<string>(); // Obvious what l will be. var s = new SomeClass(); // Obvious what s will be.   Interestingly LINQ seems to be a bit of a grey area, e.g.:-  var results = from r in dataContext.SomeTable               select r; // Not *entirely clear* what results will be here.   It's clear what results will be in that it will be a type which implements IEnumerable, however it isn't entirely obvious in the same way a var declaring a new object is.  It's even worse when it comes to LINQ to objects, e.g.:-  var results = from item in someList               where item != 3               select item;   This is no better than the equivilent foreach(var item in someList) { // ... } equivilent.  There is a real concern about type safety here - for example if we were to place the results of that query into an overloaded method that accepted IEnumerable<int> and IEnumerable<double> the caller might inadvertently pass in the wrong type.  var does maintain strong typing but the question is really whether it's dangerous for the type to not be immediately apparent on definition, something which is magnified when overloads mean compiler errors might not be issued when you unintentionally pass the wrong type to a method.


When using labels with different lengths with tikz-qtree, tree nodes are sometimes not aligned. See the following MWE:  \documentclass{scrreprt} \usepackage{tikz-qtree}  \begin{document}      \begin{tikzpicture}[text depth=0pt]         \Tree [.{a}             [.{b}                 [.{d} ]                 [.{e} ]                 [.{ffffff} ]             ]             [.{c}                 [.{g} ]             ]         ]     \end{tikzpicture}  \end{document}   Just as c and g are aligned, I'd like to make the edge between b and e go straight down; I do realize that this way, the horizontal space between the the child nodes elements will be different, but this I find less annoying than the angles leaving a node not lining up correctly :).

I am trying to draw a tree using the tikz-qtree package, however I am having issues with the nodes of the tree being not centered.  \documentclass[10pt]{article} \usepackage{tikz} \usetikzlibrary{trees} \usepackage{tikz-qtree} \begin{document}  \begin{tikzpicture} \node{\Tree   [.{ABC}      [.\textbf{D}         [.AA BB ] ]     [.\textbf{E}         [.CC DD ]         [.EEEEEE FF ] ]     [.\textbf{F}         [.GG HH ] ]     ]};\\  \end{tikzpicture}  \end{document}   Which produces the following Output:    How do I get the tree to center its nodes correctly? I have tried playing with some options of the package, such as  [level 1/.style={node distance=40mm}]   This, however, didn't yield any result and left the tree unchanged. Does anyone have an idea on how to fix this?


My husband is a Canadian citizen. He has sponsored me for Permanent Residence which I should receive soon. I'm going to travel to Canada via London, and I'm planning a layover of 21 hours.  At one time, I was in the UK for 6 years and I want to use the layover to visit my friend. Can I enter the UK without a visa during my layover time, or do I need a visa?

Is there a website or some other way to find out if I need a transit visa for a short stop in the UK on my way somewhere else? Ideally this should give me the answer for all nationalities, and take into account any other visas I may have.


I am in a need to have my own web server as I use to have few websites to be tested on monthly basis.  I plan to get some cheap P4 laptop which will do that task and am planning to install Ubuntu on it for PHP, MySQL.  Can you suggest some configurations I must have including Processor, RAM, Hard Drive and etc.

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.


How do I put a player's name in a /title command? in JE 1.12.2 I tried title @a  title [{"text":"welcome","selector":"@p"}]  It printed only welcome. I tried this too: title @a title [{"text":"@p welcome"}]  It printed @p welcome I want '[player's name] welcome' as the title.

like the title says, I'm looking for a way to display a player name in a /tellraw command which is run by a command block. Example:  /tellraw @a {"text":"","extra":[{"text":"A player has won the game!","color":"blue"}]}   And the output is something like this:  A player has won the game!   But I want the output to be something like  JasonSPQR has won the game!   Using the @p parameter


I need a regex for a 5 digit integer number with 2 decimals.  These would be correct:   12345.12 09856.99 45123.00   These wouldn't:   123.12 12345.6 98652

What is the regular expression for a decimal with a precision of 2?  Valid examples:  123.12 2 56754 92929292929292.12 0.21 3.1   Invalid examples:  12.1232 2.23332 e666.76   The decimal point may be optional, and integers may also be included.


I have a struct array :  struct Stu* arr = (struct Stu*)calloc(ogr,sizeof(struct Stu));   And I have a void function it gets arr as a paramater and i have to find the len of arr in function.  struct Lsn {     char lsn_name[50]; };  struct Stu {     char name[40];     char surname[20];     char st_id[11];     struct Lsn* lsn; };

First off, here is some code:  int main()  {     int days[] = {1,2,3,4,5};     int *ptr = days;     printf("%u\n", sizeof(days));     printf("%u\n", sizeof(ptr));      return 0; }   Is there a way to find out the size of the array that ptr is pointing to (instead of just giving its size, which is four bytes on a 32-bit system)?


I have Ubuntu 15.04 and for whatever reason, folders that start with a "." won't display in the file explorer. Is there a way to display these folders? Example: my app doomseeker has a folder in home that it says it has created (.doomseeker) and it won't display in the file explorer. Thank you very much.

I wanted to add classpath to my JDK. While searching a way to do it I noticed everyone open .profile file using terminal. But when I want to open and edit it with a text editor I couldn't see that file in Home folder.  Can someone tell me why is this. And also if possible how can I access .profile in home folder the GUI way.


I am not sure how many of you have experienced this but coming from a very hot region (South India), I have experienced this numerous times. Especially when I enter my home after spending long duration playing outside on a bright sunny day. I sort of hallucinate(for lack of better word) and see patterns of rings, bubbles and ellipses floating in front of me. I have to either rub my eyes a few times or wash my face to get rid of them!  Is there a specific word/phrase to describe this?  My search revealed  but I am not sure if that's the word I am looking for.     Having intense, vivid colours or a swirling abstract pattern   [ODO sense 1.2]  More details on the phenomenon I experience:  The patterns that I see are initially very bright because my . As time progresses, the brightness of the vivid patterns starts to fade. I see the patterns with my eyes open. Sometimes I also see them when I rub my eyes. The walls at my home are light, so yes light colored (I haven't been in a room that is dark colored {except for cinema halls, of course}). Not only on walls, I see them on empty spaces right in front of me as well. Yes, they throb and move. They don't change shapes but sizes(expand and contract). The patterns are random. The moment I enter my home, they are everywhere (all over my field of view). Gradually they are at different spots and they fade away. All this lasts for may be 4-5 seconds.

I think every single one of us has experienced a dark dot in his/her sight when looking at a white surface such as a white ceiling, there's something in our eye that with a little focus we can see it, and when we move our eyes around, that thing floats around quickly in your sight. It's like a substance on eye's surface, I want to know what is it called. Hope I'm clear enough.


So if I take a number, $n=10$, $$f(n)=6$$ Because there are only 6 Fibonacci terms below it ($1,1,2,3,5,8$). So is there any formula for this?

Assuming I'm asked to generate Fibonacci numbers up to N, how many numbers will I generate? I'm looking for the count of Fibonacci numbers up to N, not the Nth number.  So, as an example, if I generate Fibonacci numbers up to 25, I will generate:   1, 1, 2, 3, 5, 8, 13, 21 that's 8 numbers   How do I calculate this mathematically for an arbitrary "n"?


I have gone through the process of installing the boot for usb drive. The drive had no problems when I went through the process. The problem is when I try to boot from the drive it just goes to the windows boot up.   So I tried disabling the windows drive and only allowing the usb and then what happen was it just keeps going back to the bios menu like there is nothing there.   I am using windows 10 Home 32-bit installed by manufacture, on an asus netbook model X205TA. I tried installing ubuntu 17.04 through the set up that ubuntu provides to put on a usb drive.

How do I make an Bootable Ubuntu USB containing the the latest version of Ubuntu?  For completeness, how would I be able to do this on Ubuntu, Windows, OS X or another Linux distro?


I wasn't sure whether to post this on the game dev Stack Exchange or the Blender Stack Exchange, so I'm just posting it here. Anyways, as you can see below MOST of my materials turn white when importing into UE4, however they still keep the texture, just not the color. How do I fix this? Thanks! :)

I used node textures in a mesh I exported to .FBX.  I then imported it into Unreal Engine 4 and it didn't import any textures; I clicked the Upload Textures option in Unreal Engine.  Is there something I'm doing wrong or is it Blender?


I'm using the frame_change_pre handler to get an object rotation and write it down on a text object. It works ferpectly in the playback, but not in render. I assume that's because while rendering the GUI is not updating.  So, how can I get such values in render time?

this works in viewport but not in render.  import bpy from math import *  def frame_handler(scene):     z = scene.objects['Lift'].location[2]     scene.objects['Text'].data.body = str(floor(z / 4.0) - 2)  bpy.app.handlers.frame_change_pre.clear() bpy.app.handlers.frame_change_pre.append(frame_handler)   How to get it working in render? I've read  and changed from "bpy.data.objects" to "scene.objects" as already seen in the script. What am I missing? Blender v. 2.81.16  Edit. Tried that depsgraph thing mentioned in comments and changed to frame_change_post:  import bpy from bpy.app.handlers import persistent from math import *  @persistent  # maybe not relevant but doesn't harm anything? def frame_handler(scene, depsgraph):     z = scene.objects['Lift'].evaluated_get(depsgraph).location[2]     scene.objects['Text'].data.body = str(floor(z / 4.0) - 2)  bpy.app.handlers.frame_change_pre.clear() bpy.app.handlers.frame_change_post.clear() bpy.app.handlers.frame_change_post.append(frame_handler)   Now the Text doesn't show up at all in rendered (but works in viewport).


I have an array of geocoordinates as follows: const coordinates = [     { lat: 40.54735374702427, lon: -74.39442702644757 },     { lat: 40.27735374702427, lon: -74.43442702644757 },     { lat: 40.19735374202427, lon: -74.84442702644757 } ]  How do I get the total distance with all the coordinates combined like so: Distance between coords[0] - coords[1] added to coords[1] - coords[2] etc. for all the elements in the array to get the total distance in miles. I also want to take into account the curvature of the earth. NOTE: All coordinates are made up for the purpose of this question.

How do I calculate distance between two GPS coordinates (using latitude and longitude)?


I am looking at exporting SVG images using Adobe Illustrator 2020 for putting together my own custom icon library to use in a web page. This is a simple set of 2 artboards.  With a minus icon outline and a minus icon filled.  Exporting When I export these using File->Export->Export for Screens... I can select some SVG options.  This then generates the following files: minus.svg <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128">   <defs>     <style>.cls-1{fill:red;}</style>   </defs>   <rect id="minus-filled" class="cls-1" y="46" width="128" height="32" rx="4.16"/> </svg>  minus-outline.svg <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128">   <defs>     <style>.cls-1{fill:none;stroke:red;stroke-miterlimit:10;stroke-width:4px;}</style>   </defs>   <rect id="minus-outline" class="cls-1" x="2" y="48.5" width="124" height="31" rx="4.16"/> </svg>  When I copy paste the svg directly to a web page and view it, then I see 2 outlined rectangles.  preview.html <!DOCTYPE html> <html lang="en">  <head>     <meta charset="UTF-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <title>Document</title>      <style>         svg {             height: 128px;             width: 128px;         }      </style> </head>  <body>     <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128">         <defs>             <style>                 .cls-1 {                     fill: red;                 }             </style>         </defs>         <rect id="minus-filled" class="cls-1" y="46" width="128" height="32" rx="4.16" />     </svg>      <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128">         <defs>             <style>                 .cls-1 {                     fill: none;                     stroke: red;                     stroke-miterlimit: 10;                     stroke-width: 4px;                 }             </style>         </defs>         <rect id="minus-outline" class="cls-1" x="2" y="48.5" width="124" height="31" rx="4.16" />     </svg> </body>  </html>  This can be corrected by adjusting the internal css (defs/styles), ala cls-1, in one of the svgs so the css classes do not clash. How To... Is it possible to get AI to generate the SVGs so I can get more control over these styles? Ideally I would want to get Adobe Illustrator to output different css classes depending on whether its outline of filled, something like: minus.svg <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128">   <rect id="minus-filled" class="icon-filled" y="46" width="128" height="32" rx="4.16"/> </svg>  minus-outline.svg <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128">   <rect id="minus-outline" class="icon-outline" x="2" y="48.5" width="124" height="31" rx="4.16"/> </svg>  Then control the css colours in my own (global) css using: .icon-filled {   fill: red; }  .icon-outline {   fill: none;   stroke: red; }  Without using the IDs.

Is there a way to edit SVG files in Illustrator where you can specify a CSS class for each path?  I already know in Illustrator that if you give the layer name an actual name, Illustrator will use that name as the path's ID, which is fine if you don't plan on reusing the icon more than once on the same page.  My current workaround is to just use the IDs method, but then later convert the IDs to classes in my code editor, but it's pretty annoying to have to do every time I generate my SVG sprite.  If that's currently not possible in Illustrator, are there any other apps that will allow you to specify that? Or maybe a Grunt or Gulp package?  It looks like you might be able to do it with Inkscape with a , so I might look at that if there's no other good solutions out there.


I set a password on an Excel 2013 spreadsheet but now I don't remember it.  Is there any way that I can remove or recover it? It is an .xlsx document

I'm providing internal support and one of our users has managed to put a password on an excel file by accident, I've done the proper checks to make sure that the user should have access to the document and now want to know what the recommendation for removing a password from an Excel document.  For what its worth, the password appears after Excel opens but before you can see any data in excel.


I wont to remove this, I tried this . but didn't work.  powered by    KeystoneJS     const string = `         tabIndex="-1"                         className={css(classes.link)}                     >                         {brand + (appversion ? (' ' + appversion) : '')}                                           powered by                                               KeystoneJS                                           version {version}.                     {this.renderUser()} `;  console.log(string.match(/\spowered(.*)<\/a>/gmi));

For example, this regex  (.*)<FooBar>   will match:  abcde<FooBar>   But how do I get it to match across multiple lines?  abcde fghij<FooBar>


I have a system whose performance was characterized in terms of the amount of true positives (TP), true negatives (TN), false positives (FP) and false negatives (FN). There is a rate that summarizes all this quantities in one, called accuracy, and is defined like so (according to ):  $$ a=\frac{\text{TP}+\text{TN}}{\text{TP}+\text{TN}+\text{FP}+\text{FN}}. $$ How ever, according to this , the F-score is a better choice than accuracy because it works even if I the class distribution is uneven. F-score is the harmonic mean of precision and recall, but it does not include the amount of true negatives (TN):  $$ F = \frac{2\text{TP}}{2\text{TP}+\text{FP}+\text{FN}} = \frac{2}{\frac{1}{p}+\frac{1}{r}}. $$ To consider the amount of TN could I calculate the mean of the precision, recall and specificity like below?  $$ u = \frac{3}{\frac{1}{p}+\frac{1}{r}+\frac{1}{s}} $$ How is that called? And why it haven't been used before?  Note: this question is not the same as the one discussed , because I am asking why F-measure does not include specificity (and if I can include it), not why accuracy is not a good metric for an uneven number of positives and negatives.    Trying to answer my own question I see that: $$ u=\frac{(3\text{TN}\,\text{TP})}{(3\text{TN}\,\text{TP})+\text{TN}\,\text{FN}+\text{TN}\,\text{FP}+\text{TP}\,\text{FP}}, $$ which I do not know how to interpret. Perhaps I should start using the , given that Wikipedia says it is one of the best measurements to describe the confusion matrix (and "can be used even if the classes are of very different sizes"). After all, I was looking to include TP, TN, FP and FN in a single quantity.

This is a general question that was asked indirectly multiple times in here, but it lacks a single authoritative answer. It would be great to have a detailed answer to this for the reference.  , the proportion of correct classifications among all classifications, is very simple and very "intuitive" measure, yet it may be a . Why does our intuition misguide us here and are there any other problems with this measure?


I am a UK citizen with an ESTA valid until August 2019, I'm flying into the US in June 2019, then driving into Canada for 2 weeks, and then back to the US for another week.   Will there be any problems about the time left on the ESTA?

I wish to travel to the US and think I am eligible to do so under the Visa Waiver Program. I found a lot of information out there but am still having some trouble understanding how this works.  What is the US Visa Waiver Program? What is an ESTA?


Consider a block cipher whose block length is 𝑛.  𝑁 = 2𝑛 is number of possibilities. Imagine we have 𝑡 plain text-cipher text pairs { 𝑃𝑖, 𝐶𝑖 = 𝐸𝐾(𝑃𝑖) } , where the key 𝐾 selects one of the 𝑁! Possible mappings. Now, imagine you want to brute force this encryption algorithm for the key. In each try, you generate the test key 𝐾′ and check whether 𝐶𝑖 = 𝐸(𝐾′,𝑃𝑖);  i=1,…,t.  If 𝐾′ maps 𝑃𝑖 to its proper 𝐶𝑖, we have an evidence that 𝐾′ = 𝐾. However, it could be the case that 𝐸𝐾(.) and 𝐸𝐾′(.) exactly map the 𝑡 given plain-texts to the same set of cipher-texts but map the other inputs differently. a) what’s the probability that 𝐸𝐾(.) and 𝐸𝐾′(.) are distinct mappings? b) what’s the probability that 𝐸𝐾(.) and 𝐸𝐾′(.) agree on another 𝑡′ plain-text cipher-text pairs where 0 ≤ 𝑡′ ≤ 𝑁 − 𝑡? How can I solve this problem?

Given a keyspace of $ 2^{80} $ and plaintext space of $2^{64}$. And two plaintext and ciphertext pairs $(x_1, y_1)$ , $(x_2, y_2)$. Now we have $2^{80}/2^{64} = 2^{16}$ keys that encrypt $x_1$ to $y_1$ and another $2^{16}$ keys that encrypt $x_2$ to $y_2$, with only one key that is supposed to be the target key (correct key). What is the probability that once brute-force identifies a first key ($k_1$) this same key happen by mistake to also encrypt $x_2$ to $y_2$, that is this this key happen to be a False-positive (that is, this key will likely not encrypt $x_3$ correctly). What is the equation used and how is it derived?


I recently got into set theory and i was wondering what is the cardinality of a set of all finite sequences of natural numbers? I know that it is N for natural numbers and 2^N is for real numbers but how can i prove it?

I have few questions to the proof of this claim that is illustrated in a textbook.  $Seq (\mathbb{N})$ of all finite sequences of elements of $\mathbb{N}$ is countable.   Proof: Since $Seq(\mathbb{N}) = \bigcup^{\infty} _{n=0} \mathbb{N}^n,$ it suffices to produce a sequence $\left \langle {a_n | n \in \mathbb{N}}\right \rangle $ of enumerations of $\mathbb{N}^n,$ i.e. for each $n \in \mathbb{N}, a_n =\left \langle {a_n(k)| k \in \mathbb{N}}\right \rangle $ is an infinite sequence, and $\mathbb{N}^n = \{a_n(k) | k \in \mathbb{N}\}$   Let $g$ be a bijection from $\mathbb{N}$ to $\mathbb{N} \times \mathbb{N}.$ Define $a_1(i) = \left \langle {i}\right \rangle, \forall i \in \mathbb{N}; a_{n+1}(i) = \left \langle {b_0,...,b_{n-1},i_2}\right \rangle, $ where $g(i) = (i_1,i_2)$ and $\left \langle {b_0,...,b_{n-1}}\right \rangle = a_n(i_1).$ Hence $a_n$ is onto $\mathbb{N}^n.$  My questions: This means $a_2(i) = \left \langle {i_1, i_2}\right \rangle,$ where $g(i) =(i_1,i_2).$ Then $a_3(i) = \left \langle {i_1,i_2,i_2}\right \rangle $ $,a_4(i) =\left \langle {i_1,i_2,i_2,i_2}\right \rangle $ and $a_n(i) =\left \langle {i_1,i_2,...,i_2}\right \rangle$ etc? If so, given $f = \left \langle {f(0),...,f(n-1)}\right \rangle  \in \mathbb{N}^n,$ I don't understand how could $f $ be expressed as $a_n(i),$ for some $i \in \mathbb{N}?$  Appreciate any clear instruction. Thank you.


I'm trying to remember the title of a film in which a crew of very young people are embarked on a ship for a trip to a distant planet. There is almost no images of the planet until the end, when the youngest of them recovers a broken transmission. On their trip they get an older man (actually some sort of captain of a military ship) who helps them in a combat by crafting a cannon (they were sent unarmed). I remember two scenes that may be definitory:   In one scene one of the guys is weight training with just two small transparent pieces on his hands, whose weight is remotely adjusted. In another scene, the "bad guy" on the crew (the one who actually liked computer games more than studying and who barely graduated) saves the ship from an asteroid field by driving the ship as if it were a videogame. EDIT: Not actually asteroids but debris.   Can somebody remember which film was this? It is most probably from the 80's.  Thanks.

When I was a kid we had a VHS tape of some Disney live action (not animated) sci-fi movie. It may have been a mini-series or a made-for-tv movie, but I'm not sure. I'm also not sure about the year but it would probably have been late 80s or early 90s based on when I would have seen it. I know it was Disney because they had some live action Goofy and Mickey running around the movie's set as an introduction discussing the plot with a host before the movie.  The plot is basically as follows:   A starship is loaded with mostly children and teenagers as a cross-galaxy human settling effort. Accidents (which are not really accidents and later revealed) cause adult crew members to be killed.  They travel to another planet and face all sorts of troubles. It arrives at the new planet after overcoming obstacles.   Other memorable scenes that may help:   Navigating out of earth's asteroid belt made out of space junk. One of the adults was killed via an airlock malfunction. The ship was supposed to be peaceful with no weapons. At one point they bring on board some crazy guy who puts together a rail gun. There's a memorable line like "Do you want no weapons at all or a well aimed rock?"  There's a planet or space station (I can't remember which) that has a fight scene with the evil bad guy. This scene takes place on what looks to be a carnival or fairground. The bad guys are trying to steal the ship the kids are on because it has some kind of really good futuristic space drive.   Hopefully you remember it better than I do! I've tried looking online for it before with no luck.


I'm attempting to add a file to my /etc/apt/sources.list.d folder and for some reason despite using sudo it still says permission denied. Here's the code I'm trying to run.  $ sudo cat >> /etc/apt/sources.list   I've also tried simply using gedit but that doesn't work either.

When using sudo to allow edits to files, I regularly get 'permission denied'.  For example, my mouse is jittery and sluggish, so I want to disable polling:  sudo echo "options drm_kms_helper poll=N">/etc/modprobe.d/local.conf   I'm prompted for a password, and then get:  bash: /etc/modprobe.d/local.conf: Permission denied   So I tried to do a temporary change to disable polling by using:  sudo echo N> /sys/module/drm_kms_helper/parameters/poll   Yet again the system responded with:  bash: /sys/module/drm_kms_helper/parameters/poll: Permission denied   Any ideas?


Can you please correct these sentences.  1.Can I click a picture of yours.   2.Do you know the email address of John's?  3.I think of both of yours betterment.   4.You are a friend of John's.

As  shows, we nearly always use the possessive form of personal pronouns for friend of mine/his/ours/etc.  But when it comes to actual names, we prefer  without the possessive apostrophe. That preference is even more marked with, say, . Not that I think the usage itself is particularly American - it's much the same with .  Personally, I find friend of him grates. In general I've no strong feelings either way as to whether it's friend of Peter or friend of Peter's (though I deplore the possessive in ), but in line with many others, I really don't like the possessive in relation to things like countries.  Why is this?   Edit: Noting an apparent "progression" (pronoun -> person -> nation) marked by reduction in use of the possessive, I checked at a finer "granularity". NGram shows that although it does occur,  virtually "flatlines" against friend of mine. But the bias reduces through of you, of us, and by the time I get to  it's much less extreme. There seems to be something "egocentric" about the double possessive.  Presumably when babies learn to speak, they soon notice that possessive pronouns, possessive apostrophes, and the word "of", all do the same job. Parents would correct a child who says "of mine's", but probably wouldn't even notice the same "redundancy" in "of Peter's". Younger speakers are unlikely to even be talking about something "of America's". Perhaps as we mature we tend to discard the "double possessive" for the more "distant" things that only adults are likely talk about, but we keep it for "closer" people because that's how we spoke when we were younger.  EDIT2 I note that I'm a great fan of him is vanishingly rare compared to ...fan of his, but with ...fan (of John) the double possessive occurs far less often than ...friend (of John's). Usage seems to be affected by the noun before "of" as well as the one after it. This is getting complicated...


I am trying to send some Latin Extended (ISO-8859-2) characters form a LandingPage registration Form, but from $mail->Body all the "ăîâşţ" ends in the E-mail Message as "ÄƒÃ®Ã¢ÅŸÅ£". Do I have to declare the Encoding on PHPMailer somewhere?  The awkward thing is, that all of Form data gets stored in the MySQL (INNODB-latin1_swedish_ci) with those  "ÄƒÃ®Ã¢ÅŸÅ£" character, and they parse ok "ăîâşţ", when called by the BackEnd WebPages.  What am I doing wrong?

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


I'm working on a map with an orthographic projection that requires to show the solar terminator, but I've found very difficult to draw the geometry of the day/night boundary in a specific day of the year. I'm looking for a way (or a tool) to generate (or import) this line in QGIS, and being able to determine its path for each day of the year.   The only reference I could find on the forum is this question, which has a different focus, though, and doesn't provide an answer:   Below a screenshot of my draft output, where the terminator has been added manually in Photoshop.

I'm looking to plot day/night on a Google map, for an arbitrary point in time. I'm familiar with generating map tiles; I'm just looking for an algorithm to tell me whether a particular point on the globe is currently in daylight or darkness, or to otherwise plot the curve of the day/night interface onto the map.  I've done some searching, but it's possible I don't even know enough about the problem domain here to know what terms to search for!  Any ideas? Doesn't have to be perfect -- basically, I'm comparing Flickr geolocation data of sunrise and sunset photos (and their "date taken" timestamps) with reality, and this is to help me visualise it.


I am working on a list of integers from a file. And I have to use a sorting algorithm to categorize them in descending order. I am familiar with the run time of a few sorting algorithms and I know the use of them is situational. So my question is: What would be the quickest sorting algorithm for a list of ANY size that is already 90% sorted? (in my file I have 10.000 entries but 9.500 of them are already sorted).  Thank you,

Which sorting algorithm works best on mostly sorted data?


I have a not-so-new HP LaserJet 1020 that works fine. Ubuntu recognized it, but on printing it did not do anything, except the document disappeared from the queue as if it had been printed. I looked up this problem and I installed hplip and entered this command to the terminal window:   sudo hp-setup -i   Than all looked fine, but in the end, when trying to download the plugin it displayed a red error message saying:  error: plugin download failed error code = 4 error:  file does not match its checksum. File may have been corrupted or altered error: Failed to install Plugin. error: The device you are trying to setup requires a binary plug-in. Some functionalities may not work as expected without plug-ins.  Please run 'hp-plugin' as normal user to install plug-ins. Visit http://hplipopensource.com for more infomation.   EDIT: my problem has been finally solved, and hplip was not needed. I had to install foo2zjs, an open source driver, that (I believe) was created for this issue. If you have the same problem, install foo2zjs according to the instructions on  . After installation run hp-setup again. That worked for me.

I have Ubuntu 17.10. My kernel version is 4.14.21-041421-generic. I have downloaded HPLIP 3.17.11 run file from the website. Unfortunately I am unable to compile it. After running the .run file, it starts ./configure, which throws an error regarding net-snmp.  In particular, these are the last lines of configure:  checking for cups ppd install... no checking for foomatic-rip-hplip install... no checking for qt5... no checking for qt4... yes checking for qt3... no checking for policykit... no checking for host machine platform... x86_64 checking for CRYPTO_free in -lcrypto... no configure: error: cannot find net-snmp support (or --disable-network-build)   SNMP is installed:  snmp is already the newest version (5.7.3+dfsg-1.7ubuntu1).   and libsnmp-dev is also installed (version 5.7.3).


I seem to get a NullPointerException in my code at line 15, but I just cannot understand why. I have been stuck on this for some hour now, and I don't know how to fix it. I have read up on what NullPointerException is, and I think I have a clear grasp of what it is, but I thought my if-statement would fix it, but apparently not.  Here is the code:  package learning; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.util.Scanner; public class Index{     public static void main(String args[]){         Index indexObject = new Index();         String filePath = "C:\\Users\\Edvin\\Desktop\\inputPrices.txt";         Scanner inputScanner = new Scanner(System.in);         int average = 0;         if(indexObject != null){             average = indexObject.findAverage(getFileInfo(filePath).split(","));         }         else{             System.out.println("Object instance is null. Terminating program.");         }          int currentItemInput = inputScanner.nextInt();         if(currentItemInput<average && currentItemInput != 0){          }     }      private static String getFileInfo(String x){         File listOfPrices = new File(x);         String error = "An error occurred";         try{             BufferedReader getInfo = new BufferedReader(new FileReader(listOfPrices));              String prices = getInfo.readLine();              while(prices != null){                 prices = getInfo.readLine();             }             return prices;         }         catch(FileNotFoundException e){             System.out.println("Couldn't find File");             System.exit(0);             return error;         }         catch(IOException e){             System.out.println("An I/O error occurred");             System.exit(0);             return error;         }     }      public int findAverage(String[] tempIndivPrices){         int x = 0;         int y = 0;         int total;         int [] indivIntPrices = null;         for(String i : tempIndivPrices){             indivIntPrices[x] = Integer.parseInt(tempIndivPrices[x]);             x++;         }         for (int element : indivIntPrices){             total =+ indivIntPrices[element];             if(element==indivIntPrices.length-1){                 int result = total / indivIntPrices.length;                 System.out.println(result);                 return result;             }         }         return 0;     } }

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


I'm trying to display data with a RecyclerView. I'm not too sure why it keep crashing with a NullPointerException. My theory is that it is trying to find the TextView before the view itself has been created.   However, with the way my constructor is, it shouldn't be doing that.   Been at this for a couple hours now. Any help would be greatly appreciated.   My XML file:  <?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:orientation="vertical"     >     <RelativeLayout         android:layout_width="match_parent"         android:layout_height="match_parent"         android:layout_margin="10dp"         >          <TextView             android:id="@+id/recycler_name"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:text="name"             android:textColor="@color/icons" />          <TextView             android:id="@+id/recycler_price"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_alignParentRight="true"             android:layout_marginRight="18dp"             android:text="price"             android:textColor="@color/icons"             android:textStyle="bold"/>         <TextView             android:id="@+id/recycler_date"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:text="date"             android:layout_below="@+id/recycler_name"             android:textColor="@color/icons"             android:textStyle="italic"             android:paddingTop="3dp"             />      </RelativeLayout> </android.support.v7.widget.CardView>   RecyclerView Adapter:  public class ExpenseAdapter extends RecyclerView.Adapter<ExpenseAdapter.ItemViewHolder> {     private ArrayList<Item> mExpenseList;      public static class ItemViewHolder extends RecyclerView.ViewHolder {         public TextView frag_name;         public TextView frag_price;         public TextView frag_date;           public ItemViewHolder(@NonNull View itemView) {             super(itemView);             frag_name.findViewById(R.id.recycler_name);             frag_price.findViewById(R.id.recycler_price);             frag_date.findViewById(R.id.recycler_date);         }     }      @NonNull     @Override     public ItemViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int i) {         View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.expense, parent, false);         ItemViewHolder viewHolder = new ItemViewHolder(v);         return viewHolder;     }      // constructor to receive list of expenses for recycler view to process     public ExpenseAdapter(ArrayList<Item> expenseList) {          mExpenseList = expenseList;     }      @Override     public void onBindViewHolder(@NonNull ItemViewHolder itemViewHolder, int i) {         Item currItem = mExpenseList.get(i);          itemViewHolder.frag_name.setText(currItem.getName());         itemViewHolder.frag_price.setText(Integer.toString(currItem.getPrice()));         itemViewHolder.frag_date.setText(currItem.getDatePurhase());     }      @Override     public int getItemCount() {         return mExpenseList.size();     } }


How can I number equations in Pages following standard form:  P.S. No, I don't want to use MS Word... I usually write in LaTeX, however, some documents/papers cannot be given for a review in .tex format.

Pages has since a relatively recent update a very useful way to insert equations using .   On multiple occasions, I have wanted to add tags to equations—a custom equation number on the right side of the equation. However, the \tag{} command doesn't seem to work in Pages. Is there any other way I can achieve this?   Three possibilities which come to mind are a) using a table with two cells, putting the equation in the left one and the equation number on the right, b) adding the equation text above or below the equation (but unfortunately not to the right), or c) adding spaces and then the tag manually (which seems to be a terrible idea). Is there a better way to do it?


I want my hone to be used as network drive, by sharing folders over network. So that I can access it from My windows PC. I want to use SMA protocol for that. I am using OnePlus One, CM12.1 OS with ES file explorer.

I'm looking for a way for my HTC Hero (Android 2.1) so I can share the contents of my SD card and phone memory over the WiFi network like a regular Windows file share. I'd like one that does not require me to root my phone, and am willing to pay for the right app so it doesn't have to be free.  I'm thinking of using SMB server and all I've found so far are:    which requires root access.  which is a "Java implementation of the SMB/CIFS network file and printer share server for Android devices" hosted on Google Code that has no documentation and has not released any files.   Is it even technically possible to develop an SMB Server on Android that can be installed without root access?


When I enter the shading workspace, or use Eevee at all, it looks kind of normal, like this:  But after panning around a little bit it seems like it is not rendering the actual object, but rendering the background as the object:  After panning enough, all of what was originally the cube is just a distorted version of the default HDRi: This same issue occurs even when using Eevee in regular render mode, without an HDRi. I looked for a while and couldn't find the issue anywhere else, so if anyone knows what is going on, that would be awesome.

I don't know why but now, when i go in material preview or rendered (in solid mode it works fine), my object is entirely gray, or invisible idk, because it has the same color of the background. I've been working for days on this project without having this issue, it suddenly showed up. I tried opening other old projects and suddenly they all do the same so i guess it is some blender program setting that applies for all the projects, but idk how it happened cuz i didn't change anything :/, anyone got any tips?


I know there is language about opportunity attacks that says:     You also don’t provoke an opportunity attack when you teleport or when someone or something moves you without using your movement, action, or reaction. For example, you don’t provoke an opportunity attack if an explosion hurls you out of a foe’s reach or if gravity causes you to fall past an enemy.   But Polearm Master seems to change that a bit:     While you are wielding a glaive, Halberd, pike, or quarterstaff, other creatures provoke an opportunity attack when they enter your reach   If I pulled someone to me, who is 15 feet away, do I get a Polearm attack as they enter my reach? Then they are 5 feet from me and take the lighting lure damage?

If I cause an opponent to leave my reach with an ability, spell, or effect can I use my reaction to take an Opportunity Attack against them?


I have the following sum to evaluate:  $$\sum\limits_{n=1}^{\infty}\frac{n}{2^{n+1}}$$ My professor says that I can evaluate this through "differentiating the geometric series" but I am not quite sure what that means. I already know that this converges to $1$, just not sure how to prove.

How can I evaluate $$\sum_{n=1}^\infty\frac{2n}{3^{n+1}}$$? I know the answer thanks to , but I'm more concerned with how I can derive that answer. It cites tests to prove that it is convergent, but my class has never learned these before. So I feel that there must be a simpler method.  In general, how can I evaluate $$\sum_{n=0}^\infty (n+1)x^n?$$


I am trying to convert this array of objects into a single object:  const arr = [   {day: "15/06/34", id: 40, time: "2000", type: "time"},   {duration: "240", id: "ZF3P49", name: "Race", title: "First ever"},   {message: "Try to beat me"},   {car: "Ferrari", userId: "D0Ek5Y"}, ]   I don't consider this to be a duplicate of  as that one only covers keys that are not dynamic.

I need to be able to merge two (very simple) JavaScript objects at runtime.  For example I'd like to:  var obj1 = { food: 'pizza', car: 'ford' } var obj2 = { animal: 'dog' }  obj1.merge(obj2);  //obj1 now has three properties: food, car, and animal   Does anyone have a script for this or know of a built in way to do this?  I do not need recursion, and I do not need to merge functions, just methods on flat objects.


All of the command line examples I'm seeing show how to create LAZ files in the same folder as the LAS files, e.g.:  C:\Folder\tools>laszip F:\Folder\LAS_points\*.las   Unfortunately, I don't have enough space in that directory to create and save LAZ files there. I need to save them elsewhere. How can I edit the command line to get the LAZ files to save to, say, G:\Folder\LAZ_points?

I'm trying to convert LiDAR files from the LAZ format (the compressed version) into LAS (the uncompressed version) using  software.   However, I am not really sure how it works. I created a new output folder as I entered in the app interface, but it is totally empty.  I also had tried the following code in the command prompt window:   D:\LiDAR\Laszip\laszip.exe *.laz    and got a message saying 'no input specified'.  In my folder, there are about 100-ish.laz files as well as one imu.laz. Any suggestions?


I have seen a few times now that, any bijection on any set( finite, or not) can be written as a composition of two involution. However, it is usually said that this is a well known result.  However, my question is why is it so obvious? What is the basic proof of this that leads to it being considered trivial?  I am still not sure what the proof would be. Maybe something to do with orbits? I think probably would have to consider the finite and infinite cases apparently. Im just not sure.  I know this question has been asked before but I do not understand the answer given in the linked question. It still is not clear to me how to do such a thing.

How can we prove that any bijection on any set is  a composition of 2 involutions ?  Since involutions are bijections mapping elements of a set to elements of the same set, I find it weird that this applies to any bijection.  Thanks for your help !


Here you have the code I made for the command :  #?dodaj @client.command() async def dodaj(ctx, a: int, b: int):     if (a == int and b == int):         await ctx.send(a + b)     else:         await ctx.send("Błąd : Nie mogłem obliczyc tego działania!")   I want to know what's wrong with this, because it won't work properly.  Here's the error i'm getting by typing "?dodaj coś jeszcze" :  Ignoring exception in command dodaj: Traceback (most recent call last):   File "C:\Users\PC\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\ext\commands\core.py", line 370, in _actual_conversion     return converter(argument) ValueError: invalid literal for int() with base 10: 'coś'  The above exception was the direct cause of the following exception:  Traceback (most recent call last):   File "C:\Users\PC\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\ext\commands\bot.py", line 863, in invoke     await ctx.command.invoke(ctx)   File "C:\Users\PC\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\ext\commands\core.py", line 721, in invoke     await self.prepare(ctx)   File "C:\Users\PC\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\ext\commands\core.py", line 685, in prepare     await self._parse_arguments(ctx)   File "C:\Users\PC\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\ext\commands\core.py", line 599, in _parse_arguments     transformed = await self.transform(ctx, param)   File "C:\Users\PC\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\ext\commands\core.py", line 455, in transform     return await self.do_conversion(ctx, converter, argument, param)   File "C:\Users\PC\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\ext\commands\core.py", line 408, in do_conversion     return await self._actual_conversion(ctx, converter, argument, param)   File "C:\Users\PC\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\ext\commands\core.py", line 379, in _actual_conversion     raise BadArgument('Converting to "{}" failed for parameter "{}".'.format(name, param.name)) from exc discord.ext.commands.errors.BadArgument: Converting to "int" failed for parameter "a".   Also when I type "?dodaj 20 20" it should add the 20's but it sends the error message that can be seen in the else parameter, in the code.

I need to know if a variable in Python is a string or a dict.  Is there anything wrong with the following code?  if type(x) == type(str()):     do_something_with_a_string(x) elif type(x) == type(dict()):     do_somethting_with_a_dict(x) else:     raise ValueError   Update: I accepted avisser's answer (though I will change my mind if someone explains why isinstance is preferred over type(x) is).  But thanks to nakedfanatic for reminding me that it's often cleaner to use a dict (as a case statement) than an if/elif/else series.  Let me elaborate on my use case.  If a variable is a string, I need to put it in a list.  If it's a dict, I need a list of the unique values.  Here's what I came up with:  def value_list(x):     cases = {str: lambda t: [t],              dict: lambda t: list(set(t.values()))}     try:         return cases[type(x)](x)     except KeyError:         return None   If isinstance is preferred, how would you write this value_list() function?


I need to convert string to long in gcc version 4.6.2 JUST in this version.\ I googled it but all functions that I found is not available in the above version.  Regards

I'm using VS 2008 to create a C++ DLL (not managed) project and I need convert a char* to a long long type. Is there an easy way to do it?  Thanks in advance :)


I would like to suggest a Stack Exchange (and all its sub websites) modification. When the user gets a notification, it should show it on the tab of the browser. (.) And even better, would be to get a desktop notification.  In my opinion, it is kind of annoying to just stay at the same page while you could be doing other things.

A very nice feature for Stack Overflow (and other Stack Exchange sites) would be to indicate the number of notifications (if any) in the browser tab like seen on Facebook:    Of course that would require automatic update if content has changed. Some kind of 'push-notification' which would be a nice feature as well.


In the general theory of relativity, the speed of light  in vacuum is $c$. In the special theory of relativity, a postulate is made that the speed of light is the same (called $c$) in all inertial frames. Consider the following statement: "The speed of light is $c$ in all inertial frames but it can vary in accelerating frames." My question is: Does this statement violate the principle of equivalence or the special theory of relativity or any fundamental law of physics?

I'm studying special relativity and saw the 2 postulates of Einstein. The most remarkable one for me is the universal speed of light. Einstein postulated that the speed of light in vacuum is the same for all inertial observers, regardless of the motion of the source. But what if we are accelerating and we are changing from one inertial frame to another, how will we observe the speed of light? Is it still the same? I suggest it's not? Because I alread saw a small introduction to general relativity where the light will bend in a gravitational field and therefore also when you accelerate. So does the speed of light change because it bends?


Let $k$ be a field, and consider the subring $k[x^2,x^3]$ of $k[x]$. Prove that every ideal in $k[x^2,x^3]$ can be generated by two elements.   What I have tried is: suppose $I$ is a nonzero ideal in $k[x^2,x^3]$; we may choose a polynomial with least degree to be one of the generators. But I have no idea about the next step.

The question is this:      Let $f:\mathbb C[x,y]\rightarrow\mathbb C[t]$ be the homomorphism that sends $x\mapsto t+1$ and $y\mapsto t^3-1.$ Determine the kernel $K$ of $f$, and prove that every ideal $I$ of $\mathbb C[x,y]$ that contains $K$ can be generated by two elements.   Solution:  I have shown that $((x-1)^3-y-1)=K.$ However, I am having trouble showing the second part. Any hints??


I wanted to know if I can execute a command from the terminal and right after the command started I send its PID to another command to be monitored.  I need to do something like this,  dd if=/path/of/file of=/path/of/destination   And then I need to monitor its execution using pidstat, but pidstat takes a pid and I don't know how to make one send the pid to the other.  I need to monitor disk usage, memory usage, cpu usage and time elapsed. Does any one know of a way to do that?

I want to have a shell script like this:  my-app & echo $my-app-pid   But I do not know how the get the pid of the just executed command.  I know I can just use the jobs -p my-app command to grep the pid. But if I want to execute the shell multiple times, this method will not work. Because the jobspec is ambiguous.


I need a nick name for Pokemon Go to continue the game. I tried more than 100 names . Can you please send me a available name.

The app keeps asking for a nickname, and I have entered dozens of names, but it keeps saying that the names aren't available. How can I find an available name?


In the One-handed perk constellation (skill tree), there's a perk called "Savage Strike". The description claims that "Standing power attacks do 25% bonus damage with a chance to decapitate your enemies." What is the probably of to decapitate your enemies?

Sometimes, when fighting an enemy, your character will do a special move, with a third person view animation, instantly killing the enemy. But these types of moves seem to be random, sometimes being used on enemies with nearly full health, other times not having a finishing move at all during a whole fight.  What are the parameters determining when a finishing move is used?


I downloaded what may have been a malicious extension on Google Chrome. I don't know if that was a legitimate extension or not; I got it in order to access Pearson, hand-typing a link that another student (with no motive to prank me) showed me (am I a victim of ?). I was able to remove it from Chrome, which is a step above what I've seen another similar malicious extension do on another computer. How do I know if it is really gone?  If I am the victim of something malicious, is there any way that this could have compromised my Google account? I have that intertwined with a lot of things, including my university account. If so, what should I do? Is there any information that I have to go off of to justify buying a new computer?  The name of the extension was "Safe Search." The publisher is "Safely." It wasn't "Search Safely Search."

What should I do if my Windows computer seems to be infected with a virus or malware?  What are the symptoms of an infection? What should I do after noticing an infection? What can I do to get rid of it? how to prevent from infection by malware?   This question comes up frequently, and the suggested solutions are usually the same. This community wiki is an attempt to serve as the definitive, most comprehensive answer possible. Feel free to add your contributions via edits.


I found many questions regarding this on SO, but they always assume that the word is at the beginning or end.  Assuming the word is cat, I don't want to match any of these:   cat hellocat catfood nocatthere   A common idea seems to be something like this:  ^([^c]*|c([^a]|$|a([^t]|$)))*   The regex works like this:   match anything except a c [^c]* or, if you have matched a c, then match only something other than a, or the end of the word([^a]|$ or, if you have matched a ca, then match only something other than t, or the end of the word ([^t]|$)   The examples work correctly, they aren't matched.  But the regex can be confused:  The following examples match:   ccat cacat

I know it's possible to match a word and then reverse the matches using other tools (e.g. grep -v). However, is it possible to match lines that do not contain a specific word, e.g. hede, using a regular expression?   Input:  hoho hihi haha hede   Code:  grep "<Regex for 'doesn't contain hede'>" input   Desired output:  hoho hihi haha


Essentially, I am writing test code for a short program and have put: except ValueError:     pass  I can see in my test that ValueError is raised, however the test fails with the message: FAILED (errors=1)  In the production code ValueError is raised like this: if n < 0:     raise ValueError  I'm not sure if the test code is correct as I believe the production code does throw a ValueError however my test failed.

How does one write a unittest that fails only if a function doesn't throw an expected exception?


My question pertains to the rules, and more specifically the ostensible violation of the rules on the modification of nouns into adjectives. I sometimes experience difficulty of knowing when to adjective-ify nouns when (1) the adjective immediately precedes the noun in question and (2) the adjective version of the noun exists and is spelled differently. Take the two examples I came across, surfing on the web: a) "A journalistic career" b) "A mathematics career" Both phrases convey the same relative semantic idea and an almost identical construction bar one detail : in (a) the adjective version of journalist is deployed however in (b) the noun form of mathematics is left unaltered even though it functions as an adjective. The adjectival form of mathematics is obviously mathematical. Is there a rubric or custom to distinguish when to adjective-ify nouns in these contexts? Or is it completely optional and both camps are valid? Edit: another illustrative example : Is it correct to say "a gallery of cow pictures" or "a gallery of bovine pictures"? Edit: My question is about the broader use and abuse of adjectives beyond the examples listed. Is there a hard-and-fast rule?

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


I've just downloaded Team Fortress 2 from Steam on another PC and I would really like to copy it on my home PC.  So, I copied the "steamapps" folder and compressed it with 7zip, it went from 12 GB to 4.5 GB, which should save me a lot of time when downloading it.  So once it's done, all I have to do is replace "steamapps" with the one in my home PC's folder and it'll work, right?  I would like to know, before I actually download the game, will what I have done actually work or is there another way that I am supposed to do it?  Any help would really be appreciated.

I have successfully transferred "Killing Floor" from my brother's laptop to my own via external hard drive. The problem, now that I have all the files, is that I don't know how to launch the game through Steam. All I did was copy files from his Laptop to the hard drive, then from the hard drive to my laptop, then I put the files in the "Steamapps" folder under "Steam" in my laptops hard drive. So the question is, how do I start up the game through Steam?


I have a table prices that stores prices for various products as they update throughout the day, structured as below:  +---------+--------+-------------------+ | product | price  | creationTimestamp | +---------+--------+-------------------+ | A       | 34.234 | 30/10/20 01:48:48 | | A       | 34.598 | 30/10/20 21:43:12 | | A       | 33.129 | 31/10/20 08:52:58 | | B       | 13.440 | 31/10/20 15:22:01 | | B       | 12.914 | 31/10/20 23:24:42 | | C       |  1.494 | 31/10/20 04:36:00 | +---------+--------+-------------------+   What I would like to do is for the past 5 years,  extract the last price for each product, per month based on the most recent create timestamp. e.g. +----------------+---------+-----------------+ | endOfMonthDate | product | endOfMonthPrice | +----------------+---------+-----------------+ | 31/10/2020     | A       |          33.129 | | 31/10/2020     | B       |          12.914 | | 31/10/2020     | C       |           1.494 | +----------------+---------+-----------------+  (this only displays the last month as an example, but i want to show prices for the preceding 5 years) My query so far is select  * from prices p1 where creationTimestamp >= sysdate - interval '5' year and creationTimestamp in (select max(creationTimestamp) from prices p2 where p1.product = p2.prices)  which returns the most recent timestamp price per product. However I am unsure how to group this expression per month and year. can anybody help correct my query?

Table:   UserId, Value, Date.   I want to get the UserId, Value for the max(Date) for each UserId. That is, the Value for each UserId that has the latest date. Is there a way to do this simply in SQL? (Preferably Oracle)  Update: Apologies for any ambiguity: I need to get ALL the UserIds. But for each UserId, only that row where that user has the latest date.


If $a \mid r$ and $b \mid r$ show that $\operatorname{lcm}(a,b) \mid r$ by using only elementary properties of numbers.

Prove that If $m'$ is a common multiple of $s$ and $t$, then $m | m'$. Here $m$ is the LCM of $s$ and $t$.    Although the statement is intuitively clear to me I don't know how to prove.


This:    And this:    Should I be concerned?  Should I remove one?

New mac user here (Linux background). I'm running macOS Catalina (Beta5). I've noticed there are 5 volumes in my main disk container. One is mounted at /, that I understand, it's the system, another is /System/Volumes/Data, which I tough it would be the Linux /home, but it's not, so what it it?  Also what are the other two unmounted volumes? One might be the recovery one, but the other? Thanks!


I'm using almost default settings, with Computer Modern as the main font; I have to stick to it as much as possible, and keep the preamble as short and simple as possible. Up to now, I've been using (slanted) sans serif greek letters in math mode, in cmbright font-family, exactly as suggested in  (I copied my settings from it, then I somehow sorted out the uppercase problem). Everything works great, I'm very happy with the results, but now I need to add also (slanted) bold sans serif greek letters (at least some of them). I've been able to do this with cmss, following , but I'm not happy with the results; a MWE comparing the results: \documentclass{article} \usepackage[LGR,T1]{fontenc} \usepackage{amsmath,etoolbox}  \DeclareSymbolFont{sfletters}{OML}{cmbrm}{m}{it} \DeclareMathSymbol{\salpha}{\mathord}{sfletters}{"0B} \DeclareMathSymbol{\sbeta}{\mathord}{sfletters}{"0C} \DeclareMathSymbol{\sLambda}{\mathord}{sfletters}{'3}  \newcommand{\declaresfgreek}[2]{%     \protected\csdef{sf#1}{\mathord{\text{\sfgreekfont#2}}}% } \newcommand{\sfgreekfont}{\usefont{LGR}{cmss}{m}{it}}% change the family \declaresfgreek{alpha}{a} \declaresfgreek{beta}{b} \declaresfgreek{Lambda}{L}  \newcommand{\declarebsfgreek}[2]{%     \protected\csdef{bsf#1}{\mathord{\text{\bsfgreekfont#2}}}% } \newcommand{\bsfgreekfont}{\usefont{LGR}{cmss}{bx}{it}}% change the family \declarebsfgreek{alpha}{a} \declarebsfgreek{beta}{b}  \begin{document}  \begin{equation*} \salpha\ne\alpha\ne\sfalpha\ne\bsfalpha \end{equation*}  \begin{equation*} {\sLambda^\salpha}_\sbeta\ne{\varLambda^\alpha}_\beta% \ne{{\sfLambda}^{\sfalpha}}_{\sfbeta} \end{equation*}  \end{document}  One should get:  In my opinion:  the greek fonts of cmss and cmbright are too different from one another; they can't be used together; I tried to show this fact in the first equation (cmbright ≠ cm ≠ cmss ≠ bold cmss); cmss doesn't cope well with superscripts and subscripts (because it's too thick!), while cmbright is great; actually, I find that cmbright gives an optimal sans-serif "translation" of the CM serif expression, while cmss is very far from it (cmbright ≠ cm ≠ cmss).  For some reason, I cannot simply "change the family" (as it is suggested in the comment to the code above; that bit has been copied from the second link) in \sfgreekfont and \bsfgreekfont to cmbright; my guess is that cmbright has not bold greek letters, but I'm no expert here, quite the opposite; by the way, in the cmbright  they explain how to get bold greek, but I've not been able to sort things out for my specific needs. So is there is any way to add a bold sans serif greek alphabeth in cmbright (or some other font family producing very similar results: not too heavy font-weight, fit for indexing, not messing too much with CM) to be used along with the default math settings?

I have seen solutions for bold lowercase greek, and lowercase sanserif, but have not seen the combination of all three.  What is the reliable way to generate lowercase, sanserif, bold math font?


I'm trying to loop through several files with this naming structure: apple_123.txt, orange_456.txt, banana_789.txt I'm trying to use a wildcard for the numbers, but the wildcard is not expanded and the output looks like this: apple_*.txt I've tried quoting around the wildcard but it didn't make a difference. My loop: fruit=(apple, orange, banana) for f in "${fruit[@]}" do         echo "mv ${f}_*.txt ${f}_*.out" done

This will be an easy one, but in my memories, when shell scripting, using double quotes would allow expanding globbing and variables.  But in the following code:  #!/bin/sh  echo *.sh echo "*.sh" echo '*.sh'  echo $LANG echo "$LANG" echo '$LANG'   I get this result:  bob.sh redeployJboss.sh *.sh *.sh en_US.utf8 en_US.utf8 $LANG   So single quoting prevent glob AND variable expansion but double quoting allows only variable expansion and no globbing?  Can I glob in any quoting pattern?


again me.   I am having trouble while installing Ubuntu. as I remember, I downloaded Ubuntu about two years ago and it was really easy. Mainly because I used Wubi and everything was fine.   I installed it and restart the computer to choose what OS will run my computer and it work fine! For some reason after that, I had to uninstall Ubuntu. Now, I want to install it forever, but I wonder about what is the difference between Wibu and liveCD/USB download?   I read the instructions and I see that downloading by CD/USB is really hard, there are partitions, for example, which I even don't know what they are (English is not my native language :( )  and it is really easy to download with Wubi.  I just want to know, which is the best way to install Ubuntu?  thanks advance.

At this time, Wubi does not work with Windows 8 default boot-loader. Thus at this point Wubi would not work on a new Windows 8 machine.      Citation fom    Question  Recently I've learned of , a way to install Ubuntu right from Windows.  Besides installing from Windows, I would like to know key differences between a regular "alongside Windows" or Dual-boot Ubuntu installation and one done with Wubi. Are there any disadvantages (for example a performance penalty) or incompatibilities I should look out for when using Wubi?


In my downloads I have xampp-linux-x64-7.1.7-o-installer.run, but when I click it it tries to run and then throws an error saying I need to become a super user as root privileges are required.  I tried typing sudo in the terminal and then dragging it into the terminal, same results. Can you help me use this app?

My PC has both Ubuntu and Windows 7 installed. I have installed all my drivers in Windows like Nvidia graphics, motherboard etc. Shall I install them in Ubuntu too?  I looked on the web for my Nvidia drivers and I have found a .run file. How could I install it on my Ubuntu?


I have tried Virtual Box  running Windows 10 with it, but all i get is 256 MB of video memory, while I have a 4 GB VRAM video card.   When I try with VM Ware the video memory is increased to about 3GB and Windows runs much faster and better.   VM WARE cost around 190 GPB and that's a lot.   Are you aware of any better open-source solutions ? Is there like another virtualization tool that runs smooth as VM ware but free or cheaper

I have just installed Ubuntu 14.04 on VirtualBox, including the guest additions.   However, the display is really slow. Looking at the display settings I can see that the video memory is only 12MB but I can't move the slider to increase it. The checkboxes for extended features are greyed-out too. See screenshot.  .  How do I increase the amount of memory?  TIA


For example, here we have $y = \sin(x^2 + 5x -6)$. So, it’s answer will be $\cos(t)\cdot(2x+5)$, where $t= x^2 + 5x -6$. But I want to know what if we solve it directly I.e $\cos(2x+5)$ wrong? What’s the reason? Why choose the 1st approach?

I have just learnt about the chain rule but my book doesn't mention a proof on it. I tried to write a proof myself but can't write it. So can someone please tell me about the proof for the chain rule in elementary terms because I have just started learning calculus.


I'm thinking about buying the generation 1 games on the 3ds, but if they patched the glitches from the original game I'm not going to.   To be more specific, I'm wondering if the experience overflow glitch and the mew glitch still work. Thanks!

Based on the previous games realesed on the virtual console from old Nintendo  platforms like Game Boy. Does anyone know if a known glitch or exploit on the original game were fixed on the new VirtualConsole version?  Being more specific, what actually worries me is if we are going to be able to capture Mew in the VC version of Pokémon Red/Blue/Yellow using the  of the original version or if it will be fixed.