How to use Select by Attributes & LIKE operator to find a %

I have a large data set of points which has the field 'Name'.  Some of the points have an attribute such as 'Slope >40%' or 'Grade 10-30%' for example.   I would like to use Select By Attributes and the LIKE operator to select all points which have a % within the attribute.   I've tried different combinations such as:  WHERE NAME LIKE '%[%]%'  But no luck on trying several combinations...


How do I remove the shutdown confirmation menu?

How do I remove the shutdown confirmation menu saying "are you sure you want to shut down"?   This is the menu that pops up after I press shut down.  I can't navigate to it in gconf_editor using the old instructions for 10.04 or 11.04.


Kindly Provide me a feasible solution to write the test class for this below code`  public class ActiveCampaign { @future (callout=true) public static void createUser(String Email, String FirstName, String LastName, String contact){     string key = '1234';     String authUrl = 'https://navsoft12350.api-us1.com/admin/api.php?api_action=contact_add&api_key='+key;     Http http = new Http();     HttpRequest request = new HttpRequest();     request.setEndpoint(authUrl);     request.setMethod('POST');     request.setHeader('Content-Type', 'application/x-www-form-urlencoded');     String payload = 'email='+encodingutil.urlencode('Email','utf-8')+'&firstname='+encodingutil.urlencode('FirstName','utf-8')+'&last_name='+encodingutil.urlencode('LastName','utf-8')+'&customer_acct_name='+encodingutil.urlencode('Navsoft, Inc.','UTF-8');     System.debug(payload);     HttpResponse response = http.send(request);      if (response.getStatusCode() != 200) {         System.debug('The status code returned was not expected: ' + response.getStatusCode() + ' ' + response.getStatus());     } else {         System.debug(response.getBody());     }     } }


Transmission not working as expected in cycles Blender Guru donut tutorial

I am brand new to Blender an was following Blender Guru's 2.8 Donut tutorial. He said that one way to get a material to look like glass is to turn transmission up to 1.00. This worked for the most part, but the glass on the main frame of the cup has this weird texture to it in some places. When I move the camera around, the place where the glass is clear shifts so that it is always on the other end of the glass, which leads me to believe that because the light is going through two pieces of glass, it gets distorted. Any way I can fix this?


John has been doing work. Work has been being done by John.  Can we make the passive of Present perfect Continuous tense?  I read in different books that we can not make?


void main() { printf("%d\n",sizeof('1')); }   Output : 4  void main() { char a='1'; printf("%d\n",sizeof(a)); }   Output : 1  Can somebody say why it is different ?


Why does Unix store timestamps in a signed integer?

Why is a signed integer used to represent timestamps? There is a clearly defined start at 1970 that's represented as 0, so why would we need numbers before that? Are negative timestamps used anywhere?


Arrange the values in a column in ascending order

I have the below query where I am trying to arrange the "weekNumber" in ascending order such as week1,week2,week3,week4,... and so on  SELECT WeekNumber,pointsRewarded FROM chart_copy  WHERE EmployeeID = '2164' order by WeekNumber asc ;   But the problem is it is not giving me the desired output.  What it gives is this :    Kindly help.I am using sql server -2012.


Selenium is not interpreting attribute value correctly

My attribute value if condition is not working correctly in Selenium. It is printing string value true to console, but the following if condition supposed to print SMS number checkbox is disabled. Printing  else output   String value=customerSectionSMSNumber.getAttribute("readonly");         System.out.println("Value = "+ value);          if ( value == "true") {             System.out.println("SMS number checkbox is disabled");         }`  else {             System.out.println(customerSectionSMSNumber.getAttribute("readonly"));         }


When writing is it correct to use numerals (e.g. 1,2,3,) or spell out the number (e.g. one,two,three)?


Installing ubuntu on lenovo desktop alongside windows 10

I am planning to buy a desktop from lenovo. The desktop has windows 10 pre built. I just wanted to know if it is possible to install ubuntu alongside win 10 in lenovo desktop? Did anyone tried that? If then any link of the steps of install is appreciated.  Thanks


How to add "Refresh" option to right click menu in Lubuntu?

I have many users at the place I work, expressing the notion of switching to Ubuntu.  Most of them, for whatever weird reason wanting to know if its possible to have refresh added when you right click on the desktop.   Is that possible?


What resister I want to use to drop voltage for LED?

I am going to connect 10 led in series without a transformer.  Now I want to know the value of resister to connect 10 led in series  and please give the calculation method  thank you.


Ubuntu Gnome 15.10-16.04 Dell XPS15 9530: Bluetooth doesn' work

Device loaded  with Ubuntu Gnome works perfectly with one exception: bluetooth. I cannot get any response from Broadcom 4352. Tried to replace driver () -no success. Any advice would be appreciated.


What happened to Bon Clay after the Impel Down arc?

SPOILER ALERT: Contains spoilers for those who have not read or watched the end of Impel Down arc.  In the anime episode 451, Bon Clay disguises himself as Magellan to help Luffy and the prisoners escape on the Marine ship. Magellan gets very angry when he finds out, and attacks Bon Clay.    The episode ends after a few seconds, and the subsequent episodes do not show what happened next. Does it imply that Bon Clay was killed offscreen, or is this left as a suspense?


How do I prevent scientific notation when outputting decimal as a string?

When I try to convert a decimal.Decimal to a string, sometimes Python will output scientific notation (e.g. "123E-2"). >>> from decimal import Decimal >>> str(Decimal('0.00')) '0.00' >>> str(Decimal('0.0000000')) '0E-7'  How can I ensure the output is always in decimal notation (e.g. "1.23")?


Just noticed on :        Yes, all we know that internet is fast nowadays, but ... 1.5Mb for (scaled) 164x164 px image is too much.


different color for section titles and pages in toc

I am using the linktoc=all option in hypersetup. I would like the chapter/section titles also clickable in my table of contents, but I want the linkcolor only applied on the page numbers in the toc and the text remain black (although clickable).  Anybody knows a simple way to do so?!


What happens if a super fast rotating ball accelerates near speed of light?

Assume we have a ball with diameter 1 meter and mass 1 kg rotating at 99,5% speed of light (Suppose I'm an observer placed above the ball, I see under me a disk wich external  speed is 99,5% the speed of light)  Then we accelerate such ball to 99.5% of speed of light, to make clear from wich position we look at the ball when it's moving so fast I did a picture (there's a black ring around the ball, as you se the rotational axis is vertical to our observer)    I'm interested in a full explanation of what we observe (measured rotation speed, color etc.) and why that happens, as far as I know we should not measure something moving faster than light but I'm not sure how relativity constraints would alter the "measured state" of the ball as long as we accelerate it.  What we see change while the ball accelerates?  EDIT:  A precisation, I assume the ball is spherical when I start rotating it before even moving, this is because commenters made me to note that shape may change.


How to use maven to build an self-contained executable jar?

I am using maven to build a java project. My project has a lot of dependencies. Now, I need to deploy this project on a server, so I want to create a self-contained executable jar, which includes all the dependencies. I went through an old question, where maven shade plugin was recommended, but I am wondering whether it is possible to do this just with maven. Is there a way I can create a self contained executable jar only by using maven?


In the above problem, it states that the dielectric fluid is "pulled up" by an electric force. However, I don't see why this should be true. The electric field (and therefore any electric force) between the plates of the capacitor is horizontal, so there should be no vertically acting force pulling the fluid up. What is wrong with my reasoning, and how does one go about solving the problem?   Also, what does it mean by the work done by the battery? Is it simply $C(x)\cdot V^2_0$?


Upper bound for $T(n) = T(n - 1) + T(n/2) + n$ with recursion-tree

I'm reading through Introduction to  and I got stuck on the following recurrence (exercise 4.4-5):  $$T(n) = T(n - 1) + T(n/2) + n$$  The exercise asks you to find the upper bound using the recurrence-tree method. I tried drawing one. It would have $2^n$  leafs if it was a complete binary tree (the height is $n$), but it is not. Furthermore, I cannot find a formula that expresses the complexity of each level like they do in the book.  After writing some code to calculate $T(n)$ and comparing it with different functions, I end up thinking that the complexity is exponential. Using $c2^n$ with the substitution method works out, but I'm not certain that this is a tight bound. I'm not certain that the tight bound is exponential either.  Can somebody help me out through the reasoning?  P.S.: If it matters, I'm not in school/university and this is not homework. I'm a (let's say) Ruby programmer who is self-studying to fill in his gaps in Computer Science.


MariaDB 'You do not have privileges to manipulate with the users!'

Apache/2.4.41 PHP 7.3.9 Windows 10 64bit   I have been using XAMPP without issue for months now, and this morning when I turned on my PC adn tried to accedd my databases via HeidiSQL I received some strange errors. They all seem to relate to users / permissions. I haven't (or don't recall!) changed any database user accounts, so this is confusing me.  Using HeidiSQL I can access my localhost and view the available databases. I can create a new database. When I click on the 'manage users' tabe the program freezes and i have to force close.  Using Phpmyadmin I can't get any further. Except there's a message displayed;     You do not have privileges to manipulate with the users!   I have a root user with no password as this is a local testing environment.  The whole localhost database setup is running painfully slow. My localhost has 25 databases, mosts Joomla / Wordpress so not huge.  I've checked that everything is running on the correct port, and I don't have multiple instances opened. I've restarted my PC numerous times, no change.  The mysql error log doesn't have anything unusual.  Is there anything else I should be looking at?


NullPointerException encountered when running code

I am simulating an airport which has only one runway. When it is busy, planes wishing to take off or land have to wait. Implement a simulation, using two queues, one each for the planes waiting to take off and land. Landing has the higher priority. The user enters commands takeoffflightSymbol, landflightSymbol, next, and quit. The first two commands place the flight in the appropriate queue. The next command finishes the current takeoff or landing and enables the next one, printing the action (takeoff or land) and the flightsymbol. But I can't seem to find the problem for the following code. Help!  public class Runway {    public Scanner in;    public Queue<String> takingOff;    public Queue<String> landing;     public Runway()    {        in = new Scanner(System.in);        boolean done = false;        while (!done)        {           System.out.println("Type TAKEOFF/LAND followed by Fight Number to Queue a plane");           System.out.println("Type NEXT to perform the next action, or QUIT to close the simulation");           String action = in.next();           if (action.equals("TAKEOFF"))           {               String flight = in.next();               takingOff.add(flight);           }           else if (action.equals("LAND"))           {               String flight = in.next();               landing.add(flight);           }           else if (action.equals("NEXT"))           {               handleNextAction();           }           else if (action.equals("QUIT"))           {               System.exit(0);           }           else {               System.out.println("ERROR - not a valid command");           }        }    }     public void handleNextAction()    {        if (landing.size() > 0)        {           String flight = landing.remove();           System.out.println("Flight " + flight + " is landing. ");        }        else if (takingOff.size() > 0)        {           String flight = takingOff.remove();           System.out.println("Flight " + flight + " is taking off.");        }        else        {           System.out.println("There are no flights waiting to take off or land");        }    }     public static void main (String[] args)    {        Runway simulator = new Runway();    } }   When the simulation is running, other than the quit function, all the other functions produce java.lang.NullPointerException errors.


Does random forest (and, decision tree) require an independent observation assumption?

I am wondering if random forest models require an independent observation assumption.   My date includes observations from the same participants, but I do not have a way to identify each participant. I would like to analyze this using random forests or decision tree, but I am not sure if I have to worry about the independent assumption like regression models or not.  I would appreciate your guidance and literature would be of great help.


Just downloaded the latest version of Blender and was hoping for an easy way to port over some screen layouts made in the previous version.  Here's what worked for me:   Open previous version of Blender Save current state as startup.blend (or other filename of choice) Open the startup.blend file in new version of Blender and choose File -> Save Startup File (Ctrl + U)   Does anyone know of a better way to import/export screen layouts? Even though this worked for me, it doesn't seem like the best practice since some things may or may not get carried over in a startup.blend file.


Should I try to give accepted answers for all my questions?

I realize that your suppose to accept an answer if it worked for you. What if you have a high up-voted , but the answer was found through the comments? Do I ask the user who made the comment to post it as an answer? How important is it to accept answers for all your questions? Is it worth begging users from the comments section to post the answer from the comments section to post their answer as a official answer?   One possible problem  Some users feel answers in the comment section are easy answers and don't deserve to be answered. What do I do in this case. Delete the question?


What is the English synonym for the German word "Sparmeister"?

Well, the title pretty much says it all. A Sparmeister (noun), briefly speaking, is  a person who is concerned about his finances and tries to avoid spending money whenever possible. a person who always tries to get the best (lowest) price on things.  I would consider this word neutral, rather than offensive or complimentary. The context for which I need this word is gonna be a sentence similar to this:  Looks like you are quite the "Sparmeister", you only spent --insert low amount of money here--.  Is there any better wording for "Sparmeister"?


Select  which href ends with some string

Is it possible using  to select all <a> links which href ends with "ABC"?  For example, if I want to find this link <a href="http://server/page.aspx?id=ABC">


Unselected vertices and edges move along wth selected ones

I'm pretty new to Blender, but I am stuck on one thing: every time I try to move a particular vertex, or edge loop, or whatever, using the Translation Widget or the "G" key, a number of other vertices and edges move as well, as if the rest of the object is reshaping as well.  However, I want to simply move the vertices or edges that I have selected, while keeping all other vertices fixed.  How could I do that?


Is it possible to set a static pointer equal to the value of function parameter in C++

I have a static class named GlobalNet meant to make a variable(Specifically an instance of another class named Network) global throughout my entire program as I need to use the variable across multiple classes by solely including the header file GlobalNetwork.hpp. I need to use a pointer so I can easily change the instance of the Network class held by the GlobalNet class. Currently, the code looks like this: GlobalNetwork.hpp:  #ifndef GlobalNetwork_hpp #define GlobalNetwork_hpp  #include <stdio.h> #include "Network.hpp"  class GlobalNet{ private:     static Network * net;     GlobalNet();  public:      static void setNetwork(Network newNetwork);      static Network getNetwork(void);  };   #endif /* GlobalNetwork_hpp */   GlobalNetwork.cpp:  #include "GlobalNetwork.hpp"  GlobalNet::GlobalNet(){  }  void GlobalNet::setNetwork(Network newNetwork){     *(GlobalNet::net) = newNetwork; }  Network GlobalNet::getNetwork(void){     return *net; }   This code gives me /clang:-1: linker command failed with exit code 1 (use -v to see invocation). I'm pretty sure it's because I'm assigning a pointer to a function parameter but I'm not entirely sure. If it is required to known I am using macOS Mojave and am compiling the code with Xcode 10.1 and I am new to C++.


Can every non-simple group $G$ be written as a semidirect product?

When people want to classify a group with certain (small) order, they seem to find a normal subgroup $H$ and a subgroup $K$, and then consider how many distinct $H \rtimes_\varphi K$ are there.  My question is: For any group $G$, does it always exist normal subgroup $H$, subgroup $K$ and $\phi : K \rightarrow Aut(H)$ s.t. $G\cong H \rtimes_\varphi K $?  Sorry if this question is too basic...  Thanks the comment and the answers. Then if the $G$ is not simple, can we have can $G\cong H\rtimes_\varphi K$ for proper subgroup $H$, $K$, with $H$ normal?  EDIT:  If we have a group $G$, that is not simple (then $G$ has at least one normal subgroup), are there always a non-trivial normal subgroup $H$ and a proper subgroup $K$ s.t. $G \cong H \rtimes K$. (Note that if $G$ is simple this is clearly not possible).  But the quaternion group and $Z_4$ given in answers have shown that we cannot always have it.


My memory stick was left in some flood water. I've tried drying it out using rice.  Will this USB drive memory stick damage my computer if I try to use it?


how $2x=x$ , related to differential calculus

can anybody please tell me what's happening here ?  $$1^2=1$$  $$2^2=2+2$$  $$3^2=3+3+3$$  $$x^2 = x+x+\cdots+x \mbox{  ($x$ times)}$$  differentiating both the sides   $$2x = 1 + 1 + \cdots+1 \mbox{  ($x$ times)}$$  thank u


Would the word "peoples" be used to mean many different cultures?

I'm writing a book, and I don't know if I'm using the word peoples right. I'm fairly sure it IS a word, but I don't know its exact use.


i was working with arrays in python and i wanted to insert one array as column in 2d array and i see that for some reason my column is filled with only last element of words[] words = ['first','second','third','fourth','fifth'] tab = [[None]*5]*len(words) for i in range(len(words)):     tab[i][0] = words[i] for i in range(len(words)):     print(tab[i])   #output ['fifth', None, None, None, None] ['fifth', None, None, None, None] ['fifth', None, None, None, None] ['fifth', None, None, None, None] ['fifth', None, None, None, None]


How to check user's other time period percentile?

At the user's info, there is a percentile status like     top 3% this year   Is there a way how to check other (week, month, quarter, all time) periods percentile?


I would like to solve this question without using conservation of angular momentum(because of some reason I'll elaborate later).   So imagine that we have a pole with radius $r$ and a ball attached to a rope of length $R$.   Initially the distance between the ball and the attach point is $R$(which means the rope is tight). The initial velocity of the ball is perpendicular to the rope. Now we know $R>r$. At a later time $t$, what is the direction and magnitude of the velocity of the ball?  The reason we cannot use conservation of angular momentum is because I don't assume that the ground is not moving. Instead I assume that the ground is the Earth. So if the rope applies a torque on the Earth, the Earth's angular momentum will increase. I always see people use conservation of angular momentum to solve such a question but not conservation of energy. And if we assume that the ground is not moving, there must be one of them that is not conserved! And I would like to know if the common way of doing it is right or wrong.   However I got stuck at the very beginning... Once I figured out the initial and final energy and momentum, I should be able to solve it. Any help would be much appreciated!  Note: The pole is vertical. And we can assume no gravity. Also I guess friction is important, otherwise the rope can't be wrapped around the pole. However let's assume there is no loss of energy thru friction. There is of course tension on the rope.  IMPORTANT REMARKS: It might look really simple to you at first. But it's actually as straightforward as it seems. When we solve this kind of problem in the standard first year physics text, we always assume conservation of angular momentum. However this would imply the violation of conservation of energy if we assume the ground does not move. If we do assume that the ground moves, both angular momentum and energy will not be conserved for the pole (because the system gives angular momentum and energy to the earth). In that case, if we take the limit as mass of the earth goes to infinity, which one is more conserved? (It has to be angular momentum, otherwise we would have used conservation of energy to solve this kind of problem in first year physics textbooks. But now I just want to justify it)?   THIS IS NOT A FIRST YEAR PHYSICS TEXTBOOK PROBLEM!  Also although I added the homework tag to this question, it's not an actual homework problem(as you can see from the date I posted it). So please feel free to write down any detail that you think might help explaining your solution. Thanks!


When I try to synchronize time using NTP. Using the below command   sudo ntpdate -b pool.ntp.org   I get this error saying NTP socket is in use. How to fix this?  18 Jan 05:53:49 ntpdate[21340]: the NTP socket is in use, exiting


Prove that the sum and product of two positive relatively prime integers are themselves relatively prime.

Can anyone tell me if my attempt is correct?   gcd (a, a + b) = gcd (b, a + b) = gcd (a, b) = 1.  ∴, gcd (a + b, ab) = 1.


Let , $D$ be the set of tuples $(w_1,w_2,\cdots,w_{10})$ , where $w_i \in \{1,2,3\},1\le i\le10$ and $w_i+w_{i+1}$ is an even number for each $i$ with $1\le i\le 9$.   Then find the cardinality of $D$.   As , $w_i+w_{i+1}$ is an even number so either both even OR both odd. Again $w_i\in \{1,2,3\}$. So , both even possibility is exactly $1$ which is $(2,2,\cdots,2)$.  But I am unable to find the both odd possibility..


Let $\lim_{n\to\infty}a_n=a$. Given $a>0$, prove that there exists some $n_0\in\mathbb{N}$ such that for all $n\geq n_0$, $a_n>0$.

Note. $\{a_n\}$ is a sequence in R. I need to prove the claim in the title. The following is what I have got so far: Suppose for contradiction that for all $n\in\mathbb{N}$, $a_n\leq 0.$ Let $a$ be greater than $0$. Since $\lim_{n\to\infty}a_n=a$, it follows that there exists $n_0\in\mathbb{N}$ such that given $\epsilon>0$, $|a_n-a|<\epsilon$ for all $n\geq n_0.$ Since $a>0,$ $a+\epsilon>0$. Therefore, we have $-\epsilon<a-\epsilon<a_n\leq 0<\epsilon<a+\epsilon.$ In particular, $-\epsilon<a_n<\epsilon$. Note. I am aware of the following theorems:  All convergent sequences in R is bounded. The limit of a sequence in R is unique.


I have Windows Server 2012 installed on a laptop. I need a server because I develop software that I need to test specifically on a server edition. Documentation for      Sleep and hibernate are no longer disabled when the Hyper-V role is   installed.       What value does this change add?      Computers running Hyper-V   can be put into sleep or hibernate mode. This is particularly useful   to users who are running Hyper-V on laptops computers.   Question  How to enable hibernation on Windows Server 2012 with Hyper-V role?  Things I tried   . I did not have hvboot folder in the registry, so I added it manually, rebooted  [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\hvboot] "Start"=dword:00000003   No effect. Pressed Alt+F4 on desktop, no Sleep or Hibernate available      Stop Hyper-V Virtual Machine Management service in service.msc (which points to C:\Windows\system32\vmms.exe), all other Hyper-V services were stopped by default. Executed as Administrator  powercfg.exe /hibernate on   This is the output  Microsoft Windows [Version 6.2.9200] (c) 2012 Microsoft Corporation. All rights reserved.  C:\Windows\system32>powercfg.exe /hibernate on Hibernation failed with the following error: The request is not supported.  The following items are preventing hibernation on this system.         An internal system component has disabled hibernation.                 Hypervisor  C:\Windows\system32>powercfg.exe /a The following sleep states are not available on this system:     Standby (S1)         The system firmware does not support this standby state.         An internal system component has disabled this standby state.                 Hypervisor      Standby (S2)         The system firmware does not support this standby state.         An internal system component has disabled this standby state.                 Hypervisor      Standby (S3)         An internal system component has disabled this standby state.                 Hypervisor      Hibernate         An internal system component has disabled hibernation.                 Hypervisor      Standby (Connected)         The hypervisor does not support this standby state.         The system firmware does not support this standby state.      Hybrid Sleep         Standby (S3) is not available.         Hibernation is not available.         The hypervisor does not support this standby state.      Fast Startup         Hibernation is not available.   C:\Windows\system32>


When two accounts are merged, all the posts/votes are moved over to the "master" account, and the other account ("slave"?) is deleted. The merge is propagated network-wide, so a similar thing happens on each site.  But, this does not happen to the chat user. The "slave" chat user is kept, with a 404 parent profile link. I feel that the chat user should be merged as well, re attributing all the chat messages.  Thoughts?


Creating a virtual NIC that connects to the same network as physical NIC

How can I create a virtual interface, that connects to the same network as the physical interface? I tried searching around but all I found is loopback. I need the other end of the wire recognizes this as two interface, so loopback won't do it. Hypervisors like VMWare have an option to do exactly this (VM and host are recognized as two devices on router's arp table), but in my situation using a VM is pretty much overkill. I just want another connection, or maybe some apps that can behave as a "virtual switch".  I'm on Windows, and it should be like this.     Seems like I'm not the only one having this problem. Someone  and  have also asked but there's no acceptable answer. My apologize, but it is extremely hard to search for this problem.


In a brand new project, I'm getting a white "X" instead of the backdrop preview. I can only find one reference to this online, with no solution given. I'm very new to the compositor, so apologies if I'm missing something obvious, tutorials give the impression that it "just works".    As a side note, I'd love to get these per-node previews shown in the video on the left, which I also can't find in the docs.  Cycles engine and "Blender render" have the same problem. Rendering normally or with the "Rendered" viewport shading works fine.  Thanks in advance!


Why does Kylo seek Luke's original lightsaber?

Does Kylo seek Luke's original lightsaber because it is Vader memorabilia, or is it a legitimate dark side relic/symbol of power?  After all, the lightsaber Luke wielded was also Anakin's lightsaber, and thus the same blade that slew countless Jedi and Younglings during Order 66, and subsequently the remnants of the Separatist leadership. Figuratively, it was a weapon of great darkness.


A concern on the definition of compactness in a metric space

Let $(X,d)$ be a metric space. This space is compact if any sequence $x_n \subset X$ has a convergent subsequence.   This is how I'm given the definition of a compact metric space and it confuses me. How come a definition is not an "if and only if" statement and instead an "if" statement. This seems more of a theorem to me and seems like there could be some metric spaces which are compact but do not have a convergent subsequence.  Also, if say, $E \subset X$ is compact,then would the values of those convergent subsequences be a member of $E$?  Thanks


Is focal length measured relative to the sensor or the lens?

I'm very (very) new to photography world.. I've been trying in the past few days to explore very deeply to this world.. But the more I dived in the more confused I became.    For example most of the videos that I've seen in YouTube and a lot of articles said that the focal length is the measurement between the front lens and to the convergence point, but some said (and it sounds more sense to me) that it actually from the convergence point to the sensor, so what is the truth?


How can I revert the following: (running  Kubuntu 14.10)  This is what I did before my WiFi and LAN both got their untimely death.  I did a:  sudo apt-get install --reinstall linux-headers-generic build-essential   After that, I compiled and install the driver as follows -   Download the latest backported driver package from  Copy the downloaded tar.bz2 package to your Ubuntu Desktop > Right-click > Extract here. Open a terminal and run the following commands one-by-one:  cd Desktop/backports-3.18-rc1-1 make defconfig-ath9k make sudo make install


How to find the largest directories or largest files?

Under Linux, I'm looking for a command to list the largest file and/or the largest directories under a directory.


How.  Is it grammatically correct to phrase a question starting with "How to"?  We see "How To" videos that explain how to do something, but is the question form valid English?  Example:  How to add two numbers?  vs  Do you know how to add two numbers?


Why does Stack Exchange want to access my Facebook friends list?

I just signed in to Stack Overflow via Facebook today, like I always do and got the OAuth window that asked me if I would allow Stack Exchange to access my friends list.  Why would SO want my Facebook friends list? This has never happened before.  Add I logged in to a new machine for the first time today and opened Stack Overflow website on Google Chrome. I logged in via Facebook like I always do and saw the popup.


Why did Walter White decide to become a teacher after Gray Matter?

If anything that I have learned from Walter White's character in Breaking Bad, it is his love for lab and chemistry. After leaving Gray Matter, why didn't he continue his research, or decide to start his own business, as he was a genius chemist that anyone has ever seen?  Becoming a school teacher doesn't suit his type and was a waste of his talent. Starting from the very first episode we see that he is poor (before his cancer is diagnosed). Why didn't he think about his family before, leaving them with money etc.?


I am trying to setup Raspberry Pi Zero W with Ubuntu Core (Snappy). I checked the download page, but it doesn't show image for RPi Zero.  Anyone know if Ubuntu Core (Snappy) can be loaded to Raspberry Pi Zero W ?


Finding an equation of circle which passes through three points

How to find the equation of a circle which passes through these points $(5,10), (-5,0),(9,-6)$ using the formula  $(x-q)^2 + (y-p)^2 = r^2$.  I know i need to use that formula but have no idea how to start, I have tried to start but don't think my answer is right.


How do I avoid conversation with strangers while traveling?

Personally I hate traveling not just because I hate going to a new city but because of seeing strangers who are watching and trying to start conversation with me. Well talking with someone is not a bad thing as it's a good habit but personally I hate talking to them because I am attached to those persons only to whom I know. But still how can I avoid someone talking to me ?  Well at first they say hey 'hello' and as being a nice human I also say 'Hi' and then just little bit formal chats. But then when it comes to talking like more than 5 minutes it's really hard for me to take that thing. Well I can't simply tell them to leave me alone as it would be quite bad for me and they are also good people so what to do ?  How can I avoid these things ?


Changing the working directory when including files in a subdirectory

I'm working on a mathematics magazine that involves multiple articles from different authors. I would like to give each article a sub-directory in which I can store all the relevant files - .tex, image files, etc. However, when I then \include the article .tex file from the master file, the images won't be linked correctly without editing.  For example, suppose the article is stored in articles/article1/ and includes an image matrix.png. In the article .tex file this would be inserted, normally, through \includegraphics{matrix.png}. However, when we move to including the article in the magazine through the master file, all these instances would have to be changed to \includegraphics{articles/article1/matrix.png}  So, is it possible to change the LaTeX working directory before including the article such that instances of \includegraphics will not have to be changed, but rather that LaTeX will know to search for these files in the article directory? I'm thinking that this would be similar-ish in functionality to HTML's base href command for links.  Or, is there a better way to achieve all this?


Let's imagine a guy who claims to possess a machine that can each time produce a completely random series of 0/1 digits (e.g. $1,0,0,1,1,0,1,1,1,...$). And each time after he generates one, you can keep asking him for the $n$-th digit and he will tell you accordingly.  Then how do you check if his series is really completely random?  If we only check whether the $n$-th digit is evenly distributed, then he can cheat using:     $0,0,0,0,...$   $1,1,1,1,...$   $0,0,0,0,...$   $1,1,1,1,...$   $...$   If we check whether any given sequence is distributed evenly, then he can cheat using:     $(0,)(1,)(0,0,)(0,1,)(1,0,)(1,1,)(0,0,0,)(0,0,1,)...$   $(1,)(0,)(1,1,)(1,0,)(0,1,)(0,0,)(1,1,1,)(1,1,0,)...$   $...$   I may give other possible checking processes but as far as I can list, each of them has flaws that can be cheated with a prepared regular series.  How do we check if a series is really random? Or is randomness a philosophical concept that can not be easily defined in Mathematics?


How do I add a stackoverflow icon to twentysecondcv?

I want to add a link to stackoverflow on twentysecondcv. How do I do it?  The section where items are added is currently:  \cvlinkedin{/in/xxxxx} \cvgithub{xxxx} \cvnumberphone{(0176) 1234567} % Phone number \cvsite{} % Personal website \cvmail{person@gmail.com} % Email address


What method of browsing the root filesystem is least likely to make any modifications to it?  Hooking to a pc is an option.  Jailbreaking is not an option for this question.


How should I act when I see tiny "Have you tried this..?" type of answers?

Should we flag tiny "Have you tried this..?" type of answers?  I have been always inconsistent to this type of answers about in flagging part. Based on  example;   If this answer is a question (just for asking if he/she tried it or not), it should be a comment. This answer could be as a comment also and it would be better as a comment. But I don't think writing it as answer is wrong because the suggestion/solution could be the right answer also.   I always feel unstable when I see answers like that.  What is the right act to this type of answers? Should I flag them?


How do you hyphenate compounds that already have hyphens?

For example, if something happened in the pre-Christian era, is it a   pre-Christian-era event, or pre-Christian era event   To give another example -- we say "low-sodium diets", but would you say that a menu is "low-sodium-based"? It feels over-hyphenated.


Hiding an application from switcher (alt+tab)

I would like to hide cairo-dock from the switcher since it is redundant to have it there.  I've searched for solutions without any luck.


Formula for B values in Multiple Regression

I am curious what the formula for B values is when you have more than two variables. While I know any software can easily tell me the answer, I do not want to use it to figure out the B values, I want the actual equation. Everywhere I look I get equations like the following:   I cannot find any images or information on equations for the b values when there is more than two variables. I am also interested in how the formulas change between amount of variables. If anyone can tell me or point me to where I can find this information I would be grateful.


How to calculate $\int_{0}^{\pi/2}\dfrac{1}{\sin^3 x + \cos^3 x}dx$

One way that I tried to solve an integral was to divide integrand by $\cos^3x$ para para obter  $$ \int_{0}^{\pi/2}\dfrac{\sec^3x}{1 + \tan^3x}dx $$ Through software, I saw that the result involves $\tanh^{-1}\bigl(\frac{1}{\sqrt{2}}\bigr)$, but I do not know how to get there.


what´s the difference between I don´t mind and I don´t care

I am looking for the difference meaning between 'I don´t care' and 'I don´t mind'  Thank you


How do i make it say Hi in chat on Minecraft? i put /tellraw @a "Hi" in a command block and it works. but i wanna make it say it every 30 minutes. Any help please?


How do we know LIGO didn't detect stars but Black holes?

My assumption is that stars have significantly larger volume than black holes. And if they spiraled they would would merge before they had the chance to reach high enough velocities to generate gravitational waves detectable by the current LIGO.  Is this the main reason why we know LIGO detected black holes?  Another idea I had was mass. But if black holes can have masses like 30 solar mass then the stars by which they formed would be at least so massive if not more. Right?


What's the 2017th derivative of $f(x)=\frac{1}{1-x^2}$?

I started solving the first few derivatives to see if I can find a pattern but I can't find it.  I tried to do something with general Leibniz rule but I don't really know if it's correct. $f'(x)=\frac{2x}{(1-x^2)^2}=2xf(x)^2$  $f^{(n)}(x)=[\text{Leibniz}]=2x(f(x)^2)^{(n-1)} + 2(n-1)(f(x)^2)^{(n-2)}$  Is this correct? What can I do next or is there another way of solving it?


On  I asked a question and I wanted to start a bounty. The reason for this is because I need an answer quite fast and want to attract attention, but I can't find the 'start a bounty' button under my question.


What reason would appear on closed question with 2 - 2 - 1 votes?

What would happen/How would close votes appear in case of    1 too localised vote 2 not a real question votes 2 not constructive votes   How would message about closing look like?


Is there a way to get a RSS feed for flags and the review queue? If not, this is a feature request.


UnboundLocalError: local variable 'balance' referenced before assignment (Python)

I'm new to coding, and I'm trying to write a program to create a little online store through the terminal. Here is the code:      global balance               def homescreen():         print("What would you like to do?")         print('1. Sign up')         print("2. Login")         option = int(input())         if option == 1:             sign_up()         elif option == 2:             login()         else:             print("Invalid option")             homescreen()               def sign_up():         global username         global password         username = input("Enter a username: ")         password = input("Enter a password: ")         homescreen()               def login():         user = input("Enter your username: ")         passw = input('Enter your password: ')         if user == username and passw == password:             print("Welcome")             homepage()         else:             print('Incorrect password or username; please try again')             login()               def homepage():         print("Welcome, what would you like to do?")         print('1. Shop')         print("2. Check Balance")         print("3. Add money")         option = int(input())         if option == 1:             shop()         elif option == 2:             check_balance_page()         else:             print("Invalid option")             homepage()               def check_balance_page():         balance = 0         print("Your balance is: ", balance)         print('What would you like to do?')         print('1. Go to homepage')         print('2. Add money to balance')         opt = int(input())         if opt == 1:             homepage()         elif opt == 2:             add_money()         else:             print("Invalid option")             check_balance_page()               def add_money():         print("How much money would you like to add?")         amount = int(input())         balance += amount         homepage()               def shop():         print('x')               homescreen()    Whenever I run this, I create sign up, login, and enter the check balance screen and then the add money screen. But when I enter an amount to add to the balance, i get this error message (XXXXXX represents my user path):      Traceback (most recent call last):       File "C:\Users\XXXXXX\Documents\pycharm projects\main.py", line 78, in <module>                File "C:\Users\XXXXXXXX\Documents\pycharm projects\main.py", line 8, in homescreen         option = int(input())       File "C:\Users\XXXXXXXX\Documents\pycharm projects\main.py", line 21, in sign_up         username = input("Enter a username: ")       File "C:\Users\XXXXXXXXXXXX\Documents\pycharm projects\main.py", line 10, in homescreen         sign_up()       File "C:\Users\XXXXXXXXXXXXX\Documents\pycharm projects\main.py", line 29, in login         if user == username and passw == password:       File "C:\Users\XXXXXXXXXXXX\Documents\pycharm projects\main.py", line 45, in homepage         elif option == 2:       File "C:\Users\XXXXXXXXXXXX\Documents\pycharm projects\main.py", line 62, in check_balance_page         add_money()       File "C:\Users\XXXXXXXXXXXXX\Documents\pycharm projects\main.py", line 71, in add_money         balance += amount     UnboundLocalError: local variable 'balance' referenced before assignment    Is there a kind soul who would tell me what's wrong with this?


I'm using a grammar checking service. It tells me these kind of projects is wrong and should be changed to these kinds of projects. I'm not sure about the correctness of this suggestion, so I googled it on the Google Books website. You can take a look at the result  and .  Both searches returned many results, and these are from books, which I assumed to be correct. Could anyone help to explain? Thanks in advance.


Is there a way to estimate if the addition of a ppa will be harmful?

I was told here, that it is insane to add repeatedly new ppa-s to the system, however sometimes it is the only way for me to install a program. Some programs have different ppa-s on launchpad.net to choose from, is there a  way to tell, or at least make an educated guess, if one ppa is potentially less harmful than another?


Sample size calculation for mixed models

I am wondering if there are any methods for calculating sample size in mixed models? I'm using lmer in R to fit the models (I have random slopes and intercepts).


\begin{align} . \end{align} \begin{align} \text{Why is } \emptyset \neq\{\emptyset\}? \end{align}  \begin{align} . \end{align}


Possible distinct binary tree structures at depth d

I'm trying to figure out a recursive formula for the number of possible distinct binary trees at any depth d. I haven't been able to find any sort of sources on this.  basically, at depth 0, the only binary tree is the empty one so 0, 1  then at depth 1 the only possibility is a single node so 1, 1  at depth = 2 there are 3 possibilities, and at depth 3 I counted 21 possibilities.  I haven't been able to figure out some recursive reasoning for what 4 could be and so on. The only thing I have in place is that there will always be 1 for the full tree.


I am trying to center a graph made with pgfplots with \centering. If I put \centering within a group to limit its scope, the graph does not get centered. If I don't limit the scope of \centering, then everything gets centered.  \documentclass{minimal} \usepackage{pgfplots}  \begin{document} This text should not be centered, but the graph should be.  % \begingroup     \centering     \begin{tikzpicture}         \begin{axis}             \addplot coordinates { (0, 0) (1, 1)};         \end{axis}     \end{tikzpicture} % \endgroup  This text should not be centered. \end{document}


How to suppress scientific notation when printing float values?

Here's my code:  x = 1.0 y = 100000.0     print x/y   My quotient displays as 1.00000e-05.  Is there any way to suppress scientific notation and make it display as 0.00001? I'm going to use the result as a string.


Prove or disprove If f is continuous and g is dicontinuous then f + g is discontinuous

Let $A\subseteq \mathbb{R}$, function $f\colon A\to \mathbb{R}$ continuous at $a\in A$, and $g\colon A \to \mathbb{R}$ is discontinuous at $a\in A$.   Prove or disprove that $f+g$ is discontinuous at $a\in A$.   A proof by definition is what I need. But if ones try with the other way that's okay. Help me.  Thank you.


What does polarization mean in "polarized cap"?

Question emerged from my last question about small caps' markings, better to open new question so not become bloated.  Heard term polarization in the context of light but not with caps. Googling revealed the effect: . Not sure whether it is the right effect but at least it mentions cap.  1. What does the term "polarized" mean?  2. Why should I use "polarized" cap instead of non-polarized cap?  3. Why does the circuit need a polarized cap?


How to give Undelete permission to a particular user having a profile in which many other users are also present?

How to give Un-delete permission to a particular user having a profile in which many other users are also present?


I was trying to write script using python. i need to avoid repetition of the same tasks and want to write in one.  catlist1 = ['s0.05-k5-a1.0' , 's0.05-k5-a3.0' , 's0.05-k5-a7.0' , 's0.05-k5-a10.0' ] catlist2 = ['s0.05-k7-a1.0' , 's0.05-k7-a3.0' , 's0.05-k7-a7.0' , 's0.05-k7-a10.0']  catlist3 = ['s0.07-k5-a1.0' , 's0.07-k5-a3.0' , 's0.07-k5-a7.0' , 's0.07-k5-a10.0' ] catlist4 = ['s0.07-k7-a1.0' , 's0.07-k7-a3.0' , 's0.07-k7-a7.0' , 's0.07-k7-a10.0']  catlist = [catlist1 ,catlist2 ,catlist3 ,catlist4 ]   i need to call each list inside the for loop. i call all lists inside this single loop. I can do it repititvily by writing multiple times for i in catlist1 and again in catlist2 ..  how could i solve this. thanks   for parName in catlist:               category = '/home/x/Desktop/rouge/ROUGE/Experiments/'       for root, subFolders, files in os.walk(category + parName):         #i = 0          (head, filename) = os.path.split(root)         print filename         #some function that is will re


Our gaming group had an argument last week on what constituted a "sword" for magic item purposes in 5e. I argued that a glaive should be considered a sword and a polearm, as all a glaive really is is a shortsword or small scimitar blade on a stick. Another player argues that only things that "looks" like a traditional sword with an easily recognizable hilt, crossguard or handguard, blade, and pommel, should be considered a sword. Another player says that swords should be further restricted to only include slashing weapons that fit the prior description.  We all flipped through the PHB and DMG for a definition, but none of us could find anything. Is there an actual definition in the rules, or is this just another example of 5e being unfinished and requiring house rules to even be playable?


No check mark – How do I mark an answer as accepted?

I recently asked a question and would like to mark one of the answers as accepted. The problem is that I do not see a way to do so. On the left-hand side of the answer I can either vote up/down or view the answer's timeline. Shouldn't there be a check mark as well? Neither Chrome or Firefox offer an option to check the desired answer as accepted. No plugins are enabled. The checkmark's DOM element is present on the page with CSS styling display: none !important;. I     to how to accepted an answer, but none of them offered a working solution.  Do certain communities disable the option to mark answers? Do I need a higher reputation to mark an answer as accepted?  I would appreciate any clarity you could offer as I would like to show my appreciation for the user's help.


Please tell me the icon shown below for samsung s8 plus?

I just wanna know what icon shown below?


I have mathematical backgroud but I am new to Statistics. So, could you please advice any books on Statistics and/or Biostatistics for beginners?


I have an “other” login on my computer that I can’t seem to get rid of. I try to delete it by clicking on the minus in the groups and users section and it won’t let me. It’s greyd out. What’s  odd is the login for it is the same as my husband’s login. I’m the administrator but typing in his name and password for his own login works for it. It’s like a duplicate of his profile on my computer. The wallpaper is even the same. But the login screen has it listed as other. I also have been trying to get rid of this stupid websearchstride pop up problem. Idk if it’s all related or not. The system has been updated. I tried to get Bitdefender to scan my computer. Said it got rid of stuff but I’m steal dealing with issues. TIA.


Let's say I have two lenses of 50mm, one with maximum aperture f/1.8 and another with f/1.4.   I understand that when using maximum aperture, for the latter lens more light will get to the film or photo sensor. That seems logical.  However, someone has told me that if in both lenses I will use f/1.8 aperture, still the latter lens will have more light. So, using same aperture shutter time will be still shorter for the latter lens. That sounds illogical to me.   Can you explain what makes lens brighter?


Is there a reading order for Zenescope's Grimm Fairy Tales?

I've just started finally reading this series and have the first two TPBs. I'm thoroughly hooked and I see there is a ton of of various GFT titles that have been done and also currently going. I have no idea how to proceed collecting and reading this series and am worried that I'll buy something I won't understand because I didn't read some previous thing.  I haven't been able to find any kind of reading list for the series. Can I just keep collecting the main series and it will tell me what side stuff to read next? I'm overwhelmed by it all.


I just received my first  Secret Hat, so I decided to start the traditional Secret Hats and how to get them spoiler question.    Note: Please edit the primary list of secret hats with definitive answers only. If you'd like to discuss the hats further and/or work towards identifying what their triggers are, please do so in chat as the comments here are not meant for extended conversations about them.


Why intersection of nothing is everything?

How do I prove:  $$ \bigcap_{i \in \varnothing} A_i= \Omega  $$  Also, another logical explanation will be great.


I used Ubuntu to download Windows 10 and put in my usb. And when I try to install Windows it says that I need drivers to put it in and it doesn't detect any.


Native algorithms not available in standalone QGIS when 3rd party algorithms are working

I'm writing some standalone python code (in Spyder) to automate QGIS work. I am successfully using 3rd party algorithms, having performed the following setup: #initialise qgis qgishome = 'C:/Program Files/QGIS 3.16/apps/qgis/'  QgsApplication.setPrefixPath(qgishome, True) app = QgsApplication([], False) app.initQgis()  import processing from processing.core.Processing import Processing Processing.initialize()  #import third party processing plugins sys.path.append(r'C:\Users\weedingb\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins')  from processing_umep.processing_umep_provider import ProcessingUMEPProvider umep_provider = ProcessingUMEPProvider() QgsApplication.processingRegistry().addProvider(umep_provider)  However, I can't access 'native' algorithms. For example, running the following (as suggested by the QGIS cookbook) for alg in QgsApplication.processingRegistry().algorithms():     if 'buffer' == alg.name():         print("{}:{} --> {}".format(alg.provider().name(), alg.name(), alg.displayName()))  yields nothing, and inspection of the algorithms list shows none with 'native' as the provider. Are these not available in standalone python?


If $X$ is an infinite-dimensional Banach space and $u\in B(X)$ ,then $\bigcap_{v\in K(X)}\sigma(u+v) =\cdots$

If $X$ is an infinite-dimensional Banach space and $u\in B(X)$,why the following equality is true?  $$\bigcap_{v\in K(X)}\sigma(u+v) =\sigma(u) \setminus \{\lambda \in\mathbb{C}\mid u - \lambda \text{ is Fredholm of index zero} \}$$  The index of $u\in A$ is defined to be  $$\operatorname{ind}(u)=\operatorname{nul}(u)-\operatorname{def}(u)$$ where co-dimension of $u(X)$ in $Y$ be denoted by $\operatorname{def}(u)$ and $\dim(\ker(u))$ denoted by $\operatorname{nul}(u)$  $u\in B(X,Y)$ is Fredholm operator, if $\ker(u)$ is finite-dimensional and $u(X)$ is finite-co-dimensional in $Y$  $$K(X,X):=K(X)=\{u : X \longrightarrow X\mid u\text{ is compact operator}\} $$


biblatex: How to separate authors names in reference?

I'm using biblatex for my references, and "main author's name" and "all authors names" should have been separated from the article's title as follows:   I've tried to add custom field authors in .bib file, as below:  @article{Abd_2014,     author = {Abdullin A.A.},     authors = {Abdullin A.A. AND Drozdov V.N. AND Plotitsyn},     title = {Optimal Control System},     journaltitle = {Advances in Automatic Control},     date = {2014},     pages = {22-26} }   and then adding it to the preamble (I've read this in biblatex.pdf user manual file)  \DeclareBibliographyDriver{article}{     \usebibmacro{bibindex}     \usebibmacro{begentry}     \printnames{author}     \newunit\newblock     \printfield{title}     \newunit\newblock     \printfield{authors} % \printnames or \printlist didn't help either     \newunit     \printfield{journaltitle}     \newunit     \printfield{year}        \newunit     \printfield{pages}           \usebibmacro{finentry} }   But all that I've got is:   I need to get rid of the appeared indentation, as well.  Here is the whole .tex file  \documentclass[twoside, final, 10pt]{extreport}  \usepackage{extsizes} \usepackage{mathtext} \usepackage{cmap} \usepackage[T2A]{fontenc} \usepackage[english,russian]{babel} \usepackage[utf8]{inputenc} \usepackage{pscyr}  \usepackage[a5paper,left=2.5cm,right=1.5cm,top=2cm,bottom=2cm]{geometry}  \usepackage[maxbibnames = 99, sorting = nyt, style = numeric-comp, backend = biber, bibencoding = utf8]{biblatex} \DeclareFieldFormat{labelnumberwidth}{#1\adddot} \DeclareFieldFormat[article]{title}{\textit{#1}} \DeclareFieldFormat[article]{pages}{C. #1} \DeclareFieldFormat[article]{journaltitle}{#1} \renewbibmacro{in:}{\ifentrytype{article}{}{\printtext{\bibstring{in}\intitlepunct}}}  \AtBeginBibliography{     \renewcommand*{\finalnamedelim}{%         \ifnumgreater{\value{liststop}}{2}{}{}\space} }  \DeclareBibliographyDriver{article}{%     \usebibmacro{bibindex}%     \usebibmacro{begentry}%     \printnames{author}%     \newunit\newblock     \printfield{title}%     \newunit\newblock     \printfield{authors}%     \newunit     \printfield{journaltitle}%     \newunit     \printfield{year}%     \newunit     \printfield{pages}%           \usebibmacro{finentry} }  \begin{filecontents}{\jobname.bib}     @article{Abd_2014,         author = {Abdullin A.A.},         authors = {Abdullin A.A. AND Drozdov V.N. AND Plotitsyn},         title = {Optimal Control System},         journaltitle = {Advances in Automatic Control},         date = {2014},         pages = {22-26}     } \end{filecontents} \addbibresource{\jobname.bib}  \usepackage[unicode, hidelinks]{hyperref}  \begin{document}     \nocite{*}       \printbibliography[heading = bibintoc, title = ЛИТЕРАТУРА] \end{document}


I am from Denmark and my English teacher insists on 'they' being grammatically incorrect when it is used in a singular sense (their hand reached...) No matter what I tell her she is convinced it's incorrect. Are there any "official" rules regarding this matter?


Do you need a period if the last word in the sentence ends with a .?

For example, "The baskets contained a variety of fruits: apple, bananas, etc." "The man spelt his name as A.S." Do you need a second period?


I have installed Mendeley Desktop () in my computer. It turns out that I can only run the program through the terminal, by sudo mendeleydesktop . If I try to run it from the dock, or even through the terminal without sudo, it doesn't run. It stars briefly (0.5 sec) but suddenly it closes.  When I try to run it in this last way, the next message is shown in the terminal:  /usr/bin/../../opt/mendeleydesktop/bin/install-mendeley-link-handler.sh: 56: /usr/bin/../../opt/mendeleydesktop/bin/install-mendeley-link-handler.sh: cannot create /home/jorge/.local/share/applications//mendeleydesktop.desktop: Permission denied QIODevice::setTextModeEnabled (QFile, "/home/jorge/.local/share/data/Mendeley Ltd./Mendeley Desktop/log-2016-11-01.txt"): The device is not open QIODevice::write (QFile, "/home/jorge/.local/share/data/Mendeley Ltd./Mendeley Desktop/log-2016-11-01.txt"): device not open QSslSocket: cannot resolve SSLv2_client_method QSslSocket: cannot resolve SSLv2_server_method Error in finalize query "attempt to write a readonly database" : "BEGIN EXCLUSIVE" Qt WebEngine Plugins directory not found. Trying fallback directory... Plugins as for example video codecs MAY NOT work. Error in finalize query "attempt to write a readonly database" : "BEGIN EXCLUSIVE" Error in open database "unable to open database file" : "/home/jorge/.local/share/data/Mendeley Ltd./Mendeley Desktop/www.mendeley.com/jbecerratg@alumnos.unex.es-5120/search-index.sqlite" Failed to open search index Error in prepare query "unable to open database file" : "SELECT value FROM UpdateTokens WHERE key = :key" Error in bind value "no statement prepared" Error in execute query "query not prepared" Error in step query "query not active" QObject::disconnect: Unexpected null parameter   It would be extremely helpful if you could tell me how to fix this. I would like to run the program by clicking in the icon.  Thanks in advance.


Android app doesn't explain why image upload fails

I've been trying to pay an image on a question which is a photo on my phone. I cropped it so it's small in size and pixels but it keeps failing and I'm not told why, I just get an error report.  It would be great if it told me what changes are needed, assuming there isn't simply a server issue.


printing answer up to 9 digits on division in java

How do we print division up to 9 digits?  If variable num holds 2 and variable den holds 4, then I need to print 0.500000000  double ans=(double)(num)/(double)(den); System.out.println(ans);


Looking for Davit family in Sibiu between 1875 and 1900

My great grandmother immigrated to the US from Romania around 1900.  She identified her nationality as German in all the census she answered.    I am assuming she came from Sibiu but I don't know for sure.  Her name was Kathrine (or Catherine) Davit.    I don't know where to start looking for her family.


Wifi not working on HP 15-AU114NA on Ubuntu 16.04 LTS

I am new to Ask Ubuntu, this is literally my first question :-)  I purchased an HP laptop (15-AU114NA) and installed Ubuntu 16.04LTS (together with Windows 10).  When I use Ubuntu, my laptop Wi-fi does not work. It works on Windows 10.  I ran the following terminal command:  lshw -c network   The result is the following:  *-network UNCLAIMED description: Network controller product: Intel Corporation vendor: Intel Corporation physical id: 0 bus info: pci@0000:05:00.0 version: 10 width: 64 bits clock: 33MHz capabilities: pm msi pciexpress cap_list configuration: latency=0 resources: memory:b1000000-b1001fff   When I run this command:  lspci -vvnn   I get this:  05:00.0 Network controller [0280]: Intel Corporation Device [8086:24fb] (rev 10) DeviceName: Intel Dual BandWireless-AC 3168 802.11 ac 1x1 WiFi + BT 4.0 Combo Adapter Subsystem: Intel Corporation Device [8086:2110] Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Interrupt: pin A routed to IRQ 11 Region 0: Memory at b1000000 (64-bit, non-prefetchable) [size=8K] Capabilities: <access denied>   NOTE: for other results (example for Ethernet) there is a "Kernel module" reference that I could identify and load, but not for Wifi...  I found the drivers for my Wifi built-in chip (3168)  I downloaded the drivers, then I unzipped and copied (using sudo...) in the following directory:  /lib/firmware   But still no luck :-( (no Wifi available)  Actually I checked this directory using the following command:  ls -l   And here is what I got:  -rw-r--r--  1 root      root      1028032 Mar 28 08:22 iwlwifi-3168-22.ucode drwxr-xr-x  2 guillaume guillaume    4096 Feb 26 21:33 **iwlwifi-3168-ucode-22.361476.0**   So here already I see that my copy does not have the same format that other files (owner is me instead of root, and read/write/executable status is different), I guess I should do a chmod to solve that? Also checking the line above I realise that actually there is already a driver for my wifi as it has the same name structure (3168-22.ucode) so I am even wondering if I needed to copy the firmware in this directory because it seems now (since Mar 28) there is a driver already in this directory...  @all any idea of what to do to solve my Wifi issue?  Thanks in advance for your support.


To prove $f(x)=f(h(x))$ for homeomorphism $h$ and continuous $f$.

Let $X$ be a connected topological space and a homeomorphism $h:X \to X$ exists such that $h(h(x))=x$ for all $x \in X$. Prove that for every continuous function $f: X \to \mathbb{R}$ there exists $x \in X$ such that $f(x)=f(h(x))$. I can jot down just these information from this problem- $1.$ $f(X)$ and $h(X)$ is connected. $2.$ $f(x)=f(h(h(x)))$ for all $x$. Please help me with this problem.


I have filled the form and paid the application fee for a standard visitor visa on GOV.UK website. I am an Indian national planning to visit the UK for tourism. When I visit the VFSglobal website to book an appointment, it does not list "Standard Visitor Visa" as an option. Kindly help.


My desktop storage capacity reaches its limit.  How can I visualize my storage partition between files and apps (Android-like) to efficiently dig into the heaviest files?


Looking for a present-day sci-fi novel where a devices stops gunpowder from igniting

I read a novel around 2000 where a scientific discovery of some sort of field effect (?) made it possible to build devices that would prevent gunpowder from working over a large area.  I think it had a one word title. "Primer" and "Damper" spring to mind, but I've checked, and can't find either. It was a trade paperback about the size of Jurassic Park. I think it just had a generic explosion behind the title.  I think the book was divided into three sections for three different uses of the field. I don't remember what the first was. The second was the anti-gunpowder field. The third was very short, and demonstrated selectively killing one baby mouse. I think the explanation was each object has some fundamental vibration, and getting a piece of fur let you tune to exactly that frequency?  I remember a few set pieces.  One was some sort of gun-control debate, about whether this device should be banned. The designated villain pulled a gun out of his podium to threaten someone and announced that the field covering the building had been sabotaged, and the protagonist debating him realized that they had only chosen podiums at the last minute, so found a gun in his as well. Which was apparently the villain's plan all along, so that he could prove that only guns could stop him? The logic was a little convoluted.  Another, later set piece was that survivalists had kidnapped the inventor. He discovered that since guns wouldn't work, they planned to defend themselves with saran gas. The military raided them before they could get that ready though. Each side was using crossbows.  Any ideas?


Why black holes curve spacetime using their mass and charge?

We know, in a black hole, after the Schwarzchild radius, no information or particle can come out from inside. We also know that, for interaction between charges or masses; exchange of some intermediate particle is necessary from the point of view of particle physics. Then how exactly do black holes affect their spacetime outside schwarzchild radius? Outside the black hole, there should be no effect of the mass or charge inside, as no intermediate particle can exchange the Coulomb or some other interaction between two particles, one inside and one outside the black hole.


Is the value on a helmet worth the same on a level 3 helmet than on a level 1 helmet?

When you get a helmet, it always come with a set Durability id name it. There's a number next to it, I think level 1 is 80, and level 3 is 200. But when you take shots, that number goes down, and when it reaches 0, your helmet is gone.  So when I'm looting somebody, I often wonder... Should I trade, for instance, my level 3 helmet at 70 durability for a level 1 with full 80 durability? Or should I keep the level 3 helmet because the level 3 durability is worth more than level 1 durability?


What's the difference between submit and button?

This can be a real basic question but what is the difference between <input type = "submit"> and <button onclick="">Example</button>?  It can't be done with function method in Javascript to achieve the same thing that the submit type button will? I always used <button></button> but I'd like to learn the difference.


Re-entering Schengen from UK 90/180 day rule for American tourist

I have been studying in the UK for over a year but my student visa expired (I'm American) at the end of January 2019.  But, I entered the Schengen Zone on 5 July 2018, I was in and out until 11 November and had accumulated 22 days total. I have not gone back into the Schengen Zone/Area since 11 November (I went to Romania for 4 nights around New Years but they're still not part of the Schengen Area). I plan to go to Denmark in mid March 2019 from the UK, but I'm not sure if I can enter the Schengen Zone still?  I have been getting various answers and I am very confused if I can get in still or not?  This is not for a Schengen Visa, I am mearly trying to re-enter the Schengen as a tourist.  The question would be: After the 180 days, do I have to wait another 90 days to re-start the 90/180 rule or does it start automatically after the 180 days have been up (which would of been 5 January). This is as an American tourist, not a Schengen Visa holder. None of the other questions have really addressed this even though it has been marked as a duplicate.   Thank you.


Protected vs Public in terms of Inheritance in Java

When should one use Public over Protected in Java when creating Superclasses, if a program runs without any problems with a Protected access modifier set is there any need to change it to Public?


Adjusting the caption of an algorithm2e code

I'd like to typeset the caption of an algorithm environment such that it is bold, fills the available width of the paper, and neither the caption nor the line numbers encroach into the margins.  In the example, the caption is indented and encroaches to the margin. I know that I can set the width of the caption but setting the width of the caption doesn't remove the caption indentation. I also know how to decrease the caption's indentation, but, removing the caption indentation makes the line numbers encroach to the margins. How can I make the caption fill the whole width (without any indentation) and keep the line numbers from encroaching to the margins?  I'd like to keep the caption a figure caption but I'm open to configuring the "algorithm2e" or "caption" packages.  \documentclass[10pt]{article} \usepackage{showframe} \usepackage[figure,noend,noline,linesnumbered]{algorithm2e} \usepackage[font=bf,skip=\baselineskip]{caption} \begin{document} \begin{algorithm}[t] Some algorithm step \; \caption{Here is a long caption for an algorithm. I'd like to typeset the caption such that it is bold and fills the available width of the page without encroaching into margins.} \end{algorithm} \end{document}


Invoke SQLCMD doesn't work when used with xp_cmdshell

I am trying to get  disk space report from bunch of servers and insert them into sql table..  below is sample of what i am trying to do  set @ps = 'powershell.exe -noexit -c "  $computers=Get-WmiObject -Class Win32_Volume '+@servernames+' foreach($computer in $computers)  {  $pscomputername=$computer.pscomputername  $name=$computer.name  $capacity=$computer.capacity  $freespace=$computer.freespace  $Label=$computer.Label   $insertquery="  INSERT INTO [dbo].[temp_disksdata]             (            [servername] ,            [DiskName] ,            [Capacity(GB)] ,            [FreeSpace(GB)],            [label]            )      VALUES             (''$pscomputername'' ,            ''$name'' ,            ''$capacity'',            ''$freespace'',            ''$Label''            )  GO "   Invoke-SQLcmd  -query $insertquery -ServerInstance ''someserver'' -Database dbname  }  "';   Now i try to pass the variable to xp_cmdshell like below  execute xp_cmdshell @ps;   When invoked in SSMS,above returns null,but works in powershell..  Any ideas why ?  Below are a few things i tried  1.Same account(admin) is used in both shell and ssms 2.tried multiple things like import modules 3.XP_CMDshell works,but this returns null only for this query 4.I have tried to add -nowait,but that doesn't help as well    I have been trying to get this done from more than a day,but this doesn't work.. I have to use xp_cmdshell because writing a c# app is not allowed.Bat file doesn't help because server names are passed as a comma seperated list.  Please let me know if you need any further info


The mapping of a Set onto the characteristic function is a bijection

Let $X$ be a Set. For all Subsets $ A \subset X$ the characteristic function of A is defined as:  \begin{align} \chi_A(x)= \begin{cases} 1 \iff x \in A \\ 0 \iff x \notin A \end{cases} \end{align} Let $\lbrace0,1\rbrace^X$ be the Set of functions $ X \longrightarrow \lbrace 0,1\rbrace  $. Further let $P(X)$ be the power set of $X$.  Show that the following function is a bijection: \begin{align} P(X) & \longrightarrow \lbrace 0,1\rbrace ^X \\ A & \longmapsto \chi_A  \end{align} I have struggled with this problem for a few days now and I believe one of my biggest issues is to create the desired set $\lbrace0,1\rbrace^X$.


$f:X\rightarrow Y$ is a closed map, $f^{-1}(\{ y\}) $ is compact $\forall y\in Y$ then $X$ is compact.

If $X$ and $Y$ are topological spaces, $Y$ is compact and $f:X\rightarrow Y$ is a closed map (meaning that $f(A) $ is closed for any closed subset $A$ of $X$) such that $f^{-1} (\{ y\}) =\{x\in X, f(x) =y\} $ is compact $\forall y\in Y$ then $X$ is compact. How do I prove this? Thank you in advance for your help.


What does the Kretschmann scalar really tell us about the geometry of spacetime?

The  is one of the measures of spacetime curvature. For flat (Minkowski) spacetime it is zero. The dimensions of the Kretschmann scalar are $[L]^{-4}$. What does that physically signify about the geometry of spacetime?


I traveled from Israel to Germany on September 5th and left on September 15th to go back to Israel, where I am now. I want to enter Germany again on December 7th.  I know the Schengen visa rule says you can stay up to 90 days, every 6 months from the date of entry but I left after 10 days and want to enter again after more than 3 months from the date of entry (but less than 6 months).    Can I do it?


I want to learn LaTex language so I can format and use that to compile a nice pdf with descriptive statistics using Knitr in RStudio. Any recommendation?


When two singular subjects are connected by "neither...nor", does it take a singular verb or plural verb? Which is more natural and acceptable?  Neither Mary nor Jane is / are beautiful.


Find the PDF of $U = {XY \over \sqrt{X^2+Y^2}}$ where $X, Y \sim N(0, 1)$ where X,Y are iid RV. Hence find the mean and variance of $U$.

The task is to find the PDF of $U = {XY \over \sqrt{X^2+Y^2}}$ where $X, Y \sim N(0, 1)$ where $X,Y$ are iid RV. I approached this question as first finding the joint distribution of $g_{UV}(u, v)$ where $V = Y$ and then calculate the marginal distribution of $g_U(u) = \int_{-\infty}^{\infty} g_{UV}(u, v) dv$. But the final step becomes so messy as follow $$ g_U(u)  = {1 \over 2\pi}    \int_{-\infty}^{\infty}         \exp\bigg(-\frac{v^3 + u^2v^2-u^2v+v}{2(v^2 - u^2)}\bigg)             \bigg(\frac{v}{\sqrt{v^2 - u^2}}                 - \frac{uv^2}{(v^2 - u^2)^{3/2}}\bigg) dv. $$ How can I proceed from here? Or is there a better or more efficient method to approach this question.


What is the best way to implement "remember me" for a website?

I want my website to have a checkbox that users can click so that they will not have to log in each time they visit my website. I know I will need to store a cookie on their computer to implement this, but what should be contained in that cookie?    Also, are there common mistakes to watch out for to keep this cookie from presenting a security vulnerability, which could be avoided while still giving the 'remember me' functionality?


Null Pointer Exception Error in my Switch Case

This is a simple program using Hash maps where it utilizes a ranking system for names for baby boys and girls from a file with name ex: "babynameranking2008.txt". I am receiving a null pointer exception in my switch case for my variable ranking,    The error is only occurring in the variable for each switch case for boy and girl in for example: "ranking=boys[index].get(name);". If I make ranking equal to 0 it removes the exception.  public class Lab08 {     @SuppressWarnings("unchecked")     private static Map<String, Integer>[] boys = new HashMap[10];     @SuppressWarnings("unchecked")     private static Map<String, Integer>[] girls = new HashMap[10];      public static void main(String[] args) throws IOException {         Scanner input = new Scanner(System.in);         String answer;         readNames(); // method to read the info from the files and add to our Map array                              // Get user input and continue until done          do {             System.out.print("ENter a year (2008-2017): ");             int year = input.nextInt();input.nextLine();             System.out.print("Boy or girl? ");             String sex = input.nextLine().toLowerCase();             System.out.print("ENter a name: ");             String name = input.nextLine();              sex = sex.toLowerCase();             int index = 0;             int ranking = 0;             switch (sex) {                 // display the output based on the sex (boy or girl)                 case "boy":                    index = year - 2008;                    ranking = boys[index].get(name);                    System.out.printf("The Boy named %s is ranked %d in %d \n",name,ranking,year);                                      break;                  case "girl":                    index=year-2008;                    ranking=girls[index].get(name);                    System.out.printf("The Boy named %s is ranked %d in %d \n",name,ranking,year);                    break;                  default:                    System.out.println("sex should be boy or girl");                    break;             }             //input.close();             System.out.print("Do you want check another name (yes or no)?");             answer = input.nextLine().toLowerCase();         } while (answer.equals("yes"));     } // end main      //read information from each file and add to appropriate Map array     public static void readNames() throws IOException {         String fixedName="babynameranking";         int year=2008;         String type=".txt";          File infile;         for(int i=0;i<10;++i) {             boys[i] = new HashMap<>();             girls[i] = new HashMap<>();                      }                         for(int i=0;i<=9;++i) {               // construct the file name             String filename = fixedName+Integer.toString(year)+type;// construct the file name ;             infile = new File(filename);              Scanner in = new Scanner(infile);             while(in.hasNext()) {                 // read info from the file and add to Map arrays                 int ranking=in.nextInt();                    String boyName=in.next();                    in.next();                     String girlName=in.next();                    in.next();                   //put in map                    boys[i].put(boyName, ranking);                    girls[i].put(girlName, ranking);              } // end while             in.close();              year=year+1;          } // end for loop     } // end readNames()   } // end Lab08


Java paint() method giving run-time error when calling class member variable function

I am working on a Java project that deals with projecting a grid to the user using the paint() method along with a JFrame and Canvas.  I have a class called Runner, which includes my main method.  Within Runner, I have the java paint() method.  I also have a public variable of type Player within the Runner class.  The problem arises when I try to call a public function of the Player instance variable. I get the following run-time error:    Can you not call other functions from inside the paint() method? The Java documentation didn't mention that that action would be bad, as far as I can tell with my limited Java understanding.  I will include some of my code below. I will do my best to only include pieces of the code that are relevant to the problem to make your job easier.  This statement is within my class Runner:  //Player public Player player;   Here is the code from the paint method:   public void paint(Graphics g) {     //(Code that draws grid from 2D array to screen)     // . . .      //Draw player     int playerX = 1 + (int)numRows/2;     int playerY = 1 + (int)numCols/2;      //CAUSE OF ERROR*******************     //Sets playerX and playerY     player.setPlayerX(playerX);     player.setPlayerY(playerY);     //*********************************     array[playerX][playerY] = 1; }   Here is the code from the class Player:  public class Player {  private int playerX; private int playerY; private int playerHealth;  //Constructor Player() {     playerHealth = 100; }  //Getters // . . .  //Setters public void setPlayerX(int x) {     playerX = x; }  public void setPlayerY(int y) {     playerY = y; } }   If more code is needed to diagnose the issue please let me know and I will happily provide it. Thank you so much for your time.


Gibbs free energy and it's physical significance

What is the physical significance of Gibbs free energy. I mean I can't correlate it with practical world?


Apparently radioactive decay cannot is entirely random (I'm just picking something that's currently accepted as random). However, since it's caused by something, if you had the means to do so, surely you could be able to successfully predict when radioactive decay in an atom will occur, since it has a cause?   I like to think of it like this: if the universe were to somehow be recreated with PRECISELY the same properties, down to the smallest level possible, that this universe had at its beginning, then wouldn't every play out the same- any I mean everything?


is using a FAB for multiple user actions and screens good practice?

I'm working on a gaming product where users can perform a wide variety of actions from rating, writing a review, adding to lists, log the game in their 'backlog' etc..  Each of those can lead to multiple further screens with more user actions so i worry that using a FAB isn't relevant anymore.  Should a FAB be kept to single unique action (write a review, Log etc.. )? and if so what other alternatives could there be without cluttering too much?    Thanks in advance!


Prove that a Boolean ring is a Bezout ring .  Please help me.


How to change wordpress login url without using .htaccess, should be a manual process, so example.com/login will not redirect to example.com/wp-login.php so example.com/login will be the login page?


In Egypt, I applied for the General Medical Council identity check and the visa was refused two times.  The first time, I was going as a visitor, but they said that I didn't show that I have sufficient funds to cover the cost of my travel. I did include a letter from my employer showing my and bank statement.  The second time, I asked my father to add some funds to my bank account and I included another bank statement with funds in US dollars where my salary is transferred.   I stated that my father will help me to cover the costs of my visit, noted that he had transferred money to me, and included his bank statement.    I was refused, saying that I must explain my own circumstances and my purpose of travel, and that my finances would not be sufficient. It was also noted that there was no evidence that my father was giving me the money.   My concern is that my GMC date expires in 45 days. Is there anything I can do?


how to remove this black shadow from around a transparent texture

i have a transparent material for blush but the problem when i deselect it i get a black shadow around it i don't know what the reason so how to remove this shadow in material mode ??


Why is "javascript:" prepended to onchange in this html code?

Recently I have seen the following HTML when viewing source code in Chrome:  <select class="menu_combo" onchange="javascript:myfunction()"> <!-- rest of code goes here -->   Why is the word javascript and a colon (:) added in front of myfunction()? I thought that onchange was a javascript event. If so, what is the need for this?


SQL Server High Availability mode When I failover the node Permissions are going away

I created an Availability group with 2 Servers. When I fail over from one node to another the permissions are going away. (I granted a SQL server login DBO permissions)  So what I did was I wanted the remap permissions script to be run every time AG-Role change alert happens If I run the Job manually after the role change permissions are working. But Job is not running automatically everytime role change happens. It is failing with below error message  Unable to access availability database 'TestDB' because the database replica is not in the PRIMARY or SECONDARY role. Connections to an availability database is permitted only when the database replica is in the PRIMARY or SECONDARY role. Try the operation again later. [SQLSTATE 42000] (Error 983).  The step failed.  Is there any better way to handle the permissions issue when switching nodes in HA? How to fix the above error?


What if you have a creature 1/5 and it attacks a 2/2 death creature does the 1/5 die or is deathtouch activated upon death


Null pointer exception error while using Hashmap

public void method(int a[], int len, int x) {     Map<Integer, Integer> map = new HashMap<Integer, Integer>();      for(int i=0;i<len;i++)     {         System.out.println(i);         int temp = x-a[i];         System.out.println(temp);         if(temp>=0 && map.get(temp) ==1)         {             System.out.println(temp+" "+a[i]);         }         else         {             map.put(a[i],1);         }     } }   java.lang.NullPointerException is occurring on line no. 9. How to remove this???


Can we continue to show the "Take a tour" banner after a user has created an account?

When you view a Stack Exchange site without being logged in, you see a friendly banner, prompting you to take a tour and understand the features of the site:    This links off to a high quality resource that can help new users understand how the site works. However, the moment a user signs up to the site, this banner disappears from immediate view and hides itself as a link under the help menu.  My proposal is to continue showing this banner until one of the following conditions are met;   The user gets the "Informed" badge The user reaches a set amount of reputation (250 or 500 should be sufficient) The user chooses to hide the banner   This should increase the exposure of the tour to new users, who are the people who need the tour, rather than hiding it the moment a user signs up.


Solving Diophantine equation $1/x^2+1/y^2=1/z^2$

How can we find positive integers solutions $(x,y,z)$, where $\gcd(x,y,z)=1$ for the equation: $$1/x^2+1/y^2=1/z^2$$  Can we conclude that $x$ and $y$ are not coprimes for it to have solution?


How can I downgrade from Audacity 2.2.0 to 2.1.3?

I'm using Lubuntu 17.04. I'd like to downgrade Audacity from 2.2.0 (too buggy) to 2.1.3 but am unsure how to do that.  Your help is much appreciated.


How can I change the email address for my logins in Stack Exchange?

I want to change the email address that I am using to sign in using the Stack Exchange. I tried editing and updating my email address on my profile and saving the changes to all my accounts. Then, I removed the Stack Exchange account from my logins and added it again. But, still it's using my old email address to sign in! Is there any direct way to change the email address for Stack Exchange Account?


$f_n(x) = x - x^n$ for $x\in [0,1]$. Does the sequence converge pointwise or uniformly on $[0,1]$?   We also have to prove why it is or isn't pointwise or uniformly convergent.   I have worked out that on $x\in[0,1)$, the limit as $n$ approaches infinity is $x$. And when $x=1$ the limit is $0$.   So this means its pointwise convergent right? But how do I prove this?  Also how on earth do I prove it is not uniformly convergent? (I'm just assuming it's not).


Can we use REST API to get all site collections in sharepoint tenant.? I don't want powershell script basically i want to bind all asite collections to a dropdown.  my code looks like bleow.


About a specific argument purporting to show $0.999\dots = 1.0$.

I have read the proofs about why $0.9999.... = 1$, which are satisfying. But I can't get the following argument out of my head.  Defining $0.9999....$ : Lets construct a non-terminating but recurring real number n such that all digits before decimal point are zero and all digits after decimal point are 9.  Comparing $1.0000$ with $0.99999...$  Digit at ones place in $1.0$ (i.e. 1) $\ne$ Digit at ones place in $0.99999$ (i.e. 0)  Digit at tenths place in $1.0$ (i.e. 0) $\ne$ Digit at tenths place in $0.99999$ (i.e. 9). And so on....  Hence, $1.0 =0.9999...$ does not fit with our original definition of $0.9999...$ Can you find the mistake in the argument (other than saying that in-fact $1.0 = 0.9999...$)? Am I using a incorrect way to define (or perhaps compare) a number (with another)? Please help me. I am new to analysis. Thanks.


When i put the command \pause on my beamer, the subsections are "white completely" (before appearing) while i want that they are "shaded" ! Do you have a solution for that ? Thanks in advance and sorry for my english


Add a time limit before you can vote on a post

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


java.lang.NullPointerException: Attempt to read from field 'java.lang.String com.example.g.Model.PersonalShopper.ps_name' on a null object reference

I don't quite sure what when wrong, but I have check the variable name is the same whether it is in a layout xml and the java class, but when I run the apps it give me error which said that   java.lang.NullPointerException: Attempt to read from field 'java.lang.String com.example.g.Model.Ps.ps_name' on a null object reference  I have declare the variable btw.   firebaseAuth = FirebaseAuth.getInstance();         currentUser = firebaseAuth.getCurrentUser();         psID = currentUser.getUid();         databaseReference = FirebaseDatabase.getInstance().getReference("PersonalShopper").child(firebaseAuth.getUid());          databaseReference.addValueEventListener(new ValueEventListener() {             @Override             public void onDataChange(@NonNull DataSnapshot dataSnapshot) {                  PersonalShopper ps = dataSnapshot.getValue(PersonalShopper.class);                 psname.setText(ps.ps_name);                 pspassword.setText(ps.ps_password);                 psemail.setText(ps.ps_email);              }       <TextView         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:text="Name"         android:textSize="13dp"/>      <EditText         android:id="@+id/psname"         android:layout_width="match_parent"         android:layout_height="wrap_content" />       <TextView         android:layout_marginTop="10dp"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:text="Password"         android:textSize="13dp"/>       <EditText         android:id="@+id/pspassword"         android:layout_width="match_parent"         android:layout_height="wrap_content" />       <TextView         android:layout_marginTop="10dp"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:text="Email"         android:textSize="13dp"/>      <TextView         android:id="@+id/psemail"         android:hint="email@gmail.com"         android:layout_width="match_parent"         android:layout_height="wrap_content" />


Read from text file and assign to separate variable name

My text file is like:     mr,John Abrahm,USA,30,M   Mr,Harry,UK,40,M   Mr,Jack,USA,50,M     I want to do like:  title=mr   name=John Abrahm   country=USA   age=30   gender=M   So far my code is like:  ifstream inputFile("text.txt"); string line; while (getline(inputFile, line)) {     istringstream ss(line);      string title;     string name;     string country;     char gender;      ss >> title>>nam>>age>>country>>gender;     cout <<gender<< endl; }


In TSQL, I am having difficulty getting Decimal(38,15) value to show 15 points after the decimal

In some calculations, I am expecting to receive a value out to 15 decimal places but I am only getting it out to 6 decimal places. In the example below, For @ProRata I am getting the value 0.8871340000000 when I expect 0.887134492110339. DECLARE @EligiblePurchase DECIMAL(38,15) = 0    ,@ProRata DECIMAL(38,15) = 0                 --Percent of total purchase    ,@Reduction DECIMAL(38,15) = 0    ,@Denominator DECIMAL(38,15) = 355302907.06  --Total amount across all purchases    ,@InitialValue DECIMAL(38,15) = 315201464.00 --Specific purchase  --Sometimes @Reduction will be a reduction % like 16.677777777777777, but in this case it's 0 SET @EligiblePurchase = @InitialValue * ((100.00 - @Reduction) / 100) SET @ProRata = @EligiblePurchase / @Denominator SELECT @ProRata  My google-fu is failing me. SqlServer is doing something I am not expecting. Thanks in advance!!


"Everything is a file" in the UNIX World.  Above sentence is famous. When I run echo "hello programmer" >> /dev/tty1 , I can watch the given string on TeleType 1  , ....  What and where is file per each socket? Suppose my friend connects to my PC, and its IP is h.h.h.h , how can I access the respective file? Is it possible?


Electrical panel indicator lights flickering

I'm wondering what the underlying mechanism of the flickering of the panel indicator lights is. Are there electronic oscillators of some kind in there?


Is there any command to minimize windows?

I work all-around in Ubuntu 14.04 with many programs opened, among them the terminal. It would be very useful to me a command to minimize and maximize windows.I have searched in the web using various languages for my search, but I've found anything about a command like that. It seems to me impossible that so basic commands do not exist yet.


Calculating prediction accuracy on ordered categorical data?

I am using different regression models that can predict an ordered categorical variable from a metric variable. For example, I want to regress Happiness (in 1-5 ratings) on Money (a metric variable) using  regression:  $Happiness \sim log(Dollars)$  But I came across a fundamental question: How can I compare the accuracy of different models in predicting ordered categorical data?  If I do an ordered probit regression, cross-validating model prediction accuracy with 80% data for training and 20% for validation, I can compare the probability distribution of real data with what probit provided, but in this way, the order is ignored, and for example if it predicts every rating $Y$ with the opposite rating $(Y+4)\%5+1$ (exactly opposite), the result doesn't change!  So, what should I do? I found , but nothing quantitative.    Figure 1. Fictitious report for a probit regression, based on


I read this sentence in a book.  However, it does not solve specific problems relating to a business or a profession.  I, myself, often use related to instead of relating to. Is there any difference?


I met a method in C#  int Func(Contact @group) {     group.Name = ""; }   What dose the '@' mean ?


How to reduce notoriety in the frontier?

In some parts of the wilderness, I have a notoriety of 1, and in other parts I don't have notoriety at all. How can I reduce it?


I get struggled in choosing to put or not to put a preposition at the end of the sentence. I feel like it's optionally, but I'm not sure, so I'm asking. The question is, should I put prepositions in these sentences and why?  What am I guilty of? It's nothing compared to what I could be asking for. Whom are you talking to?  It seems a big theme (prepositions at the end or the start of a sentence), that is why I would like to thank you even if you explain to me at least these cases.


To find $|Aut(K_{4})| = |Aut(\mathbb{Z}_{2} \times \mathbb{Z}_{2})|$

I'm in the process of trying to find $|Aut(K_{4})|$, where $K_{4}$ is the Klein-4 group, isomorphic to $\mathbb{Z}_{2} \times \mathbb{Z}_{2}$. $K_{4} = \{ id, (12)(34), (13)(24), (14)(23)\}$ is a subgroup of $S_{4}$, the group of permutations of $4$ objects.  Right now, I have already established that $K_{4} \simeq \mathbb{Z}_{2} \times \mathbb{Z}_{2}$ and have proven that if $G,H$ groups such that $G \simeq H$, then $Aut(G) \simeq Aut(H)$.   So, I am at the point where I am ready to check which of the permuations in $K_{4}$ are homorphisms, and I am unsure of how to do that.  For example, for the permuation $(12)(34) = \begin{pmatrix} 1 & 2 & 3 & 4 \\ 2 & 1 & 4 & 3 \end{pmatrix}$, I want to show that the map $f: \begin{pmatrix}1 & 2 & 3 & 4 \end{pmatrix} \mapsto \begin{pmatrix} 2 & 1 & 4 & 3 \end{pmatrix} $ is a homomorphism, but I am not sure what the appropriate group operations to use are.  Until now, I have only ever calculated $Aut$ of $\mathbb{Z}_{n}$, where the operation I would use was addition modulo $m$, but I've never dealt with a case where the underlying group was a permutation group and not an additive group. Could somebody please demonstrate for me how to show that  $f: \begin{pmatrix}1 & 2 & 3 & 4\end{pmatrix} \mapsto \begin{pmatrix} 2 & 1 & 4 & 3 \end{pmatrix} $ meets the criteria for being homomorphic? If I see one worked out example, I can probably figure out how to do the rest on my own, but as it is right now, I am at a loss.  Thank you.


I have a Toshiba laptop. The charger of my laptop says that the output is from 110-240 V.    Can I plug my charger to a 220 V without damaging it and do I still need an adapter?    I'm too scared to try it to plug it in a 220 V. I'm using 110 V all these times though.


If I XOR the output from 2 CSPRNG will the result be better (more random) than the output from either one? Assume one of the PRNG is biased.


Warlock Hex Warrior and Improved Pact Weapon

Hex Warrior specifies you can use Charisma for attack and damage with any non two-handed property weapon, which would eliminate longbows.  But would taking Improved Pact Weapon allow for longbow?