I want to convert a number to string and then wanna check whether its palindrome or not. But when i execute im getting not palindrome.  import java.util.Scanner;  class PalindromeNumberCheck {     public static void main(String arg[])     {         Scanner input = new Scanner(System.in);         System.out.println("Enter the number to be checked");         int i = input.nextInt();         String str1 = Integer.toString(i);         String temp = str1;         String reverse = "";         for (int l = temp.length()-1; l >= 0; l--)          {             reverse = reverse + temp.charAt(l);         }         System.out.println(reverse);         System.out.println(str1);         if ( str1 == reverse)             System.out.println("Palindrome");         else             System.out.println("Not Palindrome");     } }     Palindrome is a word, phrase, or sequence that reads the same backwards as forwards, e.g. madam or nurses run.


Is there a way to limit the bandwidth that Google Drive File Stream uses?  I'm using a Mac and when I resume syncing, the Internet becomes unusable. I have to stop syncing to browse simple web pages!


We are developing a software for a hosting company. This software is required to Lock/Unlock computers based on whether the admin is physically present or not.  We are using RFID. So as long as the software detects admin's RFID, the system remains unlocked. As soon as the Admin leaves the premises, the software automatically locks the computer. Untill the admin again enters the premises.  The main problem in getting this to work is, the application needs to run at all time and no one should be able to close the application.  Even if it shows up in task manager, the main purpose is the no one should be able to close the application.


Why is the right-hand side delimiters going much further down than the depth of the denominator?    \documentclass{article} \usepackage{amsmath} \begin{document}  \[   \left \lfloor \dfrac{n}{p^{i+1}} \right \rfloor =      \left \lfloor \dfrac{\left \lfloor \dfrac{n}{p^i} \right \rfloor}{p} \right \rfloor \]  \end{document}


How can i export in .3ds format in 2.8. I can't find option. I have search in addon also.


"Do you know where's Linda?" vs "Do you know where Linda is?"

Which of the following is a correct sentence:   Does anyone know where's Linda?  Does anyone know where Linda is?    Does anyone know why and how to use above usage if #2 is correct. Also please let me know this kind of specific structures.


Variance of a set of sample S from the means and variances of 2 partitions S1 and S2 (S=S1 U S2)

Suppose that 2 persons collect samples of a random variable X. Each of them come up with :  - the number of observations  - the mean  - the variance  How can we calculate the variance of all the observations ? Is there an exact calculus or an approximation.


How to get past a forgotten iPhone passcode?

I forgot my iPhone 5 passcode when I was changing the code. A window appeared on the device screen saying that iPhone is disabled.  I have Apple ID and password for it. After signing in to iCloud I have erased the device in order to remove the passcode from my iPhone but it still says that device will be erased when device will connect to internet. What would i have to do?


Present perfect vs present perfect progressive

We have been living in Saudi Arabia ..       We have lived in Saudi Arabia   ...   What is the difference between them, or they are the same in meaning ?  And what do you understand, when you hear these two sentences?


What is this agglomeration of pink cells I found attached to a stone?

Photo taken in a garden in Singapore. The organism is attached to a stone, close to water. Many of these were there.  Size approx 3cm.   The shell of this eggs is very soft. When touched, a pink colored liquid drops out.


Apache http libraries NoClassDefFoundError

I've been reading about this error and I can't see where I went wrong. I have the org.apache.httpcomponents.httpclient_4.5.2.jar added to the project libraries, the run libraries, and compile libraries.  This is my source code:      public void HttpFunction() {     try     {         String url = "http://www.google.com";         CloseableHttpClient client = HttpClients.createDefault();         HttpGet web_target = new HttpGet(url);         ResponseHandler<String> response_handler = new BasicResponseHandler();         String web_response = client.execute(web_target, response_handler);         System.out.println(web_response);         client.close();     }     catch (Exception no)     {         System.out.println("ERROR: " + no);     } }   I do have all of the required imports and they are recognized. This is the gargantuan list of errors it creates:  java.lang.NoClassDefFoundError: org/apache/http/HttpRequest at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:800) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2615) at java.lang.Class.getMethod0(Class.java:2856) at java.lang.Class.getMethod(Class.java:1668) at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486) Caused by: java.lang.ClassNotFoundException: org.apache.http.HttpRequest at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 18 more Exception in thread "main" C:\Users\JOE_LAPTOP\AppData\Local\NetBeans\Cache\8.1\executor-snippets\run.xml:53: Java returned: 1   BUILD FAILED (total time: 0 seconds)  I am completely lost here after days of research and trial and error. Please help.


How would I change file permissions if the file name has a space in it in linux

I would like to know how would I rename and change file permissions of a file that contains a space in the name on Linux.  Example  The name of my file is: my file   I have tried mv my%20file my_file  I have also tried chown -R 755 my%20file  but both of these don't work!


Lynx how to change blue background color

As you can see my lynx's bottom part is hard to read. How can I change the color? I use Solarized Dark on iTerm2.


Why must the probability be the integrated square modulus of the wave function

Quantum mechanics uses the wave function to calculate probabilities by taking the square modulus of the wave function as requirement by Max Born. Why should this (squaring of the wave function) be so, was there a logical argument for this?  I did a little research and found the four Born conditions. The sites told me exactly what they were but fell short of actually explaining the logic behind them. I can understand the modulus part but why square the wave function, is there an explanation?


Symbol for the product of a series of matrices

I was searching for a product symbol like the ordinary $\prod$ but for matrices, where you can specify if the matrix-multiplication should be performed from the right or left. Something like:  $^{R}\prod_{i=1}^{3}M_{i}=M_{1}\cdot M_{2}\cdot M_{3}$  $^{L}\prod_{i=1}^{3}M_{i}=M_{3}\cdot M_{2}\cdot M_{1}$  Does somebody know anything like this? Thanks in advance!  Sebastian


Just to illustrate that there are better and worse ways to apply brakes, here's an example of a less-than-ideal way: I was biking on a borrowed bike and getting used to the brakes. The front brake lever was squishier than the rear. After skidding out and landing my hip on a stump, which lowered morale significantly for the next half-hour or so, I learned to give the front brake a harder squeeze to compensate for the squish. This was on a mountain trail and at the urging of my biking companion on that day.  So my question is this: How does one brake under certain circumstances? Are there times when all-front or all-rear braking makes sense, or is it always best to apply pressure somewhat evenly to both brakes, and are there different braking techniques on roads vs trails and such?


Where does the verb go on this question? Is it even a reported question?

I understand that when I report a question, I put the subject back in front of the verb, as in:  "He asked if she was going to be late."  But I always get puzzled when it comes to reporting a question with a question. (In fact I'm not even sure this is reported speech, but I think it is, because I'm reporting my own doubts.)  My starting point is the question:     What is the task for the afternoon class?   But now I want to ask if anyone in a group knows what the task is. Which of the following alternatives would be grammatical?     (a) Does anyone know what is the task for the afternoon class?   (b) Does anyone know what the task is for the afternoon class?   (c) Does anyone know what the task for the afternoon class is?   Intuitively, I would pick (c), but I don't know if that is the correct choice, and I certainly don't know why.  Can anyone tell me which of the options is correct and why?


How do I get my Canon 60D to use short shutter speeds with flash in Av mode?

Last night I tried to get some club shots with my 60D (with the 16-35 2.8L lens) at ISO 1600.   I had about ¹⁄₁₅ — ¹⁄₂₀ seconds at f/2.8, all in Av mode.   When I raised the pop-up flash, I hoped that the camera would decrease the time to ¹⁄₆₀ or ¹⁄₂₅₀ to freeze some of the motion, but the timing remained as it there would be no flash. I had to switch to "M" to get the desired result. I know from my 550D that on that camera there is a setting that automatically switches the timing as soon as one raises the flash. To make a long story short, is there a camera fault or did I miss a setting?


do magnetic fields affects wifi signals?

I have note 4 and I  have putted magnetic cover on it, and now sometimes if signals are low then if I put cover off then I can use my wifi connection and if I keep cover on it then it stops working. Do magnetic field really affects wifi signals? hope I will get a satisfactory answer.


Email migration from Mac Mail to Outlook 2011 for Mac

I think this topic must have been posted earlier also.   I want to transfer my emails from mac mail to outlook 2011. When I go to import option in outlook 2011 and select the mac mail to import the mail boxes, all I get imported is blank folders every time.  The results were the same even after reinstalling office 2011.  Can anyone share their views on this topic and I would be very greatful if anyone could provide me solution of this question on how to migrate the emails from Mac Mail to Outlook 2011.


How do I disable the coloured lighting in the viewport in 2.8?

When shaded in Look Dev mode, there's a kind of coloured lighting so the darker faces are yellow and the lighter faces are blue. Is there a way of disabling this so the shading is more greyscale like in 2.79? The faces of this cube should be in black and white only but the colours look very different in the viewport. Thanks.


Term for song or poem where the end of one line is also the start of the next

has an interesting style of lyricism in its second verse:     Sticking it to my   Self-control; that's not the only thing I lack   A plan.   Just my own gun against my   Back down now and let this hostage   Go away.   I'm trying to figure something   Makes me feel   Like I'd do anything it takes to be   A f---ing winner now.   The end of each line also functions as the start of the next, yet isn't repeated.


Most efficient way to merge two byte arrays into one byte array?

I have two byte arrays. I want to merge these two byte arrays into one byte array.  Usually, I just create a new byte array with length = byte array #1 + byte array #2. Then copy byte array #1 and #2 to the new byte array.  Is there a more efficient way to merge two byte arrays using VB.NET and .NET 4?


Continuous functions such that $f(x)+f(x^2)=x$

Find all continuous $f :[0,1]\to \mathbb R$ such that $\forall x\in [0,1], f(x)+f(x^2)=x$   I suspect there are none.  I made little progress so far, but it's worth noticing that $f(0)=0$ and $\displaystyle f(x)+\lim_{n\to\infty}\left((-1)^n\sum_0^{n-1}(-1)^{k+1}x^{2^k}\right)=0$


get all nodes created in a specific month

I have a custom search form that I posts a year + month, such as 2014-04 I would like to get all nodes created that month, when I create the timestmap I use: "SELECT .......         AND changed >= 'strtotime($date)'"  This is the code for form date:  $form['aqar_date'] = array( '#type' => 'date_select',  '#title' => t('Date'), '#prefix' => '

Node date
', '#suffix' => '
',      '#date_format' => 'Y-m', '#default_value' => date('Y-m'), '#date_year_range' => '-4:+0',  );   This is the form submit:  $start_date = strtotime($date); $query = " SELECT `nid` FROM `node` WHERE  `type` = 'custom'  AND `changed` >= '$start_date'";   But I'm not getting, I need a way to specify to only this month period not this month and newer!  Thanks!


Since  hasn't been picked up, I propose a different use of the page title.  Whenever "something" is updated on a question, the title should reflect the number of changes or at least that changes exist.  My motivation behind it is that I'm interested in the question itself when I browse SE. I want to keep the tab open and see if there are updates to the question without opening the tab.  It should be easy to implement since the updates are already coming in.    Proposed updates that should be counted:   Edit to question New answer Edit to an answer (if there are no answers yet, number of new comments)


Why can I edit out the Possible Duplicate Banner from this question?

Normally, I don't see an edit in the revision history where the possible duplicate banner is added after someone  votes to close a question but take a look at , not only can I view the banner being added but I can also edit it out of the post.


Control the behavior of div with jQuery click of a variable that will exist only later

NEW to elegant and not sloppy Javascript (I want to produce nice code)  I'm having a problem with my script:  'use strict';     let $openSearch = $('#menu-item-16095 i');     let $searchform = $('.x-searchform-overlay');     let $closeform = $('.x-searchform-overlay.in');     $openSearch.click(function() {         $searchform.css('display', 'block');         $searchform.addClass('in');     });     $closeform.click(function() {         console.log('ciao');     });   As you can see, my code is to create a layout for a menu (full-page) when I click a button, and consequently to close it from the parent. I won't add the CSS or the HTML but long story short it works, except for a caveat:  If I add the class in I can create a jquery variable because, the moment the page loads and create the DOM that div hasn't been created yet, so when I try to click it to "close" (display-none) my div, it is not going to work.  I'm trying to find a workaround but so far I've not been lucky.  Any suggestion?


I have Xubuntu 12.04 with latest updates on Toshiba Satellite A210-15K laptop  semen@bloknot:~$ uname -a Linux bloknot 3.2.0-24-generic #37-Ubuntu SMP Wed Apr 25 08:43:22 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux   ...and I can't adjust LCD brightness (. I tried to use fnfx tool:  semen@bloknot:~$ fnfx-client FnFX Client v0.3 (c) 2003, 2004 Timo Hoenig <thoenig@nouse.net>  fatal error: Could not open "/home/semen/.fnfxrc". Please make sure that the default config is accessible.   ...and xbacklight:  semen@bloknot:~$ xbacklight No outputs have backlight property   ...and I tried to add acpi_osi=Linux and acpi_backlight=vendor parameters in GRUB config, but nothing happens.  I soppose .fnfxrc file must be available after installation or first fnfx demon lauch. Isn't it?  semen@bloknot:~$ cat /sys/class/backlight/toshiba/brightness -5 semen@bloknot:~$ cat /sys/class/backlight/toshiba/max_brightness 7 semen@bloknot:~$ echo 6 | sudo tee /sys/class/backlight/toshiba/brightness [sudo] password for semen:  6 ...   ...but brightness is the same.  Help, please.  P.S. Execuse me for my poor English.  UPD. I have spent 2 days to solve this boring problem, but I can't. So. If I wish linux work correctly, I have to choose another distro.


Is Hausdorffness necessary for the classical ascoli theorem?

Munkres - topology p.278  I exactly followed the argument in the text, and I cannot find where I used hausdorffness. Where in the argument used Hausdorffness?  The reason why I am asking is that the article in wikipedia requires the Hausdorffness:   Wikipedia - Let $X$ be a compact Hausdorff space. Then a subset $F$ of $C(X)$ is relatively compact in the topology induced by the uniform norm if and only if it is equicontinuous and pointwise bounded.


Streaky artefacts, subsurf, how to avoid?

How do I avoid strange streaky artifacts like these on the concave part of the object?  Tried to remove doubles and beveling with no effect


Angular momentum with respect to the centre of mass

I have been told [Warning: I leave this because it's what I asked and allows to understand the dialogues in the comments, but Azad, whom I thank, has pointed that the formula does not hold in general in the form it is expressed] that the angular momentum of and rigid body with respect to any point $P$ can always be expressed as $$\mathbf{L}_{P}=\mathbf{r}_{cm}\times M\mathbf{v}_{cm}+\big(\sum_im_iR_i^2\big)\boldsymbol{\omega}$$ where $\mathbf{r}_{cm}$ is the position of the centre of mass with respect to $P$, $M$ the mass of the body, $R_i$ the distance of the $i$-th point, having mass $m_i$, composing the body, and $\sum_im_iR_i^2=I$ its moment of inertia with respect to the instantaneous axis of the rotation around the centre of mass of angular velocity $\boldsymbol{\omega}$.  I know that the velocity $\mathbf{v}_i$ of each point $P_i$, having mass $m_i$, of a rigid body of mass $M$ can be see as the sum of a translation velocity of one of its points $C$ plus a rotation velocity around that point: $\mathbf{v}_i=\mathbf{v}_{C}+\boldsymbol{\omega}\times\overrightarrow{CP_i}$. If we chose $C$ as the centre of mass I see that $$\mathbf{L}_{cm}=\sum_i \overrightarrow{CP_i}\times m_i\mathbf{v}_{i}=\sum_i \overrightarrow{CP_i}\times m_i\mathbf{v}_{cm}+\sum_i \overrightarrow{CP_i}\times m_i(\boldsymbol{\omega}\times\overrightarrow{CP_i})$$$$=\sum_i \overrightarrow{CP_i}\times m_i(\boldsymbol{\omega}\times\overrightarrow{CP_i}) $$because, if I am not wrong, $\sum_i \overrightarrow{CP_i}\times m_i\mathbf{v}_C=(\sum_i m_i\overrightarrow{CP_i})\times\mathbf{v}_C=\mathbf{0}$ since $\sum_i m_i\overrightarrow{CP_i}$ is the position of the centre of mass with respect to itself, which is $\mathbf{0}$.  How can it be proved that $\sum_i \overrightarrow{CP_i}\times m_i(\boldsymbol{\omega}\times\overrightarrow{CP_i})=(\sum_im_iR_i^2)\boldsymbol{\omega}$? I have searched a lot on the Internet and on books, but I find nothing. To give some background of mine, I have studied nothing of analytical mechanics. I find the formula very, very interesting both in itself and because, if the moment of inertia does not depend upon time, $\forall t\quad I(t)= I(t_0)$, the above expression can be differentiated to get the formula of the resultant torque with respect to the centre of mass $\sum\boldsymbol{\tau}_{cm}=\frac{d\mathbf{L}_{cm}}{dt}=I\boldsymbol{\alpha}_{cm}$ where $\boldsymbol{\alpha}$ is the angular acceleration around the centre of mass. I heartily thank you for any answer!    Some unfruitful trials: by using the "BAC CAB identity" as suggested by Azad, whom I heartily thank, $\mathbf{a}\times(\mathbf{b}\times\mathbf{c})=(\mathbf{a}\cdot\mathbf{c})\mathbf{b}-(\mathbf{a}\cdot\mathbf{b})\mathbf{c}$, I can see that$$\sum_i \overrightarrow{CP_i}\times m_i(\boldsymbol{\omega}\times\overrightarrow{CP_i})=\sum_im_i\|\overrightarrow{CP_i}\|^2\boldsymbol{\omega}-m_i(\overrightarrow{CP_i}\cdot\boldsymbol{\omega})\overrightarrow{CP_i}$$which, by decomposing every $\overrightarrow{CP_i}$ into an axial component $\mathbf{A}_i$ and a radial component $\mathbf{R}_i$, whose norms respectively are $A_i$ and $R_i$, with $R_i$ as the distance from $i$ to the axis of rotation, becomes $$\sum_im_iR_i^2\boldsymbol{\omega}+\sum_i m_i A_i^2\boldsymbol{\omega}-m_i(\mathbf{A}_i\cdot\boldsymbol{\omega})\overrightarrow{CP_i}$$but I cannot prove that $\sum_i m_i A_i^2\boldsymbol{\omega}-m_i(\mathbf{A}_i\cdot\boldsymbol{\omega})\overrightarrow{CP_i}=\mathbf{0}$.


How do I stop video tearing? (Nvidia prop driver, non-compositing window manager)

I have that problem which seemingly afflicts many using the proprietary Nvidia driver:     Video tearing: fine horizontal lines (usually near the top of my display) when there is a lot of panning or action in the video.   (Note: switching back to the default nouveau driver is not an option, as its seemingly nonexistent power-management drains my battery several times faster)  I've tried Totem, Parole, and VLC, and tearing occurs with all of them.  The best result has been to use X11 output in VLC, but there is still tearing with relatively moderate action.  Hardware:  MacBook Air 3,2 -- which has an Nvidia GeForce 320M.    There are two common fixes for tearing with Nvidia prop drivers:   Turn off compositing, since Nvidia proprietary drivers don't usually play nice with compositing window managers on Linux (Compiz is an exception I'm aware of).  But I use an extremely lightweight window manager (Awesome window manager) which is not even capable of compositing (or any cool effects).  I also have this problem in Xfce, where I have compositing disabled. Enabling sync to VBlank.  To enable this, I set the option in nvidia-settings and then autostart it as nvidia-settings -l with my other autostart programs.  This seems to work, because when I run glxgears, I get:  $ glxgears  Running synchronized to the vertical refresh.  The framerate should be approximately the same as the monitor refresh rate. 303 frames in 5.0 seconds = 60.500 FPS 300 frames in 5.0 seconds = 59.992 FPS   And when I check the refresh rate using nvidia-settings:  $ nvidia-settings -q RefreshRate Attribute 'RefreshRate' (wampum:0.0; display device: DFP-2): 60.00 Hz.   All this suggests sync to VBlank is enabled.  As I understand it, this is precisely designed to stop tearing, and a lot of people's problem is even getting something like glxgears to output the correct info.   I don't understand why it's not working for me.   xorg.conf:   Example of observed tearing::


I was planning to do some timelapses in the near future, until I realised that if I leave my camera taking pictures for a week or 2, I will soon reach the max number of shutter count and my camera would break.   Then I read from an unverified source that during timelapse the shutter doesn't move, so there is no way to break it. I am confused.   Is it possible to take timelapses without physically destroying the shutter in a month? In particular, I am interested in Canon 80D model.


Different header space after tittlepage using fancyhdr

after \end{titlepage} I put \chapter*{LEMBAR PENGESAHAN} but the result is different from the next chapter's header space.  wrong space   correct space   \documentclass[12pt,a4paper]{report} \usepackage[   left=3cm,   top=3cm,   right=2cm,   bottom=2cm,   includehead,   includefoot,   bindingoffset=5mm ]{geometry} \usepackage[utf8]{inputenc} \usepackage[english,bahasai]{babel} % <---- main language last  \usepackage{lipsum}  \usepackage{titlesec}  \titleformat{\section}   {\normalfont\fontsize{16}{16}\bfseries}   {\thesection}   {1em}   {}  \usepackage{graphicx} %\usepackage[colorinlistoftodos]{todonotes} %\usepackage{showframe}  \usepackage[linktocpage]{hyperref} \hypersetup{     colorlinks,     citecolor=black,     filecolor=black,     linkcolor=black,     urlcolor=black }  \makeatletter \def\@makechapterhead#1{%   %%%%\vspace*{50\p@}% %%% removed!   {\parindent \z@ \centering \normalfont     \ifnum \c@secnumdepth >\m@ne         \Large\bfseries \MakeUppercase{\@chapapp}\space \thechapter % <--- uppercase         \par\nobreak         \vskip 0\p@     \fi     \interlinepenalty\@M     \LARGE \bfseries #1\par\nobreak     \vskip 30\p@   }} \def\@makeschapterhead#1{%   %%%%%\vspace*{50\p@}% %%% removed!   {\parindent \z@ \centering     \normalfont     \interlinepenalty\@M     \LARGE \bfseries  #1\par\nobreak     \vskip 30\p@   }} \makeatother   \usepackage{fancyhdr}  \pagestyle{fancy} \rhead{\includegraphics[height=1cm]{LOGO_P.png}} \lhead{\includegraphics[height=1cm]{LOGO_I.png}}  \begin{document}  \begin{titlepage}     \begin{center}         \includegraphics[width=5cm]{LOGO_I.PNG}\\[0.25cm]         \textbf{xxx xxx}\\[1.75cm]         \textbf{xxx xxx \\[4cm]}         \textbf{xxx xxx}\\[4cm]          \textbf{Diajukan Oleh:}\\         \textbf{xxx xxx}\\         \textbf{xxx xxx}\\[4cm]         \textbf{xxx xxx}\\         \textbf{xxx xxx}\\         \textbf{xxx xxx}     \end{center}  \end{titlepage}  \pagenumbering{roman}  \chapter*{LEMBAR PENGESAHAN} \thispagestyle{fancy} I declare that..  \chapter*{ABSTRAK} \thispagestyle{fancy} I want to thank...  \chapter*{KATA PENGANTAR} \thispagestyle{fancy} I want to thank...   \tableofcontents \thispagestyle{fancy} \pagenumbering{arabic} \pagebreak \chapter{PENDAHULUAN} \thispagestyle{fancy} \lipsum[1-15] \section{LATAR BELAKANG} \subsection{Latar Belakang} \lipsum[16-30] \chapter{Landasan Teori} \thispagestyle{fancy} \lipsum[31-45] \begin{figure}[h]     \centering     \includegraphics[width=0.25\textwidth]{LOGO_I.png}     \caption{a nice plot}     \label{fig:mesh1} \end{figure}  As you can see in the figure \ref{fig:mesh1}, the  function grows near 0. Also, in the page \pageref{fig:mesh1}  is the same example. \end{document}


Find the value of $\sqrt{1+2\sqrt{1+3\sqrt{1+....}}}$

Find the value of  $$\sqrt{1+2\sqrt{1+3\sqrt{1+....}}}$$       I have done a similar question before in which only a single number is involved, for example    $\sqrt{2+2\sqrt{2+2\sqrt{2+....}}}$ which can easily be solved due to repetition of the expression. For this question, when I set the whole thing equal to $f(x)$, I got this   $$[f(x)]^2=xf(x+1)+1$$   After that, I'm not able to solve this functional equation further. Is there any particular method for solving these types of functional equations?   Any help will be appreciated.   Thanks!


Prove that the complement of an open ball in $\mathbb{R^n}$ has exactly one unbounded component

Question: Let $B^n \subset \mathbb{R^n}$ be open ball in the Euclidean metric. Prove that the complement of $B^n$ in $\mathbb{R^n}$ has exactly one unbounded component (components of a set are class partitions defining largest connected sets...).   This is an exercise of the book 'C. Adam - Topology'. Obviously, it does not hold for $n=1$, since $\mathbb{R}-(-a,a)$ is disconnected and is made of TWO unbounded components. But for the case of $n=2,3$ it is easy to prove that the conjecture holds (each 'side' of the open balls is homeomorphic to $\mathbb{R^n}$ and has non-empty intersection with its neighbour-side...)  How to elevate the conjecture for the case of $n\ge 4$, since it is not possible by intuition?    Thank you.  EDIT - This is not dublicate, since my question is about complement of an open ball not a bounded set in general. I read  before I wrote my question; the answer doesn't prove $\mathbb{R^n}−B^n$ is connected, which I need to prove.


Here is the problem: One hundred people line up to board an airplane. Each has a boarding pass with assigned seat. However, the first person to board has lost his boarding pass and takes a random seat. After that, each person takes the assigned seat if it is unoccupied, and one of unoccupied seats at random otherwise. What is the probability that the last person to board gets to sit in his assigned seat?  I came up with a solution but I could not find it anywhere on the internet, so I would appreciate if someone could check the legitimacy of my work:  Let's say $p(x_{n})$ is the probability that the $n^{th}$ person to board the plane takes the seat of the last person to board the plane.   Obviously the first person to board has a 1 in 100 chance of randomly picking the last person's seat, so $p(x_{1})$ = $\frac{1}{100}$.  The second person to board the plane will sit in their assigned seat unless the first person takes their seat. There is a 1 in 100 chance that the second person's seat got taken. Assuming that the second person's seat got taken, there is a 1 in 99 chance that the second person takes the last person's seat, so $p(x_{2})$ = $\frac{p(x_{1})}{99}$.  Following this logical progression, $p(x_{3})$ = $\frac{p(x_{1})+p(x_{2})}{98}$, $p(x_{3})$ = $\frac{p(x_{1})+p(x_{2})+p(x_{3})}{97}$, etc.  We can define a new variable $p({y_n})$ = $\sum_{i = 1}^{n}p({x_n})$.  It doesn't take too much work to find that $p({y_n})$ = $p({y_{n-1}})(1+\frac{1}{101-n})$  Solving this recurrence relation, we get $p({y_n})$ = $\frac{1}{101-n}$  Plugging in $n=99$, we see that the probability that one of the first 99 takes the last person's seat $p({y_{99}})$ = $\frac{1}{2}$. Therefore the probability that the last person to board sits in their assigned seat is $\frac{1}{2}$.  I am aware that this is the correct solution. However, I'm not sure that my work is logically sound. Any validation (or rejection) of my work would be appreciated.


python different lambda functions returns the same results

I'm currently trying to write a GUI for Tic Tac Toe in Python. For that purpose I am using tkinter. I want to create a button for every position to be able to make my moves by clicking one of these buttons. The problem now is that I want a function with different parameters to be called depending on the button I clicked. Therefore I tried to use lambda expressions, but no matter which button I click, it results in the same call.  import tkinter as tk  class GameWindow:      def __init__(self):         win = tk.Tk()          buttons = [[tk.Button(win,text=str(i)+str(j)) for j in range(3)] for i in range(3)]         for i in range(3):             for j in range(3):                 buttons[i][j]["command"] = lambda: print([i,j])                 buttons[i][j].grid(row=i, column=j)                 print([i,j])         win.mainloop()  test = GameWindow()   In this case, I just want the position to be printed, but no matter which button I click, [2,2] is being printed.


Calculating half derivative of $x$ using Cauchy's repeated integral formula

As far as I know, Cauchy's repeated integral formula is defined as: $$(I^nf)(t)=\frac{1}{\Gamma(n)}\int_a^x (x-t)^{n-1}\space f(t)\space\space dt,\space\space n\notin Z_{\le 0}$$  I know that Gamma function is not defined for negative integers and $0$. I also know that differentiation and integration are inverse operators so I thought of finding $\frac{-1}{2}$th antiderivative of $f(x)=x$ so that I can find the half derivative of $x$. However it seems that it does not work. What is the problem with this? Am I missing something or is it not possible? I know some other ways of finding half derivative of $x$, so what I am asking is the problem about what I tried.  My attempt: $$\frac{1}{\Gamma\left(-\frac{1}{2}\right)} \int^x_0(x-t)^{-\frac{3}{2}}\space t\space dt=\frac{x}{2\sqrt{\pi}}\int^0_x u^{-\frac{3}{2}}\space (x-u)\space du$$  This definite integral is divergent and so I cannot get to a result.


Are there official rules for crafting magic items?

Is crafting magical items official in D&D 5e? I googled it, but 90% of everything I found is homebrew. If crafting is official, how do you do it, and what can you make? Is there some sort of list or something?


Drush shell update to newer version on Drupal 7

I haven't found explanation of how to upgrade this shell to 8.x for drush itself not a module using drush and the site is on Drupal 7.x site.  I'm fairly new to all of this and do know how to use drush but was wondering if I should keep this shell updated. I saw there are versions 8.xx that work for Drupal 7 but didn't see instructions on updating.  The version running is 8.0.x.dev so I'm guessing I should update to current 8. Version.  Thanks in advance.


How can I create a pack file / archive for game data files, and then load them? (zlib?)

I'm starting to think about how I'm going to go about loading models, images, sounds, etc for my game. I have two competing lines of thought to deal with:   If possible, it would be nice to make use of existing libraries to load things like PNGs, etc. I would like to pack all of my game data into a single archive, and it would be great to use an existing library here also.   Is it possible to do this? I've heard that I could use something like zlib for (2), but I've never used it before so I'm not sure how it would work. Is it possible to yank a file out of a zlib archive in memory, and then pass it to some compatible library for the actual loading? How would these two systems interface with each other? Would using zlib slow down the loading process?  I've not had much experience with I/O in my career, so I'm not really sure where to start.


How to create a good glass reflection with Principled BSDF

So I'm part way through a fun small project, and I would like some advice about how to improve the glass material at the far end of the scene on the two doors.  In the ref photo the reflection is sharp, but you can also see inside the fridge or whatever it is.  I'm aware there's still a lot of things left to do in this scene, improve lighting, finish up materials but I'd like to address this glass shader.  PS - Any other tips appreciated, I'm a fairly novice user! I do 3D in spare time because I just love it.


Improve load speed of web page with many images

I own an ecommerce website built with Magento that has many images in the homepage for promotional banners. What is the best way to improve load speed? Reducing the file size sacrifice quality, so is there any other way?  Here are some information:


How can I tell if a photo is real or faked?

How can I tell if a photo has been edited or manipulated? Are there techniques for distinguishing real photos from fakes?  Are there software tools that can help? Are there things I can do in Photoshop or other imaging software which will help reveal the truth?


I'm trying to add some function to each loop called in the themes. What I'm doing is I add a function to count post view from here , to use the function I need to add this line <?php setPostViews(get_the_ID()); ?> to single.php, page.php, etc.  I want to know whether I can use some hook to automatically add the <?php setPostViews(get_the_ID()); ?> line without hard code it for each single.php, page.php files.


Does Exchange support SMTPS receive connectors?

I'm aware that Exchange supports opportunistic TLS (STARTTLS). But can I create a SMTPS receive connector (plain SSL)?


Get all elements in a Python list starting from an index

Say I have a list arr and an index i within [0:len(arr)], how do I get all the elements starting from arr[i] up to arr[-1] in a Pythonic way? For example:  arr = 'abcdef'  i = 3   I basically want to get b = 'def' I tried  b = a[i:-1]   but obviously that'll leave out the last element.  Also, my list sometimes has only 1 element, so i = 0. How do I safely treat that edge case? Thank you!


Events doesn't work after updating them with AJAX

So let's assume that I have this simple code:  HTML:
Hello!
 <input type="submit" id="update_map" value="Update!" />   JQUERY:  $("#id").mouseover(function () {     alert("TRUE"); });   So far everything works perfect, but when I'm updating the test div with that code:  $("#update_map").click(function () {     $.post( "update_ajax.php", function( data ) {         $( "#test" ).html( data );         alert("Done!");     }); });   But now, when I clicked on "Update!", and I'll move my mouse over the "test" div, it won't work.  How can I solve that problem?


Find the Particular Integral of the following ODE using the variation of parameters?

The ODE is $$xy''-(1+x)y'+y=x^2$$ and the Complementary Function (homogenous solution) is $$y_{\small CF} =A y_1+By_2$$ where, $y_1=e^x$ and $y_2=x+1$. However, while computing the particular integral by $$y_{\small p}=-y_1\int{\frac{y_2f(x)}{W(y_1,y_2)}}+y_2\int{\frac{y_1f(x)}{W(y_1,y_2)}}$$ (where $f(x)=x^2$) the particular integral comes out to be $$y_{\small p} = -\frac{1}{2}(x^3+3x^2+6x+6)$$ and $$xy{\small p}''-(1+x)y{\small p}'+y{\small p}$$ comes out to be equal to $x^3$ instead of $x^2$. Any help in this matter would be much appreciated.


Python/MySQL: Table isn't getting updated

I am working on a school project that pulls data from an excel sheet and puts the data in a database. After I run the code below and run the SQL command SELECT * FROM items, it returns "Empty set". What am I doing wrong? Thanks for the help in advance!   import openpyxl import MySQLdb as mdb  db = mdb.connect('localhost', 'root', 'TRM4611', 'practice') cur =  db.cursor()  wb_choice = input('What workbook would you like to use?\n--> ')  wb = openpyxl.load_workbook(wb_choice + '.xlsx')  all_sheets = wb.get_sheet_names()  with db:     for sheet in all_sheets:         current_sheet = wb.get_sheet_by_name(sheet)         print ('\nCurrent Sheet: ' + current_sheet.title)         for i in range(current_sheet.max_column):             for cellObj in current_sheet.columns[i]:                 if i == 0:                     cur.execute("INSERT INTO items(Date) VALUES(%s)", (cellObj.value,))                 if i == 1:                     cur.execute("INSERT INTO items(Fruit) VALUES(%s)", (cellObj.value,))                 if i == 2:                     cur.execute("INSERT INTO items(Quantity) VALUES(%s)", (cellObj.value,))                  print (cellObj.coordinate, cellObj.value)             print ('--- END OF ROW ---')


Why is Ubuntu 10.10 refusing to upgrade?

I had to reformat my drive because my computer does not support 12.04 or higher. Now when I go to the update manager it is not recognising a Internet connection. I have an Internet connection and it works fine this is confusing. My computer is a satellite A10 Toshiba laptop with a 75g drive and a 32 bit processor. All I want is for this computer is for it to upgrade to 11.10 so I can run it on my tv via vga adapter. 10.10 does not support this feature without going batty on me. Any answers would be greatly appreciated.


Does the phrase "per se" have to be italicized?

As far as I understand, the phrase "per se" comes from Latin. Yet, it has become to accepted in English and is used so commonly, that I was wondering if the phrase is still considered of foreign origin and requires italicization or it is already considered everyday English and should not be in italics.


$\forall x \in S, \big( \phi(x) \rightarrow \phi'(x) \big)$ versus $\forall x , \big( \phi(x) \rightarrow \phi'(x) \big)$

Consider the two first order symbolic statements:  $$\forall x \in S, \big( \phi(x) \rightarrow \phi'(x) \big)$$  and   $$\forall x , \big( \phi(x) \rightarrow \phi'(x) \big)$$  I interpret the first statement as saying, "For all objects in set $S$, one of three scenarios must be true for an arbitrary $x^* \in S$:   if a specific $x^* \in S$ satisfies the $\phi$ property, then $x^*$ satisfies the $\phi'$ property. if a specific $x^* \in S$ does not satisfy the $\phi$ property, then $x^*$ satisfies the $\phi'$ property. if a specific $x^* \in S$ does not satisfy the $\phi$ property, then $x^*$ does not satisfy the $\phi'$ property.   I believe this is correct.    Now, more and more I am beginning to see symbolic statements of the second form, where there is no set that the $\forall x$ specifically refers to. How should I interpret this? I am becoming more acquainted with set theory (Zermelo–Fraenkel set theory, specifically) and so am reluctant to say that this particular $\forall x$ is referencing the universe.   At the moment, the only remedy I have implemented to address this confusion is by noticing that the set for which the $\forall x$ references is often times embedded within one of the $\phi$ statements. So, what I really do is "remove" that embedded property from $\phi$ and take it out to where the $\forall x$ symbol is located. In doing this, I feel like I am effectively changing the $\phi$ statement to some new statement $\psi$ (where...in a very brutally informal way "$\psi=\phi - \text{set for which x references}"$...i.e. $\psi$ retains all property descriptions of $\phi$ besides the set for which $x$ references.   Is this the correct approach...or do universal quantifiers not necessarily need to reference a specific set? If so, how exactly should I interpret the second statement? Any clarity would be greatly appreciated! Cheers~


I'm trying to do a sudo apt-get upgrade, but there are some packages that are no longer required. Should I remove them?

I'm trying to upgrade my packages and there were some packages that were automatically installed and are no longer required. What should I do? I'm asked to use 'apt-get autoremove' to remove them, but are they important? Will removing them break something on my system?  The following packages were automatically installed and are no longer required:     linux-headers-3.13.0-24 linux-headers-3.13.0-24-generic     linux-image-3.13.0-24-generic linux-image-extra-3.13.0-24-generic Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


Proof verification: Let $a,b\in \mathbb{Z}_{0}$. If there exists integers $r$ and $s$ such that $ar+bs=1$, show that $gcd(a,b)=1$.

Can someone please verify whether my proof is logically correct? :)     Let $a,b\in \mathbb{Z}_{0}$. If there exists integers $r$ and $s$ such that $ar+bs=1$, show that $gcd(a,b)=1$.    Proof:  Assume that $a$ and $b$ are not relatively prime. Then there exists an integer $k>1$ such that $k|a$ and $k|b$. Then $k|ar+bs$. Then $k|1$, which forms a contradiction ($k>1$ so $k$ does not divide $1$) by assuming $a$ and $b$ are not relatively prime. $\square$


Segment violation when modifying a string

I have a small problem with a program that when running, sends me a segmentation violation apparently occurs in the function "ejer6" when trying to access the position [0] of char * mensaje to assign 9 my code :  #include <pthread.h> #include <stdlib.h> #include <stdio.h>  struct structure {      char * message;     int integer; };  void * ejer6(void * arg) {      printf("Enters within");      struct structure * turas;     turas=((struct structure *)arg;      turas->integer=turas->integer+1;     turas->message[0]='9';      printf("%d\n", turas->integer);     printf("%s\n", turas->message);       pthread_exit(NULL); }  int main(int argc, char ** argv) {     if(argc!=2) {         printf("Enter the appropriate number of parameters\n");     }     else {          pthread_t h[argc];         struct structure turas[argc];         int i;          for(i=0; i<argc; i++) {             turas[i].integer=13;             turas[i].message="hello world";         }          for(i=0; i<argc; i++) {              printf("\nThis is the value of the structure before the strand: \n");             printf("Integer: %d \n", turas[i].integer);             printf("Message: %s \n", turas[i].message);               pthread_create(&h[i], NULL, ejer6, (void *)&turas[i]);             pthread_join(h[i], NULL);              printf("\nThis is the value of the structure after the strand: \n");             printf("Integer: %d \n", turas[i].integer);             printf("Message: %s \n", turas[i].message);          }     }      return 0; }


I'm looking for the title of a book that dates back to the 70s about a disease that turns people to stone

I  read a book as a teen, and I can't remember the name.  It was about a disease of some kind that turned people into stone. Regular doctors couldn't find a cure, but there was a secret path (hidden in road signs) that led to a group of people who'd figured out a way to make victims into fully functioning, indestructible people. As best I can recall, it was called something like "The Hidden Highway" Any help is appreciated.


How do I customize the flag/unflag links?

I'm fairly new to Drupal theming, and I am trying to customize the HTML output the Flag module for Drupal 8 produces for flag/unflag links; more specifically, I would like to make the links appear as buttons using Bootstrap classes. Does anyone know a good way to do this? I'm placing the flag link on the user profile page to enable users to follow other users. Here are some approaches which I have tried, so far without success:   Using the Twig replace filter to modify the output. This does not work, apparently because a "lazy builder" is used, delaying the production of the actual HTML output until a later stage after Twig's rendering is already complete. Overriding the flag.tpl.php template with a customized version. This has no effect; maybe this functionality is no longer active in Drupal 8 (which did away with PHP templates in general)? Using flag_create_link in a theme preprocess function. I got an error that this function does not exist; maybe it no longer exists in the Drupal 8 version of the module? (or else maybe I'm missing a necessary import).


Should I let potential employers know I have a job offer?

I've interviewed for a few positions, one of which has made me an offer.  I'm very pleased with the offer, but I prefer some of the other positions.  I have the luxury of being able to take a lot of time to decide whether or not I accept this offer, so I'm certain I will hear back (either positively or negatively) from the other positions before a decision is required for the offer I've received.  I'm trying to decide between two courses of action, and I want to choose the one that will best help my candidacy with the positions I've yet to hear from.  Plan 1 is to do nothing and simply wait to hear back from the other positions for which I've already interviewed.  Plan 2 is to be in touch with the other positions to let them know I have an offer, and ask where I stand with them.  Would Plan 2 make me a more desirable candidate with the other positions, as they might see my offer as further validation of my credentials?  Or, might initiating with the interviewers in this way be detrimental to my candidacy, perhaps making me seem pushy or self-centered?  If so, I would rather just wait for them to run their course of action (Plan 1).  As I've said, I have plenty of time, so I don't want impatience to hurt me.  If there is a good chance that my meddling will be detrimental, then I'd rather be hands-off here.  However, if it's more likely that informing the other interviewers of my offer will give me a boost, then I'd want to do so.  Thanks for any clarity you can provide!  Edit: For a bit more information and context, the position I've been offered is a non-academic research position that my advisor has described as "prestigious."  The other positions for which I've interviewed (and which I prefer) are mostly academic teaching-centered positions (visiting assistant professors, tenure-track at smaller four year institutions).


How to get the extension of a file in Jquery?

I want to alert that "Please enter file .docx and .pdf" so I need the extension of the file...   $(".upload").click(function () {   var filename = $("#file").val();  var extension = " ";  })


Return the user input backwards e.g. Laura would be returned as aruaL

In this program I am trying to return the user input backwards  e.g. Laura would be returned as aruaL, but I am getting [C@11d72ca as my output..       String input = JOptionPane.showInputDialog("Enter name");     Scanner scanner = new Scanner(input);     String name = scanner.next();     scanner.close();      char[] backwards = new char[name.length()];     for(int i = 0; i<name.length(); i++)     {         backwards[i] = name.charAt(name.length()-1-i);     }      JOptionPane.showMessageDialog(null, backwards.toString()); }


in my mariadb i have replication, i tried to change the location of the binlogs by changing the configuration file as so: log-bin = /new/path/mysql-bin I also tried to change the index location as so: log_bin_index = /new/path/mysql-bin.index but every time when I restart I see that the location of the binlog files is /var/lib/mysql... i tried to check with mysqld --verbos --help | grep bin and I saw that the lob-bin parameter is mysql-bin and not what I wrote in the cnf... how to I make the MySQL to take the value of the log-bin from the cnf file? this is the cnf file of the MySQL for sure...


axiom of replacement implies axiom of specification

I am supposed to show that the axiom of replacement implies the axiom of seperation and I am not sure if my solution is correct.   I am trying to show that given any set A and Property P(x) there is a subset of A which contains exactly the Elements for which P(x) is correct.(set 1)  I choose the Property P(x,y)=P(x) and y=x. By the replacement axiom (y:P(x,y) is true for some x in A) (set 2) is a set.  I now have to show that set 1 = set 2. If x is an Element of set 1 than the Element y=x must be an Element of set 2 because for x in A we have y=x and P(x). If y is an Element of set 2 than by the definition of set 2 y=x and P(x) and x is in A so y is also an Element of set 1.  I am very new to proving stuff so I am grateful for any feedback.  Regards James


Probability of observing value EQUAL to +2 SD in a standard normal dist with parameters N(0,1)

I understand how to calculate the probability that a value falls above or below a certain Z score. How about calculating the probability that a value is equal to a particular Z?   In my homework I see that probability that P(X=m) (the mean) is 0 since 50 percent of the data lies above and below the point. Can I use the same logic to say that the probability of observing any single point is 0? If so, this would seem to present a logical contradiction.


Nullpointer exception with Buffered readline

i´ve been trying to read the lines of this file to save them into an array afterwards, but when I try to print the lines to try it out it has a nullpointer on the line of  :   while( (line = br.readLine()) !=null  import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException;  public class Main1 {      public static void main(String[] args) {         // TODO Auto-generated method stub         String line;         BufferedReader br = null ;         try {             new BufferedReader(new FileReader("/Users/Daniq/Desktop/eda/pruebaEda.txt"));             System.out.println("Done");              try {                 while( (line = br.readLine()) != null){                     System.out.println(line);                 }             } catch (IOException e) {                 // TODO Auto-generated catch block                 System.out.println("error ");             }          } catch(FileNotFoundException fnfex){             System.out.println("File not found");         }      }  }


Can I mount wall 75 inches (50kg) tv on plasterboard?

I am going to mount a TV to a wall in my living wall. The only problem I have is the TV weighs about 50kg and I am little bit afraid of hanging this amount of weight on pure plasterboard.  Is it safe to do so?   TV i am trying to put on the wall:       The wall mount that I am planning to buy:      I am aware of where the studs are.


How do i print elements in ArrayList in java

Below is my code:   public class Test2 {     public static void main(String args[]){      String[][] a = {         {"type"},         {"emergency"},         {"manual"},         {"brand"},         {"accessGroup"},         {"memberRef"}                  };      String[][] b = {             {"ab"},             {"cd"},             {"ef"},             {"gh"},             {"ij"},             {"kl"}                      };      ArrayList<String[][]> al = new ArrayList<String[][]>();     al.add(a);     al.add(b);     Iterator<String[][]> itr = al.iterator();     while(itr.hasNext()){     System.out.println(itr.next()); //prints: [[Ljava.lang.String;@2a139a55     }     }  }   The problem here is that the 2D array is inside an ArrayList, and I am not sure on how to use 2 for loops to scan through each elements and print it. Could anyone help? Thanks in advance.


Why Am I in 6th in my clan? how do I get higher?

I have So many more things than another player called Sam L-H in clash of clans, but in war he is in 5 Place and I am in 6. My question is how are we placed in clash of clans wars, Why am I in 6 And Sam is in 5.


Referring to a set of subfigures not working

trying to refer to a whole figure results in ?? but referring to each individual subfigure works fine. How can I fix this? I wish to refer to fig. 1 in the example below.   MWE:  \documentclass[12pt, a4paper]{article} \usepackage{pgfplots} \usepackage{psfrag} \usepackage{subfig} \pgfplotsset{compat=1.5} \usepackage{cleveref} \begin{document}  \begin{figure}[hb]     \centering     \begin{tabular}{ccc}         \multicolumn{3}{c}{\begin{tikzpicture}             \begin{axis}[             at={(-3,-0.5)},             hide axis,             scale only axis,             height=0pt,             width=15cm,             colormap/jet,             colorbar horizontal,             colorbar style={ylabel=dB},             point meta min=-20,             point meta max=0,             ]             \end{axis}             \end{tikzpicture}}\\         \subfloat[][]{\label{fig:sub-a}\includegraphics[width=5cm]{example-image-a}}         &         \subfloat[][]{\label{fig:sub-b}\includegraphics[width=5cm]{example-image-b}}         &         \subfloat[][]{\label{fig:sub-c}\includegraphics[width=5cm]{example-image-c}}\\     \end{tabular}     \label{fig:subs}     \caption{} \end{figure} \Cref{fig:subs} isn't working but \cref{fig:sub-a,fig:sub-b,fig:sub-c} is. \end{document}


algpseudocode lets me write code such as:  \documentclass{article} \usepackage{algpseudocode} \begin{document}  \begin{algorithmic} \While{$n>3$}    \If{$m>n$}       \State ...       \State ...    \EndIf    \If{$m>2$}       \State ...    \EndIf \EndWhile \end{algorithmic}  \end{document}   Yielding results similar to  while n>3    if m>n        ...        ...    end if    if m>2        ...    end if end while   I'd like all of that "end if", "end while", "end procedure" text to disappear and everything to compress upwards such that the result is:  while n>3    if m>n        ...        ...    if m>2        ...   That is, I'd like a Pythonic-style where indentations indicate blocks.  Can algpseudocode do this? Or is there another package with similar functionality?


SharePoint 2013: Force the Newform.aspx form to show Content Type choices

Is there a way to be able to have users select Content Type when on Newform.aspx? It currently works when on EditForm.aspx


How many ways are there to parenthesise an expression?

Context  I am writing a computer program to do a brute-force search for a solution to a  which wanted to arrange four numbers with the four standard arithmetic operators and arrive at a given answer. While I have a solution to the original puzzle, I still want to write a general-case solving program for n numbers. I have broken down the problem into:   Arrangements of the numbers (n!) Arrangements of operators (4n-1) Arrangements of associativity. Or bracketing, if you will.   It is this last one where I cannot find the general-case answer to "how many will there be?" but if I am to write a program to solve it then I need my test cases to prove that my implementation is correct.  Progress  I have a notation for these, which operates by breaking the formula under consideration into Reverse Polish notation, and expressing it as 1 for a "Push number" operation, or 0 for "Pop two numbers, apply operator, push result" operation. It is clear that the four operators are binary operators, so the first two operations must necessarily be "Push" operations. Similarly, the last one must be a calculation.  Further, when counting N1 - the numbers of pushes - and N0 - the numbers of calculations - from the start up to any given point, N1 must always be greater than N0   By inspection, I have determined the following results:   n | C(n) |  ---+------+-  2 |   1  | 110  3 |   2  | 11010 11100  4 |   5  | 1101010 1101100 1110010 1110100 1111000  5 |  14  |    I think C6 is 42 but am not yet sure about that.  Question  What is the general-case value for Cn?


I'm looking for a fan fiction story where Harry Potter is wrongly sent to Azkaban for a crime he didn't do.  No one believes him except Fred and George, who at one point even tried to break into Azkaban themselves to free him. New evidence comes to light and Dumbledore tells everyone Harry is innocent. They bring Harry back to Grimmauld Place and he's basically catatonic, but eventually wakes up. When he is back to being sane, Dumbledore immediately wants Harry to help stop Voldemort since he's the Boy-who-Lived, except Harry wants no part in this. Sirius is alive too.  Fred and George take Harry to their shop in Diagon Alley where they live and help him out.  The main part of this story is that Fred and George help Harry. They believed in his innocence all this time and now that they were right they aren't very happy with Dumbledore and the Order.  After the twins help him get out of Grimmauld Place, Harry runs into the Prewett twins and then we discover that they had survived the first war with memory loss and one of them is married with children and Harry becomes pen pals with the daughter while she is attending Hogwarts and one of the sons really dislikes Harry and the other one wants to be brave and fight like him. I remember him saying at one point that he wasn't sure if Harry possessed 'bravery or stupidity'.   There's this whole scene where Death Eaters attack Kings Cross Station and harry leads them away. When the Prewett brothers catch up to them, one of them scolds Harry for doing something so stupid and Harry walks away and ends up at a bus stop (i think?), having zoned out again (he's been doing it since his release from Azkaban). When the Prewett twins tell the Weasley twins what happened, George yells at them for making Harry run off.   I remember a lot from this story, but i cant't seem to find it anywhere. Please help?


I created a table and inserted values into it but they are not storing in orderly manner. The table looks like:   I can order them by using ORDER BY but it does not change them permanently. Is there a way to save them in orderly manner permanently.  Clarification: I don't want how they are stored internally, what I want is when ever I execute select * from cricket; the results to come sequentially. So that I don't want to use ORDER BY clause every time. Is there a way?


After executing apt-get update I get the following output. What does it mean and how to solve it? Hit:1 http://ppa.launchpad.net/x2go/stable/ubuntu bionic InRelease                                                        Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease Hit:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease Hit:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease Hit:5 http://archive.ubuntu.com/ubuntu bionic-security InRelease Reading package lists... Done Building dependency tree        Reading state information... Done 17 packages can be upgraded. Run 'apt list --upgradable' to see them. W: Skipping acquire of configured file 'stable/binary-i386/Packages' as repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' doesn't have the component 'stable' (component misspelt in sources.list?) W: Skipping acquire of configured file 'stable/binary-amd64/Packages' as repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' doesn't have the component 'stable' (component misspelt in sources.list?) W: Skipping acquire of configured file 'stable/i18n/Translation-en' as repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' doesn't have the component 'stable' (component misspelt in sources.list?) W: Skipping acquire of configured file 'stable/i18n/Translation-en_US' as repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' doesn't have the component 'stable' (component misspelt in sources.list?) W: Skipping acquire of configured file 'stable/dep11/Components-amd64.yml' as repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' doesn't have the component 'stable' (component misspelt in sources.list?) W: Skipping acquire of configured file 'stable/dep11/icons-48x48.tar' as repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' doesn't have the component 'stable' (component misspelt in sources.list?) W: Skipping acquire of configured file 'stable/dep11/icons-64x64.tar' as repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' doesn't have the component 'stable' (component misspelt in sources.list?)


Prove that $ L = { \{\ a^{i^{2}} : i \in N \ \cup \{0\} \ \}} $ is not regular using pumping lemma

I have this language: $$ L = { \{\ a^{i^{2}} : i \in N \ \cup \{0\} \ \}} $$  I need to prove that the language is not regular by using pumping lemma. I assume that the language is regular so I choose suitable word with which I will be trying to prove that it's not regular language.  The word that is suitable should be $w = a^{p^{2}}$ then I can decompose that word to $xyz$ parts  $$|xy| \leq p \ \land |y| \ge 1$$  The decomposition is:  $$x = a^{l}\land l\ge0\\y= a^{k}\land k\ge1\\z=a^ma^{p^{2}-p}\land m\ge0\\l+k+m=p\ \land l+k\leq p $$  Now I will pump the $y$ part in $xy^{i}z$ so the word won't be in the language anymore and that means that the language was not regular.  The problem is I have absolutely no idea which $i$ should I choose to break the pumping property and show that the language was not regular. Could anyone explain me for what I should be searching in order "break" pumping property and what $i$ to choose?


JFrame icon not applying after exporting project

I've set up a small java project, in which I want to display a JFrame with a given icon. When running locally in Eclipse everything works just fine, using: ImageIcon img = new ImageIcon("resources/twitch.png"); frame.setIconImage(img.getImage());  However, after exporting the project as a runnable jar, the icon doesn't apply and instead it uses the standard java icon for the JFrame. How can I fix this? After searching for similar problems, I've found that the most frequent solution involves using: URL resource = frame.getClass().getResource("/twitch.png");  With or without the leading /. Unfortunately, with this approach I keep getting a Nullpointer (Illegal Argument Exceptions stating that the input cannot be null). I've tried various ways copying the image somewhere else and changing the path string or trying an absolute path to my harddrive, but always the same result, NullPointerException. Another person told me that maybe I've done something wrong when exporting the project or the packet structure of my project is messed up but he couldn't help me much either. Here is the structure:  Any help is much appreciated.


Does a Yemeni citizen need transit visa to connect in Mumbai, India?

I am a Yemen citizen and want to travel from Kuala Lumpur, Malaysia to Muscat, Oman as follows:   Kuala Lumpur to Mumbai via Malindo Air 5 hour 40 minutes layover before connection Mumbai to Muscat via Oman Air   I am traveling with two flights that are booked separately. Is the connection time enough and do I need a transit visa for Mumbai ?   If I book on Skyscanner with the same two airlines, does it work the same if I book the same flights myself?


"What kind of language is X" type questions

I found this question today:  I wanted to ask a similar question about SAS. Knowing the academic classification of a language can greatly increase your ability to discover and apply various patterns and practices unique to that domain, and can also help when developing a curriculum (however small) to teach students and colleagues about the language. I'm hesitant to post my question, though. The example question above was fairly well received (+36/-2) but it's also 3 years old. I can't decide if this sort of question would currently be considered "on-topic". If I'm careful to phrase the question in terms of wanting an "academic" classification (not personal opinion), and ask that users explain what process they used to choose a proposed classification, would this kind of question even be answerable? Or are these questions inherently, invariably and unrecoverably opinion-based? (In my opinion, the example question above is kind of a bad example in that it was left very open-ended and the answers were way too short (as per ). The question has more to do with these kinds of question in general and not the example specifically.)


Like on windows? There doesn't seem to be an option for this? Is this possible? it's annoying looking at the .xxx all the time.


Supposedly Leibniz integral rule is only allowed for upper limit $< \infty$

The  supposedly requests $< \infty$ for the upper limit:     (...) an integral of the form $\int_{a(x)}^{b(x)}f(x,t)dt$, where $-\infty<a(x)$, $b(x)<\infty$, (...)   However, I can still do something like this:  $\displaystyle \int_{0}^{\infty} t^4e^{-xt} \text{dt} = \int_{0}^{\infty} \frac{\text{d}^4}{\text{d}x^4} e^{-xt} \text{dt} = \frac{\text{d}^4}{\text{d}x^4} \int_{0}^{\infty} e^{-xt} \text{dt} = \frac{\text{d}^4}{\text{d}x^4} x^{-1} = 24x^{-5}$  Why does this still work? Is this another rule?


What is the gold charm taken from the Millennium Falcon?

During the The Last Jedi Luke is shown boarding the Millennium Falcon and while he is in the cockpit he takes a golden charm (looks like dice tethered on a chain). I have never seen them before, but it seems they are recognizable enough to not be explained in the new film...  What exactly is this charm?


Initializing a two-dimensional array in Python?

I wonder What is the difference between this two different method of 2D matrix initialization in python.       m =[]     K = []     for x in range(0,W+1):         m.append(0)     for x in range(0,n+1):         K.append(m)   and       l = []     for j in range(0,n+1):         l.append([])         for i in range(0,W+1):             l[j].append(0))   when I tried to print l and K the both gave the same answer but when I tried to implement it in code the output of program changed.  the earlier one(K) gave an incorrect answer but later one(l) when implemented in the program gave a correct answer.


How much "buffer" or margin of error is in food safety guidelines?

When I read food safety guidelines, I always get the sense that I should run for the decon shower if I even look at a piece of raw meat. I have to fight the urge to sprint home with my groceries lest the eggs become poisonous on the way. If I thaw meat from the freezer, I worry that one misstep will kill me.  But rationally, I know none of that is true. Aside from the fact that I've been cooking for myself for decades, and I'm still here, we simply wouldn't be here as a species if it were that hard to cook safely. And then there's  from a couple of years ago, which seems to say that there's a fair amount of subjectivity in food safety procedures. (But  takes a stricter line.)  So: how much difference is there between official food safety doctrine and actual danger? Are there rules that are just oversimplifications in order to minimize human error?   Update  This is not a duplicate of . More specifically, the question is similar, but the accepted answer on the other thread doesn't actually address the question of fault tolerance.


I created a batch file which stops a service,then stops a process and then starts the service it stopped.  When I execute the batch file, it says "access denied". I cannot figure out why it says access denied because I am an Administrator. I searched everywhere for a solution to this with no luck.  Here are my command lines within the batch file:  net stop uvnc_service taskkill /f /im winvnc.exe net start uvnc_service   Note: When I right click on it, I can say "run as administrator" which then works, but I created a task in task scheduler which executes the batch file every 5 minutes and I cant right click and say "run as administrator" every 5 minutes.  Also in the properties of the batch file under the compatibility tab, "run as administrator is greyed out so I cant check it.  How can I automatically run the batch file as administrator every 5 minutes?  Is there maybe a command line I can insert into my batch file that runs it as administrator every time?


Prove the sequence $a_n=(1+\frac{1}{n})^n$ is monotonically increasing and bounded from above. USING INDUCTION

Am I able to prove the monotonicity with induction?


I'm trying to merge the three chapters of my PhD thesis using \subfile, and I want the .bib files to be added at the end of each chapter. I'm trying with only one .bib file first and it doesn't work, ie. the output doesn't take into account my input style=numeric and doesn't print any bibliography (it just prints \biblio_chap1 at the end of the document !).  \documentclass[a4paper]{book} \usepackage[utf8]{inputenc} \usepackage{subfiles} \usepackage[backend=biber,style=numeric]{biblatex} \addbibresource{/biblio_chap1.bib}  \title{PhD thesis} \author{Anaïs} \date{}  \begin{document}  \chapter*{Acknowledgements}\subfile{Acknowledgements}  \chapter*{Introduction}\subfile{Intro}  \chapter{Paper 1}\subfile{chapter_1} \printbibliography{/biblio_chap1}  \end{document}   And here is a minimal code for the chapter_1:  \documentclass{subfiles} \begin{document} \section{Introduction} (CCRIF, 2017)\cite{ccrif} GDP\footnotemark{GDP 2016} \end{document}   and for the .bib file  @techreport{ccrif,  title = {CCRIF SPC Annual Report 2016-2017},  author = {},  group = {Caribbean Catastrophe Risk Insurance Facility},  year = {2017},  institution = {CCRIF SPC},  address = {},  month = {} }   I have changed the execution mode accordingly from bibtex.exe to biber.exe and I compile using PDFTeXify. The bibliography works fine in a separate article, with the \bibliography command.


Expected number of rounds of flipping n fair coins?

Given $n$ fair coins, we define round $i$ as flipping all of them and obtain one observation $\vec{o_i}$.   We know the domain $O$ has $2^n$ variations.  If the game is designed as terminate as whenever all $2^n$ variations have being observed. What's the expected number of rounds $I$ for the game to terminate?   Even though all the coins are fair, but not necessarily independent. Assume we design the procedure of producing $\vec{o}$ and we know the correlation $\Sigma^{n \times n}$.


Determine start/end points for line slope calculation

This is a follow up question based off of .    I have a line feature class representing storm drains and a point feature class representing where storm drains are connected.  The point feature class has an elevation for each point allowing me to determine the slope of the storm drain as the difference in elevation from start to end divided by the length of the storm drain.  However, most of my points act as starting points for one storm drain and end points for another at the same time.  I do know that the start point should always be the point with a higher elevation to facilitate water flow.  How can I calculate the slope for each line segment and designate which points are the start/end points for each line?  Would it be better to calculate new lines based off of my points layer that would include a slope field or is there a way to automate this calculation between the two layers?  I have an ArcMap Advanced license but no 3D or Spatial analyst extensions.  I am open to Python and QGIS solutions.  I just don;t want to have to enter these values in manually as I know there must be a way to automate it.


What is the true quantitative definition of "force"?

Newton's second Law of Motion states that for a point mass, $\vec F = m \vec a$. This is a law and not a definition. So, this law only makes sense if all the physical quantities appearing in this law are pre-defined.   $\vec a$ is pre-defined because $\vec a =\frac {d \vec v}{dt}=\frac{d^2 \vec r}{dt^2}$, where $\vec v$ and $\vec r$ represent velocity vector and position vector respectively. $m$ is the mass of the concerned point mass and is one of the fundamental physical quantities so it is definitely pre-defined.  But what about force ? How do we define it quantitatively ? The only definition which I remember says that one newton is the amount of force required to accelerate $1$  $kg$ of body by $1$ $m/s^2$. But that is just defining force with $\vec F = m \vec a$, which is just circular reasoning.  So, what is "force" really ?? I mean ...... on a fundamental level ..... without using any kind of circular reasoning ..... how do we actually define the term "force" quantitatively???? I mean, surely there must be some way to define force, right ?  EDIT : Is it even possible to define force ?


how to capture the properties tag from json file

this is very short list of my json file:    "slider-client" : {     "properties_attributes" : { },     "properties" : { }   } }, {   "spark2-hive-site-override" : {     "properties_attributes" : { },     "properties" : {       "hive.metastore.client.connect.retry.delay" : "5",       "hive.server2.enable.doAs" : "false",       "hive.server2.thrift.port" : "10016",       "hive.server2.transport.mode" : "binary",       "hive.metastore.client.socket.timeout" : "1800"     }   } }, {   "tez-env" : {     "properties_attributes" : { },     "properties" : {       "heap_dump_location" : "/tmp",       "content" : "\n# Tez specific configuration\nexport TEZ_CONF_DIR={{config_dir}}\n\n# Set HADOOP_HOME to point to a specific hadoop install directory\nexport HADOOP_HOME=${HADOOP_HOME:-{{hadoop_home}}}\n\n# The java implementation to use.\nexport JAVA_HOME={{java64_home}}",       "enable_heap_dump" : "false",       "tez_user" : "tez"     }   } },   how we can capture only the lines that start with:  "properties" : {   and ended with    }   example of expected output      "properties" : { }     "properties" : {       "hive.metastore.client.connect.retry.delay" : "5",       "hive.server2.enable.doAs" : "false",       "hive.server2.thrift.port" : "10016",       "hive.server2.transport.mode" : "binary",       "hive.metastore.client.socket.timeout" : "1800"     }      "properties" : {       "heap_dump_location" : "/tmp",       "content" : "\n# Tez specific configuration\nexport TEZ_CONF_DIR={{config_dir}}\n\n# Set HADOOP_HOME to point to a specific hadoop install directory\nexport HADOOP_HOME=${HADOOP_HOME:-{{hadoop_home}}}\n\n# The java implementation to use.\nexport JAVA_HOME={{java64_home}}",       "enable_heap_dump" : "false",       "tez_user" : "tez"     }   what I did until now is this syntax , is it the best approach ?   awk '/"properties" : {/,/^[[:blank:]]*}$/'  file.json


Is it possible to delete an enrolled key using mokutil without the original .der file?

While fighting with my discrete graphics card, I reinstalled Ubuntu several times.  The first couple times I was very careful to move the .priv and .der key I was using to sign my dkms kernel modules to another partition.  Unfortunately, as I got more frustrated I became less careful and apparently accidentally cut and pasted from the backup (rather than copying and pasting) and then reformatted over the sole remaining key in the next re-install.  I used photorec to try and recover the files but unfortunately no *.der or *.priv files were recovered.  It seems that the intended way to un-enroll machine owner keys (MOKs) is  mokutil --delete keyname.der   Given that I no longer have the public key, is there another way for me to un-enroll it?


I tried my project on localhost and it works well, there are no errors.  But when I upload my project to a real server (bought server)  and when inserting a value to database (phpMyAdmin) it shows me an unknown language.  For example:  In page "signup" when user writes name and password using Arabic language it inserts in database like "Ø§ØÙ…Ø¯"   This images show unknown language   But in same page if user write name and password "using English language" its insert in database correctly  So how can I fix this? If user write in <input> using other language like Arabic language, insert it in database correctly  Note: when user write name and password using Arabic language and in database show like "Ø§ØÙ…Ø¯", and when I display it from database to my website it shows me he value correctly and there no errors.  My question: how can I fix encoding/charsets in database.  This is my code:  $insert_c = "INSERT INTO customers(username,password) VALUES('$username','$password')";  $run_c = mysqli_query($connect, $insert_c);   And sorry about my English language, I'm use Google translate  This image show utf8


Remove object so it doesn't iterate in a for loop

I have a basic setup for my data like this:  myObj = {}; myObj[3] = {}; myObj[3].stuff = 'hello'; myObj[4] = {}; myObj[4].stuff = 'hello';   Now at some point i want to remove [4] from myObj. Currently i set it to false but this still exists in myObj. Like this Object {4: false}.  The issue here is if i want to loop myObj it will still loop the 4 which i don't want it to do.  How can I setup my data correctly so I can remove a given object and thus won't be iterated in a for loop.  Example of my loop is:  var i = 0; for(var j in myObj){   i++; } console.log(i); // = 2   Is there no way to rid of [4] so the total is then only 1?


I have a question. With regard to present participles such as sleeping, singing or fishing. When used in the following sentences are they functioning as nouns or verbs.  I am swimming  In my mind, swimming is and action, so I think that it's a verb. When I look online, it lists participles as nouns.  I'm confused!


How to make text and its picture pop up together in Beamer?

I am using Beamer to make a presentation. I wish to make the text and its corresponding picture showing up simultaneously.  Currently, I am able to show the pictures in the frame together with the texts with the help of minipage, but they overlap and are always static there from the beginning to the end. Here is my MWE.  \documentclass{beamer}  \begin{document}  \begin{frame} \frametitle{Background}  \begin{minipage}[0.2\textheight]{\textwidth} \begin{columns}[T] \begin{column}{0.8\textwidth} \begin{itemize} \item 1\pause \begin{enumerate}     \item 1\pause     \item 2\pause \end{enumerate} \end{itemize} \end{column} \begin{column}{0.2\textwidth} \rule{50pt}{50pt}% pic corresponding to 1.1 \rule{50pt}{50pt}% pic corresponding to 1.2 \end{column} \end{columns} \end{minipage}   \end{frame} \end{document}   The desired effect should be...   1 pops up 1.1 pops up together with pic1 1.2 pops up together with pic2   Pic1 can either disappear or remain there, when pic2 comes, as long as pic2 is visible.  How can I make it happen?


What should I do if I realize there is a minor error in a paper I submitted?

I have submitted a research article and later realized that it has a slight error.  The paper is now under review. I have proposed a few theorems; one theorem contains a slight error that can easily be removed. The methodology is correct. Would this cause the rejection of my paper?


The meaning of the $\alpha$ helix and $\beta$ sheets in proteins

I asked this question to my Biology teacher and he, in collaboration with a Chemistry teacher, couldn't find the answer. My question is the following: "What does the $\alpha$ and $\beta$ represent in the secondary structure of a protein? I do reference to the $\alpha$ helix and $\beta$ sheets in proteins." I had a similar question with the glucose and we concluded that it was related to the Chemistry, the $\alpha$ or $\beta$, was related with the functional groups bonded to the carbon.


A thought experiment in special relativity theory

We have two sets: set No.1 and set No.2 as in this picture:    The observer is fixed to set No.1 . He sees set No.1 motionless and observes set No. 2 approaching with velocity 100,000 m/s.  Each set has one lamp and two, so called, touchers. The ends of the lamp on set No. 1 is connected directly to the touchers. One end of the lamp on set No. 2 is connected to one end of a battery and the other end of the battery is connected to the other toucher.  Set No. 2 is approaching set No. 1 so that each toucher in each set will be touched twice by the touchers of the other set. There is no friction between touchers and nothing else slowing down the movements.  The observer on set No. 1 observes the distance between touchers in each set 10 meters. It seems the lamp on Set No. 1 will light up. But the lamp on set No. 2 will not light up. And an observer on No. 2 will be be sure that the energy of the battery is not used because there has been no closed circuit.  My question: Will set No. 2 slow down?  Note 1: the numbers in the picture is what an observer on set No. 1 calculates.  Note 2: ignore friction, interaction of wires (including magnetic field. electric field, etc), and so on. Only consider the energy that a lamp needs to light up and if it may slow down the movement to get the energy. Do not ignore the mass of the sets so  slowing down needs or produces energy.  Note 3: The experiment is designed such that an observer in set No. 1 will see the circuit is closed (because its touchers will be connected to the battery of set No. 2 simultaneously). But for an observer in set No. 2 the circuit will remain open. This is the main situation the experiment tries to create. So  yu can change the numbers (like 10 and 100000) if they are not good.  Note 4: The core of the question is the circuit part of which is moving. I think if lamp 1 lights up it cannot use the battery. It can only use the kinetic energy of set No. 2. This is why I'm asking if set No. 2 will slow down.  Note 5: the touchers are not like a sharp point. So electricity will have enough time to turn on the lamps.    explanation: It seems from comments I have to explain the situation more carefully:   For set No. 1 the distance between (the centers of) the touchers in both sets is 10. So lamp 1 will feel the ends of a battery connected to its ends. So lamp 1 has to light up. Because the circuit is closed for it. For set No. 2 the distances between (the centers of) the touchers in both sets are not the same. So the battery will never feel a closed circuit. So for sure, it will not release energy at all. the lamp of set No. 1 will light up and the battery will not be used. So what is the source of energy which helps the lamp to turn on? There remains no other source of energy except the kinetic energy stored in set No. 2 (for Set. 1). So I think the lamp will hinder the motion of set No. 2 to gain some energy to light up. So it will slow down set No. 2.   Is this correct? if no how do you explain (1), (2) and (3) all holding together?


The following throws an InvalidCastException.  IEnumerable<int> list = new List<int>() { 1 }; IEnumerable<long> castedList = list.Cast<long>(); Console.WriteLine(castedList.First());   Why?  I'm using Visual Studio 2008 SP1.


Finding solutions to congruence equations

In my notes it has a theorem, stating: $ax\equiv b\mod m$ has solutions if and only if $\gcd(a,m)|b$.  The proof going from right to left is:  If $d=\gcd(a,m)$, $d|b \Rightarrow b=td$. We write $d=ra+sm$ for $r,s\in\mathbb{Z}$ so $b=t(ra+sm)=tra+tsm\equiv (tr)a\mod m$, so $x=tr$ is a solution.  Why is $x=tr$ a solution?


Bind: Overwrite one host of foreign domain

Our customer has a domain. Let's call it example.com.  We are running a VM in the network of our customer. Let's call it "our-vm".  The customer is accessing the vm with this name: our-vm.example.com.  The IP address is an internal for example 10.1.2.3  The name server of our customer (example.com) does not resolve the host name.  We have a VPN to our customer and are able to access 10.1.2.3 via IP address.  But I would like to access the host by name.  What I want:   our-vm.example.com should get resolved by me (running a bind in our network) www.example.com, mail.example.com and other names should get resolved by example.com   How to configure bind this way?  Sub-question: is there a name for this type of configuration?  This is not a duplicate of () because I want example.com to be handled by the customer.


Faraday cage for blocking cellphone and wifi signal

Good day,  I have created a faraday cage with metal sheet of .5 mm thickness with aluminum foil wrapped outside and inside of the cage. I was happy at first to notice that the cellphone signal goes from one bar to nothing at all but the signal goes inside the cage intermittently and most of time stays at full strenght  signal. I tried changing places and found dead zones but still frequencies go inside. Wifi signal though still cannot be attenuated. I was planning to create a topological shielding with 10x sheet of 1 mm and layer them together to deplete the frequency but i cant afford to do it if i plan to stay inside longer because of temperature issues. The reason I am doing this is because of electronic harrasment. I researched that devices can be hacked through emf emissions of devices and i need to protect my devices from these attacks.  My question is,    is there by any chance that the signals inside can be cancelled consistently? Do i need to consider the thickness of metal sheet or do i need to just layer tin foils to be enough to reflect or absorb frequencies. Do i need to make earth stakes to transfer the electrons on the metal to earth to regain it's absorption and reflection? Do i need to create topological shielding to deplete the frequecy from GHz to MHz brcause i researched that cellhpone signals are on a MHz frequency?.   I found out as well that apperture/ appertures should be smaller than the wave.   I need your help thank you.


Templated class function T: How to find out if T is a pointer?

As a follow-up to : I need to decide in a class function like this:  template< typename T > bool Class::Fun <T*> ( T& variable ) {...}   whether T is a pointer or not.  In the question cited above the answer was to use partial template specialization. As far as I've found out this is not possible for class functions. Is this true? If so, is there another way of finding out if T is a pointer?


Limit Integral equal to a supremun: $\lim_{n\to \infty} \left[\int_a^b (f(x))^n dx\right]^{{1}/{n}}=\sup_{x\in [a,b]} f(x).$

I'd like a hint to solve the following problem:     Given a $f$ continuos and positive on $[a,b]$ prove that $$\lim_{n\to \infty}  \left[\int_a^b (f(x))^n dx\right]^{{1}/{n}}=\sup_{x\in [a,b]} f(x).$$   Thanks a lot!


Are there membrane theories beyond string theory?

String theory uses a Feynman diagram with surfaces instead of lines, and world sheets instead of world lines. Can there be theories with solids instead of surfaces and world solids instead of world sheets?


Is the set $Z_n = \{ 0, 1, . . . , n-1 \}$ for $n ≥ 1$ is a group under addition modulo n?

The set $Z_n = \{ 0, 1, . . . , n-1 \}$ for $n ≥ 1$ is a group under addition modulo n. For any $j > 0$ in $Z_n$, the inverse of $j$ is $n - j$. This group is usually referred to as the group of integers modulo n.  My understanding of this is as following, please let me know if I have gotten the main idea.  Let's pick $Z_3$ as an example.  Then the members of this group is $0,1,2$ let $j=2$ then $n-j=3-2=1$  it says the inverse of $j$ is $n - j$, by definition, an inverse in a group is such ab=identity. And here the identity is 0 under addition.   therefore, 2+1=3 and 3 mod 3 =0 which is the identity.   This applies to any n in $Z_n$  So, it satisfies as a group?


Issue with linux-image-3.13.0-44-generic & linux-image-extra-3.13.0-44-generic

I've been using Ubuntu Server for a few months now. I'm getting the below OUTPUT after running sudo apt-get -f upgrade:   Reading package lists... Done Building dependency tree        Reading state information... Done Calculating upgrade... Done The following packages will be REMOVED   linux-image-extra-3.13.0-44-generic 0 to upgrade, 0 to newly install, 1 to remove and 0 not to upgrade. 2 not fully installed or removed. After this operation, 152 MB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 447185 files and directories currently installed.) Removing linux-image-extra-3.13.0-44-generic (3.13.0-44.73) ... run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-44-generic /boot/vmlinuz-3.13.0-44-generic run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-44-generic /boot/vmlinuz-3.13.0-44-generic update-initramfs: Generating /boot/initrd.img-3.13.0-44-generic  gzip: stdout: No space left on device E: mkinitramfs failure cpio 141 gzip 1 update-initramfs: failed for /boot/initrd.img-3.13.0-44-generic with 1. run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1 dpkg: error processing package linux-image-extra-3.13.0-44-generic (--remove):  subprocess installed post-removal script returned error exit status 1 Errors were encountered while processing:  linux-image-extra-3.13.0-44-generic E: Sub-process /usr/bin/dpkg returned an error code (1)    I've tried all the Google results I can find that seem relevant including sudo apt-get remove and sudo apt-get autoremove, but to no avail.


I've seen the word 'superping' be used across SE meta sites.  What does it mean? Is it just a synonym of the word 'ping' (ie. using @ followed by a user's name to give them a notification in their inbox).


What happened to expl3's case changing functions? (e.g. \tl_upper_case:n and \tl_lower_case:n)

I had some expl3 code which relied on \tl_upper_case:n to do some expandable case changing. However today I updated my TeX distribution and the code now throws an error:  ! LaTeX3 Error: '\tl_upper_case:n' deprecated on 2022-01-01. Use (LaTeX3)        '\text_uppercase:n '.  Type <return> to continue.  ...                                                l.6 \tl_upper_case:n                      { oh~no! } ?   In fact, all of:  \tl_<some>_case:n(n)    % <some> = (upper|lower|mixed) \str_<some>_case:n      % <some> = (upper|lower|fold) \char_<some>_case:N     % <some> = (upper|lower|mixed|fold) \char_str_<some>_case:N % <some> = (upper|lower|mixed|fold)   raise similar errors. What happened?


How can I send a file from Linux to a Windows 10 folder with spaces in its name via scp?

Recently I have been testing the new OpenSSH feature in Windows 10, that allows me to send files from my linux to windows via scp, in general I have not had many difficult problems, but, trying to send files via scp, I have found the difficulty of sending files from Linux to Windows, if the destination folder has spaces in its name, that is:  scp -r "Folder or file" <user>@<ip>:/Users/MyUser/Remote Folder   I tried:  scp -r "Folder or file" <user>@<ip>:"/Users/MyUser/Remote Folder" scp -r "Folder or file" <user>@<ip>:"/Users/MyUser/Remote\ Folder" scp -r "Folder or file" <user>@<ip>:"/Users/MyUser/Remote\\\ Folder"   But with each of these commands, we get a lost connection message, but if they work from linux to linux.


A projection which has $||E\alpha|| \le ||\alpha||$ is an orthogonal projection

this problem screwed me up for a long time. Please help me solve this.          $V$ is an inner product space and $W$ is a finite-dimensional subspace of $V$. Prove that if $E$ is a projection with range $W$, then $E$ is the orthogonal projection on $W$ iff $||E\alpha|| \le ||\alpha||$ for all $\alpha$ in $V$.      I can prove that if $E$ is an orthogonal projection then $||E\alpha|| \le ||\alpha||$ using property: $(E\alpha | \beta) = (\alpha|\beta)$ for all $\alpha$ in $V$ and $\beta$ in W. But the converse seems more difficult.


Are virtual particles experimentally verifiable?

If not, why do we include such a description for force interactions? It seems to me that physics implements virtual particles as a means to do calculations. If this is the case, what is  the motivation in coming up with virtual particles that  have properties that make little intuitive sense? Are there other ways to describe QFT without exchanging of virtual particles? From an outside perspective, it feels like when something is inferred from math, it can be described in more than one way. Thanks


Matrix differentiation, $x^T A x$ w.r.t $A$

In Gaussian Mixture Models, in order to derive the M-step for covariance matrix, I need this result. I have poor knowledge of matrix calculus and result does not exist in  What is the partial derivative of $x^T A x$ w.r.t $A$?


Let $A=\left(\begin{matrix}\frac{1}{1+1}&\frac{1}{1+2}&\cdots&\frac{1}{1+n}&\\\frac{1}{2+1}&\frac{1}{2+2}&\cdots&\frac{1}{2+n}\\\vdots&\vdots&\ddots&\vdots\\\frac{1}{n+1}&\frac{1}{n+2}&\cdots&\frac{1}{n+n}\end{matrix}\right)$  Can we prove that all eigenvalues of $A$ are positive?


Why is it important to apply transformation to an objects data?

I've watched several tutorials and very often they applied the location, rotation or scale to the object when they transformed it in Object Mode. They always said it is important, but why?


In-universe, what is the origin of the name "Borg"?

Is there an explanation anywhere of why the Borg have come to call themselves "the Borg", in-universe?  Note : I am not asking about the  of the Borg collective itself — only how they arrived at their name.


Is there a possibility to search for postings which I already upvoted and use keywords/tags for this search? If not, should this be made possible?  I will explain why I want this:  We are able to find all questions/answers we have voted on (like Afzaal Ahmad Zeeshan pointed out). I am voting for good posts frequently and as a beginner I read new and helpful information all the time. Because I want to use those helpful posts in the future I would like to have the possibility to find them faster using keywords and tags. Say I know I already read a good post about parsing columns with awk and very likely upvoted it, I want to read it again.  As ProgramFOX said it is possible to do this search for questions I marked as a favorite. The point is that I don't want to favorite all those questions leading in hundreds or thousands of favorites. With doing so there wouldn't be any difference in voting and setting favorites. There wouldn't be the need to vote anything at all. At least for me.  To sum it up: Ideally I would like to use an additional searching flag which states, that I already upvoted (maybe to make it consistent for downvotes and others too). This could look like:  "search term here" inupvoted:mine   I hope others will think similarly and the admins could think about adding this feature.


$[a,b)$ and $(a,b)$ are not homeomorphic  Hint given to me is: removing one point from $(a,b)$ leaves a disconnected set whereas removing a point from $[a,b)$ still gives a connected set.  I don't understand how being able to remove points and preserving connectedness while doing that is related to homeomorphism  Is there a simple way to show this?


Construct such $d$ that $(\mathbb{R} \setminus \mathbb{Z}, d)$ is complete metric space

Good evening!  I had topology exam yesterday and I had a question that gave me problems.  Lets consider $\mathrm{G} = \mathbb{R} \setminus \mathbb{Z} $ , i.e. real line without integrals, where $\rho$ is natural metric on $\mathrm{G}$. Find metric $d$ equivalent to  $\rho$, where $(\mathrm{G},d)$ is complete metric space.    It is obvious that $(\mathrm{G},\rho)$ is not complete, but I don't know how to construct $d$. Can I do something like get rid of Cauchy's property only in integral points of real line and maintain in the other ones?


Let $f:\mathbb R \rightarrow \mathbb R$ have derivatives of all orders. Suppose that   $a<b$ and that $f(a) = f(b) = f'(a) = f'(b) = 0$.       Prove that $f'''(c) = 0$ for some $c \in (a,b)$     $f(a) = f(b)$ and since f is continuous and differentiable, we can use Rolle's Theorem.  $\exists c \in (a,b)$ such that $f'(c) = 0$  So surely, differentiating twice more, $f'''(c) = 0$ for some $c \in (a,b)$?  Or am I misunderstanding something? Why would the question ask for $f'''$ ?  Thanks in advance.


Is there an electric field around neutral atoms?

Even if the atom is neutral (equal numbers of protons and electrons), the electrons and nucleus form an electrical dipole, so there is still an electric field around them, even though the total charge is zero. Is this reasoning correct? So, every atom has an electric field, even if it is too weak? If not, why?


What is the difference between #include  and #include "filename"?

In the C and C++ programming languages, what is the difference between using angle brackets and using quotes in an include statement, as follows?   #include <filename>  #include "filename"


I have this sim800L module   It has a 3.7v - 4.2v voltage requirement. So I created a simple buck regulator using MIC4576 regulator according to it's schematics and adjusted it's output to 4.2 volts. It can provide 3A of current. And i powered it through my laptop charger, so there's no shortage of current in the circuit.  But the module(sim800l) resets as soon as it finds a network(it's my guess). If I run it without sim, it runs fine and doesn't reset.  I've also tried 2 18650s in parallel to be able to provide atleast 3A to the circuit. But it still resets after a few seconds.  Is there anything obvious I'm missing?


Didn't type password into CLI with ChromeOS, now I can't do any commands in Ubuntu

I recently installed Ubuntu 16.04 with Chroot and CLI on ChromeOS. When I was prompted to answer a password, I hit Enter (without typing a password) and when I try to do commands it asks for a password. I then try to type nothing, but it says it's invalid. Can I get some help with this?


I was playing around with geometric series and I wondered if it was possible to find a formula for the sum of an altered geometric series (which actually stops being geometric) of the form: $S_N = \sum_{n=0}^{N}na^n$ Under the condition $1>a>0$ Is there a way to compute this sum other than summing term by term? Can we find a formula that depends on $N$ and $a$ for this sum? Thank you in advance!