Exception in thread "main" java.lang.NullPointerException when calling from different class

I am trying to call methods of one class in another class but every time I am getting the same Exception in thread "main" java.lang.NullPointerException error... Please look into the code below and guide me.... Class: 1 public class CurrencyConverter {     double[] exchangeRates;          void setExchangeRates(double[] rates) { //set instance methods         exchangeRates = rates;     }          void updateExchangeRates(int arrayIndex, double newVal) {         exchangeRates[arrayIndex] = newVal;     }          double getExchnageRates(int arrayIndex) {         return exchangeRates[arrayIndex];     }          double computeTransferAmount(int arrayIndex, double amount) {         return amount * getExchnageRates(arrayIndex);     }          void printCurrencies() {         System.out.println("\nrupee: " + exchangeRates[0]);         System.out.println("dirham: " + exchangeRates[1]);         System.out.println("real: " + exchangeRates[2]);         System.out.println("chilean_peso: " + exchangeRates[3]);         System.out.println("mexican_peso: " + exchangeRates[4]);         System.out.println("_yen: " + exchangeRates[5]);         System.out.println("$australian: " + exchangeRates[exchangeRates.length-1]);     }                  public static void main(String[] args){         CurrencyConverter cc = new CurrencyConverter();         double[] rates = {63.0, 3.0, 3.0, 595.5, 18.0, 107.0, 2.0};         cc.setExchangeRates(rates);     //calling setExchangeRates methods         rates = new double[]{65.0, 3.0, 3.0, 595.5, 18.0, 107.0, 2.0};         rates = new double[]{65.0, 3.0, 3.0, 595.5, 18.0, 107.0, 2.0};         cc.setExchangeRates(rates);         cc.printCurrencies();         cc.updateExchangeRates(0, 66.0);         cc.printCurrencies();         double amount = cc.computeTransferAmount(0, 1000);         System.out.println("\nTransferred Amount: " + amount);     } }  Class 2 : public class MoneyTransferService {     CurrencyConverter cc = new CurrencyConverter();          double computeTransferAmount(int countryIndex, double amount) {         return cc.computeTransferAmount(countryIndex, amount);     }          double computeTransferFee(int countryIndex, double amount) {         double transferAmount =  computeTransferAmount(countryIndex,amount);         double transferFee = transferAmount * 0.02;         return transferFee;     }          public static void main(String[] args) {         MoneyTransferService transferService = new MoneyTransferService();                  double transferAmount = transferService.computeTransferAmount(0, 1000);         double transferFee = transferService.computeTransferFee(0, 1000);         System.out.println("transferAmount: " + transferAmount);         System.out.println("transferFee: " + transferFee);     } }


Any way to show LaTeX example code *and* execute it?

In (La)TeX documentation and tutorials, it is common to show a snippet of code next to the output it generates. It might be two minipages side by side, or a code listing followed by boxed output, or whatever. For a trivial example, we might see  \[ sin \theta \] next to its output, sin θ  Whenever I've done this, I had to use two copies of the code, e.g., once inside verbatim and once inside a minipage or framed box). This just begs for inconsistencies and maintainability problems, since it's very easy to fix one copy and not the other. So, is there any way to display a bunch of code and to execute (a copy of) it, showing the results?  I'm pretty sure it's not straightforward: the code needs to have different catcodes for reading and displaying, but catcodes get assigned only once, when the text is encountered. But if there's no better way, it should be doable by reading the code verbatim and saving a copy in the .aux file, from where it'll get read and interpreted the next time around. But I've never seen such a thing. Has anyone else here?


Show more more float precision in armadillo matrix

Is it possible to show more float precision in armadillo matrix?  For example, 1.51421993970923477456e-001 instead of 1.514219939709e-001.


I like to recreate the layout of an official template, in order to get rid of Word. Because the template is from the government, I must recreate it 1:1.   In the end, the document should look like this:  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et  accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata.  1.      First Section Title         Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod         tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At         vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren.  1.1     First Subsection Title         Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod         tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At         vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren.  1.1.1   First Subsubsection Title         Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod         tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At         vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren.   My main problem is the spacing between the section numbers and the titles. All section titles must begin on a fixed indent defined by the template, so the spacing between the numbers and the titles must be dynamic. With plain latex and titlesec I was only able to specify a fixed space. I also tried the memoir package with hangsecnum, but with this option the numbers will be aligned left, also with a fixed space between the section numbers and the title.   Would it be possible to give me a hint how to create such a layout?


The following passage is from :  Shee is young, wise, faire, In these, to Nature shee's immediate heire: And these breed honour:  According to the research I did  heir is countable. If so, why there is no article before heire? Likewise,  The French finance minister is heir to a tradition of central control that goes back to Louis XIV.


How can I protect parentheses passed to a cd command?

I asked  how to make cd protect spaces. Tab completion is great, but sometimes you paste the path from the clipboard so this is useful.  The solution breaks with parentheses however. No matter how you try to escape and protect the input it always returns:  bash: syntax error near unexpected token `('   Is there some way to have it also deal with parentheses? What I want is that when I enter this, it works:  cd My path with spaces (and parentheses)


Is there anyone who has Canon MX435 printer. No driver for Linux

There is Mac and Windows drivers only. I tried that tar.gz file  Nothing happened. Usb cable not connected. Trying to print over wifi.  How can I use MX435 from Ubuntu?


Is this php sanitization correct, or should i try something else?

i am working on a search bar which searches in a SQLSRV database.I cannnot use the sanitization method for mysql since sqlsrv doesn't have such thing. So, after looking on the internet, i used a few techniques, mostly from w3schools.Now, i don't know if they are old or hackable, or even valid.To submit the form i've used this markup :  enter <form action="<?php echo htmlspecialchars('cautare.php');?>" method="post" id="formular" name="formular">code here   in the hopes that a hacker won't be able to introduce code in the link to execute it. Then, in the php:      $search = ""; if ($_SERVER["REQUEST_METHOD"] == "POST") {     $search = test_input($_POST["search"]); } function test_input($data) {   $data = trim($data);   $data = stripslashes($data);   $data = htmlspecialchars($data);   return $data; }   This part is from W3Schools and it seems safe enough, after i've read their explanation a couple times. I've done all this was to protect from a SQL Injection attack since i'm using this code to search the database:  WHERE den_produs LIKE '%{$search}%'   I'd like to know if there is a better way of doing this and what i am doing wrong.   Thanks a lot for your time!


Can I go back to last used tab after closing one on Chrome

After closing a tab on google chrome, it doesn't come back to the last active tab but to the one at its right, or left when the new tab is the rightmost.  For example :   On tab 6/10 Open and go to new tab, 11/11 Close the tab, go back to 10/10 tab   Why is that? Is there a way to make it go to the last used tab? (6/10 in my example) I have to use Chrome for several reasons and being used to Firefox this is especially annoying. Honestly I can't believe that in 2018, the most popular browser doesn't do something as simple as that by default.


Exiting the airport without passing through customs - was this a mistake?

I was at Cebu International Airport. It was my first time travelling and I didn't know what to do. I got my luggage and exited the airport without passing through customs. How serious is this mistake?


I've been encountering an issue regarding the spacing between paragraphs:    In this particular page, as there is a new section starting right on the next page, the paragraphs are stretched in order to fill more of the page. Is there a way to avoid this?


I recently noticed on Ask Ubuntu that Community ♦ casts upvotes and downvotes.  I read in  that Community can cast downvotes in some cases, but I haven't found any information on upvotes.  Here's a screenshot from Community's profile on AU:    I checked on a few other sites; here is mechanics.stackexchange's Community profile:    And Stack Overflows:    And last but not least, IoT beta:    So my question is, under what situations can Community vote on posts?


Plotting points using coordinates from excel

I have an excel spreadsheet with co-ordinates (eg. S31 07 35.3). I would like to use these co-ordinates in arcmap (version 10.2) to plot points based on these coordinates. How do I go about doing this because I cannot use the co-ordinates as is? So basically, I need a way of converting these co-ordinates into something arcmap will understand.


A two weeks’ notice is - should the indefinite article truly be there?

As far as I know, when the possesive is used, I really should not use articles because it would bind to the same noun. E.g.:     A two-day trip   Two day's trip   However, I have just found a site which reads:     A two weeks’ notice is a formal declaration of your intention to   resign two weeks from the day you submit it.   Is that truly correct?  F


Will there be any problem re-entering the US with a B-1/B-2 visa after four months away?

I'm from Bangladesh. I have a B-1/B-2 visa valid till 24th July 2018. I had a short visit to USA from 1st-25th September, 2015. When I arrived they gave me six months till 29th Feb 2016, but I left on 25th September. Now I want to go back again for three weeks in February 2016.  Will there be any problem with my entry?


How to enable display on Dell monitor connected to MacBook Pro when not charging?

I've just purchased a Dell P2415Q monitor which I've connected up to my MacBook Pro (running OS X El Capitan). Everything works great in terms of the display, however I've noticed that it goes into power-saving mode (i.e. shuts off the display) as soon as I disconnect my MacBook Pro from its power source.  Given the battery is already charged up I don't want to keep it plugged in as I suspect it will damage the battery life if I keep it that way for a long time (and I do intend to take my MacBook Pro out and about for other uses).  Does anybody know how I can make the display work irrespective of whether my MacBook Pro is connected to it's power source or not?


Model not smooth and imperfect after mirrored in Blender

I am new to Blender. Here are the problems that i faced. After i mirrored and smooth division the model, the mirror seems like not doing well. It is obvious in object mode. The model is not smooth at the middle of the middle part. Another problem is the mouth of model does not match perfectly after smooth subdivision as shown as the picture.  Does anyone know how to resolve this? I can not continue with this until I can get the mirror perfect.  Thanks in advance for those who reply.


Intuitive/Visual proof that $(1+2+\cdots+n)^2=1^3+2^3+\cdots+n^3$

$$(1+2+\cdots+n)^2=1^3+2^3+\cdots+n^3$$  I noticed this only because $\displaystyle \sum_{i=1}^n i = \frac{n(n+1)}{2}$ and $\displaystyle \sum_{i=1}^n i^3 = \frac{n^2(n+1)^2}{4}$.  But the two things look completely different and I can't think of an intuitive reason I would have seen this connection. Something like the 'Proof Without Words' images. Or a trick I could use while expanding the right hand side to transform it to the sum of cubes.


How to handle concurrency exeption in Java while updating sets?

I have multiple sets of objects. I want to add the id (stored in array lists of the objects) to previously existing objects if names(strings) of two objects are the same.       for (OperatorClass s1: set_2)         {             for (OperatorClass s2: set_4)             {                 if (s2.get_Name().equals(s1.get_Name()))                 {                     set_4.remove(s2);                     s2.add_id(s1.get_Id().get(0));                     set_4.add(s2);                 }             }         }   I know this will give a concurrency exception at run time. Can someone guide me on how to deal with this issue?


How do I force the VS designer to not generate code for already existing datagridview columns?

I've got a subclass of DataGridView that adds all the columns it needs in it's own constructor, but when I use this component in the VS designer it insists on generating code to add the same columns on top of the ones added in the component constructor. How do I force it to not generate code for columns it already finds populated inside a datagridview?


Is it correct to use the word " learn" in this sentence or better to use " teach"?

"Animal learn us to never give up " , Or better to say "Animal teach us to never give up" ?


Windows 10 Home: options to disable automatic driver updates for specific devices?

Problems: So far I have only found these solutions:  Disable updates for a specific hardware device using group policy - not an option in Windows Home) Use of  - this didn't work for me as the update didn't appear in the list of updates available to hide Disable all automatic driver updates - leaves me with a potentially unnecessarily vulnerable or buggy system  Is there some better approach to this problem? Background: I have a Lenovo Ideapad S400 (which originally came with Windows 8 Home).  The built-in bluetooth adaptor DOES NOT work with the "updated" driver package that Windows 10 insists on installing.  I am, instead, using the drivers for Windows 8 (from 2016) which DO work. I want to keep using the old drivers for ONLY this device, but allow Windows to update drivers for other devices as it needs to.  Is this simply impossible without spending money to upgrade to Windows 10 Pro (or to replace my bluetooth adaptor)? References: Other people with the same problem in Windows:     Other people with the same problem with the same bluetooth chipset in the Ideapad S400:


Issues using indicator function to find maximum likelihood estimator

I am having trouble understanding how to use the indicator function to help find the likelihood.     Let $Y_1, Y_2, ... , Y_n$ be a random sample from a population with density function   $$ f (y | \theta ) = \begin{cases} 2\theta^2 y^{-3},  & \theta < y < \infty \\ 0, & \text{elsewhere} \end{cases} $$   Find the MLE for $\theta$.   I have two questions about this problem:   We are given that Y min is sufficient for $\theta$. I am told that this is enough to state that Y min is then the MLE for $\theta$ but my question is why this is the case. I know that the MLE is always a function of the sufficient statistic, but I am having trouble understanding how we know that the MLE is ismply $\theta$ and not some other function of the sufficient statistic (such as Y min -1) that involves $\theta$. Ah I hope that was worded clearly. My next question is this. Assuming that we are not given that the Y min is sufficient for $\theta$, I am having some trouble deriving the MLE. Here is what I have so far: $$ L (\theta) = \prod \frac{2\theta^2}{y^3}            = \frac{2^n\theta^{2n}}{\prod y^3} $$   Taking the log of this we obtain:  l ($\theta$) = nln(2) + 2nln($\theta$) - 3 ln( $\prod$ y)  Taking the derivative with respect to theta and setting equal to zero results in:  0 = 0 + $\frac{2n}{\theta}$ + 0  This is obviously an issue because the result does not include the data, so clearly I am missing something. In past experience this result means that the MLE will be either a min or max statistic, but I don't know which one or how to obtain it.  Edit:  Is it enough to just take the log:  l ($\theta$) = nln(2) + 2nln($\theta$) - 3 ln( $\prod$ y)  And say that the likelihood is maximized when the value of y is smallest? So, the MLE of $\theta$ is the minimum statistic?


Every principal ideal domain satisfies ACCP.

Every principal ideal domain $D$ satisfies  (ascending chain condition on principal ideals) Proof. Let $(a_1) ⊆ (a_2) ⊆ (a_3) ⊆ · · ·$ be a chain of principal ideals in $D$. It can be easily verified that $I = \displaystyle{∪_{i∈N} (a_i)}$ is an ideal of $D$. Since $D$ is a PID, there exists an element $a ∈ D$ such that $ I = (a)$. Hence, $a ∈ (a_n)$ for some positive integer $n$. Then $I ⊆ (a_n) ⊆ I$. Therefore, $I = a_n$. For $t ≥ n$, $(a_t) ⊆ I = (a_n) ⊆ (a_t)$. Thus, $(a_n) = (a_t)$ for all $t ≥ n$.  I have prove $I$ is an ideal in the following way:- Let $ x,y\in I$. Then there exist $i,j \in \mathbb{N}$ s.t. $x \in (a_i)$ & $y \in (a_j)$. Let $k \in \mathbb{N}$ s.t $k>i,j$. Then  $x \in (a_k)$ & $y \in (a_k)$. as $(a_k)$ is an ideal $x-y \in (a_k)\subset I$ and $rx,xr \in (a_k)\subset I$. So $I$ is an ideal. Is it correct?


L298 IC motor driver - how to wire and use correctly?

EDITED. I found that my supply of 3V was insufficient as there are voltage drops across the transistors. I replaced the 3V supply with 4.5V and the motor ran fine - although now my 3V motor has 2.5V across its terminals (3.3V to 0.8V). I did not think that DC motors exhibited any voltage drop since the current through their coils is constant. What can be done about this? And how would you calculate the voltage fed to the motor ANYWAY? I found it to be 3.3V simply because I measured it.  I have read over the data sheet for the L298 and it seems quite simple to use. Using one side of the chip (i.e. one H-Bridge) set IN1 to 5V and IN2 to ground to conduct from OUT1 to OUT2. Also, to enable the H-Bridge ENA must be 5V. That is all the wiring needed aside from some stabilizing/filter capacitors and flyback diodes.  So, to not mess with all of that I have simply purchased the Sainsmart L298 Driver module. Below is a photograph of the module and I have drawn on it to illustrate the pins that I have wired.   *Note that I have not included the 5V to ENA because (shown towards the bottom left) the board has some jumpers connected so the pin is always 5V.   Also, there is a state switch at the bottom right. From my experiments, and from what I have read, if the button is depressed (closed) then then VCC is tapped and regulated at 5V for the logic circuitry and the 5V (far right of the bottom screw assembly) can be used to power external circuits. If the button is OPEN then VCC is not regulated and you must supply an external 5V supply to this pin for the logic.   Now, my motor is only rated MAX at 3V DC, so obviously I have to leave the switch open and supply the two sources independently.    What I have noticed:  If I have everything wired up exactly as I have shown in the depiction below (but without the motor!) it works fine!   I have put a multimeter across OUT1 or OUT2 to ground as my microcontroller code executes (simply code to run one way then reverse direction), the polarity of the pin changes as expected.   If I place my motor across a 3V supply momentarily - it runs!  If I place the motor leads into OUT1 and OUT2 (after I have verified that the voltage polarity switches) nothing happens. Actually, the indicator LEDs that show direction (that were working prior) no longer light up with the the polarity of IN1 and IN2 changes.   What the heck is happening? Could it be that the board is not supplying the current required to turn the motors? These motors are quite small and the Absolute Max current draw of the L298 is 2A for a single bridge. I checked the datasheet for these motors and they draw 2.2A at stall and 300mA no load.     Here is the schematic for the actual L298 pin soldered to the above board. As you can see, the wiring scheme that I provided above should work just find. OUT1 should conduct to OUT2. The board just includes protection diodes and filter capacitors.


What is the calculation of the Hubble time based on?

I understand that  Hubble's law states that:$\\$  $v=H_{0}D$  However, given that the Hubble time (an estimate of the age of the universe) is given by $\frac{1}{H_{0}}$, doesn't that mean...  $v=H_{0}D\quad \to \quad \frac{D}{v}=\frac{1}{H_{0}}$  Now, if we are saying that $t_{H}=\frac{1}{H_{0}}$, it's equivalent to saying that $t_{H}=\frac{D}{v}$; so wouldn't this mean that we are implying that the recessional velocity of all objects in the universe has been constant from the beginning of time?  Since D is increasing at a rate $v$ at any time, then $H_{0}D$ must also be increasing; then this would mean that $v$ isn't constant.  Based on the above argument, what is a better way to interpret the Hubble time?


Null pointer exception while passing folder path into the function File file = new File(" path ") through a variable

By using JFileChooser I am asking user to select the folder path.After selection I need to pass the path as a parameter to this line "File file = new File(" path ");" After this it will check folder whether folder contain any files.I am getting null pointer exception.Please help me


How can I go about graduate school admissions? Lack of coursework, poor GPA

I'm an undergraduate in their penultimate year in the US, although for financial reasons I am thinking of graduating next month instead of next year. For a long time, I've wanted to go into academia: I just found the idea of doing research and maybe teaching appealing. However:   My GPA is completely wrecked: it's below a 3.0. I was fairly depressed for a few terms, and I probably had a mismatch with my major, which was made all the worse by poor focus and me not realizing it until recently. Most of my coursework has been for things related to my major. Thanks to a strong liberal arts education, I've taken a good selection of other courses, in which I've gotten significantly better grades more consistently, but that's only around 25% of all my courses. (Think generally around the 3.3 range, at a school and presumably departments not known for grade inflation.) I want to go to grad school for something related to this stuff, but I feel like my preparation would be extremely lacking, particularly with my graduation plans. (Too few contacts, not enough experience, etc.) I'm going to a top 10 or so school supposedly not known for grade inflation in the departments I'm interested in, but I have no idea if this helps.   How can I salvage my dreams of going into academia? At one point, I would have just considered it over and gone into industry, but now, with my current interests, I think it's still worth a shot. But I've had friends tell me I have no chance of getting anywhere decent with my grades, and well, even if they're not the best advisors, the issue of lack of experience and potential references is something.


Do ideal gases at zero Kelvin have potential energy?


Why would recompile query hint result in different plan for same adhoc statement after freeproccache?

This is on SQL 2005 SP2, but I suspect this is something that applies to all query hints in general.   I've got an adhoc sql statement that gets a different query plan solely because of  OPTION(recompile). The batch statement is never (in practice) being reused as it is using non-parameterized dynamic sql generation where the statement changes with dates / other parameters. I've confirmed this is the case by checking the cached plan_handle, always a different ID as values in batch change.   When I do dbcc freeproccache I expect that the query plan I get for the statement would be exactly the same as one with "option (recompile)" query hint added. But its not, its quite different actually (much much faster).   Does anyone know why addition of a query hint would cause the engine to pick a different query plan?   The statement is something like this  dbcc freeproccache go sp_executesql '  declare @begindate datetime declare @enddate datetime select @begindate='1/1/2011' select @enddate='2/1/2011' select count(*) from tableA where tableA.datecolumn between @begindate and @enddate  and exists(  select A union all select B union all select C )'   all I have to do is change the statement to use recompile query hint and I get different (much better) query plan.  dbcc freeproccache go sp_executesql '  declare @begindate datetime declare @enddate datetime select @begindate='1/1/2011' select @enddate='2/1/2011' select count(*) from tableA where tableA.datecolumn between @begindate and @enddate  and exists( select A union all select B union all select C ) OPTION (RECOMPILE)'   As code is passing in the date values I can't use a plan guide to override the default behavior, looks like code change will be required. But I wish I knew where to look on why recompile would force a different plan to be used.


Possible Duplicates:             Isn't there a simple way to mark certain users as favorites and follow their activity.


I checked this on a graphing calculator and noticed there are two solutions for this. How do I find them? Can they be found without the help of a calculator? They were some very arbitrary values, so this there some sort, patter (if that’s the right word to describe this), present in this?


How to draw a tangent line for a circle which come through a given point outside of the circle

this is my code,   \begin{tikzpicture}  \node (A) at (-4, -3) {A};  \node (o) at (0, 0) {o};  \draw [name path = circle] (o) circle (3.5cm);   \end{tikzpicture}   Given a point A outside a circle, I want to:    draw a tangent line to the circle which come through point A.  find the intersection point (between the tangent line and the circle) and denoted this point as B. (I need to use this point to connect to another point later).  Is there a way to do it? Thanks. :)


Run a Python file on a CSV file as soon as it is created in Windows

I have a Python script that parses information in CSV format that's output by another software program.  I want to be able to have this process be automatic, e.g. as soon as I save the exported CSV, it is automatically parsed by the Python script.  I did a bit of research and I think I'd like to use something like inotify for Linux that is mentioned in another question here, but for Windows.  Could anyone give me any pointers? Much appreciated, thanks.


How do re-open votes expire?  I couldn't find anything in the help center, but I did find   I voted to re-open  on June 30, and my re-open vote has expired.  It's possible, but seems unlikely, that the question has been viewed 100 times since I voted to re-open (it's currently at 230 views).  Does a re-open vote expire when a question has been viewed 100 times since the vote has been cast, and a day has passed, or is a day passing sufficient when the question has been viewed 100 times, ever, even if those views were before the re-open vote was cast?


Are classical analogues of quantum computers using superposed waves possible?

The trick of quantum computing is to take the advantage of wave mechanics (superposition) and entanglement. This allows to perform parallel computations/manipulations with $2^n$ superposed waves for $n$ bits. This principle does not rely on quantum mechanics. Superposed waves do also exist in classical mechanics (although I am not sure we can make the number of tones also scale exponentially with the size, but there could be some profit). Are there examples of efforts to create classic analogues of quantum computers that use superposed waves and manipulate those, instead of using bits in silicon chips? (I do not mean efforts to create a virtual quantum computer) This question might be generalized. Are/were there any efforts to try to move away from binary computers?


How long will it take for Google's disavow tool to work?

I had updated the disavow list on March 18th  with spammy domains which were linked to my site. Those links still show up in Google Search Console.  I Wanna know how long does it need to take effect?


I am unable to reach one of my faculty member through email, phone call or even in person, what may I do?

I am unable to reach one of my faculty member through email, phone call or even in person, who have agreed on providing me with a recommendation letter. He is not replying to my email, phone number is unavailable and even not coming to the office. I do not know what is wrong or what is the matter, I might miss a deadline of a university which I am really intending to attend.I have given him multiple reminder and not even sure whether he has seen them or not.


apply same curve angle than other object

I need to create a kid night light with lot of star shape hole, but I don't understand how can I get the stars to get the same angle that the sphere.  I played with simple deformation modifier but don't seems to manage it How can I do that properly ? also as I need probably 20 stars around, will I need to do manually or can I do all in one?


Why apt-get install and remove do not clear the same space

Why do apt-get install package and then apt-get remove package do not consume and clear almost exactly the same space? For example with the package "latex2html" one gets:  ubuntu:~$ sudo apt install latex2html Need to get 758 MB of archives. After this operation, 1,211 MB of additional disk space will be used. Do you want to continue? [Y/n] .... ubuntu:~$ sudo apt remove latex2html The following packages will be REMOVED:   latex2html 0 upgraded, 0 newly installed, 1 to remove and 92 not upgraded. After this operation, 5,578 kB disk space will be freed. Do you want to continue? [Y/n]


Why does the reputation tab displays +1 or +3 for upvotes?

Some days ago in Reputation Tab of some users profile I saw some strange reputation changes like:  +1 Upvote:   +3 Upvote:   For upvotes usually one will get +10. If they get down-votes it's also included in the reputation tab. But what is this +1 upvote and +3 upvote? Is that a bug?


Segmentation fault in a remove spaces program

I am trying to write a program from removing spaces in a string in C. I tried to debug using gdb but I guess I am not very knowledgable in using that tool. My code is as follows:  #include<stdio.h>  void RemoveSpaces(char * str){     char *var1, *var2;     var1 =  str; var2 = str;     while(*var1 != '\0'){         if(*var1 != ' '){             *var2 = *var1;             var2++;         }         var1++;     }     *var2 = '\0'; }  int main(){     char *str = "abc de";     printf("Before: %s\n", str);     RemoveSpaces(str);     printf("After: %s\n", str);     return 0; }   I tried to set watch on var1 and var2 but I get SIGSEGV on line where *var2 = *var1; I looked for some code  before writing my own. Of course, the answer states that its untested but I am doing a similar statement on the line where I get error. Why wouldn't (thereotically) *i = *j++; give an error while *var2 = *var1; would? (I don't want someone to remove my error. I just want to know why I might be getting this error so that I can avoid it in future. )


Detecting perfect squares faster than by extracting square root

Given the radix-$r$ representation of a integer $n$, and a small integer constant $k$, there is an $O(\log n)$ algorithm for detecting whether $n$ is a multiple of $k$, namely, division, which produces as a byproduct the quotient $\lfloor n/k\rfloor$.  In general this is the best one can do. But for certain choices of $r$ and $k$, for example $r=10$ and $k=2$, there is an algorithm which answers the question much faster (constant time) without producing the quotient.  Given the radix-$r$ representation of a integer $n$, we can extract the integer square root $\lfloor\sqrt n\rfloor$ in something like $O(\log^3 n)$ time by doing binary search, which Joriki notes below can be improved to $O(\log^2 n)$ with a sufficiently clever implementation. This gives an $O(\log^2 n)$ algorithm for determining whether $n$ is a perfect square.  Is there a significantly faster algorithm which correctly decides whether $n$ is  perfect square, without also producing the square root? I suspect not, but I would be interested to see a proof.


i found problems here it says,,  non-static method blah blah blah cannot be referenced from a static context   which is the function convertToPostfix and convertToInfix is not a static method....  how to fix this, so that i can now compile my code.     public static void main (String[] args)      {         String n, result;         char character;         do {         character = choiceko();         switch (character)         {             case 'P':             case 'p': n=numberko("Enter a number: ");               =======>  result = convertToPostfix(n); <============                 JOptionPane.showMessageDialog(null,                "Infix: " + n + " to Postfix [" +result+"].");                break;             case 'I':                    case 'i': n=numberko("Enter a Number: ");               =======>  result=convertToInfix(n);<============                 JOptionPane.showMessageDialog(null,                 "Postfix: " + n + " to Infix [" +result+"].");                 break;             case 'E':             case 'e':  JOptionPane.showMessageDialog(null,                  "Program Terminated...","Terminated",JOptionPane.WARNING_MESSAGE);                 break;                           default:  JOptionPane.showMessageDialog(null,                 " Invalid selection. Please Try Again.","ERROR",JOptionPane.WARNING_MESSAGE);                } }


How to get a complete list of object's methods and attributes?

dir(re.compile(pattern))    does not return pattern as one of the lists's elements. Namely it returns:  ['__copy__', '__deepcopy__', 'findall', 'finditer', 'match', 'scanner', 'search', 'split', 'sub', 'subn']   According to the manual, it is supposed to contain      the object's attributes' names, the   names of its class's attributes, and   recursively of the attributes of its   class's base classes.   It says also that     The list is not necessarily complete.   Is there a way to get the complete list? I always assumed that dir returns a complete list but apparently it does not...  Also: is there a way to list only attributes? Or only methods?  Edit: this is actually a bug in python -> supposedly it is fixed in the 3.0 branch (and perhaps also in 2.6)


When I do prototyping I solder my PCBs by hand. That works fine most of the time, but I run into a problem when I have to solder chips with fine pitch (Google for VQ100 to get an idea of what I'm working with). The problem is not the soldering by itself but keeping the parts in place once the pins are aligned to the pads.   Now I'm looking for an adhesive that lets me temporarily stick a large SMD component onto the board so it does not slip away as soon as I touch the pins with my soldering tip.  During a Google search I found a log of SMD adhesives, but all of them are resistant to PCB cleaning substances. I need the exact opposite. Something that lets me temporarily stick a part onto the PCB and dissolves fast in PCB cleaning chemicals (I use isopropyl alcohol if that matters).  Something with the sticky properties like thick honey would work except that I'm looking for a more professional solution.  I'm certainly not the first one to look into this, so there must be a ready made product out there, right?


Prove that sub-trees have a common vertex

OK so this is a bonus question I got that I would really like to solve because I have been sitting on it for an hour without any progress. Any direction from you guys would be very helpful:  Let $T$ be a tree with $n$ vertices, and let $T_1,T_2,...,T_k$ be sub-trees of $T$. So $T_i=(V_i,E_i)$ for every $1\le i\le k$. Also, for every $1\le i\lt j\le k$, let's suppose that  $V_i\cap V_j\neq\emptyset$. Prove that $\bigcap_{i=1}^kV_i \neq \emptyset$.


Triggers on specifc applications in Keyboard Maestro

How can I tell Keyboard Maestro to only enable a given trigger (e.g. a hot key) when a specific application is active?  For example, I would like a specific macro/hotkey that pastes without formatting to only be active when I am editing a document in Word or TextEdit.


Why does the Fibonacci Series start with 0, 1?

The Fibonacci Series is based on the principle that the succeeding number is the sum of the previous two numbers. Then how is it logical to start with a 0? Shouldn't it start with 1 directly?


Suppose $G$ is a group and $K\lhd H\lhd G$ are normal subgroups of $G$. Is $K$ a normal subgroup of $G$, i.e. $K\lhd G$? If not, what extra conditions on $G$ or $H$ make this possible?  Applying the definitions, we know $\{ghg^{-1}\mid h\in H\}=H$ and $\{hkh^{-1}\mid k\in K\}=K$, and want $\{gkg^{-1}\mid k\in K\}=K$. Clearly, the best avenue for a counterexample is if $gkg^{-1}\not\in K$ for some $k\in K$ and $g\in G-H$.  If no such element exists, $\{gkg^{-1}\mid k\in K\}\subseteq K$ implies $\{gkg^{-1}\mid k\in K\}=K$ because if $k'\in K$, $gk'g^{-1}=k\in K\Rightarrow k'=g^{-1}kg\in\{gkg^{-1}\mid k\in K\}$.


Hibernate is disabled, hiberfil.sys gets recreated at each boot

I have Windows 7 running on a small (40GB) partition, with 4GB ram. This means that the hiberfil.sys file created by Hibernate takes up a significant portion of the available diskspace. I would like to remove it.  I am aware that I can disable Hibernate and remove hiberfil.sys by entering powercfg -h off in an elevated command prompt. This works -- the file is immediately removed, and after doing so, the HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Power\HibernateEnabled key is (correctly) set to 0.  However, the next time I reboot the PC, hiberfil.sys returns from the dead, Hibernate is reenabled, and that registry key has returned to 1.  I'm pretty much at my wits' end with this. Almost everything I can find online related to removing the hiberfil.sys file simply suggests using powercfg to turn off hibernation, and that appears to work for just about everyone. But it just keeps coming back for me! (Like a vampire, sucking up my disk space.) I did find  from someone who seems to have had the same issue, but none of the suggestions there worked for the original poster (or for me). Still, I have tried everything listed there, including:   Disabling hybrid sleep Disabling Hibernate through the command prompt, through the Power Options GUI, and through both (in both orders) Manually changing the HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Power\HibernateEnabled key Pretty much everything else I can think of!   I do want to reiterate that I have no problem removing the file -- that works great. It just comes back after every reboot. I'm about ready to throw in the towel and just run a script on login to disable Hibernate each time, even though that seems like a crazily hacky "solution" . . . but I was hoping someone here could suggest something else, first.


What is the equivalent of summarize field in QGIS

In ArcMap, user can create a table that groups the field values using summarize field tool (as shown below)    How can I create a table that summarizes field values in QGIS?


How to make Regex ignore Characters other than Cp1252 character encoding

I'm using regex to match if a string contains at least an alphabet in it. but when the string contains special characters (not in regular Cp1252 encoding) it is giving me result as not matched even when string is having other alphabets. Here is my code  import java.util.regex.Matcher; import java.util.regex.Pattern;  public class StringContainsAlphabetsExample { public static void main(String[] args) {  Pattern pattern = Pattern.compile(".*[a-zA-Z]+.*");   String splChar = "has Alphabet";  Matcher matcher = pattern.matcher(splChar);   if (matcher.matches()) {       System.out.println("Matched");  } else {       System.out.println("Not Matched");   }  } }   Here is the String that causing error   String splChar = "This text has a special char.
";      Copy and paste the above string in notepad to see the special char.    Please let me know how to filter this special characters in the string or any work around to find if string contains alphabets.


What is the root cause of the class imbalance problem?

I've been thinking a lot about the "class imbalance problem" in machine/statistical learning lately, and am drawing ever deeper into a feeling that I just don't understand what is going on. First let me define (or attempt to) define my terms:  The class imbalance problem in machine/statistical learning is the observation that some binary classification(*) algorithms do not perform well when the proportion of 0 classes to 1 classes is very skewed.  So, in the above, for example, if there were one-hundred $0$ classes for every single $1$ class, I would say the class imbalance is $1$ to $100$, or $1\%$. Most statements of the problem I have seen lack what I would think of as sufficient qualification (what models struggle, how imbalanced is a problem), and this is one source of my confusion. A survey of the standard texts in machine/statistical learning turns up little:  Elements of Statistical Leaning and Introduction to Statistical Learning do not contain "class imbalance" in the index.  Machine Learning for Predictive Data Analytics also does not contain"class imbalance" in the index.  Murphy's Machine Learning: A Probabilistic Perspective does contain "class imbalance* in the index.  The reference is to a section on SVM's, where I found the following tantalizing comment:  It is worth remembering that all these difficulties, and the plethora of heuristics that have been proposed to fix them, fundamentally arise because SVM's do not model uncertainty using probabilities, so their output scores are not comparable across classes.    This comment does jive with my intuition and experience: at my previous job we would routinely fit logistic regressions and gradient boosted tree models (to minimize binomial log-likelihood) to unbalanced data (on the order of a $1\%$ class imbalance), with no obvious issues in performance. I have read (somewhere) that classification tree based models (trees themselves and random forest) do also suffer from the class imbalance problem.  This muddies the waters a little bit, trees do, in some sense, return probabilities: the voting record for the target class in each terminal node of the tree. So, to wrap up, what I'm really after is a conceptual understanding of the forces that lead to the class imbalance problem (if it exists).  Is it something we do to ourselves with badly chosen algorithms and lazy default classification thresholds? Does it vanish if we always fit probability models that optimize proper scoring criteria?  Said differently, is the cause simply a poor choice of loss function, i.e. evaluating the predictive power of a model based on hard classification rules and overall accuracy? If so, are models that do not optimize proper scoring rules then useless (or at least less useful)?  (*) By classification I mean any statistical model fit to binary response data.  I am not assuming that my goal is a hard assignment to one class or the other, though it may be.


What would be an informative introduction to quantum computing software?

I am new to Stack Exchange and am working on a quantum learning platform for minority youth groups (LGBTQ, low-income, at risk, etc).  In the question below they are looking for courses on the subject, which I am also interested in, and do plan on checking those links out for ideas.        What I am looking for are simple videos, articles, or even games, that cover basic quantum theory at an introductory level.  There are some games I have looked into and played.  Hello Quantum! was fun and informative, though on my end there was still a lack of comprehension on how the quantum computer (or anything else "quantum") would actually function and play out.   My focus for the educational platform is more directed towards the software side of quantum computing. Is there anything  that gives a good introduction to the functions and uses a quantum computer will have? As well as what language would be best to program one? Also, would there be a way to program a quantum computer through a classical computer? And, is there a simple introduction to any of this already existing?


I have a page with several articles/blogs. I would like to read all the Titles into a list using divs in another page like "check my latest blogs".  I want to read all the div's with a specific class from a specific page and show those title in another page. Initially, I thought to load those tags with PHP, Ajax into a JSON and echo the result. But so far I have no idea how I would do it.  Sounds complicated but I am trying to avoid code maintenance and make the page read and load the Title of the Article from another page automatic.   Yes, WordPress will do the work just fine but I am not a WordPress user.


Scepticism regarding the exponent of -2 in Coulombs law?

So lately I was speculating why nature choose the number 2 in Coulomb's law like why not 2.$10^{100}$ trailing zeros and then 1 or anything else. I find 2 a bit arbitrary  the given explanation being the cancellation of 2 while applying Gauss law in 3d space. So my question is, is there any fundamental explanation for this fact like from QED or something like that?


Edits made to comments do not show up immediately

I edited a comment I wrote within the 5 minute window. However, main question view does not change to reflect the new changes (even after a refresh).  Oddly, selecting to edit the comment again displays the successfully edited comment in the edit text box.  This could lead to a lot of confusion as to whether the user successfully edited his or her comment.


Prevent enter from writing new line in content edititable div

How can I prevent the user from writing a new line with the enter key in a contenteditable div?  So far I have tried (the id of my editable div is editable:  $('#editable').on('keyup', function(e) {     if (e.which == 13) {         event.preventDefault();     } });   However this does not work.   Is this possible using JS and jQuery?     Edit   I have been informed that pressing enter does not insert a new line so I have put a picture showing when happens when I press enter inside the editable div.  I would like code to remain on one line basically, even if the user presses enter.


Add a button to the mobile theme to open a question in the iOS/Android apps

I often find SO answers in Safari and I would like to open them in the App by tapping a button on the site, like Twitter does at least on iOS.   Would it be possible to implement such a feature please?  By pressing the button with a phone you open the user site in the Twitter App:


Exchange particles-real or just mathetical constructs?

Are the intermediate vector bosons real (like the electrons) or just mathetical constructs?i have got a theory to unify the 4 forces, but it does not tell anything about  exchange particles in case of the weak force.I could proceed only if they are imaginary.


My friend sent me this piece of code and it works, but I can't understand what the "ss" means? Can anyone help me out? Thanks.  public static void main(String[] args) {     String sentence;     int index=1;     String[] words;      System.out.print("Please enter a sentence: ");     sentence = EasyIn.getString();      words = sentence.split(" ");      for(String ss : words )     {         System.out.println("Word "+index+ " is "+ ss);          if(ss.matches("[a-zA-Z]+"))         {             System.out.println("Word "+ss+" is a good word");             System.out.print("\n");         }         else         {             System.out.println("Word "+ss+" is a bad word");             System.out.print("\n");         }         index++;     } }


Show that a non-constant holomorphic function has zeroes in a compact set

I am struggling with the following exercise:  Let $G \subseteq \mathbb{C}$ be a domain and let $K \subset G$ be compact with non-empty interior. Let further be $f: G \rightarrow \mathbb{C}$ a holomorphic and non-constant function with $\lvert f(z) \rvert = C$ for all $z \in \partial K$ and some constant $C \in \mathbb{R}$. Show that $f$ must have zeroes in $K$.  My idea is this: I think it should be true that the the maximum value of $f$ on $K$ has to be on the boundary of $f(K)$ and is due to our assumption equal to $C$. So the disk centered at $0$ with radius $C$ should contain $K$. All the values of $f$ in the interior of this disk have to be smaller than $C$ , however. I guess that we may now conclude that $f$ has to be equal to $0$ for some point in $K$. Could you tell me if I am on the right track?


I have a program class and a student class, the student constructor creates a student and stores it in the array, the problem is when I try to print the array I get the following printed out:  metClassTwo.Student@5c74c3aa   How can I get the program to print the array details correctly?  print method:    public static void listStudent() {     for (int i = 0;i < myClassCount;i++) {       if (myClass[i] != null) {         System.out.println(myClass[i]);       }     }   }   myClassCount is incremented by one each time a student is added.  Array:    static final Student[] myClass = new Student[6];


How to reinstall Ubuntu keeping my data intact?

I want to reinstall Ubuntu keeping my data intact. I have 160 GB hardrive (sata or pata I don't know but it's slim and made in China) with a 40 GB ext3 partition, a 4GB swap memory and 3 other partition with a FAT32 file system. I have around 4GB space on my drive where Linux is installed.  I'd like to keep the data intact, especially the Downloads folder, desktop, and /var/www; And I no longer have access to any other machines or external storage devices.


Stack Exchange pinned sites disappear on Android app

When I view all my pinned sites, if I move an item down or up the list, the other items I pass over disappear like so:


How do I create an animated gif from still images (preferably with the command line)?

I want make a .gif animated picture from a given set of .jpg pictures.  I would prefer to do it from the command line, so command line tools would be very welcome.


Java failing to connect to a MariaDB database on localhost

I'm trying to connect to my MariaDB database which is on localhost (using xampp). The first time I connect, the connection is established and I managed to create a table with the two fields "username" "password". Thereafter, when I try to do anything else, the Connection turns null and I cannot insert or execute any queries.  import java.sql.*;  class MyDatabase {     private Connection conn;     private PreparedStatement psAddPerson;       MyDatabase(String host, String user, String password) throws Exception {         Connection conn = DriverManager.getConnection("jdbc:mariadb:" + host,                 user, password);         psAddPerson = null;     }      public void addPerson(String username, String password) {         try{             if( psAddPerson == null ){                 String sqlAddPerson = "insert into users (usern, pass) values (?,?)";                 psAddPerson = conn.prepareStatement(sqlAddPerson);             }             psAddPerson.setString(1, username);             psAddPerson.setString(2, password);             psAddPerson.executeUpdate();         } catch (SQLException e) {             System.err.println("Couldn't create add person");             e.printStackTrace();         }     } }  public class Main {     public static void main(String[] args) {         String host = "//localhost:3306/test";         String user = "root";         String pass = "";         MyDatabase newDb = null;         try {             newDb = new MyDatabase(host, user, pass);         } catch (Exception e) {             e.printStackTrace();         }          String username = "admin";         String password = "password";         if (newDb != null) {             newDb.addPerson(username, password);         }     } }   This code produces a NullPointerException when trying to execute following code:  psAddPerson = conn.prepareStatement(sqlAddPerson);   I want to be able to execute queries to my localhost database.  Picture from phpMyAdmin of server type:   Thanks


How to add an object at a specific posistion in Blender Game Engine

I plan on building a game where enemies are randomly generated throughout the game. I plan on using an empty to run a Python script where it will add a predefined object at a given position (using random.randint to place them randomly around the map).  Is there a specific Python command where I can say something like "Create this object at this given x,y,z position"?  If so, can you please tell me what it is and how to use it?  Also, what is the difference between a Module and a Script in the Python controller?  Thanks so much for your help!  Alternatively, is there a Python function that sets an object's X,Y,Z coordinates?  If so, the empty can jump around randomly dropping enemies off at it's position.


Win10: Change default folder optimization

Using Windows 10, I prefer to treat all folders as "General Items" and use Detail view.  When I create a new folder containing only a few WAV files, the folder optimization automatically changes to "Music".  Similarly, if I create a folder containing a few video clips, it changes to "Videos".  How can I prevent this?  I'm not talking about libraries.  This affects even folders on a secondary hard drive.


Will a proposal's Beta be available for everyone?

Do I have to commit to participate in the beta or will I be able to do it regardless?  I don't want to commit to some proposals but I'd like to participate in them (with no strings attached).


I need to make this: $K(K+1)(2K+7) + 6(k+1)[(k+1)+2]/6$  Equal to this: $(K+1)[(k+1)+1][(2(k+1)+7]/6$  By using algebra and re-arrangement.  From the initial equation there should be just one more step before the two can equal each-other.


Random characters showing up in my output, not sure where they're coming from

I'm creating a program that uses two methods to print all the odd numbers in an array and then get the sum of the odd numbers. However, I'm getting an output that makes no sense. This is the code that I'm using: public class ArrayMethods1 {     public static int[] printOdds(int[]arrayExample) {         int i;         String oddNum = "";         int [] newArray = new int [3];         int x = 0;         for (i = 0; i < arrayExample.length; i++) {             if (arrayExample[i] % 2 != 0) {                 System.out.print(arrayExample[i] + " ");             }         }         int[] sumOfOdds = new int [1];         sumOfOdds = sumOdds(newArray);         return sumOfOdds;     }     public static int[] sumOdds(int[]arrayExample1) {         int i;         int[] oddsTotal = new int[1];         int total = 0;         for (i = 0; i < arrayExample1.length; i++) {             if (arrayExample1[i] % 2 != 0) {                 total = total + arrayExample1[i];             }         }         oddsTotal[0] = total;         return oddsTotal;     }     public static void main(String[] args) {         int [] mainArray = new int [5];         mainArray[0] = 17;         mainArray[1] = 92;         mainArray[2] = 21;         mainArray[3] = 984;         mainArray[4] = 75;       printOdds(mainArray);       int [] oddSum = new int[1];         oddSum = sumOdds(mainArray);         System.out.println(oddSum);     } }  And I'm getting this as output: 17 21 75 [I@51016012 I have absolutely no idea where that second part is coming from, so any help would be awesome. Thanks!


standalone - Can I specify the font size in the document?

I'd like to define the font size in a standalone document so that it is identical to the one in my "real" big document.    I have several standalone-documents. In those, I'd like to implement an option which makes the standalone-documents simply adhere to what is written in font-config.tex (see MWE)--which is currently empty.  (In my main document, I of course define the size as an option for the documentclass (scrreprt), but I am a bit clueless what to do here since standalone does not take \KOMAoptions obviously.)  What should I write into font-config.tex so that it basically mimics whatever I define for my real document?  MWE  \documentclass[ 12pt ]{standalone}  \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern}  \input{font-config} %\KOMAoptions{fontsize=11pt}  \usepackage{ tikz, }  \begin{document} \begin{tikzpicture}[font=\small] \draw (0,0) coordinate (A) (1,1) coordinate (B) ; \draw[thick] (A) rectangle (B) node[anchor=south west, align=left] {Words abc.\\Test.}; \end{tikzpicture} \end{document}


Difference between full frame and crop sensors, with regard to zooming

Given two sensors of different sizes, but with an equal number of pixels, and the situation below; are there any differences in the images captured in the bottom two drawings? Since both sensors have the same number of pixels in both directions, the resulting images will be of the same size.   The first two drawings depict the difference between the sensors using the same lens. The last one has a different lens in order to capture the eqivalent of scene 2.  A couple of questions:   Will there be any differences between the images captured by the second and third drawing? If so, are there circumstances where the crop sensor is able to capture an image that the full frame sensor is unable to do? Will the zoom of a zoom lens be of a different quality than the zooming contributed to the crop sensor?    Thanks!


I have an expired version of SQL Server 2016 RC2 with SSRS installed as well. The developer decided he didn’t get all the RDL from the SSRS before it expired and now needs to recover those. I tried to run the installation to upgrade it, but it fails because the services are not started. I tried to run the Edition Upgrade and it only upgrades a few components of which is not the engine.  How can I recover this?  When the developer installed and configured SSRS they did not save the encryption key, so I don’t believe I can do a new install and restore the mdf.  Is there anything else I can do.


I am working on a C# image where I receive an XML message where one of the elements is a base 64 encoded image.   I am using the dynamic data binding within the WPF element and I want to add an image to the list item.   Below is the WPF that I am currently using  <ListView Height="397" HorizontalAlignment="Left" Margin="491,29,0,0" Name="lstCallLogInformation"                   VerticalAlignment="Top" Width="320">             <ListView.GroupStyle>                 <GroupStyle>                     <GroupStyle.ContainerStyle>                         <Style TargetType="{x:Type GroupItem}">                             <Setter Property="Template">                                 <Setter.Value>                                     <ControlTemplate>                                         <Expander IsExpanded="True">                                             <Expander.Header>                                                 <StackPanel Orientation="Horizontal">                                                     <TextBlock Text="{Binding Name}" FontWeight="Bold" Foreground="Gray" VerticalAlignment="Bottom" />                                                 </StackPanel>                                             </Expander.Header>                                             <Expander.Content>                                                 <ItemsPresenter />                                             </Expander.Content>                                         </Expander>                                     </ControlTemplate>                                 </Setter.Value>                             </Setter>                         </Style>                     </GroupStyle.ContainerStyle>                 </GroupStyle>             </ListView.GroupStyle>             <ListView.ItemTemplate>                 <DataTemplate>                     <DockPanel>                         <StackPanel Orientation="Vertical">                             <TextBlock Text="{Binding contactNameOrPhoneNumber}" FontWeight="Bold" />                             <StackPanel Orientation="Horizontal">                                 <TextBlock Text="{Binding dateString}" HorizontalAlignment="Left" />                                 <TextBlock Text="{Binding callDuration}" HorizontalAlignment="Right" />                             </StackPanel>                         </StackPanel>                     </DockPanel>                 </DataTemplate>             </ListView.ItemTemplate>         </ListView>   So basically within a StackPanel I want to have something like:   <Image Source="{Binding myBase64EncodedProperty}" />   I can't find anything about how this could be possible.


Plugins: Openlayers and OSM-Download QGIS 3

Where are the Plugins for Downloading OSM-Data and the Openlayer-Plugin (with MORE than OSM). These are the most-importent plugins for me! Gone? Then I go back to QGIS 2 ;(


"Candidates answers your questions" for older elections links to recently held elections' meta page

I checked with the election (site_address/election) page of Stack Overflow, Super User, and Workplace, and I noticed that on the page of any year's elections, Candidates answers your questions is always linked to the relevant page of the recently held elections.  So if you pick  for Stack Overflow, the link to [the] candidates answer your questions links to the . The same goes for all the older elections pages of the three sites I tested with.


Do you waste your attack if you try to attack a monster that can't be attacked?

In haunt 28, the Traitor's Tome says:     The Revolver and other Speed attacks can't be used against the Demon Lord.   The Secrets of Survival book doesn't mention this. If a hero tries to make a speed attack against the Demon Lord, do they waste their attack, or do I have to tell them about this before they try?


Gauge theories depend on finite-dimensional symmetry groups like $SU(2)$. Is it possible to construct sensible gauge theories (or at least something similar in spirit) in QFT based on ? If it is possible, is it possible to write down a Lagrangian for such a theory? If it is not possible, why not?


I am wondering why in the pdf of the example below the letters of the word "function" and the word "sum" seem to have different spacing. This somehow looks ugly.   Apart from that, I am wondering if someone has a "nicer-looking"/"easier-to-read" way of displaying R code with the LaTeX package listings.  \documentclass{scrartcl}  \usepackage[T1]{fontenc} \usepackage[american]{babel}  \usepackage{graphicx} \usepackage{fancyvrb} \usepackage{listings}  \lstset{% setup listings     language=R,% set programming language     basicstyle=\small,% basic font style     keywordstyle=\bfseries,% keyword style         commentstyle=\ttfamily\itshape,% comment style     numbers=left,% display line numbers on the left side     numberstyle=\scriptsize,% use small line numbers     numbersep=10pt,% space between line numbers and code     tabsize=3,% sizes of tabs     showstringspaces=false,% do not replace spaces in strings by a certain character     captionpos=b,% positioning of the caption below         breaklines=true,% automatic line breaking         escapeinside={(*}{*)},% escaping to LaTeX         fancyvrb=true,% verbatim code is typset by listings         extendedchars=false,% prohibit extended chars (chars of codes 128--255)         literate={"}{{\texttt{"}}}1{<-}{{$\leftarrow$}}1{<<-}{{$\twoheadleftarrow$}}1         {~}{{$\sim$}}1{<=}{{$\le$}}1{>=}{{$\ge$}}1{!=}{{$\neq$}}1{^}{{$^\wedge$}}1,% item to replace, text, length of chars         alsoletter={.<-},% becomes a letter         alsoother={$},% becomes other         otherkeywords={!=, ~, $, *, \&, \%/\%, \%*\%, \%\%, <-, <<-, /},% other keywords         deletekeywords={c}% remove keywords }  \begin{document}  \noindent Just some text; see Line \ref{foo}. \begin{lstlisting}[caption={A first example}, label=list:ex] x <- c(1, 3, 2) id <- function(x){     x # just a dummy (*\label{foo}*) } 3 <= 4 3 != 4 !TRUE y <- "foo" (pv <- sum(x*x^x)) y ~ x + a \end{lstlisting}  \end{document}


Related to my other , I'm about to buy a new Mac Mini. I would like to reduce RAM to 8GB in order to see if 8GB is enough to my daily tasks in my MBP retina 15 early 2013 16GB RAM.  The idea is I’ll let this mac not make use of any more RAM than 8 GB for the running applications to see if they swap to disk or run well with 8 GB of RAM.  Can I do this sort of artificial restriction on a mac that has RAM soldered or when it’s inconvenient to go physically remove RAM for testing purposes?


C# WinForm TPL Task call unexpected result- what did I do wrong here?

Hi I'm new to multithreading and TPL - testing Task call and writing the status back to text box on Main UI and didn't get the expected result. I'm testing this feature because I need to implement the tool for my work. My program will loop to create 30 tasks and start and showing which task are processing in Text box. I pass "i" counter into DoWork fuction and display that "i" counter. My Code as below private void DoWork(object state)        {            object[] obj = state as object[];            int i = Convert.ToInt32(obj[0]);                         Invoke(new MethodInvoker(delegate()            {                 richTextBox1.Text += "Testing" + i.ToString() + "\n";             }));        }         private void btnTest_Click(object sender, EventArgs e)        {            for (int i = 0; i < 30; i++)            {                Task t1 = new Task(() => DoWork(new object[] {i}) );                            t1.Start();             }        }  I'm expecting 1 to 30 display in text box in random order but it display like this. I have attached the image as well as display in here.  the result seems odd and mostly displaying like below (almost all display 30). "i" is parameter passing to "DoWork" as object. Testing0 Testing3 Testing12 Testing30 Testing30 Testing30 Testing30 Testing30 Testing30 Testing30 Testing30 Testing30 Testing30 Testing30 Testing30 Testing30 Testing30 Testing30 Testing30 Testing30 Testing30 Testing30 Testing30 Testing30 Testing30 Testing30 Testing30 Testing30 Testing30 Testing30 Your help to make me understand and figure out to fix this issue is greatly appreciated. Regards William


Possible Duplicate:          I plan to purchase the LG Nexus 4 from the US on the release date (13th November). The phone claims to be unlocked. But will it be compatible with Airtel in India for both data and call services?


The question says: $S$ is a set of cardinality $c$. Given two distinct elements $x, y ∈ S$, prove that there exist two disjoint subsets $S_1$ and $S_2$ of $S$ and each of cardinality $c$ such that $x ∈ S_1$ and $y ∈ S_2$.  Here is what I am done so far:  Since we know that $|[0,1]|=|\mathbb{R}|=c$. Let $S=[0,1]$, then pick $x=1/2, y=7/10$. Define $S_1=[0,1/2]$ and $S_2=[3/5,1]$, where $x∈S_1$, $ S_1 \subset S$ and  $y∈S_2$, $ S_2 \subset S$.  Since $|[0,1/2]|=c$ and $|[3/5,1]|=c$; therefore, we can conclude that there exist two disjoint subsets $S_1$ and $S_2$ of $S$ and each of cardinality $c$ such that $x ∈ S_1$ and $y ∈ S_2$.  Can someone give me some suggestions on my proof? Thanks!


Road conditions in Latvia and Lithuania in Winter

I am planning to drive from Vilnius to Riga between Christmas and New Years Eve. I would like to know how the road conditions usually are in this time of the year? Especially on the smaller roads.  And is there anything special to consider when driving this route? Here is the . (Recommendations for stops/sights would also be very welcome)


Locked out of 15.04 after the latest update

An automatic update ran yesterday (7/7/2015) and now I am locked out of X windows.  The login screen has gone extra large, so the login box takes up a large part of the screen.  When I try and log in it accepts the password, then dumps me back to the login screen.  I can switch to the terminal with ctrl-alt-F1 and log in OK so there is no issue with my password, but then I am stuck in text mode.    How do I fix this?  Update:  I think I found the cause in syslog:  Xlib: extension "GLX" missing on display: gnome-session-is-accelerated: No hardware 3D support gnome-session-check-accelerated: Helper exited with code 256 gnome-session[...]: CRITICAL: We failed, but the fail whale is dead. Sorry... lightdm[...]: ** lightdm CRITICAL **: session_get_login1_session_id: assertion 'session!=NULL' failed   So it appears that it is failing because it is not getting 3D acceleration, despite having an Nvidia GTX 960 card.   But I still have no idea how to fix it.


How do I make Text Mesh appear five seconds later and disappear from the scene in unity3d

I have a text mesh in my scene. I don't want the test to show right when the scene starts . I want to text to show up in the scene five or ten seconds later on the screen and than the text disappear after five seconds.  I only got one error . Here is my script :  {       using UnityEngine;    using System.Collections;    using UnityEngine.UI;        public class oik : MonoBehaviour    {        private Text text;        public float timeShown;            void ShowMessage(string message, float timeToShow = 10)        {            StartCoroutine(ShowMessageCoroutine(message, timeToShow));        }                IEnumerator ShowMessageCoroutine(string message, float timeToShow = 10)        {            while (timeShown < timeToShow)            {                timeShown += Time.deltaTime;                yield return null;            }              text.text = " The Reqiure Score is 1700" ;        }    }     }


Difference between one-hot-encoding vs. building separate model for each category

Let's say that I have a feature called 'City' which takes 20 different values ( SF, LA, Boston ... ). Let's also say that I have a bunch of other features in my data and I would like to build a classification model ( to book vs. not booked model ). Let's also say that we know that customer behaves differently in each city. Therefore, instead of One-hot-encoding City in my training data and build a single classification model, would it be better if I build 20 different classification models, one for each city to capture booking probabilities better? What would be the difference between both approaches? Which one would you recommend?


At first the question of what $\sqrt{x^2}$ is seems silly. It looks like $x$. And for $x \in \mathbb{R}^+$ it is.  However, for $\mathbb{R}$, I'm not sure. I can think of 3 answers:   $abs(x)$ $\{x,-x\}$ $x$   Which one is correct and why?


How do I move clock to the right end of GNOME 3 Panel from the middle?

How do I move the clock to the right of the panel in Ubuntu GNOME?  In other words, I want the clock to be in the same place as in Ubuntu Unity 16.04.


How much sense does a p-value of <2e-16 make?

I ran a linear regression with one dependent and one explanatory variable. The data covers log returns of an index and log returns of a stock (natural logarithm).  log return of stock = Alpha + Beta + log return of index + error  The p value for the Beta estimate is <2e-16. I googled the meaning of this number, which means that the p value is extremely close to zero, but it does not equal to zero.  Now I am confused, since values below 0.01 show significant results, but what if the p value is practically zero? Does it mean that the regression provides a perfect fit?


How to determine appropriate speaker cable gauge?

When wiring speakers to a 100W consumer-grade amplifier, how do I select an appropriate gauge cable (for 8-ohm speakers)?  Also, if 14 gauge cable is sufficient, what harm is there in using a heavier cable such as 12 or 10 (other than inconvenience and cost)?  Related:   Semi-related:


Canon Pixima G 2010 installation problem

I have been trying to install Canon Pixima G2010 printer in Ubuntu 16.04. But drivers are not in the list. How can I install the drivers?


Are two Hilbert spaces with the same algebraic dimension (their Hamel bases have the same cardinality) isomorphic?

We know that two Hilbert spaces that have orthonormal bases of the same cardinality are isomorphic (as an inner product spaces).   My question is: what can we say when we know that their Hamel bases have the same cardinality? It clearly implies they are isomorphic as vector spaces (just send a basis to a basis and extend linearly), but are they isomorphic also as inner product spaces? (i.e. via an isomorphism that also preserves the inner-product).


Strange artifacts on rendering hard surface modeling

I am having quite a strange problem with the way my model renders. After modeling one of the objects of my scene, I created a quick light/camera setup to check the result of some hard surface modelling. When I set the 3D window to Render View, I get the object with what appears to be a scratches texture    the problem is that the object doesn't have any material applied; I have literally only done the modeling; when I apply some material to the surfaces, the material gets applied but underneath I can clearly see the "scratches".     I have tried to append the geometry into a brand new file, and the problem appears to be bound to the geometry itself; the geometry is not perfect (it is mostly quads) but I don't think the problem is related to topology, for it happens with any object in the scene (including a satellite dish model with perfect topology). An interesting clue is that the actual render appears to be totally clean of any artifact.   I know this problem is not a deal breaker (specially since it doesn't seem to show in the final render), but I really would like to know what the solution to this quaint problem is.  Blend file available on request.  Can anybody help?  Thanks in advance.  Sept


A proof done in class called upon this inequality: $$\left(1+\frac{1}{n}\right)^n\lt e\lt\left(1+\frac{1}{n}\right)^{n+1}$$ How can this inequality be proven?


I am writing code to execute two functions with the same name. I am using two different approaches:  Method1: with storing function in var   <!DOCTYPE html>
I am div1.

I am div2.
            Method2: using simple function    <!DOCTYPE html>
I am div1.

I am div2.
               Why does method1 execute both functions while method2 does not.


I am stuck on the following prelim question:  Suppose that $f$ is an entire function satisfying $$\int_0^{2\pi}|f(re^{it})|dt \leq r^{13/4}$$ for all $r>0$. Show that $f \equiv 0$.  It looks like there are two parts to the solution. The first might be to show that $f$ is bounded implying it is constant via Liouville's Theorem. The second part to the solution would show that $f$ is zero at some point, probably $0$. Maybe multiple applications of the Cauchy Inequalities could show this, or a good use of the ML-Inequality, but I have yet to find the correct application. Any help would be appreciated.


How exactly did Voldemort change his appearance?

So Tom Riddle was described as sort of "handsome" and stuff in the second book.  Then he went someplace and completely changed his appearance, and became snakelike and stuff. I believe he is in the middle of the transformation in the middle when he asks Dumbledore for the job.  How does he do it?


Calculating the average area of the states listed in states.txt

Need someone to calculate the average area, in square miles, of the states listed in states.txt. States.txt (file): State           Population   SqMi      Region  ------------------------------------------ California           39.37   163.7       West Texas                29.36   268.6      South Florida              21.73    65.7      South New_York             19.33    54.7  NorthEast Pennsylvania         12.78    46.1  NorthEast Illinois             12.59    57.9    Midwest Ohio                 11.69    44.8    Midwest Georgia              10.71    59.4      South North_Carolina       10.60    53.8      South Michigan             9.97    96.7    Midwest  Output should look like this: Average Area: 82.85 square miles  Note my awk program will be ran like this: awk –f <file.awk> states.txt


Inverse of a matrix is expressible as a polynomial?

Let $A$ be an $n \times n$ matrix. Prove that if A is invertible, then there exists a polynomial $p$, such that $A^{-1}=p(A)$  Thus far:  Let $W$ denote the $k$ dimensional A-cyclic subspace spanned by a vector $v$.  Then, $I_n=\sum_{i=0}^{k} a_{i}A^i$ for some scalar $a_i$.  What I want to do is multiply both sides by $A^{-1}$, so that way it just falls into my hands, but Im not sure that is 'legal'.


In order to store their arcane spells, does an Arcane Trickster rogue need a spellbook?


"There are a good many scholars ..." is it right?

In "Seeing like a state" of James C.Scott there is a sentence at the beginning of a paragraph (Acknowledgements xi):     There are a good many scholars whose writings opened up new   perspectives for me or provided outstanding analyses of issues that I   could not have hoped to study so comprehensively on my own.   What worries me is a good many scholars. Is this some type of inversion or ancient English? Is this grammatically right? Why is a here? I thought that appropriate version would be There are many good scholars. Am I wrong?


Can I check status of Metadata Deploy using the jobId returned by enqueueDeployment() from Apex?

Metadata.operations.enqueueDeployment() returns a jobId.  Is it possible to use this jobId to get the status of the deploy?  The callback doesn't help me as I'm working in LWC context; The LWC asks the Apex Controller to deploy a Custom MDT record, and I'd like the LWC to periodically ask the Apex Controller if the deploy has completed.  I'd image I could call the checkDeployStatus() method of the Metadata API directly, but up to this point I've been able to use plain Apex, without the need for callouts.  I don't see a ToolingAPI object for DeployRequest to query.  Is this possible?


Chat room Activity on iPad mobile web is 17266d ago... for most of my chat rooms

In fact, of these, only Charcoal shows a recent time stamp.


If I applied for renewal after the expiration date, is there still some kind of grace period while i wait?  I know that there is a 6-12 month grace period when you apply before your NEXUS expires, however, I am wondering about if it has already expired.


About Density and continuous and open function.

I've seen a proposition like that Proposition: If $f:X\longrightarrow Y$ is an open and continuous function and $D$ is dense in $Y$, then $f^{-1}(D)$ is dense in $X$. Is that proposition correct? if so, here is my approach : if $D$ is dense in $Y$, then for all nonempty open $G$ in $X$, $f(G)\cap D\neq\emptyset$ then $f^{-1}(f(G)\cap D)\neq\emptyset$ so $f^{-1}(f(G))\cap f^{-1}(D)\neq\emptyset$, then $G\cap f^{-1}(D)\subseteq f^{-1}(f(G))\cap f^{-1}(D)$. So how can I guarantee that $G\cap f^{-1}(D)\neq\emptyset$ or any solution for that?


How to download videos from MathWorks website?

There are a lot of free videos on . For example  list. There are also a lot of free Webinars that are open to every one.   I do not have access to internet at all times. I would like to watch some videos offline.   Do you know what is the format of these videos, and how can I download them?


How to detect which app is continuously showing "Network Error" toast messages

I want to understand (and report the bug) which app is showing the "Network Error" toast notifications in the middle of the screen each time when I unlock the device. Any tips or ideas?  I'm a JS developer, so can utilise any developer tools if necessary.  Device is stock oneplus 5, Android 7.1.1 if that matters.


Find the maximum among $1, \sqrt {2}, \sqrt[3]{3}... $

Find the maximum among the following :-  $1, \sqrt {2}, \sqrt[3]{3}... $  I think the answer is $\sqrt[3]{3}$.   Thanks for any help.


Define the following matrix norm: $$ ||A||=\frac{\max|\langle Ax,x\rangle|}{||x||_2^2} $$ The spectral radius of $A$ is: $$ \rho(A)=\max_i\{|\lambda_i|:Ax_i=\lambda_ix_i; x_i \neq 0\} $$ Can you provide me some hints to show that: $$ ||A||=\rho(A) \text{ when } AA^T=A^TA? $$


Hello although this question has been asked several times, I still can't position my figures at the right place. I have installed the float and the here packages. and the code is as follow:  \begin{figure}[H] \centering \includegraphics[scale=0.7]{pictures/pic.png} \caption{The Pulse Co-Oxymetrie} \label{fig: Massimo} \end{figure}    even though there is more than enough space left for the image,a new page is created and the figure goes at the top of this new page,while the caption stays at the bottom meaning I have a lot of blank spaces in my thesis.


Is a question about the reason for dislike/like appropriate?

I've got a pretty simple question: Is a question asking why people dislike/like something appropriate for discussion on Stack Exchange websites? For instance, if somebody asked, "Why do some people dislike HTML?" would that be okay for Stack Overflow, and if not would there be a different way to word it, in a way which might not sound as aggressive or angry?


How to prove that: $\int_\Bbb R f(x)dx = \int_\Bbb R f(x-\frac{1}{x})dx$

Let $f\in L^1(\Bbb R)$ How can I prove that: $$\int_\Bbb R f(x)dx = \int_\Bbb R f(x-\frac{1}{x})dx$$  In fact the changes of variables $u=\phi(x) = x-\frac{1}{x}$ seems correct but the image of zero : $\phi(0)$ does not exists.  How can I avoid this issues? thanks


Planning trunk capacity for multiple GbE switches

Without measuring throughput (it's at the top of the list; this is just theoretical), I want to know the most standard method for trunking VLANs on multiple Gigabit (GbE) switches to a core Layer 3 GbE switch.  EDIT: Say you have three VLANs, two are on their own 24x10/100/1000 L2 managed switch; the other VLAN is on the core L3 switch doing inter-VLAN routing:  VLAN10 (10.0.0.0/24) Servers: your typical Windows DC/file server, Exchange, and an Accounting/SQL server.  VLAN20: (10.0.1.0/24) Sales: needs access to everything on VLAN10; doesn't need access to VLAN30 and vice-versa.  VLAN30: (10.0.2.0/24) Support: needs access to everything on VLAN10; doesn't need access to VLAN20 and vice-versa.  Here's how I think this should work in my head:  Switch #1: Ports 2-20 are assigned to VLAN20; all the Sales workstations and printers are connected here.  Optional 10GbE combo port #1 is trunked to L3 switch's 10 GbE combo port #1.  Switch #2: Ports 2-20 are assigned to VLAN30; all the Support workstations and printers are connected here.  Optional 10GbE combo port #1 is trunked to L3 switch's 10 GbE combo port #2.  Core L3 switch: Ports 2-10 are assigned to VLAN10; all three servers are connected here.  With a standard 10/100 x 24 switch, it'll usually come with one or two 1 GbE uplink ports; carrying over this logic to a 10/100/1000 x 24, the "optional" 10 GbE combo ports that most higher-end switches can get shouldn't really be an option.    Keep in mind I haven't tested anything yet, I'm primarily moving in this direction for growth (don't want to buy 10/100 switches and have to replace those within a couple of years) and security (being able to control access between VLANs with L3 routing/packet filtering ACLs).    Does this sound right?  Do I really need the 10 GbE ports? It seems very non-standard and expensive, but it "feels" right when you think about 40 or 50 workstations trunking up to the L3 switch over 1 GbE standard ports.  If say 20 workstations want to download a 10 GB image from the servers concurrently, wouldn't the trunk be the bottleneck?  At least if the trunk was 10 GbE, you'd have 10x1GbE nodes being able to reach their theoretical max.  What about switch stacking?  Some of the D-Links I've been looking at have HDMI interfaces for stacking.  As far as I know, stacking two switches creates one logical switch, but is this just for management I/O or does the switches use the (assuming it's HDMI 1.3) 10.2 Gbps for carrying data back and forth?


How to resolve hostnames from a intranet interface?

I have a public IP and some hostnames pointing to it, on this public IP server I have others intranet interfaces running apache virtual hosts servers, my question is how can I forward external requests to this interfaces?  On a simple apache virtual hosts running in the public IP machine I can easy do that editing /etc/hosts this way  127.0.0.1 mysite.com 127.0.0.1 blog.mysite.com   But by some motive it not work with intranet interfaces  172.17.0.1 mysite.com 172.17.0.2 blog.mysite.com 172.17.0.2 news.mysite.com   ps: A apache server is running on each IP  I simple get ERR_CONNECTION_REFUSED, if a ping it I get the server IP, so the public DNS are working  Can you help me?


Limiting distribution $\frac{\sum_{i=1}^n X_i}{\sum_{i=1}^n Y_i}$

let $X_1,X_2,\ldots,X_n$ be random sample of bernoulli distribution with parameter of $\displaystyle\frac{\theta_1}{\theta_1+\theta_2}$ and let $Y_1,Y_2,\ldots,Y_n$ be random sample of geometric distribution with parameter $\theta_1+\theta_2$. If the two samples are independent of each other, how can I calculate the limiting distribution $\displaystyle\frac{\sum_{i=1}^n X_i}{\sum_{i=1}^n Y_i}$.


What kind of idiot is Richard? - or: Expletives in answers

George Edison and I got in a discussion about my April 30 Rollback to a "NSFW" version of the famous  to the old "Source code comments" question.  While I'm in favour of not using expletives in everyday language here on the site, I strongly feel that editing out the "Fuck"s from this answer is wrong because   it's a WTF classic, and a piece of art, and needs to be either left the way it is or removed completely. Also, it's a quote from a third person.  It's not "NSFW" like an image of a nude person that could get you in trouble at work. It's almost three years old and has been viewed by 433,000 users without an adverse effect on Stack Overflow's culture of communication.    my opinion here is, if you're offended, then don't look at it.  I have reverted it to the "NSFW" version that also contains the OP's very relevant update. I'm not interested in an edit war, and can live with whichever outcome, but a community ruling on this would be good.


Find the number of trailing zeroes.  $k=1^1\times 2^2\times 3^3\times \cdots \times100^{100}$  It usually involves calculating number of $5$'s in  $5^5\times 10^{10}\times 15^{15}\times \cdots\times 100^{100}$   calulating 5's one by one is pretty boring and time consuming are their any other methods.


There's something funky about some titles in revision histories here on Meta Stack Exchange

If you look at  of  on Chrome 34 / Windows 7, you should see the following:    The behavior of the title in revision 7 is probably not by-design.


Description in post merge notice should have a sentence cap like every other post notice description

Currently, the descriptions under closed/locked/protected/bounty notices are in proper sentence case:  closed as noise or pointless by ♦ just now This question does not add anything useful; having it present on the site is actively harmful because it distracts from other more useful questions.    locked by ♦ 2 hours ago This post has been locked while disputes about its content are being resolved. For more info .    protected by ♦ yesterday This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10  on this site.    This question has an open  worth +500 reputation from  ending in 7 days. This question has not received enough attention.  However, the merge notice starts in lowercase:  merged by ♦ 2 days ago this question was merged with Some exactly-cloned question because it is an exact duplicate of that question.  Is anyone up for correcting this inconsistency?


The best way to snatch an expiring domain?

There's a domain that I've been looking to acquire that is expiring on the 30th of this month.  I don't think it is very popular, and the guy hasn't seemed to update the website in two years now.  So, I was doing some research and came across  that seems to review some "snatching" services, but the article is quite outdated.  So, I'm wondering if anyone can offer any newer information on the topic, or whether the recommend any services for helping me acquire the site in question?


Found a way to post answer for closed questions

Yesterday, I asked a question about  in which @Sha Wiz Dow Ard mentioned .  First I thought it needs lot of work but here I found an easy way.   Wait till the question gets closed. An alert appears, "no more answers accepted" and now the post an answer button is disabled. Via developer tools, I remove the disabled attribute and now I tried it worked.   This approach can be easily prevented I guess so, by hiding the button.  Not sure about other methods but this seems to be an easy way to answer to closed question.  I have screenshots,     Since , I guess they won't agree to hide the button.  Anyway just to notify you.


Does the steam copy of Rocket League have implicit support for PS4 Controllers?

I bought Rocket League through Steam today and, on a whim, connected it to my PS4 controller.  Despite my expectations of having to download drivers or the like, it just... worked!  Is this something specific to Rocket League? Steam? Or are the PS4 controllers themselves able to install drivers? I know that in the past, I had to use dsFix to get Playstation Controllers working on PC.  I'm on Windows 8.


I reseted my Windows 8 notebook (Lenovo U410) and reinstalled. Now W8 is installed on my C drive and nothing is on my 24 GB SSD. That mean that SSD is free and I can use it for Ubuntu install? I don't wanna mess my notebook and I want to dualboot Ubuntu and Windows.  Thanks for answering.


For layout reasons I would like to embed my data into a table. Now I'm having a problem if a row is really large because the page is overflowing.   How can I allow a page break if this happens?  MWE:  \starttext \startxtable[option={stretch,width},split=yes]   \startxrow[foregroundcolor=white,background=color,backgroundcolor=black]   \startxcell[nx=2]  \bf Table NAME\stopxcell   \stopxrow   \startxrow     \startxcell[width=0.5cm,background=color,backgroundcolor=black]\stopxcell     \startxcell[background=color, backgroundcolor=gray] \bf Description: \stopxcell   \stopxrow   \startxrow     \startxcell[width=0.5cm,background=color,backgroundcolor=black]\stopxcell     \startxcell        \startitemize         \dorecurse{60}{\item Item \recurselevel}     \stopitemize     \stopxcell   \stopxrow \stopxtable \stoptext


Get latest Time Machine backup when backup disk is unplugged

I know i can get the time stamp of the latest Time Machine backup with the command tmutil latestbackup | grep -E -o "[0-9\-]+$" but this only works when my backup disk is plugged in. If not, i get the error message Unable to locate machine directory for host.  Is there any other way to figure out (through scripting) when the last backup was made?   I'm running OS X Mavericks and the use case would be to eventually run this as remote monitoring for Macs, say, using collectd.


When hovering over a site's logo in the 'Achievements' dropdown box where your net rep change is negative, it says (emphasis mine):     You earned -5 reputation   Now, I agree that isn't wrong, but it doesn't sound right. It kind of feels like the system's mocking me (yes - it bothers me that much!).  Can it be changed to check whether the net change is -ve and if it is, then say:     You lost 5 reputation


Weird erratic mesh color(Normals aren't the problem)

Things I've done: I've looked for extra vertices. I've messed with Normals. I've even tried deleting a section and re-making it.  I deleted half the mesh, mirrored it, and what's weird, is that the weird color isn't mirrored perfectly.     The topology isn't weird, no n-gons, no overlapping vertices Normals are fine.


Dual citizen of VWP countries and potential re-entry to the US on the other

Sneaky I know - but out of sheer curiosity - can someone leave the US on the passport they entered with their visa-waiver (before 90 days), reapply immediately with their other (esta eligible) country passport, and re-enter with a new 90 days?  Or will everything be linked electronically and you get called out at the border?  Thanks!


How to get Normal(Gauss) distribution from unifrom distribution?

I need to use rand(uniform distribution) function in matlab to generate a gaussian/normal distribution. What is the best way to do this?


Has the "demonstrate minimal understanding" flag been removed?

The most useful flag I've found on SO is the "demonstrate minimal understanding" one, as there are a high number of people just asking for test questions to be answered with code without trying it themselves for example.  For the last couple of days I've been trying to use this flag and it seems to be gone from my selection; has it been removed? Have I abused it in some way? Or is there a limit to how many times we can use it in a specified time frame?


No Wi-Fi after dual-boot of 20.04 on Lenovo s230u

I am wondering how to find and install Wi-Fi network drivers for a “Broadcom Inc. and subsidiaries BCM43228 802.11a/b/g/n” device on a Lenovo ThinkPad Twist s230u laptop. I’m a newbie to Ubuntu and here is what I have done so far… Installed 20.04 alongside Windows 10 and since I did not have a network connection the installer did not offer the update option. After reboot, the Wi-Fi does not work. Found an article so tethered with my iPhone and did a software update successfully, but still no Wi-Fi. Found an article to list the network devices and below are photos of the results from the “lshw -C network” and “lspci” commands. Sorry for the glare but I do not know how else to get the command results to here from the offline laptop. If they are a problem, I can come back on from the laptop using the tether again, but I do not have access to it right now. Found an article about disabling Windows fast startup, which I have not tried yet. I have more searching to do, but thought I would start with this post. Thanks in advance!


Is there a way to convert number words to Integers?

I need to convert one into 1, two into 2 and so on.  Is there a way to do this with a library or a class or anything?


I just reset my 2018 MacBook Air and upgraded it to macOS Big Sur. One of the first things I did was install Xcode through the App Store. It downloaded just fine, but got stuck on installing. I've tried restarting my computer, but it didn't work. What should I do?


Passport a bit worn out, could that be a problem?

My friend's passport is a bit worn out.  The passport is biometric and valid for five years(three left). The country's coat of arms, that should be on the cover is no longer visible. And the passport is a bit bent.  The first page with all the details about the person and all the pages inside are intact, no damage whatsoever.


Exempt programs or domain from VPN connection

When I connect to a VPN, all my network traffic is automatically routed through it. Is there a way to add exemptions to that? I don't know if adding exceptions has anything to do with the VPN protocol, but the VPN I'm using is of the OpenVPN protocol.  Speaking of OpenVPN, why is it not installed by default on Ubuntu installs, unlike PPTP?  I could not get the list of IRCHighWay's servers, and this is the result I get trying to connect on XChat with running the bash script running:  * Looking up irc.irchighway.net * Connecting to irc.irchighway.net (65.23.153.98) port 6667... * Connected. Now logging in... * You have been K-Lined. * *** You are not welcome on this network. * *** K-Lined for Open proxies are not allowed. (2011/02/26 01.21) * *** Your IP is 173.0.14.9 * *** For assistance, please email banned@irchighway.net and include everything shown here. * Closing Link: 0.0.0.0 (Open proxies are not allowed. (2011/02/26 01.21)) * Disconnected (Remote host closed socket).   The IP 173.0.14.9 is the one due to my VPN. I had forgotten to check ip route list before running the script, and this is the one after running it:  ~$ ip route list 99.192.193.241 dev ppp0  proto kernel  scope link  src 173.0.14.9  173.0.14.2 via 192.168.1.1 dev eth1  proto static  173.0.14.2 via 192.168.1.1 dev eth1  src 192.168.1.3  192.168.1.0/24 dev eth1  proto kernel  scope link  src 192.168.1.3  metric 2  169.254.0.0/16 dev eth1  scope link  metric 1000  default dev ppp0  proto static   Oh and running the script returned this output:  ~$ sudo bash irc_route.sh Usage: inet_route [-vF] del {-host|-net} Target[/prefix] [gw Gw] [metric M] [[dev] If]        inet_route [-vF] add {-host|-net} Target[/prefix] [gw Gw] [metric M]                               [netmask N] [mss Mss] [window W] [irtt I]                               [mod] [dyn] [reinstate] [[dev] If]        inet_route [-vF] add {-host|-net} Target[/prefix] [metric M] reject        inet_route [-FC] flush      NOT supported   I ran the script after connecting to the VPN.


where will the system search for dynamic libraries?

I want to know where the system will search for dynamic libraries. Let's take nxclient as an example. ldd /usr/NX/bin/nxclient gives me some output, for example   libpng12.so.0 => /usr/NX/lib/libpng12.so.0 (0x00007fcb4a16f000)   Now why did the system select /usr/NX/lib/libpng12.so.0 and not for example /usr/lib64/libpng12.so.0? Both exist. Where is this configured? /etc/ld.so.conf* does not contain /usr/NX and my $LD_LIBRARY_PATH is empty.


Can I cite email communication in my thesis/paper?

In e-mail correspondence, the author of an competing paper has admitted a shortcoming of their method, roughly: "Yes, our method X does not work when used with Y." This is not obvious from their paper and is quite a big point from my perspective.  Can I cite this e-mail correspondence in my master thesis/paper (is there a difference?) and use as motivation for my work? Is this impolite? If I just say, X does not work with Y without citation, I feel reviewers will not believe me/say I did not apply the method accordingly.