Linker error when taking address of static data member in single translation unit program

main.cpp: class A {     public:         static const int x = 1; };  int main() {     auto p = &A::x; }  Compilation command line: clang++ -std=c++20 -pedantic-errors main.cpp -o prog  Output: /usr/bin/ld: /tmp/main-008420.o: in function `main': main.cpp:(.text+0x8): undefined reference to `A::x' clang: error: linker command failed with exit code 1 (use -v to see invocation)  Why do I get that linker error? What part of the c++ standard forbids me to do this?


'Come on, it's time to go home' here home is an adverb or noun?

I have 2 options. A) Noun B) adverb then what should be the answer.


I am very new to LaTeX. Now I am trying to define the cover page of my document. It currently consists of the title and a single picture.  I have tried   \begin{titlepage} \maketitle \begin{figure} \includegraphics[height=100mm]{../images/dragon.jpg} \end{figure} \end{titlepage}   But this still does not place the image and title on the same page. Moreover, I would like to define a set of objects to belong to the cover page and they to be resized and positioned as deemed fit. That is, I wouldn't like to care about absolute sizes of pictures.  How can I define a set of objects, that compose the cover page?


How do I export my scene with the propper nodes to a Collada file from my cycles render  I am working on a spaceshipe but when i try to export it to a collada file the texteres are missing, I am using the cycles render and the textures are no images.


I'm new to Ubuntu. Just spent a couple of days overcoming all sorts of minor problems and performing tweaks and downloading apps etc.. Having installing 12.04 (32 bit) onto an old Xp machine leaving windows in a separate partition for optional booting. Basically very impressed with everything. However have just hit a brick wall, ther does not sem to be a simple way of other users accessing each others files. Even the music files only seem to be available to the user that downloaded them. Surely Ubuntu does not require that each user has a complete duplicate copy of the music library. And how do two users have access to a commonly used file that they mutually update. What am I missing....?


What JavaScript pattern do I use to access private methods from a prototype method?

What JavaScript pattern do I use that gives me:   Public methods on the prototype Private methods that can be called from #1 Private variables   Other answers I have found seem to return undefined when trying to call a private method from the prototype public method.


Metric $d(x,y)=\frac{|x-y|}{\sqrt{1+x^2}\sqrt{1+y^2}}$ on $\mathbb{R}$

Define the following function on $\mathbb{R}$ by $d(x,y)=\dfrac{|x-y|}{\sqrt{1+x^2}\sqrt{1+y^2}}$. Prove that this is metric.  I proved the first two properties of metric. But how to prove that $d(x,y)+d(y,z)\geqslant d(x,z)$ for any $x,y,z\in \mathbb{R}$


Show that AB is singular if A is singular

Actually I need to show that $\det(AB) = \det(A)\det(B)$ if $A$ is a singular matrix.  The determinant of $A$ is $0$ if $A$ is singular, so $\det(AB)$ has to be $0$ as well, but I have problems showing that $AB$ is singular if $A$ is singular. How can I show that?


Split URL & return components seperately in php

I am trying to split the following dynamic url into several components like below. Url can be anything in the below format.  input:   https://www.test.com/directory/subdirectory/index.php?qry=4 or  https://www.test.com/directory/subdirectory/index.php or  https://www.test.com/directory/index.php?qry=4 or  https://www.test.com/directory/index.php or  https://www.test.com/index.php?qry=4 or  https://www.test.com/index.php or  https://www.test.com/   output:  $http_part = "https"; $root_url = "www.test.com"; $subdirectory = "directory/subdirectory";  // if not available blank should be returned $pagename = "index.php";   // if no page name is available default index.php $paramerts = "qry=4"; // if not available blank should be returned   I know i can use url parsing, but it doesnt in all the situation.   Any function is available by inputting the url which will return all these outputs ?


I'm studying about differential cryptanalysis in DES. I need to make the DDT through python

I just made DES algorithm(encryption, decryption) using python. And I want to attack 1,2 4,8 .. round DES. For that, I need to make the DDT code. Could you guys help me to make the DDT? Thank you.


I am putting together a flyer for our company. We have three different logos. The logos are actually trademarked or registered names such as ReMan, LiftTrax, LiftSafe and all are in the same font. When I import them, they are all different sizes. I need all the three of these logos to be the same size for placement purposes. How do I get all three of these logos to be the same size? Thank you.


When is the idea of 'Time is Currency' first used?

In the novel Strata instead of earning money you earn days, which act as a currency. Instead of paying for food etc with money you pay with 'days'.  In Time is a film with a similar concept where someone is giving away days. I thought Strata was the first instance of this, but I wasn't sure.  Is Strata the first instance of this, or is it older?


Is it better to split my units to siege multiple counties at once, or does a stack wear down the defenders quicker?


How long should I wait before accepting an answer?

I have noticed that some questions get a lot of responses quickly, and the cool fact is that most of the time these initial responses are correct.  I see users are motivated to accept answers. Because many questions take less than 24h to get an acceptable response, I'm unsure what to do when I have a question that takes more than 24h to get a response that I feel is complete enough to warrant being marked as accepted.  And even for acceptable responses, I often hesitate to accept them out of concern that posters will pass my question by if it already has an accepted answer (unless it has lots of upvotes). Does this really deter the higher-quality posters, though?


I have object in typescript:  export class A {  public var1: boolean = false;  public var2: boolean = false;  public b: B = new B();   }  export class B {    public v: boolean = false; }   And declare and exist object:  ... public a: A = new A(); ...   When I use jQuery:   const myCopy: A = $.extend(true, {}, this.a); this.a.b.v = true;   When I change variable object this.a  I see change in copy. How Can I deep copy in this situation.


I'm using titlepage to create a title/abstract page for a paper, and I don't want a page number to appear, so I use the following fragment:  \begin{titlepage} \clearpage\thispagestyle{empty}   \maketitle  \begin{abstract}  \end{abstract}  \end{titlepage}   inside a default article class. While the page number resets correctly (so the second page is labelled '1'), the page number '1' still appears on the first page. I'm sure there's some obvious mistake I'm making here, and would be grateful for some help.


Ich benutze Xubuntu 16.04.6 LTS, momentan mit dem Linuxkern 4.4.0-145-generic x86_64 Außerdem xfburn version 0.5.4 for Xfce 4.12  Ich verwende einen Lenovo W530, der enthält ein CD/DVD-RW-Laufwerk MATSHITA DVD-RAM UJ8C0. Xfburn zeigt dafür alle Haken, außer bei "blue ray schreiben".  Die zu verwendenden Datenträger sind Verbatim CD-R 700 MB 52x.  Der FIFO-Puffer von Xfburn ist auf dem maximal einstellbaren Wert,bei mir also auf 16384 kB.  Ich bekomme trotzdem immer wieder Fehlermeldungen der Art     Fehlgeschlagen: Burn Run failed.   Beim FIFO-Puffer zeigt das Meldungsfenster 99%, beim Gerätepuffer 100%.  Bei den Einstellungen waren dabei Haken gesetzt bei: CD auswerfen, Simulieren, Burn Free, Datenstromaufnahme.  Bei "nur ISO erzeugen" war kein Haken gesetzt. (Ich habe auch schon versucht, die CD mit der kleinst möglichen Geschwindigkeit zu brennen, aber das half auch nicht).  Was ist da falsch?


What is acceleration due to gravity at the centre of the earth?

When I asked my teacher that what is the acceleration at the centre of earth, he replied that it is 0 as when we move inside the earth, the effective mass decreases i.e. the mass that exerts gravitational force on us decreases and hence at the centre of the acceleration due to gravity is zero.  However when we reach at the centre of earth the radius is also zero  hence from the formula - GM/r^2 Where M is mass of earth and r is it's radius, by putting 0 in place of M and r , we get value of acceleration due to gravity = 0/0 which is an undefined quantity.  Even if my teacher was wrong, on Google, the answer for value of acceleration due to gravity is zero and the radius of earth at its centre is also zero so by the formula:- GM/r^2 putting 0 in place of r, we get GM/0  So we get GM/0=0  But GM/0 is again an undefined quantity.  I want ask how is acceleration due to gravity 0 when it is not permitted by the formula as the formula should also be satisfied in every case.


What is the probability that the highest of the three numbers obtained from three dice will be exactly a $4$?

Question: You are going to toll three dice. What is the probability that the highest of the three numbers will be exactly a $4$?   My attempt:   The first die obtains number $4$ with probability $\frac{1}{6}.$ Then the remaining two dice can take numbers $1,2,3,4$ only. So each of them has probability $\frac{4}{6}.$ In total, the required probability is  $$\frac{1}{6}\times \frac{4}{6} \times \frac{4}{6} \times 3 = \frac{2}{9}.$$ But apparently this is not the answer.  It is $\frac{37}{216}.$  May I know where is the flaw in my reasoning?


Family engagement is crucial to developing children’s emergent literacy skills because children who are raised in homes that promote literacy do better in school and they grow up to be better readers.


Sites where you are not part of the community are quite ugly and force you to close multiple divs

Picture helps here:    Sites are getting too busy and too many X's to close out of certain banners or divs.


Is there a quick and simple way to reinstall all the packages I downloaded for BasicTeX 2013 with Tex Live Manager into version 2014?  Should I just copy the folders – which? – from the old distribution?  Update: This question is different from  in that I’m not looking to generate a list of packages to install manually, but to automate the whole process.


If $f$ belongs to $C[-\pi, \pi]$  &  $\int_{-\pi}^{\pi}\ x^nf(x) =0$     for all non negative integer n. Then $f$ will be identically $0$.  How to do it by stone-weierstrass theorem?  Can anyone help me?


Is there something wrong in my neural network model?

I designed my own neural network for solving the problem of text summarization. The number of documents in my training dataset is big (more than 100,000 documents) so it is hard to check it on the whole data. In order to verify that my model is good, I train it on a very small dataset (100 documents) in about 100 epochs to see how it behaves. I split this small dataset into 3 sets (6/2/2): training, validation and test. Here is the chart of the losses (red line is training loss, blue line is validation loss and green line is test loss)     Is my evaluation on this small dataset good enough to tell whether my model is performing well?  Does the above chart shows that my model is getting overfitting easily?  Do you have any recommendation for quickly evaluating a new proposed model and avoid overfitting?   Update:   I trained my network again on a bigger data set (4000 documents) and I got the following chart. It does seem my model is not well-designed.


If I leave brie in my fridge for two weeks, will it still taste as good?

Can you refrigerate Brie cheese for about two weeks unopened and expect it to still be as good? I have a round of it and it does not smell or anything. I kept it at a certain temp.


Is there a way to run lyx code in terminal?

Is there a way to compile lyx file in terminal?  If that helps, I want to do this because I made a lyx file with many packages, which is really slow running in lyx GUI. I wonder if there is a way to compile that in terminal just like running tex files by texmk -xelatex xxx.tex.  Actually I found following command in Converting LyX to LaTeX  $ lyx --force-overwrite --export pdflatex document.lyx   However, it returns me following information. I tried pdflatex and xelatex both.     Error: Couldn't export file   No information for exporting the format xelatex.   Thanks in advance.  with best regards


Here is my code and i seem to have done everything correctly. what might be the problem as the output is only {{message}}  <!DOCTYPE html>       <meta charset="UTF-8">     <title>Title</title>

{{message}}

       and it just outputs {{message}}


I try to search for lines that start with "1" using   ls -1 | grep ^1*   but it returns lines that do not start with 1. What I am missing here?


Find $C$, if $A=CBC$, where $A$,$B$,$C$ are symmetric matrices.

If $A=CBC$, where $A$,$B$,$C$ are symmetric matrices and $A$,$B$ are given find $C$.  $A$,$B$,$C$ are assumed to be real valued and $B$ is positive definite matrix. Does the unique solution always exist ? What additional assumptions are needed to obtain unique solution.


tikz Error some package has redefined the meaning of the math-mode dollar sign

I am using Tikz code from  and everything have been working very well.  When I added some verbatim text at the end, now I get this error from lualtex  Package microtype Warning: Unknown slot number of character (microtype)                `\textgreater ' (microtype)                in font encoding `TU' in protrusion list (microtype)                `T1-default'.   ! Package tikz Error: Sorry, some package has redefined the meaning of the math -mode dollar sign. This is incompatible with tikz and its calc library and migh t cause unrecoverable errors.  See the tikz package documentation for explanation. Type  H <return>  for immediate help.  ...                                                 I spend alot of time trying to make MWE. But it seems to be random. If I make the code smaller, or move verbatim to top of file, the error goes away. If I remove geometry package, error goes away. I even removed one blank line in random location, and error went away.    I looked at   and followed link to  and tried the fix given there but that did not remove the error:    So I am not sure what to do now. I'd like to keep the tikz code, which shows the line numbers. But I also want to add verbatim.  The smallest Latex file I can show is 150 lines long. This causes the error. I can post a link to the file, since it is long? Or I can paste here also? Will do in few minutes...  I am using TexLive 2016, on Linux mint. On windows, using Miktex 9. Both give same error.  End of log file is:   Package tikz Error: Sorry, some package has redefined the meaning of the math -mode dollar sign. This is incompatible with tikz and its calc library and migh t cause unrecoverable errors.  See the tikz package documentation for explanation. Type  H <return>  for immediate help.  ...                                                l.26 \end{verbatim}  Here is how much of LuaTeX's memory you used:  12117 strings out of 494611  100000,319454 words of node,token memory allocated 2441 words of node memory still in use:    15 hlist, 1 vlist, 3 rule, 4 local_par, 4 dir, 101 glue, 8 kern, 44 penalty,  150 glyph, 25 attribute, 48 glue_spec, 25 attribute_list, 4 temp, 4 if_stack, 1  write, 5 pdf_literal, 3 pdf_colorstack nodes    avail lists: 2:6,3:1,4:1,8:1,9:1  15679 multiletter control sequences out of 65536+600000  17 fonts using 981063 bytes  55i,3n,54p,401b,458s stack positions out of 5000i,500n,10000p,90000000b,100000s  warning  (pdf backend): no pages of output.  PDF statistics: 3 PDF objects out of 1000 (max. 8388607)  0 named destinations out of 1000 (max. 131072)  1 words of extra memory for PDF output out of 10000 (max. 10000000)   Listing  Thanks to TorbjørnT help in chat, he was able to make even smaller MWE that shows the error. Here it is  \documentclass[12pt,letterpaper]{article}% \usepackage[margin=1.1in]{geometry} \usepackage{tikz,everypage} \AtBeginDocument{%   \AddEverypageHook{%     \small     \begin{tikzpicture}[remember picture,overlay]             \path (current page.north west) --  (current page.south west)              \foreach \i in {1,...,\fakelinenos}                 { node [pos={(\i-.5)/\fakelinenos},                    xshift=\fakelinenoshift, line number style] {\i} }  ;     \end{tikzpicture}%   }% }  \tikzset{%   line numbers/.store in=\fakelinenos,   line numbers=72,   line number shift/.store in=\fakelinenoshift,   line number shift=5mm,   line number style/.style={text=gray}, }  \begin{document} \vspace*{20cm} \begin{verbatim} data1 = makeTable[0.01, 0, 2, 0]; At one second, using h=0.01 speed is 16.078 at step n = 100 At 2 seconds, using h=0.01 speed is 19.206 at step n = 200 data2 = makeTable[0.005, 0, 2, 0]; At one second, using h=0.005 speed is 16.02 at step n = 200 At 2 seconds, using h=0.005 speed is 19.195 at step n = 400 \end{verbatim} \end{document}


Maximum likelihood estimator for three parameters

Assume we have $n$ distinct points $x_1,x_2,...,x_n\in \Bbb{R}$, and observations which are independent random variables $y_1,y_2,...,y_n$ depending on formula: $$ y_i=\theta_0+\theta_1x_i^2+\theta_3e^{x_i}+\varepsilon_i $$ where $\varepsilon_i$ are distributed as $N(0,\sigma^2)$. Derive the maximum likelihood estimator for $\theta_{0},\theta_{1},\theta_{2}$ .  I know how to find the MLE for a known distribution like normal or Poisson, but for this question, I don't how I can find the likelihood function, should I consider it as normal distribution? And I don't know what the mean and variance would be since I can't figure out the distribution and likelihood function. Also, should I consider $\varepsilon_i$ as a useful variable, or just treat it as an error in estimation? Thanks for any help.


I own an Asus X53S and I have put in it a SSD drive (1 Tb) that contains both the operative system (Windows 7 Home Premium 64 bit) and the personal files. I have recently bought an Asus N551JW-CN068H with Windows 8 Home 64 bit. I want to replace the HDD in the new pc with the SSD without reinstall all the programs, but when I try the PC gets stuck in apio setup utilities.  What can I do?


How do amorphous objects emit blackbody/thermal radiation?

How do amorphous objects emit blackbody/thermal radiation when such objects don't have optical phonons?


Is it true that the first version of Linux was based on parts of Unix?

Me and a friend had a discussion about Linux and Unix today and my friend kept saying that the first version of the Linux kernel was based on [parts] of the Unix kernel.  This really surprised me because I always thought that the architecture of Linux is just similar to Unix — since the very first version. So, is it really true that the first Linux version was based on parts of Unix?


How to disable auto-complete braces in TEXStudio?

I want to disable auto-complete for braces in TeXstudio. In its simplest form, when I type {  I do not want it to automatically add a }.  When it does this, many times I end up deleting the brace, which is a hassle.  Also, when I hit Ctrl+I to get into italics mode I don't want it to auto-complete the ending brace either.  I have gone to Options -> Configure TeXstudio... -> Completion -> Show Advanced Options and disabled everything.  But it still auto-completes them.  In case it matters the version I have is TeXstudio 2.8.4.


Each digit of $\dfrac{n(n+1)}{2}$ equals $a$

For which digits $a$ does there exist an integer $n \geq 4$ such that each digit of $\dfrac{n(n+1)}{2}$ equals $a$?    I was first thinking of looking at $\dfrac{n(n+1)}{2} \pmod{100}$, but it doesn't look like it has a small period so it may be hard to arrive at a conclusion. Is there an easier way to solve this question?


If $f(x)= x^3 + 3x + 4$ then the value of $\int_{-1}^1f(x)dx + \int_{0}^4 f^{-1}(x)dx$ equals

If $f(x)= x^3 + 3x + 4$ then the value of $$\int_{-1}^1f(x)dx + \int_{0}^4 f^{-1}(x)dx$$ equals   So in this question I got stuck with the part of inverse of the function so I referred the solution and the solution was given as     $$\int_{-1}^0f(x)dx + \int_{0}^1f(x)dx + \int_{0}^4 f^{-1}(x)dx = \int_{0}^1f(x)dx $$   What does this step mean , I'm new to Calculus and don't have much experience and so couldn't understand it. Please help :)


Mysql Workbench 8 doesn't detect the my.ini file for my MySql 5.7 server. How can I point it to the correct file?

I upgraded MySql workbench to version 8. I'm running MySql Server 5.7. When I open the options file in workbench it says it cannot locate a file for MySql 8 and that it will create one in the path C:\ProgramData\MySql\MySql Server 8\my.ini I do not have MySql Server 8 installed.  Why is workbench not finding the file? How can I point it towards the correct file? Do I need to downgrade workbench?


How to get reference to parent object from child Trigger

I am new to Salesforce. I have Account (Master) and Keys (Detail). I created a trigger on Keys. Now I need to get reference to the Account object  to do some manipulations.   I tried ApexPages.currentPage().getParameters().get('Id'); but it throws System.NullPointerException: Attempt to de-reference a null object:   Any help is greatly appreciated -Thank you


OPus Audio codec install on Lubuntu 14.04

Anyone please share info. on how I can port opus audio codec on a system running Lubuntu 14.04 Thanks.


After upgrading from 14.04 to 16.04, in startup it shows  /dev/sda1: clean, 291272/4292608 files, 480345/18174432 blocks   which makes Ubuntu take some time to load.


If $G$ is a group of an even order, show that there exists an element of $G$ of order 2.

Im not sure where to start. I first assume $|G|<{\infty}$ and $|G|=2k$ with $k\ge{1}$. Then take some element $g\in{G}$, but I can't see what I can show from the assumptions.


Why does quantum entanglement not allow us to send information faster than the speed of light?

She said it here:  A lot of large newspapers claim that we will have internet faster than the speedof light. But she says it is wrong. I don't get it. I thought that quantum entanglement would mean, that all you do with one particle will happen to the other particle at the very same moment without any time delay? Or does the affects take time?


How do I make zip files that unzip cleanly on any OS with native tools?

If I make a zip file on OSX 10.6 with the OS native tool, and unarchive it on Windows 7, it's root directory will be doubly nested in another one with the same name, and it will contain all kinds of trash like .MACOSX and .ds_store  If I make a zip file on windows with the OS native tool, and try to unzip it on OSX with the native tool, it just creates a .ztgz file or something and then unzipping that just results in another zip file ad infinitum.  How do I make a clean zip file, for distribution, that will work correctly and cleanly on any system?


How to get trends about requests/answered counts?

I found some external sites that publish some statistics like :     These are quite old, and I didn’t find simple trends with daily questions count and answers count. Whatever is the technology used to store requests in stackoverflow, I guess the information is available. Is it available in some way ? through API ?


How do i verify that $272727...2727$ ($100$ digits) can or cannot be written as a perfect square??

I've been stuck on this question. I tried writing the number as as geometric progression plus $$2((10^{100}-1)/9)+5+5.10^2+5.10^4...$$ Got stuck in there.


Is there a way to detect the collapse in wave function of entangled particles instantaneously?

Is there a machine or instrument which will notify us instantly when the wave-function has collapsed if we have access to only one of the entangled particles? Note that the wave function collapse will be triggered by observing the particle which we do not have. Or in other words is there a way to identify (instantaneously) if the entangled pair of a particle has been observed and the wave function has collapsed.


Addressing computers via ipv6 on local network

I'm very confused about how to address a computer on my local network via ipv6. I am writing a server which is meant to support both ipv4 and ipv6. Now I have don an ifconfig and gotten my ipv4 local ip address, however I get inet6 addr: fe80::224:d7ff:fe3e:db44/64 Scope:Link for the ipv6. From what I have read I cannot use this to address the box on my local network right? I guess I just don't quite understand the whole scoping stuff for ipv6 and if someone could explain it to me like I was 5 that would be great. Will I not be able to address it because of how the network is set up?  Just in case it helps I have a dlink dir-601 as my main router.


How do I lock a hard disk drive to a certain drive letter?

I have an external hard disk drive that I have set to drive F which contains some programs that I have shortcuts on the desktop to. I have a second external hard disk drive which I store my music on which is auto assigned to drive E, due to someone thinking that Australians love to have wings on power plugs for hard drives while power boards have each socket close together. I can have both of these hard drives set at the same time.  My music hard drive I normally only plug in when I synchronise music to my iPod, but on occasion when I unplug my music hard drive and plug my old one back in or at times when I turn on my computer with the music hard disk drive in, turn off my computer and turn it back on with my old hard drive, its drive letter gets switched to E.  I get annoyed having to always go into disk management and change the drive letter back to F when this happens so   Can I lock my hard drive to always be F? If anything else tries to be F, it can fail for all I care. Is there a batch file I can use that'll go though all the steps of Disk Management to change a drive's letter, that way I can set it up in the startup folder?   EDIT:      I get annoyed having to always go into disk management and change the drive letter back to F when this happens   I am just pointing it out in case someone missed it, because I already use Disk Management to change the drive letter back to F. If it stayed there then I would have a problem.


codeigniter : My emails are sending to spam on gmail

public function  booking() {                         $this->load->helper(array('form'));                         $this->load->library(array('session','email'));                         $this->load->helper('string');                         //$nwdb['wen_memid']        = $wen_memid                ='W'.random_string('alnum',3).'E'.random_string('alnum',3).'N';                      $name      = $this->input->post('name');                      $phone     = $this->input->post('phone');                      $email         = $this->input->post('email');                      $date  = $this->input->post('date');                      $message   = $this->input->post('message');                                               $config['protocol'] = 'sendmail';                         $config['mailpath'] = '/usr/sbin/sendmail';                         $config['charset'] = 'iso-8859-1';                         $config['wordwrap'] = TRUE;                         $config['mailtype'] = 'html';                          $this->email->initialize($config);                         $this->email->from('mail@gmail.com');                         $this->email->to('mail@gmail.com');                                              $this->email->subject('Appoinment Booking');                         $this->email->message('
Contact Us

                                      Name: 	 '.$name.'

                                       Phone: 	 '.$phone.'
                                       Email: 	 '.$email.'

Date :	    '.$date.'

Message:    	'.$message.'

                                                           ');                                                                                if ($this->email->send())                         {                             redirect('/welcome/bookonline');                         }                         else                         {                             //error                             $this->session->set_flashdata('msg','
There is error in sending mail! Please try again later
');                             redirect('/');                         }                                                  }  The above is my controller welcome code. welcome/booking is controller name. The form contain "name, email, date, contact number and message" section on it. i want to get the mail to the inbox section.i dont use smtp for this. But here, Every mail is sending to the spam mail. please help me as soon as possible.


Add dynamic email address in CC Journey Builder

I would like to send out Reminder Emails via a Journey. For the Second Reminder in the Journey the Manager of the email receiver should be on CC. As there are different Managers for all the people who are entering the Journey, the CC must be personalized via AMP Script.   Support has enabled the CC and BCC in Journey Builder. But whenever I try to add personalization String in CC field (Under Email Send Definition in Journey Builder) - it throws an error : 'Enter a valid email address'.   Can anyone help me with the use case Or suggest any other viable solution?


Multiple POST SQL injection from same IP

Recently I checked my Apache domlog and noticed the following attack:  POST /index.php?page=shop.item_details&cat_id=150&flp=flp_images.tpl&prod_id=9191&vmcchk=1&option=com_vm&Itemid=999999.9)+%2f**%2fuNiOn%2f**%2faLl+%2f**%2fsElEcT+0x393133359144353632312e39,0x393133358134383632322e39...   which is an obvious attempt at SQL injection.  This proceeded to occur around 3000 times from the same IP.  Now I could blacklist this IP but are there some better rules to apply to prevent things like this from occuring server side?  This server is running CentOS 6.4


Can Cellphones be used for Ad Hoc Communication?

Can Cell Phones be (legally) used Adhoc, (ie, Point-to-Point) Communication?  For example, let's say I'm in a remote area of the woods, or a valley.  Can I configure cell phones to be used as true walkie-talkies even though neither one of them use has a cell phone tower?  (Besides, it might be handy to use this on, oh, say, a drone, for photography purposes.  I intend to comply with all regulations regarding use of my drone.)  This goes for those modules too, I can hook them up to a , for example.    In the latter case I could just buy a nice antenna, I guess....   What kind of range would either of these things have if they are feasible?  I wanted to get my ham radio license, but I have my second year of engineering school to finish up.  Also: Might you suggest any alternatives (I hope this doesn't make my askance too open- but, it may be worth noting , or moreover, it's very upvotable answer! Alas, I doubt they have too much bandwidth...)


kernel_task hundreds of % CPU yet cpu frequency is being lowered

I'm trying to solve the mystery of a crazy high cpu usage on kernel_task.  MacBook Pro (Retina, Mid 2012), 2.7 GHz Intel Core i7, Yosemite 10.10.2  I saw some advice to download the Intel Power Gadget. That showed me that the my CPU is slowing way down. How do I fix this? When this happens, I can sometimes cycle the power on the MBP. But this is driving me crazy.


Wrong pgfplots plot for function with vertical asymptote

I want to plot the function $\frac{3 x}{1 + x}$ with pgfplots. Using  \begin{tikzpicture}     \begin{axis}[axis x line=none, axis y line=none, no markers]         \addplot {3 * x / (1 + x)};     \end{axis} \end{tikzpicture}   I get this:   This is obviously wrong. The same function plotted in Grapher.app:


In Linux's command line, to determine whether a given program is installed and in scope, I run $ which [program name] and see whether a path is output in response.  Now, for work, I use Windows and am starting to learn PowerShell.  How can I determine from the Windows command line, or PowerShell, whether a given program is installed?


I'm looking for the basic loop like:  for(int i = 0; i < MAX; i++) {   doSomething(i); }   but for bash.


Determine all functions $f(x)$ such that $f(f(x+y))=f(x)+f(y)$

The question is from :     Find all continuous functions $f:\mathbb R\to \mathbb R$ such that for any real $x$ and $y$,   $$f(f(x+y))=f(x)+f(y).$$   I'm totally new to functional equations so please correct me if I make a mistake.   I try plugging in simple functions and I find that $f(x)=0$ and $f(x)=x+c$ for some $c \in \mathbb R$ works.  Then I believe the next step is to derive $f(x)=x+c$ as a solution.  Let $y=0$. Then we have  \begin{align} f(f(x))=f(x)+f(0) \end{align}  Then we can make the substitution $u=f(x)$, which produces  $$f(u)=u+c$$  since $f(0)$ is just a constant.   Hence the solutions are $f(x)=0$ and $f(x)=x+c$ for some $c \in \mathbb R$. $\Box$    Is this a valid answer? As some of you may know the AMO is happening in a few days and I would appreciate any help in improving the quality of my answers.


As a non-Finnish citizen, am I subject to income-based traffic fines if the traffic violation occurred in Finland?

I read on  ()  that most of Scandinavia determines fines based on income. E.g.:     In 2002, a Nokia executive was fined the equivalent of $103,000 for going 45 in a 30 zone on his motorcycle.   As a non-Finnish citizen and residing outside Finland most of the year, am I subject to income-based traffic fines if the traffic violation occurred in Finland? If so, how do the Finnish authorities find out my income?


Null pointer exception java index comparison

public int getPos(int index) {     if(this.hasAllTerms == false){         throw new IllegalArgumentException("Not all terms are present");     }     else if(index < 0 || index > terms.size()){         throw new ArrayIndexOutOfBoundsException("Index out of bounds!");     }      return minSnip.get(minSnipIndex)[index+1];   }  }   at the else if line my Junit test fails and says null pointer exception. Where is a null pointer?


How can I disable laptop keyboard but not wireless keyboard? (Windows 7)

I am using Windows 7 on an Acer Aspire 5755G laptop. How can I disable my laptop keyboard without disabling the wireless external keyboard?  (I guess I am looking for the Windows 7 equivalent of .)


Mavericks Internet Sharing Ethernet to Wifi suddenly stopped working

I'm using Internet Sharing to convert Ethernet into a wifi hotspot through my Macbook Pro. I'm using the latest version of Mavericks, and today suddenly my internet sharing stopped working. I tried looking for people with similar problems using Google but couldn't find any completely similar stories. Things I tried:   set up Internet Sharing again using a different setup (e.g. different channel) checked       sudo launchctl list | grep bootp   in the terminal (found that using Google), but it was set on anonymous already   unplugged my ethernet cable, although my internet on the Macbook works just fine   Maybe something that helps: whenever I try Internet Sharing the corresponding icon very briefly appears but then goes on into a icon indicating looking for wifi.  ifconfig gives me:  lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384     options=3<RXCSUM,TXCSUM>     inet6 ::1 prefixlen 128      inet 127.0.0.1 netmask 0xff000000      inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1      nd6 options=1<PERFORMNUD> gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280 stf0: flags=0<> mtu 1280 en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500     options=10b<RXCSUM,TXCSUM,VLAN_HWTAGGING,AV>     ether a8:20:66:4b:c1:8d      inet6 fe80::aa20:66ff:fe4b:c18d%en0 prefixlen 64 scopeid 0x4      inet 192.168.0.6 netmask 0xffffff00 broadcast 192.168.0.255     nd6 options=1<PERFORMNUD>     media: autoselect (100baseTX <half-duplex>)     status: active en1: flags=8823<UP,BROADCAST,SMART,SIMPLEX,MULTICAST> mtu 1500     ether 5c:96:9d:91:4c:53      nd6 options=1<PERFORMNUD>     media: autoselect (<unknown type>)     status: inactive en3: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500     options=60<TSO4,TSO6>     ether d2:00:12:7b:27:00      media: autoselect <full-duplex>     status: inactive fw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 4078     lladdr 10:dd:b1:ff:fe:27:b2:70      nd6 options=1<PERFORMNUD>     media: autoselect <full-duplex>     status: inactive p2p0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 2304     ether 0e:96:9d:91:4c:53      media: autoselect     status: inactive bridge0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500     options=63<RXCSUM,TXCSUM,TSO4,TSO6>     ether aa:20:66:b4:91:00      Configuration:         id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0         maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200         root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0         ipfilter disabled flags 0x2     member: en3 flags=3<LEARNING,DISCOVER>             ifmaxaddr 0 port 6 priority 0 path cost 0     nd6 options=1<PERFORMNUD>     media: <unknown type>     status: inactive   Please let me know if you need additional information!


Batch command to delete files from file list

This code works fine. it deletes files from a file list:  For /f %%a in (file.lst) do del %%a   But why is the below one not working? It deletes the .lst file itself:  if exist file.lst (      set filelist="file.lst"     ) else (       set filelist="default.lst"     )     for /f %%b in (%filelist%) do del %%b       Also this is not working too:  for /f %%b in ("%filelist%") do del %%b           file.lst and default.lst contain something like this:      d:\1.txt     d:\2.txt     d:\abcd.bmp


How to render a model with pixel art/sprite textures and have it not be blurry?

I've made a model that's PS1-eqse in the vain of games like Mega Man Legends, but whenever I try to render it in Blender, it looks absolutely atrocious.  I've disabled Anti-Aliasing, turned off MipMaps in Blender Preferences, which DID make the pixel textures clearer, but only in viewport. But it still looks awful.   Anything else I can do to make the render show the pixel textures clearer?


Blender edit mode will only let it move stuff at intervals

I am new to blender and using Blender in 2D. I was just in edit mode moving things around, and then it would only let me move things at certain intervals. To clarify, I could move things, but it would only let me move it by a certain amount, no more, no less  From here To here


How do I recover deleted rows from one table while having Recovery SIMPLE Model? I am using Microsoft SQL Server 2014

How do I recover deleted rows from a table while having Recovery SIMPLE Model? Database is in Microsoft SQL Server 2014. I have managed to find them in fn_dblog table before data is overwritten with a new one. Can I do anything with it?  SELECT * FROM fn_dblog(NULL, NULL) WHERE Operation = 'LOP_DELETE_ROWS'   I also find out the specific time at which rows were deleted.  USE Databasename GO SELECT [Current LSN],  Operation, [Transaction ID], [Begin Time], [Transaction Name], [Transaction SID] FROM fn_dblog(NULL, NULL) WHERE [Transaction ID] = ‘000:000001f3' AND [Operation] = 'LOP_BEGIN_XACT'   I've read SIMPLE Recovery doesn’t support transaction log backup. But is there really no way to restore that data?


This is an area of English that I consistently have trouble with. Consider the following sentences.   I have a couple of books on my desk. I have a bunch of books on my desk. I have a number of books on my desk. I have a few books on my desk. I have several books on my desk. I have many books on my desk.   How many books, give or take, do I have on my desk in each case?   [digression: one example of how I tend to get these wrong is the following: not long ago, my wife (native speaker of American English) and me were out with a few friends from out of town. At one point I said "[famous landmark] is only two hundred meters from here", to which my wife replied "no, it's more like a a couple hundred meters".]


Uniform convergence of derivatives, Tao 14.2.7.

This is ex. 14.2.7. from Terence Tao's Analysis II book.   Let $I:=[a,b]$ be an interval and $f_n:I \rightarrow \mathbb R$ differentiable functions with $f_n'$ converges uniform to a function $g:I \rightarrow \mathbb R$. Suppose $\exists x_0 \in I: \lim \limits_{n \rightarrow \infty} f_n(x_0) = L \in \mathbb R$. Then the $f_n$ converge uniformly to a differentiable function $f:I \rightarrow \mathbb R$ with $f' = g$.  We are not given that the $f_n'$ are continuous but he gives the hint that $$ d_{\infty}(f_n',f_m') \leq \epsilon \Rightarrow |(f_n(x)-f_m(x))-(f_n(x_0)-f_m(x_0))| \leq \epsilon |x-x_0| $$ This can be shown by the mean value theorem. My question is : How does this help me to prove the theorem ?


How to combine SFDX Development lifecycle with integration sandbox refresh?

We are using SFDX in a CI/CD process with good results, however we need sometimes to refresh our integration sandbox. When the Connected App we used to authorize SFDX cli and store the public key used for private-key authentication is copied over from production, the Connected App Consumer Key is changed, and we need to update the secrets in our CI/CD to work around this problem.  Are there better strategies to work with SFDX and integration sandboxes?


has a profile picture of a smiling face:    However, in questions or answers, the smaller version of this image shows up with a strange grey corruption at the bottom, blocking the smile:    The image returned for the thumbnail is    Why is this? Is there an error in the thumbnail creation process?*    * If there is a bug, I suppose the problem is with Imgur, but perhaps ye could pass it onto them?


I want to check the output of multiple files by typing a single command

(directory=$(python -c 'import read_params; print(read_params.get_directory())') nsrc=$(cat $directory/master.pixels|wc -l) tail $directory/forward_src0{1..$nsrc}_ls00/out_data_forward)   What the above does is that a simulation is running (what that is is not important) and the above command tracks it, by printing out the files in the directory:   ..../forward_src01_ls01/out_data_forward ..../forward_src01_ls02/out_data_forward ..../forward_src01_ls03/out_data_forward ..../forward_src01_ls04/out_data_forward   and so on till src_08.  It runs in some linux systems without error. But in my system, it throws  the below error:  [prasad@daahpc1 sparc_flows]$ (directory=$(python -c 'import read_params; print(read_params.get_directory())') > nsrc=$(cat $directory/master.pixels|wc -l) > tail $directory/forward_src0{1..$nsrc}_ls00/out_data_forward) tail: cannot open /scratch/prasad/sparc_test/forward_src0{1..8}_ls00/out_data_forward' for reading: No such file or directory   To be clear, these files do exist... I can open them individually, but not in a batch.


Nginx configuration to prevent spam connections on HTTP long polling endpoint

I have a HTTP long polling endpoint that anyone can connect to for updates. The nature of the application requires the solution to be open, it cannot sit behind any form of authentication. The server accepts a maximum of 1000 connections, but currently there is nothing stoping one person from spamming all 1000 connections.   Is there any nginx configuration options that can be used to attempt to limit one connection per user?


Selecting Unique Elements From a List in C#

How do I select the unique elements from the list {0, 1, 2, 2, 2, 3, 4, 4, 5} so that I get {0, 1, 3, 5}, effectively removing all instances of the repeated elements {2, 4}?


Getting data from the backbuffer D3D11 using Map

I'm having some trouble using ID3D11DeviceContext::Map() correctly. Here's the whole function so far:  Color Graphics::GetPixel(int x, int y) const {     //Temp frame buffer descriptor;     CD3D11_TEXTURE2D_DESC pFrameDesc;     pFrameDesc.Width = WindowWidth;     pFrameDesc.Height = WindowHeight;     pFrameDesc.CPUAccessFlags = D3D11_CPU_ACCESS_READ;     pFrameDesc.Format = DXGI_FORMAT_B8G8R8A8_UNORM;     pFrameDesc.MipLevels = 1u;     pFrameDesc.ArraySize = 1u;     pFrameDesc.SampleDesc.Count = 1u;     pFrameDesc.SampleDesc.Quality = 0u;     pFrameDesc.Usage = D3D11_USAGE_DEFAULT;     pFrameDesc.BindFlags = D3D11_BIND_UNORDERED_ACCESS;     pFrameDesc.MiscFlags = 0u;      // Create temp frame buffer(2d texture)     wrl::ComPtr<ID3D11Texture2D>pFrame = nullptr;     HRESULT hr = pDevice->CreateTexture2D(&pFrameDesc, nullptr, &pFrame);     GFX_THROW_INFO(hr);      hr = pSwapChain->GetBuffer(0, __uuidof(pFrame), &pFrame);     GFX_THROW_INFO(hr);               D3D11_MAPPED_SUBRESOURCE map;     map.RowPitch = WindowWidth * 4;     map.DepthPitch = WindowHeight * 4;          //Throwing here, CPU access flags problem.      hr = pContext->Map(pFrame.Get(), 0u, D3D11_MAP_READ, 0u, &map);     GFX_THROW_INFO(hr);      pContext->Unmap(pFrame.Get(), 0u);            return { 0.0f, 0.4f, 0.0f, 0.0f }; }  I'm getting an exception thrown at pContext->Map() "Map cannot be called with MAP_READ access, because the Resource was not created with the D3D11_CPU_ACCESS_READ flag. " Which is confusing as the newly created resource has the D3D11_CPU_ACCESS_READ flag enabled. This is also true If I try MAP_WRITE and change the access flags to match. I've also tried ORing the flags together with no luck. The ultimate use of this function is to be able to create a CPU side array of Color objects (Colors are currently a struct of four floats) Which I can then send onto the NewTek NDI sdk. But I feel it would also be useful for saving screen shots, creating colour pickers etc. Any ideas welcome!


What would Skynet do after it defeat humans?

What is ultimate goal of Skynet? It started WW3 to eliminate humans, so what will it do after the last humans die? It not like in Matrix, as Skynet has human-independent sources of power supply. So it really doesn’t need humans.


What are the main reasons the elves did not show up in force to defeat Sauron?

During The Great Battle of the Last Alliance, there were an estimated 100,000 elves that fought with the armies of Isildur. This was one of the first scenes in the first LOTR movie. However, in the trilogy, it appears that only a small number of elves show up to Helms Deep and overall left the majority of the fighting to the humans. Why did the elves not participate during the rest of the war?


How much do we know about p-hacking "in the wild"?

The phrase p-hacking (also: , "snooping" or "fishing") refers to various kinds of statistical malpractice in which results become artificially statistically significant. There are many ways to procure a "more significant" result, including but by no means limited to:   only analysing an "interesting" subset of the data, in which a pattern was found; failing to adjust properly for multiple testing, particularly post-hoc testing and failing to report tests carried out that were not significant; trying different tests of the same hypothesis, e.g. both a parametric and a non-parametric test (), but only reporting the most significant;   experimenting with inclusion/exclusion of data points, until the desired result is obtained. One opportunity comes when "data-cleaning outliers", but also when applying an ambiguous definition (e.g. in an econometric study of "developed countries", different definitions yield different sets of countries), or qualitative inclusion criteria (e.g. in a meta-analysis, it may be a finely balanced argument whether a particular study's methodology is sufficient robust to include); the previous example is related to optional stopping, i.e., analyzing a dataset and deciding on whether to collect more data or not depending on the data collected so far ("this is almost significant, let's measure three more students!") without accounting for this in the analysis; experimentation during model-fitting, particularly covariates to include, but also  regarding data transformations/functional form.   So we know p-hacking can be done. It is often listed as one of the  and was mentioned in the ASA report on statistical significance, , so we also know it's a Bad Thing. Although some dubious motivations and (particularly in the competition for academic publication) counterproductive incentives are obvious, I suspect it's hard to figure out quite why it's done, whether deliberate malpractice or simple ignorance. Someone reporting p-values from a stepwise regression (because they find stepwise procedures "produce good models", but aren't aware the purported p-values are invalidated) is in the latter camp, but the effect is still p-hacking under the last of my bullet points above.  There's certainly evidence that p-hacking is "out there", e.g.  looks for tell-tale signs of it infecting the scientific literature, but what is the current state of our evidence base about it? I'm aware that the approach taken by Head et al was not without controversy, so the current state of the literature, or general thinking in the academic community, would be interesting. For instance do we have any idea about:   Just how prevalent is it, and to what extent can we differentiate its occurrence from publication bias? (Is this distinction even meaningful?) Is the effect particularly acute at the $p \approx 0.05$ boundary? Are similar effects seen at $p \approx 0.01$, for instance, or do we see whole ranges of p-values affected? Do patterns in p-hacking vary between academic fields? Do we have any idea which of the mechanisms of p-hacking (some of which are listed in the bullet points above) are most common? Have some forms proven harder to detect than others because they are "better disguised"?   References  Head, M. L., Holman, L., Lanfear, R., Kahn, A. T., & Jennions, M. D. (2015). . PLoS Biol, 13(3), e1002106.


What Happens to Someone Whose Horcrux Was Destroyed When they Die?

When someone makes a Horcrux, part of their soul is stored in it, and when the Horcrux is destroyed, so is part of their soul.  In the case of Voldemort, he had split his soul into so many parts that he had irreparably damaged it, so when the 2nd to last part of his soul was released, it appeared in limbo, where Harry saw it.  J. K. Rowling has said that after Voldemort was killed, that was all that remained of him.  But what about a person that isn't as twisted as Voldemort.  If someone creates a single Horcrux, so they have split their soul, but not to the point that Voldemort has, and then the Horcrux is destroyed, what happens when that person dies?  Will their incomplete soul be as damaged as Voldemort's, or will they be able to cross over to the afterlife?  Or is there a chance they'll be either trapped in limbo or be trapped on this side, as a ghost?


Can I create a link from one file into another one. So that when the resulting pdf files are in the same directory the link takes me from one to the other? Does another package do that?  Added on 1/20/2012, Reason for the question: I want to submit a document to an organization which wants it to be split into A.pdf for body of paper and B.pdf for the references, C.pdf etc. I assume they will reside in a common directory. They may be viewed individually or coalesced together into a single document.


Why girth of Petersen Graph is five? (Proof)

I want to know, what is the mathematical proof that shows the shortest cycle in Petersen Graph has length five?


Where is the password never expires setting for local users on Windows Server 2019

On Windows Server 2019 it just prompted me to change my password because it is due to expire. This is a local user (not an AD user) and I don't want the password to expire for this user (it has a strong, randomized password). I looked around in the UI but I couldn't find a way to do this. How is this done in Server 2019?


rigid body constraints and animation length

blender offers 250 frames for rigid body object animation. Is there a way to increase this number?


Why is optimisation solved with gradient descent rather than with an analytical solution?

I'm trying to understand why, when trying to minimise an objective function, gradient descent is often used, rather than setting the gradient of the error to zero, and solving it analytically.  In school, I was taught that in order to minimise a function, you take it's first derivative with respect to the parameters, and then set this to zero. Solving this equation then yields one or more solutions (local minima), and you can try each one out to find which is the global minimum.  However, when learning about neural networks, I have seen that training is carried out by using gradient descent (or back-propagation in the case of multi-layer networks). Here, the gradient of the error function is taken, but instead of setting this to zero, you just move the parameters a small amount in the direction of this gradient.  I don't understand why the analytical approach isn't used, given that it has the obvious strength that the solution is perfect, and guarantees returning the global minimum, rather than potentially a local minimum as with gradient descent. My intuitive reason why the analytical approach isn't used is that it becomes very hard to solve an equation with all these parameters by hand, but, perhaps naively, I would have thought that there were automated ways to solve these kind of complex equations these days? Wouldn't the effort in enabling this be worth it, considering the better results, compared to the effort in getting gradient descent to work only to get inferior results?  Thank you :)


Double precision with Fortran sin and cos

I'm investigating floating point accuracy in Fortran 95 and I have the following code:    PROGRAM MAIN   IMPLICIT NONE   integer, parameter :: dp = SELECTED_REAL_KIND(15,307)   REAL(dp), PARAMETER :: DEG2RAD = ATAN(1.d0)/45.d0  ! ---- Calculate sine and cosine   WRITE (*,*) COS(60.d0*DEG2RAD) - DBLE(0.5)   WRITE (*,*) SIN(60.d0*DEG2RAD) - SQRT(3.d0)/2.d0    END PROGRAM MAIN   I'm expecting both of the printed lines to be zero, but only the latter one is. Could anyone explain why that is? Of course I understand that the errors are smaller than double precision, but still the first one prints 1e-16, while the second one shows only zeros. Is there a way to make them both "exactly" zero?


$\int^b_af(x)\,x^k \, dx=\int^b_ag(x)\,x^k \, dx$ , for all $k \in \mathbb{N}$

If $f, g\in \mathcal{C}([a,b],\mathbb{R})$ and $$\int^b_af(x)\,x^k \, dx=\int^b_ag(x)\,x^k \, dx, \text{ for all } k \in \mathbb{N}$$ Prove that $f=g$.   I'm trying to prove this but I don't know how to proceed. Any suggestions?


How is it that gravitational field inside a spherically symmetric body is zero in case of General Relativity where the equations are nonlinear unlike Newtonian gravity where the force is perfectly $1/r^2$.


Something has seriously gone wrong with my windows 8.1 PC

I just switched on my computer, running Windows 8.1 and all of these weird symbols have replaced the names of my items on the desktop and apps!!      Can someone help me on this? I'm really scared right now


How vulnerable are you by installing a desktop on Ubuntu Server?

I've read around that installing an Ubuntu desktop on top of an Ubuntu Server provides security holes and performance issues. But I can't find anywhere as to describe what security holes would develop from doing this? I am thinking of installing a light weight desktop such as Xubuntu. Can anyone explain further? What type of security holes? Do I need to be concerned?  All help is much appreciated!


Is there a parameter for the ConversionPattern that will include the host computer's name? e.g.  <conversionPattern value="%hostname %date [%thread] %-5level %logger [%ndc] - %message%newline" />   I can't find anything in the log4net documentation that lists what % fields are available...


I am working on some circuit lab homework this week and am a bit stumped by something I just can't seem to find anywhere in my Circuit Analysis I book.  The lab has me construct the following circuit on my breadboard:         – Schematic created using   I then mark down the ammeter and voltmeter readings, taking away one resistor each time until down to one. Using this information, my worksheet asks:  When the LED has current flowing through it, a voltage can be seen across it.  Thus, the LED will have a resistance. Calculate the resistance of the LED for each of the four cases and record your results in Table III  My first thought is R=V/I. But the result just doesn't seem right to me.  Example data I have measured from this circuit with all 4 resistors: 1.586V, 186.2 microAmps. Using these measurements, the LED has a resistance of 8517.72 Ohms? That can't be right can it?


SELECT CM.* FROM EMPLOYEE CM  ORDER BY CM.ROW_ID   The row_id is varchar type and I want to retrive the sorting order as follows  In the above query ROW_ID is varchar2 in Database, and  I want to retrive the values like an integer.  I have tried with ORDER BY TO_NUMBER(CM.ROW_ID) but it is giving error like invalid number  EDIT:-  My sample data is:-  1 1.1 1.5 1.6 2.5 2.6 1.7 1.8 1.9 1.10 1.11 1.12 1.2 1.1.1 1.3 1.4 1.1.1.1 1.13 2 2.1 2.2 2.3 2.4 1.16 1.14 1.15 1.17   I want to retrive like:-  1 1.1 1.1.1 1.1.1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 1.10 1.11 1.12 1.13 1.14 1.15 1.16 1.17 2 2.1 2.2 2.3 2.4 2.5 2.6


I'm studying for my Platform Dev I exam, and I've been reading about interfaces. I understand how they work in abstraction, but what I don't understand is why you would use them. The documentation says they "provide a layer of abstraction to your code," but that doesn't really tell me anything. If you have to define all of the methods in your implementing class anyway, how does an interface make your code any cleaner?  Thanks for your help!


Why can't people with the "edit answer" privilege edit comments?

I haven't found an explanation on Stack Exchange about what's the difference between the concepts of answers and comments. If we can edit answers, why can't we edit comments too?  For example, I've found a comment (the second one in this ) which has an incorrect link (the comment author states this himself), and we can't edit that incorrect comment. Why?


Open Source Ubuntu alternative to Quickbooks

I am looking to open my own business, and am trying to find an Ubuntu alternative to QuickBooks Professional.  I would love to find a SOLID business management system that allows estimating, invoicing, customer retention, full banking functions, and finally full accounting ability that makes tax time easy work for my CPA.  If anyone has any ideas, or are currently using an open-source program to run their business, I would be extremely interested in hearing from you, and your personal input on the software functionality.


"If" and "Whether" - Is interrogative IF always replacable by WHETHER?

I am asking here specifically about if and whether  when they introduce embedded questions (or to be more technically accurate, subordinate interrogative clauses):  I don't know if Bob's here. I don't know whether Bob's here.  In the sentence above we can freely replace if with whether. There are some situations in which the reverse does not apply. We cannot always replace whether with if. For example in standard English, we cannot normally use if after a preposition:  The question of whether he is actually eligible didn't arise. *The question of if he is actually eligible didn't arise.  We cannot usually use interrogative-if directly followed by or not:  It's unclear whether or not he's a real elephant. *It's unclear if or not he's a real elephant.  There are several more examples. However, what I want to know is:  Are there any examples where we can use interrogative-if but we can't use whether?   Edit note: There is an if that we find in conditionals that can't be replaced by whether. However, this is conditional, not interrogative, if.


I am creating an ZIP file with ZipFile in Python 2.5, it works ok so far:  import zipfile, os  locfile = "test.txt" loczip = os.path.splitext (locfile)[0] + ".zip" zip = zipfile.ZipFile (loczip, "w") zip.write (locfile) zip.close()   but I couldn't find how to encrypt the files in the ZIP file. I could use system and call PKZIP -s, but I suppose there must be a more "Pythonic" way.  I'm looking for an open source solution.


Why is it not required to double quote `$bar` in assignment `foo=$bar`?

From      The main places where it's safe not to use the double quotes are:         in an assignment: foo=$bar (but note that you do need the double quotes in export "foo=$bar" or in array assignments like   array=("$a" "$b"));       Does it mean that it is not required to double quote $bar in assignment foo=$bar? Why? Why do we need the double quotes in export "foo=$bar" and in array assignments like array=("$a" "$b")?   Thanks.


Are there any non-green, non-artifact mana ramp cards?

I have looked and can't seem to find any.  I have seen many green cards and some artifacts that do this, but nothing in Red, Blue, Black or White.    Are there any?  Note: By "Mana Ramp" I mean a card that generates mana, or one that lets you play more than one land per turn.  The end result, for example, would be on turn 4, playing a white only deck, I could tap more than 4 mana.  (Normally you only get one land per turn so a max of 4 mana on turn 4.)


Background: If you connect a 2nd monitor/projector by cable to a computer, you often can easy make the screen expand, so each monitor have there own area of the screen, and you can move windows between them. If the screen is far away, a network connection could be easier.  Question: If I want to connect a 2nd monitor/project by network/vnc, can I share an area outside the 1st monitors area? so I can move windows between them. How do I set up the screen size, and what area to share, in a VNC server?  Computers: VNC-server: running kubuntu, open for sugestion for what VNC server software to use. VNC-client: a rasbery-pi, runing Raspbian, and running xtightvncviewer in listening-mode


C# - Field values of an array picking up values of a loop

I'm training C# on a simple card game. I have methods that shuffle and deals the cards. I have a random deck that is well generated. Is it possible to set an array for the player1 cards, picking up the first ten values of the array. Here is a part of my code :   currentCard = 0;     public Card DealCard()     {         if (currentCard < deck.Length)             return deck[currentCard++];         else             return null;     }   I want to pick up for example ten first values of   deck[currentCard++]   Any suggestions will be appreciated, thanks for your help !


By using set identities, prove that for all sets A and B

$(A − B) \cap (A \cap B) = \varnothing$ how can this be solved


How do I solve this issue I am having when graphing this CDF?

The graph is not working as intended and I am getting the following error code: ! Package pgfkeys Error: I do not know the key '/tikz/discontinuous' and I am going to ignore it. Perhaps you misspelled it.See the pgfkeys package documentation for explanation.Type H  for immediate help.... \end{axis}  My code is below.  \documentclass[]{article}  \usepackage{pgfplotstable} \usepackage{pgfplots}  \begin{document}  The C.D.F is as follows:  \[F(x)= \begin{dcases} 0&\text{$x<1$}\\ \frac{11}{36}&\text{$1\leq x<2$}\\ \frac{20}{36}&\text{$2\leq x<3$}\\ \frac{27}{36}&\text{$3\leq x<4$}\\ \frac{32}{36}&\text{$4\leq x<5$}\\ \frac{35}{36}&\text{$5\leq x<6$}\\ 1&\text{$x\geq 6$}\\ \end{dcases} \]  The C.D.F can be graphed as follows:  {\centering \begin{tikzpicture} \begin{axis}[ clip=false, jump mark left, ymin=0,ymax=1, xmin=0, xmax=5, every axis plot/.style={very thick}, discontinuous, table/create on use/cumulative distribution/.style={     create col/expr={\pgfmathaccuma + \thisrow{f(x)}}    } ] \addplot [red] table [y=cumulative distribution]{ x f(x) 0 0 1 11/36 2 20/36 3 27/36 4 32/36 5 35/36 6 1 }; \end{axis} \end{tikzpicture} \par} \end{document}


TV series where space captain dies leaving children in charge of ship

Need help with the name of a TV series I believe is from the 80's. A group of kids from about 5 to their early 20's set out for another planet that's light years away. The captain is in his 30-40's. The captain gets killed when an airlock blows him into space. The boy that was suppose to take over reluctantly does. Later in the show they meet this guy on an abandoned station and rescue him. He turns out to be a pain in the butt.   Does anyone remember the name of the show/mini series.


I’m trying to install Ubuntu 16.04 alongside with Windows 7. My HDD supports only 4 partitions. Three of the partitions are taken up by windows. The fourth one is labelled as free space.   Now, how do I make root, swap and home partitions? Should I format my free space as primary with EXT4 first (if so, what should be the mount point?) and then create logical partitions for root/Home/swap? How do I go about this?  Edit: I tried to use the automatic installation option for dual boot. However I got the error ubi partman exit code 141. Probably because it tried to create two separate partitions for root and swap.   $ sudo parted -l Model: ATA ST1000DM003-1CH1 (scsi) Disk /dev/sda: 1000GB Sector size (logical/physical): 512B/4096B Partition Table: msdos Disk Flags:   Number  Start   End    Size   Type     File system  Flags  1      1049kB  106MB  105MB  primary  ntfs         boot  2      106MB   277GB  277GB  primary  ntfs  3      277GB   903GB  627GB  primary  ntfs


How to delete standard Persian keyboard layout on windows 10?

There are two layouts installed for Persian on my laptop.      I want to uninstall the standard (FAS) layout. But there's only one layout shown in Region & Language      I've also tried to . So I navigated to HKEY_USERS\.DEFAULT\Keyboard Layout\Preload and deleted the corresponding key but after restarting the system, the key is in the registry     and FAS is shown in keyboard layouts in the lower right corner of the screen.


Vote limit approaching notifications for comments, questions and answers

I just went ahead and voted on some questions, answers and comments on UX. Upon voting on an answer, notification said exactly this: You have 5 votes left today. And when I voted 5 more times on questions/answers, I had some votes for comments left, apparently, which I then used up too.  Technically, I still had votes after the Daily vote limit reached. Vote again in 22 hours message appeared. Those votes were comment votes. It wasn't clear enough. I was in doubt, so I decided to upvote another comment and succeeded. After a few more times, "vote limit reached" appeared again, now in regard to comment votes, but with no such explicit mention.  So do I have votes left or do I not?


How do Feign death and resurrection spells interact?

What happens if a caster casts  on himself and another caster (that believes that the first caster is really dead) try to cast a resurrection spell? Does the second caster understand that the first one is not really dead?


:: Operator Without Preceding Class or Namespace

I am getting started coding a win32 windows application and ran across a c++ syntax that I haven't seen before in some  on the MSDN.  LRESULT CALLBACK DemoApp::WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) {      /* Code omitted for clarity */      ::SetWindowLongPtrW(     hwnd,     GWLP_USERDATA,     PtrToUlong(pDemoApp)     );      /* Code omitted for clarity */  }   I am used to seeing a class / namespace preceding the :: operator.  What does this mean when there is no preceding identifier.  Also, is there a name for this construct so I can efficiently Google more information?  Thanks!


Add div Element with class using javascript or jQuery

Ep 12

   I want to add another div like "ep" div in span with class "dub" with javascript or Jquery


Best option for crawling a website that loads content via ajax

I'm trying to scrape a website and ingest some of it's content. However the content I need is actually loaded via ajax on the source website and those endpoints are locked to their domain (i get 401 error).  Is there an elegant solution to scraping websites that also allows them to run their JS first? Some kind of small browser wrapper I could call on a cron once per day to get new content?  Appreciate any direction on this :)


Given a function $g$ which has derivative $g'$ for all x $\in {R}$ and satisfying $g'(0)=2$ and $g(x+y)=e^yg(x)+e^xg(y)$ for all $x,y\in {R}$ Show that $g'(x)+g(x)-2e^x=0$  $\dfrac{g(x+y)}{e^{x+y}}=\dfrac{g(x)}{e^{x}}+\dfrac{g(y)}{e^{y}}$ Putting $x=0$, $g'(y)=2e^y+g(x)$ Also putting $y=0$,we get, $0=e^xg(0)\implies g(0)=0$ I had a strong hunch that $g(x)=e^x-e^{-x}$ but it does not satisfy $g(x+y)=e^yg(x)+e^xg(y)$ Please help.


Outline around text on CMYK black background in Photoshop

I'm trying to make a document with one color black  (c:0,m:0,y:0,k:100) background with red text on it. However in CMYK the text has this weird grey white-ish edge. In RGB it doesn't show but in CMYK it shows. I'm wondering will this show when printing or do I need to use different methods? ie. using rich black etc.  Here's the RGB and CMYK comparison


Samsung Galaxy Y won't connect to the computer

I'm having problem connecting my Samsung Galaxy Y GT-S5360 to the computer using via USB.    Whenever I connect it, it automatically charges. Before there was a prompt to connect it to the computer but now it just charges directly. I have tried downloading the Samsung Kies but it still won't connect.


I have used the Area51 Proposal shares and also the flairs of profile but they don't target new tab or window I tried to add the target="_blank" but that doesn't seems to be work With Target   WithOut Target


Using a custom star type with a Gmail filter

I have set up a Gmail filter that marks all incoming mail from a certain mailing list with a star. Right now, the filter automatically applies the standard yellow star. How can I set it to use the blue star instead?


Does the Polyjuice Potion Dark Mark work?

I was just reading Harry Potter and the Deathly Hallows, and I was wondering, when Hermione Granger changed into Bellatrix Lestrange, she should've obtained the Dark Mark, temporarily.  Now, my question is: would the Dark Mark work if pressed?


Is there some way to prevent windows from realizing I've disconnected displays

I like arranging my windows in specific layouts but whenever my monitors go to sleep/turn off Windows10 rearranges my windows automatically.   Is there some way to make Windows10 think those monitors are plugged in even when they are powered off?  I understand that this may result in me not being able to get to my other windows easily if my monitor is off, but that's acceptable to me.


How do I alter a message in the message queue independent of site language?

I want to programatically alter a message in the message queue. The message I want to alter is set in the message queue by function comment_form_submit() in comment.module, i.e.:  if ($comment->status == COMMENT_NOT_PUBLISHED) {   if (!user_access('administer comments')) {     drupal_set_message(t('Your comment has been queued for review by site administrators and will be published after approval.'));   } }   Instead of this, I want the call to drupal_set_message() to be this:  drupal_set_message(t('Your comment will be published when you validate your e-mail address.'));   How do I do this?  Postscript: Based on the answer below by Topsitemakers, I got this working for any language by using array_search() inside a custom MYMODULE_comment_submit to search the message array, and then compare the translated strings to identify the key of the string to alter.  This is the working code I ended up with:  $mm = drupal_get_messages('status', TRUE); $key = array_search(t('Your comment has been queued for review by site administrators and will be published after approval.'), $mm['status']); if (FALSE !== $key) {   $mm['status'][$key] = t('Your comment will be published when you validate your e-mail address.'); } foreach ($mm['status'] as $msg) {   drupal_set_message($msg, 'status'); }


I have an educational background of biological sciences. I do not have formal education in mathematics or stats. I have been involved in medical research that has statistical methods like regression, survival analysis, Markov chains or discrete event simulations etc. I have been trying to understand these concepts, not systematically though, however I have developed a keen interest in stats. I want to develop a serious understanding of stats and want to achieve expertise. I understand that this will take years and lot of study and practical experience. I have started with books like Probability by Pitman or Statistics by David Freedman. Could you please suggest me few books, online resources, or other methods for systematically developing an understanding good enough to make a career in data analytics.


How do I cut a hole in a vector object I've drawn with the pen tool in Paint Shop Pro 8?

On a whim, I decided to try to recreate a high resolution Paint Shop Pro 8 logo icon.   The icon is a red painter's palette with a paint prush and the text "PSP 8".  I traced the outline of the palette, traced the paint brush handle, bristle clamp, and bristles, and typed the text all on different layers.  My difficulty comes in that the palette has a hole cut in the middle of it for the artist's thumb to grip. I've traced a vector path for the hole, but I don't know how to make the center of the hole (which I've specified should have no fill) be empty space in the middle of the outer outline of the palette.  I'm sure that this will be better illustrated by images than by my words, so here you are:    Now, it would be the easiest thing in the world to convert the palette and the hole to raster layers, select the outline of the hole, highlight the palette layer and delete those pixels, but I want to get better at using vector drawing tools and being able to cut a hole out of the interior seems like a pretty basic skill to have.


Hexblade's Curse + Booming Blade's secondary damage

While trying to minmax a build for a Bladesinger by way of the new TCoE book I happened upon a curious problem with which I need assistance. The bonus damage from Hexblade's Curse reads  [...] You gain a bonus to damage rolls against the cursed target. The bonus equals your proficiency bonus.  So my question can be summed up as 'What constitutes a separate damage roll?' Are damage rolls separated by source? Perhaps by damage type? Are they separated by when the damage is dealt? For example...  A creature is struck by a Bladesinger/Hexblade using the special Extra Attack feature in Tasha's Cauldron of Everything; once using a standard rapier, and once using Booming Blade. The creature is under the effects of Hexblade's Curse.  How is the damage calculated? Is the Hexblade's curse damage applied to the initial strike, the second strike, and the damage the creature takes when it moves? Or is the curse damage ignored when the creature moves since the source of that damage has already dealt the curse damage?


Why oobleck does not obey Newtonian dynamics?

In the following post we can see that some guys are walking on . As far as I know that, we can not predict the exact amount of strain if we predict some forces. therefore the curve will not be linear.  But my question is that, why does  not obey Newtonian dynamics?


I just purchased a root server from a web hosting provider, where I installed Ubuntu 18.04 LTS.   My server has an HDD of 320 GB SAS and 8 GB of RAM, and would host a Twitter-like web application. What size would you suggest for a swap file? Would a swap file as big as the amount of RAM be too much? A more than one year old  from Digital Ocean says that "Generally, an amount equal to or double the amount of RAM on your system is a good starting point. Another good rule of thumb is that anything over 4G of swap is probably unnecessary if you are just using it as a RAM fallback". Of course, 16 GB seem too much. What is your opinion?


Access Point NetgearWG602 - set home page

I want that everytime someone connect to my wifi network, the first browser webpage is one that I can set via admin page.  How can I achieve this with AP NetgearWG602?  I dont have any experience about that.  Just want to know whether it is possible and if so some hint to do that.  Thanks


Let $a,b,c$ be the length of sides of a triangle then prove that $a^2b(a-b)+b^2c(b-c)+c^2a(c-a)\ge0$

Let $a,b,c$ be the length of sides of a triangle then prove that: $a^2b(a-b)+b^2c(b-c)+c^2a(c-a)\ge0$  Please help me!!!


If J is a Jordan matrix. How to prove that the elements on the principle diagonal of $ e^J$ are exponential function of elements on the principle diagonal of $J$?  If it is two dimensional, then I can prove by calculating it. I have trouble proving it in general n $\times$ n case. Could anyone kindly help? Thanks!


How old were Aragorn and Arwen when they were married?

After the one ring was destroyed and Aragorn was crowned King of Gondor and Arnor, he and Arwen were married. Though he looks older than his bride, I'm learning that Arwen is actually older than Aragorn by at least 2,600 years. She's obviously robbing the cradle, but I can't get an exact fix on exactly how old they were when married.


Possible Duplicate:          I have mutt configured for CLI e-mailing. All's golden with the "this one just sucks less" client but...  I am now on a machine on which I can't install mutt at all, not even on my $HOME, so:   is there a way to use mail (/usr/bin/mail) to the same effect?   I Googled to no avail. Maybe it's because the term "mail" is not easy to "disambiguate" in a search?


A security guard wishes to address multiple people respectfully at once. Does he say:     Sorry, sir, but this ID is invalid.   or     Sorry, sirs, but your IDs are invalid.   or something like     Sorry, gentlemen, but your IDs are invalid.


non-italic numbering and text in theorem

\documentclass{aip-cp}  \usepackage[numbers]{natbib} \usepackage{rotating} \usepackage{graphicx}  \newtheorem{theorem}{Theorem} \newtheorem{conjecture}{Conjecture} \newtheorem{define}{Definition}  \begin{document}   \begin{theorem}  Let $t(G)= \mathrm{something \  dummy} $. Then      \begin{enumerate}     \item $t(P_r)=r$;      \item $t(K_m \times P_r)= r+1 \ \mathrm{for} \  m \geq 2$;     \end{enumerate}     \end{theorem} \end{document}   Hi, as above.   How can i make the the numbering and the text "something dummy " and "for" as normal text n non-italic?  Thank you.


Determine the convergence or divergence of the serie $\sum_{n\geq1}\frac{1}{(\ln n)^{\ln n}}$

How can I determine if $\sum_{n\geq1}\frac{1}{(\ln n)^{\ln n}}$, any ideas?


What is wrong with following document?   \documentclass{article} \usepackage{xepersian} \usepackage{verbatim}  \newenvironment{code}  {\begin{latin}\begin{verbatim}}  {\end{verbatim}\end{latin}}  \usepackage{enumitem} \begin{document} \begin{code} hello world! \end{code} \end{document}   Error:  ! File ended while scanning use of \next. <inserted text>                  \par  <*> untitled-4.tex   I also tried this:   \documentclass{article} \usepackage{listings} \usepackage{xepersian} \newenvironment{code}  {\begin{latin}\begin{lstlisting}}  {\end{lstlisting}\end{latin}}  \begin{document}  \begin{code} hello world! This is a code \end{code}  \end{document}   But the output is not what I expect.


Old school typesetters never allowed the last line of a paragraph to be just nearly filled. Either it would be clearly shorter than the other lines or it would be stretched to align with the right margin. (I assume the standard value where they decided to stretch the line was the depth of the indentation.)  If you have the time the same result can be achieved by checking all pages and manually adding \parfillskip=0pt to all offending paragraphs.  For example, this document:  \documentclass{article} \usepackage[paperwidth=3in,paperheight=3in]{geometry} \begin{document} \thispagestyle{empty} asdfjk adsf af dsasdf f dasf fdsa fds afsd fdsaf asdfsdafdsa asdf dsaf asdf sadf asdfjk adsf af dsasdf f dasf fdsa fds afsd fdsaf asdfsdafdsa asdf dsaf asdf sadf sasdfjk adsf af dsasdf f dasf fdsa fds afsd fdsaf asdfsdafdsa asdf dsaf asdf sadf asdfjk adsf af dsasdf f dasf fdsa fds afsd fdsaf asdfsdafdsa asdf dsaf asdf sadf asdfjk adsf af dsasdf f dasf fdsa fds afsd fdsaf asdfsdafdsa asdf dsaf asdfxx  \end{document}   renders to a  paragraph with an almost-full last line:    I've earlier been told that it would most probably be impossible to get pdfLaTeX to do this automatically.   If this is true -- could it be done with LuaTeX?


How to expose a value that doesn't have an input socket next to it in a Node Group?

In other words: How to control a value (that doesn't have a socket) in a node inside a Node Group using this Node Group's Group Input.  I'm guessing somehow drivers need to be involved, haven't found info on this though.  Example: Driving a Size property from Map Value node from a Group Input of the Node Group the Map Value node is in.


Html button is not working if single quotes in url

I am using perl and CGI,where i am accumulating data and placing it in url.Like below  data in 'bf' and 'cx'&psite=bothwork. Here in this url in description their is single quotes if it comes, then my button is not working. If we remove single codes manually then button is working. I am taking this url in one variable my $durl=http://acv.farm.com/devpm/tiber/tiyu.cgi?sid=$id&region=$reg&description=$desc&psite=$pwork also i am formatting this with $durl =~ s/\+/\%2B/g And then I am passing this variable in href like this <a href=\"$durl\"> I am looking for the logic to handle single and double quotes if it comes in url.


Can I have my sudo/su password different from my desktop login password?

Is it possible to have a desktop login password that's different from the password used for super user permissions, like for example when you are installing software or running a command with sudo or something that needs super user access?


"Top questions" in careers.stackoverflow

How about adding an optional "top questions" section to my careers page?  I would argue that being able to clearly and effectively communicate a problem you're having, by writing a good question, may be just as important to employers as being able to provide good answers.


I just managed to roll , in 3 minutes:    In fact, the only reason I couldn't do more was the IP address "unusual number of requests" limit:    Almost everything else I try to do has some sort of rate limit:    But this doesn't. Is there any reason why it doesn't? I could really, really bug someone with a lot of notifications about their post.


Which would be correct . . . there doesn't seem to be, or there aren't . . .  There doesn't seem to be any records.  There aren't any records.


Publishing a conference version of a journal paper at the same time ? (copyright issues)

This may be a question repeated many times, but I want to know your opinion.   I submitted a journal paper for an algorithm (Computer Science). Fearing that the review process take too long, I decided to submit a short-version conference paper, while the long version is under-review. I received the journal review comments, and re-sent the modifications to the journal. Meanwhile, the conference paper was accepted. But the camera-ready is not sent yet.   The problem is that both papers are about the same idea. There is also some copy-pasted parts in both papers. But:  1) the editor of the journal was not informed about the conference paper (I heard that I should tell the journal about any published papers - but note that the conference paper is not yet published - not even the camera ready is submitted),   2) the organization organizing the conference, is not the same that manage the journal. I have been told that there are conflicting copyrights.   The proposed solutions (that colleagues told me about):   a) submit both as is !   b) submit both (but with change in text).   c) do not submit the conference paper (but I heard this can be harmful)  d) tell the editor now (but honestly, the journal is way more important than the conference).


Question: Let $n > 1$ be a natural number and $p$ be a prime such that $p\mid n^3-1$ and $n\mid p-1$. Prove that $4p-3$ is a perfect square.   My solution: Given that $p\mid(n^3-1)$, thus we have $p\mid(n-1)$ or $p\mid(n^2+n+1)$. We also have $n\mid(p-1)$. Let us make cases.   Case 1: $p\mid(n-1)$ and $n\mid(p-1)$. Since $p-1\ge 1$ and $n>1$. Thus we can conclude that $p\mid(n-1)\implies p\le n-1$ and $n\mid(p-1)\implies n\le p-1$. Thus we have $n\le p-1\le n-2\implies n\le n-2\implies 0\le-2$, which is a clear contradiction. Hence $p\not\mid(n-1)$.   Case 2: $p\mid(n^2+n+1)$ and $n\mid(p-1)$. Thus, $\exists k\in\mathbb{Z},$ such that $pk=n^2+n+1$ and $\exists q'\in\mathbb{Z}$, such that $p=nq'+1$. Now $n^2+n+1\equiv 1\pmod n$ and $p\equiv 1\pmod n\implies pk\equiv k\pmod n\implies k\equiv pk=n^2+n+1\equiv 1\pmod n\implies k\equiv 1\pmod n.$   Thus $\exists q\in\mathbb{Z}$, such that $k=nq+1$. Hence we have $$p=nq'+1 \text{ and } k=nq+1\\ \implies pk=n^2qq'+n(q+q')+1=n^2+n+1\\\implies n(1-qq')=q+q'-1.$$   Now $p=nq'+1\implies nq'=p-1$ and $p-1\ge 1$. Thus $nq'\ge 1$. Now since $n>1$, hence $q'\ge 1$. This again implies that $nq'>1\implies p>2\implies p\ge 3.$   Now $pk=n^2+n+1>3\implies pk>3.$ Now $p\ge 3\implies k\ge 1.$ Now again we have $k=nq+1$. Since, $k\ge 1\implies nq+1\ge 1\implies nq\ge 0\implies q\ge 0$ $(\because n>1).$   Thus $q\ge 0,q'\ge 1\implies qq'\ge 0.$ Also $q+q'\ge 1\implies q+q'-1\ge 0.$ This implies that $n(1-qq')=q+q'-1\ge 0\implies n(1-qq')\ge 0\implies 1-qq'\ge 0 \implies qq'\le 1.$   Therefore, we simultaneously have $qq'\ge 0$ and $qq'\le 1$, which implies that $qq'=0$ or $qq'=1$.   Let us make cases.   Case 1: $qq'=1\implies q=1$ and $q'=1$. Thus $q+q'-1=1$ and $n(1-qq')=0\implies n(1-qq')\neq q+q'-1$, which is a contradiction to the fact that $n(1-qq')=q+q'-1$. Hence $qq'\neq 1$.   Case 2: $qq'=0\implies q=0$. Thus $n=q'-1\implies q'=n+1$, which in turn implies that $p=n(n+1)+1.$ Thus $4p-3=4n(n+1)+1=4n^2+4n+1=(2n+1)^2$.   Hence after analyzing all the cases we can conclude that $4p-3$ is a perfect square and is equal to $(2n+1)^2$, and we are done.   P.S.: I have edited the post and have attached the correct solution to the question.


Prove by induction that   $$\sum_{i=0}^n\binom ni=2^n\text{ where }\binom ni=\frac{n!}{i!(n-i)!}$$   Please explain me step by step. Thank you.


Is it possible (or meaningful) to do analysis or calculus with rational numbers only?

Irrationals and transcendentals are interesting and useful numbers, to be sure, but I think the importance of rationals can be forgotten when we get caught up in the mystique of other numbers. They seem, in some sense, to be the only numbers with which we can do completely precise computations.  To this end, I've been wondering if there is a way to restrict calculus to rational numbers and still obtain similar results.  Immediately there are problems with the exponential and trigonometric functions (since $e$ and $\pi$ are certainly not rational). But theories of rational trigonometry exist to handle the latter point.  Anyway, is this something people have looked into before? My apologies if my question doesn't make sense.


Proving a function is not Riemann integrable

Prove that the bounded function $f$ defined by $f(x)=0$ if $x$ is irrational and $f(x)=1$ if $x$ is rational is not Riemann integrable on $[0,1]$.  I was given the hint to use the inverse definition of Riemann integrable and consider the cases of the partition being all rationals, and all irrationals between $[0,1]$, but I'm not too sure how to go about it.


how to render an image without effect of scene world

I am new to 3d and blender. My question is how can I get an image rendered as on the left side of the image. I can see the Scene World is making the difference. Is there a way to render the image without the effect of the scene world? Thanks in advance.


outdated 14.04 want newer ubuntu version

okay so i bought this laptop forever ago was just a shell. bought a hardrive battery and so fourth. then ran into the issue of what OS to use. well long story short a buddy of mine from work whom i no longer work with installed to my knowledge and understand is ubuntu mate 14.04. i would like to wipe the enitre old system off and replace it with brand new ubuntu 16.04 or 17.01 but i really am not the smartest when it comes to this whole terminal deal. so if maybe someone can give me some insight on how to go about this. all i want is to wipe everything off old and start OS brand new newest version and absolutely nothing on it at all other then the new OS. please Help, ty in advance. i have a 80gb hardrive.


Having trouble with limiting the input of a textbox to numbers C#

I am trying to limit the input of a textbox of a very simple Web Application so that the user can only input numbers. Im having trouble doing this without using 20 lines of code, any help at all is appreciated!  protected void Button1_Click(object sender, EventArgs e)     {         {             int input = int.Parse(InputBox.Text);             if (input > 15)             {                 String hot;                 hot = "hot";                 Result.Text = hot;                 Result.BackColor = System.Drawing.Color.Red;             }             else if (input <= 15)             {                 String cold;                 cold = "cold";                 Result.Text = cold;                 Result.BackColor = System.Drawing.Color.Blue;             }         }     }   Thank you!


ubuntu releases via http instead of https?

I'm a bit paranoid and often want to download from https. Here's via http  I could not find it via https. Actually I just need sha256sums via https, download itself don't care. My question is different to another question as I'm interested about ISO sha256sums and ISO itself.  I also found that


What mechanisms are in place for online travel agents access very cheap airline tickets?

I have recently booked an almost last minute flight within Europe.  I got prices, for the absolute same flight, that range from under 30€ to more than 200€. Variations of ~30€ are kind of normal but this is extreme.  Looking at the company website I got prices over 200€. When I looked in skyscanner I found a whole myriad of prices. Being cheap ones through online travel agencies where you book and wait for confirmation.  How is this possible? What mechanisms are in place for them to access these cheap tickets? Is the delivery delay related?


How to get the dimensions of a 2d dynamic array of strings in C++?

I have a dynamically populated array of strings in C++:  string** A;   it is populated like this:  A = new string*[size1];   and then:  for (unsigned int i = 0; i < size1; i++) {     A[i] = new string[size2];     for (unsigned int j = 0; j < size2; j++)     {         A[i][j] = whatever[j];     } }   elsewhere, I want to find out the dimensions (size1 and size2). I tries using this:  sizeof(A[i]) / sizeof(A[i][0])   but it doesn't work. Any ideas ?  Thanks


Smileys / Emoticons missing in Windows 7

It seems that certain (not all) emoticons are missing in my Windows 7 Ultimate x64 SP1 installation. The table of emoticons from the  looks as follows on my system:    Windows Update  which should address this issue is installed.  What can I do to get the missing emoticons? Deciphering them in incoming E-Mails is getting old... :-)


I am trying to define a typed dictionary in Python. I have written the following snippet but I wonder if there is a better way to achieve the same goal. I am using defaultdict but feel free to change that to dict for the base if you want.   from collections import defaultdict  class typed_dict(defaultdict):      def __init__(self, key_type, val_type, *args, **kwargs):         self.key_type = key_type         if type(val_type) == type(lambda: 1):             self.val_type = type(val_type())         else:             self.val_type = val_type         super(typed_dict, self).__init__(val_type, *args, **kwargs)      def __getitem__(self, k):         try:             assert type(k) == self.key_type             return super(typed_dict, self).__getitem__(k)         except AssertionError:             print('key mismatch, got {}, must be {}'.format(type(k), self.key_type))      def __setitem__(self, k, v):         try:             assert type(k) == self.key_type             assert type(v) == self.val_type             super(typed_dict, self).__setitem__(k, v)         except AssertionError:             print('key or value mismatch, got {}: {}, \  must be {}: {}'.format(type(k), type(v), self.key_type, self.val_type))    d = typed_dict(int, str) d[1] d[2] = "two" d["one"] d["three"] = 3 d[3] = 3 print(d)  d = typed_dict(int, lambda: '') d[1] d[2] = "two" d["one"] d["three"] = 3 d[3] = 3 print(d)  import numpy as np d = typed_dict(int, lambda: np.zeros(2)) d[1] d[2] = "two" d[3] = np.array([1,2,3]) print(d)


Is DateTime.Now the best way to measure a function's performance?

I need to find a bottleneck and need to accurately as possible measure time.  Is the following code snippet the best way to measure the performance?  DateTime startTime = DateTime.Now;  // Some execution process  DateTime endTime = DateTime.Now; TimeSpan totalTimeTaken = endTime.Subtract(startTime);


Behaviour of ($\overline{a}_n)_{n=1}^{\infty}$ and ($\underline{a}_n)_{n=1}^{\infty}$

I have been trying to understand the following definition and just needed some clarification.  For each bounded sequence $(a_n)_{n=1}^{\infty}$ we define the sequences ($\overline{a}_n)_{n=1}^{\infty}$   and ($\underline{a}_n)_{n=1}^{\infty}$  in the following way:  \begin{eqnarray*} \overline{a}_n&=& \sup\left\{a_n,a_{n+1},\dots \right\},\\ \underline{a}_n&=&\inf\left\{a_n,a_{n+1},\dots\right\}. \end{eqnarray*}  How does this definition imply that $\overline{a}_n$ is decreasing and $\underline{a}_n$ is increasing?


TeXnicCenter cannot automatically open PDF in Adobe Reader

I am attempting to automatically open a PDF after recompilation using TeXnicCenter. If I compile using Ctrl + F7, I can go into the directory of the PDF and it opens fine, but if I use Ctrl + Shift + F5 to "Build and View", the PDF won't open, and I get the error message "Cannot execute the command":    I have just reinstalled my Adobe, so this shouldn't (?) be an issue. This happens with both LaTex => PDF and XeLaTeX => PDF options.   Update: Here are my DDE settings:


Stuck at Welcome screen to install Ubuntu

After starting the virtual machine, it freezes at this point and won't start installing Ubuntu. There's no pop-up, welcome screen or whatsoever. I am using Ubuntu 16.04 LTS i386    UPDATE: So i was following this guide:  until I start the virtual machine. I should be seeing a welcome screen but I didn't. No error message or warning. I don't think it is the duplicate of How to install Ubuntu on VirtualBox? thread. Memory I gave: 1024 mb I also followed nathanwww's solution but got the same result.  Ok... So now I am confused. If I am trying to run Ubuntu on virtual box. Do I need a CD or USB to boot it?


JSforce login to salesforce from Chrome Extension

My goal is to listen for Steaming API events from Chrome Extension. In order to do that, obviously i must log in first and get a token. As embarrassing as it is, i am stuck at User Login phase. I have been following the  which describe the login procedure: jsforce.browser.init({   clientId: '[your OAuth2 client ID]',   redirectUri: '[your OAuth2 redirect URI]' });  jsforce.browser.on('connect', function(conn) {   conn.query('SELECT Id, Name FROM Account', function(err, res) {     if (err) { return handleError(err); }     handleResult(res);   }); });  i can get the redirect_url using chrome.identity.getRedirectURL but what would be the next step in this case ? i would get the access_token to that url and then what ? what should i do with the token ? Following the , i can see that jsforce.browser.init is followed immediately by: jsforce.browser.on('connect', function(conn) { ... });  But how does that 'connect' event happens ? The docs dont mention anything special regarding the access_token and where it should be passed, its like magically passed to the jsforce instance. Please point me in the right direction, i am clearly missing something here.


Proving that if $2a + 3b \ge 12m + 1$, then $a \ge 3m + 1$ or $b \ge 2m + 1$

Let $a$, $b$, $m$ be integers. Prove that if $2a + 3b \ge 12m + 1$, then $a \ge 3m + 1$ or $b \ge 2m + 1$.   I need help proving this. I am not sure what to do.   Thank you for all of the edits.   I am still unsure on how to word the problem.    Right now.  Proof - By contrapositive.  Assume that a < 3m + 1 and b < 2m + 1 for the integers a, b, and m. Then,  2a + 3b < 12m + 1 = 2(3m + 1) + 3(2m+1) < 12 m + 1  = 6m + 2 + 6m + 3 < 12m + 1 = 12m + 5 < 12m + 1  Which is false because 5 < 1  So next, I would say...  Assume that a < 3m + 1 and b < 2m + 1 for the integers a, b, and m. Then a < 3m < 3m + 1 and b < 2m < 2m + 1.  Then plug in again to show 12m < 12m + 1  Then what?


Is the  cardinality of $\mathcal{C}[0,1]$  the same  as  the cardinality  of $\mathbb{R}$?  My attempt: I know that  $[0,1]  ,(0,1) $ are  uncountable   as  $\mathbb{R}$ are  also uncountable  so $[0,1]$  have  same  cardinality    as $\mathbb{R}$  I am in confusion  about $\mathcal{C}[0,1]$  where  $\mathcal{C}[0,1]$  is the  space  of continious real value  function on the interval $[0,1]$.  Any hints/solutions?


Difference between "ppa-purge" and "add-apt-repository -r"?

What is the main difference between ppa-purge and add-apt-repository -r. Which one better clear residual items and reason to use one over another?  Does add-apt-repository -r should do what ppa-purge do?  Edit: Also do both remove key from apt's keyring?


How to budget for monthly bills on weekly pay and "Continental" shift pattern with varied hour rate?

I'm about to start a temporary job with a pay arrangement I'm not used to - I'm used to monthly.  It's weekly pay and after training, I will be switching to what the company describes as a Continental pattern. It will consist of 4 days on, 4 days off and 10 hour shifts. So some weeks I could do 30 hours, some weeks 40 hours.  To make things even easier, the rate of pay changes depending on what time of day you work or on Sundays. As yet, I do not know what shift pattern I'll be on.  I'm trying to work out how to do a budget for monthly bills with so much variation because its not a simple case that I'll work x hours at x amount.    Any advice?


How many metrics are there on a set up to topological equivalence?

I want to find the number of topologically nonequivalent metrics on a set.  I think if the cardinal of set is finite then we have one metric that is the discrete metric  and every metric on this set is equivalent with the discrete metric. Now what is the number of nonequivalent metrics on an infinite  set?