We all have lots of little things we have to remember that are what programmers often call Key Value Pairs in the format key = value. e.g. My shoe size is 11. or My wife's birthday is Feb. 29. EDIT: It's not just personal info though. The original impetus was for business, such as: Our third quarter sales goal is $375,000.. I can't use a programming term in everyday conversation with non-programmers. The closest I can come up with is trivia, but that sounds more suited for historical dates or random facts from Wikipedia. Is there a normal everyday word for these individual details with the key = value format? EDIT: I want people to see this word and quickly recognize what kind of information to put in this section with my assistance. So words requiring explanation or clarification won't work. EDIT: @TylerN: In this tool, you can save little [trivia] that you want to recall later.

I can't recall if the word has a singular form. The plural form has a meaning closely analogous to "personal data" and my vague personal recollection is that it ends with an 'i' or an 'a'.  It is not a general word like 'miscellany', 'factoids', 'data', etc. It refers specifically and exclusively to bits of personal information such as name, age, favourite food, etc.  Any help jogging my memory would be much appreciated.  Example sentence:     When it came time to introduce himself, James divulged only the basest [word]: his given name, his occupation, and the names of his dogs.


I set up a chase account in my name, $19,500 was deposited. Which I took out in cash and deposited in other accounts for her. This account was then closed. Before that though, I got a phone call from chase saying the funds deposited ha been recalled. Now the same thing is going on with a BOA account.   My personal account has not been touched but I am wondering if I am being scammed or used for an illegal purpose.   I have also done three MoneyGram s for her to Africa, Florida and California.  Please help

I was contacted by someone who claims he is in the military stationed overseas. He said he could transfer fund from his account to mine. Just wondering if this is true. I am not interested in transfering funds.


Let's suppose that I want to know how much the variables on a program is using s1 = "a long string" s2 = "another long string"  I want to know if it possible to know the usage of RAM of both strings, is there a way?

I want to know how to get size of objects like a string, integer, etc. in Python.  Related question:   I am using an XML file which contains size fields that specify the size of value. I must parse this XML and do my coding. When I want to change the value of a particular field, I will check the size field of that value. Here I want to compare whether the new value that I'm gong to enter is of the same size as in XML. I need to check the size of new value. In case of a string I can say its the length. But in case of int, float, etc. I am confused.


Alright, we all know polls are . And yet...  ...it seems to be working pretty darn well over at . Brief summary for the click-through impaired: a single CW question, where the polls are answers and the responses are comments.  The way I see it, this could be a good thing. No, it wouldn't stop people from asking "What is the best {thing}" questions on Stack Overflow, but it would provide an outlet for those questions and might at least be marginally interesting. Additionally, it would mean that when people inevitably come here to ask "Why was my question closed, where can I ask it?" we could say something other than "Somewhere else, now go away."  So what do you guy and gals think? Is this something that might work on MSO, or are polls still verboten?

Stuff like polls, recommendations based on subjective constraints, puzzles, webcomics etc. do not belong on the serious main SE sites, where professionals should be considered at work and having just a few spare minutes ("code's compiling") to answer questions, so they should not be distracted by such things. However, I'd also like to have a home for these things still using the SE engine. For the reason I mentioned before, this needs to be a separate place though. Let's call it four.[sitename-here].com.


So, my code goes something like this:  haveopenvel = arcpy.GetParameterAsText(10) arcpy.AddMessage(haveopenvel) if (haveopenvel == True):#error     openvelftsec = Raster(openvelftsec)     arcpy.MakeRasterLayer_management(openvelftsec,"openvelftsec","#",ext,"#") else:     ##Optional Model that can be    However, the loop always goes into the else loop even when I check mark the input in the tool. COuld anyone tell me what is going wrong here?

I'm using ArcGIS for Desktop 10.3.0.4322 I have a script tool which requires a parameter (folder path to a gdB, via GetParameterAsText) so that a later process can be saved there. The thing I want to do is make an Optional Boolean parameter, that when checked, automatically fills in the folder path gdB parameter. The Boolean text asks the user, "Use default workspace?", to which if they check the box (boolean == True), then the folder path parameter will be automatically defaulted (saving the user a small amount of time). I have already created the Boolean parameter in the script tool, I am however unaware of how to "fill in" the required parameter based on the user's Boolean. Code Snippet: # Ask user to select the Geodatabase workspace to use for data output userWorkspace = arcpy.GetParameterAsText(0)  # Ask user if they want to use default workspace (boolean) useDefault = arcpy.GetParameterAsText(1)  # If user wants default workspace, then give it to the required parameter (0) if useDefault == True:  arcpy.env.workspace = path else:  # Set workspace environment based upon user's choice  arcpy.env.workspace = userWorkspace


Traditionally, a thesis is assimilated to a monograph and comprises a unified body of work. However, with "stapler" theses becoming more common, I'd like to know if a thesis is allowed to comprise multiple unrelated projects.    To make the question more regional, assume that the country is Germany and that the subject is mathematics.  Indeed for the first few years, I have been working on several projects that had as outputs papers that are completely unrelated (except for the fact that they fall within the same broad subarea of mathematics -- really, one of those listed in the arxiv math section: ).

My interests are very broad. Before grad school I did a lot of things, but now it's expected that I only do one thing. Provided that I can demonstrate research competence in more than one field, by publishing for example, is it possible to write a thesis that consists of several smaller, orthogonal projects instead of a single great push? I understand why this isn't encouraged - diluting yourself is not an efficient way to get things done and it's unlikely that one would be able to become a PhD-level "expert" in more than one deep subject. But provided that one is very industrious and willing to give up the prospect of having any kind of normal life, which I am, has this ever been done?  Also: I realize this is funding-dependent - assume that I have external funding from a fellowship.


We are running a number of environments on EC2 using VPC. In each VPC we have a hardened bastion host configured which is used as the initial SSH entry point into the network.  To access hosts within our private VPC subnets, a user first SSH to the bastion host and then SSH to other hosts within the subnets. To do this the user forwards the SSH keys (downloaded as .pem files from AWS) when they make the initial SSH connection. For example:  ssh -A ec2-user@bastion-host.on.aws ssh ec2-user@app-server.on.aws   The whole purpose of the bastion host is to allow team members to securely access our environments providing they have both .pem keys. The team members are trusted and within a single organisation.  My question is: What is the best way for us to manage and distribute the .pem files within the team so that:   Team members can find the correct .pem files for the environment they wish to connect to The storage of the .pem files is secure We can explicitly authorise individual users to access the keys   Any suggestions most welcome.

I work with small teams (<10) of developers and admins with the following characteristics:   Most members of the team have >1 personal computer, most of which are portable Team members have access to 10-50 servers, usually with sudo   I think this is pretty typical for most startups and small- to mid-size corporate IT groups.  What are the best practices for managing SSH keys in a team like this?  Should you share a single key for the whole team?  Should each person have their own key on a shared account ("ubuntu" on every server)?  Separate accounts?  Should each team member keep a separate key for each of their laptop or desktop computers?


So, say we discover a method of FTL. However, anyone or anything that makes use of this FTL is unable to be observed by the outside world.   For example.  In the year 3000 a ship leaves Earth headed 6 light years away at twice the speed of light. A side effect of this FTL prevents outsiders from observing them. From the Earth's point of view the ship vanished into thin air. The ship arrives at it's destination, drops out of FTL, and can now be observed again. From the Earth's point of view, in the year 3009 their telescopes will see you suddenly appear at the destination 9 years after you left(3 to account for travel and 6 for the light to arrive back to Earth). However, after 1 year at the destination the ship decided to head home. They go into FTL and are once again un-observable. They arrive back at Earth in the year 3007, 2 years before their arrival at the destination is observable on Earth.  So, my question is does any of this in any way break the law of causality and effect, and if so how does it do so? As I understand it the fact that they can't be observed actually going faster than light that should allow them to get around causality.  And when I say they can't be observed during FTL to outsiders, I mean that completely. No heat escapes, no energy, no signals, no light, nothing at all.  Thank you very much

Let's say I have two planets that are one hundred thousand lightyears away from each other. I and my immortal friend on the other planet want to communicate, with a strong laser and a tachyon communication device.  I record a message on the tachyon communication device and release the message at exactly the same time as I activate the laser, both of which are directed to the other planet which is one hundred thousand lightyears away. Say it is the year 0 for both of us at the time I did this.  If tachyons existed, then the message would arrive to my friend before the photons in the laser. It would arrive, say, a thousand years earlier. From my vantage point, that message will arrive to her at year 99,999; the same would be true for my friend's vantage point. However, she will only see the laser at year 100,000.  So since she got the message at year 99,999, she immediately sends me a reply back going through the same procedure as I did. She records a message and releases it at the same time as the laser. The tachyons will arrive 1,000 years earlier than the laser, so for me, I will receive the message at year 199,998. I will receive the laser, however, at year 199,999.  It seems to me that communication this way does not violate causality. I will still have received the message after I had sent it.   If tachyons truly violated causality, though, I realize it should arrive at year -1 for her, and so she can reply to me at year -2, which would mess me up by year 0 as I will ask her how she knew I was planning on sending her a message before I sent it. I could send her a different message, which she would end up receiving at year -1, and will end up confusing her as she would have received one message asking her out, and the other asking her how did she know I was asking her out. She then decides I am crazy and sends me a message at year -2 that she does not want to date me, and so she will have both turned me down and entertained me before I have even asked her out.  On the other hand, let's go back to year 0 and add a third device to our list: an Alcubierre drive. After I send out the message and the laser, I get impatient and do not feel like waiting 99,999 years, so I get on my Alcubierre drive spaceship and arrive on her planet at the same year 0. My friend is not in her office, so I leave a note to her also immortal secretary saying I dropped by and that she should expect a message for her in year 99,999.  I then get back on my Alcubierre drive and land back on my planet, still on year 0. Meanwhile, the tachyons and photons I sent out are still racing to arrive to her. By year 99,999, she receives the message just as I Alcubierre drive back to her, and I pick her up for dinner.  But the point of my question is, it seems to me that just going faster than light, if that alone was what you had, would not violate causality. It must be something else. I understand time dilation and that things with mass cannot travel at the speed of light, but using the Alcubierre drive, hypothetically speaking, I was still able to outpace the photons while also having mass. It still did not produce causality problems. Alcubierre drives are also valid solutions to GR.  It seems circular to me to say that what makes traveling faster than light violate causality is because it violates causality (if faster than light communication was divorced from causality problems, then the causality problem would cause itself -- thereby violating causality and, hence, we would scrap it and conclude that there is no causality problem after all).  What is it that I am missing? If someone could help me out, that would be excellent. I've been itching to ask my friend out for a few millenia now. :)


I finally got my wife to play and I've noticed she is seeing many more different types of Pokemon despite just starting. When I started I primarily saw Rattata's and Pidgey's.  It appears that we see and can catch the same creatures, and I know that the rarity of present Pokemon increases as you go up in level. So I'm wondering, has the fact that I'm level 7 made it easier for her to catch different types of Pokemon?

Some sources seem to claim that you will find more rare pokemon the higher your level. If true, would walking together with a higher level trainer improve your chance of finding more rare pokemon?


I’m currently building my own website and I’m trying to do everything as best as i can. I am currently learning about images and i have some questions on optimising them so that they dispaly appropriately across my site.  I bought a website template that comes with a carousel & 3 images to populate it. The three images are all jpg and the dimensions are 1920x700. I have since replaced these images with my own and although i set the dimensions to 1920x700 when i saved it (as png, using Photoshop save for web and devices) the file size is 2.69mb. When i hit my site for the first time the images takes a long time to load which is definitely not what I want.  When it comes to images should i be saving as jpg or png or any other format that is available? I know from a transparency point of view then i should use png because jpg does not support this but im confused when to use which.   I would also like to know (using Photoshop) how i could reduce the file size (for quicker load times) but maintain the dimensions of 1920x700.  Any information regarding best formats and other general advice to help me understand image use with website will be gladly taken on board.  I’ve just bought a camera so would like to know more about photography and images :)  Cheers Paul

This is almost a StackOverflow question, however it's completely related to Photoshop and other tools. With every Pagespeed test I do for all my website I get the comment "Optimize images by lossless compressing image X" which often increases my page rank a lot.  I already save EVERY image with 'save for web' with Photoshop, but I was wondering how I could "Optimize images by compressing lossless" even more. As far as I know I'm already doing everything I can.   How can I optimise images to improve my webpage loading speeds?


I have a three-way 2x2x3 ANOVA, which initially showed a significant AxBxC interaction  (but no significant two-way or main effects)  I've broken this down into two-way ANOVAs to try to interpret the result, however:  1) Splitting it by variable "A", doing two two-way ANOVAs (i.e. for each of two levels of "A"), gave no significant BxC interactions or main effects of B or C  for either level of A  2) Splitting it by variable "B" gave no significant AxC interactions or main effects of A or C  for either level of B.  My question is: How to I proceed with interpreting this?

I have a significant three-way interaction (with no significant two-way interactions and no significant main effects).  To begin with I have followed this up with two two-way ANOVAs (one at each level of the third variable). The first part of my question is whether this is an appropriate follow-up.  This showed no significant main effects or interactions at either level of the third variable...is this the end of the analysis?  If so, how would I interpret the three-way interaction?


What does a buffer do? In the given circuit,it is said that capacitors C1 and C4 act as buffer .What is their role here?Can't we just replace them with pull-down resisrors?

Just wondering if someone can give me an explanation for this capacitor layout - what is it's function? The chip to the right is an ADC.  Circled in blue.    I'm guessing it is well known but i don't know how to search for it.


When I execute:  $ which -a python /usr/local/bin/python /usr/bin/python   This bothers me because execute python directly will execute /usr/local/bin/python, but it can't link to correct dependencies. So, how could i correctly uninstall it? I've checked all packages.   I've checked dpkg --search /usr/local/bin/python but only get no path found matching pattern /usr/local/bin/python. Seems it was installed by compiling sources of python and make install. But now how can i remove it?

I used source code to build one package such as below:  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib --with-package-name="Myplugin" --with-package-origin="http://www.ubuntu.org/" --enable-gtk-doc --disable-static make make install   But unfortunately, i discovered that its the latest version, and has lot of bugs, so i need to remove it/uninstall it. But how can i do so? I tried make clean; make uninstall but still i see it exist:  # pkg-config --list-all | grep Myplugin myplugin-.... $ ls /usr/lib/myplugin/libXYZ.so exist....   How do you remove this now?


At present rate of exchange, _______  2$  Which among the three options is correct to fill in the above blank ?        fourteen dozen costs.   fourteen dozens cost.   fourteen dozen cost.      I guess we use singular nouns after cardinal numbers so fourteen dozen  should be the correct choice but then will verb agree with fourteen or with dozen i.e. will it be plural (cost) or singular (costs)?

Out of the three, which is the best option and with which grammatical rule:        I have four dozens of mango.   I have four dozen of mangoes.   I have four dozens of mangoes.


I have Mavericks on one HDD and Windows7 x64 on another HDD in same machine. Windows can't even see MAC partitions while MAC gains READ ONLY access to NTFS partition.  I want a robust and common file system for windows (data) partitions which can be accessed from MAC with full read and write support. My NTFS partitions are not huge as terabytes, in fact 50GB to 500GB max at the moment.  I have Googled and tried to analyze worthiness and reliability for the two solutions most commonly appearing exFAT NTFS drivers on MAC (paragon being recommended as faster)  I found cases with reliability issues and issues disk operations latency  I do have frequent power outages. I believe NTFS and HFS+ takes care and self heal upto some extent under such situations.  sigh! if MAC had native read/write support for NTFS this problem would have never existed for me.   please suggest a solution

What is currently the best file system to use for drives that are regularly accessed (both reading and writing) from both Windows and OS X on a single machine using BootCamp. The most important points are stability and speed.  I've been using NTFS so far, coming from a Windows background. I've tried the NTFS-3G driver with Fuse and, in my tests, it was far slower than native NTFS under Windows. I also tried their commercial driver without much better results.  Afterward I tried Paragon's drivers, which were much faster. They aren't quite native NTFS speed, but they aren't far off either. The problem is I've had crashes with them, and recently had crashes + data loss with them.  I know this question has been asked before, but the posts I saw were older and the driver and filesystem options are maturing.  Options I've seen:   FAT32: Limited drive size? Limited permission settings NTFS: Limited speed/stability under OS X HFS+: MacDrive? available for Windows   Follow Up  I have now formatted one of the drives as exFAT and can confirm that this works great for both reading and writing when the machine is booted into either OS X or Windows 7.


I have recently installed Ubuntu 18.04 on my laptop. I tried installing Notepad++ using the following commands:   sudo snap install notepad-plus-plus     However, after installing it, I can see Notepad ++ is installed but I am unable to open it.  When I run snap run notepad-plus-plus I get the following results:  wine cmd.exe /c echo '%ProgramFiles%' returned empty string, error message    "wine: WINEARCH set to win64 but '/home/my-username/snap/notepad-plus-plus/common/.wine'   is a 32-bit installation."   I also tried the suggestion mentioned in     but can't get Notepad ++ to open.

I installed the Notepad++ snap package few months ago in Ubuntu 18.04, and it worked perfectly. Two weeks ago suddenly Notepad++ stopped opening. When I click on the Notepad++ icon nothing happens. I removed and installed Notepad++ again, but it's still not working. I haven't any logs about this.  When I run snap run notepad-plus-plus I get the following results:  wine cmd.exe /c echo '%ProgramFiles%' returned empty string, error message    "wine: WINEARCH set to win64 but '/home/my-username/snap/notepad-plus-plus/common/.wine'   is a 32-bit installation."


The Employee table holds the salary information in a year.  Write a SQL to get the cumulative sum of an employee's salary over a period of 3 months but exclude the most recent month.  The result should be displayed by 'Id' ascending, and then by 'Month' descending.  Example Input  | Id | Month | Salary | |----|-------|--------| | 1  | 1     | 20     | | 2  | 1     | 20     | | 1  | 2     | 30     | | 2  | 2     | 30     | | 3  | 2     | 40     | | 1  | 3     | 40     | | 3  | 3     | 60     | | 1  | 4     | 60     | | 3  | 4     | 70     |   Output  | Id | Month | Salary | |----|-------|--------| | 1  | 3     | 90     | | 1  | 2     | 50     | | 1  | 1     | 20     | | 2  | 1     | 20     | | 3  | 3     | 100    | | 3  | 2     | 40     |   Explanation Employee '1' has 3 salary records for the following 3 months except the most recent month '4': salary 40 for month '3', 30 for month '2' and 20 for month '1' So the cumulative sum of salary of this employee over 3 months is 90(40+30+20), 50(30+20) and 20 respectively.  | Id | Month | Salary | |----|-------|--------| | 1  | 3     | 90     | | 1  | 2     | 50     | | 1  | 1     | 20     |   Employee '2' only has one salary record (month '1') except its most recent month '2'.  | Id | Month | Salary | |----|-------|--------| | 2  | 1     | 20     |   Employ '3' has two salary records except its most recent pay month '4': month '3' with 60 and month '2' with 40. So the cumulative salary is as following.  | Id | Month | Salary | |----|-------|--------| | 3  | 3     | 100    | | 3  | 2     | 40     |   My query is   SELECT e.id, e.month,        RunningTotal = sum(e.salary ) OVER (ORDER BY e.Id  ,e.month )  FROM employee e inner join      employee e2       on e.id=e2.id and e.month=e2.month and          e.month <> (select max(month) from employee group by id having id=e.id ) order by e.id asc, e.month desc   Error I am getting is      Line 3: SyntaxError: near '(ORDER BY e.Id  ,e.month )  FROM employee e   inner join  employee e2 on e.id=e2.i'

I have this MySQL query:  SELECT DAYOFYEAR(`date`)  AS d, COUNT(*)  FROM  `orders`  WHERE  `hasPaid` > 0 GROUP  BY d ORDER  BY d   Which returns something like this:  d  | COUNT(*) | 20 |  5       | 21 |  7       | 22 | 12       | 23 |  4       |   What I'd really like is another column on the end to show the running total:  d  | COUNT(*) | ??? | 20 |  5       |   5 | 21 |  7       |  12 | 22 | 12       |  24 | 23 |  4       |  28 |   Is this possible?


Is the statement if how_many == int: not valid? The code after that block is not executing.  from random import randint  print('Code Generator') print()  def generator():     how_many = int(input('How many digits? '))     print('Code is: ', end='')     if how_many == int:         for number in range(how_many):         number = randint(0, 9)         print(number, end=' ')    else:         print('Enter a number')         generator()     print()    again = input('Again?(Y/N): ')    if again.upper() == 'Y':        generator()    else:        print('Goodbye!')        exit()  generator()

What is the best way to check whether a given object is of a given type? How about checking whether the object inherits from a given type?  Let's say I have an object o. How do I check whether it's a str?


I would like to define a primed sum command \sump such that \sump_{x \in X} produces:   a prime at the top right corner and the x \in X below the sigma in display mode, and a prime in the top right corner and the x \in X at the bottom right of the sigma in text mode.   I've tried combinations of \mathchoice and \sideset to get this right, but have not succeeded so far.  If it makes any difference, I'd like to do this not only with sums, but also to define primed \prod, \min and \max commands.  Of course, one could define \sump to take the x \in X as an argument, and then place it correctly using \mathchoice and \sideset, but for writing code that is more readable and includes normal (non-primed) sums I'd prefer not to do this. Help?  If one follows the most accepted answer in the suggested , then when using \sump_{x \in X} in text mode there is an unnecessary space before the x \in X lower limit; the prime pushes the right boundary of the operator out, so that the lower limit doesn't start right next to the Sigma.

How can i write my own math operator with limits? I want it to look like:  \sum\limits_{e=1}^{m} but with a capital A (if possible bigger than the normal text) instead of the sum.  Thanks for the help!


I'm looking for some advice on my URL structure for a project I'm working on. I'm a web developer so my SEO knowledge is relatively limited. My website's purpose is to essentially provide specialised information on a whole bunch of products. I have a fixed, 4-level structure for my product database which comprises of:  Category > Subcategory > Type > Product   All of the products I provide information on should fit into this structure. For example, I could have:  Household > Cleaning > Washing-up liquid > Product name here   My product database feature of my website currently sits under the path /products. My URLs are currently as follows:  /products /products/household /products/household/cleaning /products/household/cleaning/washing-up-liquid /products/household/cleaning/washing-up-liquid/product-name-here   The reason I'm asking for advice is because I fear my URLs are too long, particularly for product pages. Categories, sub-categories and types as well as product names can be significantly longer than in my examples and words could be repeated, especially in product pages.  I was thinking maybe I could change the URL structure for a product page as follows:  /product/product-name-here  OR  /product/1234/product-name-here   Would this be a better approach? I could keep the current structure for all of my category, subcategory and type pages or perhaps I could change them to be of a similar format. I'm open to any suggestions you might have.  Thanks!  Edit  Where my question is similar to the one it's marked as a duplicate of, I don't believe it's asking the same thing. That question seems to regard putting keywords earlier in the URL structure in order to carry more weight. My question is about the length of my URLs. I've read previously about URLs having an upper limit on length and the number of levels of hierarchy. I don't feel like that the answer to that question answers my own.

Let’s take an example of a movie site. So a well structured set of URLs for this site can be:     Movie page - example.com/movies/the-matrix Review for movie - example.com/movies/the-matrix/reviews Trailers for movie - example.com/movies/the-matrix/trailers Specific trailer for movie - example.com/movies/the-matrix/trailers/trailer1   where it’s possible to navigate the resource even by directly deleting/appending resource name seamlessly.  For SEO purpose I read somewhere that for two given pages, Google will prefer the page which have search query up in the URL hierarchy among other things. So for the given 2 URLs and the query "the matrix trailer"    example.com/movies/the-matrix/trailers example.org/trailers/the-matrix/    `     Google might prefer the second URL as it has the keyword "trailer" at first level comparing to first URL which has "trailer" at 3rd level (a resource deeper in URL hierarchy may be less important).    If it is correct, one may be tempted to create URL hierarchy somewhat like      Movie page - example.com/movies/the-matrix Review for movie - example.com/reviews/the-matrix/ Trailers for movie - example.com/trailers/the-matrix/ Specific trailer for movie - example.com/trailers/the-matrix/trailer1     which will break the seamless hierarchy.    My questions are:   Is it true that resource deeper in URL hierarchy is tend to be less important when comparing to URLs of other site?   Is sacrificing meaningful, seamless hierarchy worth for this SEO optimization?


I have  a short question about Datatypes. Why do i get this kind of number if i put a leading 0 for a number that i declared to be a long-type? I just dont get what the zero is making to the number.  For example:  1010L -> 1010   0101L -> 65

This prints 83  System.out.println(0123)   However this prints 123  System.out.println(123)   Why does it work that way?


How to break down a sentence of string  type into words and store it in a vector of string type in c++? Example  String str="my name";   Into  Vector word={" my","name"}

What regex pattern would need I to pass to  java.lang.String.split()  to split a String into an Array of substrings using all whitespace characters (' ', '\t', '\n', etc.) as delimiters?


If an attack does, say, 10 Radiant and Fire Damage and the target has 5 Fire invulnerability? Do they take no damage, or half damage?  I see that  covers resistances, however, I wasn't sure if the same applied to invulnerability, which wasn't covered in the linked question.

I had the following situation last night. A creature attacked with a Fire and Poison attack. My character has resist 5 Poison. does the resistance apply or do I need to resist 5 fire as well?


Prove that there exists $i, j \in \mathbb{N}$ such that $n=3i+5j$ for $n\ge 8$   I'm having a hard time with this exercise, I'm trying to prove it by induction:  Basis step:   $n=8 \implies 8=3\cdot1+5\cdot 1$ $n=9 \implies 9=3\cdot3+5\cdot0$ $n=10 \implies 10=3\cdot0+5\cdot2$   Induction step:  If it's true for $n=h$ then it must be true for $n=h+1$.  So now, I don't know how to begin proving that $k+1=3i+5j$.

I'm new to Math Induction, I don't know how it goes from $𝑘 + 1 = 3𝑥 + 5𝑦 + 1$ into $5𝑦 = 5𝑦 − 5 + 5.$  I'm trying to prove that:   Any whole number of at least 8 cents can be obtained using coins of 3 and 5 cents  Assume: There is a number $𝑘$ for which there are $𝑥$ and $𝑦$ such that $𝑘 = 3𝑥 + 5𝑦$  Here's my working:  $𝑘 = 3𝑥 + 5𝑦$  Therefore $𝑘 + 1 = 3𝑥 + 5𝑦 + 1$  $5𝑦 = 5𝑦 − 5 + 5$  $5𝑦 = 5 𝑦 − 1 + 5$  $𝑘 + 1 = 3𝑥 + 5𝑦 + 1$  $𝑘 + 1 = 3𝑥 + 5(𝑦 − 1) + 5 + 1$  $𝑘 + 1 = 3𝑥 + 5(𝑦 − 1) + 6$  $𝑘 + 1 = 3(𝑥 + 2) + 5(𝑦 − 1)$  $𝒌 + 𝟏 = 𝟑𝒙' + 𝟓𝒚'$


What is the most efficient way to remove accents from a string e.g. ÈâuÑ becomes Eaun?  Is there a simple, built in way that I'm missing or a regular expression?

What I want to do is to remove all accents and umlauts from a string, turning "lärm" into "larm" or "andré" into "andre". What I tried to do was to utf8_decode the string and then use strtr on it, but since my source file is saved as UTF-8 file, I can't enter the ISO-8859-15 characters for all umlauts - the editor inserts the UTF-8 characters.  Obviously a solution for this would be to have an include that's an ISO-8859-15 file, but there must be a better way than to have another required include?  echo strtr(utf8_decode($input),             'ŠŒŽšœžŸ¥µÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýÿ',            'SOZsozYYuAAAAAAACEEEEIIIIDNOOOOOOUUUUYsaaaaaaaceeeeiiiionoooooouuuuyy');   UPDATE: Maybe I was a bit inaccurate with what I try to do: I do not actually want to remove the umlauts, but to replace them with their closest "one character ASCII" equivalent.


I booked and payed 41$/night for an Entire Home/Apartment through , a total of 205$, plus 31$ Airbnb service fee (15% of the total).  I arrived and the guy told me without any realistic/emergency reason that he will be staying in the apartment too, but only during (some?) nights. Guess what? My girlfriend and I will be here only during nights too, since we are tourists, and some privacy would be nice (she doesn't feel comfortable already).  What are my options of getting a refund from him? I don't wish to nuke the entire thing and leave the apartment, and ruin my vacations.  He is willing to pay some money back (after me having to tell him to!), I just wonder how much money are "justified" to be payed back. The new entry in Airbnb is 27$/night, but if it wasn't for an entire apartment, I wouldn't have booked the room at all in the first place (it was our major criterion), which is something important.

I am staying at a place booked via Airbnb. Something happened and there is no electricity from Friday! The house-owner has provided a super noisy generator, which is inconsistent, meaning that it "randomly" supplies power to some parts of the house, so you cannot rely on it.  Is there any rule/law in SF, CA, USA to describe the compensation one should get from such kind a situation?    The owner owns the whole building. On the ground floor there is a restaurant. On the 1st floor there are the apartments. Something happened in the restaurant, which made the electricity go off, but she didn't give more details, she said "there was an emergency and the power went off".


I've reviewed apt, and related pkg commands, but I couldn't find an answer... Is there an option to correctly & safely remove all of these directories in the various installed packages' footprints in the system directories? Some individually are large, and certainly in some it is a lot of excess baggage that should never have been installed, as the install clearly indicates language and keyboard language.

I just noticed that in /usr/share/help I have the ubuntu help files in 70 different languages. I only speak 2, and I only really compute in one. I also noticed that it is full of broken symbolic links to /usr/share/help-langpack.  I want just want to get rid of all the languages I don't need. How can I do this without getting all rm -r happy? I'm preferably looking for a way to do this without installing any new packages, as my main goal is to get rid of excess stuff on my machine. I'd like to find a way to do this preferably with dpkg, or apt.


I have a bash script that parses log files - aggregating data in an AWK array - that takes part of the file path as a parameter. It runs fine, I can run multiple instances in the background manually. The trouble is I can't figure out how to avoid invoking the script manually for each parameter in my list.  Depending on where I've put the & it either runs the instances serially or tries to run all the jobs at once (I don't want to see a load average of 9999 again).  script.sh param1 &  script.sh param2 & ... #works fine   script.sh < params.txt & ... #runs serially   Placing & at various places within the script had some undesirable outcomes.  hub=$1 while read date; do     zgrep ^1 /logarchive/http/${hub}pr*/$date*.gz|\     awk -F'[ ,]' '{print$34,$(NF-6),$6,$(NF-7)}'|\     awk 'NR>1{bytesDown[$1 " " $2] += $3; bytesUp[$1 " " $2] += $4} END {for (i in bytesDown) print i, bytesDown[i], bytesUp[i]}'\     > ${hub}.$date.txt done < dates.txt   I'd like to run an instance in the background for each parameter in a file.

Lets say I have a loop in Bash:  for foo in `some-command` do    do-something $foo done   do-something is cpu bound and I have a nice shiny 4 core processor. I'd like to be able to run up to 4 do-something's at once.  The naive approach seems to be:  for foo in `some-command` do    do-something $foo & done   This will run all do-somethings at once, but there are a couple downsides, mainly that do-something may also have some significant I/O which performing all at once might slow down a bit. The other problem is that this code block returns immediately, so no way to do other work when all the do-somethings are finished.  How would you write this loop so there are always X do-somethings running at once?


I just did a do-release-upgrade going from Ubuntu 16.04 to 17.04. However, now when I login via SSH I have the following message   Welcome to Ubuntu 17.04 (GNU/Linux 4.10.0-20-generic x86_64)   * Documentation:  https://help.ubuntu.com  * Management:     https://landscape.canonical.com  * Support:        https://ubuntu.com/advantage  Ubuntu 12.04 LTS end-of-life was April 28, 2017 -- Upgrade your Precise systems!  $ sudo do-release-upgrade -m server  0 packages can be updated. 0 updates are security updates.   My question is, how can I remove the   Ubuntu 12.04 LTS end-of-life was April 28, 2017 -- Upgrade your Precise systems!  $ sudo do-release-upgrade -m server   it wasn't there prior the release-upgrade  I checked and I am on Zesty  lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 17.04 Release:    17.04 Codename:   zesty   My question is not, how can I remove this message, this I found. My question is more, is there a reason why this appears after a release-upgrade? Is this message something generic not taking into consideration the current version of Ubuntu? Or maybe my system is not updated properly?

I have had a couple of occasions where I was unable to remember the IP address for a given system but was, at the time, able to connect using the hostname.  As an example, just now I wanted to set up port forwarding on my router and couldn't remember the IP for the target system.    I am wondering if it is possible to add the system's IP address to the welcome message that gets displayed on an SSH connection.  The default welcome message that I am trying to modify, in case that term is ambiguous, is"  Linux [hostname] 2.6.35-32-generic #64-Ubuntu SMP Tue Jan 3 00:47:07 UTC 2012 x86_64 GNU/Linux  Ubuntu 10.10  Welcome to Ubuntu!     * Documentation:  https://help.ubuntu.com/   Somewhere in there I think I'd like to add the IP address of the system I just logged in to.  Any suggestions?  Other than trading in my brain for a newer model with more RAM?


Show that: $$ \max\{x,y\}=\frac{1}{2} \left(x+y+|x-y|\right)  $$  I have no idea how to prove this; most likely it is trivial.

Show that the $\max{ \{ x,y \} }= \dfrac{x+y+|x-y|}{2}$.   I do not understand how to go about completing this problem or even where to start.


While deriving $\frac{\rm{d}}{\rm{dx}}\rm{sin}(x)$, using the definition of the derivative and expanding $\rm{sin}(x+h)$ leads to $\frac{\rm{d}}{\rm{dx}}\rm{sin}(x) = \rm{sin}(x)\lim_{h\to 0} \frac{cos(h)-1}{h} + \rm{cos}(x)lim_{h\to 0}\frac{\rm{sin}(h)}{h}$ The second limit can be evaluated by applying the squeeze theorem, and if I wasn't going from first principles I could use l'Hopital's rule for the first limit, but that would be circular logic. How can I evaluate $\lim_{h\to 0} \frac{cos(h)-1}{h}$ without l'Hopital?

I am working on a textbook problem. The first step is to prove that  $$\lim \limits_{x \to 0} \frac{\sin x}{x} = 1$$  (which I did). The exercise goes on     Use this limit [i.e. the one above] to find    $$\lim \limits_{x \to 0} \frac{1 - \cos x}{x}$$.   How can this be done? I don't really see a connection between the two...


I'd like to know the name of the font that is referred to as the "Raster 8x12" font in the Windows 7 command line, does anyone know?

I'm trying to make other applications (like putty and SecureCRT) use the same font as windows CMD.  What exactly is this "Raster Fonts" Font and how do I get it?


Note I am looking a proof using Peano's axiom as I am working on the Natural Numbers, not the Real Numbers.  I need help proving "For each x,y,z in N, if $x<y$ then $x+z<y+z$  This must be done using Peano's axioms and the definitions of addition, multiplication, and ordering.  I have tried induction on z, and the base case works out but I run into an issue when it comes to the inductive part seeing as I am no longer dealing with equality.  I think induction is the correct way to approach this proof, however I become stuck once I reach a certain point in the proof.

For each $x,y,z∈\mathbb{N}$, if $x<y$ then $x+z<y+z$  I know how to solve this if it was $x=y$ then $x+z=y+z$ (which my professor said I need to do) Is there a definition that says I can change the $<$ into a $=$ and then change it back to $<$ at the end?  I have a paper full of Peano's axioms that I'm able to build off of but I don't know what one I should be using.  Would For each $x,y∈\mathbb{N}$, $x<y$ or $x=y$ or $x>y$  be able to be used to change the $<$ to $=$?


is there a way to move the bolded bar to the left a little? (the one before the last 0). Also, could someone help me fix the slant of the last arrow to make it straight? Thanks! My code looks like this right now:   \begin{tikzpicture} \matrix[matrix of nodes,column sep=0pt, nodes={anchor=base east,inner xsep=6pt,inner ysep=6pt}] (M) { & 1 & 5 & 4 & 20\\[-3pt] -5 &   & -5 & -5  & -20\\[3pt] & 1 & 0 & 4 & 0\\ }; \draw (M-2-1.south west) -- (M-2-6.south east); \draw (M-1-2.north west) -- (M-3-2.south west); \draw[line width=3pt] (M-2-6.south west) -- ++(0pt,-20pt);  \begin{scope}[->, shorten >=-4pt, shorten <=-4pt] \draw (M-1-2) -- (M-3-2); \draw (M-3-2) -- (M-2-3); \draw (M-2-3) -- (M-3-3); \draw (M-3-3) -- (M-2-4); \draw (M-2-4) -- (M-3-4); \draw (M-3-4) -- (M-2-5); \draw (M-2-5) -- (M-3-5); \end{scope} \end{tikzpicture}

I'm currently trying to add arrows in my synthetic division example to show people clearly how synthetic division works. I'm working on Overleaf.   The code for my synthetic division right now is:  \begin{tabular}{c |r r r r r}     &1& 4 & -1&16&-20\\   1&& 1 & 5 & 4&20\\   \hline    &1 &5 & 4 & 20 &\rule{3pt}{16pt}\;0\\   \end{tabular}   How would I add arrows to this? For instance, a down arrow going from the first 1 to 1, then an upwards arrow pointing right from 1 to 1, then an arrow pointing down from 1 to 5, etc. Basically I would like to add arrows that look like this:


He must have called the police.   OR     He must have called police.   I think we use the first one when we know about a specific group of police officers which we have called and the second one, when, we talk about any police group which we don't specifically know.  Am I correct?

Example with a context (news article: ):     In their last crime, the alleged robbers had grabbed more than 8 million rubles ($146,000) in an attack on a cash courier in May, police said.   What's wrong with saying the police said? What's the nuance? Check that article. Almost every time they use the word police, there's no article in front of it.


Has anyone installed adobereader-enu on Ubuntu 17.10?  I was running AdbeRdr9.5.5-1_i386i386linux_enu.deb before I purged JPEG due to some silly issue - now I cannot install the reader. The PlayOnLinux thing just breaks every time, so I didn't want to go there again.

I am new to Ubuntu, but I believe I have Ubuntu 11.10 installed correctly.  I am trying to install Acroread using AdbeRdr9.4.6-1_i386linux_enu.deb that I downloaded from the Adobe web site.  How do I do this?


I have a 2011 MacBook Pro and it's name is set to MacDavid. I expect it to appear the same in Terminal.app, but it instead shows this:  w8-ricardo:~ davidpazo$   When i change the equip name, Terminal is indiferent. Any suggestion as to what could be causing this and how to resolve?

My computer name in System Preferences > Sharing is set to "archos", but is showing as "iphone" on Terminal. It just started doing this after I loaded Xcode for doing iPhone development: Last login: Mon Nov  7 14:46:55 on ttys001 iphone:~ travis$   Any ideas what could be causing this?


I'm a new in the  ubuntu community. I am having trouble with 17.04: even after running most of the recommended scripts, I still cannot solve the below error. What can I do?  linux-signed-image-4.10.0-33-generic : Depends: linux-image-4.10.0-33-generic (= 4.10.0-33.37) but it is not going to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution). dingi3@dingi3-HP-Pavilion-15-Notebook-PC:~$ sudo apt --fix-broken install Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following additional packages will be installed:     linux-image-4.10.0-33-generic Suggested packages:     fdutils linux-doc-4.10.0 | linux-source-4.10.0 linux-tools The following NEW packages will be installed:     linux-image-4.10.0-33-generic 0 to upgrade, 1 to newly install, 0 to remove and 57 not to upgrade. 14 not fully installed or removed. Need to get 0 B/20.3 MB of archives. After this operation, 70.5 MB of additional disk space will be used. Do you want to continue? [Y/n] Y (Reading database ... 472330 files and directories currently installed.) Preparing to unpack .../linux-image-4.10.0-33-generic_4.10.0-33.37_amd64.deb ... Examining /etc/kernel/preinst.d/ run-parts: executing /etc/kernel/preinst.d/intel-microcode 4.10.0-33-generic /boot/vmlinuz-4.10.0-33-generic Done. Unpacking linux-image-4.10.0-33-generic (4.10.0-33.37) ... dpkg: error processing archive /var/cache/apt/archives/linux-image-4.10.0-33-generic_4.10.0-33.37_amd64.deb (--unpack): cannot copy extracted data for './boot/vmlinuz-4.10.0-33-generic' to '/boot/vmlinuz-4.10.0-33-generic.dpkg-new': failed to write (No space left on device) No apport report written because the error message indicates a disk full error dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Examining /etc/kernel/postrm.d . run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.10.0-33-generic /boot/vmlinuz-4.10.0-33-generic run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.10.0-33-generic /boot/vmlinuz-4.10.0-33-generic Errors were encountered while processing:  /var/cache/apt/archives/linux-image-4.10.0-33-generic_4.10.0-33.37_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

My first issue was when I tried to apt-get update or apt-get upgrade. On upgrade I get the following error:  You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: linux-image-server : Depends: linux-image-3.2.0-27-generic but it is not installed E: Unmet dependencies. Try using -f.   I tried running apt-get install -f and this was the output(after saying yes on prompt)  (Reading database ... 186183 files and directories currently installed.) Unpacking linux-image-3.2.0-27-generic (from .../linux-image-3.2.0-27-generic_3.2.0-27.43_amd64.deb) ... Done. dpkg: error processing /var/cache/apt/archives/linux-image-3.2.0-27-generic_3.2.0-27.43_amd64.deb (--unpack):  failed in write on buffer copy for backend dpkg-deb during `./boot/System.map-3.2.0-27-generic': No space left on device  No apport report written because the error message indicates a disk full error                                                                           dpkg-deb:    error: subprocess paste was killed by signal (Broken pipe) Examining /etc/kernel/postrm.d . run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-27-generic   /boot/vmlinuz-3.2.0-27-generic run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-27-generic /boot/vmlinuz-3.2.0-27-generic Errors were encountered while processing: /var/cache/apt/archives/linux-image-3.2.0-27-generic_3.2.0-27.43_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   I tried running apt-get autoremove and it gives me the same error as apt-get upgrade.  When I run df, I get this for /boot:  /dev/sda1                    233191     230297         0 100% /boot   So, I read elsewhere that I should try to purge old kernels. I checked for what kernels I had with:  $ dpkg -l linux-image-\* | grep ^ii ii  linux-image-2.6.38-13-server  2.6.38-13.52  Linux kernel image for version 2.6.38 on x86_64 ii  linux-image-3.0.0-13-server   3.0.0-13.22   Linux kernel image for version 3.0.0  on x86_64 ii  linux-image-3.0.0-14-server   3.0.0-14.23   Linux kernel image for version 3.0.0  on x86_64 ii  linux-image-3.0.0-15-server   3.0.0-15.26   Linux kernel image for version 3.0.0  on x86_64 ii  linux-image-3.0.0-16-server   3.0.0-16.29   Linux kernel image for version 3.0.0  on x86_64 ii  linux-image-3.0.0-17-server   3.0.0-17.30   Linux kernel image for version 3.0.0  on x86_64 ii  linux-image-3.2.0-24-generic  3.2.0-24.39   Linux kernel image for version 3.2.0  on 64 bit x86 SMP ii  linux-image-3.2.0-25-generic  3.2.0-25.40   Linux kernel image for version 3.2.0  on 64 bit x86 SMP ii  linux-image-3.2.0-26-generic  3.2.0-26.41   Linux kernel image for version 3.2.0  on 64 bit x86 SMP   When I try to remove the oldest with this:  $ sudo apt-get purge linux-image-2.6.38-13-server Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: linux-image-server : Depends: linux-image-3.2.0-27-generic but it is not going to be     installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).   How can I free up or extend boot without messing up my installation?


Whenever I download a model on DeviantArt I get a .blend in my model, what is that?

I am 100% new to Blender and to the Blender Manual.  Could anyone tell me what a blend file is please.  It is discussed at length in the manual except for explaining what a blend file is.


How many ways are there to form a committee with at least 3 women and at least 2 men?  My answer is $2^{15}- 2^7\binom{8}{0}-2^7\binom{8}{1}-2^7\binom{8}{2}-2^8\binom{7}{0}-2^8\binom{7}{1}$ = 25984  but the answer given is 26280. Can someone tell me where I got wrong? Thank you!

How many committees are possible if a committee must have $3$ women and $4$ men?  $_{38}C_3+_{38}C_4$ or $\frac{38!}{3!35!}+\frac{38!}{4!34!} = 8,435+73,815 = 82,251$  How many committees are possible if a committee must consist of all women or all men?  $_{17}C_7+_{21}C_7$ or $\frac{17!}{7!10!}+\frac{21!}{7!14!} = 19,448+116,280 = 135,728$  How many committees are possible if a committee must have at least 3 women?  $_{38}C_3+_{35}C_4$ or $\frac{38!}{3!35!}+\frac{35!}{4!31!} = 8,435+52,360 = 60,795$  How many committees are possible if a committee must have exactly one woman?  $_{38}C_1+_{37}C_6$ or $\frac{38!}{1!37!}+\frac{37!}{6!31!} = 38+2,324,821 = 2,324,821$  Am I going about these the correct way?


I have some Javascript that works perfectly before a postback happens in ASP.Net, however when a postback event occurs from a button click the script no longer runs.   this is the code I am using  function displayCheckboxInSubject() {     var CountSelectedCB = [];     console.log("in displayCheckBoxInSubject with loader");     $(".subjectCB").on("change loader", function () {     //$(".subjectCB").change(function () {         selectedCB = [];         notSelectedCB = [];         CountSelectedCB.length = 0;         $(".subjectCB").each(function () {             //alert("in here two")             if ($(this).find("input").is(":checked")) {                 //alert("in here three")                 CountSelectedCB.push($(this).find("input").val());             }         });          $("#txtSubject").val(CountSelectedCB.join(", "));     }).trigger("loader");  }  $(document).ready(displayCheckboxInSubject);   I would be grateful if someone could point me in the right direction of how to resolve this.   thanks  Simon

I have several input and option elements on my page, each (well almost) have an event attached to update some text on the page once they change. I use jQuery which is really really cool :)   I also use Microsofts  framework, utilizing the UpdatePanel. The reason why I do that is that certain elements are created on the page based on some server-side logic. I don't really want to explain why I use the UpdatePanel - even if it could (it can with quite some effort) be rewritten to use only  I still want that UpdatePanel.  You probably guessed it - once I have a postback on the UpdatePanel the jQuery events stops working. I actually was expecting this, since the "postback" is not really a new postback so my code in document.ready that binds the events won't be fired again. I also confirmed my suspicion by reading up on it in the jQuery help libraries.  Anyway I'm left with the problem of rebinding my controls after the UpdatePanel is done updating the . I preferably need a solution that does not require adding more .js files (jQuery plug-ins) to the page but something as simple as being able to catch the UpdatePanel's 'afterupdating' where I can just call my method to rebind all the form elements.


We need to provide a visual counting proof for the identity above.  At first, we count the number of pairs of $n$ tilings where at least one ends in a square. Then, conditioning on whether the first tiling ends in a square, we need prove the rest.  If we consider the R.H.S of the identity, we see that it is a strip with a length of $(2n-2)$ that we're tiling. How do we approach the problem then? How should one visualize the diagram, given that we need to find the tiling pairs where at least one ends in a square?   N.B what I'm asking for is a visual proof, not by any other means.


I have two computers: one is a very robust desktop with Ryzen 3600, 16GB of RAM, SSD storage and a RX 5700; the other is a weak laptop with a i5-4200u, 4GB of RAM and HDD storage. Most of the time I'm using my desktop I notice that I barely use a quarter of it's power, while while I use my laptop it always struggles to complete a few tasks and takes a lot of time to load programs. So my objective is to borrow the desktop's horsepower to the laptop, while I'm still using.  I've studied a little about Xserver and Xclient but I don't know if it fits my objective: let the laptop have a full desktop experience, as if it's running the OS itself (have a Desktop Environment up and running, open programs from the DE, close, maybe even play games in it).  I'm currently running Windows 10 on the desktop, but I have access to Linux Subsystems for Windows and I can also emulate Linux distros via VirtualBox; the laptop currently runs Linux Mint with Xfce.

I have two machines, both running kubuntu: server & client. I'd like to connect to server from client and start the full graphical interface without fear that some commands would be run as client user.  So, ssh -XC works and I can also start graphical programs from it just fine.  However, when I type startkde in the ssh console, it says "KDE seems to be already running on this display." Which is true, but not for the same user account.  I tried exiting graphical interface and logging in from tty, but that then (unsurprisingly) failed to start any graphical programs, including kde.  How then can I do this such that I could simply log in just as I log in with a local user? Use client machine as a dumb terminal.


Is this supposed to happen when mining Redstone ore in mine craft PE   Every time I try to mine Redstone ore in mine craft PE it won't let me collect it It lights up the room and then turns dark again  Deletes the block when I hit it

I found redstone ore in Survival Mode (Minecraft Pocket Edition) and tried to use all five tools to collect it. It took about a minute or two to break, but I couldn't collect anything from it once broken.  How do I mine redstone ore?


I came across a  where the answerer included their name/email in an answer, and solicits further communication there.   Should these details be removed? They add nothing to the answer, and in theory any discussion about the solution should be recorded on Stack Overflow (for future users' reference).

I've observed several incidents where users inadvertently posted detailed, sensitive information. For example, a Server Fault user who posted a question with working login credentials to his actual production server, or the Stack Overflow user who posted actual medical records as example data for his question.   What should be the procedure for handling such cases?


Can I use bpy load big .blend file gradually? My 3D format file are always several Gbs big. If load whole file all at a single time, it takes time.

The business purpose is that I allow registered user upload different 3D model files. When other users review the file, he or she does not need to download the whole file (size about several Gbs), he or she could make preview the 3D model files with the biginning a couple of 3D frames. In this way, he or she could know about the 3D file roughtly, then decide to download or not.  Since the 3d format file is around several Gbs, I could not load the file at once. But I only know the following way of loading a file:  import bpy  bpy.ops.wm.open_mainfile(filepath="E:/sjj/Blender/demoFile/Demo_274/Ring_27.blend"   The expert in  suggests me following:     You could try appending items from the large file into a new file.   But, I do not know how to appending items from the large file into a new file. I checked  in this forum, it needs graphical UI. With my business purpose, it allow me only uses command line script.   Could some expert show me the code examples?


How could these 2 screens have the settings and are the same model, yet the colors are extremely different and the difference between blue links and purple links is not clear in the one in the right?

I designed a mockup on my LG monitor. When I view the same design on another monitor that I own, the colors seem drastically different. I reset both of the monitors to their factory defaults, but still the issue persists. I'm wondering if some of my clients might dislike my designs because of this. What should I do?  How can I make sure that what I design is what my client sees?  Even worse still, I've realized that my laptop is showing different colors too.


I have noticed that in city lights reflected on the water are very often smeared more in the vertical direction (relative to the reflecting plane I presume), than in the horizontal direction. See, for example, pictures .  I can't figure out why. I think it would make sense if the waves happened to have their wavefronts perpendicular to the line of sight, but I think this is unlikely, as it appears you can see it from many angles.

Have you ever notice the sunset's image in the sea? It's like long light path to the end of the horizon! I've attached a sample of this:     How can we explain this? I know that it can happen even in wave less sea or lake! Why is this path so continuous? I expected that sea should act like a mirror!


SetActivityMain works fine, but Show_Soundfile_List doesn't work because ListView isn't found and results in lv = null (if I'm correct).  Any idea why this is? Both have pretty much the same code & setup so I'm not sure why one is able to find it's ListView but not the other one.  Error code:  java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference   Code:  public void SetActivityMain() {   setContentView(R.layout.activity_main);   ListView lv = (ListView) findViewById(R.id.lv_alarms);   Button btn = (Button) findViewById(R.id.btn_new_alarm);    lv.setAdapter(new MyListAdapter_alarm(MainActivity.this, R.layout.list_alarms, alarms));    btn.setOnClickListener(new View.OnClickListener() {     @Override     public void onClick(View v) {       NewAlarm(new Alarm());     }   }); }   void Show_Soundfile_List(final Alarm alarm) {   setContentView(R.layout.activity_soundfile_list);   ListView lv = (ListView) findViewById(R.id.lv_soundfiles);   Button btn = (Button) findViewById(R.id.btn_list_soundfile);    lv.setAdapter(new MyListAdapter_SoundFile(MainActivity.this, R.layout.list_soundfiles, soundfiles, alarm));    btn.setOnClickListener(new View.OnClickListener() {     @Override     public void onClick(View v) {       EditAlarm(alarm);     }   }); }

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 have two DateTime  $datetime1 = date_create_from_format('H:i', '12:10'); $datetime2 = date_create_from_format('H:i', '18:16');   and i have interval in minutes, some for examlpe 56 minutes  How many times this interval includes between $datetime1 and $datetime2?  I try   $diff = $datetime1->diff($datetime2)   but object $diff do not include this information

How to calculate minute difference between two date-times in PHP?


When the earth is hit by solar flares, will it make the earth move faster through space when the magnetic field bends?

The sun creates this heliosphere by sending a constant flow of particles and a magnetic field out into space at over 670,000 miles per hour, which is also known as solar wind. If the speed of the wind is that great, why doesn't it disrupt the planets in our solar system? Does it just prevent foreign particles from interstellar space entering the heliosphere?


Im trying to perform some time series analysis on 2015 and 2016 monthly recorded data to see what method is best for forecasting 2016 monthly values for the remainder of the year. The data has an annual cycle and I already have values for the first 9 months out of 2016. Using Winter's method, I forecasted values for the first 9 months of 2016 and summed up the absolute differences between these forecasted values and the actual 2016 values I already had. From there I calculated the 2016 monthly forecasted value to be off from the 2016 monthly actual value by a 12% average. I then tried a second method where I summed up the absolute differences between the 2015 actual monthly average 2016 actual monthly value. Long story short this elementary method resulted in predictions being off by an average of 6%. My question is how is the Winters error percentage so much higher than using a straghtforward average method. I should also note the MAPE predicted in Minitab using Winters for fitted 2015 monthly data was 2%. Can anyone make sense of all this for me?

I recently applied a range of forecasting methods (MEAN, RWF, ETS, ARIMA and MLPs) and found that MEAN did surprisingly well. (MEAN: where all future predictions are predicted as been equal to the arithmetic mean of the observed values.) MEAN even outperformed ARIMA on the three series I used.  What I want to know is if this is unusual? Does this mean the times series I'm using are strange? Or does this indicate that I've set something up wrong?


I'm having trouble to prove the following formula using Induction on $n \in \mathbb{N}$: $$\sum_{k=1}^n \binom{n}{k} \binom{n}{n+1-k} = \binom{2n}{n+1}.$$ I've tried all the usual identities, but they seem to lead nowhere. Is there any trick to this, or is it just not possible to prove this using induction?  I'm thankful for any tip or advice on how to approach this :)

Evaluate the summation of: $$ \sum_{k=1}^n {n \choose k-1} {n \choose k} $$ I have been trying to solve this problem by translating C(n, k-1) into C(n, k), because I know that: $$ \sum_{k=1}^n {n \choose k}^2={2n \choose n} $$ However, I haven't been having any luck. Am I on the right track? What am I doing wrong?


I am adding dynamical the below element to my table.  As you can see when you press the +-button you get a new button Add Product2 inserted below in the table.  Find below my minimum example:    $(".btn.btn-dark.btn-sm").on("click", this.clickDispatcherTable.bind(this)) $(".btn.btn-primary.btn-sm").on("click", this.ourClickDispatcher.bind(this));  function clickDispatcherTable(e) {   let plusButton = $(e.target).closest(".btn.btn-dark.btn-sm")    if (plusButton.hasClass("product2")) {     let plusButtonParent = plusButton[0].parentElement.parentElement;     plusButtonParent.insertAdjacentHTML('afterend', `
       	                <button type="button" data-exists="product2" class="btn btn-primary btn-sm product2">                                             Add Product2                                         </button>
             `)   } }  function ourClickDispatcher(e) {   console.log("event") } <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />

       Product 2	                <button type="button" data-exists="product2" class="btn btn-primary btn-sm product2">                                             Add Product2                                         </button>         <button type="button" class="btn btn-dark btn-sm product2">+</button>

     When I press the button that is at the top I get the console output event. When I press the button - which got inserted by JQuery, the console.log event does not get fired.  Any suggestions why the event is not loaded properly?

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


I noticed blender recently got updated with maya style radial menus. When I checked it out there was only a few things you could do with them like view and rotate the model or something. Is there any way now to customize the radial menus and put whatever you want in them?   Like could I make a menu for common options that then go into sub menus for like extrude loop select bevel etc... Is there a way to add whatever I want into the radial menus and or create new ones, either through blender naturally now or is there a script to do this?

The  mention that it is possible to add pie menus. But I'm not sure how to do it.  How could I convert the mesh select mode menu's appearance:    to this?


I need to blend or smooth the transition between theese materials on my charecter:   ] I need to mix the 2 materials but only where the dark blue hits the light blue I need it to smooth, blend or anything that does not make it look so bad hahaha

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


For an implicit surface $F(x,y,z)=0$ we can take $z=f(x,y)$ and use IFT to calculate its fundamental forms. But they are expressed by $dx^2,dxdy,dy^2$.  I wonder if there are other expressions using $dx^2,dy^2,dz^2,dxdy,dydz,dzdx$, just more symmetric.  Also I want to know how to differentiate entirely without taking coordinate parameters $x,y,z$ to get a direct expression by $dF$ with something.  Any help will be appreciated.

Let $U\subset\mathbb R^3$ be an open set, and $f:U\to \mathbb R$ be a smooth function. Suppose that the level set $S=f^{-1}(\{0\})$ is non-empty, and that at each $p\in S,$ the gradient $\overrightarrow \nabla f(p)$ is not the zero vector. Then $S$ is a smooth two-dimensional surface in $U$, and $p\mapsto \overrightarrow \eta(p)=\frac{1}{||\overrightarrow \nabla f(p)||}\overrightarrow \nabla f(p)$ defines a smooth unit-length normal vector field along $S$. At each $x\in U,$ write $H(f)_{(x)}$ for the $3\times 3$ Hessian matrix specified by $$(H(f)_{(x)})_{ij}=\frac{\partial^2f}{\partial x_i\partial x_j}(x).$$   Show that, at each $p\in S$, the second fundamental form $II_p: T_p(s)\times T_p(s)\to \mathbb R$ is the symmetric bilinear map    $$II_p(\overrightarrow v,\overrightarrow w)=\frac{-1}{||\overrightarrow \nabla f(p)||}\overrightarrow v\cdot H(f)_{(p)}\overrightarrow w,$$for all $\overrightarrow v ,\overrightarrow w \in T_p(s)$.       (Here, we view the tagent space $T_p(S)$ as the two-dimensional subspace $(span\{ {\overrightarrow \eta(p)}\})^{\bot}$ of $\mathbb R^3$.      Edit: Actually my question is why the second fundamental form under the usual definition can be written in this way.      Definition: The quadratic form $II_p$, defined in $T_p(S)$ by $II_p(v)=-<d  N_p(v),v>$ is called the second fundamental form of $S$ at $p$, where $dN_p:T_p(S)\to T_p(S)$ is the differential of the Gauss map.   Hopefully, I express this problem explicitly. I was just wondering how to prove this statement.   I took a diffrential geometry class last semester, and when I organized my notes this morning, I found this statement, but there was no proof...  Looking forward to an understandable explaination. Thanks in advance.     Edit 2:Furthermore, show that, at each point $p\in S$, the expression   $$\phi_p(z)=det\pmatrix{-H(f)_{(p)}-zI_{3\times 3} & \overrightarrow \nabla f(p)\\\ \pm \overrightarrow \nabla f(p)& 0}$$   (the underlying matrix here is $4\times 4$) defines a second-degree polynomial whose roots $\lambda_1$ and $\lambda_2$ are $||\overrightarrow \nabla f(p)||k_1$ and $||\overrightarrow \nabla f(p)||k_2$, where $k_1$ and $k_2$ are the principal curvatures of $S$ at $p$.      Also, if a non-zero vector $\pmatrix {\overrightarrow v \\c}$ lies in the kernel of the $4\times 4$ matrix $$\pmatrix{-H(f)_{(p)}-\lambda_jI_{3\times 3} & \overrightarrow \nabla f(p)\\\ \pm \overrightarrow \nabla f(p)& 0},$$   then $\vec v$ is a non-zero element of $T_p(S)$ and lies in the "principal direction" corresponding to $K_j$.


I want to take part in the IPhO, but I don't know which resources I should use to study. The Topics are  Mechanics (Kinematics, Statistics, Dynamics, Celestial Mechanics, Hydrodynamics) Electromagnetic Fields (Basics, Maxwell's Equations, Interaction of Matter with Electric and Magnetic Fields, Circuits) Oscillations and Waves (Single Oscillator, Waves, Interference and Diffraction, Interaction of Electromagnetic Waves with Matter, Geometrical Optics and Photometry) Relativity Quantum Physics (Probability Waves, Structure of Matter) Thermodynamics and Statistical Physics  Any Recommendations are greatly appreciated

I'm looking for good book recommendations for preparing for the International Physics Olympiad. As stated on the , the topics covered are about the same as those in the first year or two of a physics degree:        Mechanics: kinematics, dynamics, celestial mechanics, hydrodynamics   Electromagnetism: Maxwell's equations, circuits, matter in EM fields   Waves: damped/driven harmonic oscillators, waves, interference and diffraction, geometrical optics   Modern: special relativity, matter waves, particle and nuclear physics   Thermodynamics: laws of thermodynamics, heat engines, phase transitions      However, there's less of an emphasis on complicated calculations, and more of an emphasis on problem solving and insight. For example, multivariable calculus is almost never used; instead many questions can be elegantly solved by symmetry. I'm looking for textbooks or problem books to bring me to this level, starting from the level of high school physics.


About a week ago I sautéed garlic in butter on a skillet. I then poured out the sautéed garlic and butter into some pasta. However, there were still a few buttery garlic pieces stuck to the skillet, and I never ended up cleaning it. Today I took out the skillet and saw the garlic from a week ago still stuck to the pan, so I threw them away. However, since I heard that keeping garlic in oil at room temperature is dangerous, I didn’t use the skillet just to be safe. My question is, was that skillet actually unsafe, or am I worrying about botulism for nothing?

If I left food out of the refrigerator for some period of time, is it still safe? If I left it out too long, can I salvage it by cooking it more?


I don't have idea if it has been already reported, if a post in a question is edited the banner      an edit has been made to this post; click to load   shows but if i click on it and the question have a      migrated from x    banner too this will be hidden too.  Before        After

I've come across a small issue which occurs when a question has been closed but the question itself or one of its answers are being edited.  Steps to reproduce:   Visit a closed question. (even closed years ago)   In a different tab or browser, edit the question or one of its answers. "an edit has been made to this post; click to load" message will appear above the edited post in the first tab/browser, click it. The .question-status div becomes hidden, which includes the closed notice below a question and, for a duplicate-closed question, the list of duplicates above the question body. This gives the appearance that the question is no longer closed (until you refresh).   Some screenshots:                I know it isn't common/important but it did confuse me when looking at a particularly bad question - I thought it had been reopened.   Is this an intentional feature? If so, what was the thinking behind it?    Another example  Before    After


I had a VISA Appointment and I cancelled it day before (I could not reschedule as its within 24 hours ) and claimed for refund.  I had to cancel as I have not received invite from from the concerned person as they are on holiday due to Christmas and new year. On many other forum and other question like here  I see people have mentioned that a refund letter has to be filled and submitted but I did not see any such information when I cancelled my VISA application  My question is will I get a refund? and is the refund form mandatory, if yes how di I fill it?

I applied online for a visa application to the UK. I'm from Sri Lanka. Yesterday I cancelled the appointment, I changed my mind. I will not go to the visa appointment. Now my question is how I get my refund?


This question continous my .  Note: My english isn't that good. My native english is german. I don't know the correct definition of german wissenschaftliche Ausarbeitung, which I called here as academic writing and german Langbeleg, which is the full entry in the bibliography at the end of the written work, which I called here as full reference. I also couldn't find a correct translation of this definitions. So I someone has the experience with it, so please edit this question in the correct manner. Sorry for the inconvenience and thank you!   The parentheses () around the year in the full reference of my academic writing are not allowed. In front of the year should be a comma, like this example:   Full reference: SURNAME, NAME, 2000. Title...  MWE:  \documentclass[ngerman]{scrartcl}  \usepackage[T1]{fontenc} \usepackage{             babel,             csquotes            } \usepackage[             backend = biber,             sortlocale = auto,             sorting = nty,             style = authoryear-comp            ]{biblatex}  \begin{filecontents}{\jobname.bib}   @book{         Sur,         author = {Surname, Name},         title  = {Title},         year   = {2000},        } \end{filecontents}  \addbibresource{\jobname.bib}  \begin{document}    Test \autocite[1]{Sur}.   \printbibliography  \end{document}   The result:    How can I implement this things?  Thank you for your help and effort in advance!

I have a question that has been answered a few times, but does not work for me (and also not for another commenter in a previously asked question).   I want to remove the parenthesis around the yead in the bibliography with biblatex style authoryear, and ideally also add a comma and space before it. I have looked at the following questions:        I use biber 2.10 and TexLive 2017/W32Tex.  This MWE should work according to the question v2 above, but does not work for me, i.e. the output is still Author, Anne (2001a). Alpha. The output I need is Author, Anne, 2001a. Alpha.  \documentclass{article}  \usepackage[style=authoryear,dashed=false]{biblatex} \usepackage{xpatch,filecontents}  \begin{filecontents}{\jobname.bib} @misc{A01,author={Author, Anne},year={2001},title={Alpha}} @misc{A02,author={Author, Anne},year={2001},title={Beta}} \end{filecontents} \addbibresource{\jobname.bib}  \xpatchbibmacro{date+extrayear}{%   \printtext[parens]% }{%   \setunit*{\addperiod\space}%   \printtext% }{}{}   \begin{document} \nocite{*} \printbibliography \end{document}


I'm a new android developer. I have an existing SQLite database. My question is: where should I put it in my source? And also: I want copy it to device upon installation.  Please help  Thanks

If your application requires a database and it comes with built in data, what is the best way to ship that application? Should I:   Precreate the SQLite database and include it in the .apk? Include the SQL commands with the application and have it create the database and insert the data on first use?   The drawbacks I see are:   Possible SQLite version mismatches might cause problems and I currently don't know where the database should go and how to access it. It may take a really long time to create and populate the database on the device.   Any suggestions? Pointers to the documentation regarding any issues would be greatly appreciated.


I deleted Parrot and Ubuntu is hd2,gpt2  This screenshot shows what happens when I boot now.   what should I do to make Ubuntu default?

I want to reinstall GRUB 2 and I found these instructions: . In my case, the boot loader is installed in the EFI partition. If I use the commands provided in this guide, will GRUB be reinstalled to the EFI partition automatically, or will it be installed into the root partition where Ubuntu is installed ? Obviously, I do not want this to happen.


Say I have a fraction and I want to recursively multiply it by itself like so: $$\sum_{x=1}^{\infty} \left(\frac ab\right)^x$$ where $\frac ab \leq 1$. Is there a way in which I can simplify this so that it can be run in a computer program? I know that $(a/b)^x$ will approach zero so maybe there is some nice solution.

Why does the following hold:  \begin{equation*} \displaystyle \sum\limits_{n=0}^{\infty} 0.7^n=\frac{1}{1-0.7} = 10/3\quad ? \end{equation*}  Can we generalize the above to      $\displaystyle \sum_{n=0}^{\infty} x^n = \frac{1}{1-x}$ ?   Are there some values of $x$ for which the above formula is invalid?  What about if we take only a finite number of terms? Is there a simpler formula?     $\displaystyle \sum_{n=0}^{N} x^n$   Is there a name for such a sequence?    This is being repurposed in an effort to cut down on duplicates, see here: Coping with  duplicate questions.  and here: .


I've faced some issue with C# code. Adding method to delegate in "for" loop increments "i" by one., so "for(int i = 0, i < x ; i++)" must be change to "for(int i = -1, i < x-1; i++)" to work correctly. Why is that?  Code below throws an IndexOutOfRangeException  string[] names = new string[] { "John", "Madeline", "Jack", "Gabby" }; Action showNameDelegate = null; for (int i = 0; i < names.Length; i++) {     showNameDelegate += () => global::System.Console.WriteLine(names[i]); } foreach (Action showName in showNameDelegate.GetInvocationList()) {     showName(); }   Right code is (look at iterator "i" which starts from -1 but "names[-1]" does not exist):  string[] names = new string[] { "John", "Madeline", "Jack", "Gabby" }; Action showNameDelegate = null; for (int i = -1; i < names.Length - 1; i++) {     showNameDelegate += () => global::System.Console.WriteLine(names[i]); } foreach (Action showName in showNameDelegate.GetInvocationList()) {     showName(); }   This answer is correct (by Ed Plunkett): Each delegate references the variable i. They all reference the variable, so when they execute, they'll get whatever value it has right then. The delegates are executed after the for loop completes. At that point, i is equal to names.Length. Make a local copy of i in the body of the loop -- or use a foreach loop, which automatically fixes this issue.

I've been learning C#, and I'm trying to understand lambdas.  In this sample below, it prints out 10 ten times.  class Program {     delegate void Action();     static void Main(string[] args)     {         List<Action> actions = new List<Action>();          for (int i = 0; i < 10; ++i )             actions.Add(()=>Console.WriteLine(i));          foreach (Action a in actions)             a();     } }   Obviously, the generated class behind the lambda is storing a reference or pointer to the int i variable, and is assigning a new value to the same reference every time the loop iterates.  Is there a way to force the lamda to grab a copy instead, like the C++0x syntax  [&](){ ... } // Capture by reference   vs.  [=](){ ... } // Capture copies


I am not sure about the grammatical correctness of the above sentence. I am writing a fictional short story and this sentence is part of the narrative.   My friend says it should be "If not for his wide, thin lips, which were perpetually drawn in a single disapproving line, she would have been attracted to him too."  But even that sounds a bit odd to me. Can anyone confirm which one is correct, and if neither, then how can it be framed using the same structure.

For example, instead of      The guy who is beside me is a jerk     I can say        The guy beside me is a jerk.    It is okay if I don't use the relative pronoun here, either way is correct. But instead of "The guy who sits beside me is a jerk" I cannot say "The guy sits beside me is a jerk." And I cannot say "The people sit beside me are jerks." or "The people sit beside me keep changing." etc.   What is the rule about this? In what situations do I have a chance to not to use the relative pronoun?


I am creating a survery where need to put the question about there "most used hand in general", what do we call  this behaviour combindly?  right now what I write     Are you lefy of righty?    a) lefty b)righty c) both   Please suggest me the proper word here, and also the sentence structure.

'Male'/'female' is to 'gender' as 'left-handed'/'right-handed 'is to...?  Is there a word to describe this? For example, if I ask a guy     What's your ____?   It should mean I'm asking whether he's left or right-handed.  Another example could be     Our designs are not biased  against your ____.   Basically, I'm looking for something that means the state of being left- or right-handed which could be used analogously as gender.  EDIT: Sorry for the delay in the edit, but I was tied up. There are some points I'd like to clarify:   I'm not looking for a way to paraphrase my questions. I'm looking for a single word. I know people normally ask something along the lines of "Are you left-handed or not?" People also ask "Are you afraid of the dark?" instead of "Are you scotophobiac?". The word for it,  still exists, right? It has been pointed out that I should go with Our designs are not biased against left-handed people as that is what I mean. But that is not necessarily what I mean.    For example, let's say there is a washbasin with the tap on the right. Clearly, it's biased against lefties. Sometimes, you come across a washbasin with a tap on the left. (The logic being: you use your left hand to turn the tap as your right one's dirty). But, your right hand might not always be dirty, in which case, it's biased against righties.  A washbasin with the tap on the center is, then, handedness-blind or chirality-blind, if you will. (I foresee that some would dwell on Our designs are symmetrical. Please don't.)  I'm looking for a term that would be applicable here, as well as in the 1st example.  My favorite so far is chirality, suggested by Dan Bron in a comment (with 25 upvotes!) But, I'm reluctant to use it because there's no hard proof it's used in that sense  If we are talking about male-female, gender works perfectly. What's your gender? and Our designs aren't biased against your gender. , both work perfectly here.  Sorry for the late edit again. If the consensus is that I rollback, I will. Let me know in the comments.


Having generic types like this:  SomeType<T> SomeType<T1, T2>   and only have the type of them:  Type type1 = typeof(SomeType<T>); Type type2 = typeof(SomeType<T1, T2>);   How to get the type of  T from type1  and T1 and T2 from type2?  Example: Using typeof(SomeType<int>) will only return SomeType´1. But I'm searching for a way to get the int type, just as typeof(int) will do.

Let's say I have a generic member in a class or method, like so: public class Foo<T> {     public List<T> Bar { get; set; }          public void Baz()     {         // get type of T     }    }  When I instantiate the class, the T becomes MyTypeObject1, so the class has a generic list property: List<MyTypeObject1>. The same applies to a generic method in a non-generic class: public class Foo {     public void Bar<T>()     {         var baz = new List<T>();                  // get type of T     } }  I would like to know what type of objects the list of my class contains. So what type of T does the list property called Bar or the local variable baz contain? I cannot do Bar[0].GetType(), because the list might contain zero elements. How can I do it?


Bounties exist to promote questions. Yet, only one bounty can be active at a time. This request outlines how we might implement having multiple bounties active at a time. Changes are as follows:    So here's what bounties look like currently.    And here's an absolutely wonderful  photoshopped example of how I think we could modify bounties to allow multiple users to separately award bounties to a question.  Now, I know this idea . I'd like to clarify how this question is different:   The referenced question proposes making a bounty 'pool'. I'm proposing making a list of bounties. The accepted answer to the above question was "This idea has issues with awards and it says no in the blog."   Edit: As it seems that this idea has gotten pushback, I've modified the question into a Discussion question and would like to know why it's a bad idea beyond simply that "The blog says no."

I think that some question can start by one person offer bounty let say +50, and some other can offer +50 (total +100).  This way more than one person can share the cost of the bounty and at the same time show the interesting for a better answer.


Calculate: $$\int \frac{\sqrt{1 + x^4}}{1 - x^4} dx$$  I've been thinking about a good substitution, but I haven't found any yet. Integration by parts doesn't gave me anything meaningful.  Thank you!

These integrals are supposed to have an elementary closed form, but Mathematica only returns something in terms of elliptic integrals. I got them from the book Treatise on Integral Calculus by Edwards. How can we evaluate them?     $$ I = \int{\frac{\sqrt{1+x^4}}{1-x^4}dx}\\ J = \int{\frac{x^2}{(1-x^4)\sqrt{1+x^4}}} dx  $$


Below is a minimal example that displays my problem. In the top row I have an \onslide<+-> command that seems to introduce an extra vertical space in the table, which is not there (as desired) in the second row, when this command is not present. Why is this happening, and how can I remove the extra vertical space?  \documentclass{beamer} \usepackage{tabularx}  \begin{document}  \begin{frame}{Minimal Example}  \begin{tabularx}{0.9\textwidth}{p{0.18\textwidth}|p{0.32\textwidth}|X}\hline left & middle & \onslide<+-|handout:0>{right}\\\hline left & middle & right\\\hline \end{tabularx}  \end{frame}  \end{document}

When using the beamer \visible command inside a tabular environment, beamer adds an extra vertical space before the text. For example, in the following code, beamer adds an empty line before the word World in the second row. Can this be avoided?  \documentclass{beamer} \begin{document} \begin{frame}   \begin{tabular}{|p{1cm}|p{1cm}|}     \hline     1 & Hello World \\     \hline     2 & \visible<2->{Hello World} \\     \hline   \end{tabular} \end{frame} \end{document}


I have the following error: Exception in thread "Thread-0" java.util.ConcurrentModificationException at java.base/java.util.HashMap$HashIterator.nextNode(HashMap.java:1584) at java.base/java.util.HashMap$KeyIterator.next(HashMap.java:1607) at Server$1.run(Server.java:149) at java.base/java.lang.Thread.run(Thread.java:832)  Reffering to this code:     for (Session key : sessions.keySet()) {                         if (key.getPort2() != port && key.getPort1() != port) { // change later to ip                             System.out.println("2nd time init 2 client");                              session.setIp2(ip);                             session.setPort2(port);                              sessionID++;                              sessions.put(session, sessionID);                              // reset session                             session = null;                          }                     }  Could you explain why this happens?

I am using a Collection (a HashMap used indirectly by the JPA, it so happens), but apparently randomly the code throws a ConcurrentModificationException. What is causing it and how do I fix this problem? By using some synchronization, perhaps?  Here is the full stack-trace:  Exception in thread "pool-1-thread-1" java.util.ConcurrentModificationException         at java.util.HashMap$HashIterator.nextEntry(Unknown Source)         at java.util.HashMap$ValueIterator.next(Unknown Source)         at org.hibernate.collection.AbstractPersistentCollection$IteratorProxy.next(AbstractPersistentCollection.java:555)         at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:296)         at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:242)         at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:219)         at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)         at org.hibernate.engine.Cascade.cascade(Cascade.java:130)


It was the same in Ubuntu 14.04 so I updated my OS to 16.04 hoping that it will automatically get fixed. Issue wasn't resolved so i updated to Ubuntu 17.04 and the problem is still there. I have Windows installed on the other side which works fine.   Edit :   $ lspci -knn | grep -iA3 net  07:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller [10ec:8136] (rev 07)     Subsystem: Hewlett-Packard Company RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller [103c:80c1]     Kernel driver in use: r8169     Kernel modules: r8169 0d:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter [10ec:b723]     Subsystem: Hewlett-Packard Company RTL8723BE PCIe Wireless Network Adapter [103c:804c]     Kernel driver in use: rtl8723be     Kernel modules: rtl8723be

I have a HP 14-AN001NA laptop. It came with Windows 10 installed on which the Wi-Fi worked fine anywhere in the house.   However I removed Windows 10 and installed Ubuntu 16.04 instead and since I have had terrible Wi-Fi anywhere aside from about three foot away from the router. I don't know if it's relevant but my Wi-Fi is not called wlan0 but wlo1 for some reason (I didn't change it).  When running lspci -knn | grep Net -A3     I get the following output:  05:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter [10ec:b723] DeviceName:   Subsystem: Hewlett-Packard Company RTL8723BE PCIe Wireless Network Adapter [103c:81c1] Kernel driver in use: rtl8723be Kernel modules: wl, rtl8723be


I am trying to download a program on to my PIC circuit. As you know the pic isn't supposed to operate with anything larger than 5v. I don't have any access to a battery pack which could hold 3 x AA batteries. What i do have are lods of other stuff, that may be useful. I was thinking that if i used two 330 ohm resistors to create a potential divider then had another battery snap going off from that to the pic circuit. Would that work?  ]

I have been looking around for an easy way to convert 12V to 5V. I have seen some people saying that a simple resistor is all that is needed.  $$ Volts = Ohms \cdot Amps $$ $$ Amps  = \frac{Volts}{Ohms} $$ $$Ohms  = \frac{Volts}{Amps}$$  So applying a resistor will diminish the voltage of the circuit. That should mean that an appropriately sized resistor could simply be placed in the path of a 12V circuit, converting it to 5v.   If this is the case how would one reduce amps? Would series vs parallel make a difference in this area?   I have seen designs that include a regulator IC and some capacitors, but if a simple resistor/fuse/diode setup will do the trick, I would really prefer that.


I have ~15 Ubuntu Desktop PC connected to a same router.  I want to update them (with apt or something else like it) with single download.  for example: I update admin PC packages and another PCs updated automatically or update with my commands but don't download anything and use admin's downloaded packages.  so How do I setup this process?

I have a friend who has got a computer that is not connected to the Internet. Is there any way to install software offline easily?


This comes up from time to time when I want to search for a line of code, and it's perhaps something common to many languages or is a word/phrase outside of programming.  The special characters and formatting are what makes my query unique.  However, Google ignores almost all special characters.  I have put my string in quotes and also used verbatim mode.  No dice.  If I search "/echo/html/" (including the quotation marks), even in verbatim mode, Google finds results such as "You need to echo HTML" which do not include my forward slashes.  I've read  but it doesn't address my situation.  The same problem exists for <>, (), and many other common programming special characters.  If I want to read about <head> or print(), I need to include words like "HTML" or "Python" and even then I might get hits that aren't about the specific query I want.  . seems to be included, so searching for .Net is not a problem.  Is there a solution I'm missing?  Am I just not able to use the search how I would like?

I want to search for what += means, but Google won't return any documents.  Also when I come across some PHP code I don't understand I can't search for the keywords as written.  How can I search for these special characters or include these special characters in a search.