Every time I open my terminal I get  (base) Users-MacBook-Air:~ Uriel$  instead of   Users-MacBook-Air:~ Uriel$  without the (base) line which means that the environment of conda is open. In order to get this, I have to do  conda deactivate  every time in my Terminal and it is annoying because not only I always have to type that but also because every time I open it, I have to wait some seconds because I think is logging conda in  Up in my Terminal what I should only get is the label   user--- -bash ---  but before I get that I see that first appears   Terminal --python<-bash  then  Terminal --java<-bash  then  Terminal --R<-bash  etc., until I get the  user--- -bash ---.  Is it because I let conda open? Or something like that? How do I fix this?  Following is the contents of the ~/.bash_profile file:  # Setting PATH for Python 3.6 # The original version is saved in .bash_profile.pysave PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}" export PATH  # Setting PATH for Python 3.8 # The original version is saved in .bash_profile.pysave PATH="/Library/Frameworks/Python.framework/Versions/3.8/bin:${PATH}" export PATH # added by Anaconda3 2019.10 installer # >>> conda init >>> # !! Contents within this block are managed by 'conda init' !! __conda_setup="$(CONDA_REPORT_ERRORS=false '/Users/user/opt/anaconda3/bin/conda' shell.bash hook 2> /dev/null)" if [ $? -eq 0 ]; then     \eval "$__conda_setup" else     if [ -f "/Users/user/opt/anaconda3/etc/profile.d/conda.sh" ]; then         . "/Users/user/opt/anaconda3/etc/profile.d/conda.sh"         CONDA_CHANGEPS1=false conda activate base     else         \export PATH="/Users/user/opt/anaconda3/bin:$PATH"     fi fi unset __conda_setup # <<< conda init <<< conda deactivate


What is error in this code? Browser says "java.lang.NullPointerException" in this code

Mainly error is shown in "if" section.  "org.apache.jasper.JasperException: An exception occurred processing JSP page [/enquiryForm_processing.jsp] at line [52]" is the error.  Code:  <%@page import="com.Package3.*"%>  <%String saved=EnquirySaving.savingFunction(name, address, email, mobile, gName, gMobile, time, career1, career2, career3, career4, hear1, hear2, hear3, hear4, hear5, before, institution, courses, status, councelling, visitDate, othersSpecify, othersSpecify1, othersSpecify2);%>     <%if(saved.equals("success")){%>     <%response.sendRedirect("loginPage.jsp");%> <%}else{%>     <%response.sendRedirect("enquiryForm_processing_failed.jsp");%> <%}%>


I'm trying to learn STR on my own. As I read through a few books and saw a few video lectures - I feel to really understand STR you need to really understand and appreciate precisely (and formally) how do you measure space-time coordinates (i.e. x,t say in the case of 1D)  So is a there a book or a reference which teaches/defines/explains how measurements for x and t are made in Physics and it's connection to STR a bit more rigorously.  [This is to answer why this Q is not duplicate] While there are many references already cited by people here regarding STR which I have seen - What I'm specifically looking at is a book which defines and treats the concepts & process for measuring distances and time more rigorously and how that ultimately results in development of logical basis of STR. As I trust based on my initial readings STR is ultimately closely linked to this and can't be looked in isolation. Many of the books already mentioned in previous answers might already cover this but as I have not surveyed all the books - hence asking anyone here who can guide me.   To try (as I do not understand these concepts yet) to put it more concretely - Mathematically, event = (x,t) is a particular point in the space-time continuum.  A physical event is like a "flash of a light". How do you assign a mathematical event (x,t) to a physical event?  What do you mean you have a clock at every point?  I would want to read up and understand such questions (and more) in a bit more detail and rigorously.  Thanks


Name of the book/series based on magicians who tap into computer grid?

Fantasy/scifi combo - band of travelers who must get from "sphere" or domain to domain - each geographic area is ruled by a magician - it turns out later these are people who are unwittingly tapping into the computer grid they all live on to alter their own reality?


In a hypothesis test with Normal data, why do people use the t-statistic instead of some other statistic?

Suppose we have that $X_1, \ldots, X_n \sim N(\mu, \sigma^2)$ where $\sigma^2$ is known. If we wanted to test the hypothesis of:  $$ H_0: \mu = \mu_0 \ \ \text{and} \ \ H_1: \mu \neq \mu_0 $$  a lot of books just jump directly to using a z-score based test statistic of:  $$ Z = \frac{\bar{X}-\mu}{\sigma/\sqrt{n}} \sim N(0,1) $$  However, I do not understand why or how they jump to this statistic aside from the fact it appears the normal distribution is easy to calculate from.   My question is, my understanding is that formally, we can choose any test statistic $T(X)$ such that:  $$ P(T(X) \in R\mid H_0) = \alpha $$  where $R$ is a rejection region to be found and $\alpha$ the significance level.   I am wondering how one can formally derive the $Z$ score approach above? Thanks.


Lubuntu Installer Giving Error after Partition creation "YOUR SYSTEM MAY OR MAY NOT BOOT "

I was replacing my Ubuntu 18.04 with Lubuntu 20.04. I wanted to keep my /home partition same. After creating /root , swap and changing mount point for /home partition the installer gave a warning that /boot/efi partition is not created Lubuntu 20.04 needs /boot/efi partition to boot. Please create a FAT32 partition and mount it as /boot/efi and enable flag esp. Then I created the /boot/efi  partition but there was no esp flag(s). I had installed Ubuntu 18.04 alongside windows10. What should I do now?


Comparison of string and 0 return unexpected results

I am starting to learn PHP and encounter the issue below:  function dechex_helper($dec){     $hex = dechex($dec);     if($hex == 0){         return '00';     }     return $hex; }  function webColors($red, $green, $blue){     return '#'.dechex_helper($red).dechex_helper($green).dechex_helper($blue); }  echo 'webColors(255, 0, 0)'.': '.webColors(255, 0, 0).'
'; echo 'webColors(0, 0, 255)'.': '.webColors(0, 0, 255).'
'; echo 'webColors(255, 0, 191)'.': '.webColors(255, 0, 191).'
'; echo 'webColors(0, 0, 0)'.': '.webColors(0, 0, 0).'
';   Result:  webColors(255, 0, 0): #000000 webColors(0, 0, 255): #000000 webColors(255, 0, 191): #000000 webColors(0, 0, 0): #000000   but if I change the line:  if($hex == 0){   To:  if($hex === '0'){   The result will be correct:  webColors(255, 0, 0): #ff0000 webColors(0, 0, 255): #0000ff webColors(255, 0, 191): #ff00bf webColors(0, 0, 0): #000000   Can someone explain what happens with it?


Change Ubuntu Software Center Download directory to Different drive from OS drive?

Ok, Im relatively new to Ubuntu and have a custom built computer. I am utilizing three drives, 1 ssd, and 2 hard drives. I have installed my OS to my ssd, and want to use the other two for gaming and various other reasons while mounted for this OS. I am having to redirect all important programs to download or install to the other hard drives, I am having issues with Ubuntu Software Center. Is it possible to change the download directory to my other drives?


Querying by a php a table containing emoji returns question marks

I am trying to retrieve a number of rows from a mysql DB, some of which containing emojis, through the following function:  <?php ini_set('mssql.charset', 'UTF-8'); //$mysqli->query("SET NAMES 'utf8'"); $mysqli->query("SET character_set_client=utf8mb4"); $mysqli->query("SET character_set_connection=utf8mb4"); $mysqli->query("SET character_set_results=utf8mb4"); $mysqli->set_charset("utf8"); $sth = $mysqli->query($query); if (!$sth) error_log("error Json query: $query"); $rows = array();  while($r = mysqli_fetch_assoc($sth)) {     $rows[] = $r; } //var_dump($rows); print json_encode($rows, JSON_NUMERIC_CHECK | JSON_UNESCAPED_UNICODE); ?>   Yet each emoji occurrence is substituted by a variable number of question marks, yet if I conversely execute the query of the php script directly on Sequel Pro, the emojis show correctly. Apparently there is therefore some error in the function above, but I tried anything, as you may see, without success. How should the query be configured instead?


Replacing data source of annotation feature classes using ArcPy?

I want to batch replace paths in a series of .mxd files using Python. Many of the layers have moved and in some cases the name has changed or its dataset is different.  I've written this code which takes an Excel file with two columns (one column for the old path and one column for the new path) and converts to a dictionary. Then I iterate through the layers in my .mxd files, and iterate through the dictionary, using replaceDataSource to change the data sources.  The trouble is this won't work with annotation feature classes. I've added in a try/except with findAndReplaceWorkspacePath to see if that may work (I don't believe the annotation layers/names have changed), but the code still doesn't address those layers.  One thing to note is that the annotation feature classes are stored in a personal geodatabase, but I don't know if this could be causing any issues.  I am hoping someone has ideas on code that will work to change the path of the annotation feature classes!  Here is my code:  import xlrd, arcpy, os  mxd_path = r'C:\temp\Chapters'  d = {} wb = xlrd.open_workbook('U:\GIS\Chevron_Lokern\Projects\Figures_Update_2014\Lokern_Source_Paths_KL.xls') sh = wb.sheet_by_index(0) for i in range(293):   cell_value_class = sh.cell(i,0).value   cell_value_id = sh.cell(i,1).value   d[cell_value_class] = cell_value_id    for dirpath, dirnames, filenames in os.walk(mxd_path):     for filename in filenames:       fullPath = os.path.join(dirpath, filename)       if filename[-4:] == ".mxd":         mxd = arcpy.mapping.MapDocument(fullPath)         print filename          for lyr in arcpy.mapping.ListLayers(mxd):             if lyr.supports("DATASOURCE"):                 #print lyr.datasetName                 for k,v in d.iteritems():                     #print k,v                     k_path, k_name = os.path.split(k)                     v_path, v_name = os.path.split(v)                     if lyr.dataSource == k and k != v:                         #print 'KEY:',k,'VAL:',v, 'NAME:',v_name                         try:                             print 'trying to change data source for',lyr.dataSource                             lyr.replaceDataSource(v_path,'FILEGDB_WORKSPACE',v_name,True)                         except Exception as e:                             print 'can\'t replace',lyr.dataSource, e                             try:                                 print 'trying to change data source for',lyr.dataSource                                 lyr.replaceDataSource(v_path,'RASTER_WORKSPACE',v_name,True)                             except Exception as e:                                 print 'still can\'t replace',lyr.dataSource, e                                 try:                                     print 'trying to change data source for',lyr.dataSource                                     lyr.replaceDataSource(v_path,'SHAPEFILE_WORKSPACE',v_name,True)                                 except Exception as e:                                     print 'still can\'t replace',lyr.dataSource, e                                     try:                                         print 'trying to change data source for',lyr.dataSource                                         lyr.findAndReplaceWorkspacePath(k_path,v_path)                                     except Exception as e:                                         print 'can\'t replace workspace path for',lyr.datasetName, e         mxd.relativePaths = 'True'         mxd.save() del mxd


How can I implement "cut outs" for lighting in OpenGL?

So, I'm working with OpenGL (I'm not exactly sure of the version), and I want to do an old-style lighting setup by essentially drawing a black rectangle over the screen, and drawing white circles over the areas that should be lit. I already have the rectangle and the circles, but I can't figure out how to make it so that the white circles are transparent when applied to the black areas. Any ideas? I tried to use blending modes, but it still evades me...  EDIT: Here's the code that I'm using (Python).  view_buf = Buffer(GL_INT, 4) glGetIntegerv(GL_VIEWPORT, view_buf) view = view_buf.to_list() if hasattr(view_buf, "to_list") else view_buf.list  glDisable(GL_DEPTH_TEST)  glDisable(GL_LIGHTING)  glEnable(GL_BLEND)  if logic.lights['smooth']:     glEnable(GL_LINE_SMOOTH)  # # Make sure we're using smooth shading instead of flat # glShadeModel(GL_SMOOTH)  # Setup the matrices  glMatrixMode(GL_PROJECTION) glPushMatrix() glLoadIdentity() gluOrtho2D(0, view[2], 0, view[3]) glMatrixMode(GL_MODELVIEW) glPushMatrix() glLoadIdentity()  #glAlphaFunc(GL_GREATER, 0.5)  glColor4f(0.0, 0, 0, 0.75)  glBegin(GL_QUADS);                              # Draw Black screen glVertex2d(0.0, 0.0); glVertex2d(view[2], 0.0); glVertex2d(view[2], view[3]); glVertex2d(0.0, view[3]); glEnd()  glColor4f(1, 1, 1, 1)  degtorad = 3.14159/180.0   glBlendFunc(GL_ZERO, GL_SRC_ALPHA)  def DrawCircle(x, y, radius, fill = 1, step = 11):      glVertex2f(x, y)      if fill:         glBegin(GL_TRIANGLE_FAN)     else:         glBegin(GL_LINE_LOOP)      for a in range(0, 360, step):         angle = degtorad * a         glVertex2f(x + (sin(angle) * radius), y + (cos(angle) * radius))      glEnd()   #for layer in range(len(logic.lights['layers'])): #   size =  for light in logic.lights['points']:     DrawCircle(light[0][0] * view[2], (1 - light[0][1]) * view[3], light[1], step = light[2])     if logic.lights['smooth']:         DrawCircle(light[0][0] * view[2], (1 - light[0][1]) * view[3], light[1], 0, light[2])  # Reset the state glPopMatrix() glMatrixMode(GL_PROJECTION) glPopMatrix()


What happens if I place a charge inside a hollow conductor and fix it?

So I know that when you put some charge inside a counter, it resides uniformly on the surface of the conductor in order to make the electric field zero everywhere inside the conductor..  But what if I place a charge in such a way that I make it stationary inside the conductor (let it be a spherical conductor), will there be an electric field inside coming out of the charge (assuming its positive) or will something happen to prevent it? And if something happens to prevent it can you please explain to me the process of how it works  The spherical conductor is hollow and the charge I put inside it (let's say its in a random place other than the center) is stationary


3 in 1 is a Trinity. What is 2 in 1, 4 in 1, 5 in 1, N in 1?

Background  The use of the word "" occurs frequently in Catholicism when referring to God's nature, 3 persons in 1 God.  What words would describe a being that is 2 persons, 4 persons, 5 persons, etc.?


Travel from Charles de Gaulle Airport to Montparnasse

I need to travel from Charles de Gaulle airport to Montparnasse to catch a TGV (Train à Grande Vitesse or "high-speed train"). What is the best and fastest method to do that? I arrive in CDG at 7:20 am and the pre-booked TGV departure from Montparnasse is at 1:30pm. Any suggestions?


Upgrade - Declined to authorize this image on this device for this user

This is a classic problem but I can't find the right solution for me. I have downloaded iOS 11.1.2 (current latest version is 11.2.1) from  and tried to install it manually with the latest iTunes 12.7.2.58 on my iPhone 6. After extracting the software, I get the error:      Declined to authorize this image on this device for this user.   I'm currently on iOS 10.3.3 and don't want to upgrade to the latest version to keep my iPhone "jailbreakable".  I've tried to restore from my MacBook and my PC. The PC gave me  which seems to be the same error.  I know Apple doesn't sign this version anymore but I thought that upgrading was always possible (as opposed to downgrading). Am I wrong?  I checked my hosts files (/etc/hosts and /private/etc/hosts) and it looks fine. I also tried to restore in DFU mode without success.  Anyone with a potential solution is welcome to share it.


Linear transformation $\varphi$ from space $\mathbf{R}_n$ in basis $\mathbf{e}_1\ldots\mathbf{e}_n$ is given by matrix:  $$A = \begin{pmatrix}3 & 2 & -3 \\ 4 &10 & -12 \\ 3 & 6 &-7\end{pmatrix}$$  I have to find basis $\mathbf{f}_1\ldots\mathbf{f}_n$ in which given matrix has Jordan form $A_j$ and find Jordan form itself.  Which steps should I reproduce to find both?


Does something like a fast LaTeX syntax checker for checking errors / warnings exist?

When I currently compile my LaTeX document, I do it like this:  sketch figures/torus.sketch > figures/torus.tex pdflatex $(DOKUMENT).tex -output-format=pdf # aux-files for makeindex / makeglossaries makeindex $(DOKUMENT) pdflatex $(DOKUMENT).tex -output-format=pdf # include index pdflatex $(DOKUMENT).tex -output-format=pdf # include symbol table make clean # remove intermediate files like *.log and *.aux   This takes about 245 seconds (over 4 minutes).  But quite often, when I compile the document the first time after many changes, it has some errors, e.g.   forgetting about LaTeX issues with # and _ forgetting curly braces { or } confusing input{figures/somefile.tex} with \includegraphics{figures/somefile.png} forgetting to include packages   It would really be awesome if there was a fast LaTeX syntax checker. I would let the syntax checker run before the rest. If it fails, the rest will not be executed (as I do it with a Makefile, make will stop when the first error occurs). Does a LaTeX syntax checker exist? (False-negatives are ok, but there should not be any false-positives).


How do I add a new tab to the 3D Viewport?

I'm creating a Panel that sits in the 3D Viewport.  Right now when it runs, it is inserted under the Misc tab.  I'd like to create my own tab to place it in.  How do I do that? class NormalToolPropsPanel(bpy.types.Panel):      """Properties Panel for the Normal Tool on tool shelf"""     bl_label = "Normal Tool Properties Panel"     bl_idname = "OBJECT_PT_normal_tool_props"     bl_space_type = 'VIEW_3D'     bl_region_type = 'UI'      def draw(self, context):         layout = self.layout          scene = context.scene         settings = scene.my_tool                  col = layout.column();         col.prop(settings, "strength")         col.prop(settings, "normal_length")         col.prop(settings, "selected_only")


Graph Editor does not show any keyframes

I already made and rigged a character. When I make keyframes in the dopesheet to time my animation, the graph editor does not show any of my keyframes, for any of my animated parts. Even when I go to check the drivers, the driver pane is completely blank, just an empty graph as well.   The weird part is, a couple of sessions ago, it was working completely fine, because I know I was able to edit drivers then. So what could possibly be happening here? I unfortunately cant share the blend file due to the fact that it belongs to the project group I work with, but I was hoping for some general pointers on how I can figure this out. Keep in mind my dope sheet and NLA editor works completely fine, it's just the graph editor.  Here is an image of what it currently looks like:    and here is the corresponding dope sheet for the same animation:


I'd like to use a figure from a paper; what's the best way to do this?

So, I've seen a really nice figure in a paper; what's the best way to 'get a copy'?  Will it be on the publisher's website? Do I need to draw my own version? Email the author?  And, finally, how does the answer vary for (a) those wishing to republish the figure in their own work, (b) those not wishing to publish the figure e.g. for student coursework.


Delete old packages from local repository

I would like to cleanup my local repository after each upgrade. When I add newer version of packages to pool and regenerate indexes with dpkg-scanpackages, program warns about old versions of packages (in case -m option is not passed):  dpkg-scanpackages: warning: Package php5-common (filename pool/local/php5-common_5.3.6-13ubuntu3.3_amd64.deb) is repeat but newer version; dpkg-scanpackages: warning: used that one and ignored data from pool/local/php5-common_5.3.6-13ubuntu3.2_amd64.deb!   I'm looking for an automated way to safely remove old packages from disk. I'll call such a script safe if it do not delete an old package if a newer version is available and removing old version will cause an unmet dependency in local repository


Unable to open the /etc/environment using gedit in linux Debain distro

I am trying to set the path in the environment for the Java JDK, but I get this error. It would be really helpful if someone points what the mistake is.Thanks.:) xxx@debian:~/Folder$ sudo gedit /etc/environment No protocol specified Unable to init server: Could not connect: Connection refused  (gedit:10505): Gtk-WARNING **: 15:52:55.351: cannot open display: :0


How does axiom of regularity ensures that Russell's Paradox doesn't occurs. Given the axiom of regularity states: If A is a non-empty set, then there is at least one element x of A which is either not a set, or is disjoint from A.


In American English are the following three examples good to use for colon capitalization useage?

I know that a variant of this question has been , and recalled what my Creative writing teacher told me about when to use capitalization after a colon, by using the following three example sentences for colon usage.     In a complete sentence, the capital case is optional.   1. This is what I think of cats: They steal your breath.      In the following two examples, the capitalization is not optional to change, therefore the words after the colon must remain lowercase.         This is what I think of cats: nothing.   This is what I think of cats: scary, tiresome, snooty.      In other words, do the above examples properly illustrate proper colon and capitalization usage for American English, regardless of essay style, and usage for non-essay papers?


Why does fMRI start with a lowercase letter?

Why does fMRI start with a lowercase f? As it stands for functional in functional magnetic resonance imaging.  The  has a history section, but it does not explain why a lowercase f was used, nor when the term was first used.  Is there any other example?


How can two plots share one x axis, while having two different y axis?

I want that the following two plots share their x-axis using pgfplots and tikzpicture. It is important that the first one is fully logarithmic and at the second plot only the x-axis (semilogx). I did not find an idea for this special case. In addition to that I still want to have two plots. So the first plot, then a line and below the second plot with the x-axis. Only this x-axis shall be shared.  \documentclass[english]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc}  \include{pgfpages} \makeatletter  \usepackage {tikz} \usepackage{pgfplots} \begin{document}  \begin{center} \begin{tikzpicture}    \begin{loglogaxis}[width=0.8\textwidth,height=0.3\textheight]      \addplot[red] plot coordinates{(1,1)(2,4)(3,9)(4,16)};    \end{loglogaxis} \end{tikzpicture}  \begin{tikzpicture}    \begin{semilogxaxis}[width=0.8\textwidth,height=0.15\textheight]      \addplot[blue] plot coordinates{(1,0)(2,0.2)(3,0.2)(4,0.4)};    \end{semilogxaxis} \end{tikzpicture}    \end{center} \end{document}   So all in all there should be one tikzpicture. It would be great if the CSV import would work with that too, because in my paper I import it that way, but left it out here to keep it as simple as possible.


FYI: I am using Kubuntu 18.04  I keep getting the following error when I install apt-transport-https  Things I have already tired to fix this error are:  sudo apt-get autoremove libdvd-pkg  sudo apt-get install libdvd-pkg sudo apt-get update sudo apt-get install -f sudo apt-get purge apt-transport-https && sudo apt-get install apt-transport-https   The error I continue to see is  Reading package lists... Done Building dependency tree        Reading state information... Done The following packages will be REMOVED:   apt-transport-https* 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. After this operation, 152 kB disk space will be freed. Do you want to continue? [Y/n] Y (Reading database ... 246794 files and directories currently installed.) Removing apt-transport-https (1.6.6) ... libdvd-pkg: Checking orig.tar integrity... /usr/src/libdvd-pkg/libdvdcss_1.4.2.orig.tar.bz2: OK libdvd-pkg: `apt-get check` failed, you may have broken packages. Aborting... Reading package lists... Done Building dependency tree        Reading state information... Done The following NEW packages will be installed:   apt-transport-https 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 1,692 B of archives. After this operation, 152 kB of additional disk space will be used. Get:1 http://ca.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 apt-transport-https all 1.6.6 [1,692 B] Fetched 1,692 B in 0s (6,872 B/s)                Selecting previously unselected package apt-transport-https. (Reading database ... 246791 files and directories currently installed.) Preparing to unpack .../apt-transport-https_1.6.6_all.deb ... Unpacking apt-transport-https (1.6.6) ... Setting up apt-transport-https (1.6.6) ... libdvd-pkg: Checking orig.tar integrity... /usr/src/libdvd-pkg/libdvdcss_1.4.2.orig.tar.bz2: OK libdvd-pkg: `apt-get check` failed, you may have broken packages. Aborting...


Accounts (on the activity tab) links to network profile even if the community is hidden

We know that if a community is hidden, one can not see the "Network Profile" link except moderators. But I've found that one can still find "Network Profile" link from accounts link on activity tab.  For example, (Though I don't like hiding communities)  I've just hidden a community - Information Security. Now if you go through  on Internet Security, you won't be able to see the "Network Profile" link:        But the "Accounts" link from the  tab will give you my network profile link!    So, in such cases, not showing the "Network Profile" link to normal users is pointless given that the accounts tab contains a link to the Network Profile.  Hence, I suggest removing the network profile link from "Accounts" on the "Activity" tab as it is already available for the profile owner through the "view more" option underneath Accounts.


Changing 'rewrite' argument after custom post type is registered

I'm am attempting to change the rewrite argument after it has been defined and passed as an argument for 'register_post_type' in a plugin. My issue is that I am utilizing a plugin that defines a custom post type. I can manually edit the rewrite argument in the plugin; however, doing so will mean that I have to do this every time the plugin updates. I was wondering if there is a way that I can change this with some code in another plugin or functions.php file.  I was thinking there might be a function that would allow me to alter these arguments or a way in which I could unregister and reregister the custom post type.  Any ideas?


w = ['a','b','c','d','e','f','g','h']    l = []  a = w[0:2] b = w[2:4] c = w[4:6] d = w[6:8]   l = [a,b,c,d]              #[['a', 'b'], ['c', 'd'], ['e', 'f'], ['g', 'h']]   How can i get the same result ('w' to 'l') using loop method instead of slicing multiple times? Assuming  i dont know how many characters can there be in 'w' variable (in this example it is just from 'a' to 'h'), and slicing will always start from 0 but the range in unknown(where in this example it is 0:2)  Thank You very much.


Question about the properties of polynomials. How to approach this problem?

Are there $a(x),b(x) \in \mathbb{Q}[x]$ such that $a(x)f(x)+b(x)g(x) = x^2 + 1$  Where $f(x) = x^4+4x^3-7x+2$ and $g(x)=x^2+3x-4$  I have no idea how to approach this problem. I tried to visualize it as one with integers, but there seems to be some missing info - one function with two unknowns. Is there a special property of polynomials I'm missing here?


How was I able to close a question after running out of votes?

Time is now 9:10am (local) and I ran out of votes at . However this question created at 8:33am  shows me as closing it. The thing is the question was closed AND created hours after I ran out of votes. I still can't vote on anything as I have 9 more hours to get votes again. How was I able to close that question?


Can the original Age of Empires II be played online thru GameRanger with the HD version on Steam?

So my question is if the original Age of Empires 2 can be played online with the Steam HD version of the same game through the  software, not through Steam?


My website has had 10 months ago, the statistics are very high.  Very high ...   But after 10 days of server failure, Marm was 20 times less.   I got lost for a long time without making a mistake, do ...  I am the source of links that they've hired a writer to pen the final results are seen.   But a strange thing:  Approximately every two months and was hit again 20 more times and then low again after 10 days!  my website url : www.sooran.com (food.sooran.com)


Why can we flag/vote a question on Meta as duplicate of another question which has no accepted/upvoted answers?

When we flag/vote-to-close a question as a duplicate on Stack Overflow, and that potential duplicate doesn't have any upvoted or accepted answers, we are alerted that we can't use that question as a duplicate and can't continue. This same check does however not seem to apply to Meta questions. Why not?


Batch for execute Putty, log on Server and run commands with shell script or txt

I need help for this process. I have a batch file to run Putty and log with ssh an server and will execute commands from file "commands.txt".   C:\Programme\PuTTy\putty.exe -ssh user@server -pw 123456 -m c:\Programme\PuTTy\commands.txt -t   in the command.txt file i will run this commands:  sudo su - newUser cd /Scriptfolder ./start.sh   My batch runs to switsch user and stopt. The batch switch not in the newUser Folder  Thanks for reply


SE Yahoo SSO Authentication fails, how can I access my account?

I am writing for a friend of mine that is experiencing this issue. He has a few accounts here at SE and logged in through yahoo.com for the account in question.  That email address for some reason is not working anymore, and he cannot access his accounts on the Yahoo side or the SE side.  How can one change one's email address if one cannot access his own accounts?


LaTeX matplotlib pgf shows no colorbar - instead shows colorbar png image filename

Moved from Stack Overflow  I'm producing various plots with matplotlib and save them as PGF files. These are then imported in my LaTeX file and compiled using the pgf package.  The problem is, I can't seem to render colorbars for some reason. Also web searches came up empty so far, as I'm not quite sure what I'm looking for in terms of bug.  I produce my plot like this  fig = plt.figure() gs  = gridspec.GridSpec(10, 1) ax1 = plt.subplot(gs[:7, :]) ax2 = plt.subplot(gs[7:, :], sharex=ax1)  [...]  # plot sc = *scatter plot of my data* # colorbar divider = make_axes_locatable(ax2) cax = divider.append_axes("right", size="5%", pad=0.05) plt.colorbar(sc, cax=cax) # save fig.set_size_inches(8, 5) plt.savefig('isotropy-raw.pgf', bbox_inches='tight')   Then I get this    but upon including that in my tex file  \begin{figure}[h!]   \centering   \input{path/to/file/isotropy-raw.pgf}   \caption[x]{x}   \label{x} \end{figure}   it compiles this    I'm a bit baffled at this point. Any help is appreciated!  EDIT:  Providing an MWE  \documentclass[11pt, a4paper, twoside, openright]{book} \usepackage{pgf}  \begin{document} \begin{figure}[h!]   \centering   \input{isotropy-raw.pgf}   \caption{A nice caption}  \end{figure} \end{document}         The colorbar png file is created by LaTeX upon compiling.


Linux user and password copy between servers with cron script

I have two Red Hat 7 Linux servers that I want to keep user accounts synced. I have a bash script that copies these files between servers: /etc/passwd /etc/shadow /etc/group /etc/gshadow /etc/subuid /etc/subgid The script is run from a cron job every 5 minutes on each server, the problem is, how do I make sure only one server runs the script? I was thinking of adding a test into the script running stat on /etc/shadow and if the file modify time is not within the last 5 minutes exit the script. Since the modify time is copied over with the file the second server would also then run the copy script, which I don't want. Is there a better method of doing this?


Prove that $[N, G']=1$ when $N$ is a nilpotent subgroup of a group $G$?

I tried evaluating an arbitrary generator of $[N,G']$, but I can't show it equal to $1$ that way.  Working with examples such as when $G=S_3$ and $N=A_3$, then $[N,G']=[A_3,A_3]=1$ holds, but I don't have an idea about how to prove this is true in general.


Starting with a false statement, how can one prove anything is true?

So I've been learning a bit of logic for class and heard that if you begin with a false statement, you can then prove anything to be true, however I don't entirely understand what this means or how to do it.  For example, if $\sqrt{2}$ is rational, can you prove that $1=0$?


My end goal is that I want to wipe all of Ubuntu off my computer completely and run Windows 10 solely. Right now I have both of them on my system, but I am unable to get to the Windows 10 login screen because I'm greeted with "Error: Unknown filesystem" and enters me into grub rescue>. I'm not sure how to continue from here to the Windows 10 login screen, and how I can completely remove Ubuntu from my system.


Does there always exist a continuous/smooth map from $\mathbb{R}^n$ onto a manifold $M^n$?

I want to know if we can get away with only having one set of coordinates for a manifold if we allow multiple coordinates to map to the same point.


Is everything in the physical world composite?

In philosophy there is a principle that anything composite cannot have existed eternally, since it is preceded by its parts and whatever forces assembled it.  Is everything in the physical world composite in one sense or another or is there something not composite?


How do I expand/solve the following summation?

$\sum\limits_{i=1}^{n-1} i$.  I know the answer is $\frac{1}{2}(n-1)n$ but I don't quite understand it how to get there.


I am looking for famous, historical, beautiful, impressive, or otherwise noteworthy visualizations based on statistical concepts.   I think of examples along the lines of :     but also "impressive" visualizations of key statistical concepts, such as more special ways to present something like    That is, I think of something like a sister thread to  or .  Please post one example per answer and provide explanations to (a) support the claim of "famous" or "impressive" and (b) explain why the graphics deserve that reputation.


For coprime integers $p,q>0$ and $u,v$ real numbers algebraic over $\mathbb{Q}$ of degrees $p$ & $q$, prove $[\mathbb{Q}(u,v) : \mathbb{Q}] = pq$

I know that $\mathbb{Q}(u,v)$ extends $\mathbb{Q}(u)$ which extends $\mathbb{Q}$ so I was thinking I could use that $[\mathbb{Q}(u,v):\mathbb{Q}] = [\mathbb{Q}(u,v):\mathbb{Q}(u)][\mathbb{Q}(u):\mathbb{Q}]$ and calculate each of the components on the RHS, but I'm not quite sure how to do that.  I suspect that $[\mathbb{Q}(u,v):\mathbb{Q}(u)] = q$ and $[\mathbb{Q}(u):\mathbb{Q}] = p$


we can say 4 is the number you get when you add 1 to itself 4 times. Likewise, 5 is the number we get when we add 1 to itself 5 times.  Now, let's just say 4 = 5. It would have to be the case that 4-5 = 0, however, that would imply 1 = 0. Unfortunately, one of the rules for a ring is that you cannot have 1 = 0, therefore 4 cannot equal 5 in any ring with unity. but I found a calculation.    Relevant snippet  \begin{eqnarray} 2+2&=&4+\frac{9}{2}-\frac{9}{2}\\&=&\sqrt{(4-\frac{9}{2})^2}+\frac{9}{2}\\&=&\sqrt{16-36+(\frac{9}{2})^2}+\frac{9}{2}\\&=&\sqrt{-20+(\frac{9}{2})^2}+\frac{9}{2}\\&=&\sqrt{25-45+(\frac{9}{2})^2}+\frac{9}{2}\\&=&\sqrt{(5-\frac{9}{2})^2}+\frac{9}{2}\\&=&5-\frac{9}{2}+\frac{9}{2}\\&=&5 \end{eqnarray}  Yes, I know that this is not possible but the way it is solved seems pretty much correct to me. That makes me curious that is it somehow possible anyway ?


Does a creature with blindsight have disadvantage on attack rolls while under effect of blindness spell?

Premise  Casting  on a creature with :     A monster with blindsight can perceive its surroundings without relying on sight, within a specific radius.   :     Attack rolls against the creature have advantage, and the creature's attack rolls have disadvantage.   Question  Do attack rolls have advantage against a creature with blindsight that has been blinded?


Proving in Discrete Structures Problem that $2^N = \binom{N}{0} + \binom{N}{1} + \binom{N}{2} + \dots + \binom{N}{N}$

Here's how it is.  So I was studying some notes on Discrete Structures then I discovered this. Prove that $2^N = \binom{N}{0} + \binom{N}{1} + \binom{N}{2} + \dots + \binom{N}{N}$ Since I was new to this, I didn't quite understand it.  I tried using the binomial expansion but it confused me a little.  Can someone please help me solve this.  That would be great.


@enzotib mentioned the following command  sudo mount -o remount,rw /cdrom   Does this imply I can mount a CD or DVD in rw mode and use like a (real) filesystem? Does this work with the popular ISO-9660 filesystem, which is read-only by design? Will this create a multsession CD with one session per change (or per mount)?  Would this work (differently) on a ISO image file on a read/write filesystem?


Reparametrization in regards to Fisher information

I'm trying to understand equation 5.11 from Lehmann and Casella's Theory of Point Estimation (2nd edition) which is presented without proof.   It states that if $I(\theta)$ represents the Fisher information that $X$ contains about the parameter $\theta$ and $\theta = h(\xi)$ where $h$ is a differentiable function, then $I^*(\xi)=I(h(\xi))*(h'(\xi))^2$ where $I^*(\xi)$ represents the Fisher information that $X$ contains about the parameter $\xi$. In this case, $\theta$ and $\xi$ are both scalars (I know this can be generalized to the case where both parameters are vectors, but I'm not worried about that part yet).  I don't see exactly why this is true. I'm guessing it has something to do with the chain rule, but I tend to get lost in the notation. I suppose we can write $I(\theta) = I(h(\xi)) = \int ( \frac{p'[f(x,h(\xi))]\frac{df}{dh(\xi)}}{p[f(x,h(\xi)]} )^2 p[f(x,h(\xi)] dx$  Note that $\frac{p'[f(x,h(\xi))]\frac{df}{dh(\xi)}}{p[f(x,h(\xi)]}$ is the derivative of the score function for density $p_{\theta}(x)$  Then $I(\theta)*(h'(\xi))^2= \int ( \frac{p'[f(x,h(\xi))]\frac{df}{dh(\xi)} \frac{dh(\xi)}{d\xi}}{p[f(x,h(\xi)]} )^2 p[f(x,h(\xi)] dx = \int ( \frac{p'[f(x,h(\xi))]\frac{df}{d\xi}}{p[f(x,h(\xi)]} )^2 p[f(x,h(\xi)] dx$  But this isn't $I^*(\xi)$. Or is it? Or is my understanding/notation just totally backward? I'd really appreciate any insight that you all may have in regards to this problem.


PHP 7.0 - rounding and/or casting float to int gives incorrect values

Consider dockerized Laravel (5.7) app running on nginx/php 7.0.33. I'm experiencing weird rounding (?) error:  Can anyone explain me how floor($x) is 7256 instead of 7257? Bonus:  Bonus 2: the same test in PHP 7.4 / 8 gives good results:


How can I draw a horizontal line spanning only some of the table cells?

In a table, how can I draw a horizontal line that goes only through some of the cells? I mean a line like the one in the Foo and in the Bar area of this table:  +----+-----+ |Foo |1 |2 | |    |1 |2 | |    +--+--+ |    |1 |2 | |    |1 |2 | +----+-----+ |Bar |1 |2 | |    |1 |2 | |    +--+--+ |    |1 |2 | |    |1 |2 | +----+--+--+


Does solder being or not being uniformly thin and shiny really indicate reliability of the circuit?

I'm currently reading an article () and the author compares two devices (hard disks) of the same model one manufactured by Company A and the other manufactured by Company B. One of the things he compares is how solder looks like on the boards.  Company A device board has soldered parts looking like this:    and this is claimed to be "low quality tin-coating". What I see is that solder spots are not shiny and the solder layer is thinner near the spot edges and thicker far from the edges (a bit concave).  Company B device has soldered parts looking like this (that's exactly the same area of the board as on the Company A device):    and this is claimed to be "high quality tin-coating". What I see is that solder spots look shiny and the solder layer looks having uniform thickness across each spot.  So to me the first board just looks neater. From what I know about soldering once the surfaces have been properly degreased with soldering flux and the solder was melted properly the connection will be just fine regardless of how shiny and neat looking it is.  However the author claims that the Company B device is of higher quality and should be preferred because of (among other factors) the "better quality" of tin-coating. How reasonable is such claim? Can device reliability be judged based on such tin-coating analysis?


Find all functions such that $$\forall x,y \in \mathbb{R} \quad f(x+y)+f(x-y)=2f(x)\cos(y)$$  I got this question from a book. I tried substituting and assuming different values of $x$ and $y$ but ended getting nothing powerful enough to solve it. On taking $y=90$ I got a function in $x$ following cyclicity of a trigonometric function. But it will be valid iff $y$ is $90$. I'm stuck. Any help would be appreciated. Thanks in advance.


I have a textbox in MVC like this.  @Html.TextBoxFor(m => m.Pickup_Schedule_Date, new { @class = "dpicker", @placeholder = "mm/dd/yyyy", @id = "Pickupdate",@style="cursor:pointer" })   User should not be able to type in the text box and it should support tab out. The above code allows tab out but also allows to type date. Suggestions would be appreciated


How to rotate a rubik's cube as a whole with separate elements rotating as well?

Trying to figure out how to rotate the cube as a whole while it being solved with the separate sub cubes


onclick jquery function not working in wordpress header file

I am trying to get alert on click event of a tag, but it seems to be not working. Here is the code. I put this in header.php      and HTML code is  neha   I added this but nothing is appear.


Determining equations of motions of a system from its Euler-Lagrange equation where the latter contains two arbritrary functions

I am looking at a problem in the Goldstein Classical Mechanics Textbook where we are given that a one dimensional systems lagrangian is $$L=m^2\dot{x}^4/12+m\dot{x}^2V(x)-V_2(x)$$ and asked to determine the equations of motion. From this, I got the  Euler-Lagrange equation to be $$m^2\dot{x}^2+2mV(x)\ddot{x}+mV^\prime(x)\dot{x}^2+V_2^\prime(x)=0$$ Does anyone have any advice on where to go from here? Is there some sort of simpliflication or integrating factor that will bring all these together and allow for the equations of motions to be found?


How to redirect unzip -v output to a log file in shell script

I have a script that loops through all zip files in a large directory and individually unzips them. I am using the -q option in order to keep the console clean and display other monitoring info.  I would like to keep this same behavior but would like to add the output of the -v option to a single log file of the whole operation. What would be the best way of accomplishing this? Btw, I'm still a bit green when it comes to scripting so any input would be appreciated.  Unzip portion of script:  for FILES in $(ls -1Sr|grep a_media*)  do unzip -q $FILES -d $DESTINATION done


Capital ẞ in LaTeX/XeTeX/lualatex/whatever

I am trying to get a ẞ in my LaTeX document. How can I do this? I already tried:   Using other fonts: dejavu and libertine Using \MakeUppercase{ß}, which sometimes produces nothing, sometimes produces "SS" Using {\sc ß}, which sometimes produces nothing, sometimes produces "SS" Using XeTeX and lualatex: Just leaves out ẞ and warns about the Glyph that it could not find Using \symbol{"1E9E}, which also produces nothing   How can I do this?


unable to upgrade 12.10 to subsequent releases

I know 12.10 is no longer supported and that transition period ended in May or July 2014. I simply wanted to upgrade to 13.10, and from there on to 14.05 doing the usual  sudo do-release-upgrade command and everything that comes with it, but it dosen't seem to work. the commandline message I get after a while is   Error during update   A problem occurred during the update. This is usually some sort of  network problem, please check your network connection and retry.   W:Failed to fetch  http://us.archive.ubuntu.com/ubuntu/dists/saucy/universe/source/Sources  404 Not Found [IP: 91.189.91.14 80]  , E:Some index files failed to download. They have been ignored, or  old ones used instead.    Restoring original system state Aborting Reading package lists... Done     Building dependency tree           Reading state information... Done Building data structures... Done    Any ideas on what's going on? The menu from software updater is also giving me the message that the repository can no longer be accessed (since 12.10 is not supported anymore).   What are my options? Thanks


"That" usage: when should I point something using "that"?

When should I use "that" explicitly and when I can imply it? For example, I'm describing some circumstances and I need to point something in this description:     This means that a street name was written with several mistakes.   or     This means a street name was written with several mistakes.


I am asked to complete my withdrawal transaction with COT fee of 1200 dollars

I was marketed by a lady online on some investment packages in bitcoin. ($200 to become $2500 in one week of trade). I indicated interest in this. She took me to a trading website to sign up.  I deposited $200 at the start. After trading for 2 days with earnings, they called me to upgrade the account with $450 which I did. They then traded for 1 week and the account balance became $6786.    I requested to withdraw $6000 from my account and they told me to bring a COT fee of $1200 to complete my withdrawal.  Please help me do a background check on them. Are they real or fake? Check the registration of the company if it is real. The marketer told me the company will pay her from the COT fee.


Which games (except Torchlight) store the current state of the game to the Steam cloud?   What is the Steam Cloud?  Steam is Valve's online game purchasing and digital delivery service/platform. Steam Cloud is a fairly new addition to the Steam platform that saves the state for various games to Steam's servers in the "cloud". Depending on the game it can save things like your savegames, character setup, keyboard mappings, options, etc so that any PC that you go to will download all those settings for you and keep them in sync as soon as you log into Steam.


I want to create shortcuts on desktop and panels. Installation is Ubuntu Gnome 14.4 with classic desktop.


How can I make xrandr customization permanent?

I used to edit the startup script for the GDM (/etc/gdm/Init/Default) to permanently change my display resolution.   How can I do this with LigthDM in Ubuntu Oneiric?


how to convert a string date into datetime format in python?

How do I convert a a string of datetime into datetime format in python so that it can be compared with another date?  string_date = "2013-09-28 20:30:55.78200" abc = datetime.datetime.now()  if abc  > string_date :     print True


I would like to adopt this example , for a slightly modified Sierpinski triangle: The first step (the whole triangle is black) should be the same. Then in the second step, the three black triangles in the corners should only have a side length of 1/3 (instead of 1/2) of the side length of there "parent" triangle, and so on. Could someone help me with that, i've never used this "lindenmeyersystems" package...


Use RGB/Hex Color as Guide for Adjusting Image

I have several watercolor swatches that have the shape I want to use in a design. But I want to adjust the overall color of the shape to be one of our brand colors. I know that you can use the Hue/Saturation tool and drag the different aspects, but what if I want to use one of my RGB/HEX numbers as a guide?   I'd like to change this so that the "main" color could be 6f9fcd or 96ad3e or eeba30 for example.


I have a function within a function, how do I break out of them both at once?

probably a simple fix but i just cant work it out,  Basically this is a little program I made to calculate the hours I've worked in a day in decimal format, (becasuse I have to do it like that for my timesheet for work) works perfectly fine, but I decided to add in a feature where if I enter restart at anytime the whole program restarts.  I tried calling Time within Time but doing that restarts but then finishes the original after starting over. I also tried making a Restart function that calls Time and then call Restart but that didn't work either.  So I wanted to break out of them both and call the program again, is this possible or not?  def Time():     clear()     def is_valid_hours():         while True:             h=input("Hour: ")             if h=="restart": return "yes" #this line doesnt work (tried break)             try:                 h=int(h)                 return h             except:                 print("Please enter numbers!")     def is_valid_Minutes():         while True:             h=input("Minute: ")             if h=="restart": return "yes" # this is the other line (break tried)             try:                 h=int(h)                 return h             except:                 print("Please enter numbers!")     print("Please use time in a 24hour clock format when using this calculator")     print("Please enter arrival time:")     arrivalTimeHours=is_valid_hours()     arrivalTimeMinutes=is_valid_Minutes()      print("Please enter length of lunch break: ")     lunchBreakHours=is_valid_hours()     lunchBreakMinutes=is_valid_Minutes()      print("Please enter desired leave time: ")     leaveTimeHours=is_valid_hours()     leaveTimeMinutes=is_valid_Minutes()      if arrivalTimeHours>0:         arrivalTimeHours=arrivalTimeHours*60     arrivalTime=arrivalTimeHours+arrivalTimeMinutes     if lunchBreakHours>0:         lunchBreakHours=lunchBreakHours*60     lunchBreak=lunchBreakHours+lunchBreakMinutes     if leaveTimeHours>0:         leaveTimeHours=leaveTimeHours*60     leaveTime=leaveTimeHours+leaveTimeMinutes      totalTimeMinutes=leaveTime-(arrivalTime+lunchBreak)     decimalTime=totalTimeMinutes/60     print("Your decimal time is "str(decimalTime))     newTime=input("Would you like to do a new time?: ")     return newTime.lower()  newTime=Time() while newTime=="yes" or newTime=="ye" or newTime=="y" or newTime=="yah" or newTime=="yeah" or newTime=="yh":     newTime=Time() input("Press enter to close")   EDIT: I did try doing this aswell, it didn't work either.  def Time():     clear()     notQuitting=True     while notQuitting==True:         def is_valid_hours():             while True:                 h=input("Hour: ")                 if h=="restart":                     notQuitting=False                     return "yes"                 try:                     h=int(h)                     return h                 except:                     print("Please enter numbers!")         def is_valid_Minutes():             while True:                 m=input("Minute: ")                 if m=="restart":                     notQuitting=False                     return "yes"                 try:                     m=int(m)                     return m                 except:                     print("Please enter numbers!")          #rest of code


How can we reduce closing costs in USA while purchasing a home for first time home buyers

What are the several known and unknown closing costs associated while purchasing a house in USA? How can we significantly reduce closing costs ?


Permission denied when trying to run pip install ipython

When I used  pip install ipython   or  pip install "ipython[notebook]"   I get the following error:  Downloading/unpacking ipython   Downloading ipython-2.3.1-py27-none-any.whl (2.8MB): 2.8MB downloaded Installing collected packages: ipython Cleaning up... Exception: Traceback (most recent call last):   File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main     status = self.run(options, args)   File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 283, in run     requirement_set.install(install_options, global_options, root=options.root_path)   File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1435, in install     requirement.install(install_options, global_options, *args, **kwargs)   File "/usr/lib/python2.7/dist-packages/pip/req.py", line 671, in install     self.move_wheel_files(self.source_dir, root=root)   File "/usr/lib/python2.7/dist-packages/pip/req.py", line 901, in move_wheel_files     pycompile=self.pycompile,   File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 206, in move_wheel_files     clobber(source, lib_dir, True)   File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 193, in clobber     os.makedirs(destsubdir)   File "/usr/lib/python2.7/os.py", line 157, in makedirs     mkdir(name, mode) OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/IPython'  Storing debug log for failure in /home/username/.pip/pip.log   What does this error mean? How do I fix it?


How to acknowledge two equally valid answers as accepted?

I asked a question here:  and two people provided equally valid, functional answers. One provided the Fiddle for it and another provided the much needed line by line analysis and mod to make it work. Either one of these would have been a great answer that would have resolved my issue.  How do I pick which one to mark as the answer? We can't mark both can we? I have upvoted both as the least I can do but how do I resolve this dilemma? Please advise.


It always puzzles me, how the Gamma function's inventor came up with its definition $$\Gamma(x+1)=\int_0^1(-\ln t)^x\;\mathrm dt=\int_0^\infty t^xe^{-t}\;\mathrm dt$$ Is there a nice derivation of this generalization of the factorial?


Show that exists $U$ and $V$ such that $x\in V$, $K\subset U$ and $U\cap V=\emptyset$

Let $K\subset X$ a compact set of a metric space. Given that $x\in K^c$, show that   exists open sets $U$ and $V$ such that $x\in V$, $K\subset U$ and   $U\cap V=\emptyset$.   Well if $K$ is compact, then $K$ is closed and bounded, so $K^c$ is a open set. If $U\cap V=\emptyset$ then $U$ and $V$ are disjoint sets.  Then I need to find $U$ and $V$ such that $K^c\cap V\neq\emptyset$ (because $x\in K^c$ and $x\in V$) then $V\cap K=\emptyset$ (because $K$ is subset of $U$). How I can find such $U$ and $V$?


I'm very new to Android programming so please forgive me if this is a stupid query.  I have an Edittext for a password field, and a button to submit the password. I also have a couple of Textviews which are hidden (shows if password is correct/incorrect), which I'd like to turn visible using an if/else statement.   When I run the code (on an AVD), nothing happens when I click the submit button. At all, ever.  I know this is probably really simple, but looking at other answers on questions similar to this was no help, I've been trying for days to figure out what I'm doing wrong...  ..So ANY help would be really really appreciated. Thank you!! :D   -I use Eclipse, and Android 4.2.2  Here's the Java part:  final TextView success = (TextView) findViewById(R.id.textView1); final TextView failure = (TextView) findViewById(R.id.textView2); Button firstButton = (Button)findViewById(R.id.button1); final EditText userPassword  = (EditText)findViewById(R.id.passwordField); firstButton.setOnClickListener( new View.OnClickListener(){     public void onClick(View v){          if(userPassword.getText().toString() == "pa$$word"){             success.setVisibility(View.VISIBLE);         }         else{            failure.setVisibility(View.VISIBLE);         }     } });   XML:  <Button android:layout_height="wrap_content"  android:layout_width="wrap_content"  android:text="@string/button"  android:layout_marginBottom="75dp"  android:layout_centerHorizontal="true"  android:layout_alignParentBottom="true"  android:id="@+id/button1"/>   <EditText android:layout_height="wrap_content"  android:layout_width="wrap_content"  android:layout_centerHorizontal="true"  android:id="@+id/passwordField"  android:inputType="textPassword"  android:ems="10"  android:layout_above="@+id/button1">   <requestFocus/>  </EditText>  <TextView android:layout_height="wrap_content"  android:layout_width="wrap_content"  android:text="@+string/pwCorrect"  android:layout_marginBottom="124dp"  android:layout_centerHorizontal="true"  android:id="@+id/textView1"  android:layout_above="@+id/passwordField"  android:visibility="gone"/>   <TextView android:layout_height="wrap_content" android:layout_width="wrap_content"  android:text="@+string/pwIncorrect"  android:layout_centerHorizontal="true"  android:id="@+id/textView2"  android:visibility="gone"  android:layout_centerVertical="true"/>


How can I generate random numbers for a class?

I'm a bit of a java newbie,so I'm taking a java class. I'm working on my current assignment that asks me to make a class that holds data types for Card types (spade, diamond, etc) and their numbers (1, 2, 3 Jack, etc). I've managed to work this out, but I'm asked to make the class generate these numbers randomly, in order to choose a random card out of the deck. Below is my current code for my cards class.  public class Card { private int rank, suit; public Card(int rank, int suit) {     this.rank = rank; //set methods     this.suit = suit; }  public String toString(){ String[] suits = {null, "Clubs", "Diamonds", "Hearts", "Spades"}; //Null is never used, replaces 0 String[] ranks = {null, "Ace", "2", "3", "4", "5", "6", "7", "8", "9", "10", "Jack", "Queen", "King"}; //Null is never used, replaces 0 String drawnCard = ranks[this.rank] + " of " + suits[this.suit]; return drawnCard; }}    class TestCard {     public static void main (String args[]){         Card card = new Card(8, 4);         {             System.out.println(card);         }     } }   The class TestCard is what I currently have, but I'm trying to replace the values inside with randomly assigned values (rank 1-4, suit 1-13). So how exactly do I generate a random value from  the arrays in the Card class and call it in the TestCard class?


What leads to Windows thinking I pressed the Insert key on a MacBook Pro?

Note: This question is how to send an Insert keypress to Microsoft Windows running directly on Apple hardware. This is not about how to use Insert in OS X or through OS X to Windows running in a VM. See  or  for non-Windows Q&A's.   Somehow in my code editor and command line I keep toggling the Insert key, but I'm not sure how.  I can toggle it by clicking on OVR/INS in the status bar, but what is the key combo that I'm magically fat fingering?


How do i change the visibility of an existing block programmatically?  I created the block using yml, here's the configuration:   uuid: 67105709-2648-445e-9ddd-8b830a854d8d langcode: en status: true dependencies:   module:     - pixelpin_openid_connect     - system   theme:     - bartik id: openidconnectlogin theme: bartik region: content weight: 0 provider: null plugin: pixelpin_openid_connect_login settings:   id: pixelpin_openid_connect_login   label: 'PixelPin OpenID Connect Login'   provider: pixelpin_openid_connect   label_display: visible visibility:   request_path:     id: request_path     pages: /user/login     negate: false     context_mapping: {  }   The block visibility will change depending on whether a checkbox is checked so i cannot modify the existing block using yml (if that's even possible) unless you can call it in code.


Is there an encryption method where the order of decryption is irrelevant to the order of encryption?

With most encryption methods, if a message is encrypted first using key $k_1$ and then using $k_2$, to decrypt it you have to use first $k_2$ and then $k_1$.  I was wondering if there are any encryption methods that can be decrypted using the keys in any order. For example, if a message is encrypted using the keys $k_1$, $k_2$ and $k_3$, in this order, then it could be decrypted in the order of $k_2$, $k_3$, $k_1$ or in any other order, as long as all 3 keys are used.   Simple XORing the keys and the message is possible (where the key space is the same as the message space) but if multiple messages are encrypted, it is not secure.  So my question is: Is there an encryption method where the order of decryption is irrelevant to encryption, but which is also secure with multiple messages? The size of the keys doesn't matter.


If $a^{24}=e$ in a group $G$, what are the possible orders of $a$?

I am having trouble solving this basic question in Abstract Algebra.   If $a^{24}=e$ for some group $G$, what are the possible orders of $a$?  This is in the chapter on Cyclic Groups, so I assume that $G$ is cyclic. I first started looking for an answer using a theorem from my textbook:  Theorem: Let $G$ be a cyclic group of order $n$ and suppose that $a\in G$ is a generator of the group. If $b= a^{k},$  then the order of $b$ is $n/d$ where $d= \gcd (k,n)$.  I let $b= a ^{24}$ and saw that $\gcd (24,n)=d$.   This got me nowhere, because $n$ is not given. I then realized that 24 can be factored as $3\cdot 2^3$, giving $a^{3\cdot 2^3}$. I figured that the order of $a$ must be 3 or 2. I don't know if this is right, and if it is I have no clue on how to prove that's the case. I also figured that maybe the order of $a$ would be some combination of the two, as in the following:  2, 2*2, 2*2*2, 3, 2*3, 2*2*3, 2*2*2*3.  I do not know how to approach the problem, because no matter what I do I get stuck.  I especially do not know how to solve this in general, for non cyclic groups.  Any help is appreciated, and I would really like a step by step walkthrough on how these types of problems are tackled.  Thanks!


Can anyone explain all these Developer Options?

Can anyone explain these developer options?   Force GPU rendering Disable non-rectangular clip ops Force 4X MSAA Disable HW overlays   What are the possible effects that can be seen in my device by disabling/enabling them? [Note: I've found other options by Google-ing but not these.]    Do the developer settings affect battery life by using lower animation speeds (all to 2x precisely) or higher animation speeds (0.5x precisely) at the expense of user experience?


How to check if a macro value is empty or will not create text with plain TeX conditionals?

I have a macro which holds some text value, e.g. \macro{some text}. If it is empty, I would like for nothing to appear in the document, but it has some content of any kind which would produce text displayed in the document, I would like a message to appear, "Text: some text".   \macro{} would be considered empty. \def\somedata{}, \macro{\somedata} would be considered empty. \macro{0} would be considered not empty.   I have tried making a TeX conditional which can check if the value is not empty, but nothing I tried works, e.g.:  \ifx #1 {} \else     Text: #1 \fi  \ifx#1{} \else     Text: #1 \fi  \ifx #1 \nil \else     Text: #1 \fi  \ifx#1!="" \else     Text: #1 \fi   What is the correct syntax for creating a conditional in plain TeX with checks if a value is not empty?


Can two different topologies have the same basis?

I started general topology recently, and a partner of mine made a example of two different topologies generated by the same basis, so I'd like to know if that is possible, and if it is not, to see a proof of it.


I have a problem .I can't access to my disk see the message below :  Error mounting /dev/sda7 at /media/marwen/SEHLI: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda7" "/media/marwen/SEHLI"' exited with non-zero exit status 13: $MFTMirr does not match $MFT (record 0). Failed to mount '/dev/sda7': Input/output error NTFS is either inconsistent, or there is a hardware fault, or it's a SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows then reboot into Windows twice. The usage of the /f parameter is very important! If the device is a SoftRAID/FakeRAID then first activate it and mount a different device under the /dev/mapper/ directory, (e.g. /dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation for more details.


Intuition on One Class Support Vector Machines

I am having trouble understanding how one-class SVMs work. They were introduced in a paper by Scholkopf and others (and can be found ).  One-class SVMs perform "novelty detection", where a point is classified as either normal or abnormal, but you can only train your model on normal points.  In the paper linked above, the authors use SVMs for novelty detection by separating the training examples from the origin in feature space. They further claim that for certain values of parameters (specifically, their parameter $\nu$) their method is equivalent to a thresholded  if the kernel function integrates to 1 over $\mathbb{R}$. Mathematically, this makes sense (equations 5 and 6 in the paper reduce to Parzen Windows for large values of $\nu$), however I am having trouble understanding this intuitively.  So here is my question: As I see it, separating points from the origin in feature space will necessarily mean that there exists some $n$-dimensional ball centered at the origin with radius $r$ such that for all points outside of this ball, they will be classified as normal. Wouldn't this lead to a large portion of $\mathbb{R}^n$ being classified as normal? However, their paper claims that the solution has small volume.


Why does my domain not show up in Google anymore?

So I have had a website since about 2006. It's  . Recently I've noticed that no results will show up for it in google. I do have a secondary domain(that I plan on getting rid of) pointing to it but I don't understand why google would suddenly not show my site.  I believe it was showing up a few months ago and my website is hardly ever down, like one or two days I believe has been the most it's been down in a row in this time period.   Is there something wrong with my DNS or other configuration that would make google not index me?   For reference I've tried:      and the heading from my site   A few show up with the therusticstone.com domain(the one I plan to point somewhere else) but none show up directly linking to earlz.biz.tm.   Update  Ok, I got my site verified and such and it says there are zero crawls and all that. When going to the Lab's feature "Fetch As Google Bot" I found the problem. I tried to simply do  and it said "DNS not found." I don't see any obvious problems with my DNS records though and I haven't changed them in months


Can a blind character benefit from gaining Truesight?

If a blind character acquired some way (whether though homebrew classes, blessings or magic items) of gaining blindsight or tremorsense, that character would be able to use those senses without issue. However, would the same be true if said character gained truesight? Is truesight a different sense to your regular vision, or is it a modification to it (and thus a blind character's vision would be modified to allow truesight, but he would still have a vision range of 0ft, rendering the modification useless)?


Given $a_n$ converges to $a$ how to find this limit?

If the terms of a sequence $a_n$ converge to $a$, show that $\frac{a_1+a_2+...+a_n}{n}$ also converges to $a$. Also show that the converse isn't necessarily true.  Please help me with this- I am unable to approach this problem, and don't even know where to begin looking for a solution.


How would I specify for an area *outside* a square area?

This is similar in a way to , but the solution the MBraedley gave didn't work for me. As the linked post says, I've also tried the many ! values in front of the coordinates etc., to no avail.  Essentially, I'm creating a "safe zone" area for the spawn (regardless of spawn protection settings) of my realm, similarly to that of survival servers like what LemonCloud had. I've got detecting in the area down, but now I need it for those outside the area.


word to describe a person who catches the sexual overtone in a normal conversation

I know there is a word for it — I heard it when I was young. What is the word to describe a person who catches the sexual overtones in a normal (non-sexual) conversation?  Here's one example I have (I said this and then laughed because it was my comment and went over my own head at the time):  I was considering a name for a mobile dog grooming business. I thought 'Doggie Style' was great. Of course, the room full of my husband's friends laughed at me, telling me I'd never get approved for a license with that name. What word would I use to describe them?


Do I need a visa to transit through South Korea?

I am a Vietnamese citizen. I am planning to buy a round-trip flight ticket from Taipei to Los Angeles (America) and I will transit in Seoul airport.   Do I need a visa if I want to enter Seoul (not over 72 hours)?   My first route is TPE-ICN-LAX, do I need a visa if I stay one night in Seoul? My second route is LAX-ICN-TPE, do I need a visa if I stay one night in Seoul?  Of course, I have a valid US visa, and onward ticket that I booked.


Partition function of bosons vs fermions

I have two atoms, both of which are either bosons or fermions, with four allowed energy states: $E_1 = 0$, $E_2 = E$, $E_3 = 2E$, with degeneracies 1, 1, 2 respectively.  What's the difference between the partition functions of a pair of two bosons and that of a pair of two fermions?


Ubuntu 17.10 - ALT + Tab swaps between workspaces

Since I updated to Ubuntu 17.10, I have noticed that when I try to switch windows, using ALT + Tab, it shows me not only the windows in my current workspace but all the other ones.  Before the upgrade, this was not the behavior of task switching, and I actually miss how it was before.  Is there any way that I can recover the old behavior?


missing content type name and description in the new item dropdown

I have created a content type based on the oob item content type, list definition and a list instance and they are activated via a web scoped feature.  It all works as expected apart from one thing.  The content type name and description are not displayed in the new item menu.  It prints the default "Add new item" text, but i want it to use the content type name and description.  I thought this would happen automatically but that doesnt seem the case.  Am i missing something in my list defintion / instance or content type definition?   As a note clicking the "Add new item" option does bring up the form based on the correct custom content type  Any ideas?


Why "suggested edit pending approval" notification is there even after I have reached the daily limit

First of all, I have gone through . But I am not satisfied, and I do agree with "Reviewing is important to keep the quality of questions and answers high".   My question is, why that notification is there even after I ran out of the daily limit. I mean can't they disable that if user has reached the limit?  What is the point of having such a notification on the top-bar if we have nothing to do? Is there any option to disable that?


Why are my Postfix mails recognized as Spam?

I have a Postfix mail that I have configured pretty good. mail-tester.com gives me a 10/10. I have tested on both Google and Yahoo, and checked their headers. Nothing seems to be wrong in the headers.  Authentication-Results: mta4213.mail.bf1.yahoo.com;   dkim=pass (ok) header.i=@mymail.com header.s=mail;  spf=pass smtp.mailfrom=@mymail.com;  dmarc=pass(p=quarantine sp=NULL dis=none) header.from=mymail.com;   I am not blacklisted anywhere and this mail address was never used for spam. I have checked lots of resources before coming here, but couldn't find any solutions. I don't think this is a duplicate question (I mean this is a common issue, but none of the answers worked out for me).


At least one prime between $\sqrt{n}$ and $n$?

Prove that for all $n>2$ there exists at least one prime $p$ such that $\sqrt{n}<p<n$ using elementary methods.  My try: If not, $\sum_{p<\sqrt{n}} (\lfloor n/p \rfloor-\lfloor \sqrt{n}/p \rfloor) \geq n-\sqrt{n}$  then...?


What is the proof that the speed of light in vacuum is independent of relative motion?

Most people know that the speed of light in vacuum is independent of relative motion but I want to know the proof of it.


Referencing a subfigure, gives section referencing

I am trying to referencing a different subfigures in the following LaTeX with the clever reference   \begin{figure}[h]   \centering   \begin{subfigure}{.49\linewidth}     \centering     \includegraphics[scale=.49]{test_data/test_data1}     \label{fig:first-score}     \caption{}   \end{subfigure}   \begin{subfigure}{.49\linewidth}     \centering     \includegraphics[scale=.49]{test_data/test_data2}     \label{fig:second-score}     \caption{}   \end{subfigure}     \begin{subfigure}{.49\linewidth}     \centering     \includegraphics[scale=.49]{test_data/score_combibed_test_data}     \label{fig:score-combined}     \caption{}   \end{subfigure}   \caption{Score test data}   \label{fig:score-res} \end{figure}   Then when I do \cref{fig:first-score} it reference the section instead of the subfigure. What should I do to get it to refence the subfiugre?  I have include the subcaption package.


Thought experiment - would you notice if you fell into a black hole?

I've heard many scientists, when giving interviews and the like, state that if one were falling into a black hole massive enough that the tidal forces at the event horizon weren't too extreme, that you wouldn't "notice" or "feel" anything, and so forth.  Thinking about this for a few minutes, it seems to be quite wrong.  If you're falling feet first for example, as your feet cross the horizon, your brain can no longer receive any information from them, as the information would have to travel faster than light.  Once you are entirely within the horizon, no part of your body closer to the singularity can send any sort of signal to any part of your body that is further away, for the same reason.  Even bloodflow would stop, as blood that is pumped downward towards your feet could never be pumped back up again.  In other words, inside the event horizon is a series of even more event horizons, like the layers of an onion, infinitely thin.  Am I missing something important?


I have two content type A and B in which B content type node is reference in A content type node. In B content type node there is status field. I want to fetch the A content type node in which the status of B content type node is something.  Can you please guide me how can I use this?  Thanks


Proving $\csc\frac\alpha2+\csc\frac\beta2+\csc\frac\gamma2 \ge 6$, where $\alpha$, $\beta$, $\gamma$ are the angles of a triangle

If $\alpha$, $\beta$, $\gamma$ are angles of a triangle. prove that $\csc\frac\alpha2+\csc\frac\beta2+\csc\frac\gamma2 \ge 6$.   I started from $\alpha + \beta + \gamma = 180^{\circ}$ and then I tried to use some trigonometric identities, but with no success. Can someone tell me how to start?


My teacher asked me the following question:   If $a \equiv 8 \mod{16}$   then $2a \equiv 16 \mod{32}$.  I solved this problem by plugging in a bunch of numbers but I wonder if I can prove it in a more abstract way?  Thanks in advance.


My /Root says I only have like I am low on space, someone help me figure this out?

My /dev/sda6 says I only have 4.7G available but still use% is 99? It does not make sense. Can someone help me with this? waybackdrm@dolansroadbike:~$ df -h Filesystem      Size  Used Avail Use% Mounted on udev            3.8G     0  3.8G   0% /dev tmpfs           784M  2.5M  781M   1% /run /dev/sda6       260G  242G  4.7G  99% /  I try the following: sudo apt-get autoremove sudo apt-get clean  doesn't seem to do anything? Any feedback? also let me know if I need more screenshots?


Editing a primitive's values AFTER initial placement

first time posting in here so please forgive any protocol mishaps, I will try to adhere to the rules as much as possible!  So this is an often asked question and I'm not so sure how or why the absolute correct answer has never appeared.   Is there a way to change the parameters of a primitive object once one has exited the initial pop-up window that appears bottom left upon placement of a primitive?   Here are screenshots:      Apologies for the sacrilege, but in Cinema 4D, until you make the primitive editable, you can go back and change parameters way after initial placement:  ]     As a switcher from Cinema, it's little things like this that can make the transition questionable initially. For all of the far superior mdelling tools in Blender 2.8 compared to Cinema, this is an essential oversight. Yes one can simply delete and start again, but that really shouldn't be part of the equation…  Thanks


Are Images from i.stack.imgur.com permanent? AKA "Why are my pictures gone?"

I got pinged with :     There aren't any images.   Upon closer inspection, I realized that not only are my answer's images gone, but the other answer also. This got me looking and I found these posts (none of which were helpful) and this question is not a duplicate of any of them:      or     In that last question there is a :     It does work for these images, if you're referring to those embedded in the example question you linked. If it doesn't, then the image was deleted because it was inactive for 6 months.   That makes it sound as if nobody looked at a particular question for six months, all the images would get deleted!  Are images uploaded through SE's image hosting tool subject to such deletion rules? (I sure hope not!)  If this is not the case why are the images from  answers now gone?


Prove the inequality $\sum_{1\le i<j\le n}\sqrt{a_ia_j}<\frac{n-1}2\sum_{i=1}^n a_i$

Please demonstrate this is true This is the exercise:  $$\sqrt{a_1a_2}+\sqrt{a_1a_3}+\ldots+\sqrt{a_1a_n}+\sqrt{a_2a_3}+\ldots+\sqrt{a_{n-1}a_n}<\frac{n-1}2(a_1+a_2+a_3+\ldots+a_n).$$ I tried to solve it, but I couldn't do anything right. This is my idea: $\sqrt{a_1a_2}<\frac{a_1+a_2}2$ -because geometric mean < arithmetic mean; $\sqrt{a_1a_3}<\frac{a_1+a_3}2$, $\dots$, $\sqrt{a_{n-1}a_n}<\frac{a_{n-1}+a_n}2$  Please give me the answer!!  $a_1,a_2,a_3,\ldots,a_n$ are real, positive nummbers


I'm not good at physics, but I'm trying to make a lantern. So I have an LED with this characteristics:    N = 3 Watt I = 0.7 Ampere U = 3.4-3.6 Volt   So I connect it to 6V battery, but need ~3.5 V. What type of resistor do I need?  I calculated internal resistance with R = U / I and got 3.6 / 0.7 = 5.14 Ω.  And using this formula I = 𝛆 / (R + r) I got total resistance of 6 / 0.7 = 8.57 Ω. Here 8.57 - 5.14 = 3.42 Ω of external resistor. Am I right?


Mechanism to get the current running configuration values in nginx

Trying to find an easy and convenient mechanism to get the current configuration values from a running nginx instance.  The ideal solution would be a url that I could point to that would print the configuration values that are loaded into the server.  The purpose of this is to verify that the configuration file that I believe to be holding the correct values is indeed being loaded correctly and its values are set.


Does the Armor of Agathys spell still damage attackers if you have temp HP from another source, such as the Dark One's Blessing feature?

Recently, I played a warlock in a 5e one-shot. We were playing at level 7 and I was a Pact of the Blade warlock with the Fiend patron. As a Fiend Warlock, I have a feature called "Dark One's Blessing", :  Starting at 1st level, when you reduce a hostile creature to 0 hit points, you gain temporary hit points equal to your Charisma modifier + your warlock level (minimum of 1).  The description of the Armor of Agathys spell reads:  A protective magical force surrounds you, manifesting as a spectral frost that covers you and your gear. You gain 5 temporary hit points for the duration. If a creature hits you with a melee attack while you have these hit points, the creature takes 5 cold damage. At Higher Levels. When you cast this spell using a spell slot o f 2nd level or higher, both the temporary hit points and the cold damage increase by 5 for each slot level above 1st.  The situation was that there was a pack of 'minions' (4th-edition term, I know... but they were low-AC 5 hp monsters that died in 1 hit most of the time) attacking my group. The dragonborn wizard knew Fly, and grabbed the halfling and flew out of reach of the group of minions; I was left there with Armor of Agathys cast on me at level 4, so I had 20 temp hp and did 20 damage to each minion. The question comes from the functionality of Temp HP (THP)... It does not stack. Instead, you must choose which set to acquire, either keeping the THP you currently have or using the new number provided by whatever is trying to give you more THP. Once I was below 20 THP from the attacks made on me by this swarm of minions, I started taking the 10 (warlock level + CHA mod= 7+3) THP provided by Dark One's Blessing. After rereading Armor of Agathys today, I noted it says 'while you have these hit points'... leading me to believe that choosing to take the 10THP from Dark One's Blessing would remove the Armor of Agathys and its damaging capability. TL;DR Does Armor of Agathys only work if you have THP from the spell specifically, or does it still work if you gain more THP from another source (like from Dark One's Blessing) while the spell is still active?


How to contact an Ubuntuforum administrator?

I would like to contact a forum administrator and I don't want to log to my Ubuntu One account because I'm closing it.  So I can't log to my forum account and I'd like to close it too.  So, what can I do? :)  Thank you for your help.


Error. Attempt to invoke virtual method .getResources()

Can you help me please to figure out the error below : I have some string resources, but i renamed them. Is it possible that my renaming causes the error ? Here is below the error.  Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference         at android.content.ContextWrapper.getResources(ContextWrapper.java:89)         at android.view.ContextThemeWrapper.getResourcesInternal(ContextThemeWrapper.java:127)         at android.view.ContextThemeWrapper.getResources(ContextThemeWrapper.java:121)         at android.support.v7.app.AppCompatActivity.getResources(AppCompatActivity.java:542)         at com.andersen.dogsapp.dogs.DogsApp.<init>(DogsApp.java:12)   The code:  public class DogsApp extends AppCompatActivity { // This line below has called an error     String owner[] = getResources().getStringArray(R.array.owners);      LayoutInflater layoutInflater;     private LinearLayout scrollinlayout;     @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_dogs_app);         scrollinlayout = findViewById(R.id.scroll_child_linlayout);         layoutInflater = getLayoutInflater();         for(int i = 0; i< owner.length; i++){             View inflatedView = layoutInflater.inflate(R.layout.owners_item, scrollinlayout, false);             TextView textViewName = inflatedView.findViewById(R.id.owner_name);             textViewName.setText(owner[i]);         }     } }   Thanks a lot!


Story about a time-traveler living backwards in a capsule

I'm hunting for the title of a short story where a senile old man appears in a capsule in a laboratory.  They eventually realize time is passing backwards for him. After years he helps them build the machine he's in, and he changes places with the him that has been aging normally in the timeline.


What can I do to blend the transition between 2 materials in specific parts of a mesh in Cycles?

I need to blend or smooth the transition between theese materials on my charecter:   ] I need to mix the 2 materials but only where the dark blue hits the light blue I need it to smooth, blend or anything that does not make it look so bad hahaha


As may people know, string.Compare compares texts with numbers as "xx10yy" < "xx2yy", however, windows does it as "xx10yy" > "xx2yy".  The question is how to compare texts as windows does, if there's a function that does it.  Thanks in advance.  Edit :  The question was written in a lot of ways in a lot of questions, mine has been more strict in my opinion and since the answer I've provided is written by me I prefer answering to a question of my like.  Edit 2 :  Just for it not to be marked as a duplicate, since it isn't, at least not of one that I'm aware of.


I very much like the typesetting in Numdam's writeup of . I find the font particularily pleasing, and the headers are nice as well. I've heard this is how it looked in the original release; I would like to snatch it. Does anyone know the name of the font, or does anyone have a general setup?


How to show that $\sum_{k=1}^{\infty} (k^{ \frac{1}{k}}-1)$ diverges.

Trying to use comparison test, but can't find a good candidate to compare with. Rather without use of Taylor series.


Most ISPs in my area almost exclusively use shared IPv4 addresses; I gather that this is forced by the IPv4 exhaustion.  Is this the only reason? Will IPv6 eliminate the need for shared IPs?  After some comment I realized that I had not specified that my focus is on typical home internet and not business oriented; so the question is not whether will NAT still be useful but whether ISP will offer them in the base packages.


Mac Calendar app on 10.13.6 High Sierra editing event descriptions

Whenever I create a new event in my calendar and start typing a description, e.g. Hairddresser, a list of previously used descriptions appears.  This is useful but after a while I just want to delete those descriptions I no longer want to appear. How do I access the list where they are stored to delete them?  Anyone have any idea?


How To Instantly Save Screen To File With One Key

Using Windows 7, I would like to set up a single key, ideally a key which is not commonly used for anything else like PrintScrn, to automatically save the screen to a file. File name or location is not important.  By default, the screen is saved to a clipboard, which means that if you take another screenshot, the first one is overwritten. It makes it very difficult to capture multiple screenshots quickly, or in real time.  Does anyone know if there is a way to accomplish this? I don't know if there could be an obscure configuration for this. If there needs to be a third-party application, it should be as light as possible.  Thanks for your help!


Package Install via Market sometimes fails and gives seemingly random error message

Some times when I install an application, the installation will fail.  However, the errors it throws are not only incorrect, but seemingly... random.  An example is, it'll fail and throw 'Insufficient storage space.' Blatant lie, I have plenty of space on the phone.  Another example is 'Package file is invalid.'  When I go to redownload the app, it usually installs just fine. On rarer occasions, it'll throw another (can't remember if it's the same) error, but then it'll install just fine.  I'm using stock market, on a stock Droid 3.


How can rooted and unrooted (phylogenetic) trees be distinguished from one another

I understand that rooted and unrooted phylogenetic trees are similar in structure  But how can they be easily identified as one or the other?  Is it simply based on the presence or lack of a named root (the root is identified as a particular ancestor) or outgroup?


Ubuntu 13.10 to 14.04 Lts does not upgrade, keeps showing error

The update from Ubuntu 13.10 to 14.04 LTS does not work it keeps showing me an error as could not calculate the upgrade, even when I want it to get updated from the terminal it says the same error. I did not use the beta its the final Ubuntu 14.04 LTS.I have restarted my laptop for like 5-10 times no change. Disabling the software sources also does not help.


Colorize a cell in Google Sheets based on cell data

I'd like to colorize a cell based on its contents. 0 = red, 100 = green, and linearly interpolated between.  function LinInt(x){       var ss = SpreadsheetApp.getActiveSheet();   var cell = ss.getActiveRange();   var hue;   hue = (x/100)*120;    var color = HSVtoRGB(hue, 40, 100);   cell.setBackground(color);    return x;     }     function HSVtoRGB(h, s, v) {     var r, g, b, i, f, p, q, t;     if (h && s === undefined && v === undefined) {         s = h.s, v = h.v, h = h.h;     }     i = Math.floor(h * 6);     f = h * 6 - i;     p = v * (1 - s);     q = v * (1 - f * s);     t = v * (1 - (1 - f) * s);     switch (i % 6) {         case 0: r = v, g = t, b = p; break;         case 1: r = q, g = v, b = p; break;         case 2: r = p, g = v, b = t; break;         case 3: r = p, g = q, b = v; break;         case 4: r = t, g = p, b = v; break;         case 5: r = v, g = p, b = q; break;     }   return '#'+((b | g << 8 | r << 16) / 0x1000000).toString(16).substring(2); }   When I do this I get an error saying that I am not allowed to call setBackground. I assume this is because I'm not allowed to change the color of one cell from another because I'm screwing up getting the current cell that the function is running in.  How do I get the cell that the function is running in so that I can call setBackground() on it?  For example, I'd like to type =LinInt(50) into cell A1 and have A1 be yellow and have the number 50 in it. Then when I type =LinInt(100) into cell A2 it is green and has the number 100 in it.


I'm using Ubuntu 16.04. Is there any way to change default font in all windows? Like change it's default fonts (like size or make title string non bold)?


I was having an earlier R version (R3.6) on my Ubuntu 18.04LTS machine. I tried installing R v4.0, by removing the previous versions and PPA links in my source. list file. I had unsuccessful attempt on R4.0 installation and Now I am not even able to install my previous R3.6 version too. Here are the errors I received:  r-base : Depends: r-recommended (= 3.6.3-1bionic) but it is not going to be installed E: Unable to correct problems, you have held broken packages.  I tried fixing broken packages using various suggested commands, however, I am getting only these errors and upon checking R cache using the command: sudo apt-cache policy r-base. I got the following: r-base:   Installed: (none)   Candidate: 3.6.3-1bionic   Version table:      3.6.3-1bionic 500         500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages      3.6.2-1bionic 500         500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages      3.6.1-3bionic 500         500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages      3.6.1-1bionic 500         500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages      3.6.0-2bionic 500         500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages      3.6.0-1bionic 500         500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages      3.5.3-1bionic 500         500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages      3.5.2-1bionic 500         500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages      3.5.1-2bionic 500         500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages      3.5.1-1bionic 500         500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages      3.5.0-1bionic 500         500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages      3.4.4-1ubuntu1 500         500 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages         500 http://us.archive.ubuntu.com/ubuntu bionic/universe i386 Packages


Given $X_{n}\sim N(\sin(n\pi),1)$, how could we prove $X_{n}=O_{p}(1)$? Thanks!


Help Directing Question to Appropriate Forum Area, Please: Repository Issue in 20.04

I am using Ubuntu 20.4 and I am attempting to install DSD by debi  20.4 main But I get this response: debi: warning:     debian/changelog(l12): found start of entry where expected more change data or trailer LINE: sdrangel (6.7.0-1) unstable; urgency=medium debi: warning:     debian/changelog(l12): found end of file where expected more change data or trailer debi: can't read sdrangel_6.8.0-1_amd64.changes!  The developer of DSD really wants us to use DOCKER to install full versions of SDRAngel, which includes DSD, so I tried that, as well: sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"  BUT I receive this response: Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease Hit:2 https://download.docker.com/linux/ubuntu focal InRelease                                                     Get:3 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]                                         Get:4 http://security.ubuntu.com/ubuntu focal-security InRelease [109 kB]                       Ign:5 http://ppa.launchpad.net/szechyjs/dsd/ubuntu focal InRelease                         Get:6 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]                               Err:7 http://ppa.launchpad.net/szechyjs/dsd/ubuntu focal Release                                             404  Not Found [IP: 91.189.95.85 80] Get:8 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [264 kB] Get:9 http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [303 kB] Get:10 http://us.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [2,468 B] Get:11 http://us.archive.ubuntu.com/ubuntu focal-backports/universe amd64 DEP-11 Metadata [1,768 B] Get:12 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [24.3 kB]        Get:13 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [58.2 kB] Reading package lists... Done                E: The repository 'http://ppa.launchpad.net/szechyjs/dsd/ubuntu focal Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.  It appears from these two responses that the DSD component for Ubuntu 20.04 is absent. It appears that past and future releases of Ubuntu have valid DSD repositories. 20.04 seems to have an abnormally ended file repository. I am assuming here that the DSD repository needs to be rebuilt and replaced, then the Docker container for 20.04 be rebuilt and replaced. I left a note with the DSD developer yesterday in github, but no response as of this afternoon from anyone. I don't know where is the appropriate forum to lodge this issue. I would have assumed the repository should have been submitted by the DSD developer. But, I can see the potential that the Ubuntu repository build might be managed by someone other than the developer, so maybe a repository maintainer issue. In the case of the Docker container, it might be some issue with the container publishing function. Can those familiar with this whole process advise me on how to properly direct this (these?) issue(s)? Many thanks, Shane


Proof of a claim on a continuous function in [0,1]

This question has given me a huge headache, and I can safely say I hate everything about it. I need to prove, that for a continuous function in [0,1],which has the property that for every x in the domain, f(x) > x, exists a d > 0 , so for every x in the domain f(x) > x + d.  I understand this is true because of the rational density theorem, but I just can't figure out how to show this. I tried using the definition of a uniformly continuous function, but that didn't go so well. I'm pretty sure i'm missing something stupid here, and i'll love a hint on how I could proceed, thank you!


Suppose $\mu$ is a Radon measure on $X$ such that $\mu(\left\lbrace x \right\rbrace)=0$ for all $x \in X$, and $A \in \mathbb{B}_X$ satisfies $0 < \mu(A) < \infty$. Then for any $\alpha$ such that $0 < \alpha < \mu(A)$ there is a Borel set $B \subset A$ such that $\mu(B) = \alpha$   I'm not even sure how to start this problem. It seems like a nice result, but any hints on how to start?


Prevent Gmail right-click from opening a New Message panel

If an email message contains an email address in the body, Gmail automatically converts it into a mailto: link, which is helpful.  And many times each day I've enjoyed being able to right-click a mailto: link in an email (within Gmail) and then click "Copy email address" in the context menu.  Then I can paste that email address into a program (such as when I want to search a database).  However, within the past month or so, I've noticed that I can't right-click and click "Copy email address" without Gmail then popping open a "New Message" panel and changing my current URL to have ?compose=new at the end.  I wonder if it's related to .  How can I disable it?  I'm tried of having to click the "Discard draft" trash can button so many times throughout the day.


This  from an online Italian newspaper shows photographs of one of the most powerful phenomena in the cosmos.    Nothing, not even at the speed of light $c$, can escape a black hole one it has been caught. So how is it possible mathematically that a black hole, which "swallows" the stars and gas approaching its powerful accretion disk, can then eject some of the gas into two thin jets of plasma at speeds $V_{pl}$ close to the speed of light?