Wrapper class NullPointerException while converting String to primitive type

Input: First line contains an integer denoting the test cases 'T'. T testcases follow. Each testcase contains two lines of input. First line contains N the size of the array A. The second line contains the elements of the array. Example: Input: 2 3 3 2 1 4 1 2 3 4 Output: 6 10 Am trying to read the input with the help of console class and then convert the String object to primitive type, using Integer.parseInt()  code: import java.io.Console;  public class School {  public static void main(String[] args){     Console c  = System.console();     // to run for the 'T' cases     int t = Integer.parseInt(c.readLine());     for(int a = 0; a<t;a++){         int size = Integer.parseInt(c.readLine());         int [] array = new int[size];         String str = c.readLine();         String [] nums = str.split(" ");         // to convert String array into int arrary         for(int i = 0; i<array.length;i++){             array[i]=Integer.parseInt(nums[i]);         }// end of inner for         int sum = 0;         // for sum         for(int i=0;i<array.length;i++){             sum+=array[i];         }// end of inner for         System.out.println(sum);     }// end of outer for     }// end of main  }// end of school output:  Exception in thread "main" java.lang.NullPointerException at linkedList/gfg.School.main(School.java:9) Is it that c.readLine() isn't able to take the input?


how to move git storage space from SSD to hard disk

In my new PC, I have both SSD and hard disk. My guess is that it would be a luxury to waste SSD storage space for my old files. How can I redirect a git init to use my hard disk for storage?


For example, I have a human head model, which is cut in half, because i want to mirror it. But the problem here is that some faces are over the Y axis and some do not touch the axis. When I then try to mirror this shows up, where let's say some points don't touch and other ones, where faces are over the axis just collide. Is there a possibility to align the "edge" faces to a certain axis, so the mirroring becomes perfect?


How can you remove the need to type the full name of an .exe in cmd to run it?

OK, so you can run something like   start iexplore   in cmd and have it run internet explorer.  Is there a way to allow the same sort of behavior with something like, javac.exe (or some other utility exe)?  I don't want to have to type   "C:\Program Files\Java\jdk1.8.0_31\bin\javac.exe"   to run javac every time I need to via CL.


When will QGIS 3.0 with QT5.7 (possibly) be released as a stable and long term support version?


I am planning to create a program(with python) that analyzes and responds to emails on ubuntu, but I cant seem to find anything that could serve as the receiving and sending part of the program(in python, or with terminal commands) does anyone have any suggestions on what I could use?


Connecting to wifi network through command line

I am trying to connect to my WEP network just using the command-line (Linux).  I run:  sudo iwconfig wlan0 mode Managed essid 'my_network' key 'xx:xx:... hex key, 26 digits'   Then I try to obtain an IP with  sudo dhclient -v wlan0   or  sudo dhclient wlan0   without success (tried to ping google.com).  I know that the keyword is right, and I also tried with the ASCII key using 's:key', and again, the same result.  I get the message below when running dhclient:  Listening on LPF/wlan0/44:... Sending on   LPF/wlan0/44:... Sending on   Socket/fallback DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3    I have no problem connecting with WICD or the standard Ubuntu tool.


jQuery submit form injected by .html() into div

I'm writing a code for a simple forum, topics are listed and there is a possibility to add a new topic on the fly by clicking a link (image) in which a form will be added into an empty div (via .html()), how can i catch form submitting event from this particular form?   code below:
New Subject
   Some EExplanation

No Topics currently

Add a new topic

   my Script is the following:     is there a way to catch form submit event from this code?


Hi i was wondering if  anyone could help me with my revision This is a question of a past paper i'm stuck on.  Let $$f:[a,b]\to \Re$$ be Riemann intergrable. Part (a) is to prove that f is bounded and part (b) is to Give an example of a bounded function f that is not Riemann integrable  my attempt for part (a) is since f is Riemann intergrable then it is continuous on [a,b] which means that it must also be bounded? or is this incorrect i find this topic rather difficult  For part (b) i dont really have a clue i cant recall any function like the one they ask for


DVD stuck in player, doesn't show in Finder or Desktop

I've inserted a dvd into slot...doesn't show up in Finder,(DVD is checked in Finder Preferences), and won't eject! Tried to plastic card trick- no luck. Disk spinning in there but won't come out. I have tried holding the right click button upon restart, eject button and holding PC upside down. Disk still spinning but not ejecting!


What is the simplest way to generate PWM without a Microcontroller?

What is the fast and elegant way to generate PWM without a Microcontroller to control a servo motor? With potentiometer or other ways to control the duty cycle with fix period.   sorry about the mess, I want to control a hobby servo.


db_owner does not have access to Windows folders

This is MSSQL Server 2008 R2 running on Windows Server 2008 Enterprise. Service Instance is running as 'Network Service'.  I have two logins, UserA and UserB. UserA is a sysadmin. UserB is a db_owner for database 'Demo'.  I login as UserA and can take a backup of Demo, no questions asked.   I login as UserB and try to take a backup of Demo. When clicking the 'Add' button to add a destination, and then the 'browse' button, I get the following error message:    G:\Backups  Cannot access the specified path or file on the server. Verify that you have the necessary security privileges and that the path or file exists.    If you know that the service account can access a specific file, type in the full path for the file in the File Name control in the Locate dialog box.    My question is:  After reading that folder access is based on the User Account that the SQL instance is running under (Network Service), why can the db_owner not browse to the specified folder?   Is there something I am missing?   Thanks


How can I give an effect if the player is wearing a certain type of boots?

How do I make an effect run if a player is wearing a certain type of boots? Is there a detection system for this?


Today something weird happened to my Chrome browser. It started showing like this    I'm using a OSX Yosmite running on a virtual machine. It worked great for years but something happened Today and I'm uncertain what's that.  I tried to install it again but problem persists.  Is anyone familiar with this?


Apt-get update fails after installing Ubuntu 20.04

I just installed Ubuntu 20.04 on a laptop previously running Ubuntu 19.04. The complete "Erase disk and install Ubuntu" option was used and the installation medium was a USB stick. The first thing I try to do after installation is of course sudo apt-get update and bam! Errors:     Err:6 http://security.ubuntu.com/ubuntu focal-security/main i386 Packages   Hash Sum mismatch   Hashes of expected file:    - Filesize:145444 [weak]    - SHA256:441dab3c8a255fd5fec066a31c406525dab6a5629029e426170033835738ef0f    - SHA1:70e9e8dec8b9f753d2ddb0d8696b2714fcdbd2b0 [weak]    - MD5Sum:04ce44602d56d586cc827d4dae28de89 [weak]   Hashes of received file:    - SHA256:925ddfd0bf7dc54656ebd729304c8826c779229eab489e39cbda3b83498c305d    - SHA1:9de08f4ffa54879375ef93899b8179785e795f9a [weak]    - MD5Sum:3782b8853b62334b19cd0db4e2c4840b [weak]    - Filesize:145444 [weak]   Last modification reported: Thu, 29 Oct 2020 19:16:50 +0000   Release file created at: Sat, 31 Oct 2020 04:53:35 +0000 Fetched 252 kB in 3s (93.9 kB/s)    Reading package lists... Done E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/main/binary-i386/by-hash/SHA256/441dab3c8a255fd5fec066a31c406525dab6a5629029e426170033835738ef0f  Hash Sum mismatch    Hashes of expected file:     - Filesize:145444 [weak]     - SHA256:441dab3c8a255fd5fec066a31c406525dab6a5629029e426170033835738ef0f     - SHA1:70e9e8dec8b9f753d2ddb0d8696b2714fcdbd2b0 [weak]     - MD5Sum:04ce44602d56d586cc827d4dae28de89 [weak]    Hashes of received file:     - SHA256:925ddfd0bf7dc54656ebd729304c8826c779229eab489e39cbda3b83498c305d     - SHA1:9de08f4ffa54879375ef93899b8179785e795f9a [weak]     - MD5Sum:3782b8853b62334b19cd0db4e2c4840b [weak]     - Filesize:145444 [weak]    Last modification reported: Thu, 29 Oct 2020 19:16:50 +0000    Release file created at: Sat, 31 Oct 2020 04:53:35 +0000 E: Some index files failed to download. They have been ignored, or old ones used instead.  Also, I cannot install gnome-tweak-tools because of unmet dependencies but I'm guessing that's because the update won't work. I've seen this same problem reported by several other users but solutions suggested there (like removing content of apt lists directory) have either not worked for me or aren't applicable for my case. This is supposed to be a LTS stable release yet the most basic functionality fails. So, is there a solution to this that would not require me to scratch my brains out?


I am developing web application using C#. I want to replace multiple character in a string. For example,  string str = "abc_def|ghij_klmn:opq|rst:uv_wx|yz"; str = str.Replace("_","-"); str = str.Replace("|",", "); str = str.Replace(":",". ");   OR  string str = "abc_def|ghij_klmn:opq|rst:uv_wx|yz"; str = str.Replace("_","-").Replace("|",", ").Replace(":",". ");   The above are the sample coding, actually I want to replace more characters. Is there any performance related issue in above two codes?  This may be a duplicate question, I searched for that, but I didn't find...  Thanks


I've been trying to help my son with what seems an innocent enough equation, but I have to admit, I'm struggling and walking in circles - the question is: If $\frac{a}{b+c}+\frac{b}{a+c}+\frac{c}{a+b}=4$, what is $abc$? First I multiply both sides with the denominators: $a(a+c)(a+b)+b(b+c)(a+b)+c(b+c)(a+c)=4(a+b)(a+b)(b+c)$ $\Updownarrow$ $a^3+b^3+c^3=3(abc+a^2b+ab^2+b^2c+a^2c+ac^2+bc^2)$ From here I begin to run in circles - substituting $x=abc$ and expressing $a$, $b$ and $c$ in terms of $x$, for example, ends up after a while back at the beginning. So what is the trick - or is there no simple solution? (Sorry about the tag - I couldn't find anything more suitable for such an elementary question) Edit The suggested duplicate is not a full answer, I think. My question concerns the same equation, but the question is different, and the answers are only partial. I will accept the answer given by Rhys Hughes, since it answers my question and gives a good explanation of how he reached it.


Install a driver in Windows (XP) from command line?

How can I install and uninstall a driver from the command line during a console session?  I have the driver.sys and the driver.inf file, and I want to:   install the driver use the device managed by the driver (software or hardware) uninstall the driver


Value of $\lim_{n\to\infty}\sum_{k=1}^n \frac{n}{n^2+k^2}$

$$\lim_{n\to\infty}\sum_{k=1}^n \frac{n}{n^2+k^2}$$  I tried this using powerseries just putting as $x=1$ there ,even tried thinking subtracting $s_{n+1} - s_{n}$ would be of some help, also I thought of writing the denominator as product of two complex numbers and then doing the partial fractions but it did not help. Any method guys?  Thanks in advance for guiding to think about these kind of problems.


Let $a_n$ be a sequence defined: $a_1=3; a_{n+1}=a_n^2-2$ We must find the limit: $$\lim_{n\to\infty}\frac{a_n}{a_1a_2...a_{n-1}}$$  My attempt  The sequence is increasing and does not have an upper bound. Let $b_n=\frac{a_n}{a_1a_2...a_{n-1}},n\geq2$. This sequence is decreasing(we have $b_{n+1}-b_{n}<0$. How can I find this limit?


How to show that quotient space $X/Y$ is complete when $X$ is Banach space, and $Y$ is a closed subspace of $X$?   Here's my attempt: Given a Cauchy sequence $\{q_n\}_{n \in \mathbb{N}}$ in $X/Y$, each $q_n$ is an equivalence class induced by $Y$, I want to find a representative $x_n$ in $q_n$ so that the induced sequence $\{x_n\}_{n \in \mathbb{N}}$ is also a Cauchy sequence in $X$. But I don't know how to construct such sequence.


Do we need different application forms for each applicant for a UK visa?

Do we have to fill out a different visa form for each applicant for a UK visa? Can it be filled in with the same id or does every form need a different id? Actually, I am applying for the first time.


Is there a word for four times as much, analogous to once, twice, and thrice?

Is there a word for 'four times as much', analogous to once, twice, and thrice?


I read many places that the rule of thumb for swap space is to double the amount of physical RAM. However, 32 GB does seem a LOT. Do I need that much? Do I need it at all with this high amount of physical RAM?


Bouncing ball simulation computer science

In my Computer science class I was given a problem where I have to simulate a bouncing ball using "real physics". I have been trying to find a equation that will simulate the height of the bounce given a gravity and an arbitrary mass. And I will need to calculate the next bounce and it's height. A lot of the equations I've found require a time. But I don't really care about a time, all I want is to get the next height after the previous bounce until it finally hits height of 0 or close to it. I haven't taken a physics class since high school( 5 years ago) and that was basic physics.


How do I include audio file, or should I say, link to audio file in PDF?   Audio should be playable "from PDF directly", without opening any additional window. Is it possible to attach audios to PDF     then so I can manipulate only with     that file, without being bothered     with copying folders where those     audio files would reside?   I saw that 1. is definitely doable (but don't know how) and I'm interested if second one is also possible (while compiling .tex file) since I know that some files (like graphs and tables) can be attached in PDF, but after it's generated.   Button for playing audio from document that uses this trick.


How can I set a document font size to 14, 16 or 18 pt?

I usually start with   \documentclass[12pt,a4paper,landscape]{article}   but, How can I set a document font size to 14, 16 or 18 pt ?  I had used {\fontsize{16}{1}    all document }  and have no desired results.


Thought experiment about wavelength of light through a medium

Though the physical concepts and mathematics are highly rudimentary, I often try to comprehend exactly why light wants to keep it's frequency, yet alter it's wavelength as it travels through a medium, while at the same time, alter both it's wavelength and frequency while traveling through a vast series of gravitational fields.   My question is this:  If possible, try to address the situation without poking at the obvious holes in it.  Imagine that there exists a uniform $[2*2(ly^2)]$  body of fluid in the vacuum of space with an index of refraction $N$. Now imagine a massive wall of light enters this fluid (ignore any intensity fading/ dispersion), and doesn't exit to the other end for two years. Would the light wave exit the fluid with the same wavelength that it entered with? Why ?


I want to cite an online brochure, but there is no author name, it is a brochure of a company. How can I cite  in BibTeX?


How to reference a cell in a different file

I have two separate Google Sheets files ("File A" and "File B") that are in two different places in my Google drive.    Is it possible for me to reference a range of cells in "File A" to be copied into "File B"?  From what I've seen, the built in function IMPORTRANGE only works to reference information from a different sheet within the same file and does not work for inter-file communication... unless there is some cool voodoo stuff that can be done.


I have this segment of python code. I want to have a global variable called filetext. However, it does not work as intended, I want to modify the filetext variable in the first method and then use this in the second method.  filetext = "x"  def method1():      filetext = "heyeeh"  def method2():     print(filetext)   This yields "x". How come, and how can I overcome this?


What is the best method for getting a database connection/object into a function in PHP?

A couple of the options are:  $connection = {my db connection/object};  function PassedIn($connection) { ... }  function PassedByReference(&$connection) { ... }  function UsingGlobal() {     global $connection;     ... }   So, passed in, passed by reference, or using global. I'm thinking in functions that are only used within 1 project that will only have 1 database connection. If there are multiple connections, the definitely passed in or passed by reference.  I'm thining passed by reference is not needed when you are in PHP5 using an object, so then passed in or using global are the 2 possibilities.  The reason I'm asking is because I'm getting tired of always putting in $connection into my function parameters.


What is the simplest way to typeset an entire document in sans-serif?

How do I typeset an entire document in sans-serif, e.g. Helvetica, without littering the document with font changes for every heading/paragraph, etc.? Like in , but with the paragraphs all in sans-serif.  For example, I've seen documents typeset in Computer Modern and then switched to Palatino, but can I do the same with Helvetica with a few commands at the beginning?  (And please don't tell me to use a serif font for body copy / paragraphs. I know. I'm trying to use latex to typeset my resume to look like the one I've created in a word processor, which is hard to maintain but looks good. I'm hoping latex will let me do more advanced formatting/layout, separating content from form.)


Commutator Group of $GL_2(R)$ is $SL_2(R)$

Let $GL_2(R)$ be the general linear group of $2\times2$ matrices and $SL_2(R)$ the special linear group of $2\times2$ matrices. Show that the commutator subgroup of $GL_2(R)$ is $SL_2(R)$.  I can show that the commutator subgroup is contained in $SL_2(R)$ as if $A,B \in GL_2(R)$ then $$\operatorname{det}(ABA^{-1}B^{-1})=\operatorname{det}(A)\operatorname{det}(B)\operatorname{det}(A^{-1})\operatorname{det}(B^{-1})=1.$$   But how can I show the reverse inclusion? That is, that $SL_2(R)$ is contained in the commutator subgroup of $GL_2(R)$.  Any help will be appreciated.


Is it OK to edit and cut down an overly verbose question to try and make it a more "canonical" question?

I landed upon a question about how to convert  to  in , which was helpful to me, but it was overly verbose, taking a screen to ask a question that should have been 1-2 sentences. So I edited it, with the intention to make it better quality from the POV of a Google searcher landing on this page, but now my edit has been reversed by another user, who thinks that since some of the answers are referencing the overly verbose text, it should be in the old form. Since I'm not sure if the kinds of editing I made are encouraged or discouraged here, I want to ask the community. This is how the question looked :  I have a string that contains Cyrillic text, but it is encoded in the CP-1251 Windows code page. How can I convert that string to UTF-8?  This is how it looks now (without my edits) -  Edit I just found this in the  (thanks Shog9):  It is OK to edit a question to make it more general. With the power of editing comes the power to take someone’s selfish, very specific question, and edit it a little bit until they’re asking the more general question that hundreds of people encounter. For example, if someone asks, “I set up a web server at home but I can’t access it from work,” it’s OK to rewrite the question as, “What things should I check when a web server running at home is not visible on the Internet?” In fact, sometimes selfish, stupid questions of the “do my homework” variety can be easily edited into a form where the answer will provide an extremely valuable resource for the internet at large.


How do I check the integrity of a storage medium (hard disk or flash drive)?

I've run across (personally or by proxy) a bunch of storage media that exhibited physical problems during their life. Hard disks, solid state drives and other flash storage media all fail after some time. The situation is worse with USB flash drives and flash cards because of the large amount of suppliers with inferior flash cell and flash controller quality.  How can I reliably detect if a storage drive suffers from physical damage?  Note that this question isn't about file system integrity (which can be checked with ).


Why does air feel cooler when blown through a small hole and warm through a big one? (for example from a mouth)

I hope the question is clear enough and I'm sure that you can try this thing quite easily yourself. When I blow air from my mouth to my palm through a small opening, I feel cool in my palm, but its very warm when I do the same with an open mouth!  Does it have something to do with the speed at which the air is moving, and therefore it is cooler when the air blown is faster through a smaller opening? (same volume in both cases but smaller opening in the small hole case). or is it due to some observational flaw which I made? Is it due to the fact that the air momentarily undergoes an adiabatic expansion?  [I know there might be previous questions about this but I need a simpler explanation.]


Is there an easy way to prove that this series diverges?

Consider the series  $$\sum_{n}\dfrac{1-\cos(2n\theta_0)}{2n},$$  where $0<\theta_0<\pi$. Is there one easy way to prove that it diverges? I wanted to used this to prove that the series $\sum_n \frac{\sin|n\theta_0|}{n}$ diverges, so comparing with this series wouldn't be an option here.  I tried the ratio test, but didn'g get far, I needed to evaluate the limit  $$\lim_{n\to \infty}\dfrac{1-\cos(2(n+1)\theta_0)}{2(n+1)}\dfrac{2n}{1-\cos(2n\theta_0)},$$  but this also seems complicated. Is there one easier way to show that this series diverges? How can I prove this?


I am running Ubuntu 18.04. I wanted to install node and npm on my machine. The apt repository version of node is 8.x, whereas I wanted to have version 12.x (Current LTS version).  I followed the guide here:   As per the guide, I downloaded curl -sL https://deb.nodesource.com/setup_12.x -o nodesource_setup.sh  and then ran it with sudo -E ./nodesource_setup.sh    However, my machine fails to run sudo apt update with the following (full) output:  maxim@fujitsu:~/scripts$ sudo apt update Hit:1 http://gb.archive.ubuntu.com/ubuntu bionic InRelease                  Hit:2 http://gb.archive.ubuntu.com/ubuntu bionic-updates InRelease          Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] Hit:4 http://gb.archive.ubuntu.com/ubuntu bionic-backports InRelease               E: Repository 'http://security.ubuntu.com/ubuntu bionic-security InRelease' changed its 'Suite' value from 'bionic-updates' to 'bionic-security' N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details. Do you want to accept these changes and continue updating from this repository? [y/N] N Fetched 88.7 kB in 8s (10.5 kB/s)                                                       Reading package lists... Done E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease   E: Some index files failed to download. They have been ignored, or old ones used instead.    suggests that one should use apt update instead of apt-get update. None the less, I am running apt update.   suggests to answer "Y" to the prompt.  , from the Docker community, makes it clear that doing so is a bad idea.  However, , suggests that sometimes repositories change the names of package sources.  So my question is, is it OK to answer Y here? I don't want to  just blindly accept whatever error the package manager throws at me.


How can I prove that  $n \log_2(n) ∈ O(log(n!))$  is true?  We start by supposing that $f(n)< c g(n)$ is true,  which means that $n \log_2(n) > c \log(n!)$ for all $n>n_0$ and $c>0$.


Let $\{f_n\}$ be a sequence of integrable functions on $E$ for which $f_n$ converges to $f$ a.e. on $E$, and $f$ is integrable over $E$. Show that if $\lim_{n\rightarrow\infty}\int_E|f_n|=\int_E|f|$ then $\int_E|f-f_n|\rightarrow 0$.  So I feel like this should be really obvious, but I'm having a hard time proving it. I'd appreciate some advice! The details are what get me!


Click event on a button which was created dynamically

I am creating a button using javascipt like below:   "
<button id='rkeys'>Related<button>

"    $('#search_results').append(html_result)   And below that I have the functions which is waiting for a click event on '#rkeys' id, but nothing happens when I press that button.   related_keys = ->    console.log('click')  $('#rkeys').on 'click', related_keys   What can I do to make this work.


Can we use "the" (definite article) with nouns to refer to a group of that name?  For example, on learnenglish.britishcouncil.org and  said:      to say something about all the things referred to by a noun:         The wolf is not really a dangerous animal (= Wolves are not really dangerous animals)     The kangaroo is found only in Australia (= Kangaroos are found only in Australia)     The heart pumps blood around the body. (= Hearts pump blood around bodies)      Is that really right?  Because I only saw in that site and I know that when "the" comes before adjectives it refers to a group of people.


On my laptop display (1920 x 1080 resolution), the default font looks very small. So I have binded the super + + shortcut to the increase text size, under shortcuts section in settings. This does the job and the font size is increased, and everything looks good (font size wise). But recently, I noticed that I have to increase the font size after every time I reboot my PC. After every reboot, it goes to the original tiny size (default size). How do I increase the font size one and for all? EDIT 1 I just noticed that the small size of font is only in the top bar, settings and the app drawer. Font in the web browser, text editor, desktop icons, terminal stick to the size I last set them to.


Proposal  When flagging an answer for deletion or voting to delete an answer, users are opted to select a reason for deletion from a list or enter a custom reason (much like when flagging/voting to close). This replaces the not-an-answer and very-low-quality flag. The same list is presented to reviewers in the low-quality queue.  The list of reasons would be similar to the canned comment in the low-quality queue for answers and contain, e.g.¹:   New or same question posted as an answer. Thank-you answer. Link-only answer. Answer to another question. Attempt to comment on another post. Other (enter custom reason).   If selected by somebody with sufficient reputation, each reason should result in a canned comment providing useful guidance to the poster.  Rationale  Generally speaking, this proposal makes it easier to communicate the alleged problems with the post to:   The author of the post, Reviewers in the low-quality queue, Moderators in the flag queue, other users.   This in turn results in posts being less disappointment for new users, shorter review and moderating times and less misunderstanding.  More, specifically, this addresses the following issues:   On some sites (including SO), the moderators established a policy that posts should only be flagged as NAA if they can been recognised as such without looking at the question or comments (because moderators don’t directly see these in their interface); otherwise a custom flag should be raised. This is problematic as it contradicts the flag description (which applies, e.g., to answers to another question) and increases moderator workload (as custom flags cannot be handled by community moderation). The proposed change would remove the necessity for this policy (if the deletion reason is visible to both, reviewers and moderators). The confusion caused by the very-low-quality flag is gone. Should any answers exists that can only be flagged VLQ other can be used for them. It addresses the problem that the , which makes communicating what is wrong with the post unnecessarily tedious in standard situations. Authors receive guidance as early as possible. With a bit more extra work, this addresses the problem that . It probably alleviates the issue that  because they feel they have to, as they will most likely agree with the initial flagger and can choose other, if they feel that nothing fits. It solves the confusion as to how link-only answers should be flagged, to which neither the wording of NAA nor VLQ clearly applies.   Old proposals  I am aware that there are some old proposals suggesting something similar (e.g., ), but they were made when the system for handling flags and reviews was quite different or they only address tools for moderators.     ¹ For some sites, it would make sense to have custom reasons (e.g., answers without citation on Skeptics or for single-word-requests on English Language & Usage).


Exporting whole map from ArcMap to GeoTIFF not just current view?

I like to export my whole map which is composed of both raster and vector data to geotiff (or other raster format) in ArcMap 10.1. If I select file->export, only the current view is exported. I want to export the whole map in for instance the 1:100 000 scale.   Does anyone know how to do this?


Show that $\bar mf=f\bar m$ for any isometry $f$ of $S^2$

Let $\bar m$ be the isometry sending a point $P$ to its opposite point $-P$, show that $\bar m$ commutes with any isometry of $S^2$  I know I can use the fact that isometries preserve distances, but do I need to individually apply this to each type of isometry?


What are the pros and cons of an articulated display?

In my opinion an articulated display (one that rotates to allow viewing at different angles) is a big advantage for a modern camera. But I see that most professional and/or more expensive cameras do not offer it.   An articulated display is a long-time standard feature for all video camcorders, yet most modern DSLRs with video capabilities offer no such feature.   What is the reason for not making the articulated display a 'standard" feature on any high-end camera?


Precision error with logarithms and exponential functions in Ruby


Logistic regression as a special case of softmax regression

I was looking at logistic regression and softmax regression.  Based on this formula,   $P(y=j|\mathbf {x} )={\frac {e^{\mathbf {x} ^{\mathsf {T}}\mathbf {w} _{j}}}{\sum _{k=1}^{K}e^{\mathbf {x} ^{\mathsf {T}}\mathbf {w} _{k}}}}$  How does $k=2$ make it logistic regression? I cannot seem to derive this to this  $\sigma (t)={\frac {e^{t}}{e^{t}+1}}={\frac {1}{1+e^{-t}}}$


Tags in 'tagged' section won't update after edit

I've noticed this bug on Stack Overflow but it may be a common issue on all Stack Exchange sites.  After editing question's tags 'tagged' section (seen in the right section) won't update after editing question's tags. Hitting F5 updates this info.  Steps to reproduce:   Edit question's tags.   Actual result:   Question tags below question text are updated. Question tags in the section 'tagged' to the right of question are not updated.   Expected result:   Tags in both sections are updated.


I try to improve the time pdflatex needs to compile my book.  Really working example  book.tex  %&preamble \begin{document} Hi \end{document}   and  preamble.tex  \documentclass{article}   I run the following commands on bash console:  $ pdflatex -ini -jobname="preamble" "&pdflatex preamble.tex\dump" $ latexmk -pdf -pvc -e '$latex=q/latex %O -shell-escape %S/' book.tex   A window opens with a (nearly) live preview that will be updated after each change in the book.tex file. The PDF Viewer evince reloads automatic when the .pdf changed.  Open Questions  I had no success to compile with the preamble of my book in the preamble.tex file.    How can I find out what I can ?  Can I precompile \newcommand's, \usepackage's?  Can I precompile a pure chapter without header?   Other aproaches for speed up  (I do not understand how to combine this ideas for best result)   pdflatex knows a -draftmode  I measured 20% faster compilation with time pdflatex -draftmode 50pagetest.tex


$f$ is a continuous function on the closed interval $[a,b]$ such that $f \geq 0$ on $[a,b]$. Let $$   M_n = \left( \int_a^b f (x)^n dx \right)^{1/n}. $$ Show $\lim_n M_n = \sup \{ f(x) \mid x \in [a,b] \}$.


If we are given $j,k \geq 0, j> k$ and $j,k$ are integers, can $2^j + 2^k$ be ever expressed as $2^n$ where $n \geq 0$ and is an integer?  What I said:     Suppose it can. Then for some $0 \leq n \in \mathbb{N}: 2^j + 2^k = 2^n$. We know that $j>k$ so $j=k+s$ for some $0 < s \in \mathbb{N}$. So: $2^j + 2^k = 2^{k+s} + 2^k = 2^k \cdot 2^s + 2^k = 2^k \cdot (2^s + 1)$. We see that $2^s + 1$ can be an even number only if $s=0$ but we know that $s > 0$, thus we have that $2^j + 2^k$ which is an even number is equal to an odd number (even * odd), thus it can't be.   Is that correct?


SharePoint Framework: how to change TypeScript version used by gulp?

I set up a new project using the yeoman template for SharePoint Framework web parts. Everything is working fine, I can run gulp serve and work in the local workbench. Good.  Now I need to change the TypeScript version. When running gulp serve the console is showing:  [09:12:38] [typescript] TypeScript version: 2.1.6   Where does this version come from? How can I bump this to 2.2.x?


Where is IP Address of my Ethernet settings stored in Registry

In a LAN, I configure my IP address as needed, but once in a while I move to a different subnet and need to update my IP address quickly so I am thinking of making a simple application to help me with this. Thus I would like to know where is the IP address settings stored in Registry?  In the old days of Win95 I could just search for the string, but now in Win10, the registry has become so huge it would probably take 8 days to end the search. Halp.


Select a dropdown element with dynamic ID using Webdriver, C#

I have a situation I'm trying to handle. I am using webdriver, C#. when I tried using the CSSSelector it is just reading the parameter as a string. Kindly look into it.This is the HTML.
     ***&nbsp;***       <input class="select2-focusser select2-offscreen" type="text" aria-haspopup="true" role="button" aria-labelledby="select2-chosen-7" id="s2id_autogen7">

                <input type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" class="select2-input" role="combobox" aria-expanded="true" aria-autocomplete="list" aria-owns="select2-results-7" id="s2id_autogen7_search" placeholder="">

   The element I'm trying to get the ID is a dropdown with this kind of ID: id="select2-chosen-7". The "select-chosen-" is static and numeric part is dynamic. After reading forums, all suggestion does not seem to have the answer. At the end this is the code I'm using which is still not working -  IWebElement DropDownPath = driver.FindElement(By.CssSelector("*[id^='select2-chosen-'][id*='select2-chosen-']")); SelectElement DropDown = new SelectElement(DropDownPath); DropDown.SelectByText(UserConstants.UserRoleText);


var/cache/apt/archives occupying huge space

I am in the process of cleaning up my system. And I see a lot of space occupied by this folder /var/cache/apt/archives (1.5GB). Is it absolutely necessary to keep all these archives?


Automatically signed up for all Stack Exchange

One thing that I observed is that you're not automatically signed up for a Stack Exchange that you haven't sign up. My suggestion is to automatically sign them up to all Stack website (Think like Google. When you have sign up for Gmail, you already signed up too for YouTube. (Well okay, when first time visiting You Tube, you need to configure the channel name, but you got my point))  Example: I have register at Stack Overflow, why cant SE just signed up it all for other Stack website (like Programmers, RPG, Christianity, etc....)  Or maybe, the SE will automatically signed you up when you ask a question or answer for the first time on the site  Note: I'm not looking for one account for all Stack website, which of course, has been covered by OpenId, but I'm looking forward for a feature that will automatically sign me up for others website. Which is I'm suggesting.  Thanks.


Python - How to create many objects at once?

Is there any way to create many objects at once in Python?   Let say, that I want to populate a list with 1.000.000 object instances. Instead of initializing objects one-by-one in loop, is there any way to create them in one call?  Iterating one-by-one takes some time and I am looking for a way other than running many threads to reduce this time.  My adventure with Python started a month ago, so I am quite unaware of many Python specific tricks. Any hints how to deal with this problem?


EDIT: This question is not addressed by , if I'm wrong, then please provide a link to a particular answer or comment that does address my question. (Such links appear in timestamps.)  In Writing: Grammar, Usage, and Style, Jean Eggenschwiler & Emily Dotson Biggs advocate a serial comma in the following sentence:     He bought a dishwasher, microwave, refrigerator, and washer from the outlet.   Yet, the inclusion of a serial comma seems to introduce an ambiguity: It seems unclear whether all items (i.e., the dishwasher, microwave, refrigerator, and washer) were bought from the outlet, or just the washer. Would omitting the serial comma be better? I.e., does sentence     He bought a dishwasher, microwave, refrigerator and washer from the outlet.   improve upon the original?


I'm modeling a GoPro camera, and am using circular n-gons to make a set of nested depressions for the lens. The model without subsurf looks like this:  (n-gons in question are around the outer edge of the outer circle and in the center of the len)  When I try to apply a subsurf modifier to any degree, I get crazy distortion like this:   My only thought as to what could be causing this is that the mesh isn't all quads, so I tried using a remesh modifier, but only got high-enough quality results at around octree 9 or 10, far higher of a resolution than I want to deal with when render time comes along.  Is there any way short of manual retopo that I can stop the subsurf from freaking out over the n-gons?  Any and all help is appreciated. Thanks in advance for your time.   EDIT 1: I'm running Blender 2.8 Beta, so if all else fails I'm prepared to accept that this might just be a bug, in which case I'll start over in 2.79.  EDIT 2: So I fixed the problem through manual retopology, but I'm still interested in hearing if anybody knows a faster way to do this for future projects. Thanks!


How to prove $\sum_{k=0}^{n-1} \cos\frac{2k\pi}{n}=0$

My teacher told us that : $$\sum_{k=0}^{n-1} \cos\frac{2k\pi}{n}=0$$ Without giving any proof If someone could tell me how to approach this that would be great !


How many loops can be made from randomly knotting ends of threads?

You’re given a bag containing $n$ pieces of thread of length $l$.  $ $ You’re asked to reach down the bag and randomly pull out one end of a thread.  You’re then asked to knot this end to another end of a thread (that you also pull out randomly from the bag).  $ $  $ $ You have to do this $n$ times.    At the end of this activity, how many loops of thread will you have?  $$ $$    I was given this problem some time back, but sadly, it didn’t come with a solution. After multiple approaches, I’m fairly sure that we can’t give a definite answer as a function of $n$ and/or $l$ (at least, it doesn’t seem obvious). $ $   It seems the answer will be more probabilistic and less combinatorial $ $ (I may be wrong).   e.g.: the probability of making a loop on the first two picks would be $\frac{1}{2n-1}$, on the next two picks (if you did make a loop on the first two) would be $\frac{1}{2n-3}$, and so on.  $ $  $ $ I’m not sure how to develop much further from here.


How to generate combinations from arrays?

Consider the case of having three arrays:  X = {A , B , C}; Y = {D , E , F}; Z = {G , H , I};   How to generate all the possible combinations from these three arrays ( C++ or Python ), that's like  C1 = {A , D , G}; C2 = {A , D , H}; ... C4 = {A, E , G}; ... C10 = {B , D , G}; ... ...


How to create a gaussian curve with pgfplot?

What I want:    This is what I have so far in terms of code:  \newcommand\gauss[2]{1/(#2*sqrt(2*pi))*exp(-((x-#1)^2)/(2*#2^2))}  % Gauss function, parameters mu and sigma  \begin{tikzpicture} \begin{axis}[every axis plot post/.append style={   mark=none,domain=-2:3,samples=50,smooth}, % All plots: from -2:2, 50 samples, smooth, no marks axis x line*=bottom, % no box around the plot, only x and y axis axis y line*=left, % the * suppresses the arrow tips enlargelimits=upper] % extend the axes a bit to the right and top \addplot {\gauss{0}{0.5}}; \addplot {\gauss{1}{0.75}}; \end{axis} \end{tikzpicture}


Let $\{x_n\}$ be a bounded sequence all of whose convergent proper subsequences converge to $\ell$. Prove that $\{x_n\}$ converges to $\ell$.

How can i actually use the fact of the subsequences being proper. Are $x_{2n+1}$ and $x_{2n}$ proper subsequences? because being so solves this immediately.


How to edit / how to format box overlapping with footer when scrolling down

I just edited an answer on Unix&Linux and when scrolling down, the semi-transparent right sidebar boxes "How to edit" and "How to format" kept their fixed positioning and overlapped with the page footer.     While posting this, I have seen several (not) duplicate questions about this issue, and although from my personal taste, I would prefer the boxes to stop scrolling before the footer is reached, I can accept the development teams decision to let it overlap.   However, on all those other posts, the boxes had an opaque background, so that the footer was hidden and the box content was readable. Here the boxes are transparent though, so the texts get mixed and are no longer well readable.


How to proof that 144 is the only Fibbonacci square number

From what i heard 144 is the only number which is a Fibonacci number and also a square number. I couldn‘t find any proof online tho. I checked Wikipedia and tried looking up a paper on google scholar, could someone show me the proof, or correct me if there isn‘t one. Thanks everyone.


Red Dwarf: time and space travel paradoxes in "Tikka to Ride"?

The Red Dwarf episode Tikka to Ride has confused me more than any previous episode:   How was it possible for the crew to use the Time Drive to travel back to 1960's Earth, when in the previous episode, Out of Time, made it clear that they couldn't use it to travel through space (they'd need a Space Drive for that)? In the latter, use of the Time Drive merely left them in "pre-Renaissance deep space"! How was it possible for JFK to kill his past self - would time not have simply reset to just before the Dwarfers met him, in the same way that it reset to just before the Dwarfers were killed by their own future selves? (As Lister tried to explain at the beginning of the episode.)


How exactly is Arda supposed to be an ancient Earth?

As most Tolkien fans know, Arda (Tolkien's world) is supposed to be Earth in its past, and all its stories are supposed to have happened long ago on this very same planet. Of course, this is fiction, so this is not supposed to be actually true.  But, if one wanted to roll with it... how could it possibly make sense from a geographical standpoint? All maps of Middle Earth (before or after the destruction of Beleriand and Numenor) just don't match anything on Earth, even when considering continental drift.  Of course, one could simply say "the Valar reshaped it (again)", but not only this is a bit unsatisfactory, it also doesn't make much sense in context, as Valar are well known for not wanting to meddle with Arda unless absolutely needed, and even then, as little as possible.    Update:  Hey, please calm down, guys. Mine was not a rant at all. And I know perfectly well this is fiction (and I've stated it plainly). The sense of my question was: "If one wanted to follow this line of thought and assume Arda should be related to Earth as Tolkien said, then how could this relationship be explained?".


How to derive a non-template class from a template base class

I've a simple problem but I really can't understand why. I think you can help me.  I have a template base class :  template <class T> class Base {     public:         T foo(T t);     protected:          Base();         ~Base(); };   I want to derive a specialisation of this template :  class Derived : public Base<std::string> {     public:         Derived();         virtual ~Derived(); };   All the functions are defined in the respective .cpp (they are empty, except for foo which just returns t)  I chose std::string as an example. But this simple code doesn't compile. I have errors : "indefinite reference to "Base::Base()" "indefinite reference to "Base::~Base()"  It seems that I follow examples on internet but it doesn't work... I really don't understand this one, it must be obvious!  Can you help me? :)  (PS : sorry if my english is bad)


How does built-in ST-link on a nucleo board communicate with the laptop through USB?

I'm trying to understand how USART works on a STM32 nucleo board that has a built-in ST-link. Here's the high level diagram I found from the user manual.   It's apparent that that RX and TX pins of the MCU are connected to TX and RX of the ST-link as expected, but what happens next? how does ST-link forward these signals to the laptop that's using serial interface for sending/receiving serial data?


Adjusting condition in field calculator in QGIS

I need to calculate a score based on an area field using these ranges:  if >= 30000 (square meters) then 4 (score)   if < 30000 AND >= 10000 then 3   if < 10000 AND >= 5000 then 1   if < 5000 then 0   I've tried with the CASE function but it only works for lines with a single operator (i.e. >=30000 then...) Lines with two operators (where I wrote AND) are seemingly not supported. Here is one of the syntaxes I've tried.   CASE  WHEN Surface >= 30000 THEN 4  WHEN Surface < 30000 >= 10000 THEN 3 WHEN Surface < 10000 >= 5000 THEN 1 ELSE 0 END   The result of this exact command in the score column are only 4 or 0. Which makes me understand that the first line works but not the others.  I know SQL has its BETWEEN operator, which would probably be a good solution to my syntax issue, but I don't see it in the field calculator.  So I'm wondering if another function could help me here or if I just need the correct syntax.


I am Pakistani citizen with valid UK visit visa. I am planning to visit Turkey with my sister during our trip to the UK.  When I submit a single application with my and my sister's detail, the system gives an error     "e-visas cannot be issued for a total number of 1 applicant(s)." Do you want to proceed with rest of the applications?      And when I try to submit application with only my details on that, it proceeds to the payment.  I just wanted to ask can I submit applications for myself and my sister separately or do I need to submit single application only? Please help me as we want to travel together. Will there be any problem if we get separate evisas?


I was watching a tutorial how to design an island in Blender, which worked really great, but i didn't want to use the .png Trees the guy used there. So i watched another tutorial and created another kind of tree - without knowing that the object isn't just modeled in Cycles Render, it is also rendered in there.  My problem is either the (lets say "simple" textured) island (rendered in Blender render) or the tree is shown. Is there any way i can "convert" that cycles object (with its shaders) to Blender Render or the other way around? Or just render with two renders in one project? I haven't found something about that til now. If there is no universal solution for that, i could also put a link to my project in here.


I cant see any text on Skype after update to ubuntu 15.10

I recently updated ubuntu to 15.10. After the update I couldn't see any text in Skype! I tried reinstalling it     sudo apt-get purge skype   Deleted the /home/username/.Skype folder  and reinstalled Skype but that didn't solve the problem.   As you can see from the image screenshot above, I can't event start it now as it is stuck on the Terms of Use window  I managed to login after restarting ubuntu but then it failed again


Could someone please tell the difference between "turns out that" & "turns out to be"

I'm confused between these two phrasal verbs. I'm going to quote here two examples but since I'm learning so I might be wrong, do correct me here. "It turns out that it was a conspiracy against him" and "it turns out to be a conspiracy against him".


Can you transfer GB(C) Pokemon from Red, Blue, Yellow, Gold, Silver, and Crystal to their respective 3DS Virtual Console counterparts?

Like the title suggests, I am wondering if there is any way to transfer my beloved Pokemon from the Gen 1/2 games to the VC games so I can get them to Bank, Home, and eventually Let's Go, Sw/Sh, and Bd/Sp.  However, I can't find a thing on the internet about this.  Maybe I'm just an idiot and not looking hard enough, but I really want to know how since I don't see any link cables that adapt GB(C) to 3DS.


I am trying to build a query in Postgres. My background is in SQL Server so, I'm having some syntactical challenges. My query needs to hit two seperate databases on two separate servers. I need to do a join between the datasets. Essentially, I have a table with user login activity in db1. A entry gets added each time a user logs into the website. On db2, I have a table with purchases. For each day, I need to see: how many people logged in and how many of the users that logged in made a purchase.   My tables look like this:  Logins                Purchases ---------             --------- ID                    User_ID User_ID               Amount LoginDate    This would be easy if my Purchases table had a date field on it. But it doesn't. So, currently, I'm trying the following:  SELECT    // Somehow get the number of logins for the given day here   // Somehow I need to get the number of purchases for the given day here         TO_CHAR(TO_TIMESTAMP((LoginDate/1000) - 14400), 'MM/DD/YYYY') AS the_day FROM    db1.Logins AS t1,   db2.Purchases as t2 GROUP BY the_day ORDER BY the_day;   How do I get the number of logins and purchases for a each day in Postgres? Thank you!


A question about the facets of convex polytopes and their intersections

Here's an excerpt from M. Ziegler's "Lectures on Polytopes":  Remarks:  polytope here means what in other sources may be referred to as a convex polytope - a convex hull of a finite set of points (vertices); $F_1,\dots,F_s$ being a shelling order seems to be irrelevant to the claim (but I'm not sure) , one can probably treat them just as all the facets of $P$.  The highlited claim is given without a proof (as far as I was able to find) also in some other sources on the topic. I see that this is pretty obvious for three or less dimensions. Maybe someone can formalize this claim?


I have seen people apply a filter to imported data before plotting with pgfplots, see . Is there a way to extend the approach presented there to apply multiple filters? In the MWE below I made the naive modifications to the solution given there, but it seems that only the last filter is applied: the unwanted y=1 data points are plotted too.  \documentclass{article} \usepackage{filecontents} \usepackage{pgfplots}  \begin{filecontents}{foo.txt}   x y z f   0 0 0 0   0 0 1 1   0 1 0 2   0 1 1 3   1 0 0 4   1 0 1 5   1 1 0 6   1 1 1 7   \end{filecontents}  \pgfplotsset{   discard if not/.style 2 args={   x filter/.code={   \edef\tempa{\thisrow{#1}}   \edef\tempb{#2}   \ifx\tempa\tempb   \else     \def\pgfmathresult{nan}   \fi   }}   }  \begin{document} \begin{figure}   \centering   \begin{tikzpicture}   \begin{axis}   \addplot table[x=x, y=f,                  discard if not={y}{0},                  discard if not={z}{0},                 ] {foo.txt};   \end{axis}   \end{tikzpicture}   \caption{$f(x)$ given $y=0$ and $z=0$.}   \end{figure} \end{document}


What is another word for 'all round' capabilities?

I am looking for a positive, passionate word to describe the all-round capabilities of a person.   Are there any words better than 'all-rounder'?


About reviewing The review queues contain posts that possibly need further action from the community, like improvement, closure or deletion. By presenting those posts for peer-review, the system aims for higher quality content. Some user actions, such as suggesting an edit, casting a flag, close vote or reopen vote, or posting for the first time, can trigger the inclusion of a post on a review queue. There are also posts included on the queues algorithmically, such as the contents of Late Answers and Low Quality Posts. General guidelines  Always read the full post you are reviewing. Don't rush. Take the necessary time to read the post carefully. If you don't care about a post, just click Skip or Not sure. When you need more context, open the post link to see the question and all answers. Most posts coming up for review can be improved. Use the Edit option, and edit thoroughly. If you're unsure how to review a post (perhaps it's outside your areas of expertise), skip it. Someone who understands it better will review it later.  Guidelines for specific review queues         (Stack Overflow only)


I am working to integrate unit testing into the development process on the team I work on and there are some sceptics. What are some good ways to convince the sceptical developers on the team of the value of Unit Testing? In my specific case we would be adding Unit Tests as we add functionality or fixed bugs. Unfortunately our code base does not lend itself to easy testing.


I am new to Java and I want to make an audio sequencer. So I've started with a class for sounds and I have this: public class Sb { public static AudioInputStream audioInputStream; public static File file; public static Clip clip;  Sb(String a){     try {     file = new File(a);     audioInputStream = AudioSystem.getAudioInputStream(file);     }      catch (UnsupportedAudioFileException u) {     }     catch(IOException i) {     }     catch(NullPointerException n) {     }      }  public static void play(){     clip.start(); }   }  I declare an instance like: public static Sb hats = new Sb("file path");  And when I run hats.play() I get: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException  Any ideas how I can make this class work? Thanks! Edit: Modified Constructor: Sb(String a) throws UnsupportedAudioFileException, IOException, LineUnavailableException {      file = new File(a);     audioInputStream = AudioSystem.getAudioInputStream(file);     clip = AudioSystem.getClip();    }  But when I declare it now I get an error on this line:  public static Sb hats = new Sb("file path");  Error: "unreported exception UnsuportedAudioFileException must be caught or declared to be thrown


Import Duty on electronics being brought to India from the USA

hey my friend is coming back from usa to india,he is carrying used 2 laptops and 4 used mobiles.and my iphone 6s plus 128gb is among them.will it lead to any problem.am ready to pay import duty,wat will be the import duty on my item which cost aprrox 80000INR


Here I am, trying to display an equation that takes way too long for one line, so I called multline.   \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{geometry} \usepackage{amssymb,amsmath} \usepackage{amsfonts} \geometry{a4paper}   \begin{document} \begin{multline} S_E=\int \mathrm{d}t \left[\frac{(f'\dot{\xi})^2}{2} \int \mathrm{d}x(\phi_0+1)^2+\frac{f^2}{2}\int \mathrm{d}x \phi'^2\\ + \int \mathrm{d}x (\psi^2-1)^2(\psi^2-\delta_1) + \frac{1}{\gamma+\psi^2}\left[\left(f^2(\phi_0^2+1)-2f(\phi_0+1)\right)^2-\frac{\delta_2{4}(f(\phi_0+1)-3)(f(\phi_0+1))^2\right]\right] \\ \label{actionrescale} \end{multline} \end{document}   However, if I called \begin{equation} and \end{equation} instead of \begin{multline} and \end{multline} the equation would show up just fine (or at least as much of it that could fit on the resulting pdf file). What exactly is wrong with this document?


Is there a simple linux command that will tell me what my display manager is?  I'm using Xfce.  Are different desktop environments usually affiliated with different display managers?


How to search for a word in column header that fully matches the word not partially?

I have a multicolumn text file with header in the first row like this   Name  xy_fill zxy_fill tz_fill  Fox    0      5        55 Snake  1      6        14 wolf   8      1        2   The headers are stored in an array called hdr. which contains xy_fill  tz_fill  I want to search for each elements of this hdr array from that multicolumn text file. And I am using this awk approach  for ii in ${hdr[@]} do    gawk -vcol="$ii" -F  $'\t' '                                      $0 ~ col{    for(s=1;s<=NF;s++){                                   heading=$s                                            colhdr[s]=heading          if(index(heading, col))wanted[s]=1        }     }    '  done   But this gives me both xy_fill and zxy_fill columns while searching for xy_fill. How can I only read xy_fill column? For example if I search xy_fill it should return column number 1 but my script is returning 1 and 2, which is wrong.


Non-English characters in URLs with Biblatex-Chicago + Biber

Is there any way to keep the URLs in the same form they are saved within the .bib files when using biblatex-chicago with Biber? For instance, the entry  @misc{RussianEmpire.1855,  author = {Russian Empire},  year = {1855},  title = {Treaty of Shimoda},  url = {https://ru.wikisource.org/wiki/Симодский_договор_с_Японией_(1855)}, }   results in the following output:    While there certain are benefits to converting the link itself, this sort of output in the footnote makes it both ugly and difficult to re-enter the link when reading a printed copy. How would one proceed about to receive the output along the lines of ""?  Minimal working example:  %!TEX program = xelatex \documentclass{article}  \usepackage{fontspec} \usepackage[russian,british]{babel} \newfontfamily\russianfont[Script=Cyrillic]{CMU Serif}  \usepackage[CJK, Cyrillics]{ucharclasses} \setTransitionsForCyrillics{\russianfont}{} \usepackage{csquotes} \usepackage[labeldate,backend=biber]{biblatex-chicago} \addbibresource{bibliography.bib} \usepackage[unicode,hidelinks]{hyperref}  \begin{filecontents}{bibliography.bib} @misc{RussianEmpire.1855,  author = {Russian Empire},  year = {1855},  title = {Treaty of Shimoda},  url = {https://ru.wikisource.org/wiki/Симодский_договор_с_Японией_(1855)}, } \end{filecontents}  \begin{document}  Cyrillics support test: Тест\\  \cite{RussianEmpire.1855}  \end{document}   Output:


SATA I hard drive compatibility to SATA II motherboard.

I would like to buy a new motherboard for my computer since I'm in need of higher ram capacity. My computer is pretty old and my hard-drive is SATA I. All new motherboards I see mention that they have SATA II/ SATA III compatibility. Will my SATA I hard-drive be able to connect?


A remote router is accessible via SSH: 16.04 scp copies files back and forth from the command line.  ASUSWRT-Merlin RT-AC68U 384.7-2 Sun Oct 21 17:18:03 UTC 2018  USER@router:/tmp/home/root#    # uname -a  Linux RT-AC68U-3D90 2.6.36.4brcmarm #1 SMP PREEMPT Sun Oct 21 13:27:49 EDT 2018 armv7l ASUSWRT-Merlin   sftp does not seem to work from the command line:  sftp user@monkeybusiness.com  user@monkeybusiness.com's password:  sh: /opt/libexec/sftp-server: not found Connection closed   I would like to use a GUI (Filezilla, Krusader, Nautilus), however I have not yet met with success with this trio.    This , however the error received is:  Error: The directory ... does not exist:     QUESTION  What else can be done configure Krusader to access the router and SCP (not SFTP) files?


different convergence of the series $\sum_1^\infty{(-1)^n\frac{x^2+n}{n^2}}$

Consider the series $$\sum_1^\infty{(-1)^n\frac{x^2+n}{n^2}}$$ Pick out the true statements: (a) The series converges for all real values of $x$. (b) The series converges uniformly on $\mathbb{R}$. (c) The series does not converge absolutely for any real value of $x$.        (a) is true by alternating series test. (c) is not true as $\sum_1^\infty{\frac{x^2+n}{n^2}} \ge \sum_1^\infty{\frac{1}{n}}$. (b) I have no idea. seek your help for (b)


I have an installation with 4 tv's connected to an a HDMI hub and this hub is connected as second display in a windows 10 computer.  All is working nice, but all tv's are far away from the computer, so when we expand the desktop to play some video (VLC, youtube etc...) we have to fish with the mouse to find the opened window to bring it back to main desktop and change what is being played.  Actually we make a workaround turning off desktop expansion and changing video, but I was guessing:  There is some way to preview in the main screen what is being displayed in second one?


I'm using the book class and I want to renew its existing command \@makechapterhead. The original command is shown on p.32 of . In particular, I want to change the spacing in line 811 from 50 to 30, so I did the following  \renewcommand{\@makechapterhead}{      \def\@makechapterhead#1{%         \vspace*{30\p@}%         {\parindent \z@ \raggedright \normalfont      \ifnum \c@secnumdepth >\m@ne  ⟨book⟩     \if@mainmatter          \huge\bfseries \@chapapp\space \thechapter          \par\nobreak          \vskip 20\p@       \fi ⟨book⟩    \fi     \interlinepenalty\@M       \Huge \bfseries #1\par\nobreak       \vskip 40\p@     }} }   But I got an error saying illegal parameter number in definition of \@makechapterhead. How do I fix this?  Thanks.


Does $n\mid(a^n-b^n)$ imply $n\mid(a^n-b^n)/(a-b)$?

Finding my  quite naive, I improve my question:       Given that $n,a,b \in  \mathbb{N}$ and $n\mid(a^n-b^n)$ , can we prove or disprove $n\mid(a^n-b^n)/(a-b)$ ?


Why is oil called more viscous than water when we slip on oil more than we do on water

If we were to throw some water on the floor then walk over it we may or may not slip but it wouldn't that be difficult to walk. If we repeat the same thing with oil we it would be harder to walk as me spread our legs and apply a force component of force tangential to the surface of the floor does this not mean that the layers of oil have less friction between them than compared to water.So why is oil said to be more viscous?  Another example is hair oil if we keep water in out palm it's not that slippery but  with oil it's slippery even after we apply it to our hair. I've read some answers on reddit about this but I wasn't able to understand much.


How do I assign an entire Active Directory group security access in SQL Server 2008?

I would like to use integrated security with my internal application which is all on a domain.  Unfortunately, I've never been able to get this to work well.  I would like to assign an entire Exchange (Active Directory) Group a role in SQL Server for read/write access to certain tables.  That way I wouldn't have to create an operator whenever someone is hired or delete an operator whenever someone is fired.  Is this possible?  What steps would I take to do this?


How do I run 32-bit programs on a 64-bit Debian/Ubuntu?

I have a 64-bit (amd64 a.k.a. x86_64) Debian or Ubuntu installation. I need to run 32-bit (i386/i686) programs occasionally, or to compile programs for a 32-bit system. How can I do this with a minimum of fuss?  Bonus: what if I want to run or test with an older or newer release of the distribution?


What to use for performing operations on multiple records at once, Apex REST class or Bulk API?

I need to insert/update/delete a variable number of records at a time from a webapp (so from javascript), are there reasons to choose the  over writing a custom Apex REST class to do this or vice versa?


I want to make a log to detect the nature of intrusions into my Unix/Linux based server.   For that I want to learn some tools like Open Source Tripwire and OSSEC. Please suggest to me similar tools.   What kind of info can I get about the intruder from the tools of this kind? Can I automate the process of keeping track of the alerts generated by these tools in a file?


Can't log into GUI login screen with user who has ssh and sudo access after setting password

I can log into a box via ssh using an ssh key, passwordless.  I have set my password using sudo passwd myusername and I get the success message passwd: password updated successfully.  When I try to log into the GUI console using that password I get two beeps (sounds like a failure tone I think) and it just goes back to the list of users.  Are there some tricks that might be disallowing my user from logging on via the console? How would I even debug the issue? I don't see anything obvious in dmesg.


Automatically save bash command history in screen session

I connect to a screen session. After doing some stuff I detach it. Then in history | tail I only see screen -r and previous commands and not the commands run in screen session. Basically history shows different things when screen session is running and after it is detached.  How do I make sure that the commands in screen session are appended to bash history?   Config: screen 4.0.3,  bash 4.1.2


Maintenance plan for creating transaction log backups

I have a database that is set to the 'Full' recovery model, and I'm creating a maintenance plan to backup the Transaction Log every 15 minutes. A full backup is then taken once every 24 hours.  I was wondering: will the maintenance plan for the transaction logs create a lot of different files every 15 minutes, or will it by default append to the same file for 24 hours?  Also: what is preferred? I couldn't find anything on this subject (or maybe I was Googling the wrong words).  Thanks for any pointers anyone can give me.  EDIT: I also see that the checkmark "Verify backup integrity" is OFF by default. Is there a risk with turning it on? It seems to be that it should be on by default, so is there a reason for not using this?


Does a spell caster know whether their non-physical spell has been successful?

For example, take the spell command:     You speak a one-word command to a creature you can see within range. The target must succeed on a Wisdom saving throw or follow the command on its next turn. The spell has no effect if the target is undead, if it doesn't understand your language, or if your command is directly harmful to it.   As the spell takes effect next turn, the results of the spell are not immediately obvious. Is the DM required to announce whether the creature has succeeded or failed on its saving roll? Or, in the case of command, whether the command was appropriate or whether the creature understood the command?


You have two identical eggs. Standing in front of a 100 floor building, you wonder what is the maximum number of floors from which the egg can be dropped without breaking it. What is the minimum number of tries needed to find out the solution?


I've read a lot of posts and everyone says, that virtual table is per class, not per object and object only has _vtpr pointer to shared vtable. But please consider this example:  class Base { public:     virtual void func1(void) {}     virtual void func2(void) {} private:     int dummy; };  class Der1 : public Base { public:     virtual void func1(void) {} private:     int dummy; };  class Der2 : public Base { public:     virtual void func2(void) {} private:     int dummy; };  int main(void) {     Base * obj1 = new Der1;     Base * obj2 = new Der2; }   Does obj1 and obj2 relates to that one unique Base class vtable? I believe the answer is no, but can you please explain? And if both of these objects do relate to the same vtable, how it is determined which methods to be called? For example, obj1->func1 reference is different than obj2->func1.  UPDATE: What operations are executed when doing Base * obj1 = new Der1;? Can someone write a pseudo code for these actions?


Is there any way to tell which graphics processor is working in a laptop?

I have a Dell Inspiron N5010 laptop which has both a discrete GPU (ATI Mobility Radeon HD 5650) and an integrated GP (Intel HD Graphics). A few days ago I started to get BSOD with the atikmpag.sys 0x00000116 error. In the device manager I had stopped the ATI driver and now I can use my laptop. In the display properties I read that now it uses the VgaSave driver.  My question is: is this driver runs in the integrated GP, or in the discrete GPU? Is there any way to tell?  Thank you.    UPDATE: This is from the Dell Inspiron N5010 Setup Guide:      UPDATE 2: This is what Adapter Properties Window shows:      UPDATE 3: I am now really confused. I have been running my laptop for about 5 hours on the VgaSave driver, with ATI driver stopped in the Device Manager. As Fleet Command has suggested, I assumed that the VgaSave driver was running on the inegrated GP. Could you please see the attached picture and tell me why the discrete GPU heats up?    I also downloaded the latest version of the OpenHardwareMonitor, as suggested in the answer for this question (), and its readings do not seem to be reliable as to whether the discrete GPU is engaged or not. That makes the accepted answer invalid.    Also, my system is different from the system in the question because I do not have the integrated GP listed in the Device Manager. So - different system and no valid answer = not a duplicate.    UPDATE 4:  I made some more screenshots, hope that may help. I can not post images, so I can only provide the links.  This is DirectX Diagnostic Tool (DxDiag) output, it is not in English, but if something needs explanation, I will translate:   This is GPU-Z output:      And this is from the Device Manager, I put some minor translation (in red):   The laptop CPU is Intel Core i5 M480 2.67 GHz  Thanks for the help, guys.


OpenFileDilog for both files and/or folders in C#

I want to know is there any API which I can use to select both file and/or folder in C#. I have read some docs where people are suggesting to write your own wrapper class and override the properties of both OpenFileDialog and folderbrowserdialog. But I don't want to do that. Does microsoft provide any such APIs which I can use ?


Why is Intel Turbo Boost Not Working On My Laptop? (Continued)

This is continuation to   **Please read previous question in order to understand my findings.*  Okay guys, this is REALLY strange. It seems as Intel Turbo Boost was always working, but i could not see it really working until i installed Intel Processor ID Utility.   - Intel Turbo Boost activated in BIOS  What is strange is that no other programs can see Turbo Boost but Intel Processor ID Utility and Intel Turbo Boost Monitor. Everytime i launch monitor it states that i don't have Turbo Boost enabled, but continues to monitor.   - Intel Turbo Boost deactivated in BIOS  And Turbo Boost still works although it is deactivated in BIOS?! How is this possible?  I don't know what to believe now. What if monitor and processor ID lie to me that Turbo Boost is working and other programs don't? I don't have any Turbo Boost stuff in Device Manager which means it is hidden and no other programs can see Turbo Boost but Intel's?  AIDA64 CPUID does not show any signs of Turbo Boost - clock rate is ~same, multiplier changes but no further than x25, system bus is ~100MHz.  In the end i have mananged to disable Turbo Boost (i think) but only with having 1 active core, so in other words i cannot disable Turbo Boost with 2 active cores.  I have noticed that when Turbo Boost kicks it, the screen's brightness changes. Any idea why?  Update: Turbo Boost


Is there a Relationship between the Final Fantasy games?

I'm currently replaying Final Fantasy VII and I wondered if there was a relationship between the whole Final Fantasy Franchise before VII. I have never played any Final Fantasy but VII and XIII now. Is there a relation between Final Fantasy I,II,III,IV,V,VI and VII? And between this ones and VIII,IX,X? XI is online, so I won't bother trying it, same as XIV.  I've looked around some website, but they do not seem to mention anything like a relation between them.  Can anyone help me solve my doubt?  Thanks!


After updating to the new version I can no longer dig when I click and hold left Mouse button. I have made sure I am in creative mod. When I click my left mouse button I just get a \.


I am using latest version of VirtualBox (VirtualBox 4.3.6 for Windows hosts) and after installing any OS and clicking inside of it mouse disappear. It is not visible until I press right CRTL. Anyone know what can cause this problem. I have also installed extension pack.


How to get WMS layer feature attribute name

Hereby i have included my WMS layer displaying code.I referred many sites i can't able to get WMS getfeature info.Please anyone help me how to get WMS layer feature info give source code please           WMS - GetFeature                                                              var osm, map, state_boundary;     var state_code;     var vectorLayer, vectorSource, featureRequest;          // set up the map         osm = new ol.layer.Tile({     // basemap layer             title: 'OSM',             type: 'base',             source: new ol.source.OSM()         });         state_boundary = new ol.layer.Image({              title: 'india',             source: new ol.source.ImageWMS({             url: 'http://localhost/geoserver/workspace/wms?',                 params: { 'LAYERS': 'workspace:IndiaState' },                 serverType: 'geoserver'             })         });          map = new ol.Map({             layers: [osm, state_boundary],             target: 'map',             view: new ol.View({                 center: ol.proj.transform([78.188860, 23.176633], 'EPSG:4326', 'EPSG:3857'),                 zoom: 5             })         }); </script>


How can I mathematically prove that the squares of two relatively prime numbers are also relatively prime?  Thanks in advance.


We want to combine the field values with the result values to produce the result as a map. One problem arises when the result contains null. I want to change null to "". I'm not sure if it's wrong. I want to know what to do. please. I want to thank the people who gave me their answers first.  Set<Object> fields = new HashSet<>(); fields.add("id"); fields.add("name"); // this is null value Mono<List<Object>> result = redisRT.opsForHash().multiGet("key:abc", fields); Mono<Map<Object, Object>> mapMono = result.flatMapMany(Flux::fromIterable)         .zipWith(Flux.fromIterable(fields))         .collectMap(Tuple2::getT2, Tuple2::getT1, TreeMap::new); mapMono.subscribe(System.out::println);   reactor.core.Exceptions$ErrorCallbackNotImplemented: java.lang.NullPointerException: The iterator returned a null value Caused by: java.lang.NullPointerException: The iterator returned a null value     at java.util.Objects.requireNonNull(Objects.java:228)     at reactor.core.publisher.FluxIterable$IterableSubscription.slowPath(FluxIterable.java:230)     at reactor.core.publisher.FluxIterable$IterableSubscription.request(FluxIterable.java:201)     at reactor.core.publisher.MonoFlatMapMany$FlatMapManyMain.onSubscribeInner(MonoFlatMapMany.java:143)     at reactor.core.publisher.MonoFlatMapMany$FlatMapManyInner.onSubscribe(MonoFlatMapMany.java:237)     at reactor.core.publisher.FluxIterable.subscribe(FluxIterable.java:139)     at reactor.core.publisher.FluxIterable.subscribe(FluxIterable.java:63) ....


If $|G/Z(G)|= p$ for a prime $p$, Can we have $|Z(G)|=p^2$?

I came across this theorem in many of algebra books. If $G/Z(G)$ is cyclic, then $G$ is abelian. I tried to apply it when $G=p^3$ and $Z(G)=p^2$. What I got is $|G/Z(G)|=p$ so is cyclic. Therefore, $G$ is abelian according to the theorem which yields $G=Z(G)$ contradiction! So I thought either theorem doesn't apply here or we cannot have the centre of degree $p^2$. Am I right? If so, Which one is correct? Thanks.


Use Cauchy-Schwarz inequality to show series convergence

Firstly we are given that $a_k\in\mathbb C$ and $\sum\limits_{k=1}^\infty {a_k}^2$ converges absolutely. The question then asks to show that $\sum\limits_{k=1}^\infty \frac{a_k}{k}$ converges absolutely.  I know that absolute convergence of the first series this implies that $\sum\limits_{k=1}^\infty ||{a_k}^2||$ converges.  Thus by the Cauchy-Schwarz inequality I get  $$ \sum\limits_{k=1}^\infty ||{a_k}^2|| \leq \sum\limits_{k=1}^\infty ||{a_k}||.||a_k|| $$  From this point onwards I have no idea of how to proceed. (Should I make use of Cauchy products?)


Apparent contour on brush strokes when saved as PNG

I'm assigned to create a logo. I wanted to use brush tool to create it, but when I save my design as a PNG, it seems to show the contour of the strokes I made, which looks very unprofessional. How could I fix this?


How Do I Create a self drawing 2D Shape?

Major Noob Question here but I want to create a 2d shape that seems to draw itself like in this video below:   I saw in KaptainKrisitan's videos and wanted to replicate in blender, but I don't have a clue how.


Problem Regarding display of Devanagari in ubuntu

I am able to see Hindi pretty much.But, Issue is related to display of some particular characters, Which are not displayed by Ubuntu. Not displaying doesn't mean that they are displaying by box, It means it is displayed by some combination of character of Devanagari. So, let start by the Unicode standard for displaying "Devanagari". All of the Hindi characters are not represented by the UTF-8. Instead of the some characters are displayed by the combination of some unique character. So, Whenever that unique combination occur, It should be replaced by that particular representation. For reference see:   Variant section of , also look at .   When i am writing Bus ki Yatra. I wish  not  what ubuntu doing. See Yatra. You can find many such example.How to resolve such issue?


Calculate Euler equations of fluid dynamics without division?

I'm working on the calculation of the  with the . Unfortunately I'm not allowed to do a division. So I'm wondering if there's a form which does not need a division.  At the moment the Euler equations look like this:  $$ \frac{\partial}{\partial t} \begin{pmatrix} \rho \\ \rho v_1 \\ \rho v_2 \\ \rho v_3 \\ \rho E \end{pmatrix} = -\mathrm{div} \begin{pmatrix} \rho v_1 & \rho v_2 & \rho v_3 \\  \rho v_1^2 + p & \rho v_1 v_2 & \rho v_1 v_3 \\  \rho v_2 v_1 & \rho v_2^2 + p & \rho v_2 v_3 \\  \rho v_3 v_1 & \rho v_3 v_2 & \rho v_3^2 + p \\  (\rho E + p) v_1 & (\rho E + p) v_2 & (\rho E + p) v_3 \end{pmatrix} $$  As you can see, I first need to calculate $\frac{\rho v_1}{\rho}$ to get $v_1$ so I can calculate e.g. $\rho v_1^2$


How to find and replace in linux on a large file?

Oh, hi; So I've got this big json file and I'm trying to find and replace a few things but when I've used sed I get an error and I need a sed or awk string to find and replace it, without getting an error.  prajwal  Current: {"telephone_numbers":["1-  Future: {"telephone_numbers":["+1-  This is the command i tried and the error i got. sed -i 's/{"telephone_numbers":["1-/{"telephone_numbers":["+1-/g' output.json sed: -e expression #1, char 56: unterminated `s' command


What is the cheapest way to move money from the United States to Canada?

I live and work in the United States but I have several loans in Canada that I need to pay on a regular basis, so I'm constantly moving money to Canada.  Right now, I have an American Royal Bank account linked to my Canadian Royal Bank account. I transfer money from my Chase Bank account to my American Royal Bank account. Then, a few days later when the transfer has taken place, I transfer it between the two Royal Bank accounts.  I'm wondering if there's a cheaper way for me to move my money, maybe with a better exchange rate or less fees. When I first looked into this, I remember there being a significant fee for an international wire transfer, but maybe the exchange is better?  Right now, I'm moving about $1000 every month or two. I'm wondering what I'll do if I get a big bonus and I want to move ten or twenty thousand dollars at once. Maybe there's a dollar amount when it becomes cheaper to use another method?


I have a problem with ng-pattern.    function formCtrl($scope){} <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script> <div ng-app ng-controller="formCtrl">   <form name="myForm">     <input ng-model="sign_username"ng-minlength="6" ng-maxlength="15" ng-pattern="/[\p{L}0-9]+$/u" required>   </form>   {{myForm.$valid}} </div>     ng-minlength and ng-maxlength work correctly but when I use special characters ng-pattern still is positive.  I want to check if field contains only letters (unicode) and digits.


How can I increase the number of inodes in an ext4 filesystem?

I had a problem (new to me) last week. I have a ext4 (Fedora 15) filesystem. The application that runs on the server suddenly stopped. I couldn't find the problem at first look.   df showed 50% available space. After searching for about an hour I saw a forum post where the guy used df -i. The option looks for inodes usage. The system was out of inodes, a simple problem that I didn't realize. The partition had only 3.2M inodes.  Now, my questions are: Can I make the system have more inodes? Should/can it be set when formatting the disk? With the 3.2M inodes, how many files could I have?


Objects don't show up in the screen layout

I have several screen layouts that I have defined:  default, animation, UV, etc.    In some of them, after working in the layout for some time, some of my objects disappear from the scene, and won't show even if I unhide them.  They still show up in other screen layouts and in my outliner.  I assume I'm hitting a button or something, and it's not random, but I haven't been able to figure out what I'm pressing.  I have been able to get around this by deleting my screen layouts and remaking them, but I'm getting tired of doing this.  The objects are all on the same layer, and they won't show up even when I render.    Does anyone know what's happening?


what is the file that contains the default application icons list for the unity launcher?

can anyone tell me the name of the file which contains the default icons list for Unity launcher?  I am assuming it will be a .conf file.


Execute windows cmd prompt command through c# code.

I want to execute any sample command of cmd.exe through c# code. Eg. Time/ver this command i want to execute through c# code.  1. By opening cmd.exe and execute. 2. by hiding cmd.exe and get the cmd response in the code.  In this both cases i want to execute. Can you please suggest me correct code links. I have been trying various codes of Process() class but not working for me.  Thanks in advance !!


I just got my copy of the Eberron Rising sourcebook and am keen to run a game. I love the idea of a noir detective style story, but it seems to me that it will revolve around a lot of role-playing and investigation, but relatively few fights.  How should I award experience in a game like this?


SciFi / fantasy book from 80s about Jesus, present-day New York, time travel and the Dead Sea scrolls

I read this book back in the late 80s/ early 90s.  I remember the title of the book as Mission.  It started with a man being admitted to a hospital in present-day NY at Easter, with all of the wounds that Jesus suffered.  He is brought back from death and ultimately recruits a sceptic who is persuaded to board an El Al flight to Israel.  A terrorist blows up the plane, but Jesus and this guy are transported back to Biblical times.  This goes to explain Jesus's disappearance from his grave over the Easter weekend.  Basically, this sceptic winds up writing the Dead Sea scrolls, but with the knowledge from his original time.  Another thread of the story has academics in the 50s (or so) going through the scrolls with mounting disbelief at the kind of stuff this guy is writing (particularly about sex/violence/regular life in NY in the 80s/90s).  They decide that it's too controversial and end up keeping the scrolls under wraps and this ends up being the reason that the scrolls have still not been released to the public at large.  Can anyone come up with the author / ISBN?  The trouble is that with vague terms like Mission, stigmata and Easter you wind up with thousands of results :)


PInvoke for C function that returns char *

I'm trying to write some C# code that calls a method from an unmanaged DLL.  The prototype for the function in the dll is:  extern "C" __declspec(dllexport) char *foo(void);   In C#, I first used:  [DllImport(_dllLocation)] public static extern string foo();   It seems to work on the surface, but I'm getting memory corruption errors during runtime. I think I'm pointing to memory that happens to be correct, but has already been freed.  I tried using a PInvoke code gen utility called "P/Invoke Interop Assistant".  It gave me the output:  [System.Runtime.InteropServices.DLLImportAttribute(_dllLocation, EntryPoint = "foo")] public static extern System.IntPtr foo();   Is this correct? If so, how do I convert this IntPtr to a string in C#?


Do we need inertial frames in Lagrangian mechanics?

Do Euler-Lagrange equations hold only for inertial systems? If yes, where is the point in the variational derivation from Hamilton's principle where we made that restriction? My question arose because I was thinking how could you describe the motion of pendulum with an oscillating suspension point, something like this:  If you take your coordinate frame fixed in the suspension point, you would get the motion of a simple pendulum, which is false (because it's a non-inertial frame and you should have virtual forces). But if it were moving at constant speed, a moving coordinate frame should give the same equations of motion. So where does the restriction to non-inertial frames come from in the Lagrangian formalism? I've read that in non-inertial frames the lagrangian would be $L(q,\dot q, \ddot q, \dddot q..., t)$, but I didn't see a detailed explanation. And I'm not sure if the situation would be similar to Kepler's problem in polar coordinates.


Let $f : G \longrightarrow G^\prime$  be a group homomorphism. Then $f$ is injective iff $\ker(f) = \{1\}$ where $1$ represents the identity of $G.$  First I tried to prove  that if $f$ is injective then $\ker(f) = \{1\}.$  Since $f$ is homomorphism, $f(1)=1^\prime$ (identity elt of $G^\prime$) then $1\in  \ker(f),$ so $\{1\} \subset \ker(f),$ and f is injective $\ker(f) = \{1\}$   For this part, I got help from professor but I can't exactly understand the bold and italic part.  This is my proof for other side ( if $\ker(f) = \{1\}$, then $f$ is injective. )  let $f(a)=f(b)$, then $f(a) * f(b)^{-1} = 1^\prime$ and $f(ab^{-1}) = 1^\prime$ so $ab^{-1}$ is in $\ker(f) = \{1\}$ then $a=b.$


I cannot root or access developer options

My Samsung Galaxy Tab A (model number SM-P550 if you want to know the specs, Android version 6.0.1) will not allow me to "unhide" or "unlock" my developer options no matter how many times i tap the build number. On another note i am unable to root my device and because i do not currently own a pc and i have tried every mobile rooting technique i could find, thank you for adressing this issue. Edit - so i finnally figured it out, this device has many "accounts" and you can only access thing like the dev options on the "owner" but i was using "guest" but i still cannot root but im sure i will figure it out eventually, thank all of you for your suggestions and help!


Thanos halving the universe's population makes no sense regarding population growth

They changed Thanos' motivation for killing half the universe's population in the movies.  In the comics, he did it to impress Mistress Death.  In the movie, his reasoning was to reduce overpopulation in a universe of finite resources.  While halving the population keeps the number in line with the comics, it makes no sense.  Take Earth as an example.  Earth has a population of 7.4 billion people.  Reducing the population in half brings us to 3.7 billion people.  This was the population in 1970.  He set us back 50 years.  And in reality, it will not take 50 years to recover, as science has progressed since 1970.  This means people live longer, healthier lives.  People can have children later in their lives.  Diseases will have little to no affect as they did 50 years ago.  Childbirth is safer etc.  This being the case, Thanos would have to halve the population at least once every 50 years.    I doubt it, but is there any other explanation?  Perhaps in a tie-in comic?


Ajax submission leads to => An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (2 MB) that this server supports

So i'm trying to submit a form using ajax, in my form i have the following:          $form['actions']['#type'] = 'actions';         $form['actions']['submit'] = array(         '#type' => 'submit',         '#value' => $this->t('OK'),         '#button_type' => 'primary',         '#prefix' => '
',         '#suffix' => '

',         '#attributes' => array(             'class' => array('proximabold', 'tc', 'transition', 'no-underline', 'ph3', 'pv2', 'mb2', 'dib', 'white'),         ),         '#ajax' => [             'event' => 'click',             'callback' => '::updateTable',             'wrapper' => 'table-wrapper',             'progress' => [                 'type' => 'throbber',                 'message' => t('Verifying entry...'),             ],         ],     );   and a simple updateTable function:  public function updateTable(array $form, FormStateInterface $form_state) {     return "Hello World"; }   But when i click on submit i get the error: An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (2 MB) that this server supports.  I knew that the error is server side (Maybe i'm wrong), so i went to php.ini (i use PHP7) and update the following lines:  post_max_size = 6144M memory_limit = 6144M upload_max_filesize = 6144M max_file_uploads = 1000   but without luck, this configuration shouldn't be necessary as the request size is only 1.5KB


Texture painting has been really hard for me. Can anyone recommend me a nice place to learn texture painting to lighten my headache?


How to use WHEN on the following occasion?

When I lived in there, I got to know John  When I was living in there, I got to know John.  While I was living in there, I got to know John.  While I lived in there, I got to know John.  I have been long confused by the usage of when and while, and I'm not sure whether the four sentences are totally correct. Please explain in detail, thanks!


I am looking for a tool to flip the rows and columns of a tablular table.  For example  \begin{tabular}{lll}                                                                                1 & 2 & 3 \\        4 & 5 & 6 \end{tabular}   should become  \begin{tabular}{ll}        1 & 4 \\        2 & 5 \\        3 & 6 \end{tabular}   This is possible using . I would however prefer a simpler solution with less overhead.  Ideally   it should run on Linux, however an online solution would be acceptable too if there is one, and whatever possible in cells is conserved (comments for instance)


What is the casualty count from the final battle in Avengers: Endgame?

During the final battle in Avengers: Endgame, apart from the obvious death of      Tony Stark,    were there any other known protagonist casualties such as Asgardians, Sorcerers, Wakandans etc.


In Java, how to append a string more efficiently?

I wrote a Java program, in which, I need to append a string   " u13a2" to an existing one "u1234 u12de u1386 ... u15a3".  So gradually the string becomes longer and longer. I found the time spent on each appending also becomes longer and longer. Is there any way that we can improve this to some extend ?  The implementation came to my mind includes:  unicodeArray += " "+unicode;   or  unicodeArray = unicodeArray.concat(" "+unicode);   They gave similar performance. I think the main reason that causes these bad performance is the special type String. It creates a new object for every assignment. If you also think so, does this mean I'd better use another type, like byte array?


Consider $$\int_{-1}^{1}\frac{\sqrt{(1-x^{2})}}{1+x^{2}}dx$$ I have a problem with this integral; the method I know consists in calculating the complex integral of $$f(z) = \left( \frac{z-1}{z+1} \right)^{\frac{1}{2}} \frac{1+z}{1+z^{2}}$$ along the curve formed by the " shrinking dogbone contour" withe centres $\{-1,1\}$ and the circumference of radius $R \rightarrow \infty$. But I obtain $0$, impossible. What's wrong with this method ?   In particular, what are the residues of $f(z) $ in $\{-i,i\} ? $


If $f$ commutes with every linear transformation, it's a scalar multiple of the identity

I'm dealing with a problem related to linear transformation.   Problem: Let $f \in L\left( V \right)$, where  $L\left( V \right)$ is the set of all linear operators on $V$. Prove that if  $fg = gf$ for all $g \in L\left( V \right)$, then $f = ai$, where $a$ is a scalar and $i$ is identity map.  I can't go on. Is there any hint?


Nic showing 3 different transport id {Device id}

problem with my network controller so i opened up cmd and started to check for interfaces. my Wifi network controller had 3 different Device ID (Transport id's) When i tried to disable the wifi card the different id's went away. i tested the same thing and it only shows 1 id? Device\NPF_{4A45A363-6346-48DA-8D28-13DD9C9C1E6A} Device\NPF_{E6994972-C66C-4ABF-BE27-17BAC7C1C971} Device\NPF_{B6394772-H66C-4ABF-HRE27-17JLC0H9C971} I am using snort to check for available interfaces. Can anybody explain why i am seeing this? WLC model: intel dual band wireless-ac 8265 running default settings on the adapter however i have hyper-v open


I am trying to practice calculating categorical quotients and I ran into this example. I am unable to get the answer and was wondering if someone can help?  Let $G = Z/3Z =$ $\{1, \omega, \omega^2\}$, where $\omega$ is a cube root of unity. Let $G$ act on $𝔸^{2}$ via $\omega(x, y) = (\omega x, \omega y)$. Find the categorical quotient of $𝔸^{2}$ by G.


LWC: Difference between "window" and "this"

I am trying to understand what exactly is the difference between window and this in the context of a LWC component.  According to this  the Locker intercepts calls to the Window and uses Secured Window instead which acts as:     Secure wrapper for the window object, which represents a window containing a DOM document.   As for this what I  was:     To add an event listener to an element that a template doesn’t own,   call addEventListener directly: this.addEventListener()   What does salesforce mean by an element that a template doesn't own? Isn't window an element that the template doesn't own?


How to stop a setInterval function on discord.js?

I've been wanting to add a feature to my script, which can enable me to stop the setInterval function through a simple command, but the real problem is that I do not know how to do it. client.on('message', async (message) => {  if (message.author.username === 'username')   if (message.content === '*shiba inu pupper') {    const attachment = new Discord.MessageAttachment('shiba doggo');     setInterval(() => {     message.channel.send(attachment);    }, 20000);   } });


Glow effect invisible on transparent background

I'm trying to render a lightsaber on a transparent background to use as game sprites. I've followed a  on youtube to create the glow/blur effect and it worked great on a black background but it's completely invisible on a transparent background. I figured I had to put an alpha channel node somewhere to make it work but I tried all the "alpha" named nodes all over the place and without success.   This is how the node setup looks like   Here is the  if you want to take a closer look.  EDIT: Found a solution/workaround. Doesn't look as good as before but it's close enough.


Find a holomorphic function $f$ on the unit disc, such that $f(1/n) =2^{-n}$ for $n\geq2$, $n\in\mathbb{}$N.

Find a holomorphic function $f$ on the unit disc, such that $f\left(\frac{1}{n}\right)=2^{-n}$ for $n\geq2$, $n\in\mathbb{N}$.  Is this possible?


How much thrust would be needed to turn a hobbyist weather balloon into a deep space probe?

I was reading the article  that says you can put your own balloon probe at 65,000 ft temporarily.   Is it even remotely possible to raise the probe high enough using , and then put it in orbit or escape the field using an on-board propulsion system?  Can it be done with easily purchased materials?  How much mass can be added for instrumentation?  How much fuel of is required? What kind?  I know it's kind of a broad question, but I just want to know a rough estimate.