I have just installed 18.04 LTS. However, I cannot update. I am getting this error of hashsum mismatch.  sudo apt install gnome-tweak-tool -y Reading package lists... Done Building dependency tree        Reading state information... Done The following additional packages will be installed:   gnome-tweaks The following NEW packages will be installed:   gnome-tweak-tool gnome-tweaks 0 upgraded, 2 newly installed, 0 to remove and 471 not upgraded. Need to get 218 kB/219 kB of archives. After this operation, 1,257 kB of additional disk space will be used. Get:1 http://202.88.160.186:80/data/02bfdb96e8b9e520/in.archive.ubuntu.com/ubuntu bionic/universe amd64 gnome-tweaks all 3.28.1-1 [218 kB] Err:1 http://202.88.160.186:80/data/02bfdb96e8b9e520/in.archive.ubuntu.com/ubuntu bionic/universe amd64 gnome-tweaks all 3.28.1-1   Hash Sum mismatch   Hashes of expected file:    - SHA256:d2fe9e737713b92b3df4875fffeca2b17b66490b1d1e9d061d9d96695cc90439    - SHA1:6e4d32fdfd7cbcd18bcac4a6adf4e875bcc428cd [weak]    - MD5Sum:8835ebc5efb295b47b1ac5d460cca314 [weak]    - Filesize:217600 [weak]   Hashes of received file:    - SHA256:cc60e53fa87b7fa723d35599972fd830ac7d8e74f9c1fa48de9e192752b22614    - SHA1:3c5e500644f32bcb23de03e39d6a6b4828bd03a8 [weak]    - MD5Sum:477873e66b2350f4c63fa5ca881d22d0 [weak]    - Filesize:217600 [weak]   Last modification reported: Mon, 17 Dec 2018 08:56:42 +0000 Fetched 218 kB in 2s (101 kB/s)        E: Failed to fetch http://202.88.160.186:80/data/02bfdb96e8b9e520/in.archive.ubuntu.com/ubuntu/pool/universe/g/gnome-tweaks/gnome-tweaks_3.28.1-1_all.deb  Hash Sum mismatch    Hashes of expected file:     - SHA256:d2fe9e737713b92b3df4875fffeca2b17b66490b1d1e9d061d9d96695cc90439     - SHA1:6e4d32fdfd7cbcd18bcac4a6adf4e875bcc428cd [weak]     - MD5Sum:8835ebc5efb295b47b1ac5d460cca314 [weak]     - Filesize:217600 [weak]    Hashes of received file:     - SHA256:cc60e53fa87b7fa723d35599972fd830ac7d8e74f9c1fa48de9e192752b22614     - SHA1:3c5e500644f32bcb23de03e39d6a6b4828bd03a8 [weak]     - MD5Sum:477873e66b2350f4c63fa5ca881d22d0 [weak]     - Filesize:217600 [weak]    Last modification reported: Mon, 17 Dec 2018 08:56:42 +0000 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?   I tried all possible methods from previously asked questions like.  sudo rm -rf /var/lib/apt/lists/* sudo apt clean sudo apt update   and  Just remove all the content of /var/lib/apt/lists directory:  sudo rm -rf /var/lib/apt/lists/* sudo apt-get update   and  sudo rm -rf /var/lib/apt/lists/partial sudo apt-get update -o Acquire::CompressionTypes::Order::=gz   nothing worked...!!!


What are the visa requirements for US citizen travelling to Italy with a layover in Istanbul?

I am traveling from Chicago O'Hare on Turkish Airlines to Istanbul Turkey. I have a layover in Istanbul for 5 hrs, then board Turkish Airlines and travel to Rome Italy.   I have a current US Passport. Is there a need for a visa in either Turkey or Italy?


Why do black holes warp spacetime so much more than stars that have the same mass?

If I have a black hole with a mass that's exactly the same mass as a star, why does the black hole warp spacetime so much more (light can’t escape) than a star (light can escape) with the exact same mass?  Is it due to the black hole having a singularity, or it being more dense than the star, or something else?


Positioning elements in the middle inside DIVs

I have a problem with this HTML code I'm trying to write. This is the actual code:

Search your carport
         <input type="text" placeholder="Search...">

   In my container fluid I just have a picture, which is like a BG cover, but I want to put a
 and <input> on top of that picture to pretend it's a search bar in the middle of this picture.  This is my CSS for it: (I'm also putting there .cover so you can imagine there is that picture as a background)  .cover {     background-image: url("../img/cover.jpg");     background-repeat: no-repeat;     background-size: cover;     background-position: 50% 60%;     height: 525px; }  .search {     position: relative;     text-align: center;     height: 525px; }   So as you can see, the
 and <input> they are centered, but they are on the top. vertical-align: middle; is not working, also align-item: center; is not working.  Hopefully, I've mentioned everything that is needed. If not, I'm sorry. I'm pretty much new to this.


imac mid 2011 install os x from usb drive

I have a problem here, I got iMac mid-2011 with fresh HDD. I want to install mac os x el capitan from USB drive, but when I click option button on my keyboard there is no HDD or USB drive shown. only internet recovery and wifi connection. when I try internet recovery to reinstall os x, there is lion os x but when entering my app store data it says " this item is temporarily unavailable " please help. thanks in advance


Fixed point iteration convergence of $\sin(x)$ in Java

Is it mathematically correct to say that $\sin(x)$ converges to zero as $x$ approaches $0$?  If the $\sin(x)$ iteration is done starting at $\dfrac{\pi}{2}$ in Java, for $10^9$ iterations, the result is $5.4772255370828254\times 10^{-5}$. Even with the range of the integer data type exhausted, the result is not displaying $0$. Does this mean that it won't converge to zero on a computer?


How to subset a collection by different parameters in Java?

I would like to get subsets of elements of a Java List by specifying some of their parameters. Each element has different characteristics, e.g. x-position, y-position, width, height and type. Now I want to get all elements, which position is in a specific interval, or which width or height is not greater than a given value, or which type equals some String.  My actual solution is, that I wrote a bunch of subset()-functions to apply in each different case.   public List<Element> subsetByPositionX(     List<Element> elements, int minX, int maxX) { /*...*/ }  public List<Element> subsetByPositionY(     List<Element> elements, int minY, int maxY) { /*...*/ }  public List<Element> subsetByMaxWidth(     List<Element> elements, int maxWidth) { /*...*/ }  // some more subset methods for height and width  public List<Element> subsetByType(     List<Element> elements, String... types) { /*...*/ }   I'm a bit unlucky about this, because it is not very generic. Is there a more elegant way to subset elements by different kinds of characteristics?


Is there a method like the rng.randint() in the code below for Java?   Are Math.random() o java.util.Random viable for this aim?    ...      rng.seed(random_seed)    child1, child2 = parents    const1 = child1.const_set   const2 = child2.const_set    cp1 = rng.randint(1, len(const1) - 1) if len(const1) > 1 else 0   cp2 = rng.randint(1, len(const2) - 1) if len(const2) > 1 else 0


ubuntu 16.04 software updater fails with "failed to download repository information"

I've been running ubuntu 16.04 LTS for some months after upgrading from the previous LTS version.  Recently I've run into problems with software updater failing with the message "failed to download repository information".  I've read through some similar questions and tried their suggestions, i.e.  sudo apt-get autoclean sudo apt-get clean sudo apt-get autoremove   I've also tried different download sources from Software & Updates -> Ubuntu Software panel including the one proposed by "Select Best Server".  None of these have worked in fixing the problem.  Here is what I get when I run sudo apt-get update:  $ sudo apt-get update Get:1 http://mirror.clarkson.edu/ubuntu xenial InRelease [247 kB] ... Fetched 571 kB in 0s (778 kB/s) Reading package lists... Done W: GPG error: ...: At least one invalid signature was encountered. W: The repository '...' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details.   (same message occur with other servers)  Any suggestions on what next to try?  Thanks, Glenn


So, I'm having a bit of issue with my code here. I'm getting an error at   if(Front.data==null)      Exception in thread "main" java.lang.NullPointerException     at   DoubleLinky.insert(DoubleLinky.java:17)   How do I fix this, I'm actually having a very hard time learning how double linked list works.  public class DoubleLinky<AnyType> implements DoublyLinkedList<AnyType> {      private MyDoubleNode<AnyType> Front = null;     MyDoubleNode<AnyType> Tail  = new MyDoubleNode<AnyType>();       public void insert(AnyType x)      {         if(lookup(x)==true)             return;          if(Front.data == null)         {             Front.data = x;             return;         }          if(Tail.data == null)         {             Tail.data = x;             return;         }          MyDoubleNode<AnyType> A = Front;         MyDoubleNode<AnyType> C = Tail.next;         MyDoubleNode<AnyType> B = new MyDoubleNode<AnyType>(x, C, A);         A.next = B;         C.prev = B;      }


I've been looking for a while now a way to get the "click lock" in ubuntu 13.10 (for dragging) but so far, I have no success. Universal access lacks this feature, and I have not found some program or utility that allows me simulate it.  According to , it seems that in ubuntu 10.10 there was no way to get it working, but I wonder if this issue has been addressed in the latest versions.  With this command,xte "mousedown 1" I get the desired functionality, but still you would need to type the command on a terminal or bind it to a key. Is there a way to get the same functionality by long pressing the button click?   Thanks for any help.


Given two compact Lie groups $G$ and $H$, will every irreducible representation of the group product $G \times H$ arise as a tensor product of a representation of $G$ with a representation of $H$? Explicitly, for $V$ a $G$-module, and $W$ a $H$-module, their tensor product $V \otimes W$ is the $(G \times H)$-module defined by $$ (g,h) \cdot v \otimes w : = (g \cdot v) \otimes (h \cdot w). $$


Initialize C-style array with non-zero value without loops

We know that C++ allows :  int a[5] = {0}; // or int a[5] = {};   The same works for std::array  std::array a<int, 5> = {};   However, this won't work:  int a[5] = {33}; // in memory( 33, 0, 0, 0, 0 ) std::array<int, 5> = {33}; // in memory( 33, 0, 0, 0, 0 )   Is there any way to initialize the whole array with a non-zero value without using vector or algorhtm?  Maybe constexpr could help? What would be the best solution?  P.S.:  GCC offers   int a[5] = {[0..4] = 33};   but I am not sure if it is valid for other compilers.


Animating appearing/extending strip with gaps

As i am new to blender i decided to learn by recreating some animations which have some interesting problems, and gain more knowledge about how tv intros are being done, collecting some parody intros to videos. I came across a simple yet troublesome effect , found no answer by googling or getting through tutorials and testing methods on this case led me to nowhere.     I attempted to recreate the animation above, especially  the extending/appearing/drawn white strip with "randomly" placed gaps , strip which travels just above surface , casting shadow.   Tried dynamic paint,( with alpha channel) image sequence texture but although effect was very similar, whole invisible strip was casting shadow being Z transparent, in places where white color haven't reached yet.  I tried bezier curves as well(vector mode) but it appears that taper cant profile part in squary way, or maybe i am missing something here.  Shape keys seem to hard way to go , while keeping whole animation of stripe "unrolling" at constant speed.  I tried as well putting an array of planes on the path but it is completely not what i attempt to achieved.   I will edit post and add some pictures tomorrow.


Changing a certain index of boolean list of lists change others, too

so I have a boolean list of lists and I changed a certain index from True to False, and it affects some others element in list of lists too. Why is it happening? is there any alternative?  test = [[True]*9]*9 test[0][1] = False print(test)   The output:  [[True, False, True, True, True, True, True, True, True],  [True, False, True, True, True, True, True, True, True],  [True, False, True, True, True, True, True, True, True],  [True, False, True, True, True, True, True, True, True],  [True, False, True, True, True, True, True, True, True],  [True, False, True, True, True, True, True, True, True],  [True, False, True, True, True, True, True, True, True],  [True, False, True, True, True, True, True, True, True],  [True, False, True, True, True, True, True, True, True]]


Can I change the login email in Stack Overflow

I created my Stack Overflow account using company email. When I leave this company, that email will no longer exist. So can I change the login email to my personal email? Because I don't want to loose my reputation.


Getting Zonal Statistics of Overlapping Circles?

I have a Buildings (polygon) shp file and a DSM. what I wanted to do was to get the pixel values for all the vertices of those buildings, and find another pixel value just around those vertices (say 2m, but exclude values coinciding with the building) that will give the maximum difference when subtracted to the value of the vertex. Finally, retain only the vertex that gave the maximum difference for each building.  What I did is I used the 'Feature to Point Vertices' in ArcMap to convert my building vertices into a point shp file. Then I made a 2m buffer around these points and I used the Erase tool using the Buildings as the erase feature. I thought I'd get the value for the vertices using 'Extract Values to Point' tool and then use Zonal Stat as Table to get the minimum values on the buffer circles. This is where my problem starts, ArcMap won't perform the Zonal Stat as Table because I have overlapping circles and performing the process on each circle is time consuming.  Does anyone have a suggestion to do it in a more efficient manner?


UK family visit visa refused for Indian citizen mother-in-law

I have applied for a visit visa for my mother-in-law to spend spending the Christmas holidays with us. However, it was rejected. In filling out the application, there are two columns, one for how much the applicant is willing to spend on the visit, and the other for much the sponsor will spend. I think I made a mistake and put in £3,000 for the first and £5,000 for the second. Can I correct my mistake and reapply?  From the rejection notice:     VISA APPLIED: CHENNAI, INDIA   VISA FOR : UK- VISIT VISA (FAMILY VISIT)      On your visa application form you state that you are unemployed with no income stated. You state that the cost to you personally of your trip is 3000£, you state that the total amount you spent each month is 50£. You have submitted a copy of STATE BANK OF INDIA account showing a balance of INR 118444 (1437 £) as at 13-10-2016, therefore the balance is less than you state that you have available.      Refusal reason:      Therefore I am not satisfied that your purpose in the UK is as you have stated and on the balance of probabilities I am not satisfied that you intend to leave the UK at the end of your visit as stated by you - and do not intend to live for extended periods in United Kingdom through frequent or successive visits or that you genuinely seeking entry as a visitor for a period not exceeding 6 months. Furthermore I am not satisfied you will have sufficient funds to cover all reasonable costs in relation to your visit without working or accessing public funds V4.2 (a-e)      Future Applications:      Any future UK visa applications you make will be considered on their individual merits, however you are likely to be refused unless the circumstances of your application change.


I just got a new MacBook Pro 2017 128GB no-touchbar, bought it in the refurb.  I'm doing a bit of Photoshop ( I know it's not the best MBP, but I really need it right now for work ) and I have Safari ( 6/7 tabs ) running with Spotify, and I feel like my MBP is too hot. Here are the temperatures according to iStats    I feel like it's really way too hot, but perhaps I'm mistaking. I heard the max temperature is 100°C, so I'm pretty far from that.  What do you think ?  Thanks !


Upload files with HTTPWebrequest (multipart/form-data)

Is there any class, library or some piece of code which will help me to upload files with HTTPWebrequest?   Edit 2:  I do not want to upload to a WebDAV folder or something like that. I want to simulate a browser, so just like you upload your avatar to a forum or upload a file via form in a web application. Upload to a form which uses a multipart/form-data.   Edit:  WebClient is not cover my requirements, so I'm looking for a solution with HTTPWebrequest.


Calculus made easy Exercise 9 Question 4

A piece of string 30 inches long has its two ends joined together and is stretched by 3 pegs so as to form a triangle. What is the largest triangular area that can be enclosed by the string?  I took P = a+b+c and Area = 1/2 (b * h) And found h in terms of a and b.Substituting this value to the h in the area equation I differentiated the Area wrt to b and equated to zero.Is this the right way to do it?  Can this be soved only using heron's forumla(not A = 1/2(base*height)?


Question based on the @whuber detailed answer on fat tailed term

There is one , but I don't get it quite. In fact that answer raised the few additional questions I liked to share.  1. How would you define the tails of the distribution? Seams that this is a fundamental question. In this question you used the mathematical formulation of survival function but I guess you may define the tails based on areas: $(-inf, μ−3σ]$ and $[μ+3σ,inf)$. My hypothesis is if some distribution has "fatter tail" that would be larger area under the PDF curve in that tail area. Is this a good definition of tails of just a simplification? I can agree that on Wikipedia at the moment there are several  at least regarding the fat tailed distribution evaluation based on skewness and kurtosis examination. You confirmed: Please note that moments, like skewness or kurtosis, are not good for characterizing tail behavior. 2. Why the density is not the correct object to study? PDF for continuous functions seams like the best possible function to study because it must add to 1 by definition. So far I meat some distributions like Cauchy that don't have Moment Generating function i.e. don't have moments but how can continuous distribution be without a PDF? Isn't that if we know the CDF ( I like the term cumulative in here) we should know the PDF? 3. CDF should be continuous, and this is the reason for the 2. This is more like helping me to understand the dynamics behind your answer. 4. The terms fat-tailed and heavy-tailed are sometimes synonymous This is from . Would you agree these are synonyms. In here I think the term "long-tailed" is definitely not the synonym with the upper two. Possible confirmation would be fine.


"Hot Network Questions" randomizes too much when navigation in browser history

I really love the "Hot Network Questions" (HNQ) as I love to look at what other communities do; in german I would say "Ich liebe es, über den Tellerrand zu schauen" (Love looking beyond my own's backyard?)   However: Most of the time, I discover hot questions while loading another site (i.e. when I am forced to look around), and this imposes problems and makes the feature almost unusable for me. This is my typical workflow for HNQ-usage:   Grasp topic "How to foo the bar" Done or Clicking some link leading me to further details about Frob This is the moment I have a quick glance on the HNQ   I see some interesting "What's a John?" from a foreign field Doe D'Oh Whoosh, the page load completes and I think "Oh noes, but I was interested in "What's a John?" go-back-one-page "Oh no, it's gone." "Ah I know, search for the topic using the search-box" Argh, this ain't work. I don't find it. Let's hope it pops up again    My proposal now is (sorry if I miss the proper terminology):  Make the HNQ permament w.r.t. the history, i.e. when you click go-back/forward, it should show the same questions from when you initially loaded this entry in the history    edit: A dupe was proposed. However, it talks about page-reload. I think randomization is okay upon reload and loading a new instance; changing contents is what we reload for. I really look for staticness w.r.t. to a single "page-instance", when navigating forward and backward again.


How to most powerful test of size $\alpha$

I have to find the uniformly most powerful size $\alpha$ test for the following pdf- $$f(x|\theta) = exp\{-(x-\theta)\}$$ $x>\theta$  The pdf is 0 for $x\leq\theta$ , Null hypothesis is $\theta = \theta_0$ and alternate is $\theta =\theta_1$.  I am given an i.i.d. sample from the above pdf. I was trying to apply the Neyman pearson lemma but the relative likelihood is constant so I don’t know how to find the UMP size $\alpha$ test, can someone please provide the solution.


I don’t understand why you can go through with an empty bottle (no matter the size) but you can’t go through with a large bottle that has less than 100ml of liquid in it.  All these regulations are supposedly there for safety reasons but it doesn’t seem like really.


Removable singularity for harmonic functions

There seems to be a removable singularity theorem for harmonic functions that somewhat goes like:     Let $\Omega\subset \Bbb R^n$ be an open region and $x_0\in\Omega$, $u$ is harmonic in $\Omega-\{x_0\}$. Now if we have $u(x)=o(\Phi(x-x_0))$ around $x_0$ then there exists $\tilde u$ harmonic in all of $\Omega$ and $u=\tilde u$ in $\Omega-\{x_0\}$.    Here $\Phi$ is the fundamental solution to $\Delta u=0$ in $\Bbb R^n$, and, since dropping the normalising constant doesn't affect our statement above, you may just take $\Phi=-\log|x-x_0|$ in 2D and $=1/|x-x_0|^{n-2}$ in 3D or higher.   I have two questions concerning this theorem:  1). I can't find a satisfactory proof. So far I only found , which however doesn't look okay to me because there seems to be an abuse of $\epsilon-\delta$ language: when the author concluded the proof by letting $\epsilon\to 0$, he seemed to forget the previous part of his proof depended on $\delta$ which depended on $\epsilon$. So is there any other available proof?  2). I think the statement of the theorem is unnecessarily complicated. If $x_0$ is really removable for $u$, then I think it's necessary $u$ is bounded around $x_0$. And then boundedness clearly implies the condition that $u(x)=o(\Phi(x-x_0))$. So why not just say "if $u$ is bounded around $x_0$ then it's a removable singularity"? Why all the fuss about comparing $u$ against $\Phi$?


The meaning of "Angular frequency" of a spring that behaves as a simple harmonic oscilator

In the simple harmonic oscillator model, we talk about the angular frequency and I understand that this tells something about the instantaneous angular velocity of the object. For example, a simple pendulum. But what does this mean when we apply this concept to an object attached to a spring that behaves as a simple harmonic oscillator? There is no instantaneous circular motion for the object, so how can we relate the angular frequency to a system like this?


Create custom projection for Shapefile, given specific target coordinates

I have a somewhat odd situtaion. A client has provided me with a Shapefile that has no projection information, along with an image of the map that it corresponds to. I have run some coordinates through  and it matches no known EPSG code.  So, my next thought is to somehow create a projection that maps coordinates correctly. I know how to create a Proj4 string and test whether it's right, but I don't actually know anything about projections or how to go about this. Are there any tools that would help?


Where can I see my flag count / history?

Is there a section or page that lists my flag count and / or history?


Have a time machine drive automatically disconnect itself after backup

Ive got a time machine hd (its actually a samsung external hd configured as a time machine) plugged into an external monitor at work, when i connect my laptop to the monitor via 1 usb and 1 thunderbolt i get connected to the time machine and it automatically backs up.   When i leave each day and want to take my laptop with me i used to just disconnect all the cable and go, but now because there is an HD attached i need to disconnect it first, before i remove the cable.  Is there a way to tell the time machine to auto disconnect itself after a daily backup or auto disconnect after each backup ?


SPWeb.getFile(Url) exception : value does not fall within the expected range still again

I have a problem of     value does not fall within the expected range   from below code.   string webUrl = "/_layouts/15/wfcourrierdep/ArticlesList.aspx";  string fullpath = SPUtility.GetFullUrl(SPContext.Current.Site,webUrl);             SPFile file = web.GetFile(fullpath);   What can the cause be?


Stay connected {to/with/ on} our Facebook page (prepositional confusion)

Which preposition is appropriate? On, with or to?    Stay updated with/on our Facebook page Stay connected to/on/with our Facebook page Stay updated on the go on/with our Facebook page Stay connected on the go to/on/with our Facebook page.


I was performing a tutorial for beginners designing a hammer in edit mode. With edge mode selected I attempted to select an edge using alt key + LMB. Nothing happened. However, in prior exercises of same tutorial I was able to select edges using same shortcut keys. I couldn't finish my tutorial because blender crashed. I restarted blender to complete my lesson but I came to a blockade when my alt key + LMB stopped working.


I have just discovered  and would love it to bits if my document wasn't full of \autoref's. According to refcheck's documentation, it works with hyperref in general, as long as the latter is loaded first, but apparently that doesn't extend to \autoref's (as per MWE below). Is there a way to make the two work together and correctly mark labels as referenced when done so via \autoref?  \documentclass{article}  \usepackage{mwe} \usepackage{hyperref} \usepackage{refcheck}  \begin{document}  \autoref{mylabel} is referenced here, so why does refcheck mark it as unreferenced?  \begin{figure}     \centering     \includegraphics[width=.5\linewidth]{example-image-a}     \caption{My  caption}\label{mylabel} \end{figure}  \end{document}


Which one  is more appropriate?( only the most appropriate is the right answer)  Who informed you about the matter ? Who informed you of the matter?    which preposition is more proper than other to use after "inform" in the exam?


Can polymorphing monsters spam their ability to effectively give themselves a massive health pool?

Some creatures have an ability that lets them polymorph, such as the Couatl's Change Shape action. I am wondering if this ability could be used again whenever the form is dropped to give the creature a massive effective health pool.  For example, if the Couatl used their action to Change Shape and become a Veteran, then was hit for enough damage to kill the polymorphed form, could it then re-use the Change Shape ability to transform into a fully healed Veteran once more?


Relationship between circumscribed sphere radius and edge length of a dodecahedron?

Hello and I'm a secondary student doing a math exploration, but I'm currently stuck with this problem...  Can anyone kind enough to show me the derivation of the relationship between the circumscribed sphere radius and the edge length in a dodecahedron?  The formula I looked up is this...     $$r = a \; \frac{\sqrt{3}}{2} \cdot \frac{1 + \sqrt{5}}{2}$$   where $r$ is the circumscribed sphere's radius and $a$ is the edge length. (Taken from this reference: )  I notice that the $(1 + \sqrt{5})∕2$ is the golden ratio, but I do not understand the rest of the formula and how to give reasons for using the golden ratio. Can anyone kind enough to explain the reasoning for using golden ratio, and possibly the derivation for the whole formula?  Thank you for your effort to help.


How I can change all symlink to the new path

Please, I want to change the symlink to the new path My symlink's in this form  lrwxrwxrwx. 1 s01 s01 56 Mar 22 13:17 zmjppcxlpq2m.png -> /home/s01/public_html/cgi-bin/uploads/00029/zmjppcxlpq2m lrwxrwxrwx. 1 s01 s01 56 Mar 23 17:03 znviy3civtq3.jpg -> /home/s01/public_html/cgi-bin/uploads/00029/znviy3civtq3 lrwxrwxrwx. 1 s01 s01 56 Mar 24 20:07 zoi46hh4pu32.jpg -> /home/s01/public_html/cgi-bin/uploads/00029/zoi46hh4pu32 lrwxrwxrwx. 1 s01 s01 56 Mar 23 18:22 zqt0h1gy9e4c.png -> /home/s01/public_html/cgi-bin/uploads/00029/zqt0h1gy9e4c   I transferred all files to a new portion from /home to /home2    So I want to change all symlinks to the new path. Ex:  Old:  zmjppcxlpq2m.png -> /home/s01/public_html/cgi-bin/uploads/00029/zmjppcxlpq2m   I want to have  zmjppcxlpq2m.png -> /home2/s01/public_html/cgi-bin/uploads/00029/zmjppcxlpq2m   for all files. what can I do?


I have created an IList variable as below:  IList<vertex> matrix = new List<vertex> ();   Here, vertex is a structure I defined with one of the members being visited (boolean).  But, when I try to modify this member by traversing through the list as below:  matrix[j].visited = false;   It gives an error saying "Cannot modify return value because it is not a variable". Any idea why?


How can i change an index of an array in php? for example  $myArray = {"x","y","z","w"};   I want to change the index of myArray [2] to myArray ["two"]


What does `$` mean in Markdown (on Economics Stack Exchange)?

I was using $ characters to mean, well, "dollars" in a question on Economics SE and it caused the rendered text to go all screwy.  I briefly reviewed the help text but could not zero in on the meaning of that character as markdown.  Finally just "escaped" the character with backslash and got on with things.  But what does $ mean in Markdown?  Does it have a special function on all SE sites, or only some?  (I've been on Stack Overflow and EL&U for a long time and never run across this problem.)


How could the wight plan have worked considering the obstacles?

In S07E04-07,      Team Jon decides to go north of the wall and capture a wight to show it to Team Cersei. They carry on with their plan and actually bring one to King's Landing.   However, in S06E10,      Benjen said "The Wall’s not just ice and stone, Ancient spells were carved into its foundation. Strong magic. To protect men from what lies beyond. And while it stands, the dead cannot pass. I cannot pass.".    How could this plan even work?


Function to calculate geospatial distance between two points (lat,long) using R

I have geocoded points in long, lat format, and I want to calculate the distance between them using R.  This seems pretty straight forward, yet I can't find a function that will do it easily.  I've been attempting to do it with the gdistance package, but it seems very convoluted and oriented to graphing, I just need a number.  Something like distanceBetween(pointA,pointB) that returns a number.


I've closed the terminal killing a process, after that when opening a new terminal the prompt wasn't there.  After searching online other questions, with CTRL-C y get the prompt back. However, when opening a new terminal the prompt is gone again.  I've tried the following code:  ^Cmartin@martin-N550JV:~$  martin@martin-N550JV:~$ ps   PID TTY          TIME CMD 17626 pts/0    00:00:02 bash 20957 pts/0    00:00:00 ps martin@martin-N550JV:~$ sudo kill 20957 [sudo] password for martin:  martin@martin-N550JV:~$ sudo kill 17626 martin@martin-N550JV:~$    Taken from this   I've also uninstalled and then re-installed the terminal, with no success.  Is there a solution for this?


How to bind the endpoint of a line to a rectangle/circle in Illustrator?

I am a beginner user of Illustrator and I like it a lot. I also like to make concept maps like this one:    I was wondering if there is a possibility to easily create and modify  ?   The problem is that if I draw this diagram in Illustrator:    and then I move the rectangle on the left then the line stays where it is :    What I would like is that the rectangles are associated to the endpoints of the lines so that when I move the left rectangle then the line moves with it like this:    I wonder if accomplishing such a simple task with such a powerful vector drawing application as Illustrator is possible or not ? I would hope it is possible but maybe I just don't know how. Could someone please help me out with this ?


Why can't an electron absorb multiple photons?

I am quoting the following phrase from my book  " ... in Einstein's picture, photoelectric effect arises from the absorption of a single quantum of radiation by a single electron ...  "  My question:  Why can't multiple photons strike the electron at the same time? After emission from the metal, why doesn't the electron furthers absorbs photons to reach higher kinetic energy than described by Einstein's photoelectric equation ($K_{max} = h\nu - \phi_0$)?   P.S. I apologise for asking a stupid question.


I made my first batch of beer over the weekend. I didn't have quite enough bottled water on hand to add to my wort to make 5 gallons, so I used tap water. I sanitized the hose sprayer on my sink by soaking it in sanitizing solution for 5 minutes, then used it to spray tap water into my primary fermenter until I reached 5 gallons. (I also figured that spraying would help to aerate.) In the future, should I boil the tap water first, or is adding it this way going to turn out ok?


Legality of custom windows installation discs

I sell custom built computers in a niche market. I include specific software pre-loaded on the systems for my customers. If the customer ends up needing to reinstall the OS then the pre-loaded software is all gone. I have had requests to include recovery media that includes this stuff.   I am aware of the technique behind building a custom windows installation disc and we already do this to image the computers when we finish building them. However, would it be legal to burn a copy of this disc and include it with the system?


For a distant observer can a black hole form and grow in finite time?

Consider an observer at a significant distance away from a collapsing star.  As such when a singularity is born at the core of the star the observer would never see it grow anymore than the infinitesimal point it is at the moment of its creation.   This is because the gravitational time dilation at its event horizon would mean any infalling matter would take infinite time to cross the horizon with respect to observers time.   Keep in mind the observer is away from the star and not inside it as answers to similar questions had falsely assumed that otherwise. So the time dilation for the two would be different.  If this is true no Black hole should technically exist for people at earth as the time required for a blackhole to grow from singularity to things like supermassive blackhole at galactic centers would take infinite time from earth's perspective.   Finally this should mean there are only two ways for them exist   If all matter or the universe itself came out of black hole as only in that case we would have equal dilation leading to their formation in finite time Universe existed since near forever (eternal) .


Let $\mathbf{FinVec}$ denote the category of finite-dimensional real vector spaces and linear maps, let $F\colon\mathbf{FinVec}\rightarrow\mathbf{FinVec}$ be a functor. For each pair of objects $V,W$, the Hom-set $\operatorname{Hom}(V,W)$ is itself a finite-dimensional vector space and we equip it with the unique structure of a topological space/of a smooth manifold that is compatible with its vector space structure. The composition maps are then continuous/smooth. In this way, we view $\mathbf{FinVec}$ as enriched over the category $\mathbf{Top}$/$\mathbf{Diff}$ respectively. It then makes sense to ask whether the functor $F$ is enriched over $\mathbf{Top}$/$\mathbf{Diff}$. That is just to ask whether the induced map $F\colon\operatorname{Hom}(V,W)\rightarrow\operatorname{Hom}(FV,FW)$ is continuous/smooth for all $V,W$. (Irrelevant to the rest of the question, but the reason this is a useful notion is that it is the natural hypothesis assuring that the functor induces another functor on the category of topological/smooth vector bundles, applying the original functor fiberwise.) In the case $V=W$, by functoriality, we can restrict $F$ to a group homomorphism $\operatorname{GL}(V)\rightarrow\operatorname{GL}(V)$. If the functor is continuous/smooth, so is this map. Note that $\operatorname{GL}(V)$ is a Lie group. It is a general result that a measurable group homomorphism between Lie groups is automatically smooth. This begs the following questions:  What's an argument for the existence of functors that aren't continuous? Can we construct one? Given the above, it either happens that the restrictions to $\operatorname{GL}(V)\rightarrow\operatorname{GL}(V)$ are continuous and continuity fails elsewhere, or the induced maps will be non-measurable, so that the construction will necessarily have to involve choice to some extent. Are there continuous functors that aren't smooth? Given the above, a continuous functor will have smooth restrictions to $\operatorname{GL}(V)\rightarrow\operatorname{GL}(V)$, but smoothness may fail elsewhere.


I am making an old family recipe for Easter Bread, but I would like to make a vegan version of it for a friend.   The non vegan ingredients that the recipe calls for are:  milk (substituting with almond milk)  butter (substituting with Earth Balance)  3 egg yolks  Help!! I can not think or find a good alternative to just 3 egg yolks. I am questioning the consistency of a lot of the suggestions I have found online.  Thank you in advance for all suggestions and ideas!


Without any doubt there are fontsize switches in the form of control sequences (described  for instance.) But, from time to time I ran into code examples where environment versions of those were used, e.g. \begin{small}...\end{small}. After testing those successfully I began to incorporate them into my TeX vocabulary.  A few days ago @GonzaloMedina commented on one of my answers that those environments do not exists and constructions relying on them work by pure coincidence. Then I tried to find out more about those ominous environments. Ominous because they don't seem to be somehow documentated. (The only thing I found that tried to explain them in a somehow systematical manner was some Wikibooks resource.)  Are these environments real or not?


How to prove that $[G:xHx^{-1}] = [G:H]$ given $H \le G$?

The problem is as follows:     Let $G$ be a group and $H$ a subgroup of $G$ (i.e., $H \le G$); let $x$ be any element of $G$ (i.e., $x \in G$). To prove that $[G:xHx^{-1}] = [G:H]$.   I am able to justify that the $xHx^{-1}$ is indeed a subgroup of $G$ (i.e., $xHx^{-1} \le G$) and that $|xHx^{-1}| = |H|$.   To prove that $[G:xHx^{-1}] = [G:H]$, it is necessary to provide a bijective function $F$ between the set of (different, left) cosets of $H$ (denoted $S = \{ aH : a \in G \}$) and that of $xHx^{-1}$ (denoted $T = \{ a (xHx^{-1}) : a \in G\} $).   I have tried the function $F(aH) = a(xHx^{-1})$, but failed to show it is bijective. Could someone offer a hint of the feasible function?


msvcr71.dll is missing on Windows 7 and I can't register my dll throw regsvr32  I just can't understand why it can happen Does this dll come with OS, or I can install C++ runtime libraries, or .NET framework to present this file in Windows?  The question is: what (C++ runtime/NET framewor/...) have I to download to present this file in Windows 7?


How to compare two column of a file and a list and print not matching pattern with awk

I have a data file A.tsv (field separator = \t) : id  mutation 243 siti,toto,mumu 254      267 lala,siti,sojo 289 lala  and a template file B.txt (field separator = not important because only one line and one column) : lala,siti,mumu  I want to create a new column in A.tsv(but in a new file C.tsv) named mutation_not were are printed only the mutation present in the mutation column of A.tsv that are not present in the list of B.txt. C.tsv looks like this: id  mutation    mutation_not 243 siti,toto,mumu  toto 254      267 lala,siti,sojo  sojo 289 lala  I tried with exclude: awk 'NR==FNR {exclude[$0];next} !($0 in exclude)' file2 file1  but I don't have any good result. Do you have an idea? Thanks


How can I convert PDF files to HTML with Python?  I was thinking something alone the lines of what Google does (or seems to do) to index PDF files.  My final goal is to setup Apache to show the HTML for the PDF files, so anything leading me in that direction would also be appreciated.


All-in-one tool to create and export all the iOS icon sizes

Hi I'm an iOS developer and I'm wondering how you design professionals create all those iOS icon sizes that are needed for an app.  For the most part I have seen this as a two-step process:   Create the icon image in one editor Export it into the different sizes   Is there a tool that can easily do both?  That isn't overly complicated?  One button press and all your icons are created and appropriately named?


Effect of doping on the width of depletion layer of PN-junction diode

I've read that if there is very low doping in a pn-junction diode, the depletion region will be large because a large volume of depleted semiconductor is needed to generate enough electric field to balance the diffusion current. I have trouble understanding this.  How is it that a large volume of depleted semiconductor is needed to generate enough electric field to balance the diffusion current in case of low doping?


is a task oriented plugin that allows for example to assign a set of files to a task. Is there a Mylyn type plugin for Visual Studio?


How many degrees of freedom for $\rm N_2O_2$?

From my reading, I have understood examples a diatomic molecule to be $\rm N_2$ or $\rm O_2$, however, the below seems to suggest that $\rm N_2O_2$ is also diatomic. Is this correct and can someone please explain?  My answer for the below question was 6 degrees of freedom (3 translational, 3 rotational, not high enough temperature for vibrational).     Q. The main components of air are $\rm N_2$ and $\rm O_2$. Assume that we can approximate air as only made from these two gasses.   At room temperature how many degrees of freedom does air have? State what type of movement (vibrational, rotational and translational) each of these degrees of freedom corresponds to.      Ans. This is a diatomic gas at approximately room temperature. It has 5 degrees  of freedom. 3 of these degrees of freedom correspond to the translational  movement of the particles (one in x, one in y and one in z direction) and 2  correspond to the rotational movement of the molecules (abut the two axes  perpendicular to the line joining the two atoms).


Remove a child with a specific attribute, in SimpleXML for PHP

I have several identical elements with different attributes that I'm accessing with SimpleXML:  <data>     <seg id="A1"/>     <seg id="A5"/>     <seg id="A12"/>     <seg id="A29"/>     <seg id="A30"/> </data>   I need to remove a specific seg element, with an id of "A12", how can I do this?  I've tried looping through the seg elements and unsetting the specific one, but this doesn't work, the elements remain.  foreach($doc->seg as $seg) {     if($seg['id'] == 'A12')     {         unset($seg);     } }


How can I control block visibility with code?

In Drupal 6, I could control block visibility using PHP code in the block UI configuration like:  <?php return MYMODULE_abc() || MYMODULE_def() ; ?>   These functions looked up the current node, taxonomy, etc. to decide on whether to display the block. This PHP option is gone in Drupal 8, but there is a $visibility field in BlockBase. Can I use this to programmatically set the visibility at runtime?


How to interprete results from Poisson random coefficients analysis?

I have obtained the following results in R from a random coefficient Poisson analysis.  Generalized linear mixed model fit by maximum likelihood ['glmerMod'] Family: poisson ( log ) Formula: frequency ~ 1 + insgen + ageveh + make + area + (1 | ID)     Data: Panel     AIC       BIC    logLik   deviance    1099.9670 1134.9262  -541.9835  1083.9670   Random effects:  Groups Name          Variance   Std.Dev.  ID  (Intercept)     1.551e-11     3.939e-06  Number of obs: 584, groups: ID, 584  Fixed effects:            Estimate    Std. Error   z value   Pr(>|z|)     (Intercept)    -22.98292   8432.07738    -0.003     0.9978    insgenM          0.02616     0.08806      0.297     0.7664    ageveho          0.05889     0.08586      0.686     0.4928   make             -0.10447    0.04126     -2.532    0.0113 *  area1             23.68571  8432.07738   0.003    0.9978    area2             23.85969  8432.07738   0.003    0.9977   area3             23.77374  8432.07738   0.003   0.9978      Signif. codes:  0 ‘’ 0.001 ‘’ 0.01 ‘’ 0.05 ‘.’ 0.1 ‘ ’ 1  Correlation of Fixed Effects:      (Intr)  insgnM  ageveh  make    area1   area2    insgenM   0.000    ageveho   0.000  -0.037     make      0.000   0.071 0.108   area1    -1.000   0.000 0.000  0.000     area2    -1.000  0.000 0.000  0.000  1.000  area3   -1.000  0.000  0.000  0.000  1.000  1.000         I have included predictors:gender (Male,female), area which has 4 levels (area 1,2,3,4) and vehicle age (New and old) and make of car.


How to run old games installer on Windows 10?

I have a couple of old CD games such as Mig-29 Fulcrum, F-16 Novalogic and F-22 Raptor etc. and I want to install them. When I load the CD in my laptop it runs and open's up the launcher but when I click the "Install Game" nothing happens.   The setup launcher doesn't launch. Why?  Is this because it is a 32 bit installer or 16 bit Installer? (I have windows 10 64 bit). I even manually go to the setup located in the CD and try to run it in compatibility mode, admin Mode etc, but the setup Application doesn't run/open up/start. How do I make the setup application to run on my laptop?


PHP: Right way to declare variable before use in loop

I have a variable that is built in loop. Something like:  $str = ""; for($i = 0; $i < 10; $i++) $str .= "something";   If $str = "" is ommitted, I get undefined variable notice, but I thought php auto-declare a variable the first time it sees undeclared one?  How do I do this right?


What happens in a circuit, when the wire and the battery are superconducting. And shorted

When a wire with no resistance is connected to the terminals of an ideal battery, will a current exist in the circuit? If a capacitor is added to the circuit, will it be charged by the battery or will it remain uncharged?  In all cases there is absolutely no resistance through the circuits.


How much energy is necessary to set a year to exactly 360 days

How much energy would be necessary to slow down Earth rotation such that a year was 360 days long?  In the same spirit: how much energy would be necessary to make the Earth rotate faster around the Sun such that a year was 360 days long?  (Just for fun: how would you do it practically?)


I was reading the Lord of the Rings books and noticed something strange. The elves are the most magically powerful native race on Middle Earth, and they created the Rings of Power (under the guidance of Sauron).   Therefore, they should be almost completely resistant to the Rings. However, Galadriel was tempted, to say the least, to take the Ring from Frodo. On the other hand, Gimli was not visibly tempted to take the Ring, but Boromir was. Could someone please explain this to me?


I will use the notation and language of Stichtenoth, Algebraic Function Fields and Codes.  Let $F$ be a function field over a finite field $\mathbb F_q$, $S$ a non empty set of places (possibly infinite) and $O_S$ the holomorphy ring of $S$, i.e., $O_S:=\bigcap_{P\in S} O_P$ (being $O_P$ the valuation ring of the place $P$).  Give necessary and sufficient conditions for $O_S$ to be a Principal Ideal Domain.  Many thanks in advance!  G.


Why was the Windows File Transfer so bad at predicting transfer time?


Simple way to count character occurrences in a string

Is there a simple way (instead of traversing manually all the string, or loop for indexOf) in order to find how many times, a character appears in a string?  Say we have "abdsd3$asda$asasdd$sadas" and we want that $ appears 3 times.


What is a good tool to sync two computers

At home I've got a pc tower running arch linux. Recently I also acquired laptop for on the road, but I'd like to be working on the pc tower when I'm at home.  Now I'm pretty sensitive as to how my machine is configured (that's why I need the laptop, I hate the windows 7 stations at my university). I was wondering if there is a way to synchronize these two machines? I would like these to be "exact" clones of each other, so I could seemlesly switch from one to the other (after the sync of course).  I was thinking about using rsync but I don't know if that's the best option. If so, what should I be careful of? Are there any good tutorials out there?  Also, if possible, I would also like the use the home pc as a website server, so there are some sections of the machine that need not be synced (namely the website's directories).  Just to be clear: both computers will be running Arch Linux.


How do I catch jQuery $.getJSON (or $.ajax with datatype set to 'jsonp') error when using JSONP?

Is it possible to catch an error when using JSONP with jQuery? I've tried both the $.getJSON and $.ajax methods but neither will catch the 404 error I'm testing. Here is what I've tried (keep in mind that these all work successfully, but I want to handle the case when it fails):  jQuery.ajax({     type: "GET",     url: handlerURL,     dataType: "jsonp",     success: function(results){         alert("Success!");     },     error: function(XMLHttpRequest, textStatus, errorThrown){         alert("Error");     } });   And also:  jQuery.getJSON(handlerURL + "&callback=?",      function(jsonResult){         alert("Success!");     });   I've also tried adding the $.ajaxError but that didn't work either:  jQuery(document).ajaxError(function(event, request, settings){    alert("Error"); });   Thanks in advance for any replies!


In convex optimization, must equality constraints be linear or affine?

In convex optimization, the feasible region is convex if equality constraints $h(x)$ are linear or affine, and inequality constraints $g(x) \leq 0$ are convex. Does this mean that if $h(x)$ is nonlinear, then the optimization problem is non-convex? Is there any special case where $h(x)$ is nonlinear and the feasible region is still convex?


Why do we use decimal system?   Some people give the answer that we have 10 fingers and it is therefore convenient for us to use decimal system, but I am not satisfy with this as I think this is too rough. Are there more reasonable or scientific explanation about why do we use decimal system or what are the advantages of using decimal system? Thank you.


How can I draw a semi-transparent arrow in TikZ without internal overlap?

Drawing a semi-transparent arrow should be easy enough, right?  \documentclass{article}  \usepackage{tikz} %\usetikzlibrary{arrows} % this doesn't change the result  \pagenumbering{gobble}  \begin{document}  \begin{tikzpicture}   \draw[-stealth,line width=12pt,opacity=0.5] (0, 0) -- (0, 2); \end{tikzpicture}  \end{document}   However, this produces the following result:    Note that the arrow is darker than it should be where the rectangle and arrowhead overlap.  How can I get an arrow of this shape and size without this artifact? (Clean solutions preferred.)


Ways to grab the data which a browser sends to a server?

How can I grab the data which the browser sends to a server?   Is there any specific application for it?(windows and linux systems)


DSP stackexchange question suggested to be posted here, about LaTeX and math equations

My biggest stumbling block has been to write math equations neatly, as I write on paper. Many advise me to use LaTeX that I have to learn. I also used to not know how to write here. Now I am learning how to write better when someone edits my questions or answers, and I also get an idea about learning. If I see an equation of interest, I go into edit mode and see what the code for the format actually is. That is one of way learning. Where can I start systematic learning, I mean the references and links etc? And another question is, does that help me in learning/using LaTeX?


Css align items horizontally and vertically at the center

I am trying to place the input field at the center of the page, any help. So far i have only been able to center the contents horizontal, the vertical centering has failed. <!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <title>Document</title>     <style>         .container {            display: flex;            align-items: center;            justify-content: center;          }         input[type=text] {             margin: 0;         }          form {             border: 1px solid blue;         }     </style> </head> <body>     <div class="container">         <form action="">             <input type="text">         </form>     </div> </body> </html>


Cannot see OpenLayers under Plugin in QGIS?

Although I have installed the OpenLayers plugin in QGIS 2.4, I cannot see it in the list when I click on Plugins.    Does anyone else have this issue?


Are there expansions of the expression $(a+b)^{1/n}$?

Is there an expansion of the expression in the bracket such as  $$ \sqrt{a + b} = (a + b)^{1/2}$$  If not do you know of a method that lets us solve such expression and ones with higher roots?


Find specific word in all files in and beneath current directory

I want to find all files, and print the path and filename, for any file where the text "Numlock" is used - whether it is lower-, upper- or mixed-case.  What command should I use ?


How is Schengen area revisited at end of six months?

As you may be aware, the Schengen visa area of Europe allows for Canadians to visit all of the countries under the Schengen treaty, without need for a visa, and for a period of 90 days out of any six month period.   I am a Canadian citizen currently visiting Spain.  In 2014, I entered the Schengen area in Paris, France, on October 25th.    As of April 25th 2015, it will be six months since my initial entry into the Schengen area.  As of April 25th 2015, my stay in the Schengen area will come to a total of approximately 70 days.  It is my intention to stay in the Schengen area beyond April 25th, if I am allowed to initiate a new six month period per the Schengen agreement.  My question is: am I allowed to initiate a new six month period without need to exit and re-enter the Schengen area?


How to make all font type same in my Bibliography?

I am not sure is there a setting to make all the font style the same especially for my URL Link in my Bibliograph  I am not sure how can I post my who MWE which is quite a large file.    Below is the code:   \pagestyle{fancy} \pagenumbering{roman} \setcounter{page}{2} \doublespacing   Is there a way to force all font style the same in my Bibliography?


Do I have to buy Minecraft java edition if I have purchased MCPE?

I already purchased MCPE and now I want to play Minecraft java edition. Do I have to purchase Minecraft java edition? Or can I download it for free.


What are the odds of hitting exactly 100 rolling a fair die

I roll a fair die and sequentially sum the numbers the die shows. What are the odds the summation will hit exactly 100?  More generally, what are the odds of hitting an exact target number t while summing the results of numbers sequentially drawn uniformly from a set S.  I have experimentally tested this and the result is (warning - spoilers ahead):      1 over the expectation of the drawn numbers. In the case of the fair die 1/((1+2+3+4+5+6)/6) = 6/21 = 2/7   However I do not have a strong intuition, let alone a formal proof, why this is the case.  I'll be happy to get your thoughts!


Where to find journals or other publications for my work?

I have written papers on the topic of network security.  Now I am trying to find a place to publish one of them.  Is there a list of publications by topic, somewhere?  If I come across such a list, how can I determine the reputation of the various publications?


Markdown: Fix for excessive vertical spacing? Uh, no, that's a feature already requested!

How can I fix the excessive vertical spacing between "like:" and "cat.." below? Notice there is no empty line in the markdown, but an abyss in the rendering of the HTML.  Update: this  gives a rather ugly workaround (it uses numbering by hand) to a similar issue. I can't find how to transpose that workaround to bullets, not make the long line starting with cat indent properly.  Update 2: this turns out to be a CSS bug-or-very-poor-choice, and a  as pointed in a .    Example   Mammals  like:   cat multidisciplinary study including sedimentologic, stratigraphic, isotopic, and palynological aspects in order to reconstruct the paleoenvironment and to evaluate biochronologic and paleogeographic implications. cow dog   New faunal and stratigraphic evidence documents the validity of the North American Clarkforkian. Smurf     That is produced by this markdown:   ___ Example - 1. **Mammals**   like: - cat multidisciplinary study including sedimentologic, stratigraphic, isotopic, and palynological aspects in order to reconstruct the paleoenvironment and to evaluate biochronologic and paleogeographic implications. - cow - dog   New faunal and stratigraphic evidence documents the validity of the North American Clarkforkian.  2. **Smurf**   and translates into this HTML

Example

Mammals

like:

cat multidisciplinary study including sedimentologic, stratigraphic, isotopic, and palynological aspects in order to reconstruct the paleoenvironment and to evaluate biochronologic and paleogeographic implications.

cow

dog

New faunal and stratigraphic evidence documents the validity of the North American Clarkforkian.

Smurf


Prove the function is not differentiable at (0,0)

Take the function  $$ \begin{cases}f(x,y)=(x^2+y^2)/\sin(\sqrt{x^2+y^2}) & \text{when } 0<\lvert (x,y)\rvert<\pi\\   0 & \text{when } (x,y)=(0,0) \end{cases}$$  I got that this function is differentiable at $(0,0)$. I calculated the partial derivatives at $(0,0)$ of which both were $0$ and trying to show the definition of differentiability is not satisfied but I keep getting that it is. Plz help.


Is there a way to create a feature layer (or other queryable layer) from a local JSON file? I have a feature layer that was exported to JSON (not geoJSON) and need to display it completely offline. Is this possible?  Using ArcGIS JavaScript API 3.21


Is the class of power-associative algebras finitely axiomatizable?

A power-associative algebra is a magma $(M, *)$ where the subalgebra generated by any element is associative. This can obviously be axiomatized by an infinite set of equational identities. Can it also be finitely axiomatized in first-order logic, preferably with only equational identities? I asked this question a while ago, in , but I didn't receive a satisfactory answer.


Blank line at the top of JSON answer from PHP json_encode

I am struggling with my json answer as I got different answer when I work localy and on my hosted server (1and1). I use jquery autocomplete and $.getJSON to retrieve data from my database. When I work locally my JSON answer doesn't contain blank line at the begining of my answer and the accentued characters are well interpreted. However when I use same code on my hosted server I got a JSON answer with a blank line at the top of my answer and accentued chars are not well interpreted. The answer of my JSON looks like   [{"id":"17035","label":"45110-Germigny-des-Pr\u00c3\u00a9s","value":"45110-Germigny-des-Pr\u00c3\u00a9s"},{"id":"17041","label":"45110-Saint-Martin-d'Abbat","value":"45110-Saint-Martin-d'Abbat"}]   I set the header of my php script to utf-8 but doesn't help. below the output with non encoded chars   Any help or clue on that issue?


Finding a closed form for $\int_{0}^{1}\frac{\ln\left ( 1-x^{2} \right )\arcsin ^{2}x}{x^{2}}\mathrm{d}x\approx -0.939332$

I'm attempting to find a closed form for     $$\int_{0}^{1}\frac{\ln\left ( 1-x^{2} \right )\arcsin ^{2}x}{x^{2}}\mathrm{d}x\approx -0.939332$$   I tried to use $$\displaystyle \arcsin^{2}x=\frac{1}{2}\sum_{k=1}^{\infty }\frac{\left ( 2x \right )^{2k}}{k^{2}\dbinom{2k}{k}}$$ but it didn't work and became even more complicated. Any help would be appreciated.


install wine on ubuntu 20.04 LTS fails with unknown ppa

I have tried several installs of wine Ubuntu 20.04 and they fail at the same point with the following: $ sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main' Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease Hit:2 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease Hit:3 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease Hit:4 http://archive.canonical.com/ubuntu focal InRelease Hit:5 https://dl.winehq.org/wine-builds/ubuntu focal InRelease                               Ign:6 http://ppa.launchpad.net/fingerprint/fprint/ubuntu focal InRelease                     Hit:7 http://security.ubuntu.com/ubuntu focal-security InRelease          Hit:8 http://ppa.launchpad.net/thierry-f/fork-michael-gruz/ubuntu focal InRelease Err:9 http://ppa.launchpad.net/fingerprint/fprint/ubuntu focal Release   404  Not Found [IP: 91.189.95.85 80] Reading package lists... Done                       E: The repository 'http://ppa.launchpad.net/fingerprint/fprint/ubuntu focal Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration   apt-secure(8) says something about accepting ppa's with no Release files but the specific steps are not specified. Any suggestions as to how to proceed will be appreciated.


How would you show that $37 \times 2^{220} - 14 \times 5^{87} \times 7^{87}$ is divisible by $17$?   I tried finding the actual answer of the equation to show that it is divisible by $17$, but I think I need a more efficient and stronger proof. What could this proof be?


wait for a element to exist on page, then fire click function (pure JS)

Not in jQuery, vanilla JS.  I have the below code I'm using that works fine within the console; the problem is the 'goCheck' element does not appear right away at default, after the user crawls through a few sections, then it appears visible; because of this the event listener is hitting null immediately.  How could I get this to execute WHEN my 'goCheck' element becomes visible on page?      var goCheck = document.getElementById('input_52_65_chosen');     goCheck.addEventListener('click', function (event) {      var value1 = document.getElementById('input_52_22').value;     var value2 = document.getElementById('input_52_100').value;     var value3 = document.getElementById('input_52_95').value;     // var value4 = document.getElementById('input_52_96').value;      if (value1 > 0 ) {           document.getElementById('rate').style.display = "none";          document.getElementById('pay-plans').style.display = "none";          document.getElementById('field_52_116').style.display = "none";        } else if (value1 === 0 ) {          document.getElementById('field_52_116').style.display = "block";     }     if (value2 > 0 ) {           document.getElementById('rate').style.display = "none";          document.getElementById('pay-plans').style.display = "none";          document.getElementById('field_52_116').style.display = "none";      } else if (value2 === 0 ) {          document.getElementById('field_52_116').style.display = "block";     }     if (value3 > 0 ) {           document.getElementById('rate').style.display = "none";          document.getElementById('pay-plans').style.display = "none";          document.getElementById('field_52_116').style.display = "none";        } else if (value3 === 0 ) {          document.getElementById('field_52_116').style.display = "block";     }     if (value1 && value2 && value3 == 0 ) {          document.getElementById('field_52_116').style.display = "block";     }      } );


I have a problem with the Difference-In-Differences' control group.  In particular I have data from 2001 to 2015 and the problem rises because the timings of the treatment period can start from 2006 (till 2015) but is different for the different treatment group's elements. In this case the dummy variable that represent the treatment period can vary in the treatment group (in my case, it will be 1 for each firm (i) that does IFRS reporting in year (t), but what happens to the same time variable for the control group? I don't think that it could be right if the time variable will always be zero for the control group, but I could be wrong... so, should the time variable (for the control group) be 1 from 2006 to 2015 (the represent the period when the treatment starts, even if not for the whole treatment group?  Please help me and thank you.


Difference between kinetic energy and force

I hope I don't make myself look stupid asking this question. Please note I'm relatively new to physics but am extremely interested. To test myself, I made up a time, velocity, and mass and filled in the rest. This is what followed:  v=9 m/s, d=108 m, t=12 s, a=0.75 m/s/s, M=7 kg, p=63 kg m/s, F=5.25 N, W=756 J, P=63 W, KE=283.5 N   Is this correct? My question is what the difference is between the force and the kinetic energy. I was imagining something being thrown down a road, so shouldn't the force be the same as the kinetic energy? Am I being extremely stupid?


How to url-encode all characters (special and non-special) in bash

How can I url-encode all characters in bash? For example: abcd0123 => %61%62%63%64%30%31%32%33 I tried the built-in urlencode function in Linux but it only encodes special characters like (.?)


Splitting regular polygons into same-height segments

I have vector layer which looks like this:  It is result of raster classification, vectorization and finally Minimum Bounding Box Geometry. What I need is, that maximum "height" of one polygon is for example 20 cm. It means the small rectangles stay the same as they are smaller than this threshold, but the "long ones" divide into several smaller polygons. After I will create centroids and count number of these polygons in one row, so first I need to have the small polygon segments.


Can I Enter Italy in a valid visa and exit in another?

I have a valid Italian schengen in an expired passport till the 19th September. Have a new Italian Schengen that starts on 20th September in the new passport. I have to travel on the 16th and be there till the 29th. The embassy infact issued visas back to back, but is this possible that I enter on one and exit on the other in a new passport?? please advice


I've made a model from a copy of another object, but now it's done I just see now that it's rotation angles weren't set to 0.  And now it causes me trouble when I mirror it. Is there a way to "Zero-ing" the current rotation as if it's a normal one?


Add Lightning Web Component to Lightning Tab

I am trying to figure out how to add a Lightning Web Component to a Lightning tab.  I have it on the Home Page, but I would like it to be on its own tab.  I feel like there should be an option to expose it to the Lightning tabs.  When I am in the Tabs section, I don't see my LWC listed.


can keepers kill creepers in same turn over and over again?

In Monty Python Fluxx, there are keepers that kill creepers.  Can they be played and also kill in the same turn, or is it 1 turn to play them and 2nd turn to kill?  Also, can they be used over and over again?


How to install OpenLayers plugin on QGIS 2.4?

I am a new user of QGIS, and I just downloaded the version 2.4 on Windows 7/32 bits. And I seem to encounter several problems:   I cannot install OpenLayers plugin In the "Plugins" tab under "Manage and install plugins" I have only 3 windows "All", "Installed" and "Settings" and it is missing "Not installed"...and here either I open the "all" or "installed" window I have the same number of plugins, that is 23...and I cannot make any modifications like "upgrade" or "uninstall" etc...   Dos any one have an idea what is happening with my QGIS version? Or if I did something wrong when installing...I know that I just followed the easy installation for new users...


Why must I use the latin2 encoding for Hungarian?

I'm writing a UTF-8-encoded English document that contains a substantial amount of text in Hungarian (and a few other languages).  When I try to load the Hungarian language patterns in babel using magyar (or its alias hungarian), I get the following compilation warning:  LaTeX Warning: Please use \usepackage[latin2]{inputenc} with                \usepackage[magyar]{babel}.   I prefer my documents to be encoded in UTF-8, since that's the default encoding on my system, and because it's convenient for me to directly enter symbols like ¶ and — that don't exist in ISO-8859-2.  Why is babel insisting that I use the obsolete ISO-8859-2 encoding?  Is something in particular likely to break if I don't use it?  (The babel manual is silent on the matter.)  FWIW, I have been ignoring the warning and so far everything seems to work fine.  MWE:  \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[hungarian,english]{babel} \begin{document} % Following line works fine in spite of the warning \foreignlanguage{hungarian}{Árvíztűrő tükörfúrógép} \end{document}


I have been looking around for a while now and it seems that all the ways to delete your direct messages on Twitter at once are outdated and do not work anymore. I was just wondering if anyone had found a current solution on how to delete all direct messages on Twitter at once.


I know and understand the mean value theorem. But at the moment I don't have the intuition to understand the generalized mean value theorem     If $f$ and $g$ are continuous on the closed interval $[a,b]$ and differentiable on the open interval $(a,b)$, then there exists a point $c\in(a,b)$ where$$[f(b)-f(a)]g'(c)=[g(b)-g(a)]f'(c).$$If $g'$ is never zero on $(a,b)$, then the conclusion can be stated as$$\frac{f'(c)}{g'(c)}=\frac{f(b)-f(a)}{g(b)-g(a)}.$$   What is the intuition? And how can you prove this (generally) ?


Proving that there are $n-1$ roots in $a_1x^{b_1}+a_2x^{b_2}+...+a_nx^{b_n}=0 $ on $(0,\infty)$

We know that:       $a_1,...,a_n\in \mathbb R , \forall a_i\neq0 \\ b_1,...,b_n\in \mathbb R : b_j\neq b_k : \forall j\neq k$      Prove that there are $n-1$ roots in $(0,\infty)$:       $$a_1x^{b_1}+a_2x^{b_2}+...+a_nx^{b_n}=0  $$   Using induction, for n=1 it's obvious that there are 0 roots.  Suppose the statement is true for n-2 and prove for n-1:  From here on I'm not sure how to continue, I noticed that $x^{b_1}(a_1 + \ldots + a_n x^{b_n - b_1})=0$ but at what point can it come into the induction process ? Also, how does the IVT is applied here ?


Don't rulers expand at the same rate as the universe they measure?

If you placed a giant ruler between the sun and our nearest star for example, wouldn't the divisions on the ruler expand at the same rate as the universe - therefore maintaining a constant distance? If you draw 5 divisions between 2 points on a balloon, there will always be only 5 no matter how much you inflate the balloon.   How can this be reconciled with observed red-shift?


In planning some video game camera behavior, I hit a math problem I am having some difficulty with. The camera in this case is restricted to moving along a line and chooses a location along the line to get close to important objects while keeping them in frame.  So to phrase the question in a mathy way:  Given a line (through points $L_1$ and $L_2$ in the drawing), two points $A$ and $B$ not on the line, and an angle $\theta$ (based on the camera's field-of-view), how would you calculate the possible locations of a point $P$ on that line such that $\measuredangle APB = \theta$?  (It looks like there could be zero, one, or two solutions depending on $\theta$ and where the points are in relation to the line)


How do I extend an existing partion to add more space to it?

Is it possible to add the unallocated space to extend the existing partition ? Please see image below ?  My machine is a dual boot system with Windows 10 and Ubuntu and single 1 TB HDD. The unallocated space has been claimed from Windows by shrinking the C drive.  I cannot add a new partition since I already have 4 partitions.  Any pointer to already published articles will also help.


String#to_i does not work when using string object parsed from a csv file

I'm using CSV class to read a csv file with Ruby.  Here is my code  CSV.foreach('../../../db/data/xxxx.csv') do |row|   # ...   row[0].to_i   # ... end   File '../../../db/data/xxxx.csv' surely exists. row[0] returns "1". So I expect row[0].to_i to return 1, but row[0].to_i returns 0. I thought it is encoding matter of row[0].encoding, but it returns #<Encoding:UTF-8>.  row[0] #=> "1" row[0].class #=> String row[0].encoding #=> Encoding:UTF-8 row[0] == "1" #=> false   Does anyone help me?


Some faces of a model don't respond to UV Mapping

I can't seem to get these particular faces to take the UV Mapping. I selected the entire object, entered edit mode, hit U>Unwrap.   The rest of the mesh takes the uv wrapping, but not those faces for some reason.    It looks normal in solid mode.     Does anyone know what could be causing this?


Error: Undefined control sequence \c@lor@to@ps

I got this error  ! Undefined control sequence. <recently read> \c@lor@to@ps   l.122 }  ?   on compiling a TeX file which has a code copied from LaTeX Draw.  This mysterious error has remained so for two days or so! Now I have some time to attend to it.  Here is a screenshot showing the LaTeX code fragment:  % Generated with LaTeXDraw 2.0.8 % Wed Oct 02 09:43:45 IST 2013 % \usepackage[usenames,dvipsnames]{pstricks} % \usepackage{epsfig} % \usepackage{pst-grad} % For gradients % \usepackage{pst-plot} % For axes \scalebox{1} % Change this value to rescale the drawing. { \begin{pspicture}(0,-2.7)(9.84,2.7) \psline[linewidth=0.04cm](0.32,-1.1)(5.46,1.72) \psline[linewidth=0.04cm](1.94,1.7)(6.1,-2.54) \psline[linewidth=0.04cm](4.7,2.64)(3.2,-2.68) \psline[linewidth=0.04cm](0.0,1.26)(9.82,-1.84) \psline[linewidth=0.04cm](3.5,2.68)(2.96,-2.5) \end{pspicture}  }   I ensured that the packages that were commented in the code are included:  My question: How to correct this? It's hard to figure out, for I never wrote \c@lor@to@ps anywhere and didn't find it in the code fragment copied from LaTeX Draw either!  Thanks in advance for any help!


Tuple key in python dictionary does not act exclusively?

I'm trying to loop through a list of tuples and assign certain values in the tuple as a key to a dictionary, and other values of the tuple to the values of the dictionary. For some reason, every time I update an indexed value of a tuple key in the dictionary,  the same indexed values for all of the keys is updated.   a = [('g', 'h', 'i', 1), ('a', 'b', 'c', 6), ('d', 'e', 'f', 1)] b = [('a', 'b', 'c', 2), ('d', 'e', 'f', 5)]   Where the first three values of the tuple will become keys in a dictionary, and the last value will become a value in a list for that key.  output_dict = {} tuple_lists = [a,b] empty_values = [0]*len(tuple_lists)  for i, tuple_list in enumerate(tuple_lists):     for key_value in tuple_list:         key = key_value[:len(key_value)-1]         value = key_value[len(key_value)-1:][0]         if key not in output_dict:             output_dict[key] = empty_values             output_dict[key][i] = value         else:             output_dict[key][i] = value   This returns:      {('g', 'h', 'i'): [1, 5], ('a', 'b', 'c'): [1, 5], ('d', 'e', 'f'): [1, 5]}   When I thought it should return:      {('g', 'h', 'i'): [1, 0], ('a', 'b', 'c'): [6, 2], ('d', 'e', 'f'): [1, 5]}   The only hint I have is that the id for two different keys in output_dict are the same:      id(output_dict[('g', 'h', 'i')])   returns the same value as:      id(output_dict[('a', 'b', 'c')])


Is it possible to apply a gaussian filter to rasters in ArcMap without applying a calculation or otherwise program it yourself?


I have two hard drives. On the one hard drive Windows 7 & 8 is installed, on the other Ubuntu. When I try to mount the drive, I get this message.


Accidentally deleted symlink libc.so.6 in CentOS 6.4. How to get sudo privilege to re-create it?

I accidentally deleted the symbol link /lib64/libc.so.6 -> /lib64/libc-2.12.so with  $ sudo rm libc.so.6   Then I can not use anything including ls command. The error appears for any command I type  ls: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory   I've tried  $ export LD_PRELOAD=/lib64/libc-2.12.so   After this I can use ls and ln ..., but still can not use sudo ln ..., sudo -E ln ..., sudo su or even su. I always get this err  sudo: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory   or  su: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory   It seems LD_PRELOAD works only for the current shell session of my account, but not for a new account like root or a new session.  It's a remote server so I can not use a live CD. I now have a ssh bash session alive but can not establish new ones. I have sudo privilege, but don't have root password.  So currently my problem is I need to run sudo sln -s libc-2.12.so libc.so.6 to re-create the symlink libc.so.6, but I  can not run sudo without libc.so.6.  How can I fix it? Thanks~


Is there any recommended module for responsive menu?  Example the picture above, click on it and a list of menu appear.  Easy to configure.  This content is for: many content    Mine is simple. Basically the menu wont have a link. (It is just a scroll down function to specific height when I click the menu.) Just that when come to mobile, I wan it act like responsive menu according to the picture above. It wont have any sub-menu as well.


Best free/commercial software for editing latex file on windows

What are the best free or commercial software for editing LaTeX on Windows machine?


Changes to parameters passed to a static function in java

class Util{     public static void F(Point p, Point q) {       p.x = 42;        p = q;    }  }  … Point a = new Point(10,20);  Point b = new Point(30,40);  Util.F(a,b);  System.out.println(a.x + " " + b.x);   if someone can please explain me why the output is 42 30  thank in advance!


How do I manage to stay alive in Underworld?

As already said in the title, I always get burned in lava, or the enemies kill me in the Underworld.   I'm Pre-Hardmode, I have max health, anicent shadow armor (about 25 defense), and I'm fighting with ice blade and bee keeper right now. I easily managed to kill The Eye of Cthulhu, Eater of Worlds, King Slime, Queen Bee and Skeletron.  However every time I want to explore Underworld, I die after less then five minutes. What am I doing wrong? Any tips to stay alive?  I want to mine hellstone there to get the Fiery Greatsword, as it is the last sword I need to craft Nights Edge.


We want to create a "Greeting Counter" that tell us how many times you entered a greeting. Improve the program that takes any number of words in a single line as input, and outputs the number of greetings. Valid greetings to count are "Hi", "Hello" and "Hey". Different cases are allowed. The input ends with -1 on a line alone. Ex: If the input is: Hi World Hey -1  then the output is: Greetings: 2  import java.util.Scanner;  public class GreetCounter {      public static void main(String[] args) {       Scanner scnr = new Scanner(System.in);       String input = scnr.nextLine();      int i = 1;              while(!input.equals("-1")) {          if (input.equals("Hi") || input.equals("Hello") || input.equals("Hey")) {              i +=0;           }       }          System.out.print("Greetings: ");          System.out.println(i);     } }


"My App has stopped" error when I try to run my app on a real phone

I'm new to app development. I can run my application from Android Studio on a real device. I followed a tutorial. Everything ran until I wrote the code that sums both numbers and I can't seem to fix it.  Here is the error message I get along with the code in Main.   (Click image to enlarge)   I don't understand most of this, and I can't continue without running the app. I don't run it on a virtual machine because it takes forever to load.


Let $ c_0 = \{ x = (x_n)_{n \in \mathbb N} \in l^\infty : \lim_{n \to \infty} x_n = 0\}$. Show that $c_0$ is a Banach space with the norm $\rVert \cdot \lVert_\infty$  I am capable of showing the space where the limit of $x_n$ exists is normed linear space but am having trouble with showing that the limit of Cauchy sequences must converge to 0.   Let $(x^{(n)})_{n \in \mathbb N}$ be a Cauchy sequence in $c_0$ such that $x^{n} = (x^n_1, x^n_2,...)$. Fix $k \in \mathbb N$ consider the sequence $(x^n_k)_{n \in \mathbb N}$ in $\mathbb F$. For any $n,m \in \mathbb N$  $\lvert x^n_k - x^m_k \rvert \le \sup_{k \in \mathbb N} \lvert x^n_k - x^m_k \rvert = \lVert x^n - x^m \rVert_\infty \lt \epsilon $   (1)  Thus $x^n_k$ is Cauchy in $\mathbb F$ and so has limit $y_k$ such that $y = (y_1,y_2,...)$ and y is the limit of $x^n$  To show that such a y exists we look at the value of $\lvert y_n - y_m \rvert \le \lvert y_n - x^N_n \rvert + \lvert x^N_n - x^N_m \rvert + \lvert x^N_m - y_m \rvert \lt \epsilon$ for all $n,m \ge N$     (2)  The middle expression on RHS of (2)  is $\lt \epsilon/3$ by (1)  The other two are also $\lt \epsilon/3$ follow from $x^N_k$ being Cauchy and converging to $y_k$  This shows that $\lim_{n \to \infty} y_n$ exists but we still have not shown that $y \in c_0$.  I know that to show y tends to 0 i should show that $\lvert y_k \rvert \lt \epsilon$ for $k \ge N$  This is where I am stuck. Perhaps $\lvert y_k \rvert = \lvert \lim_{n \to \infty} x^n_k \rvert$ and then we can take the limit function outside the absolute value sign by continuity? Then we might say due to it being a Cauchy sequence $x^n_k \lt \epsilon$. I know this last bit isn't at all convincing so I could do with some help.


Sometimes Menu expansion for each tool in tool menu won't expand

I'm trying to select other extrude tools but it won't open the sub menus even if I just spam left or right clicks.


How to deal with upvoted yet clearly wrong answers

These 2 questions have clearly wrong answers with upvotes. And they're still getting votes.  The log file one especially could be tried out, it would fail, but someone still voted it up. A downvote and comment has no effect.  Like we have "vote to close", what about a "vote to delete" for answers. I'd suggest a fairly high rep limit. Or badge ownership realting to the question tags (eg SQL Server)   (SF)   (SO)  Could be similar to this meta question:


In order to get full RGB output (0-255) on my Intel UHD630 integrated graphics I have to run this command at every reboot:  sudo xrandr --output HDMI-1 --set "Broadcast RGB" "Full"   Is there a way to save this so that it runs automatically when X starts?  I'm running Ubuntu 19.10.


Is the Harry Potter government democratic?

I recently  the article , an interesting analysis of Rowling's dark portrayal of government in the Harry Potter series. One of the first claims it makes is that the Potterverse government has no elections and no democracy.  Thinking about it, I don't recall any mention of elections in the series. Over a seven-year period in the Muggle UK, there should have been at least one general election, but the only changes of leader during this period in the magical UK are when a weak and discredited Minister resigns and when a psycho murderer takes over the government and kills the incumbent Minister.  How does a magical government take power? Are there elections which we just don't see (perhaps because the main characters are too young to vote)? Is the Ministry of Magic associated with a Muggle government like other ministries? Are there different political parties in the magical world?  Canon evidence only, please. I'll reluctantly accept evidence from the films, but no fanfic or unsourced Wikia claims.


Using em-dash instead of parentheses and commas

Let's say I have the following sentence: "I didn't like the cake (the cookies were better), but I absolutely hated the egg rolls."  Would it be grammatically correct (and colloquially okay, to someone who would be reading it) to change it to this:  "I didn't like the cake—the cookies were better—but I absolutely hated the egg rolls."  because I think it's okay to use em dashes instead of parentheses (according to other questions I've read), but I'm taking out the comma before "but" too. Is that okay?


Best way to clone an installation (copying to identical hardware)

Kind-of like  but slightly different (I think), in that I have 6 identical Acer Aspire Revo R3610 machines. One is (almost) configured to my requirements - when I'm done preparing it I'd like to make the other 5 machines absolutely the same. I'm very new to Ubuntu, what's the most straightforward (easiest) way of doing this?  The machines are going to live on different networks if that might otherwise be a problem (eg with Windows you can clone disks but you then have to make registry changes afterwards if they're going to run on the same network etc). The hardware in all 6 machines is, I stress, the same!  How can I efficiently clone one source image on to these identical machines?  Please restrict one software/solution per answer


Can I use the same HDD as it is after I change my motherboard?

My computer is a custom-built machine, and I want to upgrade the motherboard, processor and RAM. I am running Windows 7 Pro on a volume license.  After I upgrade the motherboard, I want to use my same hard drive and don't want to reinstall everything.   But I am changing from an Asus motherboard to an MSI motherboard.  My HDD has drivers on it for the Asus.  After I change the motherboards and use the same HDD, will it still boot?  I don't want to reinstall Windows.  (This is sort of part two to )


Finding meta.stackexchange.com on Data S.E

It is well known that  can extract data from all Stack Exchange sites, even including meta sites and . I request for the functionality to switch sites to metaSE easily as well, apart from the existing 150+ sites. A simple implementation requirement is, if a query is made for Mathematics SE, it can be ported to Stack Overflow, but it cannot be ported for metaSE if one does not know that Data SE only responds to meta s*. For a quick test, . As a sidenote, pre-existing queries meant for metaSE () do give results as expected, but once ported to X.stackexchange.com the query cannot be ported back to MetaSE with the current methods that I know of.


I don't want to display the modulo symbol, I want to programmatically calculate n modulo 3 and display the result.


System hangs during boot at "Starting MySQL server [OK]"

I have Ubuntu 12.04 installed on my machine (Dual boot). It was working fine till today. I executed the following commands in the terminal, and when I restarted I get a Purple Screen of Death.  sudo apt-get autoremove   I also had Qt Designer installed, so I removed it using  sudo apt-get remove qt4-dev-tools sudo apt-get remove qt4-docs sudo apt-get remove qt4-assistant sudo apt-get remove qt4-linguist   I had already tried the following:   In recovery mode, it always hangs at this part.  * Starting MySQL server [OK]  From a Ubuntu Forum post, I tried doing Ctrl+Alt+F1 and then  sudo apt-get update sudo apt-get upgrade sudo apt-get install fglrx sudo aticonfig --initial    But this always ends with aticonfig:No supported adapters detected.  Any help would be greatly appreciated.  P.S : Please do not mark this as duplicate as I've gone through many threads and I'm not able to find a solution myself.  EDIT: it now hangs at Checking battery state itself :( .  I've referred to this  but I'm unable to find any solution.


RMM 2015 /P1: Does there exist an infinite sequence of positive integers $a_1, a_2, a_3, . . .$

Does there exist an infinite sequence of positive integers $a_1, a_2, a_3, . . .$ such that $a_m$ and $a_n$ are coprime if and only if $|m - n| = 1$? My Progress:This is a very beautiful problem ! I think I have got a construction , but I am not able to  have/define the explicit formula for the nth term. Here is the construction, Let $a_1=2\cdot 3$, $a_2=5\cdot 7$, $a_3=2\cdot 11$, $a_4=3\cdot 5 \cdot 13$, $a_5=2\cdot 7\cdot 17$ , $a_6=3\cdot 5 \cdot 11 \cdot 19$ , $a_7=2\cdot7\cdot13\cdot23$,  $a_8=3\cdot5\cdot11\cdot17\cdot29$ , $a_9=2\cdot7\cdot13\cdot 19 \cdot 31$ and so on . I am trying to find some patterns, but I am not able to observe anything. So what I am doing is, for the construction of $a_n$ term, I look at $a_{n-1}$ ,then I start from $a_1$ and then try to put a factor $p$  of $a_1$ in $a_n$ such that gcd ($a_{n-1},p$)=$1$ . Similarly for $a_2$, $a_3$, and so on. At the end I add another prime which was not used in any of the $a_i$'s. Also we have to make sure that no ${a_i} \mid a_j$ for $i<j$ Also note that I am only using primes . Sorry, if something is not clear. Hope one can provide me some hints and guide. Thanks in advance.


Register theme customizer settings when theme activates

I've been following this great tutorial () and now I have set the Theme customizer.  As far as I understand the settings I assign in the customizer are saved in the database every time the user "saves" in the theme customizer page. Which means that after activating the theme for the first time and before going to the customizer, the settings are not saved.  My question is, How can I save the settings just after the user activates the theme? (the $wp_customize->add_setting default value)  Pd. I've been looking for some time, and got this hooks: "after_setup_theme", "switch_theme", but I cant figure out how to do it.  Edit: The "duplicate question" answers how to provide a fallback when there is no setting available. Although it might be a workaround, I would like to know how to save (register) the settings when activating the theme.


Is a transit visa required for Malaysia?

I'm a Sri Lankan passport holder. I'm planning to travel to China in January and have to transit in Malaysia. I wonder whether I can obtain a Malaysian transit visa in KLIA 2 when I'm flying back to Sri Lanka.


Extremely hard sum of infinite series problem

I found this in a previous years iit paper. It seems really interesting, but incredibly difficult. Can someone please help     $$ \sum_{i = 1}^\infty \arctan\frac{1}{2i^2} $$      This whole expression is equal to $t$      Find $\tan(t)$


Is it possible to see if two cells contain similar text in Excel?

I've got two columns populated with names, and I want to see if the names in each row are similar (not the exact same, just similar) to each other. Is there any way to do this on Excel?


Use of inequality $1 - \cos (x) \leq x^2 /2$

In  answer the value of $1 - \cos(x)$ has to be evaluated in order to find its upper limit, if it exists.  In particular, $x = 2 \pi / n$. The answer is related to the length of a side of a regular $n$-gon inscribed into a unit-radius circumference; because the perimeter of the $n$-gon is always less than $2 \pi$, the single side must always be less than $2 \pi / n$.  The inequality  $$1 - \cos (x) \leq \displaystyle \frac{x^2}{2}$$ (1)  is used and the proof is completed with   $$2(1 - \cos(x)) \leq (2 \pi / n)^2$$  $$\sqrt{2(1 - \cos(x))} \leq 2 \pi / n$$  But it is well known that the cosine is a function $f(x) \in [-1;1]$, so $1 - \cos (x) \in [0,2]$. By using this information, we would obtain  $$1 - \cos (x) \leq 2$$ (2)  The proof would provide  $$2(1 - \cos(x)) \leq 4$$  $$\sqrt{2(1 - \cos(x))} \leq 2$$  which is a completely different result.   Why in that case it is preferable to use (1) instead of (2)? How to choose when it is convenient to use (1) and when to use (2) in a proof?


Publishing a scientific article without being a student or a researcher

From what I got to see during my research internship, research master's students, PhD students and researchers, when they do some decent research work or project, they sometimes send a scientific article to get published (after a selection process). In the case of students, whether it be master's or PhD students, there are always mentors or advisers that direct their work and join their names to theirs in the published paper.  I would like to know whether it is possible for anyone (someone who is neither a student nor a research, and who is not even an employed person) who does a research or even an implementation-driven work (such as building an application in the case of computer engineering) to submit a paper for publication and get it published.  Of course I bear in mind that in order to gain some recognition and to be selected for publication, the work should contribute with some knowledge to the scientific community.  If the answer is yes, how to proceed?


Why is transferring money online to someone else's bank account so difficult in the U.S.?

I used to live in a poor, third world country (India) where I freely transferred money between my bank account (a savings account) to accounts held by my friends in different banks, and different countries using just the Internet, net banking. It took less than 24 hours for the money to appear in the other person's account.  Now, here I am in the U.S., the mecca of Internet startups and general web awesomeness, and I find that neither Capital One nor the United Nations Federal Credit Union accounts I have will allow me to transfer money to a Bank of America account that belongs to my landlord. I would like to sit at my computer, add his account, hit Transfer, and have the money appear in his account. It seems that all they can do is either mail him the check, or I can go to the bank and deposit it.  I would like to understand why transferring money in the United States is so difficult. Is there a reasonable explanation?


My PC (lenovo ideapad z580) is overheating while using Ubuntu GNOME 16.04 LTS

My PC (Lenovo Ideapad z580) is overheating while running Ubuntu GNOME 16.04 LTS.  $ uname -a Linux Mahadev 4.4.0-72-generic #93-Ubuntu SMP Fri Mar 31 14:07:41 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux  $ lspci -nnk|grep -A2 VGA 00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09)   Subsystem: Lenovo 3rd Gen Core processor Graphics Controller [17aa:3977]   Kernel driver in use: i915   $ sensors acpitz-virtual-0 Adapter: Virtual device temp1:        +52.0°C  (crit = +104.0°C)  coretemp-isa-0000 Adapter: ISA adapter Physical id 0:  +54.0°C  (high = +72.0°C, crit = +90.0°C) Core 0:         +54.0°C  (high = +72.0°C, crit = +90.0°C) Core 1:         +54.0°C  (high = +72.0°C, crit = +90.0°C)  update vivek@Mahadev:~$ stress -t 300 -c $(getconf _NPROCESSORS_ONLN) &&  sensors stress: info: [4408] dispatching hogs: 4 cpu, 0 io, 0 vm, 0 hdd stress: info: [4408] successful run completed in 300s acpitz-virtual-0 Adapter: Virtual device temp1:        +73.0°C  (crit = +104.0°C)  coretemp-isa-0000 Adapter: ISA adapter Physical id 0:  +72.0°C  (high = +72.0°C, crit = +90.0°C) Core 0:         +69.0°C  (high = +72.0°C, crit = +90.0°C) Core 1:         +72.0°C  (high = +72.0°C, crit = +90.0°C)  update     vivek@Mahadev:~$ sudo lshw -C cpu     [sudo] password for vivek:    *-cpu                             description: CPU         product: Intel(R) Core(TM) i3-3110M CPU @ 2.40GHz         vendor: Intel Corp.        physical id: 0        bus info: cpu@0        version: Intel(R) Core(TM) i3-3110M CPU @ 2.40GHz        serial: To Be Filled By O.E.M.        slot: CPU Socket - U3E1        size: 1302MHz        capacity: 2400MHz        width: 64 bits        clock: 100MHz        capabilities: x86-64 fpu fpu_exception wp vme de pse tsc msr  pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx  fxsr sse sse2 ss ht tm pbe syscall nx rdtscp constant_tsc arch_perfmon  pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni    pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid    sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer xsave avx f16c lahf_lm    epb tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt     dtherm arat pln pts cpufreq           configuration: cores=2 enabledcores=2 threads=4  Update This time I edited the sensors , htop command result in image. It's getting overheated, my laptop is getting hang cause of overheating, please watch and reply. Thanks.


My 11 year old daughter has an irrational fear of wetting her pants from laughing too hard.  It has apparently happened where this occurred in very small amounts, but now she has turned it into something that is holding her back from doing things.  She is so afraid that it will happen and people will notice.  she can't sleep from worrying about it.


How does classical statistical methods fit into the machine learning paradigm

To elaborate more on the question and give a few examples: classical statistical methods: Frequentist linear regression that involves estimating beta, t-test, p-values, R-squared, F-test. Model selection using AIC/BIC by forward/backward stepwise feature selection. machine learning paradigm: Empirical risk minimization, incorporating regularizer, train-test split and cross validation to do model selection. It just seems that by adding regularizer and using cross validation for model selection is a much more general and easier approach, especially when dealing with a lot of variables. However, in most of the cases, would that not make a lot of the statistical tests not applicable? (For example, trying to come up with a p-value for beta when we have a Lasso regularizer present). One might argue that through the classical approach we have a model that is more interpretable as we know which features are important. Is this the tradeoff? Through the shrinkage of Lasso regularizer, wouldn't that give individuals an idea of what features are important? Should I abandon one approach and embrace the other or does it depend on the circumstances?


How can I unload Oracle database tables into a csv files?

I need to retrieve certain data from an Oracle 11g release 1 database and provide it as one or more CSV files. The data resides in multiple tables and/or views. All this should work via the command line. What would be the best approach to this?