Is there a way for me to uninstall or delete EVERYTHING off of my computer?

Is there a way for me to uninstall or delete EVERYTHING off of my computer including Linux Ubuntu because I want to make sure I can know everything that I have on it is just the stuff that I need. Please help me with this problem.


I follow up on setting up SSL connection to my Apache2 It works well when I access my website from a local IP address but if I use a Dynamic DNS service with HTTPS in the beginning than I doesn't get to the website but actually can see my website folders.  What have I done wrong ?


Why doesn't electricity and magnetism distort space as well?

I think Kaluza/Klein was partly worked on to find additional dimensions to account for electric and magnetic fields.  I am confused why the gravity field gets the privileged spot of distorting space-time, whereas electric and magnetic fields have to use some other mechanism.  Is this somehow related to electric and magnetic fields having attractive and repelling force modes?


Adding Read-Only-permissions to a list for a Sharepoint Group using Powershell CSOM

I am trying to add read-only-permissions to a specific group called "Students" for a list I have created called "Quiz". I have to use PowerShell CSOM, and in every other tutorial I've been through, .NET server types have been used.  Code:  $ListName = "Quiz" $PermissionLevel = "Read Only" $web = $ctx.Web          $lists = $web.Lists $ctx.Load($lists) $ctx.ExecuteQuery() foreach($list in $lists) {     if($list.Title -eq $ListName)     {         $listId = $list.Id     } } $list = $lists.GetById($listId) $ctx.Load($list); $ctx.ExecuteQuery();  Write-Host "List:" $List.Title -foregroundcolor Green if ($list -ne $null) {     $groups = $web.SiteGroups     $ctx.Load($groups)     $ctx.ExecuteQuery()     foreach ($SiteGroup in $groups) {                             if ($SiteGroup.Title -match "Students")         {             write-host "Group:" $SiteGroup.Title -foregroundcolor Green             $GroupName = $SiteGroup.Title              $builtInRole = $ctx.Web.RoleDefinitions.GetByName($PermissionLevel)              $roleAssignment = new-object Microsoft.SharePoint.Client.RoleAssignment($SiteGroup)             $roleAssignment.Add($builtInRole)              $list.BreakRoleInheritance($True, $False)             $list.RoleAssignments.Add($roleAssignment)             $list.Update();             Write-Host "Successfully added <$GroupName> to the <$ListName> list in <$site>. " -foregroundcolor Green         }                         else         {                 Write-Host "No Students groups exist." -foregroundcolor Red         }     } }   My error is in   $roleAssignment = new-object Microsoft.SharePoint.Client.RoleAssignment($SiteGroup)   , where I'm recieving the error  Cannot find an overload for "RoleAssignment" and the argument coun t: "1".   Most tutorials use   $roleAssignment = new-object Microsoft.SharePoint.SPRoleAssignment($SiteGroup)   which I CAN NOT USE.  How can I complete my code?  P.S. I know my code is a bit messy, but I've been spending too much time trying to find a solution, and my code has greatly reduced in quality over the past hours. Sorry for that.


How to write a cite command that never fails (avoid [??])

When writing small documents and drafts for my own reference or quick sharing I often leave the bibliography building for a later stage. In this intermediate stage I still want to use the \cite (or variants of it) to keep track of bibliography, that will later reference the appropriate entry.  The problem is that when I compile the document I get "[??]" as placeholders. This is distracting and it doesn't even give any information of what is missing. Is is possible to get a reasonable content in this placeholder that is not "[??]" from the \cite command?  For example if the code is bla \cite{Einstein1905} bla, and Einstein1905 is not in the bibliography yet, I would like to get at least "bla [Einstein1905] bla", until more information is available in the bibliography database (after which it may just appear as "bla [3] bla" o "bla [Eins05] bla" depending on the style.  Also (and ideally) the fallback result "[Einstein1905]" could be typeset in typewriter style or something to still indicate that something is missing.  I know of the package showkeys but it doesn't do exactly this, not at least by default.


Logistic Regression: p values all '1', yet model fits perfectly

I was trying to help a student and was foxed by this Logistic Regression problem and seek your explanation.  Here's some economic . All we have to do is create a model to predict whether the country falls in debt. The response variable is "Dependent.variable"  I analyzed using 'R' and the glm function and what I found was:    All the variables showed a 'p-value' of 1, indicating none of the variables are significant.     I plotted each variable versus the dependent - and sure enough - the variable is not co-related to the response. The feature values are scattered all over the place And yet - the model fits perfectly!  On a test set - it predicted all cases perfectly The ROC curve is a rock solid square I then took all the "coefficients estimates" and built the equation and computed probabilities using the expanded form of e/(1+e) - and it does give near perfect probabilities   How is this possible? What am I missing here!  Data >   Edit: Here is the model and the output  Call: glm(formula = Dependent.variable ~ ., family = binomial, data = dfTrain)  Deviance Residuals:         Min          1Q      Median          3Q         Max   -4.107e-05  -2.100e-08  -2.100e-08   2.100e-08   4.278e-05    Coefficients:                                  Estimate Std. Error z value Pr(>|z|) (Intercept)                    -3.238e+01  6.458e+05   0.000    1.000 Inflation.CPI.                  1.931e+00  4.966e+03   0.000    1.000 Debt.GDP                        2.590e-01  1.830e+03   0.000    1.000 OfficialForexReserves.US.Bil.. -2.575e+00  2.538e+03  -0.001    0.999 GrossInvestment.GDP             7.396e+00  6.158e+04   0.000    1.000 Gov.Revenue.GDP                -5.396e+00  3.016e+04   0.000    1.000 Net.FDI.GDP                     8.927e-01  1.135e+04   0.000    1.000  (Dispersion parameter for binomial family taken to be 1)      Null deviance: 6.4924e+01  on 50  degrees of freedom Residual deviance: 6.0091e-09  on 44  degrees of freedom AIC: 14  Number of Fisher Scoring iterations: 25   Rajesh


My domain is apitrak.com registered at gandi.net. For my mail I use Apple Mail and th Gendi.net SMTP server throught SSL.  When I respond to a Gmail address, I get an "Undelivered Mail" response by Google, informing me that my email was treated as Spam:   This is the mail system at host relay5-d.mail.gandi.net.  I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below.  For further assistance, please send mail to postmaster.  If you do so, please include this problem report. You can delete your own text from the attached returned message.                    The mail system  <xxxxxxxxxxxxx@gmail.com>: host    gmail-smtp-in.l.google.com[2a00:1450:400c:c06::1b] said: 550-5.7.1    [2001:4b98:c:538::197      12] Our system has detected that this 550-5.7.1    message is likely unsolicited mail. To reduce the amount of spam sent    550-5.7.1 to Gmail, this message has been blocked. Please visit 550 5.7.1    https://support.google.com/mail/answer/188131 for more information.    9si38384151wmi.71 - gsmtp (in reply to end of DATA command) Reporting-MTA: dns; relay5-d.mail.gandi.net X-Postfix-Queue-ID: 2ECF641C09D X-Postfix-Sender: rfc822; vincent.le@apitrak.com Arrival-Date: Wed, 13 Jan 2016 12:56:41 +0100 (CET)  Final-Recipient: rfc822; xxxxxxxxxxxxxxx@gmail.com Original-Recipient: rfc822;xxxxxxxxxxxxxxx@gmail.com Action: failed Status: 5.7.1 Remote-MTA: dns; gmail-smtp-in.l.google.com Diagnostic-Code: smtp; 550-5.7.1 [2001:4b98:c:538::197      12] Our system has    detected that this 550-5.7.1 message is likely unsolicited mail. To reduce    the amount of spam sent 550-5.7.1 to Gmail, this message has been blocked.    Please visit 550 5.7.1  https://support.google.com/mail/answer/188131 for    more information. 9si38384151wmi.71 - gsmtp   Following the link, it tells me to avoid mass mailing: that is absolutely not my case (simple response or fwded response).  It also tells that I should not "change the envelope sender when forwarding email to Gmail." But I don't know what that means.  Any idea?


Suggested questions order in "Ask Question"

In "Ask Question" page of SE sites displays list of question already asked based on the title of the current question, it would be helpful if the questions are ordered based on the tags if tags are added in the current question being asked.  For example:  In Stackoverflow if the question is "Call super class method" and the tag is , first two questions are in  and . If those questions are in c# it will be helpful and reduce duplicate questions.


I have a problem understanding usage of articles before abstract nouns. There are a couple of rules I found:   Use articles with uncountable abstract nouns to refer to a specific feeling: a deep distrust, an everlasting love, the love of music We only use an article before an abstract noun if we wish to talk about a specific type of the noun   Could you please explain, why the following sentences are correct (they are from a textbook):  1) However, it ends with great optimism. - it seems to me like a specific feeling that requires an indefinite article  2) Would you like to experience the deep sense of satisfaction you get from creating your own original work - why do we use the article before deep sense, not an indefinite article a or no article?  3) She brought me up in relative peace and security - why don't we need any article before peace and security?  4) I was overwhelmed by the excitement of such an adventure - why do we need the here?  Thank you for your help in advance!


Can we post two answers(same user) in same question?

I am talking about this post :    The user seemed to be able to post two answers without deleting one. Is this correct or some mismatch ?


Can I use a study visa in an expired passport?

Can I travel to Canada with a valid study visa in my old expired passport? I now have a new passport, which does not have in a Canadian study visa.


Is it true that $2^n - 1$ is a prime if and only if n is a prime?


Got Stuck When Installing Octave in High Sierra

I've tried to install Octave using homebrew by using this command: brew install octave. But after make sign, I got stuck and nothing happened more than a half hour.  ➜  ~ brew install octave ==> Installing dependencies for octave: gcc, veclibfort, arpack, jpeg, libtiff, little-cms2, ghostscript, epstool, fftw, cmake, jasper, netpbm, fig2dev, fltk, freetype, fontconfig, gl2ps, glpk, webp, gd, lua, gnuplot, graphicsmagick, szip, hdf5, flac, libogg, libvorbis, libsndfile, pcre, portaudio, plotutils, xz, imagemagick, pstoedit, qhull, qrupdate, metis, suite-sparse ==> Installing octave dependency: gcc ==> Downloading https://ftp.gnu.org/gnu/gcc/gcc-8.1.0/gcc-8 Already downloaded: /Users/asrulsibaoel/Library/Caches/Homebrew/gcc-8.1.0.tar.xz ==> ../configure --build=x86_64-apple-darwin17.4.0 --prefix ==> make   How can I solve this?


How to I avoid getting Null Pointer Deference after typing while using getScaledInstance?

To keep it short here is my objective:  to get the photo scale to the jPanel. the best it could can switch photos at the same time. (I'm using jLabels to get icon)  ps:  I might need to add watermark to the photo so it may be best that you can help me too. Thank You.  BufferedImage img = null; try {     img = ImageIO.read(new File("strawberry.jpg")); } catch (IOException e) {     e.printStackTrace(); } Image dimg = img.getScaledInstance(jPanel.getWidth(), jPanel.getHeight(),Image.SCALE_SMOOTH);   can i know is this error talking about: null pointer deference


Find all integers $x$ such that $x^2+3x+24$ is a perfect square.    My attempt:    $x^2+3x+24=k^2$ $3(x+8)=(k+x)(k-x)$    Now, do I find solution treating cases? But that doesn't seem very easy. Please help.


I'm traveling from Macao to India with Air Asia and have an 8-hour transit in Kuala Lumpur.  I do not plan to leave the airport, but I'm wondering if I need a transit visa for Malaysia.


Proving a nilpotent matrix has only 0 as eigenvalues

I would like a verification of this proof:  Prove that $A\in M_n(\mathbb{C})$ is a nilpotent matrix if and only if $0$ is its only eigenvalue.    ($\Rightarrow$): if $A$ is nilpotent, then there's a index $k \le n$ such that $A^k = 0$. Let $\lambda$ be an eigenvalue of $A$. Since $Ax = \lambda x$, $A^kx = \lambda^k x = 0$, so $\lambda^k x = 0 \Rightarrow \lambda = 0$.  ($\Leftarrow$): argue for the sake of contradition that $0$ is the only eigenvalue of $A$ but $A$ is not nilpotent. Then $A \ne 0, A^2 \ne 0, \dots, A^n \ne 0$. Since $Ax = \lambda x$ with $x \ne 0$, $Ax = 0, A^2x = 0, \dots, A^nx = 0$. A contradition.  But something feels off about this, I'm not sure if this is correct.


What is the relationship between MIME types and File .extensions?

I may have the wrong idea here, but I thought that:    MIME types are identifying codes, embedded inside a file. File .extensions are idenifying codes, suffixed to the file's name.   I thought, from something I heard in the dim dark ages, that Linux was .extension agnostic... ( maybe it was in the early days, and things have changed since then...? )  I've recently come from the Windows world, where, at the Operating-System level, a file .extension is the only way (as far as I know) to associate it with its relevant Application program.    Because I don't know why, I find it a bit disconcerting that a file named  "fred" and a file named "fred.txt" both open up in a Text Editor.    Is there a clear-cut hierarchy at work here?


I write a short macro which put a picture on the left and a text on the right:  \newlength\largeur  \newcommand{\uneQuestion}[1]{     \setlength{\largeur}{\columnwidth}     \addtolength{\largeur}{-16mm}     \noindent     \hspace*{2mm}     \parbox{12mm}{\iconequestion}     \hspace*{2mm}     \parbox{\largeur}{\color{CouleurQuestion!95} #1} }   As you can see largeur will be the width of the text and in order to compute it, I substract to the column width the two \hspaces and the \parbox space.  But If I did that, the text is slightly larger than the \columnwidth. I guess that there is a short space around a \parbox?


How do I report a user who has not posted and has an “about me” section full of spam?

A few minutes ago, I came upon  whose About Me section was an advertisement. The user has not created any posts. How do I report this user? Other questions said to flag any post as moderator attention required and to explain to the moderators what happened, but this user has not created any posts.


Can you be a graphic design major but not have the ability to draw?

I have never really had the ability to draw, but I've also never taken a formal drawing class.  I am interested in graphic design and doing advertisements.  Do you need strong drawing skills to major in graphic design?


How can I change resolution using xrandr?

I have a dual monitor setup. 2nd monitor has a VGA connection. Resolution 1366x768 not found in display settings or randr. How do I add resolution 1366x768 to output.  I have tried this:  VGA-0 connected primary 1024x768+0+190 (normal left inverted right x axis y axis) 0mm x 0mm    1024x768       60.0*     800x600        60.3     56.2      848x480        60.0      640x480        59.9     Did  xrandr -s 1366x768:  Size 1366x768 not found in available modes   And xrandr --output vga-0 --mode 1366x768:  warning: output vga-0 not found; ignoring


I received a question ban yesterday (which I deserved). I thought that Stack Overflow was a tech question and answer site rather than just coding.  I want to un-ban my account but I'm not sure how. I completely rewrote the question (completely different subject now and I good question that I need help with), but how do I get un-banned?


What is a few good abstract algebra books for second courses that is both readable for advanced undergraduate and beginning graduate student?  Or the intermediate one for self study?  Or at the same level as Herstein's Topics in algebra?


Find the sum of the binomial coefficients $(^n_0)+(^n_1)+...+(^n_{n-1})+ (^n_n).$  I'm not good with the binomial theorem but I do know that $\sum_{k=0}^{n} (^n_k)x^{k} = (^n_0)+(^n_1)x+...+ (^n_n)x^n.$  Now comparing the binomial coefficients I can see some similarities, but the difference would be that $(^n_{n-1})$ and the $x^n$.  If I just have  $\sum_{k=0}^{n} (^n_k) = (^n_0)+(^n_1)+...+ (^n_n).$ then all I would be needing would be that $(^n_{n-1})$.  Any help?


For how much energy does the heat generated in earth's interior account in earth's total energy budget?

I imagine the sources of earth's total energy budget to be   The sun  The sun deposits about $\sim 1400 \frac{\mathrm{kW}}{\mathrm{m^2}}$ via radiation on earth. Eventually, this is the source of the energy of all fossil fuels and what not. Plants grow due to photosynthesis (which needs sun's energy) $\rightarrow$ we eat plants $\rightarrow$ we can do work. And so on.. Earth's interior  The earth's core is warm. I imagine this due to what I call primordial heat, i.e. heat generated at earth's formation (e.g. due to translation of kinetic energy from meteor impacts and so on) and due to heat from decay of radioactive isotopes in earth's core and mantle (and crust). Cosmic sources  Neutrinos, cosmic rays, gravitational waves, etc. all deposit energy in earth's atmosphere and earth itself, but I imagine those negligible.   How does the total budget look like? For how much of the total energy on earth accumulated over it's lifetime does the sun account? For how much the earth itself? I want to form a statement like   "Everything what happens and what is on earth exists solely because of the sun... except like the $\sim 1 \%$ of energy from the earth itself."


"Low Memory Space" but my space is plenty

As of right now i have 144mb on external, and 44 on internal. But i can't download a 8mb app? I fixed it once but i had to do a lot of stuff to it and I'm only 14 so yeah not a tech wiz. Its getting really annoying. Help?  When i clear the data for Google Play Store Services and Google Play Store (application manager > all) the low memory space notification thing foes away for like 10seconds and then comes back


how do I access raw URL from a File Field to render it in twig inside href?

I have a "Our Staff" Content Type, that includes a field for uploading an individual's CV as a PDF:  field_cv_file   I have created a View for this Content Type, then added it to page via Blocks  The twig file I'm using to render/style this area is:   views-view-fields--our-staff-view--block-1.html   I'm having trouble with the URL for the File Field  I can render it as a PDF icon link like this:  {{ fields.field_cv_file.content }}   But I want to obtain the 'raw' URL to apply inside a href, something like this:  Download CV   This however is not working.  I've tried a few different ways of rewriting the code in href, but none are working.  how would I do this?


placing in the same page two abstract in different language

I'd place in the same page two abstract section.One created using my own language and one in english language. If I tried this:  \selectlanguage{italian} \begin{abstract}     \lipsum[1] \end{abstract}  \selectlanguage{english} \begin{abstract}     \lipsum[1] \end{abstract}   but they are placed into two different pages  Edit:  this is my environment definition:  \newenvironment{abstract}{     \clearpage     \vspace*{\fill}     \begin{center}%         \bfseries\abstractname     \end{center}}%     {\vfill\clearpage}


Whenever I import new layers or adjust older layers in my geoserver, I have to do  a lot of manual work, for example "compute from native bounds", "reload feature types" etc. This is very annoying when it comes to > 10 layers and I am looking for a method to automate that.


List all MAC addresses and their associated IP addresses in my local network (LAN)

How can I list all  and their associated  of the machines connected to my local network (LAN)?


I am using biblatex with biber as backend. In my .bib file, I use some additional fields like titleaddon, usere etc., which should be displayed within the printed bibliography. However, when using \cite, \footcite etc., these additional fields should be hidden. Is there a possibility to overwrite the define the to be displayed fields for certain entry types or even all entry types? So far, I only found a solution to hide certain fields within the bibliography, but this is not what I desire. Thank you very much for your efforts!


There was a time not long ago when this question would (and should!) of been marked as a duplicate of  or many others...  But the landscape of Ubuntu has changed since 12.04, and it will again with 14.04.  My question is this:  Who should run the LTS now? Is it just business and servers, or is it now casual users, home users and students as well?  On the other hand, since the regular releases are not as major as they used to be, would they be safe for students and casual users? Could a someone depend on their laptop day in and day out on a regular release?  What are the Pros and Cons of each now?  Specifically I ask because I'm an engineering and physics student. I do a lot of programming, CAD (VMWared SolidWorks), and writing (LaTeX). I want to know whats best for me since I can't have my computer unstable.


Please help ID story about asteroid-mining space creatures

It's been a long time, so details are fuzzy, but here goes:  Humans are exploring some asteroid belt and they come across some space insects (& other weird biological creatures) instinctively mining ores and such. The humans start using artificial pheromones to control the bugs and make them give the ore to human mining ships. The upset to the hive's patterns ... wakes up a dormant intelligent mind ... which then threatens the humans with assimilation. One line that stuck with me is the hive brain telling the frightened miner: "That creature you see over there eating your vomit; a million years ago they called themselves the Lions, and were the terror of the Galaxy."


What is the appropriate way to encode and handle regressors that are nested? For example, a feature "Husband's age" is nested in the feature "Is married" in a sense that it's not defined unless "Is married" = 1. Should "Husband's age" be set to 0 or NA for those who are not married? Should we omit "Husband's age" from the model entirely and only use the interaction term "Husband's age"*"Is married"?  I guess this situation must be quite common, but I don't even know how to google it.


When I started the system, computer automatically opened grub-rescue. I use command: ls: (proc) (hd0) (hd1) (hd1,gpt2) (hd1,gpt1) System installed on (hd1,gpt1) and it contains: (hd1,gpt1)/efi -> efi/ubuntu/ efi/boot If I try to boot, there is a error: you need to load the kernel first. I can't find any file, which call vmlinuz or initrd.img, so how can I restore my system?


How to deny a specific user to reboot or shut down with sudo

Hello and thanks for helping me in this question. I just have in /ets/sudoers something like this:  # User Aliases User_Alias CLIENT = jhonny  CLIENT myserver = ALL. !ADMIN_CMD,!SU   I just want deny to jhonny the capacity to shut down or reboot the machine.  Server is Red Hat 6.6 Santiago.


Progress of Google Play to Game Centre in iPad

I used to play Clash Of Clans on Android phone has have my progress saved in google Play Store but now I want to play on iPad. Is there any way to transfer the progress from Android to iPad?


Why does the midpoint method have error $O(h^2)$

In solving an ode  $$ y'(t) = f(t, y(t)), \quad y(t_0) = y_0 $$  the  estimates  $$y_{n+1} = y_n + hf\left(t_n+\frac{h}{2},y_n+\frac{h}{2}f(t_n, y_n)\right)$$  But why is the error $O(h^2)$? The estimate for Euler's method is straightforward since it's just the Taylor approximation, but here it doesn't look like a Taylor approximation.


Calculate the symmetric group of the tetrahedron.

Hello I need to calculate the symmetric group of the tetrahedron but I don't know how to deal with this problem. I think that the answer is $S_4$ and  we have $|S_4| = 4! = 24 $ permutations So can you tell me what to do just write all the permutations and it's all?


I tried to install Windows 7 on my Mac via Boot Camp, but the disk of Windows 7 doesn't work. When I tried to install the Windows 7 it shows a black screen.  Now I want to boot back to OS X, but I don't know how.  Do I have to re-insert the Mac disk? If yes, how can I take out the disk from the Mac?


How to pass a function as an argument, with arguments?

So, I'm playing with callbacks in GNUTLS.  I want to pass my function, handleSNI to a function, but I also want to pass on some other important arguments as well(to handleSNI when it is called).   I could just do them outside the functions in global variables, but that isn't thread safe.  Is it possible? If not, how can one accomplish this?


In order to fully clarify my question, here's what I intend.  I have a notebook running Windows 10 on an Intel Core 2 Duo and 3 GB of RAM.  I intend to run MacOS (the apple operating system) on this notebook; either standalone or sideways (2 OS on the same machine).  This question might appear super-silly but I happen to be a complete Apple noob.  So, I don't even know if Apple sells its OS as a standalone product. And basically that's what I am trying to inquire. I skimmed through various high-end/expert/in-complete posts online that mentioned that MacOS can be downloaded from the iTunes or something like that, but I have no idea what that means. Or if that is even legal or not.  I don't want a limited solution for this like running a virtual machine, as I intend to develop for iOS using this.  I want to run the actual/complete (not necessarily the latest, but late) version of Apple OS, without having to buy a Mac.  Remember, I am a noob. So, please be as, specific and thoroughly detailed and clear; as possible.  If possible, please give a step by step solution.  Thank you for the time.


The comments section is a train wreck - which comment do I flag for moderator attention?

I recently saw  on Cooking.SE. The comments section there is a disaster, so I flagged for moderator attention on the first comment on the answer. However, I'm not sure if I should have flagged the very first comment, or the first comment that went off-topic and started the train wreck in the first place.  If the entire comments section is a mess, which comment should I flag for moderator attention?  To be clear, in this question I don't care about whether or not the answer is low-quality, NAA, should be deleted, etc. I'm focusing on the fact that comments need to be cleaned up.


How do you select the fastest mirror from the command line?

I want to update my sources.list file with the fastest server from the command line in a fresh Ubuntu Server install. I know this is trivially easy with the GUI, but there doesn't seem to be a simple way to do it from from the command line?


Regular Expression to match only the first block of text

The text below has 3 blocks that start with /*+ and end with /*-. The regular expression (/[*][+]a[*]/)((?s).*)(/[*][-]a[*]/)\R matches all the text below. How can I match only the first block?  TEXT TEXT TEXT TEXT TEXT TEXT  /*+a*/ --TEXT 1 --TEXT 1 /*-a*/  TEXT TEXT TEXT  /*+x*/ --TEXT 2 --TEXT 2 /*-x*/  TEXT TEXT TEXT TEXT TEXT TEXT  /*+a*/ --TEXT 3 --TEXT 3 /*-a*/  TEXT TEXT TEXT TEXT TEXT TEXT


how the best way to make something to center

i'm trying to center layout using many ways, but still not find the best way how to do it. in my code below, the button rental not be in center. i think it because the margin-left but i'm not find anything. i'm always have a problem to make something to center. please help how the best way to do it. and can i make a margin between class="val" ?  this is my example code    a.button {   margin-top: 10px;   background-color: #008CBA;   font-size: 16px;   padding: 12px 28px;   border-radius: 2px;   border: 2px solid #008CBA;   -webkit-transition-duration: 0.4s; /* Safari */     transition-duration: 0.4s;     -webkit-appearance: button;     -moz-appearance: button;     appearance: button;      text-decoration: none;     color: white;     margin-bottom: 10px; } .button:hover {     background-color: #3399ff;     color: white;     border: 3px solid #008CBA; } ul{   list-style-type: none;     margin-top: 10px;     padding: 0;   /*overflow: hidden;*/   /*width: 20%;*/     /*margin-bottom: 10PX;*/ } li{   float: left; } li button {   background-color: #008CBA; }   #pencetan{    display: table;   margin: 0 auto;  }

<button id="less">-</button>

1

<button id="add">+</button>

 Rental


Show that it doesn't exist any of natural number  $ n = 4m + 3$ that $  n= x^2+y^2 $ for any natural x and y  Show that every prime number in form $ p=4m+1 $ could be showed as $ p = x^2+y^2$ (x and y are natural)  I checked it and it


Space Opera Novel Series ID - Probably Read in 2003-2010

I'm looking for the name of a series of space opera novels I read some time ago, probably between 2003 and 2010.    It may have been published quite a few years before I read it, I don't think it was new at the time. I borrowed the novels from the local library, but I can't find them in its catalogue. I think the covers were fairly dark and plain, though there may have been some artwork on them. There was a totalitarian empire that controlled most planets, possibly ruled by a queen. There was no mention of Earth, the solar system or other real planets, the setting was completely fictional. There were people with psychic/psionic powers, referred to as something like "psi". These people were second-class citizens or slaves. Spaceships were used to travel between worlds. I'm not sure what kind of FTL technology they had, if any. Beyond the edge of the empire was some kind of "dark space", where there was no light. There were some horror themes: When travelling in dark space in one of the novels, a ships crew experienced strange thoughts and hallucinations. I remember finding this quite scary at the time.   Does anyone know which series this could be?  This isn't a duplicate of , since the two questions are about different parts of the same series (the first and second episodes).


I am using a binary classifier in my research. I wanna report the obtained result of classifier, but I am not sure about it.  The learning prosedure is as follows:  for (iteration in 1:10) # for more accuracy {  1- Divide data to train and test partitions,   2- Train_result[iteration]: Train classifier using 'train' data using cross-validation and save 'classification error',   3- Test_result[iteration]: Test the trained classifier in step (1) performance using 'test' data and save 'classification error',   4- TrainTest_result[iteration]: Use the trained classifier in step (1) to classify all, 'train and test', data and compute its 'classification error'. }  TrainError_avg = mean(Train_result) TestError_avg = mean(Test_result) TrainTest_result_avg = mean(TrainTest_result)   I should report which of the above three measures, 'TrainError_avg', 'TestError_avg', or 'TrainTestError_avg', in my paper?  If I want to plot ROC curve, I should plot ROC curve for which of them? Besides, Should I average between ROC over all iterations?  I appreciate if you could clear these stuff to me.


Schrodinger equation: If $V(x)=V(-x)$ then prove that $\psi(x)=\psi(-x) $ or $\psi(x)=-\psi(-x)$

The title explains itself. If the potential is an even function then prove that wave function is either odd or even. I set $-x$ in Schrodinger equation and find out that $\psi(-x)$ is also a solution for the equation therefore any linear combination of $\psi(x)$ and $\psi(-x)$ is also a solution but I couldn't go any further from that. Any help is appreciated.


UK Spouse Visa: should I disclose speeding tickets and small fines issued in Russia

When I was applying for a Spouse visa in 2016, the questioning was a bit different: it clearly stated criminal offense. I answered I had no penalties and got the visa. Now the wording is: At any time have you ever had any of the following, in the UK or in another country?.. A caution, warning, reprimand or other penalties  Because it no longer mentions "criminal", I am not sure whether I need to disclose my penalties.  Please advice!  Some background information:  I have been driving in Russia for 10 years and got multiple speeding tickets (which I paid and never saved a copy of). I also believe I have been issued tickets for crossing the road in the wrong place as a pedestrian, having dirty car number plate etc.  I don't think any of it is considered a criminal offense in Russia, as only drunk driving, extreme speeding (up to 60km/h) etc leads to police revoking your driver's license for a period of time. Everything else is just a fine - we have no points-based system here.   All the speeding tickets were issued in my gran's name, as the car is registered on her Some of the small tickets (mentioned above) were issued in my name


I want to get records from custom object sort by a field as number. The field I want to sort is string type. Is there any way to do that? I am storing result in list, is there a way to sort list based on the string field but sort it as number?


64 bit - Ubuntu 13.04 Skype 4.2 can not install

I've been trying to download and install skype 4.2 on my PC for a long time, I have attempted many times but I have failed. The description of my computer is the following:   Dual Booting with Windows 8 (32 bit) Installed Ubuntu 13.04 (64-bit) with Wubi Installed skype app and desktop application for windows I have installed all updates and Ubuntu seems to run smoothly and sexy (as usual).   I have tried to install it from the skype website (), not knowing which distribution to choose, I chose the "Ubuntu 12.04 (multiarch)" Distribution. After downloading I get the "skype-ubuntu-lucid_4.2.0.11-1_i386.deb" package on my downloads folder. After double-clicking it I get the following message from the Ubuntu Software Center: "Wrong Architecture 'i386'" withtout further explanation.  Then I try the "Ubuntu 10.04 (32-bit)" distribution... same results. Then I try the "Dynamic" distribution... get a "skype-4.2.0.11.tar.bz2"And I get the following read me file:     Skype for Linux 4.2 README      INSTALLATION      If you are using one of the distribution-specific packages, simply run the   "skype" executable.  KDE users should find a launcher for Skype in their   Internet menu if Skype has been installed through one of these packages.      If you are using the dynamic and statically linked generic versions, you   will need to choose a path for Skype to exist in.  We recommend copying the   skype binary to /usr/bin and installing sounds/, lang/ and avatars/ into   the /usr/share/skype directory.   Since I don't have a lot of experience with Linux, I haven't accepted tux as my lord and saviour, neither I have been Bourne Again (get it? Bourne Again? anyone? no? okay.), I just know the basic commands. Even though I know them, I couldn't successfully, do what the README file instructed me to do. I tried 'cp' and 'mv' but I miserably failed to do so.   $ cp skype-4.2.0.11.tar.bz2 /usr/bin   I don't think I am doing it correctly because I get the following output:  cp: cannot stat ‘skype-4.2.0.11.tar.bz2’: No such file or directory   I assumed that that wasn't actually the binary file so I just tried inputting the following:  $ cp skype /usr/bin   the file that was in the tar.bz2 with no other description or extension just "skype". and it failed  I am assuming you think I am either a troll, an ignoramus, or just had a sucky teacher... what am I doing wrong? Do I specify where the file is? How do you install the Dynamic distribution?  Anyway, I tried Googling it and I found the following:   I LITERALLY tried every single thing, every input and every suggestion. Nothing worked, most inputs gave me the following output:  Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  skype : Depends: skype-bin but it is not installable E: Unable to correct problems, you have held broken packages.   :( I tried the following suggested from:    chalgafe@ubuntu:~$ sudo dpkg -i --force-architecture skype-ubuntu-   this was the input:  lucid_4.2.0.11-1_i386.deb dpkg: error processing skype-ubuntu-lucid_4.2.0.11-1_i386.deb (--install):  cannot access archive: No such file or directory Errors were encountered while processing:  skype-ubuntu-lucid_4.2.0.11-1_i386.deb   I believe that's what he meant with the asterisk right? to put our corresponding distributions?  anyway, it didn't work. What am I doing incorrectly? What can I do?    Other unnecessary details (please, don't let this affect your answer by straying away from the problem)   Skype is the only reason I am still using windows 8 On other forums, people that had windows 8 and skype app for it, couldn't install it either. Is there a correlation? There s no other way of accessing skype unfortunately.


Creating a thumb index with LaTeX in book class

I am currently finishing my dissertation which consists of an introduction and three publications labelled A, B and C. The dissertation will be published in a book form and it is customary (in our department) to have before each included paper an empty page consisting only of "side bar" indicating the label of the paper. (This makes it easier to browse.) Part of my problem is that I don't know the proper name of this "side bar", see attached pictures for what I mean.      To my question: These side bar pages are usually added by the printing company, by hand, but is it possible to do this with LaTeX?   The papers themselves are added as pdf files via  \includepdf[pages=-]{Papers/Paper-1.pdf}   So generating such side bar pages as disjoint pdf pages with hand adjusted labels would be fine.  Edit: Apparently the "side bar" thing is called a thumb index, and the solution can be found from another question listed in the comments.


Difference between differential and derivative

I'm really not clear with the subtlety between derivative and differential. Let $f:\mathbb R^2\to \mathbb R$, then the derivative is $\nabla f(x,y)=(\partial _x(x,y) f,\partial _y f(x,y))$ where as the differential is $df=\partial f_xdx+\partial _y dy$. What these notation mean ? Also, I always thought that differential and derivative where almost the same, but with thise definitions, I'm completely confuse.


Anova when dependent variable is continuous

I have a response variable y which is binary,  several feature variables xi which may be float or integer and a grouping variable g which is categorical. I would like to know which variables Xi i=1:n effect y and if this effect is group dependent. To make the story even more complicated,  each measurement is associated with a subject. Anova classically assume response to be continuous and independent variable to be categorical but here I have the opposite situation. Is it legitimate to use Anova anyway,  treating Xi as the dependent variable? Notice that g has a marginal effect on y which is not interesting. So what I am looking at is actually the effect of Xi on y and the product effect of Xi and g,  taking the direct effect of g out. I know there is Anova but I am not sure it's applicable. Maybe logistic regression?


Can someone explain exactly what is happening with single quotes and double quotes with process IDs in the below example?

[root@localhost ~]# echo $$ 16991 [root@localhost ~]# bash -c "echo $$" 16991 [root@localhost ~]# bash -c "echo $$" 16991 [root@localhost ~]# bash -c 'echo $$' 21062 [root@localhost ~]# bash -c 'echo $$' 21063 [root@localhost ~]# bash -c 'echo $$' 21064 [root@localhost ~]# bash -c "echo $$" 16991   I understand that whenever we use single quotes, a new sub-shell is created, and same is not happening with double quotes. Why is it so?


What is the correct order and setup of AC coupling capacitor and line driver?

When I use an AC coupling cap along with a balance line driver, what is the correct setup? What happens when I omit the resistor in the following schematics? Is it neccessary?         – Schematic created using   I know the way of calculating the filter cut-off point and resistor values, just wondering what happens when I leave the resistor out?


Delete all files in a directory whose name do not match a line in a file list

I have a directory with 1000+ files. In a text file, I have about 50 filenames, one per line. I'd like to delete all the files in the directory whose filenames don't correspond with an entry on the list. What's the best way to do this? I started a shell script, but couldn't determine the proper command to determine in the filename is on the list. Thanks.


I am new here and want to know more about Meta Stack Overflow. I mean which type of discussion and post are posts here. Sorry for this question, but I don't know.


Is there any way to change MAC address via Terminal ?And  of course any command for this job ?


This is something I have never witnessed with any software before. When I open Blender it works properly; I click on an object, vertex, etc., and it lights up immediately. But after about half an hour of work it can take up to a full second before it lights up, and commands start to yield awkward results. After an hour it can take up to 5 seconds before a clicked item lights up, and commands are yielding weirder results. My processor is not being taxed in any way, nor is my memory. I close the software and reopen it and everything works fine again. But after half an hour it slows down again. Is this programmed in the free version to annoy people who can't pay for the pro version? Because I can't find any logical reason why the software slows down through time during usage. Could anyone explain this?


In US, when people work together, they may look for a colleague or any person to tell something or for any other reason, asking other collegues/people such a question:      Have you seen Michael?    or      Did you see Michael?    Which is considered right if the question refers to an activity (in our case "see") during a day and not the past in general?


Ultra-obscure BBC TV programme about microscopic spacemen

A very long time ago, possibly late 70s or early 80s, I remember seeing a one-off science fiction drama on British BBC TV. It was about an expedition to an alien planet to get help for a space station which was running out of oxygen.  The alien planet was, of course, Earth. The crew were about a centimetre high. It was all live action and I suspect the programme was a showcase for miniature photography. They land their shuttle (which looks very much like a courgette) in someone's garden, and there are various adventures. The ones I remember are:   encountering some dropped jelly babies and thinking they're idols made by the natives. flying around on weirdly insectile flying bikes. discovering a discarded battery in a puddle and getting into trouble from the chemicals. I think they get attacked by a rat at some point?   Eventually they discover that there's a light-resistent coating on their courgette-ship, and if it gets stripped off then it will generate its own oxygen. They take off to take the good news home, and the programme ended with them approaching the station, floating in space --- which is a tree.  Does anyone know what this is?


Does there exist a positive irrational number $\alpha $, such that for any positive integer $n$ the number $\lfloor n\alpha \rfloor$ is not a prime? My try if $\alpha=\sqrt{17}$ then $\lfloor n\alpha \rfloor=4n$


Zoom in on an image without losing quality

Can i enlarge an image without losing quality? You know, like in cool movies people do. Like so:


How to remove an uninstalled package's dependencies?

I want to install a package (DigiKam), but it has a lot of dependencies. If I decide I no longer need this software and uninstall it, will the now unnessary dependencies be removed?  If not, how can I do it manually?


What is the correct equation for Newton's Method?

Different publications provide different equations for Newton's method or the Newton-Raphson method. In Giudici, P., Givens, G. H., & Mallick, B. K. (2013). Wiley Series in Computational Statistics. Wiley Online Library, p. 26 the updating equation is given as $$ x^{(t+1)}=x^{(t)}-\frac{g^{\prime}\left(x^{(t)}\right)}{g^{\prime \prime}\left(x^{(t)}\right)} $$ whereas elsewhere on the internet (), it is given as $$ x^{(t+1)}=x^{(t)}-\frac{g\left(x^{(t)}\right)}{g^{\prime}\left(x^{(t)}\right)} $$ Are these equivalent? How can I make sense of the difference?


Properly aligning drawn lines between the corners of 2 rectangular nodes in TikZ?

When I draw a thick line from the corner of one box to the same corner of another, it doesn't attach properly. See the code and picture below:    \documentclass[a4paper, 11pt]{article}  \usepackage{tikz} \usetikzlibrary{shapes,arrows} \usetikzlibrary{positioning}    \begin{document} \begin{tikzpicture}   \node [draw, thick, minimum size=1cm] (a) {A};   \node [draw, thick, minimum size=3cm, right=2cm of a] (b) {B};    \draw [thick, dashed] (a.north west) -- (b.north west);   \draw [thick, dashed] (a.north east) -- (b.north east);   \draw [thick, dashed] (a.south west) -- (b.south west);   \draw [thick, dashed] (a.south east) -- (b.south east); \end{tikzpicture} \end{document}   How do I make the lines attach exactly to the corners and not slightly off as in this example?


Installing the rtl8811au drivers on Ubuntu 18.10

I'm a bit new to this whole Linux thing. But back in the summer i received an old windows 8 pc, and i bought a wireless network adapter. i checked and saw that my model was the rtl8811au netgear mini usb adapter. i need help installing the drivers on Ubuntu 18.10. please help!!


I'm making a hotel and a room key system, I'm trying to make the keys only be able to be placed on certain types of wool.   Example of what I'm doing:  /give @p minecraft:lever 1 0 {CanPlaceOn:["minecraft:wool"]}   I want the wool to have data like when in a /give command. The second number is the data example:  /give @p wool 1 5


Deciding whether this is true or not. I believe the statement is true just based of the definitions of what $A \cup B$ and $A \cap B$ mean. But I'm not sure how to prove this.      For any sets A and B, if $(A \cup B)$ \ $(A \cap B ) = ∅$ , then $A = B$


• She has a child  Questions for the above example:     Does she have a child? (This could be the common question for the above sentence as far as I know)   My question is,   Is it possible to make a question with "Has she" for the above sentence? like Has she........? )  If both are wrong, please help me with some examples.  Please help. Thanks in advance.


I tried to use the floatrow package together with the approach from the accepted answer from () to put my table caption to the right top hand side of my table. However, whatever I tried so far did not work out at all. I use the float package. Not very often but that is why I do not want to or cannot use the sidecap package which looks actually much simpler. I quickly tried the minipage approach which seems to work but not sure if I should use it. Here is my simple table which I used to try to bring the caption to the right top:  \documentclass[10pt,DIV=12,a4paper,numbers=noenddot]{scrreprt}  \usepackage{tabu} \usepackage{booktabs}  \begin{document}  \begin{table}  \begin{tabu} to \textwidth {X[L] X[L]}  \toprule  AAAAAA & BBBBBB \\ AAAAAA & BBBBBB \\ AAAAAA & BBBBBB \\ AAAAAA & BBBBBB \\ AAAAAA & BBBBBB \\  \end{tabu}  \caption{This is the caption This is the caption This is the caption This is the caption This is the caption This is the caption This is the caption This is the caption This is the caption This is the caption This is the caption This is the caption This is the caption This is the caption This is the caption This is the caption This is the caption This is the caption}  \end{table}  \end{document}   Can anyone help with this floatrow approach?


VSCode error when launched from terminal

I have VSCode installed on Ubunutu 14.04 64-bit but when it's launched from terminal there is this error:   [6303:0615/111654:ERROR:browser_main_loop.cc(170)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on. bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell   Is this something I should fix or it is coming from VSCode?  Also is there a way to launch it from terminal but terminal not to stay open all the time?


Adobe's page says it now has a secure flash player to upgrade to but I get the msg that Ubuntu won't support it.   HOW CAN I WATCH VIDEOS? Is there another player?


Netherlands Visa Refusal on 17th March 2020

This decision means what?      Sufficient justification for the purpose and circumstances of the   intended stay was not provided. The specific purpose for which the   visa was applied for is no longer valid or will cease to be valid   before you arrive in the member state of destination. No other   (secondary) purpose was stated at the time of the application, of if   it was, insufficient documentation was provided to demonstrate the   purpose of the stay. Therefore, your application for a visa is   refused.


Calculating DES key knowing message before and after encryption

I've 8 bytes before encryption (for example: 01 02 03 04 05 06 07 08) and 8 bytes after DES encryption: 08 07 06 06 05 04 03 02 01. Is it possible to calculate the key?


I am using a mixed model in lmer to analyse some phenotype data across 3 levels of a treatment I am interested in, blocked by a random factor I am not interested in (just want to control for). So my model is basically:  model <- lmer( thing ~ treatment + (1|block) )   I have pilot data that gives me a measure of the variance of the phenotype 'thing' in this population. So I was hoping to use a power analysis to ask the question -      'Given the variance X in thing, how many samples would be needed to   find significant differences across treatments?'   I was planning on running this power analysis for different hypothetical effect sizes. The thing is, I haven't even thought about power analysis since a distant stats lesson some time in my undergrad bio degree, and at that time I certainly wasn't told anything about dealing with them in mixed models.  I had a look at potential R functions and could only come up with the pwr package, which doesn't seem to have functionality for mixed models. I also came across some tutorials which started with a simulated dataset, but it didn't seem to address what I thought would be a simple problem (either that or I didn't understand).   I simply want to give the variance and [hypothetical] effect size, and get the sample size needed to find a significant difference - within the mixed model. Is this more complicated than I thought? Has anyone got any pointers of where I could look for some clear instruction, or functions I've missed that might be helpful?  Thanks in advance for any help,  Harriet


How to launch render from command line with load trusted option? I haven't found any keys for allowing launching of scripts in a file:     $ /opt/blender-2.73-linux-glibc211-x86_64/blender  -b ./v/Scenes/10/sc10.blend -o //out/ -s 064 -e 126 -a    ......    skipping driver 'frame', automatic scripts are disabled    ......   Is there any way to launch scripts, if I don't have an active GUI and can't set the "autorun scripts" parameter?


If $\gcd(m,n) =1, $ then $m\mathbb{Z}/ mn\mathbb{Z} \cong \mathbb{Z}/(n)$.   Here is my proof to the a/m problem. But I did not make use of $\gcd(m,n) =1.$ Could anyone hence point out and explain the mistakes in my proof? Thank you.   $\text{Define}\ \phi: m\mathbb{Z}/ mn\mathbb{Z} \to \mathbb{Z}/(n)$ by $\phi(ms + mn\mathbb{Z})= [s']_n, \text{where}  \ s \in [s']_n \ \text{and} \ s' \in \{0,...,n-1\}$  $\phi$ is well-defined:  $mx + mn\mathbb{Z} = my + mn\mathbb{Z}$  $\implies mx = my + mr,$ for some $r\in \mathbb{Z}$  $\implies n | x-y$  $\implies [x]_n = [x']_n= \phi(mx + mn\mathbb{Z}) = [y]_n = [y']_n= \phi(my+ mn\mathbb{Z})$  $\phi$ is injective:  It suffices to prove that $\ker(\phi) =\{mn\mathbb{Z}\}.$  Since $\phi(0+mn\mathbb{Z}) = [0]_n, \ker(\phi) \neq \emptyset.$ Given $x = ms+mn\mathbb{Z} \in \ker(\phi),\ $ $ \phi(x)= [s]_n = [0]_n$ $\text{hence}\  s = nk,  \text{for some}\  k \in \mathbb{Z}.$  Clearly, $mnk + mn\mathbb{Z}\subseteq mn\mathbb{Z}.$ Given $y \in mn\mathbb{Z},$ let $y = mnk + (mnc -mnk),$ for some $c \in \mathbb{Z}.$ Then $y \in mnk + mn\mathbb{Z},$ i.e. $mnk + mn\mathbb{Z} = mn\mathbb{Z} $ and hence $\ker(\phi) =\{mn\mathbb{Z}\}.$  $\phi$ is homomorphism:  Let $a = ms + mn\mathbb{Z}, a' = ms'+ mn\mathbb{Z} \in m\mathbb{Z}/mn\mathbb{Z}. $ Then, $\phi(a+a')= \phi(m(s+s') + mn\mathbb{Z}) $  $\exists r \in \{1,...,n-1\}$ such that $[r]_n = [s+s']_n$ and so $\phi(m(s+s') + mn\mathbb{Z}) = \phi(mr + mn\mathbb{Z}) = [r]_n = \phi(a) +_n \phi(a').$   $\phi$ is surjective:  $\text{Given} \ [r]_n \in \mathbb{Z}/(n),\  \text{let}  \ x= mr + mn\mathbb{Z}. \ \text{Then}   \ \phi(x) =[r]_n$


Access folders with sudo priviliges via Nautilius-Connect to remote server

I need to access the /var/logs folder & many such folders on my remote server from nautilus, using "Connect to server" via ssh. I avoid root logins & have disabled it. I would like to use sudo instead, just like I do it with SSH sessions in terminal.  How can I have nautilus use sudo on the remote server to gain access? (Root login is disabled on server)  If not nautilus itself, are there any alternates that may help accomplish this ?


I checked the performance of a simple method which just get the last element of an array. I found it is almost 4 times slower than the direct indexer. Any way to inline the method to get better performance?  int last(this int[] a)  {    return a[a.length-1]; }


How can I request a random row (or as close to truly random as is possible) in pure SQL?


The vagaries of information technology (aka what is meant by META?)

I was instantly intrigued by what this site has to offer in the way of the revelation of information uncovered by its members or users. I am, however, convinced that my very limited knowledge of the inner sanctum in information technology may well force me to recognize the unpleasant understanding that I may indeed be in over my head. At the risk of annoying the other users, I am asking for their patience and kindness for those of us who learned the workings our PC's by working with them for the most part and may therefore not be cognizant of some of the most basic IT terminology.   So, what is meant by META? As I stumble around the site I promise to leave it alone if I am unable to get the hang of it. I've always been quick to grasp concepts but this is worlds away from my professional area of expertise.


I got 11+ upvotes and only 29 rep for an answer but my daily reputation was only at 156. That's 44 short of the daily cap! I'm trying to make 20k before the Boston Dev Days, too!


Network profile inbox page count is off by 1 if last page has exactly 20 items

In  inbox I have lots of items. Wanted to see the first items I got so clicked the last page:    Just to be greeted with cryptic and misleading "No inbox items":    I don't want to click "next" 522 times. Can this please be fixed? On further investigation using the direct URLs (which are normally loaded via AJAX) I found the last page is actually 521 and it contains exactly 20 items. Edit: now that I got more items, I can indeed see the last page so the previous assumption is proved: page count is incorrect if last page has 20 items exactly.


Can Mac App Store installs & upgrades be automated?

How can I script installing or upgrading apps from the Mac App Store? I'd prefer command line tools, but AppleScript or some other API would suffice.  Relevant puzzle pieces:   installer: note especially the -store flag which is used to simulate App Store installs for package devs. systemupdate: capable of handling updates to Apple apps, flags -i installs and -a tells it to install all available updates


Iin objc s it ok to set nil to a property of a nil object

If I have an object like  AType *object = nil;   and I set nil to the object property like  object.property = nil;   Is it completly fine to do that, or could I run in some problem with some particular case?


What is the difference between the following interrogative structures?   What train are you going on/by?  Which train are you going on/by?    And which of the prepositions, given at the end of both structures, would be appropriate?


What events trigger an inbox notification?

The  was once introduced because it became hard "to keep track of all your questions, answers, and comments across every site you participated on".   The small red number tells you how many new replies you have across the entire Stack Exchange network of websites. And by replies, I mean:  New answers to your questions New comments on your posts @replies to you in comments   However, it's been a while since 2010, and there are many more events triggering an inbox notification.


How to type bold letter in math expression?

Actually, this is a markdown question. But I can't find a markdown community.  I want the letter "w" to be bold in the expression y(x, w). $y(x, \boldsymbol{w})$ works. But the following parentheses become bold also. How can I fix it?


No exit stamp on leaving Schengen area from Budapest to UK

I'm a Georgian national holding a multiple entry Schengen visa.  Last summer I was traveling to Hungary, spent a few days there, then flew to the UK. The Hungarian border official did NOT stamp my passport on exiting the Schengen area. I had to enter it again a few days later and the German border guards were confused by what had happened. Finally they let me enter.  Now I have one more entry stamp into Schengen than exit stamp and run into problems EVERY time at a Schengen border.  Is there a way to fix this?


How do I stop fresh fish from falling apart while cooking?

We sometimes buy trout from a local breeder who'll get them fresh out of the water for us, and then cook them a few hours later. They taste great, but the flesh tends to fall apart in a way that doesn't happen with fish from the super market. It's often barely even possible to get them out of the pot without them completely coming apart. We tried leaving them in the fridge for a day so they wouldn't be quite as just-killed-an-hour-ago-fresh, but that didn't help.   We usually prepare them by cooking them in simmering (not boiling) water.  Is there some way to prevent this?


I made chili and it's too hot! If I cook it longer will the heat calm down?


Migrating Ubuntu 18.04.03 from HDD to SSD

Currently, I am running Ubuntu 18.04.03 on a 1TB hard drive and I would like to move Ubuntu to my 256 GB SSD for booting. I would like to put some files on the SSD and keep some on the HDD as well. Furthermore, I would like to keep Windows on the HDD. What is the best way of doing this process? (There is nothing on the SSD that I would need to keep.)  EDIT: There is also a copy of windows on the SSD. I would like to copy over Windows to the HDD before I format the SSD.  Below is an image of my disk partitions in Gparted.   Here is the output of fdisk -l (the part about partitions).  Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: 20382797-872E-40E8-8700-5D36162941E6  Device          Start        End   Sectors   Size Type /dev/sda1        2048     534527    532480   260M EFI System /dev/sda2      534528     796671    262144   128M Microsoft reserved /dev/sda3      796672  964498167 963701496 459.5G Microsoft basic data /dev/sda4  1887537152 1889585151   2048000  1000M Windows recovery environment /dev/sda5  1889585152 1952499711  62914560    30G Windows recovery environment /dev/sda6  1952499712 1953421311    921600   450M Lenovo boot partition /dev/sda7   964499456 1887537151 923037696 440.1G Linux filesystem   Here is the output of df.  Filesystem     1K-blocks      Used Available Use% Mounted on udev             6099764         0   6099764   0% /dev tmpfs            1224388      2036   1222352   1% /run /dev/sda7      453224936 113265440 316867172  27% / tmpfs            6121936    217288   5904648   4% /dev/shm tmpfs               5120         4      5116   1% /run/lock tmpfs            6121936         0   6121936   0% /sys/fs/cgroup /dev/loop0          1024      1024         0 100% /snap/gnome-logs/73 /dev/loop4          1024      1024         0 100% /snap/gnome-logs/61 /dev/loop1         67584     67584         0 100% /snap/discord/93 /dev/loop5        144128    144128         0 100% /snap/gnome-3-26-1604/92 /dev/loop6        153600    153600         0 100% /snap/gnome-3-28-1804/71 /dev/loop8        150912    150912         0 100% /snap/obs-studio/604 /dev/loop11        36224     36224         0 100% /snap/gtk-common-themes/1198 /dev/loop20         4224      4224         0 100% /snap/gnome-calculator/406 /dev/loop13         3840      3840         0 100% /snap/gnome-system-monitor/95 /dev/loop14        15104     15104         0 100% /snap/gnome-characters/317 /dev/loop9         55808     55808         0 100% /snap/core18/1144 /dev/loop16       144128    144128         0 100% /snap/gnome-3-26-1604/90 /dev/loop19         4352      4352         0 100% /snap/gnome-calculator/501 /dev/loop17         3840      3840         0 100% /snap/gnome-system-monitor/100 /dev/loop18        15104     15104         0 100% /snap/gnome-characters/296 /dev/loop2        153600    153600         0 100% /snap/gnome-3-28-1804/67 /dev/loop7         43904     43904         0 100% /snap/gtk-common-themes/1313 /dev/loop10        55808     55808         0 100% /snap/core18/1098 /dev/loop12        90880     90880         0 100% /snap/core/7396 /dev/loop15        91264     91264         0 100% /snap/core/7713 /dev/loop3        151552    151552         0 100% /snap/obs-studio/525 /dev/sda1         262144     33892    228252  13% /boot/efi tmpfs            1224384        12   1224372   1% /run/user/124 tmpfs            1224384        28   1224356   1% /run/user/1001


Traffic Dip because of wrong schema code?

I just added a "job post schema code" on my page. And then i noticed that the traffic for that page dropped down. Below is the code, Can anyone tell me is this code all good? I checked it with Google structured data tester it just had few warnings without any errors.  This is the page - www.tutorvista.com/teaching-jobs     Might this be the reason for the traffic drop? if not, what else can be? Any ideas?   Below is the Traffic Data. (there's a dip at the end of august, that's when i published it)    Thank you


I've got this same dang faucet, and it is leaky. There are some answers in the linked page, but there are some contradictory posts, so I thought I'd re-pose this query.  There is nothing to unscrew or put a hex wrench into up top.  Is the answer: pry with a screwdriver until handles are off? They're on there pretty good. Also, I'm not even sure what brand this guy is, so I'm fuzzy on exactly what cartridge to purchase to fix it.


would connecting a pipe that can carry twice the volume of water to a supply pipe reduce the water pressure in half? If not is there a formula?

I am trying to reduce water pressure by changing pipe size. I want to make a slow peaceful fountain spray.The end of the water line will be pointed straight up so will the weight of the water play into the water pressure. Does the length of the tube going straight up effect water pressure?


What time period, if any, is Chilling Adventures of Sabrina set in?

Most of the technology in Chilling Adventures of Sabrina suggests some time before the 1990s but after the 1940s. Cellphones, so ubiquitous in the modern world since at least 2005, are conspicuous in their absence. Every phone call is made with a landline (or occasionally through magic). If there are any personal computers, even, they do not seem to play an important role. The cars mostly seem to be much older models, and several people—especially Sabrina—have hairstyles that seem to evoke an earlier era. Some of the cultural references are relatively dated, too: the characters talk a lot about Alien, The Rocky Horror Picture Show, or even "16 Going On 17", but I do not recall any references to Justin Bieber or the Spice Girls, or indeed, anything after 1990. On the other hand, in terms of vocabulary and mannerisms, the human characters certainly talk more like teenagers from 2010 than like teenagers from the 80s, let alone earlier. Further, in terms of the culture of the school body and administration, the school often seems more characteristic of a modern educational institution than what one would likely encounter in a small town in some 30 or more years back. For instance, when Nick goes to the school, he joins the school LBGTQ Alliance; while the Gay Activists Alliance, probably the inspiration for most of these groups, was founded in 1969, it would have been rather unlikely to find an analogous high school club, let alone in a small town. Also, for what it is worth, in the alternate universe, Harvey (or his actor?) talks about #Habrina, with Twitter of course having popularized hashtags. So in what time period does Chilling Adventures of Sabrina take place? Or does it not take place in any particular year?


I recently discovered the todonotes package. It would be great to somehow check the notes as done. I know the creator has this on his "todo list" (funny), but right now its not implemented. My idea was to hide it in the document and to strike it out in the listoftodos. Below you see a minimum working example. This is how I do it now.  Thanks for the help in advance!  \documentclass[a4paper,12pt,captions=tableheading,abstracton, %draft, %final, headsepline,bibliography=totoc]{scrreprt}  \usepackage{ulem} \usepackage[obeyFinal,textsize=footnotesize]{todonotes} \newcommand{\addref}{\todo[color=red!40]{Add reference.}} \newcommand{\done}{\todo[disable]{Test} }%this shouldnt show up in document and be striked out in listoftodos    \begin{document} \listoftodos\clearpage \todo{ToDo}  \addref{addRef}  \done{Done} \end{document}   In an older version of the question I also asked for the color in listoftodos. This is not the case anymore.


How to partially override (append to) a method?

An overridden method completely replaces the parent class' one:  class Msg:      def proc(self):         # this part is common to all methods         print("common part")         # I would like the override to start here         pass  class A(Msg):      def proc(self):         # this should be appended below pass above         print("overridden part")  A().proc()   Is it possible to partially replace the method, by keeping a "common" section and appending a specific one (per class)?


Reading last symbol from text file using C#

What is the most efficient way to read the last symbol or line of a large text file using C#?


Can casting granted by racial HD be progressed with corresponding class levels?

When a race grants a character casting 'as a third lvl sorcerer' (For example), and that caracter later takes a lvl in sorcerer- Can it now cast spells as a fourth level sorcerer? Or does it casting ability not change until it takes its fourth actual sorcerer level?


In particular, $f(x,y)=1$ for $0<x<1$ and $0<y<1$. How to calculate the conditional mean of $E(X\mid X<Y)$?  I understand the conditional mean $E(X\mid Y) = \int_{-\infty}^{\infty}xf(x\mid Y)dx$. But how do we make sense of conditions like $X<Y$?


Prove that if $\sum |a_{n}|$ converges then $\sum a_{n}^{2}$ converges

My attempt runs as follows. Since $\sum |a_{n}|$ converges, the series $\sum a_{n}$ converges. Since $a_{n}^{2} \geq 0,$ it suffices to prove that there is an $M > 0$ such that $$\sum_{1}^{m}a_{n}^{2} < M$$ for $m \geq 1.$ But, since $\sum a_{n}$ converges, there is a $B > 0$ such that $$\sum_{1}^{m}a_{n} < B$$ for $m \geq 1,$ so $$(\sum_{1}^{m}a_{n})^{2} = \sum_{1}^{m}a_{n}^{2} + 2\sum_{j < k}a_{j}a_{k} < B^{2}$$ for $m \geq 1.$  However, the problem is there seems no way to determine whether the sum $\sum_{j < k}a_{j}a_{k}$ is positive or negative?


A difficulty in the proof that $2^{\mathbb{N}}$ is uncountable.

This is the explanation of the book, but for me I did not catch the idea of the set $v$, and I need a numerical example for it and the set $u_{k}$, could anyone help me please?  Is there a systematic way by which I can write $u_{k}$ so that $u_{k}$ give me all subsets of $\mathbb{N}$?


Which countries, if any, offer on-arrival work visas?

After seeing  I began wondering - are there countries that say, Aussies or Kiwis (or anyone else) can get a work visa on arrival, or while in the country?  The best I've found is this:    which indicates availability of working holiday programs, but for several of them (Argentina for example) you are required to apply to Wellington (in my case) before being accepted.  Chile, on the other hand, you can't get one on arrival, but you can apply for one while being a tourist in the country.  So a chart or definitive source of countries where you can basically wander in and start working (legally) would be the ideal answer for this :D


Python case insensitive or sensitive strings as input

I have the following script: ip = input('Enter your string: ') if 'tree' in ip:    print('Correct string')  I would like to print 'Correct string' even if the user input is 'TREE' or 'tree' based on the case. How do I do that (optimally rather than using else or elif)? If the input from the user is 'TREE' then the script should give an output: CORRECT STRING  If the input from the user is 'tree' then the script should give an output: correct string  How do I do that?


In other words, does rhyming work reflexively?  Do "potato" and "potato" rhyme?  Is the following (admittedly cumbersome) limerick valid?      An issue with rhymes confused me much  So I used the internet as a crutch  I went to a site  The Stack Exchange site  And   used it as my crutch


Passing through Japanese customs with a tax-free knife

I am in Japan and I have purchased a kitchen knife (slightly over ¥16,000), claiming back the sales tax. The tax refund office did attach a document to my passport stating the sale.   Tomorrow I will be leaving through Narita. I have read about the procedure and I must show that I am taking the knife away with me. But of course, being it a knife I cannot take it with me in the cabin and I must leave it on the checked luggage.  What will be the proper procedure? May I go through customs before checking in? Or must I declare it when checking it somehow?


Can't list users - "select * from user" returns only one row with one column

I have a heroku postgres add-on database with a user table. However, when I attempt to select * from user, all I get is:    current_user   ----------------  rtsjlhdfptlaqd (1 row)   The table name is definitely user. There is no users table. There are definitely a bunch of users in my app, but I can't seem to list them.   Thoughts?


How can you tell when a participle is being used as an adjective?  I feel completely lost trying to guess. Just as a completely arbitrary example   For every dedicated scientist patiently recording atmospheric pressure and wind speed while shivering at high altitudes, there is a carnival barker with a bevy of pretty girls willing to dangle from a basket or parachute down to earth.


Recently I have added few favorite tags as my friend suggested and after some time, I can see a list of values next to it.  When I click on , I can count a total of 10 votes (adding up-votes and subtracting down-votes).  13 + (-2) = 11??   But in my profile summary I see   7 html × 23   I cannot get my head around how this works.


Looking in the phb it is not clear how a cleric gains spells.  A wizard, for instance, can pick up 2 new spells per level increase and may find others that can be copied into a spell book.  The phb does indicate clearly how to determine the number of spells that a cleric can prepare, but that’s all I can see.


just to set it straight, understanding canonical URL

I have a question regarding canonical URLs. My problem is that I think I understand canonical URLs but I am also not entirely sure.  I have a website that is starting to score really well in Google. So that's fine. However I want to create some promo sub-pages. And using canonical URLs is good. But I am afraid that if my logic has some errors I might screw up that what I've obtained and worked very hard for to obtain.  So here is my situation.  I have a website : www.example.com  We have several pages on this website   www.example.com www.example.com/about-us.html www.example.com/how-do-we-work.html www.example.com/our-priceplan.html www.example.com/book-our-service.html www.example.com/contact-us.html   Now we would like to add some promo landingpages at promotion.example.com This page should have the following pages   promotion.example.com promotion.example.com/about-us.html (duplicate from the main domain) promotion.example.com/our-priceplan.html (* new priceplan, just for this promotion *) promotion.example.com/contact-us.html (*duplicate from the main domain *)   Since :   about-us.html contact-us.html   Are duplicates from the original ones set in the main domain example.com, I understand that I should set for the first :  <link rel="canonical" href="https://example.com/about-us.html" />   and  <link rel="canonical" href="https://example.com/contact-us.html" />   for the second.  My question is.. Did I understand this correctly to avoid any penalty. There is a lot depending on it for me. Hence my question.  Thanks in advance.


Parse DateTime with time zone of form PST/CEST/UTC/etc

I'm trying to parse an international datetime string similar to:  24-okt-08 21:09:06 CEST   So far I've got something like:  CultureInfo culture = CultureInfo.CreateSpecificCulture("nl-BE"); DateTime dt = DateTime.ParseExact("24-okt-08 21:09:06 CEST",     "dd-MMM-yy HH:mm:ss ...", culture);   The problem is what should I use for the '...' in the format string? Looking at the  MSDN page doesn't seem to list a format string for parsing timezones in PST/CEST/GMT/UTC form.


Furmula to get a centre of circle that connects points $A(3;0)$, $B(4;5)$, $C(0;3)$. Equation for circle that connects same points.

In Math Olympiad, I needed to create an equation for circle that connects points $A(3;0)$, $B(5;4)$, $C(0;3)$.  I did it in this way:  1) draw segments connecting those points - $AB, BC, CA$  2) draw perpendiculars from the centre of the segments  3) the point where all perpendiculars meet is the centre of circle that connects points $A(3;0)$, $B(5;4)$, $C(0;3)$  4) calculated the Radius of the circle ($R = 2.69$) and created equation:  \begin{align*}  (x−a)^2 + (y−b)^2 & = r^2\\ (x−2.67)^2 + (y−2.67)^2 & = 7.22 \end{align*}  [img]  But I am wondering if either is possible:  1) to solve it in easier/faster way   2) to create formula to get a centre of circle that connects points $A(3;0)$, $B(4;5)$, $C(0;3)$.


Does anybody know what the symbol "$\asymp$" means?

I was wondering if anyone knew the meaning of the brackets that have been rotated 90 degrees in this equation:  $$\gamma(s,z) \asymp z^s \ \Gamma(s) \ \gamma^{*}(s, 0) = z^s \frac{\Gamma(s)}{\Gamma(s+1)} = \frac{z^s}{s}$$


How to run a block of python code for half an hour?

I have a function which keeps capturing the data from live stream. I want to run this code for 30 minutes.


Discard features with small variance, how to do in practice?

I'm training a neural network for regression. The input vectors consist of $92$ different features, I want to discard features with small variance (standard deviation).   There are two ways that came up to me:   Decide the number of features to keep, say $N$. Then keep the $N$ features with the biggest standard deviations. Choose a $\sigma_{min}$, then discard features whose standard deviation is smaller than this $\sigma_{min}$.   For the second approach, I don't know how to choose such a $\sigma_{min}$, there are also two ways that came up to me:    Just arbitrarily choose a $\sigma_{min}$, say 1e-5. Let $\sigma_{min}$ to be $\text{mean}\{\sigma_i\}_{i = 1}^{92}$    Which approach should I choose?


Proposition II.7.5 of Hungerford's Algebra goes     Proposition 7.5. A finite group is nilpotent if and only if it is the direct product of its Sylow subgroups.   Let $G = (\mathbb{Z}_6, +)$. $G$ is abelian, so it is nilpotent and thus by the proposition is the direct product of its Sylow subgroups.  The Sylow subgroups of $G$ are $H = (\mathbb{Z}_3, +)$ and $K = (\mathbb{Z}_2, +)$, so the proposition says $G = H \times K$. In particular, $0 \in H$ and $0 \in K$, so $(0,0) \in H \times K = G$... but that's not true, since $G = \{0,1,2,3,4,5\}$.  Where is/are my misunderstanding(s)?


Undefined reference to constructor C++ with templates

I'm new to C++ OOP, and I am trying to implement a Hashmap and these are the files I have: unoreder_map.h: template <typename K, typename V> class unordered_map { .... public:     unordered_map();     ~unordered_map();     int size();     V getValue(K key);     void insert(K key, V value);     V remove(K key);     double getLoadFactor(); };   unordered_map.cpp: #include "unordered_map.h" template<typename K, typename V> unordered_map<K, V>::unordered_map() : count(0), numBuckets(5) { ... } template<typename K, typename V> unordered_map<K, V>::~unordered_map() {  ... }  main.cpp: #include "unordered_map.h"  int main(void) {     unordered_map<int, int> map;      map.insert(1, 1337);      std::cout << map.getValue(1) << '\n';      return 0; }  And I'm compiling as follow: g++ unordered_map.cpp main.cpp -o main And I get: /usr/bin/ld: /tmp/ccXdGpTS.o: in function `main':                                                                       main.cpp:(.text+0x24): undefined reference to `unordered_map<int, int>::unordered_map()'                                /usr/bin/ld: main.cpp:(.text+0x3a): undefined reference to `unordered_map<int, int>::insert(int, int)'                  /usr/bin/ld: main.cpp:(.text+0x4b): undefined reference to `unordered_map<int, int>::getValue(int)'                     /usr/bin/ld: main.cpp:(.text+0x77): undefined reference to `unordered_map<int, int>::~unordered_map()'                  /usr/bin/ld: main.cpp:(.text+0x9d): undefined reference to `unordered_map<int, int>::~unordered_map()'  What's this refering to?


Got caught for similar answers on an assignment

So recently my professor reported me and my colleague for cheating and reported both of us to the Board. We haven't heard from them yet, its been a week.  This was a class assignment for a masters course and it accounts for 15% of the grade. The plagiarism is about 30 - 35%.  Now, I've already apologised to the Prof saying that I had asked my colleague to help me because I was going to personal issues due to COVID as an international student. He has not replied to that email yet.  What can I expect next?  I'm really scared and I'm not sure what is going to happen. I'm already stressed about staying away from home during this crisis and now this.


How to keep track of players nearby other players in an MMO

I'm confused how to handle the players in my MMO server (using Socket.IO but I think this should apply to any MMO).  Suppose there are 2 players in my server that are far away from eachother. I will call them A and B in this example.  The server launches. No clients are connected.  A joins and is added to the server's active playerlist.   Every second A gets a list from the server with the active players nearby to update their positions. Since there are none online currently, the list is empty.  B joins, far away from A. The server adds B to the active playerlist. Since A cannot see B yet, the list that A receives from the server is still empty.  B is moving towards A and comes within visual range.  What to do now for A? Send an event to A that B has come within range? How can the server know that A was informed of B being nearby? Does this mean I have to maintain a list on the server which player can see another?   Here's what I was doing before with my previous project: I never told the clients that a player was in range, instead the server just sent a list every second of players that are nearby and let the client do the rest. This way, the client keeps track which unit is added and which is not. Is this the best approach, or am I missing something?


Potential Energy equation is wrong as $mg$ force acting upwards (by us) and gravitational force ($-mg$) get cancelled and no movement is possible

In physics, the potential energy of an object is mgh. We say that the potential energy of an object is equal to the work done on it to make it reach that height. So the work done = mg h. Mg is the force applied too lift the object to the height h But when we apply the force (mg) on an object, the gravitational force which acts on the object in the opposite direction balances the forces and the object doesn't move at all since the net force acting on the object is zero. This means that to increase the potential energy of an object or raise its height we have to apply a force which is greater than mg so that the gravitational force cannot cancel out the force fully. This means that to increase the potential energy of an object or raise its height we have to apply a force which is greater than mg . So why isint the equation for Potential Energy as P.E =Fh where F is a force >mg.


Ability to drag and drop files on Desktop to other apps

On 18.04 and 18.10 I was able to drag for example a file that was on the Desktop and drop it in the Telegram app, Google Drive and so on. Now on 19.04 it does not allow for drag and dropping of files from the desktop to another app. Is there a setting for this since this behavior would be unintuitive for a normal user.   The image below is to give an idea. I grab a file, drag it to, for example, Telegram, and instead of detecting that I want to drop it, it simply shows as hovering the area. This happens on Google Drive, Gmail and other apps when dragging from the desktop. It works if I do it from the file app (Previously Nautilus) but not directly from the Desktop which will create issues when explaining ubuntu to others.


Is WD-40 really bad to apply on bikes? I was told so but still see people doing that.   Also I saw WD-40 launching their new products of bike lubricant and degreaser. Did anybody try those?


returning an object by using a string in Java

I'm a bit stumped by this as I am still pretty new to Java.  Here is my issue:  I need to return an object by using a string to pass it to another object. Ie, I want to pass a string to the function (getObject in this case) and then compare it to an ArrayList of unit objects by using their getCode function.  What I have so far:  private Unit getUnitObject(String unit1Code) {   for (int i = 0; i < units.size(); i++) {     Unit currUnit = units.get(i);     String unitCode = currUnit.getUnitCode();      if (unit1Code == unitCode) {       Unit selectedUnit = currUnit;       return selectedUnit;     }    } }   It gives me an error - "this method must return a result of type unit" I tried moving the return out of the for loop and still had no success? Can I do it this way?


I'm trying to add a basic contact form I got from bootstrapious to my site but when you click send there is some sort of error happening because it never sends. Here is some backstory: I used to use godaddy's plesk hosting but switched to dreamhost about a year ago, I contacted dreamhost support and they said these are some of the errors they are getting [Thu Aug 02 10:05:00 2018] [warn] [client 71.236.128.206] mod_fcgid: stderr: PHP Warning:  Unknown: open_basedir restriction in effect. File(/home/dh_v3jvi3/urbanpioneersmusic.com/handler.php) is not within the allowed path(s): (G:\PleskVhosts\urbanpioneersmusic.com\httpdocs) in Unknown on line 0, referer:  [Thu Aug 02 10:05:00 2018] [warn] [client 71.236.128.206] mod_fcgid: stderr: PHP Warning:  Unknown: failed to open stream: Operation not permitted in Unknown on line 0, referer:  [Thu Aug 02 10:08:50 2018] [warn] [client 71.236.128.206] mod_fcgid: stderr: PHP Warning:  Unknown: open_basedir restriction in effect. File(/home/dh_v3jvi3/urbanpioneersmusic.com/contact.php) is not within the allowed path(s): (G:\PleskVhosts\urbanpioneersmusic.com\httpdocs) in Unknown on line 0 Basically my form is trying to find  G:\PleskVhosts\urbanpioneersmusic.com\httpdocs which isn't there. They said to find that in my code and update it. I cannot find pleckvhosts or httpdocs in any of my code. Besides that, I downloaded this form directly from bootstrapious and uploaded it without making any changes except for the sendto email address. I have also built a few brand new sites from scratch that never had anything to do with plesk and they are doing the same thing. Has anyone ever come across something like this? Any advice is greatly appreciated, this is so frustrating.


What is the significance of combining "Gangnam" with "Style"?

How can a district be combined with "Style"? Does this show a significance in the district's style?


Unable to Use wifi in Hp Pavilion 15 ab522TX

I am having Hp Pavilion 15 ab522TX. I have recently Installed Ubuntu 16.0.4 along with Windows 10 (Duel Boot). I am not able to access wifi in the system. It shows no wifi driver. See the .  $ ip link 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000     link/ether dc:4a:3e:f5:02:f1 brd ff:ff:ff:ff:ff:ff  $ lshw -C network WARNING: you should run this program as super-user.   *-network UNCLAIMED             description: Network controller        product: BCM43142 802.11b/g/n        vendor: Broadcom Corporation        physical id: 0        bus info: pci@0000:03:00.0        version: 01        width: 64 bits        clock: 33MHz        capabilities: cap_list        configuration: latency=0        resources: memory:94100000-94107fff   I tried sudo apt-get install --reinstall bcmwl-kernel-source:  Reading package lists... Done Building dependency tree        Reading state information... Done The following package was automatically installed and is no longer required:   signon-keyring-extension Use 'sudo apt autoremove' to remove it. 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 10 not upgraded. Need to get 0 B/1,515 kB of archives. After this operation, 0 B of additional disk space will be used. (Reading database ... 248596 files and directories currently installed.) Preparing to unpack .../bcmwl-kernel-source_6.30.223.248+bdcom-0ubuntu8_amd64.deb ... Removing all DKMS Modules Done. Unpacking bcmwl-kernel-source (6.30.223.248+bdcom-0ubuntu8) over (6.30.223.248+bdcom-0ubuntu8) ... Setting up bcmwl-kernel-source (6.30.223.248+bdcom-0ubuntu8) ... Loading new bcmwl-6.30.223.248+bdcom DKMS files... Building only for 4.4.0-47-generic Building for architecture x86_64 Building initial module for 4.4.0-47-generic Done.  wl: Running module version sanity check.  - Original module    - No original module exists within this kernel  - Installation    - Installing to /lib/modules/4.4.0-47-generic/updates/dkms/  depmod....  DKMS: install completed. modprobe: ERROR: could not insert 'wl': Required key not available update-initramfs: deferring update (trigger activated) Processing triggers for shim-signed (1.19~16.04.1+0.8-0ubuntu2) ... Processing triggers for initramfs-tools (0.122ubuntu8.5) ... update-initramfs: Generating /boot/initrd.img-4.4.0-47-generic   Still there is no sign of Wifi.  Then I tried, dkms status and I got the output:  bcmwl, 6.30.223.248+bdcom, 4.4.0-47-generic, x86_64: installed   I had tried varies method posted in the community. Nothing worked.


How would I turn this into a prepared statement?

I'm new to prepared statements so I apologise in advance if this is a basic question but how would I turn the following code into a prepared statement and execute it later on?  <?php  $myQuery = "SELECT * FROM test WHERE ID=" . $_GET['ID'];  //run query $result = $con->query($myQuery); if (!$result) die('Query error: ' . mysqli_error($con)); ?>


Does anybody know when Focal will be available to upgrade from Bionic (using Software Updater) on production box? do-release-upgrade states that upgrade not yet available for production machines. I'm not interested in STS Ubuntu versions. I've downloaded Focal from ubuntu.org and createda Startup on a usb thumb drive. Should I use this to upgrade or wait for Software Updater to give the option of upgrading to Focal?


Safe method to install Ubuntu on MBR disk with 4 primary partitions

That's my partitions. I'm trying to dual boot Windows 8.1 and ubuntu 14.04, and I've disabled secureboot, fastboot, and all that crap. I'm trying to install it with UEFI.  What do I need to do in this box to install it? Are there too many partitions? What can I do? If you know the answer, please tell me what to do. Thanks.


Prospective student’s first email to a potential advisor?

I am applying for an MSc program and I need to find an advisor prior to sending in my application. I have heard conflicting advise regarding what to put in my first email. I would like some opinion on this matter.   Do I include my CV in the first email?   Do I mention my GPA?   Do I straight-up ask them if they are accepting students? Or, do I first attempt to establish a relationship?


Ubuntu 17.10 not detecting bluetooth mouse

My Logitech bluetooth mouse worked in 17.04 until I did a fresh install of 17.10 on my Dell Inspiron, now it doesn't see it. Bluetooth is on and sees my iPhone.


I'm using  online textbook to learn group theory. For one of the exercises, I'm supposed to list all of the elements of $D_5$. I understand that I have to find all the products of $r$ and $s$, where $$ r^n = 1$$ $$ s^2 = 1$$ $$ srs = r^{-1}$$ And I also know that there are $2 \times 5=10$ such elements in total. My guess is that some of these elements are (12345) (13524) (14253) (15432) and (1), stemming from the first rule. But I'm not exactly sure how to get the other elements from the two remaining rules. Any help on this would be highly appreciated!


${\rm Aut}(G)$ is cyclic $\implies G$ is abelian

I would appreciate if you could please express your opinion about my proof. I'm not yet very good with automorphisms, so I'm trying to make sure my proofs are OK. Proof: Since ${\rm Aut}(G)$ is cyclic, ${\rm Aut}(G)$ is abelian. Thus for any elements $\phi, \psi \in{\rm Aut}(G)$ and some elements $g_i \in G$, $\phi\psi(g_1g_2)=\phi\psi(g_1)\phi\psi(g_2)=g_3g_4=\phi\psi(g_2)\phi\psi(g_1)=\phi\psi(g_2g_1)=g_4g_3$. Hence, $g_3g_4=g_4g_3\implies G$ is abelian. The proof seems to be quite straightforward, but I'd rather ask for advice.


What is the expected value of the maximum of two independent exponentially distributed random variables?

the density for an exponentially distributed RV X with parameter λ>0 is given as: f(x)=(1/λ )exp(−x/λ) for non-negative x and 0 otherwise. The expected value of the maximum of two independent exponentially distributed random variables X  and Y  with parameters λ1=1 and λ2=2  is...?


I don't have Python 3.6.1 IDLE and tkinter won't work

I installed python 3.6.1. But then realized I don't have IDLE and can only access python via terminal by typing python. And the python version in the terminal is 2.7.12 not 3.6.1. I know Ubuntu comes with Python 2.7.12. But how come I can't use 3.6.1?


In short: my goal is to reset mysql root password on ubuntu.  Background: I set up a ubuntu desktop and installed LAMP stack last week. I then went to do something else, and just got back to carry on today. Either I did not set mysql password, or I have forgotten what I typed in.  So I tried to reset it.  I stopped mysql by  sudo stop mysql   I tried to start mysql using command line options, but it seems start only takes service name(??)  So I ran:  sudo /etc/init.d/mysql start --skip-network  --skip-grant-tables   Went into mysql, fine. Then  mysql> UPDATE mysql.user SET Password=PASSWORD('newpasswd') WHERE User='root'; ERROR 1142 (42000): UPDATE command denied to user ''@'localhost' for table 'user' mysql> show grants for ''@'localhost'; +--------------------------------------+ | Grants for @localhost                | +--------------------------------------+ | GRANT USAGE ON *.* TO ''@'localhost' | +--------------------------------------+ 1 row in set (0.00 sec)   If ''@'localhost' has USAGE on all-schemal.all-tables, I'd think I can just update the password like this... Where did I miss?  I used the instruction in , the last part. I also tried the unix one but with no luck. And I was unsure when it says 'unix', does it mean all *nix system or just unix???  Anyway, any thoughts are welcome! many thx!!!


Schwarzschild metric in expanding Universe

In Schwarzschild coordinates the line element of the Schwarzschild metric is given by:  $$ds^2=\Big(1-\frac{r_s}{r}\Big)\ c^2dt^2-\Big(1-\frac{r_s}{r}\Big)^{-1}dr^2-r^2(d\theta^2+\sin^2\theta\ d\phi^2).$$  In the asymptotic limit where $r>>r_s$ the Schwartzschild metric becomes:  $$ds^2=c^2dt^2-dr^2-r^2(d\theta^2+\sin^2\theta\ d\phi^2),$$  which is the Minkowski metric of flat spacetime.  But observations show that real astronomical objects are embedded in an expanding spatially flat FRW metric given in polar co-ordinates by:  $$ds^2=c^2dt^2-a^2(t)\ dr^2-a^2(t)\ r^2(d\theta^2+\sin^2\theta\ d\phi^2).$$  Therefore maybe the Schwarzschild metric should be given by:  $$ds^2=\Big(1-\frac{r_s}{r}\Big)\ c^2dt^2-a^2(t)\Big(1-\frac{r_s}{r}\Big)^{-1}dr^2-a^2(t)\ r^2(d\theta^2+\sin^2\theta\ d\phi^2).$$  Perhaps this metric would only be useful to describe a gravitational system whose size is comparable to the Universe itself?


Just got the following banner:    What is this, and what does it mean, and why?


16 gb pendrive show few mb only how to fix it The disk is write protected error whileformatting the pendrives, memory sticks,external hard drive or SD Memory Card.


This is a  about avoiding outgoing mail being classified as spam.   Also related:                    I'm wondering how to prevent my emails from my site being marked as spam? I'm using sendmail.  I'm trying to send emails through my ruby-on-rails application. The mails are all written in swedish (if that does make a difference?). I don't know why they keep getting marked as spam.  Are there any things that I can do to minimize the risk?


I run my hot water in the bathroom sink and the toilet next to it starts bubbling.  What could be causing this?


filling an occluded plane with the smallest number of rectangles

I've got a specific problem which I'll try to describe as clearly as possible.   I have a defined rectangular region on a cartesian plane, and within that region there are other given rectangular sub-regions that are described in terms of their 4 vertices, ie {(x1, y1), (x1, y2), (x2, y1), (x2, y2)}, so that these regions form 'occlusions' on the plane. These regions don't overlap, but they can form more complex polygons when different-sized rectangles adjacent to each other appear joined.  here's an illustration:   I am interested in the space between these shapes, and how to define the space in the same way the occlusions are defined, that is as a set of rectangles. In particular I want the definition optimised so that the space is described using the smallest possible number of rectangles. For example, an incomplete rendering might look like this:   Can anyone suggest a way forward with this? How can I have the original set of vertices (describing the black rectangles) generate the 'complementary' set of vertices (red rectangles) such that the number of red rectangles is minimal?  I suspect it's a variation of a 'packing problem', but I have a feeling it might be fairly simple...


Where is the RSS feed for my notifications?

I would like to subscribe (via RSS) to my Stackoverflow notifications. I am unable to find the RSS feed for this anywhere.


Bounded variation and $\int_a^b |F'(x)|dx=T_F([a,b])$ implies absolutely continuous

If $F$ is of bounded variation defined on $[a,b]$, and $F$ satisfies $$\int_{a}^b |F'(x)|dx=T_F([a,b])$$ where $T_F([a,b])$ is the total variation. How to prove that $F$ is absolutely continuous?    My Attempt: I used the inequality, that $P_F([a,x])$ and $N_F([a,x])$ (positive and negative variation )are both monotonic non-decreasing function, and thus their derivative exists a.e. Thus  $$\int_{a}^b |F'(x)|dx\le \int_a^b |P_F'([a,x])|dx+\int_a^b|N_F'([a,x])|dx\le P_f([a,b])+N_F([a,b])=T_F([a,b])$$ Then by the condition, the middle inequality should all be replaced by equality.  But I cannot derive any useful information from the equalities, since the annoying absolute value cannot be diminished. I tried to prove  $$F(x)=F(a)+\int_{a}^x F'(t)dt$$ but this doesn't work. Applying the definition of absolute continuity also failed to give me a clearer view.  Thanks for your attention!


How do I run executable scripts in Nautilus rather than open them in Gedit text editor?

When I double-click on a script in Nautilus in order to run it, the script opens in my text editor with no option to do so.  Using Nautilus, how do I run executable text files and/or scripts?


Energy conservation Hamiltonian dependency

Suppose the a system has a Hamiltonian $H = H(q,p)$, and suppose $H$ does not depend explicitly on time. If $H\neq E$ the total energy of the system, does this necessarily say that $E$ is not conserved? Why?


Is the following improper integral known? $$\int_{0}^{\infty} x^{-x} \, dx$$ Wolfram Alpha gives both the proper integral from 0 to 10 and 0 to 10000 as 1.99546 so I'm assuming it's equal to 2 (though it could actually be 1.99546), but is this known?