How do I get a tourist visa/card for Cuba?

How do I get a tourist visa (or a tourist card) for Cuba?  I live in the Netherlands, but I'm not a Dutch citizen, I have an Italian passport.


How do I change the appearance of a citation for Literature Review?

I am writing my thesis/dissertation and am refining my literature review. The literature I have written about has been cited but the citations across the entire paper are numbers (Which is what I want). However, for the Literature Review, I want the citations to appear by name or something meaningful rather than just numbers as it could become a bit vague to follow which papers are making which points. E.g.  [1] considers x, y and z with the intention... but I want something like *Paper name* considers x, y and z with the intention... Any advice or recommendations are much appreciated. Thank you


answer just didn't load when I opened the question for the first time.     Reloading(by dragging down) didn't do anything, but when going back to the previous view and opening the question again, the answer was visible. I wasn't able to reproduce this bug since, and because of that I don't know whether or not it has something to do with the text itself.   App Version: 1.0.85 Device Manufacturer: samsung Device Model: GT-I9505 OS Version: 4.2.2 (I9505XXUBMEA)


Solving a multi-variable trig sum to find the max separation btwn 2 ellipses

For a hobby project gone too far, I'm trying to find the maximum separation between two ellipses. I have only a high-school-graduate-level grasp of algebra and calculus, and am happy to dig deeper than that... but I need some guidance.  I have 3 functions of the same form, $X(p, q)$, $Y(p, q)$, and $Z(p, q)$ for which I am trying to evaluate $p$ and $q$. I know that $X+Y+Z=0$. I know I need to express p and q in terms of each other, but as you can see below, the three functions together are quite complex. I've been futzing around with trig identities to try and isolate either variable, but am stuck. Perhaps fresh eyes will help; can anyone here see a way forward?  All values are known, except $p$ and $q$.  $X(p,q) = [b_1V_{x1}\cos(p)-a_1U_{x1}\sin(p)][(C_{x2}+a_2U_{x2}\cos(q)+b_2V_{x2}\sin(q))-(C_{x1}+a_1U_{x1}\cos(p)+b_1V_{x1}\sin(p))]$  $Y(p,q) = [b_1V_{y1}\cos(p)-a_1U_{y1}\sin(p)][(C_{y2}+a_2U_{y2}\cos(q)+b_2V_{y2}\sin(q))-(C_{y1}+a_1U_{y1}\cos(p)+b_1V_{y1}\sin(p))]$  $Z(p,q) = [b_1V_{z1}\cos(p)-a_1U_{z1}\sin(p)][(C_{z2}+a_2U_{z2}\cos(q)+b_2V_{z2}\sin(q))-(C_{z1}+a_1U_{z1}\cos(p)+b_1V_{z1}\sin(p))]$  Edit - A couple threads I've been trying to springboard off of:        I arrived here by taking the partial derivatives of the distance function for two points, one on each ellipse. Once I can find the critical points from that, I should have my solution(s).   The distance function is from the ellipses' parametric equations:  $x(θ)=C_x+aU_x\cos(θ)+bV_x\sin(θ)$  $y(θ)=C_y+aU_y\cos(θ)+bV_y\sin(θ)$  $z(θ)=C_z+aU_z\cos(θ)+bV_z\sin(θ)$  (Where $C$ is the centrepoint of the ellipse, $a$ and $b$ are its semimajor and semiminor axes, respectively, and $U$ and $V$ are unit vectors defining the plane of the ellipse. Angle $θ$ describes position on the ellipse)  So the distance function is:  $$D=\sqrt{(x_1-x_2)^2+(y_1-y_2)^2+(z_1-z_2)^2}$$  As the derivative of $\sqrt{n}$ is ${n'\over2\sqrt{n}}$, I only need concern myself with where the numerator ($n'$) is equal to $0$:  $$n'=-2f'(p)[-f(p)+j(q)]-2g'(p)[-g(p)+k(q)]-2h'(p)[-h(p)+l(q)]$$  (Where functions $f$, $g$, and $h$ refer to the parametrics for the 1st ellipse, and functions $j$, $k$, and  $l$ to those for the 2nd. $p$ and $q$ are used instead of $θ$)  $n'=0$ is essentially of the form $0=X+Y+Z$ as outlined above.


Basically I am trying to recursively  list sub directories until I hit a directory where there are no more directories to be found. The problem here, is that when I pass the argument into the function, as it is given, the ls command doesn't work. Without the $var in quotations, ls treats the space separated string as multiple arguments.  Why is this happening and how can I avoid it?  #! /bin/bash function subdir_check(){     local var="$*"     ls -F -b "$var" | grep '/' | sed 's/\///g' } directory="$1" if [[ $(subdir_check $directory) != "" ]] then      pick=$(subdir_check $directory | rofi -dmenu -p 'Select Subdirectory')     directory="${directory}/${pick}"     while [[ $(subdir_check $directory) != "" ]]     do         pick=$(subdir_check $directory | rofi -dmenu -p 'Select Subdirectory')         directory="${directory}/${pick}"     done fi echo $directory


Shell prompt customization and cmd behavior

I want my prompt to display:   current (absolute) working directory, colored in green and in a NEW line, the dollar sign and an empty space.   I am using this line in .profile  export PS1='\e[0;32m$(pwd)\n\e[m$ '  So when in e.g. Desktop, my prompt looks like this:    However, sometimes when hitting the up arrow to re-run previous commands, at the start of the prompt a random char sequence appear that does not seem to go away unless I hit enter, e. g.    I have never hit a cd cd Desktop command. The weirdest part is that backspace won't even delete the first one of the two cd commands above!  Any suggestions?


Prove that the $\lim_{(x,y) \to (0,0)}h(x,y)$ Does not Exist using Polar Coordinates

Let $h(x,y)=\frac{x^5y}{2x^{10}+y^2}$. How would I prove that the $\lim_{(x,y) \to (0,0)}h(x,y)$ Does Not Exist?  I think that we might use polar coordinates, but I am not sure.


Windows Logs Application is full of "Login failed for user 'sa'. Reason: Password did not match that for the login provided. [CLIENT: ****]"

I have Windows Server 2016, with SQL Server 2017, and found Windows Log Application is full of Login failed messages (as follows) :     Login failed for user 'sa'. Reason: Password did not match that for the login provided. [CLIENT: ****]    Client's IP addresses are various. I don't have any maintenance plan in SQL Server     What's the problem?


Why are Hermione's efforts to free the House-elves so incompetent?

As I understand it, if you don't own the House-elf, then you can't set it free. This means that Hermione's hats would not have freed the elves, as she didn't own them; Hogwarts did. Only the Headteacher, or maybe the staff, could have freed the elves.  So why does Hermione bother trying? Surely she was clever enough to realise that she couldn't possibly free them, so why does she keep trying?  Am I missing something glaringly obvious?


How to choose a circle for default stream in Google Plus?

How can I choose a specific circle for the default stream in Google+ ? Many extensions don't work, and are not comfortable if using another PC.


Proof of Jensen's inequality without the use of induction

I would like to see the proof of the following identity without the use of induction.  For a real convex function $f$, numbers $x_1, x_2, ..., x_n$ in its domain, and positive weights $a_i$, Jensen's inequality can be stated as:  $$f\left( \frac { \sum { { a }_{ i }{ x }_{ i } }  }{ \sum { { a }_{ j } }  }  \right) \le \frac { { a }_{ i }f({ x }_{ i }) }{ \sum { { a }_{ j } }}$$   PS: I would like to see a derivation rather than the proof. Thanks in advance


Fetch random 10 user data from list IN mvc

I have a list of object which contain all user information.  List<UsrProfile> listUsr = GetAllUser();   In dashboard I have to show only 10 user profile randomly from list on each page refresh.


In Clash of Clans, on Android, I started upgrading my laboratory whilst my hogriders were being upgraded. Did that cancel or postpone the hogriders? I had used 50,000 dark elixir on the hogriders, and hope it is not lost


The entire exercise was like $$8xyz≤(x+y)(y+z)(x+z)≤\frac8{27}(x+y+z)^3\quad x,y,z>0$$  and I managed to solve (demonstrate) the first inequality (from the left) using $$\frac{x+y}2≥\sqrt{xy}$$ but I can't solve the second one. I tried several ideas but I haven't succeeded. Thanks a lot.


Physics - Determine how much thrust to apply at each thruster for linear/angular acceleration

I have a question somewhat similar to this one: .  I have a ship with thrusters placed randomly on it (not necessarily symmetrically), and I need to know which thrusters and how much to fire them to have a perfectly linear acceleration, as well as how much they contribute to the angular acceleration of the ship to know which ones to fire when you want to turn the ship.  What I know: the position and orientation of the thrusters, the center of mass of the ship.  Basically I just need a way to make the ship obey the commands as best as physically possible, the commands being 'move' (apply acceleration on thrusters so if results in a linear acceleration), and 'rotate' (apply differential acceleration to maximize angular and minimize linear acceleration).  The game is 2D.  Thank you very much in advance.


Logical argument for $(1+2+\dots+n)^2=1^3+2^3+\dots+n^3$

I know that $1+2+\dots+n=\dfrac{n(n+1)}{2}$ and $1^3+2^3+\dots+n^3=\dfrac{n^2(n+1)^2}{4}$ and can show by algebraic calculation. But I am wondering if there is any logical argument or any intuitive argument to show that:     $(1+2+\dots+n)^2=1^3+2^3+\dots+n^3$   Thanks.


NullPointerException while setting LayoutParams

I want to add a button programmatically, which LayoutParams should be set too. Unfortunaly the app gives an exception:       java.lang.NullPointerException: Attempt to write to field 'int   android.view.ViewGroup$LayoutParams.height' on a null object reference   I have no idea, why. Could you help me?  Here is my code.   Button b = new Button(getApplicationContext());         b.setText(R.string.klick);         ViewGroup.LayoutParams params = b.getLayoutParams();         params.height = ViewGroup.LayoutParams.MATCH_PARENT;         params.height = ViewGroup.LayoutParams.WRAP_CONTENT;


Why binary crossentropy can be used as the loss function in autoencoders?

I was wondering why binary crossentropy can be used as the loss function in autoencoders trained on (normalized) images, e.g.  or ? I know that binary crossentropy can be used in binray classification problems where the ground-truth labels (i.e. $y$) are either 0 or 1 and therefore when predictions (i.e. $p$) are correct, in both cases, the loss value would be zero:  $$ BCE(y,p) = -y.log(p) - (1-y).\log{(1-p)} $$  $$ BCE(0,0) = 0, BCE(1,1) = 0 $$  However, binary crossentropy does not have a value of zero when neither of its arguments are both zero or one, which is the case for an autoencoder with ground-truth labels in range $[0,1]$ (i.e. assuming the input data has been normalized in this range). I thought a regression loss function such as mean squared error or mean absolute error must be used instead, which have a value of zero when labels and predictions are the same. What am I missing here?


The questions is actually same with the title : Prove that a square matrix with either a left or right inverse is invertible.  I didn't quite get the questions to be honest. A square matrix may have right or left inverse or both. But existence of one of the right or left inverse doesn't imply that matrix has both right and left inverse ?   I mean, is it possible to we have a right inverse but not a left ?


Terminal commands are not working Ubuntu 14.10

How do I fix this major issue:  E: Type 'sudo' is not known on line 3 in source list /etc/apt/sources.list.d/libdvdcss.list   What do I do to fix this?  This is what I get when I open Synaptic Package Manager:  E: Type 'sudo' is not known on line 1 in source list /etc/apt/sources.list.d/libdvdcss.list E: The list of sources could not be read. Go to the repository dialog to correct the problem. E: _cache->open() failed, please report.   These are the file's contents:  sudo tee -a /etc/apt/sources.list.d/libdvdcss.list sudo apt-key add - sudo apt-get update  sudo apt-get upgrade [B[Bsudo apt-get update


Why shouldn't I use this approach to calculate local age in the UK?

I have written the following code to determine if someone is 18 in the UK.  I want it to work out if the person was a 'leapling' (born on 29 February).  int age; if (DateTime.IsLeapYear(startDate.Year) && startDate.Month == 2 && startDate.Day == 29) {    age = (int)Math.Floor((endDate - startDate).TotalDays / 365.25); } else {    age = (int)Math.Floor((endDate - startDate).TotalDays / 365); } return age;   I have roughly tested it using the various dates like (apologoes for the horrible code for demo purposes only):  DateTime startDateLeapYearNonLeapling = new DateTime(1996, 02, 28, 0 , 0, 0, 0, DateTimeKind.Local); DateTime endDateLeapYearNonLeapling = new DateTime(2014, 02, 28, 0, 0, 0, 0, DateTimeKind.Local);  DateTime startDateLeapling = new DateTime(1996, 02, 29, 0 , 0, 0, 0, DateTimeKind.Local); DateTime endDateLeaplingToday28Feb = new DateTime(2014, 02, 28, 0 , 0, 0, 0, DateTimeKind.Local); DateTime endDateLeaplingToday1March = new DateTime(2014, 03, 01, 0 , 0, 0, 0, DateTimeKind.Local);     DateTime startDateNonLeapYear = new DateTime(1996, 03, 28, 0 , 0, 0, 0, DateTimeKind.Local); DateTime endDateNonLeapYear = new DateTime(2014, 03, 28, 0 , 0, 0, 0, DateTimeKind.Local);  int ageLeapYearNoLeapling = GetAge(startDateLeapYearNonLeapling, endDateLeapYearNonLeapling);   //18 int ageLeapYearLeaplingToday28Feb = GetAge(startDateLeapling, endDateLeaplingToday28Feb);       //17 int ageLeapYearLeaplingToday1Marach = GetAge(startDateLeapling, endDateLeaplingToday1March);    //18 int ageNonLeapYear = GetAge(startDateNonLeapYear, endDateNonLeapYear);   //18                          Returns 18 and 17 in the correct test cases.  The code appears to work but I know that DateTime calculations can trip us up.  Are there any cases I have missed?    I'd also be interested in a more elegant solution if anyone has one or even how to make this work with different cultures but that is probably for another day.....


I'd like to implement a big int class in C++ as a programming exercise—a class that can handle numbers bigger than a long int.  I know that there are several open source implementations out there already, but I'd like to write my own.  I'm trying to get a feel for what the right approach is.  I understand that the general strategy is get the number as a string, and then break it up into smaller numbers (single digits for example), and place them in an array.  At this point it should be relatively simple to implement the various comparison operators.  My main concern is how I would implement things like addition and multiplication.  I'm looking for a general approach and advice as opposed to actual working code.


Single list item stopping package manager

Full error log:  starts here:  E:Unable to parse package file /var/lib/apt/lists/ubuntu.c3sl.ufpr.br_ubuntu_dists_trusty_universe_i18n_Translation-pt%%5fBR (1),   The item above is from universe and the binary below relates to it.  E:Problem opening /var/lib/apt/lists/ubuntu.c3sl.ufpr.br_ubuntu_dists_trusty-updates_main_binary-amd64_Packages, E:The package lists or status file could not be parsed or opened.   --and ends here.  It's not a merged list  It is happening in a brand new 14.04 Unity installation. Before I was running Ubuntu GNOME 14.04.  If I disable the universe repo I can update && upgrade without problems. It shows the relations between the items in the error. That is, without universe src does not have to parse the binary version of universe_i18n.  I'm running Package Manager Troubleshooting Procedures¹ to work around it meanwhile. ¹   I wanna solve it. Any ideas?


$A$ is a non singular $n \times n$ matrix with all eigenvalues real. The trace $T(A^2)= T(A^3)= T(A^4)$. Find $T(A)$.  I have tried using the fact that trace is a linear functional and tried to explore its kernel, but have made no progress. Can I get some help?  My knowledge of linear algebra is limited to the first $5$ chapters of Hoffman and Kunze, basic properties of eigenvalues, annihilating polynomials and invariant subspaces. Is it sufficient to do this problem?


Stack Exchange badge sprites pulled from wrong site

I was trolling on around on  when I got a notification on the StackExchange Banner from .  Even though the badge was issued for Stack Overflow, the sprite was pulled from the site I was currently on:    This is not the behavior I would expect.  Since the Stack Exchange banner is universal to the Stack Exchange network experience, I would expect a standardized version to be used. A more robust solution might even to pull in the appropriate sprite from the site that is showing the notification, but that might require loading too many resources.  Here are the sprites in question:


Is there away to click and drag an STL file from a folder or my desktop to Blender? or do I have to use the old fashion way file-import?


i have a quick question.  We have a machine which has a camera mounted above a board at 75cm. The cameras ability to focus on an object at 0 zoom is 1cm, and all full zoom 120cm. The zoom is build into the camera and i have no idea what optic is on the camera at the moment. To reduce the focal length of the camera at full zoom we use an optic, this enables the camera to focus correctly whist fully zoomed in dispite it only being 75cm away form the camera(not 120cm). This optic is very very expensive however,   It works fine but i'm not sure we need this, is there way to firstly determine what optic is on the camera by the focal lengths given? and secondly what optic would need to be mounted on front of the camera in order to make the focal length at full zoom 75cm, as i can't take out the optic in the camera all ready i would like something to add to it to make up for the shortfall.   Sorry i'm a programmer and i have to get this camera focusing properly, my knowledge of physics is not great so apology's in advance for what is surely a poorly worded question  UPDATE  Sorry guys the camera im using in a Sony FCB-6500   I have also attached an image from the camera, its a grossing station however as you see there is the need to zoom in and study small object in great detail, at the moment tho the focus is no working so its blurry     Thanks Again


I need to get plot like this:    But in my MWE node label and dot are hidden.  \documentclass[]{standalone} \usepackage{pgfplots}  \begin{document}   \begin{tikzpicture} \begin{axis}[ axis lines = left, ylabel={\footnotesize Enthalpy, $H$}, xlabel={\footnotesize Temperature, $T$}, xmin=0, xmax=1, ymin=0, ymax=1, ticks=none, %y=1.7cm, %x=1cm, ] \addplot [mark=none,domain=0:1] {0.5*x + 0.25}; \node[label={180:{$H_0$}},circle,fill,inner sep=1pt] at (axis cs:0,0.25) {}; \end{axis} \end{tikzpicture}   \end{document}


How to make a smooth variable stroke thickness over object

How might I go about making a smooth, variable width, stroke in Inkscape where the path is complex like in the image?


What happens to unique buildings in occupied cities?

How does capturing cities handle unique buildings?  For example: If China conquers a city with a library, does the library transform into a paper maker?  or like wise if I conquer a Chinese city as another civilization does the paper maker turn back into a library?  The possibilities I can think of are:   The unique/non-unique building remains (In which case you can sell it and rebuild it as your civ's version) The building will transform back and forward depending on the owner Buildings will be deleted on transfer of owner.


In the book The Two Towers, Treebeard refers to Gandalf as "the only wizard that really cares about trees".  But in Fellowship of the Ring, we met the wizard Radagast the Brown, whose special focus is on animals, especially birds.  Of course, animals aren't trees, but it is difficult to imagine a person loving animals without also caring deeply about trees - especially when that person loves birds most of all, and so many birds are so  dependent upon trees for their survival.  More generally, Radagast seems like an all-around nature lover, and this too suggests that he "really cares about trees".  This leads me to imagine several possibilities:   Treebeard doesn't know Radagast (this seems unlikely - they have both been around for thousands of years, so surely they have bumped into each other at some point)   Treebeard forgot about Radagast, possibly because he was annoyed at Saruman and a bit angry at the time    Radagast actually doesn't care about trees    Is there some other alternative I have overlooked, or is one of the options I mentioned correct?  Or does Tolkien never address this apparent problem?


Internet access directly through modem, but not through router

I’m trying to set up a new network at my home and am having issues... in short, I can access the internet through my modem directly, but not through the router. Here is a brief writeup for today's 4 hours of troubleshooting.  Equipment used:     Comcast Xfinity cable internet (Blast upgrade:  105mbps) Motorola SURFboard SB6121 modem ASUS RT-AC56U router   Had the new house wired up with Xfinity this morning. Cable guy was here for just over an hour. Modem was registered and hooked up. He plugged it into my PC directly, and the Internet was working very quickly and reliably, with speeds as advertised.  When he left I proceeded to disconnect the modem from the computer, and add the router to the setup. The router is verified working, I’ve been using it as recently as Saturday on the DHL connection back home. Though the wireless network activates and is strong, and appears to connect to the Internet, webpages will not load. Wired connections through the router show the following error:     Connected: No internet access.   Windows troubleshooting yields the error message     The remote device or resource won't accept the connection.   I did some research on that error message, and got a lot of minor problems with quick solutions, the most popular being disabling proxy settings, that did not help me. So I moved on to search terms like "Internet through modem not router." This brought up more complicated answers having to do with the modem grabbing the MAC address of the computer instead of the router, or not being able to grab a router address at all. This sounded logical to me so I did some playing with it.  I have tried:   Different cables Resetting and rebooting the router Power cycling the modem Cloning the MAC address of the PC and assigning it to the router Different orders of restarting equipment, hoping the modem would identify with the router   All several times and in different orders, with no luck.    In short, all devices are working, I have internet to the modem, and communication is strong to the router, but no internet access wired or wirelessly.  Not sure where to go from here.  Got any ideas?  UPDATE: Here is some additional information.    When I switch from using the modem for connection back to trying the router, I get a network error window stating:     Windows has detected an IP address conflict. Another computer on this   network has the same IP address as this computer.   When running the ipconfig while pulling Internet directly from the modem, I get 4 results under DNS Servers:  2001:558:feed::2 2001:558:feed::1 162.150.21.49 162.150.8.49   When running the ipconfig while connected to the router, only one DNS server is listed:    192.168.1.1


Does $IJ=IK\implies J=K$ always hold for integral domain and finitely generated nonzero ideal $I$?

Let $R$ be a commutative integral domain, $I,J,K$ three ideals of $R$ with $I\neq (0)$ being finitely generated. Then does $IJ=IK$ imply $J=K$?   With Nakayama lemma, I can prove it if one of $J$ and $K$ equals to $R$. And I also know it holds when $R$ is a Prüfer domain or $I$ is singly generated.


How to prepare oneself to show a polyline based on latitude and longitude information in a csv/json file with heatmap information too?

I am quite new to working with JavaScript as well as geo location systems.  I am looking for an open source JavaScript library to show - on the web - something very like the running trackers show you -  () But with a slight twist. It is a citizen science project in early stages, and I wish to be able to show the ployline, colored (something like a heat-map, traffic congestion) based on a variable. The data is gathered and pushed into a csv/json file - I am open to the format of file. It contains information like time, latitude, longitude, variable1, variable2 and so on. The idea is that polyline is based on the latitude and longitude info and the color gradients are based on the variables.  I do not know yet how to integrate time into it too...but that is a question for another time.  I am quite frankly overwhelmed by the information and libraries and APIs I have found because I don't have a clue about the general terminologies (tiles, vector tiles, overlays, layers, tracking, routing, polyline) too when it comes to designing web applications like this.  I found the following libraries/apis -     ,          I am not really interested in using Google Maps APIs. I want an open source and a relatively simple library.  JavaScript is a must as its a web application and i wish to make an automated system that dynamically updates when information is added to the data file.  I quite frankly don't know what is the need of subscribing to various APIs and getting their keys. Since I am already getting the lat and log info, I thought I could just include js libraries that plot that easily given the lat and long.  If you could point me out to a few resources for beginners that would explain those terminologies and let me understand the nuances of designing geo position information systems, it'd be great since I'd like to solve things on my own but I don't know the ABC of GIS.


GPU/CPU render simultaneously on 2020 iMac?

I'm new to blender and about to get a 2020 iMac.  CPU 3.8GHz 8-core 10th-generation Intel Core i7 GPU Radeon Pro 5700 XT 16GB  Is it possible to render with the GPU and CPU simultaneously on this iMac? Many thanks! :) Lee


Find all functions $f:\mathbb{R}\rightarrow\mathbb{R}$ such that $$f(f(x)^2+f(y))=xf(x)+y$$ for all $x,y\in{\mathbb{R}}$.  Here is my approach to the problem:  We see that $f(x)=x$ is an obvious solution (Just trying easy linear equations). I think this would be the only solution to the problem.  Am I right? And how to prove that there is no other solution? (Note: I am a beginner at functional equations)


Answers deleted via Recommend Deletion votes in review should not be undeletable by the answerer

In the last few days, I've come across four instances where a non-answer was left by a new user, that answer was deleted by the system after six Recommend Deletion votes in the review queues, then the poster promptly reversed that deletion with a single vote.   In each case, the answer had piled up quite a few "not an answer" or "very low quality" flags, which were all cleared the instant the answer was deleted by the system. However, the poster was able to single-handedly override all that when they undeleted their non-answer with a single vote. This required others to go and re-flag the answer and for a moderator to step in and delete it so that they couldn't restore the answer.  This seems like a bad design. A user should not be able to by themselves overturn deletion of their answers that were removed by a community vote in review.  I propose that answers deleted via five Recommend Deletion votes from the review queues require the normal three undelete votes that posts deleted using regular community delete votes do. This would prevent users from bringing back their non-answers after the flags on them had been cleared, potentially allowing non-answers to come back and clutter up the site.


Given a matrix $A=\begin{pmatrix} 1 & 0 \\ {-1} & 1\end{pmatrix}$ We are asked to show $A^2 -2A +I = 0$ and hence find $A^{50}$. I've proved that  $A^2 -2A +I = 0$ but couldn't figure out how to proceed for the next part.


Are there any ways in which I can improve the loading speed of a website?  I know that Google is really pushing loading speeds and with the popularity of mobile websites it's now imperative that sites load quickly.


Recently I have learned how to draw simple stuff with TikZ. I really like it. Now I wonder if it is possible to draw with TikZ on a image. Instead of pasting a image in Illustrator and adding some vectors to point something in the picture I would like to do it using TikZ. Is it possible?   For example, on a picture of a computer (PNG,etc) I would like to draw some arrows and labels saying "Keyboard", "Monitor", etc.


Migrate whatsapp from phone (old expired number) to another one?

I have a phone now that have WhatsApp installed on for over 2 years now, and the phone number registered for the account is now history (it's been long gone and there is no chance I will get that SIM back, because it is from another country).  I got a new phone today with a new SIM, when I start WhatsApp , I put my old number but it needs to send a Message to the number and that is not possible.   Is there any work around for this, I don't want to lose all my WhatsApp contact. Please help.


Why do we use "without loss of generality" when writing proofs? Is it necessary or convention? What "synonym" can be used?


I'm getting an error "Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException"

NOVICE HERE  I want to retrieve the string value in my database and convert it to integer so that I can add integer when I press btnorder.  This is the code:  package jeriel.robie.zairhya.seki.blessie;  import java.sql.*; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JOptionPane; import javax.swing.table.DefaultTableModel;  public class Owner extends javax.swing.JFrame {  public String dataBaseName= "feed"; public String dbURL="jdbc:mysql://localhost:3306/"+dataBaseName; public Connection con; public Statement s; public ResultSet rs1;  public Owner() {      initComponents();      try {         Class.forName("com.mysql.jdbc.Driver");     } catch (ClassNotFoundException ex) {         Logger.getLogger(Stock.class.getName()).log(Level.SEVERE, null, ex);     }      try {         con=DriverManager.getConnection(dbURL,"root","");     } catch (SQLException ex) {         Logger.getLogger(Stock.class.getName()).log(Level.SEVERE, null, ex);     } }      I think the error is here in the method. I don't know where it is. This is my first to encounter this error.  public void orderitem() throws SQLException, ClassNotFoundException {     s = con.createStatement();     ResultSet rs = s.getResultSet();     String temp = rs.getString(3);     int x = Integer.parseInt(temp);     int y = x + Integer.parseInt(txtitemquantity.getText());     s.execute("UPDATE stock SET itemquantity=" + y + "WHERE idnumber=" + "'" +      txtstockid.getText() + "'"); }  private void btnorderActionPerformed(java.awt.event.ActionEvent evt) {                                              try {         orderitem();     } catch (SQLException | ClassNotFoundException ex) {         Logger.getLogger(Owner.class.getName()).log(Level.SEVERE, null, ex);     } }    Here is the ERROR  Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at jeriel.robie.zairhya.seki.blessie.Owner.orderitem(Owner.java:92) at jeriel.robie.zairhya.seki.blessie.Owner.btnorderActionPerformed(Owner.java:261) at jeriel.robie.zairhya.seki.blessie.Owner.access$500(Owner.java:17) at jeriel.robie.zairhya.seki.blessie.Owner$6.actionPerformed(Owner.java:168) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)


asks for a set of real numbers that is measure-dense, whose complement is also measure dense. In terms of $[0,1]$, the question asks for an $S$ such that for every open interval $I$ we have $0 < \mu(I \cap S) < 1$.  This question can be made a little more precise: is there a set of real numbers $S$ such that for every open interval $I$, we have $\mu(I \cap S) = \frac{1}{2} \mu(I)$? The Cantor-set construction referenced above doesn't really lend itself to finding the volume of $I$ contained in $S$, just guaranteeing that it isn't zero. You can modify that construction to get a set that has measure $1/2$, but it's not clear at all that it satisfies the property mentioned here.


Definition. $S(x):=x\cup${$x$}.  Theorem1. For all natural numbers $x$ and $y$, if $x\in y$ then $x\subseteq y$.  Theorem2. For all natural numbers $x$ and $y$ if $S(x)=S(y)$ then $x=y$.  Note that we will use Theorem1 for proof of Theorem2.  Proof of Theorem2. Assume not. i.e., if $S(x)=S(y)$ then $x\neq y$. We know that $x\in x\cup$ {$x$}. Also, by the assumption $x\in y\cup$ {$y$}. Hence, either $x\in y$ or $x\in$ {$y$}. So,...  Can you help?  Answer:


Getting errors when installing and using sp_blitz with `sqlcmd.exe`?

I installed this third party thingy, sp_Blitz.  sqlcmd -S localhost -U sa -i ./sp_Blitz.sql   But when I run   1> EXEC sp_blitz; 2> go   I get,  Warning: Null value is eliminated by an aggregate or other SET operation Msg 1934, Level 16, State 1, Server x230, Procedure sp_blitz, Line 4338      INSERT failed because the following SET options have incorrect settings: 'QUOTED_IDENTIFIER'. Verify that SET options are correct for use with indexed views and/or indexes on computed columns and/or filtered indexes and/or query notifications and/or XML data type methods and/or spatial index operations.     Attempts at the server  When I try to configure QUOTED_IDENTIFIER I get,  1> sp_configure 'QUOTED_IDENTIFIER'; 2> GO Msg 15123, Level 16, State 1, Server x230, Procedure sp_configure, Line 62 The configuration option 'QUOTED_IDENTIFIER' does not exist, or it may be an advanced option.   That's having previously run sp_configure 'show advanced options', 1; RECONFIGURE;  Attempts at the client  sqlcmd.exe  Ok.. So      -I Sets the SET QUOTED_IDENTIFIER connection option to ON. By default, it is set to OFF. For more information, see SET QUOTED_IDENTIFIER (Transact-SQL).   However, running with -I will show SESSIONPROPERTY('QUOTED_IDENTIFIER') as 1 but it doesn't seem to work either  sqlcmd -S localhost -U Sa -I Password:  1> EXEC sp_blitz; 2> GO Warning: Null value is eliminated by an aggregate or other SET operation. Msg 1934, Level 16, State 1, Server x230, Procedure sp_blitz, Line 4338 INSERT failed because the following SET options have incorrect settings: 'QUOTED_IDENTIFIER'. Verify that SET options are correct for use with indexed views and/or indexes on computed columns and/or filtered indexes and/or query notifications and/or XML data type methods and/or spatial index operations.   mssql-cli  This starts up with SESSIONPROPERTY('QUOTED_IDENTIFIER') set to 1 by default, but it generates the same error as above.


I literally can't upload my profile picture

In the profile settings page, I clicked "change picture" on the picture tab, clicked "upload picture", and encountered this nonsense when trying to upload. In particular, when I clicked the "drag and drop" area, nothing happened, and no errors appeared in the console. Same issues with the "link from the web" and similar.  (Note: the dark theme has no effect. I tried disabling that also.)    For reference, I was going to change it to .


Got my code here  \documentclass{book} \usepackage{lipsum} \usepackage{marginnote} \begin{document} Some text \marginnote{\lipsum[1-4]}  \end{document}   How can I avoid marginnote to go down beyond the red line in the picture? P.S: Regarding the previous question, I'm sorry, I badly explained myself, @egreg & @Cristian, thanks a lot for your answer!


I'm new here,  was my first question. Got an answer quite fast, but can't accept it. I'm logged in, can edit my question, but don't see any checkmarks to accept answers at all (tried in Google Chrome and Opera). Don't see any means to raise the "karma" of the person who answered either.  BTW, the answer never came to my e-mail, even though I checked that option.


I am reading The C Programming Language and the first program is to print Hello World I wrote the code as it shown in the book:  #include <stdio.h>  main() {     printf("hello, world\n"); }   But I got an error warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main() . I fixed it by writing the code like this:  #include <stdio.h>  int main() {     printf("hello, world\n"); }   Can anyone tell me what is the difference and why should I write it like that?


Allow users to add attachments in SFMC cloud page

I have some use cases where I need to build a web form that includes a way for a site visitor to upload a file (jpeg, png, pdf types)  Any ideas on the best way to do this?


A real harmonic function on $\Bbb C-\{0\}$ which is bounded above must be a constant.

Let $u$ be a real harmonic function on $\Bbb C-\{0\}$. I'm trying to show that if $u$ is bounded above, then $u$ must be a constant.   This is my attempt: It is known that there exists constants $a,b\in \Bbb R$ such that  $$\frac{1}{2\pi}\int_0^{2\pi} u(re^{i\theta})~d\theta=a \log r+b$$ for all $r>0$. Since $u$ is bounded above, we must have $a=0$. Then it seems that we should have $u \equiv b$, but I have no idea here.  Any hints?


Is any encryption system that changes keys for each session "forward secure"?

As far as i understand, a encryption system is forward secure if new session keys are generated for each session, which is also part of  about forward secrecy:  By generating a unique session key for every session a user initiates, the compromise of a single session key will not affect any data other than that exchanged in the specific session protected by that particular key.  So far, so good, but it is the definition that bugs me:  An encryption system has the property of forward secrecy if plain-text (decrypted) inspection of the data exchange that occurs during key agreement phase of session initiation does not reveal the key that was used to encrypt the remainder of the session.  1. In this way, shouldn't e.g. asymmetric encryption be forward secure even if we do NOT alter keys between sessions? For asymmetric encryption, the data exchange during key agreement does NOT include the private key and also not necessarily the public key, hence a plain-text inspection of it does not reveal the key(s) that are used to encrypt the session... If i interpret it as both keys shouldn't be send as plaintext, then an assumed asymmetric encryption that changes the private-public key pair for each session is also NOT forward secure, because the public key is always public. 2. Is the definition wrong or insufficient? 3. Is it sufficient to think that any encryption system that changes keys for each session is forward secure?


Flash drive download for another computer?

How do I download Ubuntu so that I may install it on another computer that presently does not have an operating system?


I am using  to make the fonts in math mode match the roman fonts used in my text body. The “digits” environment in mathspec takes effect for all digits in the document. This means that digits that would normally use a font other than roman, such as those within URLs, also end up using this font, despite loading the mathspec command \setallmonofonts (which I had assumed would override \setmathfont).  \documentclass{article}  \usepackage{mathspec} \setmainfont{Book Antiqua} \setmathfont(Digits,Latin){Book Antiqua} \setallmonofonts{Courier New}  \usepackage[hidelinks]{hyperref}  \begin{document} Some text. Some figures: 123456789\\ \url{http://some.urlwithnumbers/123456789}  $$Some text in math mode. Some figures in math mode: 12345789$$  \end{document}     Is there a way of setting the font for only the digits that occur in math mode? I would like to keep my specified monospace font for digits within monospaced strings (and likewise with sans serif fonts, should I need to use them).


after upgrade to 13.10 gnome-terminal is black with no decoration or text. How to fix?

All window decoration is black.  However scroll bars, maximize, minimize and exit buttons are active if one can find them.  Separately, in the case of gnome-terminal, all text, whether prompts, std output or input is invisible.  Text input is active.  I can launch and kill applications in the window and kill the window by typing exit.  I have tried reinstalling compiz, compiz-core, compiz-gnome and xserver-xorg with no change in behavior.  I have also tried several other incantations found on the web with no change in behavior.  If I ssh -Y into the machine from a different machine the windows are properly decorated and gnome-terminal text is visible.  What log files might be relevant? Any ideas how to fix?


In my work I build MS Access databases.  I need to be able to compare two versions of the same database to see what has changed.  Version control.  I do not mean the data in the database.  I mean the forms, queries, modules etc that make up an Access database.  I currently manually write a description of what has changed in a module that just contains this “maintenance log” and use comments to denote the start and end of VBA code changes.  Does anybody know of any tools out there that can produce some kind of report or something else that shows what has changed from one version to the next?  Any ideas appreciated.


Is there a way to automate the movement of application windows to assigned monitors?

So I have a new set up: 2 large screens (top left and top right), my macbook pro (centre), and my ipad (left). I'm a coder, I like to have my coding environment in the centre, with research on the top left, results (e.g. created webpages) top right. Certain apps like Postman are on the left on the ipad. Sometimes, as we all do, I reset my computer. When I do this, upon login, all my apps will open on the same screen. Is there a way (maybe an Alfred script), to move all my applications to the desired monitor (and the desired desktop on that monitor)? It would save SO much time I can't even begin to say. Thanks.


Sort files with a specific extension by modified time and store them into an array

I have found many answers to sort the files of directory and even to save them in an array.  Sorting Example  ls -t    Directory listing in array  array=(*)   My particular problem needs to sort files with a specific extension (say *.sh) based on their modification date/time, and save all these sorted files in array to be used later for editing or deleting file.  For example, after I have the sorted files in the array I could execute remove the most recent file by the following command.  rm ${array[0]}


Trouble-shooting Time Manager date format problem

I've been trying to format a field in a vector file in QGIS to be run in Time manager and, for some reason I can't figure out, it still is not running. I read the other threads here associated with this problem, and so I reformatted the date to conform to what Time Manager says is an acceptable format - YY-MM-DD. My cells currently look like: 07-01-01 for Jan 1, 2007. I created it as a string variable and then tried converting it to a date variable in field calculator. I still keep getting the same error message which is:   An error occured while trying to add layer scicafe_07-16-pointshapefile to TimeManager. Cause: Exception(UnsupportedFormatException('Could not match value PyQt4.QtCore.QDate(2015, 1, 1) with any of the supported formats. Tried:  ...lists lots of other formats..and  %Y-%m-%d.  But as far as I understand, the format 07-01-01 is %Y-%m-%d, so I'm not sure what I'm doing wrong? I also tried YYYY-MM-DD too by the way. Same error message.   How can I troubleshoot this problem?


I've recently installed Metasploitable 2 and I would like to set up it's network in the following way: I'm running Metasploitable 2 on a VirtualBox on my PC, and what I'd like to do is to be able to communicate with it through Kali Linux which is installed on my laptop (not virtually).  My question is: How do I need to set up the network on VirtualBox for this to work?  I already tried:   with no success, probably because I only have one VM and can't choose Internal Network because Metasploitable 2 is full of exploits which will expose me to hackers...  Thanks in advance.


Can't get wireless to work on ubuntu 16.04 with Broadcom BCM43142 [14e4:4365]

Tried  but no dice.  Also tried followed the steps  (which look similar) but on the last step I get:  $ sudo modprobe -v wl insmod /lib/modules/4.10.0-32-generic/updates/dkms/wl.ko  modprobe: ERROR: could not insert 'wl': Required key not available   I'm not getting any kind of connectivity, and have to connect to my router with ethernet.  Here's my dpgk info:  $ dpkg -s bcmwl-kernel-source Package: bcmwl-kernel-source Status: install ok installed Priority: optional Section: admin Installed-Size: 7870 Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> Architecture: amd64 Source: bcmwl Version: 6.30.223.271+bdcom-0ubuntu1~1.1 Replaces: bcmwl-modaliases Depends: dkms, linux-libc-dev, libc6-dev Conflicts: bcmwl-modaliases Description: Broadcom 802.11 Linux STA wireless driver source  This package contains Broadcom 802.11 Linux STA wireless driver  for use with Broadcom's BCM4311-, BCM4312-, BCM4313-, BCM4321-,  BCM4322-, BCM43224-, and BCM43225-, BCM43227- and BCM43228-based  hardware. Modaliases: wl(pci:v000014E4d00004311sv*sd*bc02sc80i*, pci:v000014E4d00004312sv*sd*bc02sc80i*, pci:v000014E4d00004313sv*sd*bc02sc80i*, pci:v000014E4d00004315sv*sd*bc02sc80i*, pci:v000014E4d00004727sv*sd*bc02sc80i*, pci:v000014E4d00004328sv*sd*bc02sc80i*, pci:v000014E4d00004328sv*sd*bc02sc80i*, pci:v000014E4d00004329sv*sd*bc02sc80i*, pci:v000014E4d0000432asv*sd*bc02sc80i*, pci:v000014E4d0000432bsv*sd*bc02sc80i*, pci:v000014E4d0000432csv*sd*bc02sc80i*, pci:v000014E4d0000432dsv*sd*bc02sc80i*, pci:v000014E4d00004365sv*sd*bc02sc80i*, pci:v000014E4d00004353sv*sd*bc02sc80i*, pci:v000014E4d00004357sv*sd*bc02sc80i*, pci:v000014E4d00004358sv*sd*bc02sc80i*, pci:v000014E4d00004359sv*sd*bc02sc80i*, pci:v000014E4d00004331sv*sd*bc02sc80i*, pci:v000014E4d000043a0sv*sd*bc02sc80i*, pci:v000014E4d000043B1sv*sd*bc02sc80i*) Original-Maintainer: Alberto Milone <alberto.milone@canonical.com>   Not sure what other information I should provide.


I’m planning to DM a game of DnD5e soon using the Dragon of Icespire peak and the Essentials Kit. This is for all of us as first time players.  One of the players is interested in rolling an elven Cleric, but doesn’t necessarily like the religious aspect. Is this a feasible thing for a cleric to just be interested in healing and support, rather than their gospel and the good word? Or are we better off having her choose a God/domain that simply aligns with her interests, like Nature or Life, and simply ignore or backseat the religion.


I want to GET ID or class of the clicked element. Can someone give me idea how to do this? I tried to get the ID of the clicked element but it's not working.   Here's my jquery.  $('.sems').click(function() {      var id = $(this).attr('id');     alert(id); });   Here's the full code where link is located.  if(isset($_POST['loadsem'])) {     $stud = $_POST['stud'];     $output = '';       $sql = "SELECT DISTINCT sch_year,semester FROM grades WHERE stud_no ='$stud'";     $result = mysqli_query($con,$sql);     $output .= '

                         Semesters Attended
';       while($row = mysqli_fetch_array($result))       {         $sem = $row['semester'];         $year = $row['sch_year'];         $output .= '
                       '; <--- Here's the link                     if($sem == "1"){                       $output .= $row['semester']. "st Semester S.Y " .$row['sch_year'];                     } else {                       $output .= $row['semester']. "nd Semester S.Y " .$row['sch_year'];                     }                     $output .='
';       }           $output .= '

';    echo $output;     }


How to Change TeXShop dictionary to American English?

How can I change the TeXShop dictionary to American English?! It is set to British English! It might be the whole mac's dictionary that is being used, I am not sure. In that case, how can I change it in the system?!


Stack Overflow - 'you have reached your question limit'

I received the following message from Stack Overflow when I try and ask a question:  You have reached your question limit.  Sorry, we are no longer accepting questions from this account. See the Help Center to learn more.  After reading around on numerous posts, I am still not sure if this is a permanent IP address ban, or if I have a chance at getting my privilege back. I am new to programming and realize that I shouldn't have deleted some of the questions that I previously asked and that I need to be explicit in the questions that I post. I would love to get the privilege back and am willing to answer other questions to do so. I can't even comment yet as I must have a reputation of 50. I am willing to fix my questions and post answers in hopes of getting the question asking capability back, but I want to make sure this ban isn't permanent first.


How can jquery capture an  file tag that was itself rendered using jquery after a user clicks?

How do you hook into javascript / popup functionality that is invoked after a user clicks?   We have javascript code that gets invoked by a user click.   This javascript code renders a popup dialog that contains an  choose file tag.  This  choose file tag is literally appended by doing something like:   output.append('<input type="file" ......'>   So the problem with this is if the user doesn't first click this  tag never gets rendered in the response.    We are currently using a jQuery $() function to execute our code that looks for  tags as soon as the web page loads, however our $() function does not get called when the user clicks the link rendering the popup.    Is there another hook we can use in jQuery besides $() that gets invoked when a popup gets rendered?


I have been using Stack Overflow and other Stack Exchange sites from a long time. Specifically in Stack Overflow, I have favorite questions which I want to refer later. The list is growing. It is difficult to find any particular favorite.  It would be nice if you allow user to define favorite categories and while clicking favorite, user can select the category under which the favorite to put.  If I want to see my favorite questions under , it should show all favorites in this tag.


A scene I made is not rendering, at all. This grey screen stays the same and nothing changes.  Here are my settings:  [


what is the meaning of "\(" and "\)" in overleaf?

In overleaf tutorial ,   \newcommand{\R}{\mathbb{R}}  The set of real numbers are usually represented  by a blackboard bold capital r: \( \R \).   I know the usage of newcommand, but what is necessity of of \( and \)?


Can I cast Nondetection and Divination spells on myself?

I have a simple question:  If I cast a  spell on me can I also cast spells like  on myself while I'm under the nondetection effect?


What's the difference between these two declarations?

I am only asking in context of C++.  struct x1 { ... }; typedef struct { ... } x2; int main() {     x1 a;     x2 b; }


I am looking for documentation that explains the different kinds of (well the major ones anyway) 2D space partitioning algorithms & data structures.   Any pointers besides 'Google it and sift through hundreds of papers'. A book perhaps?


After downloading Ubuntu can I still access my Windows 10 files and photos/

I have windows 10 on my Dell Inspiron 15 laptop series 5000 with i7 processor and I want to download Ubuntu 16.4. If I do this will I still be able to access my windows 10 files and photos?


How to get Lubuntu to work on a PC from the year 2004?

We have a hp pavilion v72 desktop computer from the year 2004. It had Windows XP running on it,  and we have been trying to install Linux on it.   After Ubuntu, we tried to install the 32 bit version of Lubuntu 13.10 from a disk image downloaded directly from the lubuntu.net web page, and it said it was successfully installed but after re-start it doesn't start the graphical user interface, eg. the screen remains black after the spash screen. The same happens, when we choose the option "Try Lubuntu". The computer's specifications meet the requirements of the lubuntu distribution. It has two graphic cards, one onboard, which can't be disabled in the bios and another one, which is configured as primary display adapter in the bios. The system can be booted to root shell and everythings appears to be fine, but when x-windows is started, the computer again hangs with an empty screen.  Do you have any suggestions, if trying another linux distribution (like xubuntu) might potentially solve the problem? Until recently, when we wiped the windows xp system, the computer worked perfectly well, so we don't assume, that the computer's hardware is defective.  Many thanks.  Anne


does reassigning an object cause garbage-collection of the old object and all anonymous eventhandlers attached to it

Imagine an InvoiceHeaderGrid and an InvoiceDetailGrid.  Lets's say we have this code in a HeaderGrid's rowchanged event:      DataTable InvoiceDetail = new GetInvoiceDetail(HeaderGrid.CurrentId);     InvoiceDetail.ItemDeleted += (sender, evt) =>      {       };      DetailGrid.DataSource = InvoiceDetail;   so that the code is called every time the user focuses a different row  in the HeaderGrid.    The "dead" InvoiceDetail datatable and its attached anonymous handler get garbage-collected with each reassignment of variable InvoiceDetail, right?  The attached handler isn't treated as a reference to the object that would prevent it from being garbage-collected?


Can I update my itinerary/travel dates during the interview (French Schengen visa in US)?

This is for French Schengen visa appointment in San Francisco.  I read one relevant  but it states you can't change  travel dates online in your application, which is what I am aware of; there's no option to do that online. The only way to do it is cancel current application and rebook appointment. But is it OK to mention it during the interview/ Give them new application form with correct dates? Will they deny visa because now our plans are no longer fixed?


On the users tab page there is a gray box in the mid upper right. A long time ago i believe it was used to show user statistics change over time. Now i see noting. Is this common among other SO, SF, MSO, and SU users? I have tried viewing the page in IE and Firefox with the same results.


Java: User Input won't pass as being equal to a string in an If statement

Here's my code. My problem is that I'm trying to check if my user input variable, titleScanner, is equal to the title (which is specified earlier in the code) or if its equal to "exit". Even when I get my code to print out what titleScanner is equal to (exit when I type exit) the else if code for exit won't run.      void getId() {             Scanner titleScanner = new Scanner(System.in);             System.out.println("Please enter the title of the game in order to obtain the ID Number");             int loopbreak = 0;             while (loopbreak == 0) {                 String titleVerification = titleScanner.nextLine();                 if (titleVerification == title) {                     System.out.println(title + " has ID Number " + id);                     loopbreak = 1;                 } else if (titleVerification == "exit") {                     loopbreak = 1;                 } else {                     System.out.println("Please enter a valid title or type exit to exit");                 }              }          }


Show that the following is bounded and surjective (Folland exercise 5.36)

Let $X$ be a separable Banach space and let $\mu$ be the counting measure on $\mathbb{N}$. If $\{x_n\}_{n=1}^{\infty}$ is a countable dense subset of the unit ball of $X$, and $T:L^1(\mu)\to X$ is defined by $Tf = \sum_{n=1}^{\infty}f(n)x_n$, then $T$ is bounded and surjective.  This came up as an exercise in a book I'm reading and it seems simple enough on the outside but I can't seem to reason why it is true. Does anyone have an easy way to see why this is true?


In august I will go to Japan to visit relatives and to make a trekking. In europe I usualy bring trekking meals with me, the kind of meals that you can easily prepare on a stove by just adding water.  Those meals are sealed in plastic and usually look like this:     I've never had any problems in Europe, but when I look up the regulations on traveling to Japan, I read various restriction, ranging from not being allowed to bring in any meat products, up onto dissolowence of milk, vegetable or egg products.  I could live without meat (there are vegetarian meals available), but the other ingredients would be a problem.  Does anyone have experience with bringing food into japan?


what i want to know is how to compute the powers of $\theta$ in $F_2$ and also how many powers am i looking to compute. How can i find such powers

This a new chapter that we are learning and the teacher is flying through it and this are also new concept that i have just learn and i was wondering if i can have some guidance in this problem.     Show that $x^3 + x + 1$ is irreducible over $F_{2}$ and let $\theta$ be a root. Compute the powers of $\theta$ in $F_{2} (\theta)$.    Proof:  $F_2$ has only two element $0$ and $1$ thus to show that the polynomial is irreducible i did $$0^3+0+1 = 1 \not=0$$ and $$ 1^3+1+1 = 3 = 1 \not=0$$ since there is no root therefore the polynomial is irreducible.   Now my question is how to you go about computing the powers of $\theta$


How can I bump other users' unanswered questions?

I'm looking around for answers to my questions on several Stack Exchange sites and the good boy that I am I don't want to ask duplicate questions.  Often I find that there are other people who asked the same questions, sometimes years earlier, but still don't have an answer. I'd figure I could bump these back to top, but if I don't have enough rep for a edit (or comment), how would I do that?  Or, in that case, I should just post a 'newer' version of the same question?


How to programmatically get current battery level with Cocoa

How can I get the current battery level using the Cocoa framework running with Leopard?  Currently I am getting it running a NSTask with:   pmset -g ps | grep -o -e [0-9]*% | sed -e 's/%//g'   But I think this is a clumsy way of doing this.


Hitting the suggested edit limit in a review queue is failing silently

I'm relaying from a post/comments on .  The primary part of their question was addressed there; but they did identify a minor bug in the site that should be fixed.    Apparently if a user with limited editing privileges hits their maximum suggested edit limit the edit link on the review page is failing silently instead of informing them that they've hit the maximum number of edits that they can suggest at a time.  At a minimum the error message should be displayed on the review page instead of leaving them confused until they try suggesting an edit on a post directly.    Beyond that, if a user can't submit any more edits, does it still make sense to let them have access to the review queues when a major part of reviewing is temporarily blocked to them?


How to do laundry to kill and prevent athlete's foot fungus?

As you may know, one of the reasons athletes's foot and jock itch fungus are so hard to kill with OTC medicines like Lotrimin and Lamisil is because after you treat it, it is extremely difficult not to reinfect yourself with the fungal spores by re-wearing the same clothes and sleeping in the same bed sheets.  Doing laundry properly is of paramount importance.  I've read on certain sites that in order to kill athlete's foot fungus spores on clothes, you need to wash your laundry with ultra-hot water (140 degrees Fahrenheit).  I have some clothes and a fleece blanket so washing them with hot is not an option because I don't want them to shrink.  So assuming I can't use hot water, what is the best combination to kill the fungus?   Bleach (?) - I've read that bleach will kill fungus such as athlete's foot on hard surfaces, but when used on fabrics it doesn't always penetrate deep enough into the material to completely kill the fungus roots.  I've also read a post where the guy made the following comment:      Bleach removes fungus and mold but also promotes it’s later development... Fungus thrives in high PH environments caused by Bases like bleach... If you must use bleach you should neutralize it with a post acid rinse like vinegar or lemon juice.     Borax Laundry Booster (?) - Some people have said that adding 20 Mule Team Borax to your wash cycle can kill athlete's foot on fabric.  But I've looked at the Borax product packaging and there wasn't any mention of this benefit so I'm a little skeptical. Oxygen bleach (OxiClean ?) -This has also been mentioned, yet I see nothing on the product packaging that says it kills fungus. Vinegar (?) - Vinegar has long been touted as a natural cure for athlete's foot on skin.  Will it work on fabric?  (Note to others: Do NOT mix bleach with vinegar as that can give off toxic gases!) Something else?


I'm looking for an online tool that will let me draw lines and circles etc on a plane and then tell me the positions of any intersections, the size of any angles formed and potentially lengths of formed arcs.  Does anyone know of one?


how to install new download of 14.04.1-desktop-amd 64.ISO

I have no idea what I am doing here. I was given an IBM ThinkPad with an outdated Ubuntu OS and could not figure out how to upgrade, so I simply downloaded the new 14.04.1-desktop-amd 64 ISO. The download completed. There is an icon on the desktop. But being a PC user for all my computer life... I cannot for the life of me figure out how to install this OS! Can anyone help me?


I am new to MikTeX. I have set up a texmf tree and included that into MikTeX (works OK because the style files are found). But the font in that directory cannot be used yet, because the pdftex.map does not have the info from my map file.  I run initexmf --edit-config-file updmap (also with --admin) and enter (as the only line)  Map mymap.map   then I run updmap (also with --admin and --verbose), my mapfile gets listed as Parsing "c:\Path\to\mapfile.map".... But pdftex does not work, because it fails with:  Trying to make PK font abc8x at 600 DPI... ...   When I manually include the map file in first line of my .tex file   \pdfmapfile{+mymap.map}   everything is OK.  How do I do without the \pdfmapfile{...} line?


how to create my own edit.php admin page code or template for my custom post type

Most plugins try to hide the components of the edit.php screen on wp admin and replace it with meta boxes to create the needed layout and fields for the custom post type.  But this means that there is still unnecessary code on that edit.php page not used and increases the page load. Also, Not everything can be done using meta boxes.  Is there is a way where i can create my own edit.php page from scratch for my custom post type? maybe hide the custom post type UI and make a new admin page and use it to insert the custom posts or update it? is this possible on admin pages?


Unable to locate package s-nail ubuntu 16

i am trying to install s-nail and i am getting this error..  tried it to google it but there is no luck  the packages are already updated "sudo apt-get update" i am using Ubuntu 16,  sudo apt-get install s-nail Reading package lists... Done Building dependency tree    Reading state information... Done E: Unable to locate package s-nail   please help thank you


How do I redirect from /index.php/event/* to /event?

I have old links, for example the following ones.   index.php/event/nr1 index.php/event/nr2   If users are coming on index.php/event/*, they should be redirected to  /event.  How can I achieve this?


Since is used to refer to a point of time in the past and for is used with time interval. However I've come across this phrase      I haven't seen you since ages.    Is this a correct usage of since since ages denotes an interval of time?


How can I apply a script to every sheet but the first one on a spreadsheet?

I've been working on a shared Google spreadsheet on Google Drive. The document has different sheets with a "Last Modified Date" Cell. I found an script for this to be auto-filled searching here:  function onEdit() {   var s = SpreadsheetApp.getActiveSheet();   var r = s.getActiveCell();   if( r.getColumn() != 2 ) { //checks the column     var row = r.getRow();     var time = new Date();     time = Utilities.formatDate(time, "GMT-08:00", "MM/DD/yy, hh:mm:ss");     SpreadsheetApp.getActiveSheet().getRange('B' + row.toString()).setValue(time);   }; };   The script works perfectly, I just changed the column and it worked! The thing is, I need to apply this script to every sheet but the first one. How can I deactivate the use of the script in the first sheet?


How to remove wine broken icons in dashboard

How can I remove a broken wine application? Please check the image below.    I am using ubuntu 15.10. and wine-1.6.2.


I'm able to find duplicate records using the following query, however, I'm not sure how to delete duplicates records, and ignoring any records that starts with 0 in starttime field.  SELECT `StartTime`, COUNT(`CallDetailRecordID`) AS cnt FROM `CallDetailRecord` GROUP BY `StartTime` HAVING cnt > 1   Sample output    StartTime     cnt   -------------  --------         0        198 1340511506737         2 1340511958364         2 1340512141687         2 1340512191631         2 1340512244925         2  1340512670902         2


Factorization of polynomial with factors with degree at most $2$

For every polynomial $p(x)$ of degree $n>3$, can we find a factorization of factors with degree at most $2$? (factorization in $\mathbb R$).  Example. $$x^5-1=(x-1)(x^4+x^3+x^2+x+1)=(x-1)(x^2+\frac{\sqrt{5}+1}{2}x+1)(x^2+\frac{-\sqrt{5}+1}{2}x+1)$$  In case $n$ even we need to talk:  If $n$ be odd and the coefficient of $x^n$ be positive (negative), we see $p(-\infty)=-\infty$ and $p(+\infty)=+\infty$ $\Big(p(-\infty)=+\infty$ and $p(+\infty)=-\infty\Big)$ then it has a root and we reduce degree to case $n-1$.


We have a SQL Agent job that runs daily that sends emais out to our drivers with their schedules for the next day.  For 85% of drivers, the emails are not getting out of the SQL server. The other 15% send without error.  I checked the logs and see this error:     The mail could not be sent to the recipients because of the mail   server failure. (Sending Mail using Account 3 (2020-03-22T16:00:06).   Exception Message: Cannot send mails to mail server. (Failure sending   mail.).  )   Does anyone have any idea what's wrong, or how to get a more detailed error?   This problem started after we migrated the server to a new datacenter.   We are running SQL Server 2014 on a Windows Server 2008 R2 host.


The no-load current of a transformer consists of two components:  The Magnetization Current iM is the current required to produce the flux in the transformer core. The Core-loss Current ih+e is the current required to make up for hysteresis and eddy current losses.   This is what my book says for the no-load current in a real transformer. To me it sounded silly that the magnetization current, which is a part of the overall no-load current, is solely responsible for the entire flux generated in the core. How is it that not the overall but a part of the no-load current is responsible for all the flux that is in the core?


Let $A$ be the matrix described when $A \in M_n(\mathbb{R})$.  Let $a,b \in \mathbb{R}$.  Prove that:   Iv'e tried to factor out $a+b$, but got nowhere.  A hint or a solution would be very appreciated.  Thanks a lot!


So, floor is a function that converts a real number to an integer. It rounds down. This makes sense; however, what about complex numbers? I know that depending on the number, it can be split linearly. However, I do not know what $\lfloor i\rfloor$ equals. Is there a clearly defined definition of $\lfloor i\rfloor$?


An SNL skit or a SNL skit?  I am pretty sure it's "an", but I wasn't exactly sure, because I was news articles use "a" instead.


What is the total energy of the Universe?

The Law of Conservation of Energy states that:     Energy can't be created nor can be destroyed. It only changes from one form to another.   According to this the total energy in a closed system never changes. I was wondering what this constant energy is when the closed system is the whole Universe.  Is there any estimate of what the total energy of the Universe is? If there is, kindly give a reference for it.


I'm trying to use the curl command to access a http url with a exclamation mark (!) in its path. e.g:  curl -v "http://example.org/!287s87asdjh2/somepath/someresource"   the console replies with bash: ... event not found.  What is going on here? and what would be the proper syntax to escape the exclamation mark?


If $ \det\left(A+X\right)=\det\left(B+X\right) $ for any $ X $ then $ A=B $

Let $ A,B \in M_{n\times n}(\mathbb{F}) $ be matrices such $ \det\left(A+X\right)=\det\left(B+X\right) $ for any $ X\in M_{n\times n}\left(\mathbb{F}\right) $. Prove that $ A=B $. My idea is to assume by contradiction that $ A \neq B $ and therefore we can find $ X $ such that $ \det\left(A+X\right)\neq\det\left(B+X\right) $. But this is just intuitive idea, I dont know how to find this $ X $ in order to prove the what I claim. I'll be glad for some help with finding such $ X $ that would satisfy the idea. Thanks in advance.


Combinations of single elements from respective sublists

If I have the list my_list = [['a', 'b'], ['c', 'd', 'e'], how can I create a list of all possible tuples where each tuple contains a single element from each sublist? For example:  ('a', 'e') is valid ('a', 'b') is invalid ('b', 'c') is valid ('c', 'd') is invalid  Importantly, my_list can contain any number of elements (sublists) and each sublist can be of any length. I tried to get a recursive generator off the ground, but it's not quite there.   I’d like to try and use recursion rather than itertools.  The logic was to iterate through 2 sublists at a time, and store those results as input to the next sublist's expansion.  def foil(lis=l):     if len(lis) == 2:         for x in l[0]:             for y in l[1]:                 yield x + y     else:         for p in foil(l[:-1]):             yield p   for i in foil():     print(i)   However, this obviously only works for the len(my_list) == 2. It also needs to work with, say, my_list = [['a'], ['b'], ['c', 'd']] which would return:    ('a', 'b', 'c') ('a', 'b', 'd')  Cheers!


On the default FBA Login Page, when a user enters wrong username/password an error message gets displayed:      "The server could not sign you in. Make sure your Username and Password are correct, and then try again.".    I want to change this error message to simple text      "Invalid Username and Password".    How can I achieve this?


Include SVG file on frame in latex beamer

I have an svg file foo.svg which I would like to present in a presentation using latex beamer.   Please give me a minimal working example that accomplishes that. None of the solutions I have found on this site works, they all produce error messages.


Does the "damage for disobedience" effect from the Geas spell end when the caster dies?

Situation  Some NPCs were under the influence of the geas spell cast by a pair of Lamias.  The NPCs were commanded (1) to rebuild some buildings in a town to further the Lamias' evil goals and (2) to protect the Lamias.  As a DM, I had set the clock at day 9 out of 30 when the PCs showed up.    The  spell has duration of 30 days, and its description says:     You place a magical command on a creature that you can see within range, forcing it to carry out some service or refrain from some action or course of activity as you decide.  {snip}  While the creature is charmed by you, it takes 5d10 psychic damage each time it acts in a manner directly counter to your instructions, but no more than once each day. {snip} You can end the spell early by using an action to dismiss it. A remove curse, greater restoration, or wish spell also ends it.   Close to the town is a set of graves of NPCs who tried to flee and died from 5d10 for not obeying the Lamia's command under geas. (They can each cast it once per day; they built up a small work force quickly).     The party slew the Lamias in a battle (despite a lot of misses due to mirror image on the Lamia) and also slew some of those who were under its effects.    But one of them survived, with 1 HP.  The party also knocked out five other NPC's who will recover soon.  The rest of the NPCs protection the Lamia died during the battle.   The lone survivor is aware of the "if you disobey the Lamia, you die" problem.   I do not think that being knocked out ends the geas: it's not a wish, remove curse, or greater restoration.    If the party offers to take the NPCs away from the town and return them to their kinfolk, and the NPCs go with the party but does not first complete the task of rebuilding the buildings in the town, do the NPCs take 5d10 damage?     Geas does not require concentration; I am unsure if the death of whomever cast the geas on a creature ends the spell, or, if the compulsion continues until the spell's duration runs out regardless of whether the caster is alive or dead.  I suspect it's the latter (the answer to the question that this is a dupe of confirms this).


Why Does Samwise Gamgee Call Frodo Baggins 'Mr. Frodo'?

I haven't finished my re-read of the Lord of the Rings trilogy (I just finished The Two Towers), but, at least in the movies, Samwise Gamgee consistently refers to Frodo Baggins as "Mr. Frodo."   Why is this?  I noticed that Merry and Pippin call Frodo and Sam by their first names only, and vice versa, so why is Frodo bestowed with the formality of being called "Mr. Frodo"?


Was there anything stopping Sauron from making another "one ring"? Was he too weak since his separation from the ring to craft another? Or would it have taken a long time?


"error: cannot execute binary file" when trying to install Eclipse IDE on 13.10

I am trying to install Eclipse IDE using a file eclipse-rcp-kepler-SR1-linux-gtk-x86_64.tar.gz I have followed all the steps mentioned in  But I am still not able to launch Eclipse: error : cannot execute binary file  I have already installed jdk 1.7. uname -i i686


What is the remainder when $1! + 2! + 3! +\cdots+ 1000!$ is divided by $12$?

What is the remainder when $$1! + 2! + 3! +\cdots+ 1000!$$ is divided by $12$.  I have tried to find the answer using the Binomial Theorem but that doesn't help. How will we do this?  Please help.


"The diamagnetic materials repel the materials which produces magnetic field, so putting these materials in the proximity of the magnetic field generating materials produces the effect of the diamagnetic levitation."  I read this statement somewhere and I got confused with it.  I know that when magnetic field is applied to a current carrying loop an electric potential is induced in the circuit which is proportional to rate of change of the magnetic flux through the loop. This induced potential gives raise to a current flow in such a direction so that the magnetic field generated because of this new current is in opposition of the applied magnetic field which is diamagnetism.  I want to know what happens to the diamagnetic material when it is kept in a constant magnetic field. Since the field is constant now, there would not be any flux change and hence no induced magnetic field to oppose the constant applied field. So will in that case be no diamagnetic effect or any other effect?


java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.substring(int, int) Fatal Exception main


For setting locale in Ubuntu, what does the LANGUAGE environment variable mean?  It is not defined in  or on .  Related question:


Prove that the triangles $ABC$ and $AB^{'}C^{'}$ have the same incentre.

The question is as follows if $ABC$ is a triangle, with $AD$ as the internal angle bisector of $\angle A$ with $D$ at $BC$ and $B^{'}, C^{'}$ are reflection of points $B$ and $C$ in $AD$. Show that triangles $ABC$ and $AB^{'}C^{'}$ have the same incentre. This was the exact question language,     Now intuitively here was where I could not satisfy myself, how come two triangles which only shared a vertex $A$ above have the same incentre ?all I could find in this problem was we have $C^{'}B^{'} = CB$,(because notice that here $B$ and $B^{'}$ lie at a same distance from $AD$ as $B^{'}$  is a reflection of $B$ only,same with $C$ and $C^{'}$) which also gives us $BD = DB^{'}$ and $CD = DC^{'}$ , all I claim here could be proved if we join $BB^{'}$ and $CC^{'}$ which pass through $AD$ and is perpendicular to it and also these 2 pair of points($B, B^{'}$) & ($C, C^{'}$) lie equidistantly from $AD$, by which I could say triangle $BDC^{'}$ is congruent to $B^{'}DC$. I didn't find anything more substantial.  So here is my question from the figure can we ever have the incentre of triangle $ABC$ to be the incentre of  $AB^{'}C^{'}$ for incentre we need a centre of a circle inside the triangle which touches all the 3 sides of it which so how come another circle of a different triangle have the same incentre ? Although I could not disprove it concretely it just runs counterintuitive to me, so do I miss something Or did I interpret the question wrongly ?


Why Rational Root Theorem requires integer coefficient polynomials?

Why does the rational root theorem only work when the polynomial has integer coefficients?  the rational root theorem (or rational root test, rational zero theorem, rational zero test or $p/q$ theorem) states a constraint on rational solutions of a polynomial equation $$ a_{n}x^{n}+a_{n-1}x^{n-1}+\cdots +a_{0}=0$$ with integer coefficients ${\displaystyle a_{i}\in \mathbb {Z}}$. The theorem states that each rational solution $\,x = p⁄q\,$ written in lowest terms (so  $p$ and $q$ are relatively prime), satisfies:  $p$ is an integer factor of the constant term $a_0$, and $q$ is an   integer factor of the leading coefficient $a_n$.


Null Pointer Exception on Shared Preferences on a Spinner control

I am making an app to save a name and using a Spinner control, but it keeps giving me a Null Pointer Exception.    It says:  Attempt to invoke interface method 'android.content.SharedPreferences$Editor android.content.SharedPreferences$Editor.putInt(java.lang.String, int)' on a null object reference  at com.example.shubham.theroster.MainActivity.onItemSelected   Here is the MainActivity.java  public class MainActivity extends AppCompatActivity implements AdapterView.OnItemSelectedListener {     EditText editText;     SharedPreferences prefs;     SharedPreferences.Editor editor;     CheckBox box1, box2;     Spinner spinner;     int spinnerData;      @Override     public void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);         prefs = getSharedPreferences("settings", MODE_PRIVATE);         editText = (EditText) findViewById(R.id.editText);         box1 = (CheckBox) findViewById(R.id.checkBox);         box2 = (CheckBox) findViewById(R.id.checkBox2);         spinner = (Spinner) findViewById(R.id.spinner);         spinner.setOnItemSelectedListener(this);         spinnerElement();         loadDataPreference();     }      public void save(View v) {         editor = prefs.edit();         // 1.  Name         editor.putString("name", editText.getText().toString());         //2. checkbox         if (box1.isChecked()) {             // steady=true;             editor.putString("status", "Not Steady");         } else if (box2.isChecked()) {             //notSteady=true;             editor.putString("status", "Steady");         }         /*CheckBox cb = (CheckBox) findViewById(checkBox);         boolean bCheckBox = cb.isChecked();         editor.putInt("", bCheckBox ? 1 : 0);*/         editor.commit();         Toast.makeText(this, "Saved", Toast.LENGTH_SHORT).show();     }      public void loadDataPreference() {         String str = prefs.getString("name", "");         editText.setText(str);         String status = prefs.getString("status", "");         if (status.equals("Steady")) {             box2.setChecked(true);         } else {             box1.setChecked(true);         }         Toast.makeText(MainActivity.this, status, Toast.LENGTH_LONG).show();         spinner.setSelection(prefs.getInt("spinnerStatus", 0));     }      @Override     public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {         editor.putInt("spinnerStatus", position);          Toast.makeText(MainActivity.this, parent.getItemAtPosition(position).toString(), Toast.LENGTH_LONG).show();     }      @Override     public void onNothingSelected(AdapterView<?> parent) {     }      public void spinnerElement() {         ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,                 R.array.color_arrays, android.R.layout.simple_spinner_item);         adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);         spinner.setAdapter(adapter);     } }


Show that $\lim_{n\rightarrow \infty} \sqrt[n]{c_1^n+c_2^n+\ldots+c_m^n} = \max\{c_1,c_2,\ldots,c_m\}$

Let $m\in \mathbb{N}$ and $c_1,c_2,\ldots,c_m \in \mathbb{R}_+$. Show that $$\lim_{n\rightarrow \infty} \sqrt[n]{c_1^n+c_2^n+\ldots+c_m^n} = \max\{c_1,c_2,\ldots,c_m\}$$  My attempt: Since $$\lim_{n\rightarrow \infty} \sqrt[n]{c_1^n+c_2^n+\ldots+c_m^n} \leq \lim_{n\rightarrow \infty}\sqrt[n]{\max\{c_1,c_2,\ldots,c_m\}} = \lim_{n\rightarrow \infty} \sqrt[n]{n}\sqrt[n]{\max\{c_1,c_2,\ldots,c_m\}}=\lim_{n \rightarrow \infty} \max\{\sqrt[n]{c_1^n},\sqrt[n]{c_2^n},\ldots,\sqrt[n]{c_m^n}\}=\lim_{n \rightarrow \infty}\max\{c_1,c_2,\ldots,c_m\}=\max\{c_1,c_2,\ldots,c_m\}$$  it follows that $\lim_{n\rightarrow \infty} \sqrt[n]{c_1^n+c_2^n+\ldots+c_m^n}$ is bounded, but I don't think it's monotonically decreasing, at least I can't prove this. Can anybody tell me whether the approach I have chosen is a good one, whether what I have done is correct and how to finish the proof?


How can I stop Lollipop ignoring my wifi network?

Android 5.0 has a new "feature": If a wifi network has no connection to the internet, it will remain connected to it but route traffic over mobile data instead. A small exclamation mark shows in the status bar over the wifi symbol.  Unfortunately, for some reason Android has decided that my home wifi does not have a good internet connection - which is not true, as I'm using it to access Stackexchange at the moment - and is, instead, trying to send everything over GPRS.  With mobile data disabled, things work over wifi just fine, despite the exclamation mark - so it isn't a problem with the wifi not working, per se.  Is there any way to override this "smart" feature? The only way I have found to make things work at the moment is to disable mobile data while I am in my house - which is not a practical long-term solution.   EDITING to add that I have now solved this problem by buying a new router! I was using something very old... But, I'll leave the question here for the benefit of anybody else with the same difficulty.


Running Ubuntu 14.04 lts only folders I can access is in the home folder and all others I am denied access. how can I fix this?

I am completely new to a Linux operating system and was trying to setup Owncloud to use as a file server. I need to copy the owncloud folder into /var/www/ as an example but every folder on my system I am denied access to other than folders within my home folder. I am logged in as administrator but it tells me I am not the owner and do not have permission to access or make changes to any of the other folders. Any help with this would be greatly appreciated.


Why was Tom Riddle's diary entrusted to Malfoy Snr rather than hiding it like the other horcruxes?

All the other horcruxes were hidden and guarded carefully and with a lot of thought as to where they were hidden. It seems odd to me that the diary was given to the someone to keep safe. Even if he needed someone to use it to open the chamber of secrets ... It still seems a big risk.  Why was the diary given/entrusted to Malfoy Snr? Voldemort, who works alone, trusts something such as his diary horcrux to a person to keep safe. That seems to be a bit odd to me.


If a creature has two instances of Haste cast on it, and the first one ends, does the character suffer of lethargy? Relevant rules I can find: “Combining Magical Effects” (PHB 205).  The effects of different spells add together while the durations of those spells overlap. The effects of the same spell cast multiple times don't combine, however. Instead, the most potent effect—such as the highest bonus—from those castings applies while their durations overlap. For example, if two clerics cast bless on the same target, that character gains the spell’s benefit only once; he or she doesn’t get to roll two bonus dice.  "Haste" (PHB 250).  When the spell ends, the target can't move or take actions until after its next turn, as a wave of lethargy sweeps over it.  So since the durations overlap and the most potent effect applies, would this mean that the newer Haste would supercede the older one thus negating the Lethargy when the first one ends or would the Hasted fellow still have a turn off?


My question is very simular to this one:    In my .jsp page I have a form in which I would like to preset a text field to the current date. My only issue is that "value" does not support runtime expressions when using Struts - which makes sense I want to keep as much Java out of the JSP as possible. But this leaves me struggling to get the variable out of an action.  I am currently running on Tomcat v7.0 and Eclipse Java EE IDE for Web Developers. Version: Kepler Service Release 2.  in my .jsp page I have:     <s:set var="currentDate" value="currentDate"/>    <s:property value="currentDate"/>     <s:form action= "updateAction">   <s:textfield name="dateUpdated" key="label.dateUpdated" size="20" value="%{currentDate}" />    <s:submit method="execute" key="submit"/>    </s:form>   Now I have three actions - one to get to this page(ToPageAction), one for when the form is submitted(UpdateAction), one that gets the currentDate variable(GetCurrentDateAction).  I think I am going crazy >.<   anyways, the action to get the currentDate variable is called GetCurrentDateAction and looks like:    public class GetCurrentDateAction extends ActionSupport {  SimpleDateFormat date = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); public String currentDate = date.toString();  public String getCurrentDate(){     return currentDate; } public void setVariable(String currentDate){     this.currentDate=currentDate; } public String execute() throws Exception{     return SUCCESS;  } }   additionally in struts.xml I have:   <action name="getCurrentDateAction" class="net.upsmon.struts2.action.GetCurrentDateAction"> <result name="success">AlertPersistencyView.jsp</result> </action>   I have read through the question I linked to many, many times and tried to format my own struts correctly but find myself getting lost. I am not sure if the answers are just misleading or I am just not understanding something I feel like this issue cannot be too difficult to solve. in my .jsp page I have a property tag to prove to myself that I got the variable into the .jsp but it has not yet worked. And additionally my textfield is blank. Any advice out there for me to get this variable into my .jsp? Is there any additional information I can provide for a solution? I unerstand the basics of Struts and any advice is welcome.  An additional piece of information: I have been also looking at  blog in order to figure out my issue,  but have still not come up with a solution.


A characterisation of planar complete $k$-partite graphs

The complete $k$-partite graph $K_{n_1,n_2,\dots,n_k}$ has vertex set $V=V_1\dot\cup V_2\dot\cup\dots\dot\cup V_k$, where $V_1,\dots,V_k$ are disjoint sets with $|V_i|=n_i$, and each vertex $v\in V_i$ is connected to all vertices of $V\setminus V_i,i=1,2,\dots,k$. Describe all $k$-tuples $(n_1,n_2,\dots,n_k)$ of natural numbers, $k=1,2,\dots$, such that $K_{n_1,n_2,\dots,n_k}$ is a planar graph.


How do you calculate how many decimal places there are before the repeating digits, given a fraction that expands to a repeating decimal?

If you have a fraction such as $$\frac{7}{26}=0.269230\overline{769230}$$ where there are a number of digits prior to the repeating section, how can you tell how many digits there will be given just the fraction?  I believe I could run through the standard long division algorithm until I come across the same remainder for the second time and then use the location of the first instance of this remainder to calculate the number of digits before the repeating section, but this feels very cumbersome.  After lots of reading online, I came across what looks like a formula for it from :     When a rational number $\frac{m}{n}$ with $(m,n)=1$ is expanded, the period begins after ${s}$ terms and has length ${t}$, where ${s}$ and ${t}$ are the smallest numbers satisfying $10^s\equiv10^{s+t}\pmod{n}$.   I know how to calculate the length of the period of a fraction, and so in the case of my original fraction we have $10^s\equiv10^{s+6}\pmod{26}$, but I don't know how to solve for ${s}$ in this equation!  So there are really two questions here - the one in the title, and a sneaky one about how to take logs in a modulo arithmetic equation.


My husband is a Canadian citizen. He has sponsored me for Permanent Residence which I should receive soon. I'm going to travel to Canada via London, and I'm planning a layover of 21 hours.  At one time, I was in the UK for 6 years and I want to use the layover to visit my friend. Can I enter the UK without a visa during my layover time, or do I need a visa?


What is the elementary methods?How we define elementary methods for integrals?And why we just can't solve these with elementary methods?

First of all, what is the elementary methods for solution of integrals?Who decides this?For example, and $\displaystyle\sqrt{lnx}dx$ or $\displaystyle\int e^{sin(e^x)}dx$  When I try to solve these integrals and fail,then want wolfram to solve these,and I always get this   $$\text{(no result found in terms of standard mathematical functions)}$$  What is the "standard mathematical function", Can  $\left[\dfrac2{\sqrt \pi}\displaystyle\int^x_0 e^{t^2}dt\right]$ be a standard function?Why not?  What is the tiny line between standard and non-standard functions?Why we can't  solve these non-elementary integrals with elementary methods?Can we define or fidn all elementary methods?


Sort by "Highest Rated" with thumbs up/down votes

My website has lists of images and a simple rating system that uses thumbs up and thumbs down votes. Now I want to be able to sort the list page by "Highest Rated" (as well as "Lowest Rated"). However, I don't know the "expected" way to do this as there are multiple ways:  1. Sort by the number of upvotes   This satisfies the "highest rated" aspect, an image will 1,000 upvotes is higher rated than an image with 5 upvotes. However, what if that same image has 10,000 downvotes. Is it really higher rated than an image with 5 upvotes 0 downvotes?  2. Sort by ratio of upvotes   So an image with 1,000 and 10,000 downvotes will only have a upvote ratio of 1:10 or 0.1, while an image with 5 upvotes and 3 downvotes will have a ratio of 1.6, thus it will take into account both ratings to give a more accurate depiction of how it was rated. However, that mean an image with 1 upvote and 0 downvotes will be higher rated than one with 1,000 up and 1,001 down, which at face value might look confusing.   Which way of sorting ratings will make the most sense to the users?


Prove that for each $n \in \mathbb N$, $\gamma_n=1+\frac{1}{2}+\dots+\frac{1}{n}-\int_1^n \frac{1}{x}dx$ is convergent

Question :    For each $n \in \mathbb N$, Define : $\gamma_n=1+\frac{1}{2}+\dots+\frac{1}{n}-\int_1^n \frac{1}{x}dx$    Prove that $\{\gamma_n\}$ is convergent.      Note 1 :  I know that $\sum_1^\infty \frac{1}{k}$ diverges. I can guess that this sequence is convergent to $0$ because of the similar terms inside the integration and outside of it.  The problem is that the integration is continuous. I mean that $x$ is not just integers.  What can we do with the values left?! ( For example, $\frac{1}{2.5}$ ) Also, Notice that this problem should be solved with some elementary tools.  ( It's from a part of my book which is even before any discussion about the Fundamental theorem of calculus. )   Note 2 : I'm not good at integration and i'm learning it. Any good details can help me.    Thanks in advance.


Zero search results when searching for [tagOne] [or] [tagTwo] score:-2

I'm able to search for the newest questions tagged with [xcode] and [ios] and score >= -2.    But I see 0 results when searching for the newest questions tagged with [xcode] or [ios] and score >= -2.


Removing page number from the first page of new part

I am creating a book class document with several parts, each part containing several chapters. Now, the document is openany, so that the chapter may open on odd or even page. But each part has to open on an odd page, with a blank page following, and both pages should have no header or footer. I can get the empty page following a new part by adding \cleardoublepage and \thispagestyle{empty}, but the page number still appears on the opening page of the new part. The publisher doesn't want this. I am giving a minimal example below. How could I remove the page number from the opening page of a part?  \documentclass[a5paper,11pt,openany]{book} \usepackage[margin=2cm]{geometry} \usepackage{lipsum} \begin{document} \part{Part One}\thispagestyle{empty}\cleardoublepage \chapter{Chapter One} \lipsum[1] \cleardoublepage\thispagestyle{empty} \part{Part Two}\thispagestyle{empty}\cleardoublepage \chapter{Chapter Two} \lipsum[2] \cleardoublepage\thispagestyle{empty} \part{Part Three}\thispagestyle{empty}\cleardoublepage \chapter{Chapter Three} \lipsum[3] \end{document}


I have this situation on my hd:    I would increase the space of sda10 with the double unallocated space. There is a way to do that?


Differences between male and female road bikes?

My girlfriend would like to take up road cycling and join me, but hasn't had a road bike before me. So, I'm gleefully eyeing up an excuse to go bike shopping :-)  I'm used to the idea that road bikes are also offered in 'women-specific' frames - not as in the old style with the lower crossbar, but a different geometry to an otherwise standard two triangle frame. When reading up, it seems this can be significantly a smaller frame - which wouldn't be an obvious benefit for her, because we're both 5'9 give or take and fairly similarly proportioned.  I know why women-specific saddles are a thing, but they're an easy swap at a friendly bike shop. Is there any other reason why a 'mens' frame wouldn't be perfectly good for her?


i have a fat 32  USB and windows 10 image and wish to make the USB bootable  what the steps  i need to take in order to make that happen?  i didnt try much as im a novice user so any guidance would be very much appreciated


My blender system tab shows CAICOS in compute drop down...when i render with graphics processing unit compute.my render screen. is blank.but with CPU its rendering.I do not n have any error messages in console window.I have ATI 6490m graphics card with memory 1gb


At 12 o'clock, I have ... "an hour's break" or "an hour break" or "a one-hour break"?

Is this the most natural way to put it:     I work in a big company. At 12 o'clock I have an hour break.   Or should we better say:     I work in a big company. At 12 o'clock I have an hour's break.   Or even     I work in a big company. At 12 o'clock I have a one-hour break.   I would go for the last version, being unsure in how widely the first two are used, under the "" principle; but still I'm curious.   P.S. My question is different from  because I'd also want to know whether  "an hour break" is okay. I was , chanced upon this expression, decided to inquire whether it was okay, but in the end added some alternative formulations.   I'd like to know which is more widely used and whether there are differences in meaning.


I have the following instructions for Windows:    However, I am using Mac OS X with the latest version of MacTeX.  I already found this thread:    But I am not sure if this is similar to my case. Any ideas how I can perform these steps on a Mac OS X operating system?


Imgur is over capacity - some user avatars fail to load

I see a lot of 'white' avatars in the question lists, e.g.  and . Some user avatars aren't loaded, e.g.  and  – they just timeout for me. Sometimes (but not always) I do get a nice "Imgur is over capacity!" image, which I'm (rather surprisingly) able to upload to imgur - but you might not see it.


OSM:Redirect from 'https:' to 'https:' has been blocked by CORS policy

I'm using OSM Standard base layer with Openlayer V4.1 API. While accessing OSM getting Exception:     Access to Image at   '' from origin   '' has been blocked by CORS policy: No   'Access-Control-Allow-Origin' header is present on the requested   resource. Origin '' is therefore not allowed   access. The response had HTTP status code 404.   I also tried with and Without crossOrigin null. The code is:     map = new ol.Map({       layers: [         new ol.layer.Tile({           source: new ol.source.OSM(),           opacity: 0.7,           crossOrigin:null         })       ],       target: 'map',       view: new ol.View({         center: [19412406.33, -5050500.21],         zoom: 5       })     });   });   Any help to solve the issue?


How can I make tabu break lines at any character?

I have a table created with \begin{tabu} whose columns contain lengthy strings that it won't wrap because they are not English text, they are actually programming language identifiers. How can I enable them to break on additional characters other than whitespace and hyphen (such as colons or underscores), or even at any character (if none of those additional characters are present).  A demonstration of my problem:  \documentclass{article} \usepackage{tabu} \begin{document} \begin{tabu}{|X[l]|X[l]|X[l]|} \hline ThisIsAVeryLongStringWhichINeedToBreakAcrossMultipleLines & Yet:Another:Very:Long:String:Which:Must:Be:Broken:Up & break\_up\_this\_string\_too\_please \\ \hline \end{tabu} \end{document}