I'm trying to understand why I'm not only getting the func name back when running the code. def smart_divide(func):     def inner(a, b):         print("I am going to", func, a, "and", b)         if b == 0:             print("Cannot", func, "by 0")             return          return func(a, b)     return inner  a = int(input("What is a:")) b = int(input("What is b:"))  @smart_divide def divide(a, b):    print(a/b)      divide(a,b)  @smart_divide def multiply(a, b):     print(a*b)  multiply(a, b)   The result of this is I am going to <function divide at 0x0325F268> 4 and 2 2.0 I am going to <function multiply at 0x0325F1D8> 4 and 2 8  I read that you had to call the function with () instead of using print but I'm still getting this.

In Python, how do I get a function name as a string, without calling the function?  def my_function():     pass  print get_function_name_as_string(my_function) # my_function is not in quotes   should output "my_function".  Is such function available in Python? If not, any ideas on how to implement get_function_name_as_string, in Python?


Captain America's shield is stated to be made at least partially of Vibranium, a material that is "vibration proof." Logically, this would mean that it dissipates all kinetic energy. However, in comics and movies, he frequently throws the shield and it bounces off of various objects (trees, vehicles, people). If the shield dissipates all vibration, shouldn't it simply impact its first target and then drop, having lost all its kinetic energy and therefore becoming unable to collide elastically?

Captain America is able to throw his circular shield and have it return it to him like a boomerang.  Is this even possible according to physics (especially considering the ranges at which he uses the shield)?


I recently wrote the sentence,     But when you see Iesu, it can either be vocative, dative, genitive, or ablative.    In it, I use "either" to coordinate four different alternatives: vocative, dative, genitive, or ablative. Is this grammatically correct? The Merriam-Webster dictionary supports this use of either, having this to say about it:     3  (conjunction)      —used as a function word before two or more coordinate words, phrases, or clauses joined usually by or to indicate that what immediately follows is the first of two or more alternatives          can be used either as a guest room or as an office      It seems to be the case that, as an adjective or pronoun, "either" implies that there are only two alternatives. But as a conjunction, it can join many alternatives. Is my understanding correct? Or has this latter function only come about through consistent misuse of the word?

Does “either . . . or” apply to only two options?   For example, can I say, “It can provide either 100, 150, or 400 amps of power”? Or should it just be “It can provide 100, 150, or 400 amps of power”?


$f:\Bbb R \to \Bbb R$  Showing $f(x)=\left\{\begin{array}{cc} 3x,&x\in\Bbb Q\\-3x,&x\in \Bbb I\end{array}\right.$    I want to show that $f(x)$ is discontinuous for all $x\ne0$ using $\epsilon - \delta$    So I want to show:  $$\exists \epsilon \gt 0 , \forall \delta \gt 0| |x-l|\lt \delta, |f(x)-f(l)|\gt \epsilon$$  Now I believe I should pin this to four cases: 1)$x,l\in \Bbb Q$,$\quad$2)$x\in \Bbb Q,l\in\Bbb I$,$\quad$3)$l\in \Bbb Q,x\in \Bbb I$,$\quad$4)$x,l\in \Bbb I$  So case $1)$:  $$|x-l|\lt \delta, |2x-2l|\gt \epsilon$$ $$|x-l|\lt\delta,2|x-l|\gt\epsilon$$ $$\implies 3\delta \gt |xl| \gt \epsilon$$    Now I have no idea what to do for case 1 and I haven't attempted other cases yet since I assume a similar problem will occur.  I put my delta after my epsilon, so I can't choose an epsilon relying on my delta, hence I am confused.

How can I prove that the function  $$   f(x) = \left\{\begin{array}{l l}     x &\text{if }x \in \mathbb{Q} \\     -x & \text{if } x \notin \mathbb{Q}    \end{array} \right. $$ is discontinuous for $x \neq 0$, using $\epsilon$'s and $\delta$'s?  I see that is truth. But I cannot prove using only $\epsilon$'s and $\delta$'s.


When one runs an OLS regression, one often prefers to look at $R^2$ rather than the mean squared error, though both measure goodness of fit. $R^2$ is dimensionless and has some advantageous properties: for example, it's related to other important quantities such as correlation, and it behaves nicely if you scale or translate your data.  When I run an LAD regression, I can look at the sum of absolute errors or the mean absolute error or something. But is there a different statistic, something like $R^2$, that people tend to look at instead?

I know that $R^2$  is for the least square regression. Is there an analogous measure of fit to $R^2$ in LAD (Least Absolute Deviations) regression?  Here I am concerned with the "fitting quality".


Aug 22 was my last day at a job that paid $76,000 / yr. After that that job is supposed to pay me $400 / wk for consulting for $1,600 / month. At the new job (which I started on Aug 26) I'm making $80,000 / yr.  On the W4 () I filled out there was a section for "additional amount, if any, you want withheld from each paycheck". I'm thinking I could use this section to withhold taxes on the consulting money I'm getting for as long as I'm getting it. It's just not clear to me how much I need to withhold.  Any ideas?  Thanks!

August 22 was my last day at a job that paid $76,000 / yr. Afterward, that job is supposed to pay me $400 / wk for consulting for $1,600 / month. At the new job (which I started on Aug 26) I'm making $80,000 / yr.  On the  I filled out, there was a section for "additional amount, if any, you want withheld from each paycheck". I'm thinking I could use this section to withhold taxes on the consulting money I'm getting for as long as I'm getting it. It's just not clear to me how much I need to withhold.  Any ideas?  Thanks!


I believe this question to be on topic for this site, I want it to be more factual based than opinion, another similar question is . If its not feel free to close it.  I am looking at buying an older (10 yrs old) Giant NRS 1 MTB, it has very good  for the frame especially, but other parts have been replaced (it has a new front wheel, cables etc.). Should I be worried that other parts will be about to fall off, or are replacements a good thing?  EDIT: Ok so the wheel was replaced due to hitting a stump at night time, the cables were getting old, it has had plenty of action, but was well looked after. The rear sus has a tiny bit of play in the top bush (not enough to realise when riding)  It also has a leaking front fork, not a big issue (probably new seal, or not worry), but makes me wonder if it is worth it, will cost around $400 US ish, do you think it will have other issues?  cheers in advance!

I'm moving to a city where I can ride a bicycle to the grocery store, coffee shop etc. I want to purchase a decent used bicycle. I'm leaning towards a bike that's in between a "10-speed" or road-bike and a mountain bike. What should I look for when choosing a particular bike?  I've never purchased a used bicycle. Other than classifieds (e.g., Craigslist), what types of places can I look? What other issues should I consider, such as size, visual appearance, leaking tires, etc.? How can I make sure it's not stolen?


Let $A$ be a integral domain, $b\in A$ a nonzero element and $S=\{b^n\mid n \in \mathbb{N}\cup\{0\}\}$ Prove: $S^{-1}A \cong A[x]/(bX-1)$ For this we define the homomorphism $\varphi: X\longrightarrow1/b$ and prove that $\ker\varphi=(bX-1)$ Since $\varphi(bX-1)=b·1/b-1=0$ we have that $\ker\varphi \supseteq(bX-1)$ Now we have to see that any $f\in \ker\varphi$ is in the ideal $(bX-1)$, the obvious way to approach this is to divide $f$ by $bX-1$, but we can't apply the division algorithm directly since the main coefficient of $bX-1$ is not necessarily $1$. Any help to prove $\ker\varphi \subseteq(bX-1)$?

Let $R$ be a commutative ring and $A=\{1,a,a^2,\dots\}$ for some $a\in R$. Prove that $A^{-1}R$ is isomorphic to $R[T]/(aT-1)$.    I guess I'm meant to find a surjective homomorphism between $A^{-1}R$ and $R[T]$ and then use first isomorphism theorem. What homomorphism should I use?


How can i use the selected item from combo box in if statement (the combo box value is converted to string), the java compiler shows an incompatible type error , saying string cannot be converted to Boolean. Please help :) Thank You in advance.  Code:  private void btnSignInActionPerformed(java.awt.event.ActionEvent evt) {                                               String userid = txtUserID.getText();     String username = txtUserName.getText();     String usertype = cmboUserType.getSelectedItem().toString();      DBConnector dbcon = new DBConnector();     dbcon.connect();       if(dbcon.isUserExists(userid, username,usertype)){         if (usertype = "Customer"){            msg.showMessageDialog(             this,             "Login Successful",             "Login Status",             1);         OrganicFoods.Customer cust = new OrganicFoods.Customer();         cust.setVisible(true);          }         else if ( usertype = "StoreAdmin"){            msg.showMessageDialog(             this,             "Login Successful",             "Login Status",             1);          OrganicFoods.StoreAdmin S1 = new OrganicFoods.StoreAdmin();         S1.setVisible(true);          }          else if ( usertype = "Collection_Delivery_Officer"){            msg.showMessageDialog(             this,             "Login Successful",             "Login Status",             1);          OrganicFoods.Collection_Delivery_Officer cdo1 = new OrganicFoods.Collection_Delivery_Officer();         cdo1.setVisible(true);          }     }else{         msg.showMessageDialog(             this,             "Login Failure",             "Login Status",             0);      } }

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I am building a website with a relative footer (first picture) but as you can see the footer is not placed at the bottom when there is not enough content on the page.  I could resolve it with position absolute but then the content of the page is hidden behind the footer (picture 2).  My question   How can I put the footer on the bottom of the page but still push it down when there is more content added to the page.       Thank you for the help.

I have a simple 2-column layout with a footer that clears both the right and left div in my markup.  My problem is that I can't get the footer to stay at the bottom of the page in all browsers.  It works if the content pushes the footer down, but that's not always the case.


Here is the segment of my code The add method functions as an arrayList add method to add a value to a specified index. The size variable increases when declaring this method in the runner, but displaying the new list results in a NullPointException. public void add(int index, E value) {         ListNode<E> newNode = new ListNode <E>(value);         ListNode <E> tempNode = root;         if(index==0 && root==null) {             root.setPrevious(newNode);             root = root.previous;         }          if(index == size) {             end.setNext(newNode);             end = end.next;         }          if(index>0 && index<size) {             for (int i = 0; i < index-1 ; i++) {                 tempNode = tempNode.next;             }             tempNode.next = newNode;         }         size++;     }    public String toString() {         String output = "";         ListNode<E> tempNode = root;         for(int i=0 ; i<size ; i++) {             output+=tempNode.getValue();//figure out why tempNode can be null             if(i!=size-1)                 output+=", ";             tempNode = tempNode.next;         }         return output;     }

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


For my website www.trickwarehouse.com i have created one post on keyloggers. When i search in google that what are keyloggers? then my website's post position was 16 but after 1 hour, when i checked once again then BOOOM!!!! nothing found for my website within top 100 results. and also other keywords which was in top 100 results was shifted behind by 2-3 results...... Why it is happening?Any answers?

What are the best ways to improve a site's position in the Google search results?


I'm trying to install  on my MacBook. My operating system is macOS Mojave 10.14.5. When I try to install the software, I receive the following unidentified developer message:    But when I go to the System Preferences, I can't find any options to overrule it.    I was wondering why is this the case and how to fix it.

I know to secure safety it is now not allowed anymore to open apps that were not downloaded from the mac app store.  But surely there is a workaround for this to open an app that you know is 'good' but just isn't in the app store. Preferably allowing only that app and not allowing all downloaded apps to be opened.    How do I open an app that is not downloaded from the app store in mountain lion?


Update: Comments made regarding how it is not a duplicate - fundamental question.  Pre-Info: I am a game design specialized generalist with semi-practical software engineering skills in essence yet due hard times we're going through I am the one who gets it done (set-up and passed all security, w3 standard tests, programmed the site and set-up the dedicated server, compressed etc. but managing high-volume of request is very serious).  Actuals: We have a fan-comics web-site that will receive high amount of traffic for a single day (presumably 25K - at max. 250K unique user, timing unclear). Currently using a single IP - dedicated server:  Intel Xeon E3-1230 x1 Cores: 4x 3.2 GHz  RAM: 16 GB DDR3 ECC HDDs: 2x 1TB SATA 7.2k RPM Conn: 100 Mbit Unmetered Uplink based France.   Dedicated server is running Ubuntu 14, Apache, PHP and MySQL for Wordpress. Average data per page is 2 MB (about 30-40 requests per page) and whole experience would sum about 10 MB per user. Apache should be capable to run ~500 request delivered p/s under current set-up (yet I am not sure of real results, it may be way off the charts / due network limitation, it'll probably be 100-150 concurrents to provide the 'okay' experience without CDN).  My question is: What if I buy and set-up a CDN service and cached all the assets; how server-sided processes are going to work? There are no dynamic requests running on the server other than Contact Form and majority of the web-site is static yet:   1- I'd like to learn in under which conditions CDN will require server to make queries or render outputs?  2- And let's say there are 20.000 concurrent request to CDN, all static assets served through it, what processing power or the capacity would my dedicated server require?  3- Alternatively: How would a queue work? (keeps track how many active & serves to client as resource become available)  I have done my research even it's not the very extensive one; and I am not quite sure if I asked the correct questions yet I'd very thankful for your support.

This is a  about  Related:      I have a question regarding capacity planning. Can the Server Fault community please help with the following:   What kind of server do I need to handle some number of users? How many users can a server with some specifications handle? Will some server configuration be fast enough for my use case? I'm building a social networking site: what kind of hardware do I need? How much bandwidth do I need for some project? How much bandwidth will some number of users use in some application?


I am trying to assign numbers randomly. I understand that Math.random() only goes between 0 and 1, and tried to multiply it by 10, and it still does not show any random numbers:   0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0 0   the code:  public static void main(String[] args) {      int[][] mdArray = new int[5][5];      for(int i = 0; i<mdArray.length; i++){         for(int j = 0; j<mdArray[i].length; j++) {             mdArray[i][j] = (int)Math.random()*10;             System.out.print(mdArray[i][j] + " ");         }         System.out.println("");     } }

How do I generate a random int value in a specific range? I have tried the following, but those do not work: Attempt 1: randomNum = minimum + (int)(Math.random() * maximum);  Bug: randomNum can be bigger than maximum. Attempt 2: Random rn = new Random(); int n = maximum - minimum + 1; int i = rn.nextInt() % n; randomNum =  minimum + i;  Bug: randomNum can be smaller than minimum.


I'm trying to determine the number of combinations of $N$ letters from an alphabet of $N$. For instance for $N = 2$, with alphabet $(A, B)$, I can obtain $AA$, $AB$ and $BB$, $BA$ and $AB$ are the same combination so they only count for one. For $N = 3$, with alphabet $(A, B, C)$, the result I obtain is $10$. I have a procedure starting from the number of partitions I can get for $N$, summing the combinations $C(N,e)$ where $e$ is the number of elements in the partition, and multiplying each combination by the factorial of the different arrangements in the partition. However, I can't find a more general formula, if  there is any.    EDIT: To further illustrate, here is the case for N = 3. The three letters are taken out of the set $(A,B,C)$, which gives the following combinations: $AAA$, $BBB$, $CCC$, $AAB$, $AAC$, $BBA$, $BBC$, $CCA$, $CCB$, $ABC$.

The number of different ways to choose $k$ out of $n$ unique items:   Without repetition and without order-significance: $\binom{n}{k}=\frac{n!}{k!(n-k)!}$ Without repetition and with order-significance: $\binom{n}{k}\times k!=\frac{n!}{(n-k)!}$ With repetition and with order-significance: $n^k$ With repetition and without order-significance: $?$   Thank you!


I'm filling out my visa application and my understanding is that I should ensure the list of hotels on my application, so that it matches what's on my tourist invitation. I got Moscow and Irkutsk filled out fine, and TRANSSIB showed up on the list of cities, so I entered that, but the invitation also includes the train as a "hotel". Anyone know how I should enter it, since both address and phone number are mandatory fields that aren't going to exist (the invitation doesn't give anything to enter for those fields either)? I'm specifically referring to the Do you plan to stay anywhere (hotel, individual) during your stay in Russia? section, which then asks for the name, address, and phone number of each.

I'm planning on taking the trans-Siberian / trans-Mongolian from Moscow to Beijing via Ulaan Bataar next year and I'd like some advice on how best to organise the visa situation.   I'm a British citizen, my partner is Swedish. We'll need visas for Russia, China and Mongolia. Seeing as you can only book the train tickets like 3 months in advance and you need to get all the visas together in that time as well, the process seems likely to be a bit complicated. Especially if you end up getting declined for a visa.  What is the best process or method for obtaining the visas (in which country order) and is there any kind of trustworthy service that will do it for me? If I go through a service, what happens if one of my visas is declined?


I need more space on my root partition running Ubuntu 17 (using Xfce session). I do have a lot of unallocated space BEFORE. However, when I try to resize root partition - /dev/sdb2 , I can't add/remove a MiB...  Is this even possible?   If so, can it somehow be done from the live system or do I have to use live CD/USB?    There is really just Ubuntu and Xcfe session, LUBUNTU_SYSTEM is just an old label :)

Till today I was using ubuntu 13.04 in my windows7/ubuntu dual boot. Just now I have upgraded to ubuntu 14.04. My software updater showed an updates available message. I proceeded with  Install Now . Soon I got the following window.    Then I tried sudo apt-get clean as recommended. Nothing happened! Not even a window opened. Teach me deleting the temporary packages.   Deleting temporary files may not be highly helpful in case of further updates and installs for I don't have too much space left in my /. I wanna extend my / partition with the help of the unallocated space in my HD. The following is my Gparted window.       I got an answer . But it wasn't useful for me. I had two choices. But the answer wasn't working for both my chioces.  Choice 1: I may use the 4.25 GiB unallocated space to extend my /dev/sda10. To do so, I must need to move my linux-swap partition. But my Resize/Move option is disabled for the linux-swap partition. Choice 1 failed!   Choice 2: I may use the 14.35 GiB unallocated space instead. In this case I must move more than one partition. /dev/sda4  partition is the first on the list. Even that partition has the same problem. Resize/Move option is disabled. Choice 2 failed!  I am out of choices now.  What shall I do? Help me to extend my / with Gparted.


Good morning! I have a document (math operations) made in Overleaf and I need it as a Wordpress post. Does anyone know if it is possible to perform some sort of conversion with a minimum number of errors? Some tools, anything...  Edited by Paulo: I took the liberty of rewording the question a bit in order to make it clearer, and translated the title as well. The original question was written in Portuguese and can be seen by browsing the edit history.

I have some documents in LyX/Latex and I want them as a wordpress post. I have tried converting latex to HTML (with latex2html) and afterwards, pasting that code in the wordpress editor but everything looks ugly. Do you know a better approach?


I was reviewing the close votes and while reviewing a particular question I opened the question in other tab to read in detail.  From the review queue I decided to leave the question Open but then in the tab where the same question was opened I was able to cast a close vote too.  Is it a valid behavior? If I decide to close from review queue and then use tab to close again it says you have already close voted the question, but does not work with Leave Open vote

When reviewing on SO, I accidentally pushed the "Leave Open" button on a post that clearly should've been closed. I pushed the back button and saw that in the review panel my vote to keep open had been locked and it said:     PhpMyCoder voted to leave open 1 minute ago   So I clicked on the question heading to go to its page and I clicked the close link on the question page and voted to close for the relevant reason. However, when I returned to the review page (and did a hard refresh) it still said:     PhpMyCoder voted to leave open 2 minutes ago   Is it possible to vote to leave open and vote to close at the same time? I assume not. In which case, I'd say this is a bug because it should've updated to say:     OtherUser and PhpMyCoder voted to close 2 minutes ago


I use the WP native function wp_enqueue_script() for all my JavaScripts loading both in WP front and back-end so it can handle duplicated calls to the same script and so on.  One of the issues is that others programmers don't use this function and load their scripts directly from their code, which causes jQuery or jQuery-UI being loaded twice, leading to a bunch of errors.  The other issue is that code not owned by my triggers an error and stops the execution of the JavaScript beyond this point.  EDIT:  In short:   A javascript error occurs in code not owned by me. My code don't executes due to that f*%@ error. I want that my code bypass that error and still executes.   There is a way to handle these issues?

In plugin development, what is the best practice to prevent jQuery component collision on the front end?  For instance, let's say I include the jQuery Apprise dialog in a plugin that loads this on the front-end for something, yet another plugin may do the same. Because this gets loaded and declared twice, or perhaps one is forked and customized while mine is not, we get Javascript errors on the frontend (I assume).  (Note that I'm doing the best practice of using the wp_register_script() and wp_enqueue_script() strategy via a wp_head() action event in order to load a jQuery component on the frontend.)


declare @id int set @id = 1754 select  (JSON_VALUE(cast(ad.data_map as varchar(max)),'$.dataMap."1754".value')) CorrespondanceNumber, (JSON_VALUE(cast(ad.data_map as varchar(max)),'$.dataMap.***"'+cast(@id as varchar)+'"***.value')) Agency, (JSON_VALUE(cast(ad.data_map as varchar(max)),'$.dataMap."1754".value')) Protocal from actions_new a left join action_data ad on ad.id_ref = a.id where baid = 32 and displayrequestid < 100;   Its working with sql server 2017 but error showing in sql server 2016.     Error : Msg 13610, Level 16, State 1, Line 3 The argument 2 of the   "JSON_VALUE or JSON_QUERY" must be a string literal. Problem in   converting INT to vachar "'+cast(@id as varchar)+'"

I am getting error:     The argument 2 of the "JSON_VALUE or JSON_QUERY" must be a string literal   ...while trying to pass variable as parameter to JSON_QUERY function. Please help me to resolve it.  DECLARE @cnt INT = 1; DECLARE @cnt_total INT = 1; DECLARE @json NVARCHAR(MAX); DECLARE @json1 NVARCHAR(MAX); declare @str  VARCHAR(200);  WHILE @cnt <= 10 BEGIN     set @str = '$.Seasons[0].Products['+convert(varchar,@cnt)+'].ProductChannels';     set @str = char(39) +@str+ char(39);     PRINT @STR     select @json = json_query(jfile,@STR) from Import.tstjson; --MORE CODE         SET @cnt = @cnt + 1; END   Sample data:  {   "Seasons": [     {       "Season": "12321231",       "Products": [         {           "ProductId": "211",           "ProductChannels": [             {               "ChannelId": 1,               "WeekQuantities": []             }           ],           "ccc": 3,           "Tttt": 4         }       ]     }   ] }


I am trying to find a general derivative for the function: $f(x)=x^{x^{x^{...^{x}}}}$however to do that I must find $f^{\prime }$ and $f^{\prime \prime}$...etc. I am now trying to write down a general expression for $f^{\prime \prime}$ and I have stumble opon the series in the picture below, I wonder, do anyone have an idea of what sort of expantion it migth be ? I have tried breaking it down into three different sums, but I wasn't very successful!  EDIT  So since this post has gotten some attention and the title has been change I will tell you what I am on about, although I already have a post just for the question in the title from before. I am as I said earlier trying to find a general derivative for the function $f(x)=x^{x^{x^{...^{x}}}}$ where $n$ is an arbitrary number, natural number and greater or equal to 2. I have already made success when I tried to find the first derivative, and I have also found some interesting pattern emerge when the derivatives as well as n incresses. But my question here was if anyone knew what this expation might be or look similar to be, since I have yet to be lernt series etc. I did not know that the question needed such background since it's straight a forward question.

I stumbled upon this very peculiar function last summer, namely: $f(x)=x^{x^{x^{...^{x}}}}$, where there is a number $n$ of $x$'s in the exponent, I tried to find the derivative for the function and I was successful, it turned out not to be the most elegant formula but it worked. (Firstly, I invented a new notation, namely, a function such as $f(x)$ we can write it as the following: $f(x) =x^{\langle x \vert n\rangle}$ where $x$ is the exponent that is getting "powered" up $n$ times.) The formula I obtained by pattern matching was: $$f^{\prime}(x)=x^{\langle x \vert n\rangle +\langle x \vert n-1\rangle -1}\left[1+\prod_{i=0}^{n-2}x^{\langle x \vert i\rangle}\cdot \ln(x)^n+\sum_{j=1}^{n-1}\prod_{k=n-1-j}^{n-2}x^{\langle x \vert k\rangle}\cdot \ln(x)^j\right]\tag{$n\geqslant 2$}.$$ I know this looks like a mad mess and I am aware that people  have done it more elegantely, but now for the question. This is only the first derivative of the function, is there a way, or rather is there a general derivative i.e a $n^{th}$ derivative of this function?   Update: December 23th  I have tried to approach the problem myself since I asked the question and I have not gotten to a stage to say if it is impossible or possible to do, however I think I am on the right track. At first, I thought of distributing the factor $x^{\langle x \vert n \rangle +\langle x \vert n-1 \rangle -1}$ to all the terms in the parentheses, but I quickly realized I had to deal with at least derivatives of triple products. Now I have come to realize that the easiest way is to differentiate the function just as it is and get a normal product and thus I must use the following formula: $$(f \cdot g)^{(n)}=\sum_{k=0}^{n}{n\choose k}f^{(k)}\cdot g^{(n-k)}$$ where $f =x^{\langle x \vert n \rangle +\langle x \vert n-1 \rangle -1}$ and $g=1+\prod_{i=0}^{n-2}x^{\langle x \vert i\rangle}\cdot \ln(x)^n+\sum_{j=1}^{n-1}\prod_{k=n-1-j}^{n-2}x^{\langle x \vert k\rangle}\cdot \ln(x)^j$. Since $k$ and $n-k$ are arbitrary numbers this leads us to find the general derivative for $f$ and $g$, this is where I am right now. (I do realize that I am trying to find the $n^{th}$ derivative of the first derivative but that is easily fixed later). Please come with suggestions on how to tackle this problem.   Update: December 24th  I have made progress with the help of Maple 17, namely, I have found a repeating pattern in at least a part of the general derivative, but there is still a part of it I cannot yet explain. Nonetheless, I present to you the part of the general derivative I have found: $$D_x^{\xi}f(x) = x^{\langle x \vert n\rangle +\langle x \vert n-1\rangle -\xi} \Big[(-1)^{\xi}\cdot\xi! +O(x)\Big]$$  I renamed the degree of the derivative as $\xi$ since $n$ is taken for the number of $x$s. The $O(x)$ is the (perhaps) series which I am currently working on finding, I do think I am on the right track though. The approach above with the product rule turned out to be less successful.


I am building a class library (dll) in C# which calls a webservice.  This will be consumed by different applications.     However, all these applications have to copy the "bindings" & "client" sections of the libraries app.config to the applications app.config for it to work. Otherwise the application throws an exception at runtime        {"Could not find default endpoint element that references contract   'VS.MyObj' in the ServiceModel client configuration section. This   might be because no configuration file was found for your application,   or because no endpoint element matching this contract could be found   in the client element."}   FYI - My class library is - MyNS.MyClass. The Library has a Service Reference to a Webservice (added through Add Service Reference) - the Service Reference shows up as MyNS.VS in the Project. The class library is MyNS.dll. MyClass has a static method myStaticFunc which calls the Web Service.     Is there a way to call the Webservice in the class library in some way so that this app.config change in the calling application is not necessary. Or some other workaround.    The owner of one of the calling applications says that he does not have an app.config in his application.

I'm in a ASP.NET project where I need to give several parameters to the administrator that is going to install the website, like:  AllowUserToChangePanelLayout AllowUserToDeleteCompany   etc...  My question is, will be a good thing to add this into the web.config file, using my own configSession or add as a profile varibles? or should I create a XML file for this?  What do you do and what are the cons and favs?  I originally thought about web.config but I then realized that I should mess up with Website configurations and my own web app configuration and that I should create a different file, them I read  and now I'm on this place... should I do this or that?


I have to do a backup of a (heavy) PostgreSQL database in Ubuntu Server and I want to make sure that I don't have any fails.  The command is:   pg_dump database_name -h localhost -p port_number >> backup_file.sql   What do I have to add to this command to get an error report (if there is any error) in a specific location?

While using nohup to put a command to run in background some of content appear in terminal.  cp: error reading ‘/mnt/tt/file.txt’: Input/output error cp: failed to extend ‘/mnt/tt/file.txt’: Input/output error   I want to save that content to a file.


The ridge regression estimate is given by $$\beta^{*}=(X'X+kI)^{-1}X'y, k≥0,$$ where $X$ is the feature matrix. The original paper, , states that the eigenvalues, $\lambda_i$, of $X'X$ are related to eigenvalues, $\xi_i$, of $W = (X'X+kI)^{-1}$ as $\xi_i=1/(k+\lambda_i)$. This expression follows from solving the characteristic equation $|W - \xi_iI|=0$. I can only imagine using cofactor representation of the determinant. However, the inverse in $W$ complicates matters. How exactly does one solve this characteristic equation?

I have understood how ridge regression shrinks coefficients towards zero geometrically. Moreover I know how to prove that in the special "Orthonormal Case," but I am confused how that works in the general case via "Spectral decomposition."


I started using Windows 7 again to play some of my games I had been missing and I have to say I've been relieved to be reintroduced to the standard installation area Program Files.   From what I've noticed on almost every Linux distribution there is like 5 different areas where games/programs or other odds and ends end up. When you install something, I feel as though you pretty much have to guess where it installed at, which honestly don't make any sense to me.   So my question is, why does it appear as though there is no standard on Linux/Ubuntu? I'm not saying it's a bad thing. I just want to understand the reasons behind it.

Under Windows, most applications and application data are stored in a special directory known as C:\Program Files (and occasionally C:\Program Files (x86)). What is the Ubuntu/Linux equivalent to this path? Is there even one?


Three points are chosen at random on a circle. What is the probability that they are on the same semi circle?  If I have two portions $x$ and $y$, then $x+y= \pi r$...if the projected angles are $c_1$ and $c_2$. then it will imply that $c_1+c_2=\pi$...I have assumed uniform distribtuion so that $f(c_1)=\frac{\pi}{2}$...to calculate $P(c_1+c_2= \pi)$ I have integrated $c_2$ from $0$ to $\pi-c_1$ and $c_1$ from $0$ to $\pi$..but not arriving at the answer of $\frac 3 4$

Choose n points randomly from a circle, how to calculate the probability that all the points are in one semicircle? Any hint is appreciated.


I'm using jasperreports6.11.0 and commons-collections4-4.4. When i run the application im getting this error  java.lang.NoClassDefFoundError: org/apache/commons/collections4/map/ReferenceMap    I have library in classpath and im running the application through batch and I also included it in the classpath in  batchfile.  I have tried various common collection versions (4.0, 4.1, 4.2, 4.3, 4.4, 3.2.2) and error still exists

I am getting a NoClassDefFoundError when I run my Java application.  What is typically the cause of this?


We have to determine as a function of $n$, the number of possible values for $\det(A)$ given that $A$ is an $n\times n$ real matrix with $A^3-A^2-3A+2I=0$.  I think the solution is just to notice that this polynomial has one real root $a$ and two complex roots $b,\overline b$. Clearly all of the complex roots of $A$ must be $0,a,b$ or $\overline b$. Since the determinant is the product of the complex roots with multiplicity we just have to find all the suitable combinations for the eigenvalue's multiplicities.  The first option is when $0$ is an eigenvalue.  Otherwise there are $\lfloor\frac{n}{2}\rfloor$ options for the multiplicity of $a$, and this determines the multiplicities of $b$ and $\overline b$ which must be equal.  Hence the answer is $\lfloor \frac{n}{2} \rfloor+1$. Is this correct? How would you make it fancier?

Determine the number of possible values for $\det(A)$, given that $A$ is an $n \times n$ matrix with real entries such that $A^3 - A^2 -3A +2I=0$.   is the source of the problem. In the last comment, I don't understand why we can say for sure that $A$ has only three distinct eigenvalues. Can anyone explain to me?  Remark: I understand that the roots of the equation $x^3-x^2-3x+2=0$ are eigenvalues of $A$. My problem is why the matrix $A$ cannot have another eigenvalue?


I am currently studying the intricacies of JavaScript with the book "You don't know JavaScript". I have come to understand the fact that vars are hoisted and lets are not. However: if I bind a function to a var, for some reason it is not hoisted. Since I am a teacher I would very much like to really grasp the logic to this language, so can anyone explain to me the logical reason why the code below wouldn't work?  foo();  var foo = function() {     console.log("Foo!"); };   I would expect to be able to call the function, since not only would a regular function expression be allowed to be defined below to calling of that function, but also I am binding it to a var in this instance.  Help would be very much appreciated!

I've recently started maintaining someone else's JavaScript code. I'm fixing bugs, adding features and also trying to tidy up the code and make it more consistent.  The previous developer used two ways of declaring functions and I can't work out if there is a reason behind it or not.  The two ways are:  var functionOne = function() {     // Some code };     function functionTwo() {     // Some code }   What are the reasons for using these two different methods and what are the pros and cons of each? Is there anything that can be done with one method that can't be done with the other?


"I killed the Newton because of the stylus. If you're holding a stylus, you can't use the other five that are attached to your wrist." - Steve Jobs Steve Jobs (2015) movie; I have no idea whether he really said that   was killed in 1998 and  from Star Trek: The First Contact may hint where visionary Steve Jobs get the idea from (Although, famous 1993  also showed touchscreen used by finger). While our Android/iOS smartphones are just a decade old, googling revealed that the first finger-driven touchscreen was invented by E.A. Johnson in 60s, when Star Trek was using colorful glass buttons.   But, I don't believe that it didn't appear in Sci-Fi world first.  This question has some earlier touchscreen references, but it's not clear that they are finger driven. Which Sci-Fi work introduced the idea of "Touchscreen used by fingers"?

I know in TNG that all computer interfaces are now touch-screen, and that got me thinking: when was the first reference to touch-screen computer interfaces in Sci-Fi made?


Consider the following two sentences:        From a roof cluster, the longest gutter line of each face is selected   if its height fall into a certain height range.    The one with the   lowest height is taken as the base height.      Can whose refer to a thing? As follows:     From a roof cluster, the longest gutter line of each face and whose   height fall into a certain height range is selected and the one with   the lowest height is taken as the base height.

Whose is used for people (e.g. "Whose that girl?"), but is it acceptable to use whose for objects too? Is there another word I should use for objects?  To make the question clearer, when I ask "Whose that car?" I am expecting an answer similar to "It's X's car." where X refers to a person. I could say "a man whose opinion I respect." and whose opinion would refer to the opinion of a person. Could I say "the desk whose drawer was broken by my brother"? Should I replace whose with another word?


Ok I know this has been asked a lot but I'm still a bit confused.  After big bang, there are a lot of equally distributed elementary particles around with evenly distributed heat(or photons). So why doesn't the universe stays at this max entropy and instead opted to form star, only to distribute heat evenly again? Please direct me to an answer if it exists.

Please forgive: I am a layman when it comes to physics and cosmology, and have tried finding an answer to this that I can understand, with no luck.  As I understand it, the solar system evolved from a massive molecular cloud. To me, this seems to break the second law of thermodynamics, as I think it suggests order from disorder.  I know there must be something wrong with my logic, but am really stuck.  Can anyone explain this one in layman's terms?  (Posting to both "Astronomy" and "Physics", as it seems to overlap these subjects)


What word is similar to inculcation, but would be understood by ordinary people?  When I asked about inculcation, people didn't understand the word. Psychologists, however, use it.

Is there a word or phrase that means to plant my idea in someone else’s mind so they think it is their own idea?  Just like what happened in the movie Inception.


I've worked with API's that had what appeared to be instances of methods within other entities, and I haven't been able to figure out how to recreate this for myself. For instance, if I have a class called "House", and there were different doors in that house, and I wanted to put a window in one of the doors, the code to work with the instance would look something like this:  House myHouse = New House; myHouse.Rooms("living room").Doors("front").PlaceWindow("frosted four pane");   I hope my representation makes sense. I've been living in VB.Net for months, and we're just starting to switch back to C#. I am really just curious about the This.This.This.This aspect.  I'd like to have an object that is this easy to use and manipulate, and I can only place properties and methods within a single class with my current knowledge. I just don't know what to search for in the search engines to figure out how to make this kind of class (or whatever type of compilation it is). If anyone could steer me in the right direction, it would help tremendously.

Method chaining is the only way I know to build fluent interfaces. Here's an example in C#: John john = new JohnBuilder()     .AddSmartCode("c#")     .WithfluentInterface("Please")     .ButHow("Dunno");  Assert.IsNotNull(john);    [Test]     public void Should_Assign_Due_Date_With_7DayTermsVia_Invoice_Builder()     {         DateTime now = DateTime.Now;          IInvoice invoice = new InvoiceBuilder()             .IssuedOn(now)             .WithInvoiceNumber(40)             .WithPaymentTerms(PaymentTerms.SevenDays)             .Generate();          Assert.IsTrue(invoice.DateDue == now.AddDays(7));     }  So how do others create fluent interfaces. How do you create it? What language/platform/technology is needed?


I have this lambda and would like it to return Distinct list.  var ResourceTypeNameList = Resources.Select(r => new bl_SelectBox{ text=r.ResourceTypeName, value=r.resourceTypeID }).Distinct();   Am I missing something or should that return a distinct list?

I am playing with LINQ to learn about it, but I can't figure out how to use Distinct when I do not have a simple list (a simple list of integers is pretty easy to do, this is not the question). What I if want to use  on a list of an Object on one or more properties of the object?  Example: If an object is Person, with Property Id. How can I get all Person and use Distinct on them with the property Id of the object?  Person1: Id=1, Name="Test1" Person2: Id=1, Name="Test1" Person3: Id=2, Name="Test2"   How can I get just Person1 and Person3? Is that possible?  If it's not possible with LINQ, what would be the best way to have a list of Person depending on some of its properties in .NET 3.5?


In acute angled $\triangle ABC$, considering a portion of side $BC$ as diameter, a circle is drawn whose radius is 18 units and it touches two sides $AB$ and $AC$ respectively. Similarly, considering a portion of sides $AC$ and $AB$ as diameters, two other circles are drawn whose radii are $6$ and $9$ units respectively. What is the radius of the incircle of $\triangle ABC$?     Consider the diagram above. Here, $FL = 18, EI = 6$ and $DK = 9$ and yellow marked circle is the incircle.  I couldn't find a way out to determine each side of the triangle $ABC$. I researched with the diagram in Geogebra for a while, connecting or drawing some important segments but nothing seemed to me so much effective or useful.  Is there any formula by which I can get directly the radius of incircle with the given condition? Thanks in advance.  SOURCE: Bangladesh Math Olympiad

NOTE: I would appreciate it if you provided a hint and not the whole solution.  BdMO 2014 Nationals:     In acute angled triangle ABC, considering a portion of side BC as diameter a    circle is drawn whose radius is 18 units and it touches AB and AC side. Similarly,    considering a portion of sides AC and AB as diameters, two other circles are    drawn whose radii are 6 and 9 units respectively. What is the radius of the incircle    of ∆ABC?   The main problem with this  problem is that the figure is incredibly messy.So I drew one circle,and tried getting information from it.I noticed that if $O$ is a centre of one of the above (semi)circles,and if $O$ is located on $AB$, then $CO$ is an angle bisector.Therefore,if we connect all the vertices with the centres,their intersection would be the incentre.Then we need to drop a perpendicular from this point to get the inradius.But that hardly helps us.I have found some similar triangles in the figure.But that does not help me at all.  I have also tried backtracking.I tried to put myself in the problem-maker's shoes and tried to imagine what I would do if I had to create a problem like this.Unfortunately,I couldn't do it..  Any insightful comment,hint will be very much  appreciated.


Following the question in   Basically, i want to have vector lenght like this    \documentclass{article} \usepackage{amsmath} \usepackage{amssymb}  \begin{document}  $\| \tilde{x} \|  $     \end{document}   The output is:    But how to have another tilde at the bottom of X?

It is very easy to put a tilde over the symbol in math mode. Simply type $\tilde{a}$. But how to put a tilde under the symbol in math mode?


Which SE site is the place to ask questions like "How do I avoid global variables?" . These questions are asking for different approaches to a problem which are not language specific and may be applied to all languages, The code used to describe the problem is usually pseudo code, and the problem looks "Too broad" or vague but it isn't actually. Here are some examples: How do I avoid global variables? How do I change the program flow within an infinite loop without breaking it? (with pseudo code, current and expected program flow provided)

I came across the following question:    This can be easily flagged for too broad or opinion based, but I wonder on which stack-exchange site can one ask answers for such a question?


I am trying to find the nilpotents of the ring $\Bbb{Z}_n$. Let $\bar{a}$ $\in$ $\Bbb{Z}_n$ be a nilpotent. Then by definition, $\exists$ $m \in \Bbb{N}$ such that $\bar{a}^m$ = $\bar{0}$. From here, we get that $a^m$ $\in$ $n\Bbb{Z}$. So we have that $n|a^m$. Let $p$ be any prime divisor of $n$. Clearly $p|n$. Now $p|n$ and $n|a^m$. So we have that $p|a^m$. So from here, $p|a$. Let $n = p_1^{r_1}p_2^{r_2}..p_k^{r_k}$ i.e. the prime factorization of $n$. By the above observation, $p_i|a$ for all $i = 1,2,...k$. Let $r$ = $max$$({r_1,r_2..r_k})$ . Then first of all, I want to know that how can we claim that $a^r =0$? And from here, how could I find the nilpotents of the ring?

How to prove that an element $a$ is a nilpotent element of $\mathbb Z_n$ if and only if each prime divisor of $n$ is a divisor of $a$?


Nobody from the Police Department and nobody from the Fire Department is/are going to the rescue.   Which verb agreement is grammatical or preferable for other reasons?  Similar examples:         Everyone that you know and everyone that you don't know is/are going to be there.    Anything you read and anything you hear affects/affect you.      I have read that if parts of a compound subject are joined together by the conjunction and, then one should use a plural verb. But in these examples with indefinite pronouns, I feel like a singular verb should be used.  Another rule on verb agreement with compound subjects: When using or, either/or, or neither/nor, the compound subject might be singular or plural. Generally, if all elements are singular, then the compound subject should be treated as singular.  But again it doesn't cover use of indefinite pronouns with and.

Here are the examples of compound subjects:      Everything on the bed and everything in the closet was organised   in under an hour.   Everybody who witnessed the shooting and everybody   in the room were interviewed.   Anyone on the soccer team and   anybody on the basketball team was eligible for the scholarship.   Should I also use was instead of were in the second example? Or the first and the third examples are incorrect that I should use were instead of was.


I am tracking changes in a web-page using Ruby. After I removed all html tags and blank lines, I get an array of lines which needs to be checked for additions/removals assuming that there may be repetitions. Could you recommend a good gem if it has been done already?  I could make the array lines unique and then the problem is avoided. But what if I need to track the repeated lines as well with respect to their position in the text?

How do I do a diff of two strings or arrays in Ruby?


An abbreviation is a shorter form of a word (or a phrase). This need not be unique. Suppose that one abbreviation for Engineering is ENG. Hence, we would say that the abbreviation of Engineering is ENG. What would we call Engineering with respect to ENG? The "abbreviated word" does the job, but is there a more direct way of getting there? Say, the "unabbreviated"?

I can describe "IMHO" as an acronym for "in my humble opinion."  How can I describe the reverse processes of translating the acronym into the actual phrase?  That is to say, if "IMHO" is the acronym, what do we call "in my humble opinion"?


I have this file:  sometext1{ string1 }  sometext2{ string2 string3 }  sometext3{ string4 string5 string6 }   I want to search this file for a specific string and print everything before this string up to the opening { and everything after this string up to the closing }. I tried to achieve this with sed but if I try to print everything in the range /{/,/string2/ for example sed prints this:  sometext1{ string1 }  sometext2{ string2 sometext3{ string4 string5 string6 }   If I search for the string "string2" I need the output to be:   sometext2{ string2 string3 }   Thanks.


I'm trying to render an animation in blender 2.79 I have selected FFmpeg video in output and I need to select codecs etc but there is no encoding tab showing up under this but only freestyle. please help!!

Even when I start a brand new file in Blender, I only get four video output file options: AVI raw, AVI JPEG, Frame Server, FFMpeg Video.  I am running version 2.78.5 (I'm using the beta so that I can use denoising.  How can I get access to all the other video outputs other people have? Like this:


Once a cylinder is created, how to go back to its attributes ? "Vertices, Cap Fill type etc.."

When you first add a cylinder, you have the option to change the number of vertices, etc, but once you do anything else in blender, it seems you no longer can edit those parameters.   Is there a setting anywhere or an add-on that allows these parameters to be edited later on? If not, how easy would such an addon/feature be to create for anyone reading this?


I was browsing through Meta StackOverflow, and I came across this:   I had performed this action a few days ago (June 16, 2019), and it had decremented my reputation that moment but it suddenly popped up now (June 20, 2019) and notified as "+-1". I'm using firefox browser v67.0.2 (64-Bit).

I downvoted at the cost of 1 reputation, but it shows in the achievement bubble as +-1, and it's green instead of red.    As people have noticed, positive net rep gains also contain the hyphen. The displayed number is the sum of positive and negative, but the +- is always there, though possibly only if there was at least one negative value?


I thought it should be because if the logarithmic identities hold then,  $$-\log(-1)=\log(-1^{-1})=\log(-1)$$ But $\log(-1)=i*\pi$ and  $-\log(-1)=-i*\pi$

I typed $\pi$ into Wolfram Alpha and in the short list of definitions there appeared  $$ \pi = -i \log(-1)$$  which really bothered me. Multiplying on both sides by $2i$:  $$ 2\pi i = 2 \log(-1) = \log(-1)^2 = \log 1= 0$$  which is clearly false.  I guess my error is $\log 1 = 0$ when $\log$ is complex-valued.  I need to use $1 = e^{2 \pi i}$ instead.  So my question: is it correct for WA to say $\pi = -i \log(-1)$?  Or should be they specifying "which" $-1$ they mean?  Clearly $ -1 = e^{i \pi}$ is the "correct" value of $-1$ here.


How to show that $\log_{10} n$ is not a rational number if $n$ is any integer not a power of $10.$   If not, let $\log_{10}n=\dfrac{p}{q}$ for some $p,q(\ne0)\in\mathbb Z$ where $(p,q)=1.$ Then $q\log_{10}n=p\implies\log_{10}n^q=p\implies\log_{10}n^q=\log_{10}10^p\implies n^q=10^p$.   I don't know what to do next. Added: I can see $5,2$ are the only prime factors of $n.$ But I cant get why the same number of 5 and 2 would occur in $n?$

Could someone provide, please, a proof of the theorem below?  "Being $x$ and $b$ integers greater than $1$, which can not be represented as powers of the same basis (positive integer) and integer exponent, then the logarithm of $x$, in base $b$, is an irrational number."  Well... Assuming that the logarithm is a rational number $p/q$ ($p$ and $q$ are relatively prime integers), I know I can write $x^q = b^p$, but I can not conclude from this fact that $b$ and $x$ are powers of a same integer (and with integer exponent).


I am reading about  and I wonder if they are algebraic.  Here is in polar coordinates:  \begin{eqnarray*} x(\theta) &=& (R+r) \cos \theta - r \cos \left( \frac{R+r}{r}  \theta\right) \\ y(\theta) &=& (R+r) \sin \theta - r \sin \left( \frac{R+r}{r}  \theta\right) \\ \end{eqnarray*}  Then is this curve algebraic?  If I add the real and imaginary parts we obtain: $$ \theta \mapsto  (R+r) e^{i\theta} - r e^{i\frac{R+r}{r}  \theta} =  (R+r) z - r z^{\frac{R+r}{r}  }  $$  Still is still not an equation of the type $f(x,y) = 0$.  The cardioid has an equation:  $$ (x^2 + y^2 +ax)^2 = a^2 (x^2 + y^2) $$

Epicycloids are most commonly described by the parametric equations,   $x(t) = (R + a)\cos(t) – a \cos \left(\frac{R + a}{a} t \right),$  $y(t) = (R + a)\sin(t) – a \sin \left(\frac{R + a}{a} t \right).$  Where $R$ is the radius of the fixed circle and $a$ is the radius of the rolling circle.   With $R = ka$ we also have,   $x(t) = a[(k + 1)\cos(t) - \cos((k + 1)t)],$  $y(t) = a[(k + 1)\sin(t) - \sin((k + 1)t)].$  Several books discussing epicycloids mention that if the ratio of the radii of the circles $\left( \frac{R}{a} = k \right)$ is rational, then they are algebraic curves. However, I’ve only been able to find the Cartesian equations for the cardioid, nephroid and ranunculoid. With the cardioid being,   $(ax + x^2 + y^2)^2 = a^2(x^2 + y^2).$   The nephroid,   $(-4a^2 + x^2 + y^2)^3 = 108a^4y^2.$  And the ranunculoid,   $-52521875a^{12} – 1286250a^{10} (x^2 + y^2) – 32025a^8 (x^2 + y^2)^2 + 93312a^7 (x^5 – 10x^3y^2 + 5xy^4) – 812a^6 (x^2 + y^2)^3 – 21a^4 (x^2 + y^2)^4 – 42a^2(x^2 + y^2)^5 + (x^2 + y^2)^6 = 0.$  Clearly this doesn’t cover all epicycloids where $\frac{R}{a}$ is rational.   What is the proof that shows that epicycloids, where the ratio of the radii are rational, are algebraic curves?


I am trying to describe a place that is not often publicized in tourist guides and is not frequently visited. I currently have "visit the relatively unknown", but I am not particularly happy with the phrase because it sounds vaguely snobby to me. I am also not sure "unknown" should be qualified by degree. Does anyone have any suggestions?

I am searching for a word to contrast with iconic  I want to characterize views of the city as both iconic and under the radar, maybe "non-iconic."  I was thinking about saying that a view of the city was undiscovered, but I think that maybe that overstates what I'm think-- I more mean under-appreciated. Are there any other words that come to mind?


I'm wanting to alter the commerce cart page form.  By using var_dump($form_id) or chrome inspect I can see the id is id="views-form-commerce-cart-form-orange-default-42". If I write my hook as :  function module_form_views_form_commerce_cart_form_orange_default_42_alter   I can see that I am altering the form. But this has been altered in my theme hence the extra bit on the id orange_default_42. If I do :  function testingstuffs_form_views_form_commerce_cart_form_alter   I cannot alter the form.     How do I hook into this form correctly / is there  a correct way to find form ids?

How do I get the form id of my form? I've just begun to make my modules and I'm at a standstill. I got this code from someone else and am trying to customize it:  function hook_form_alter(&$form, &$form_state, $form_id) {   if ($form_id == 'the form id for the node form') {     $form['#submit'][] = 'my_custom_submit_handler';   } }


Darken a room. Pull open the sides of a BreatheRight nose strip (they work for me, though may be placebo effect). Notice the blue light coming from the separating adhesive.

I was tearing open individually-wrapped cough drops in the dark, and noticed that when I pulled apart two adhesive-joined pieces of silvery plastic film, small flashes of light were produced. It was not a reflection--it was pitch dark.  What causes this?  The product is Bee M.D. Organic Honey Throat Drops--kind of gooey, old ones (laugh). They contain menthol and eucalyptus oil. I did some more experimenting and think the the flash could actually be separating the plastic from the cough drop itself rather than pulling apart the adhesive. The item is small, the room is dark, my finger has a wound, and all in all it's hard to tell for sure.  I don't know if this is a physics or chemistry question--it depends on the answer.


I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


When I want to navigate into directories having special characters in their names I get an error message.   For example:  aman@desktop:~/Aman$ cd !)e$!gn&(reate bash: !: event not found aman@desktop:~/Aman$    Here !)e$!gn&(reate is the directory name where I want to navigate.  How to rectify this error?  How to use cd command to navigate directories in Ubuntu having directory name with special characters?

I want to enter the following folder in the terminal:  Milano, Torino (Jan)-Compressed   How should I write the command cd to enter this directory?  Spaces and several other special characters like \, *, ), ( and ? cause problems when I try to use them in the command line or scripts, e.g.:    $ cd space dir bash: cd: space: No such file or directory  $ cat space file cat: space: No such file or directory cat: file: No such file or directory  $ cat ( bash: syntax error near unexpected token `newline'  $ echo content >\ > ^C  $ ls ? (  )  *  ?  \   How do I enter file or directory names that contain special characters in the terminal in general?


Please help me to understand and best example for my question.  I can not understand how to create the object and use them.  thank you

Also how do LEFT JOIN, RIGHT JOIN and FULL JOIN fit in?


I think the title is quite clear.   Given  $$ n = \prod_{i=1}^n p_i ^{k_i}$$  is it possible to know something about the prime factorization of $n+1$? (I mean in terms of $p_i, k_i$)

Given the prime factorization of $N$, is there a known method for computing the prime factorization of $N-1$ or $N+1$, which is more efficient than the best known method for doing that without it?  I assume that the factors of $N$ can be "skipped" while searching for the factors of $N-1$ or $N+1$, but I don't see how it can improve the general case performance (i.e., for any given value of $N$).  UPDATE:  This question can also be stated as follows: is there a known method for computing the prime factorization of $N$, given the prime factorization of either one of its neighbors (which is more efficient than the best known method for doing that without it)?


I'm using the Twenty Fifteen (child) Theme and want to display the previous / next post links with the background image for my hierarchical custom post type.   It is being displayed, unfortunately the order seems completely wrong. I assume this is because the post are being selected by date and not by menu order?  I want the next / previous post to be like I have ordered them in the backend & menu, and it should be shown regardless of if its a parent, child or sibling to the current post.  The code for this is in the single.php:  the_post_navigation( array(     'next_text' => '' . __( 'Next', 'twentyfifteen' ) . ' ' .         '' . __( 'Next post:', 'twentyfifteen' ) . ' ' .         '%title',     'prev_text' => '' . __( 'Previous', 'twentyfifteen' ) . ' ' .         '' . __( 'Previous post:', 'twentyfifteen' ) . ' ' .         '%title', ) );   How can I get the posts in the correct order?

I have a series of posts that are ordered by a meta_key value. They could also be arranged by menu order, if necessary.  The next/prev post links (generated by next_post_link, previous_post_link, or posts_nav_link all navigate by chronology. While I understand this default behaviour, I don't understand how to change it. I found that it maps through to adjacent_post_link in link-template.php, but then it starts to seem fairly hard-coded. Is it recommended to re-write this from scratch to replace it, or is there a better solution.


I am examining BMI effect on wage. I have included a lot of explanatory variables in the regression and all (most) coefficients were significant, but once I add ability which correlates with education (already in regression) slightly (34%) BMI measures turn insignificant.   Here is the question, what does it mean if BMI turns insignificant once we add another variable in the regression?   Estimated by OLS, cross sectional. Adj R  0.60, F=160.   PS: I added a variable and variable of interest turned insignificant, not vice versa.  Thank you for all the examples below, they address the same topic, but different issue.

I have what is probably a simple question, but it is baffling me right now, so I am hoping you can help me out.  I have a least squares regression model, with one independent variable and one dependent variable. The relationship is not significant. Now I add a second independent variable. Now the relationship between the first independent variable and the dependent variable becomes significant.  How does this work? This is probably demonstrating some issue with my understanding, but to me, but I do not see how adding this second independent variable can make the first significant.


New to java. I have a simple issue. I am working on a lab and cannot figure out why my code is returning a blank variable. So call the method and input the name and it should return the name and then send it to the next method for printing. Instead it prints "Hello, !". Any thoughts?`//   This application gets a user's name and displays a greeting import java.util.Scanner; public class DebugThree3 {    public static void main(String args[])    {       String name = " ";       getName(name);       displayGreeting(name);               }    public static String getName(String name)    {       Scanner input = new Scanner(System.in);       System.out.print("Enter name ");       name = input.next();       return name;    }    public static void displayGreeting(String name)    {       System.out.println("Hello, " + name + "!");    } }`

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


Since the theme of the entrance exam was to defeat the robots, characters like Shinso,despite having awesome quirks, won't be able to pass. But Hagakure, who was having a quirk good for stealth but absolutely useless for combat (well that might be an exaggeration, but I'm pretty sure she can't fight robots with that it), passed the test. How is this possible, considering we already have a character who couldn't join hero class just because his quirk was non-combat type?

I have seen some comments and speculations about the robot having an off switch or whatever. But I want to know if there is any source material or comment from the author on how they managed to pass the exam.  I have only seen the actual author's comment on Mineta:     But I was wondering if there are author notes for the other characters.


var num1 = 1.1 if num1 + 0.1 == 1.2 {print("true")} else {print("false")}   Result: false  var num1: Float = 1.1 if num1 + 0.1 == 1.2 {print("true")} else {print("false")}   Result: true  The former block of code has num1 which represents a double and the latter code block has num1 which represents a float.  My question: Why does the code with Float return true and the one with Double does not?

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


I need your help for an issue I meet on my laptop Asus Vivobook S14. I installed Ubuntu 18.04 LTS and erased Windows 10. Everything is working except Wifi.  Here's some useful informations about my wireless card:  louisa@louisa-X411UQ:~$ lspci -knn | grep Network -A3 02:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:b822]     Subsystem: AzureWave Device [1a3b:2950]     Kernel modules: r8822be  louisa@louisa-X411UQ:~/Documents/wifi/rtlwifi-next$ sudo lshw -class Network   *-network NON-RÉCLAMÉ             description: Network controller        produit: Realtek Semiconductor Co., Ltd.        fabriquant: Realtek Semiconductor Co., Ltd.        identifiant matériel: 0        information bus: pci@0000:02:00.0        version: 00        bits: 64 bits        horloge: 33MHz        fonctionnalités: pm msi pciexpress cap_list        configuration: latency=0        ressources: portE/S:d000(taille=256) mémoire:ef100000-ef10ffff   *-network        description: Interface réseau sans fil        identifiant matériel: 1        information bus: usb@1:1        nom logique: wlx1062eb94abf1        numéro de série: 10:62:eb:94:ab:f1        fonctionnalités: ethernet physical wireless        configuration: broadcast=yes driver=rtl8xxxu driverversion=4.15.0-23-generic firmware=N/A ip=192.168.0.14 link=yes multicast=yes wireless=IEEE 802.11   My kernel version :  louisa@louisa-X411UQ:~$ cat /proc/version Linux version 4.15.0-23-generic (buildd@lgw01-amd64-055) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #25-Ubuntu SMP Wed May 23 18:02:16 UTC 2018   I got this repository :  but when I try the make command I meet this error :  louisa@louisa-X411UQ:~/Documents/wifi/rtlwifi-next$ make make -C /lib/modules/4.15.0-23-generic/build M=/home/louisa/Documents/wifi/rtlwifi-next modules make[1] : on entre dans le répertoire « /usr/src/linux-headers-4.15.0-23-generic » Makefile:976: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"   CC [M]  /home/louisa/Documents/wifi/rtlwifi-next/base.o /home/louisa/Documents/wifi/rtlwifi-next/base.c: In function ‘_rtl_init_deferred_work’: /home/louisa/Documents/wifi/rtlwifi-next/base.c:461:2: error: implicit declaration of function ‘setup_timer’; did you mean ‘sk_stop_timer’? [-Werror=implicit-function-declaration]   setup_timer(&rtlpriv->works.watchdog_timer,   ^~~~~~~~~~~   sk_stop_timer cc1: some warnings being treated as errors scripts/Makefile.build:332: recipe for target '/home/louisa/Documents/wifi/rtlwifi-next/base.o' failed make[2]: *** [/home/louisa/Documents/wifi/rtlwifi-next/base.o] Error 1 Makefile:1552: recipe for target '_module_/home/louisa/Documents/wifi/rtlwifi-next' failed make[1]: *** [_module_/home/louisa/Documents/wifi/rtlwifi-next] Error 2 make[1] : on quitte le répertoire « /usr/src/linux-headers-4.15.0-23-generic » Makefile:100: recipe for target 'all' failed make: *** [all] Error 2   The command sudo  modprobe r8822be returns this:  louisa@louisa-X411UQ:~$ sudo modprobe r8822be modprobe: ERROR: could not insert 'r8822be': Required key not available   and the dmesg | grep 8822 command returns nothing.  I would be relieved if someone could tell me how to solve this problem.  Thank you everyone

This issue happens only on UEFI systems with enabled Secure Boot.  When I try to install DKMS modules like VirtualBox, Nvidia, or Broadcom drivers, they do not install and I get Required key not available when I try to modprobe them.  VirtualBox complains that vboxdrv is not loaded.  Broadcom wl driver is shown in lspci -k as a kernel module but is not in use. sudo modprobe wl throws Required key not available.  Also this issue may happen when I install some kernel modules from git sources.  This issue may appear after a kernel update as disabled wireless adapter, black screen after a reboot, etc.   How can I fix it?


With code:   someVector.FixRounding(); //round vector's values to integers if the difference is 1 epsilon float x = someVector.x; //still getting old value     public static void FixRounding(this Vector3 v) {     if (Mathf.Approximately(v.x, Mathf.Round(v.x))) v.x = Mathf.Round(v.x);     if (Mathf.Approximately(v.y, Mathf.Round(v.y))) v.y = Mathf.Round(v.y);     if (Mathf.Approximately(v.z, Mathf.Round(v.z))) v.z = Mathf.Round(v.z); }   the FixRounding method doesn't actually change the vector's values although Mathf.Approximately returns true.


For an ordinary least square (OLS) regression problem of the form $y = \beta + w_1 x_1 + \ldots + w_n x_n$, let's say I have 3 categorical variables.   gender: male, female type: office, field, manager ethnicity: white, black, other   And let's also say I have some other continuous variables (not made explicit here). I know that when I dummy encode (e.g. one-hot encode) the categorical variables, I will have the following variables.   gender_male, gender_female type_office, type_field, type_manager ethnicity_white, ethnicity_black, ethnicity_other   I know that I should drop one of the gender dummy variables; let's say, gender_female. What about the other dummy variables? Should I drop one from each too? Or can I leave them all in?  I found one  that seem to suggest that I should drop 1 dummy variable and leave the rest alone. Is this the right approach?  Let's say I decide to drop one dummy variable derived from each of the categorical ones. My model might look like the following.  $y = 1.0 + 0.8 \mathrm{gender_{male}} + 0.7 \mathrm{type_{field}} + 0.2\mathrm{type_{manager}} - 0.8 \mathrm{ethnicity_{white}} + 0.5 \mathrm{ethnicity_{black}} + w_6 x_6 + \ldots + w_n x_n$  With the exception of gender, which is binary, how do I account and explain for the dummy variables that I dropped out? (e.g. type_office and ethnicity_other).  I guess I am having problems reconciling what to do to avoid mathematical problems (e.g. singularities) and then dealing with the side-effects of how to explain or interpret the model. In this , one reply suggest to leave everything in for OLS regression if regularization is used.

My understanding is that in machine learning it can be a problem if your dataset has highly correlated features, as they effectively encode the same information.  Recently someone pointed out that when you do one-hot encoding on a categorical variable you end up with correlated features, so you should drop one of them as a "reference".  For example, encoding gender as two variables, is_male and is_female, produces two features which are perfectly negatively correlated, so they suggested just using one of them, effectively setting the baseline to say male, and then seeing if the is_female column is important in the predictive algorithm.  That made sense to me but I haven't found anything online to suggest this may be the case, so is this wrong or am I missing something?  Possible (unanswered) duplicate:


I have been applying to a bunch of grad programs recently and I have noticed that some schools, specially those based in the UK, ask students to upload the reference letters themselves to the application platform, instead of sending an e-mail to the nominated referees. This puts me in an awkward position because the point of the letters is to be confidential and asking the professors to send them to me would mean that they would either refuse or send me a "plain" letter, as I have heard from colleagues that those are the replies they have been getting. What is the proper way to proceed in this situation? How do I ask a professor to send me a decent letter that they would not mind me seeing?

It seems that US universities usually provide a link to the professor of the applicant, and let him/her directly upload the recommendation letter to that link, meaning that the student would have no access to it. However, when applying to Masters programs offered by German universities, I am surprised to see that they all ask the student to upload the recommendation letter in PDF format/to a text area directly, by his/her own, which seems to make little sense to me.  I'm afraid that some professors will just outright reject writing a letter which is to be handed to and viewed by the student. Or are such worries unnecessary? Is this a cultural difference between continental European and British/American system (My current university mostly follows the British/American system)? What should I do in this case. Should I ask the professors to write and hand me recommendation letters directly, or should I try to communicate with the university and let the professors email them the letter/give me a physical letter sealed within an envelop, which I will send to the university by mail later on?


Ages ago, if I tried to install an app on an older version of iOS, it would alert you and allow you to install the last release of the app for the iOS you are on.  But when I tried again today at work to install Excel on a iOS 10 device I got, "This application requires iOS 11.x or later".   I know for a fact that Excel for iOS was available on iOS 10. Why is it not installing the older version applicable to iOS 10? Is there some quick and easy trick to make it do it? If not I'll have to tell management to get new iPad which they will not be happy about.  PS: I am familiar with the hacky way to force installation of older versions.

I have an older iPod touch which which supports up to iOS 6.1.6 and nothing newer.  This device is equipped with a Linea Pro barcode scanner and previously had an application called "" installed.  Recently I was attempting to do some work on a web application I wrote and realized that I needed to update to a newer version of Web Barcode - but unfortunately the Apple ID saved on my device was deactivated a few years ago.  So I went to settings and updated it with my current Apple ID.  Then again tried to update the App from the Apple store.  Still no dice - it was asking me for the password on the old account.  So then I figured I'd just remove it and reinstall from scratch.  Deleted the app and went to the store but now I am met with a message that the new version requires at least iOS 8.0.  I feel I followed a very logical series of steps to update this application and while I can understand that I won't be able to install the newest version, how can I get the old version back?  The device is completely useless without the barcode scanning application and the Apple store is now refusing to install any version at all on my device.  What can I do to get the original version of this application reinstalled?


Like the command \notin, I want to create a \notBox.   So far I have made $\Box\!\!\!\!\diagdown$, but it does not look good.   May be I need to raise the \diagdown by a little.   Please help making such a symbol.

I want to negate the symbol whose code is \models (this would be specific to Formal Logic). How can I do that? I tried a number of combination, but didn't find how this could be done. I tried \neqmodels, \nemodels, \notmodels, \nmodels  but all of them are wrong.  Is there a general way to negate symbols?


Does indian passport holder travelling back from US to Muscat and has a layover of 9 hours at terminal 5 Heathrow airport need Transit visa(travelling by American airlines

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


I was wondering if there was anyway to disable the Alt+` key combination that switches the windows of a program.   I've tried going through CompizConfig and disabling the Switcher there with no luck. I've even disabled every single key combination in dconf-editor in the keybinding category to no avail. Help would be greatly appreciated.

As of Ubuntu 16.04, Some emacs key combinations involving Ctrl and Alt conflict with the keyboard shortcuts in Ubuntu. One way to fix this is to go to System settings > keyboards > shortcuts and disable / change all the ones that conflict.  A similar question was .  However, there are some shortcuts that are not in that setting. For example, in emacs, Alt-` (backtick key) is used to open the emacs menu. However, in Ubuntu, it opens up a window switcher with a preview. Similarly, Alt-Tab toggles the switcher. These shortcut keys are not in System settings > keyboards at all.  How can the windows-switching shortcuts be remapped so that they don't interfere with emacs?


The following question was asked during the final exam of AISSCE. Evaluate $\int_{-2}^2 \frac{x^2}{1 + 5^x}dx$. I think it must be easy and leave it to wide audience to check...cheers!

$$\int^2_{-2}\frac{x^2}{1+5^x}$$  How do I start to integrate this?  I know the basics and tried substituting $5^x$ by $u$ where by changing the base of logarithm I get $\frac{\ln(u)}{\ln 5}=x$, but I got stuck.  Any hints would suffice preferably in the original question and not after my substitution.  (And also using the basic definite integrals property.)  Now I know only basic integration, that is restricted to high school, so would prefer answer in terms of that level.


I have the following question,Find the complex numbers u=x+y such that x and y are all real numbers and $u^2=−15+8i$  What I am thinking to do is solve for u but  that doesnt seem right, I am also thinking that since u is stated and it ask for $u^2$ I am thinking of doing $(-15+8i)(-15+81)$ and solve from there but still not sure if thats the right direction.

If I'm given a complex number (say $9 + 4i$), how do I calculate its square root?


If i buy the PS4 edition of Minecraft and sign in with my Mojang account, will I also be granted a premium license for the PC edition of the game?

If I bought Minecraft Desktop version, can I convert it to Wii U version or maybe just get discount for it?


Dears this is my code, textview text could not be change ?.....   AlertDialog.Builder builder=new AlertDialog.Builder(User.this);  LayoutInflater inflater = (User.this).getLayoutInflater();     // Inflate and set the layout for the dialog     // Pass null as the parent view because its going in the     // dialog layout     rname=(TextView)inflater.inflate(R.layout.fooditemview, null).findViewById(R.id.tv_frname);     fname=(TextView)inflater.inflate(R.layout.fooditemview, null).findViewById(R.id.tv_fname);     ftype=(TextView)inflater.inflate(R.layout.fooditemview, null).findViewById(R.id.tv_ftype);     fdetails=(TextView)inflater.inflate(R.layout.fooditemview, null).findViewById(R.id.tv_fdetails);     remail=(TextView)inflater.inflate(R.layout.fooditemview, null).findViewById(R.id.tv_email);      rname.setText(Srname);     ftype.setText(Sftype);     fdetails.setText(Sfdetails);     remail.setText(Ssremail);     fname.setText(Sfname);     builder.setTitle("Food Details");    // builder.setIcon(R.drawable.ic_launcher);     builder.setCancelable(true);     builder.setView(inflater.inflate(R.layout.fooditemview, null))     // Add action buttons             .setPositiveButton("Ok", new DialogInterface.OnClickListener() {                 @Override                 public void onClick(DialogInterface dialog, int id) {                      }              });     builder.create();     builder.show();      }   errors in logcat is  02-24 14:19:58.846: E/AndroidRuntime(11065): FATAL EXCEPTION: main 02-24 14:19:58.846: E/AndroidRuntime(11065):  Process:com.example.foodadviser, PID: 11065 02-24 14:19:58.846: E/AndroidRuntime(11065): java.lang.NullPointerException 02-24 14:19:58.846: E/AndroidRuntime(11065):    at com.example.foodadviser.User.FoodDetailsDialog(User.java:457) 02-24 14:19:58.846: E/AndroidRuntime(11065):    at com.example.foodadviser.User.access$2(User.java:440) 02-24 14:19:58.846: E/AndroidRuntime(11065):    at com.example.foodadviser.User$1.onItemSelected(User.java:87) 02-24 14:19:58.846: E/AndroidRuntime(11065):    at android.widget.AdapterView.fireOnSelected(AdapterView.java:893) 02-24 14:19:58.846: E/AndroidRuntime(11065):    at android.widget.AdapterView.access$200(AdapterView.java:48) 02-24 14:19:58.846: E/AndroidRuntime(11065):    at android.widget.AdapterView$SelectionNotifier.run(AdapterView.java:861) 02-24 14:19:58.846: E/AndroidRuntime(11065):    at android.os.Handler.handleCallback(Handler.java:808) 02-24 14:19:58.846: E/AndroidRuntime(11065):    at android.os.Handler.dispatchMessage(Handler.java:103) 02-24 14:19:58.846: E/AndroidRuntime(11065):    at android.os.Looper.loop(Looper.java:193) 02-24 14:19:58.846: E/AndroidRuntime(11065):    at android.app.ActivityThread.main(ActivityThread.java:5292) 02-24 14:19:58.846: E/AndroidRuntime(11065):    at java.lang.reflect.Method.invokeNative(Native Method) 02-24 14:19:58.846: E/AndroidRuntime(11065):    at java.lang.reflect.Method.invoke(Method.java:515) 02-24 14:19:58.846: E/AndroidRuntime(11065):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:824) 02-24 14:19:58.846: E/AndroidRuntime(11065):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:640) 02-24 14:19:58.846: E/AndroidRuntime(11065):    at dalvik.system.NativeStart.main(Native Method) 02-24 14:19:59.043: D/dalvikvm(11065): threadid=17: interp stack at 0x60b74000   i tried this please help me. How to fix this problem. Is this even possible without trashing everything and just creating a custom view (which I am very averse to trying to tackle this fresh into Android programming...)

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


I'm on Sierra, using a regular mouse with a scroll wheel that "ticks" when scrolling. I want to be able to scroll a single "tick" and have that actually do something, right now I have to scroll a few "ticks" at once before it picks up that I scrolled at all. This is really annoying because scrolling becomes something that's way out of control, I either don't scroll as much as I intended or too much. How do I set it to pick up that I scroll even when it's only a single "tick"?

Since I upgraded to Sierra, mouse wheel scrolling has become a lot worse. When I scroll the wheel fast, it behaves like it did before and scrolls a bunch of lines, but when I scroll the wheel one notch at a time, nothing happens.  I use a Steelseries Sensei gaming mouse but I also tested with a basic Dell mouse. (There's no model number on it.) As of macOS 10.12.1, this issue affects all programs.  Are there any workarounds? Please don't suggest USB Overdrive or any other nagware.  Edit:


I have a paragraph which contains i++ and ++i:  para = "This is what i++ is do ++i and in i I dim ++ +"   and I want to find all occurrences of i++ and ++i. As I am a total beginner at this so this is what I write at    [i+]   This works fine but as you can see it also gives me all the I i + ++ everywhere in the string so I added this \b[i+]\b but it doesn't select the + sign attached with i++ . Also, it selects the single i in the string. Which means it is not treating i++ or ++i as a single string.  How can I change my regex to select i++ or ++i in the string

I am tired of always trying to guess, if I should escape special characters like '()[]{}|' etc. when using many implementations of regexps.  It is different with, for example, Python, sed, grep, awk, Perl, rename, Apache, find and so on. Is there any rule set which tells when I should, and when I should not, escape special characters? Does it depend on the regexp type, like PCRE, POSIX or extended regexps?


Let's say I have 1 band raster images with Gray Color Interpretation and I want to change their color based on their data values. Data values -1, will be Blue, -0.5 will be Light Blue, 0 will be Yellow, 0.5 will be Orange and 1 will be Red. If the data values are <-3000, I want to have that colored Black and if the data values are >3.402, that should be colored White . Will that be possible in gdal? And process that in batch?

I have 1-band GeoTIFF file. The color interpretation for band is gray. I want a color table in order to transform my Col.tiff to Col.jpeg or Col.png.  I tried putting a color table in this tiff via a .vrt:  gdal_translate -of VRT  Col.tiff Col.vrt   then adding in the .vrt:  <ColorInterp>Palette</ColorInterp> <ColorTable>    <Entry c1="0" c2="0" c3="255" c4="240"/>    <Entry c1="0" c2="0" c3="254" c4="240"/>    <Entry c1="0" c2="0" c3="253" c4="240"/>    <Entry c1="0" c2="0" c3="252" c4="240"/> </ColorTable>   And translate again :  gdal_translate Col.vrt Col.tiff   But it answered:  Warning 1: Unable to export color table to GeoTIFF file.  Color tables can only be written to 1 band or 2 bands Byte or UInt16 GeoTIFF files.   How can I do it?  For information, there is gdalinfo for the Band:  Band 1 Block=55x18 Type=Float64, ColorInterp=Gray   Description = Something   Metadata:     GRIB_COMMENT=Something[p]     GRIB_ELEMENT=TMP     GRIB_FORECAST_SECONDS=0 sec     GRIB_REF_TIME=1401926400 sec UTC     GRIB_SHORT_NAME=SMTHG     GRIB_UNIT=[p]     GRIB_VALID_TIME=1401926400 sec UTC


After upgrading my windows 10, I can no longer change powersettings. It only says the one I use and Balanced.  Where has the setting to change power plan settings moved to?

UPDATE: I went back to 1703. See source:   Listing power plans using powercfg shows only the Balanced one.    And that's the registry situation:    And the power schemes, which seems fine:    What happend here?


In google sheets, was wondering if I can do a lookup and capture the data of the return at that point in time instead of continually updating it.  For example, if I'm using vlookup to relate item to price. I want to capture the sold price at that time and not take on the current value which might be affected by future updates.

I have the following formula in a sheet:  =if(E1="HOLD",,query(Cust_Orders!B6:Z5000,"Select Y,G,I,H,K where H>0  "))   With E1 being a drop down with values HOLD and FETCH  The recalculation when I go to FETCH takes about 13 seconds.  But when it is in HOLD, the query doesn't exceute, and everything goes blank. Not what I want.  I'm trying to avoid recalculating this query every time I make a change in the Cust_Orders range, but keep the old values, as two different pivot tables that are viewed by other people are dependent on it.  Google spreadsheet recalc settings all are 'on change and foo'  Is there a way to do this?


The following code is returning:   pontuaÃ§Ã£o   I'd like it to return:  pontuação   Code:  $msg = texto("pontuação"); echo $msg;  function texto($string){     return mb_convert_encoding($string, 'utf-8', 'iso-8859-1'); }   Can someone please help with this?

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


I am not an expert in javaScrit , but i have the following concern. I have the following Script :-  <script type="text/javascript">         $(document).ready(function () {             $("#DCSort").click(function () {   what this indicates is the following :- 1. the script will run when the document finishes loading. 2. when the DCSort DOM element is clicked .  my question is as follow:- let say that after the document loaded , a new element with DCsort have replaced the old DCSort element , will the original javaScrip fire when the newly added DCSort element has been added using an Ajax call and i use click on it  ? Thanks

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


People change as we know, as time passes, as they grow, as they face various situations in their life. Even wizards are basically people like muggles except for magic.  Say a student is intelligent so sorting hat puts him/her in Ravenclaw. But later on the student starts displaying bravery. This new trait starts overpowering his/her intelligence. So can the student switch to Gryffindor by himself, obviously after getting permissions and approvals of higher authority.  Basically, can students in Hogwarts change their house after official sorting has been done by sorting hat?

In Harry Potter, when a witch or a wizard is 11 they go to Hogwarts and their first major experience is their own Sorting. In front of the Great Hall, each new student goes to the stool, sits down, and puts on ye olde Sorting Hat. After anywhere from just a moment to , the hat yells out one of Hufflepuff, Gryffindor, Ravenclaw, or Slytherin. And from then on that student belongs to that house.  But is that really it? Does the Sorting Hat's decision represent the house someone would belong to their whole life? Of course, you can't literally switch from one house to another while you're at school, but in spirit (which is what the Hat is meant to consider), can your house change?  Suppose some witch is sorted into Hufflepuff. More than that, suppose she is a true Hufflepuff, the most loyal, hard-working, and honest kind of person you'd find anywhere. Would it be possible, say fifteen years later, for her to go through some serious event in her life and come out not quite as loyal or hard-working, but so brave, chivalrous, and reckless that she'd suddenly be a true Gryffindor? Sure, she can't be re-Sorted, but if this were possible, then if you were to put the Hat on her it say she should be in Gryffindor.  So can this happen, or is it impossible for someone's character to change such that their house changes? Or, if this were possible, would the Sorting Hat have actually already known that fifteen years later the witch would become a Gryffindor, and so would have Sorted her into Gryffindor from the start?


My sample code is- \documentclass{article} \usepackage{listings} \usepackage{xcolor} \begin{document} \lstinputlisting[numbers=left,backgroundcolor=\color{lightgray},language=R]{code.R} \end{document}  and code.R is - m.datF <- read.csv("modified_dataF.csv", header=T)[,-1] mod <- glm(salary ~ ., family=gaussian,  data=m.datF) summary(mod)  output shows -  In this output the ~ is positioned little up.

How do I set the tilde (~) character correctly in LaTeX?  There’s a  on Stack Overflow, with a lot of answers. But dare I say it? They all suck:   \textasciitilde is too high, \texttildelow is too low. $\sim$ can be tweaked to look more or less acceptable: {\raise.17ex\hbox{$\scriptstyle\sim$}} – but even that is a hack and uses the wrong symbol.   The point is – the tilde character is definitely an existing glyph in any font I am tempted to use. How can I just access and typeset that character, please? Without resorting to some other, similar-looking glyph that first needs to be nudged into place using a cunning combination of font size and raised boxes?  There must be a possibility to access that glyph directly from the font definition.  To demonstrate, look at this screenshot which attempts simply to display a C++ destructor of a type T (~T):    Compare this with the symbol we get in the browser: ~ – that’s what I want.


If I buy something like a smartphone or a new PC, when you have these choice:   Pay all the cost at the moment. Pay it in 6/12/18 months (with loan but without any interest rate and any extra cost).    What is the best option and why?   I know that the problem depends on the money that you have but for normal people (not poor, not rich), normal salary, and normal expenses:  What is the best way?

This reads a bit like a home-work question, but this is actually my situation. The job I've taken is a BYOD (bring your own device), workplace and I prefer to use my own equipment.   I've just started a new job and need to buy a new laptop within the next 4 weeks. I can purchase a laptop up front for $1,500.00 or buy one one with 12-months "interest-free" finance for $2,000.00 with up-front fees of $80.00 I currently have a home-loan with an outstanding principal of $400,000.00. My interest rate is 4% and house prices increased by 5.7% in my area during the last year. The remaining term of the loan is 30 years. Currently, I make extra payments towards my home loan equal to $3,000.00 per month.   Question: is there any advantage to purchasing the more-expensive laptop using finance, as opposed to purchasing the cheaper laptop now? Assume that I will repay the price of the laptop within the 12-month period and the money that I would have otherwise spent on the laptop will be used to repay the home loan.


Is there a way to prevent an inline link URL (the one in parentheses) from counting towards the comment's length limit? How? If not, please implement this. Is there another input technique to make only the human-readable portion count?

It's happened many times that I have to shorten a URL (using bit.ly, etc) or my comment so that it fits the 600 character limit for comments. This is especially annoying when I have a 2-sentence comment with a really large link, causing my comment to be too long.  Does this justify not counting URLs when calculating a comment's character limit and dis/allowing it to be posted?


It doesn't seem like it changes the meaning in an obvious way. Does the order of adjectives matter or is it just in my head and just due to happening to phrase it one way rather than another more often?

I remember being taught that the correct order of adjectives in English was something along the lines of "Opinion-Size-Age-Color-Material-Purpose."  However, it's been a long time and I'm pretty sure I've forgotten a few categories (I think there were eight or nine). Can anyone fill them in?


I would like to run applications I'm working on that binds to port numbers less than 1000 without requiring root access.   I'm using Linux Mint and have root access to set it up. I would ideally like to be able to do it over SSH.  Also happy hear if it isn't possible or I shouldn't be doing it, if that is the case.  EDIT: Mostly I'm happy to use higher port numbers for development, but Flash is expecting a socket policy on port 843. Currently I have to run the app as root and therefore I can't run it from my Makefile which is a PITA.

I have Googled about a solution for quite some time, but couldn't find an answer.   I am on Ubuntu Linux and want to run a server on port 80, but due to security mechanism of Ubuntu, I get the following error:      java.net.BindException: Permission denied:80   I think it should be simple enough to either disable this security mechanism so that port 80 is available to all users or to assign required privileges to the current user to access port 80.


Can we un-install non critical applications and add our own application in Ubuntu 14.01 and then redistribute and sell it to people over the web without any legal issues?

What license does Ubuntu fall into (GPL, MIT, a mix)? Would it be legal to modify it and redistribute my modified version?


My book says Spring Force = $-kx$  where k is spring constant and x is displacement from equilibrium position.   Then it says work done by spring force is $-kx^2/2$.   But I know Work Done = Force $×$ Displacement so in this case it should be $-kx^2$.  So why is it $-kx^2/2$?

I've done enough research before asking this question. The work done by a spring is defined as $$W_\mathrm{spring}=\left|\frac{1}{2}kx^2\right|$$ Where $ k$ is the spring constant and $x$ is the distance moved by the spring. But when I tried to derive the eqñ I'm getting  $|kx^2|$ and no half is present. I took into consideration that there is displacement at both ends of the spring even when the force is exerted at only one end but still I end up at this eqñ. Can anyone help me out?