With a netcat listener like:  nc -l <port> < ~/.bashrc   I can grab my .bashrc on a new machine (doesn't have nc or LDAP) with:  cat < /dev/tcp/<ip>/<port> > ~/.bashrc   My question is: Is there a way to mimic the capabilities of nc -l <port> in my first line with /dev/tcp instead of nc?  The machines I'm working on are extremely hardened lab/sandbox environment RHEL (no ssh, no nc, no LDAP, no yum, I can't install new software, and they are not connected to the internet)


I'm wondering if anyone knows the accuracy of measuring uA current with a cheep (~25$) DMM? I need to measure some low power circuits (10-500uA) and I'm deciding whether I should get an analog uA meter or use my DMM.  My guess is that the DMM will not be very reliable? I can test it with a dummy resistor load and attempt to verify with a scope I suppose.  Update: Accuracy I'm looking for: good question, I would ask the same. within 2.5% is good enough, what I want to try to avoid is disturbing the circuit...  Also The op-amp + shunt idea is one I had, I wanted to get peoples opinions first before I invested the time into that.


Broken packages when installing NVIDIA drivers on Ubuntu MATE 18.04

I have a clean install of Ubuntu MATE 18.04 that I wish to install TensorFlow on with GPU support. My GPU is a Titan X.  I am following the instructions from the  but I am unable to install the NVIDIA driver due to broken packages. Here is the command and its output:  $ sudo apt-get install --no-install-recommends nvidia-driver-410 Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  nvidia-driver-410 : Depends: xserver-xorg-video-nvidia-410 (= 410.104-0ubuntu1) but it is not going to be installed E: Unable to correct problems, you have held broken packages.   I tried resolving this by using aptitude in place of apt-get and accepting the proposed solution. However, upon reboot the system freezes at login. Since it was a clean install, I simply reinstalled the OS, and now I am back to this original problem.  How do I resolve the broken packages so I can install the driver for my GPU?


How do I call a function by printing it as a string? (Python)

first_operand = random.randint(0, 9)      numbers = ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine']     first_operand = numbers[first_operand]      #funcynum is the name of another module. it contains the functions print_zero, print_one, etc.       first_number = 'funcynum.print_' + first_operand     return first_number   I have 10 different functions (not shown above), all similarly named (i.e. print_zero, print_one, print_two, print_three, etc.) The point of my program is to generate a random number and call a function according to its number. For instance, if the program randomly generates the number 3, it would call the function print_three. So far, I have a list that contains the written words for numbers 0 - 9. The program then retrieves the word according to the generated number. However, the program returns a string of the function but does not actually call it. How would I change my code so that it would call the function instead?


Why is the Night's Watch so depleted at the start of ASOIAF?

At the start of AGOT, the total number of the Night's Watch is said to be less than a thousand. During Aegon's conquest, the Watch numbered ten thousand men. Out of the nineteen castles on the wall, only three are manned today. Castle black itself is once said to have housed 5000.   This rapid deterioration doesn't make sense to me from a world-building perspective. The NW have continued to maintain themselves pretty well for nigh on 8000 years (if the tales can be believed that is, Sam Tarly finds no written evidence of Lord Commanders earlier than #673, which suggests that 8000 years may be an inflated 'legendary' number).   Whereas in the real world, one of the oldest and most venerable institutions, the Catholic Church, has been around for less than 2000 years and has been administered by ~200 popes. The Night's Watch has had a few rocky years, sure, but for it to maintain itself so well for so long and then deteriorate only in the last 300 years seems strange to me.   The NW has two purposes. The ostensible one of defending against the Others, and the (arguably much more real, at least at the start of AGOT) purpose of serving as a dumping ground for the 'losers' of Westeros. By 'losers', I mean the people on the losing side of various wars and political battles, as well as criminals and n-th sons of noble houses with nothing to inherit.  I am currently reading through Fire and Blood, and was struck by one chapter, where an armed revolt of members of the Faith were defeated by Maegor, and 2000 brothers were forced to take the black. Those sorts of numbers don't exist in the recent histories it seems.   One would expect that after Robert's Rebellion, there would be a surfeit of defeated Targaryen loyalists who were forced to take the black, but apart from a smattering of named characters (including Ser Alliser Thorne), there seem to be hardly any Night's watch recruits from recent wars.  Given the way the Night's watch is continually bolstered by the losers of wars and by criminals and other people who elsewise have nothing going for them, why, at the start of AGOT, is the force so depleted?


I was writing an email in Outlook and its grammar correction suggested I change this:     I need to do something, then I'll call you.   to this:     I need to do something, and then I'll call you.   Is the "and" needed there to be correct?


Estimating the intersection of two lines

I have two datasets, A and B, of weighted (x,y) pairs. I computed the best fit lines, L_A and L_B, respectively, of these datasets, and then computed the intersection of these two lines, (x*,y*).  Now, A and B are drawn from random distributions (of the form y=mx+b+e, where e is a normally distributed error term). I'd like to compute a confidence interval around x*. How can I do this?  A naive approach I tried involved computing confidence intervals for the slope/intercept estimates of L_A and L_B, generating approximate distributions for those 4 parameters, and repeatedly randomly sampling from these distributions. But a given line's slope and intercept estimates are not independent of each other, and I wasn't sure how to salvage this approach to account for that.


2670.82+202.38   2873.2000000000003  Try it for yourself. I have no idea what's going on here. Is this a quark of Javascript? The Chrome Browser?


I'm resurrecting my 1995 Mongoose IBOC Zero G bike after several years in storage.  I need to replace the tires and tubes.  I will be riding almost exclusively on paved or groomed trails so I don't need mountain bike tires. Current: Panaracer Dart and Smoke 26x2.10 on Araya TM-18 rims I am hoping for some expert guidance on a recommendation for what tires and what size I should purchase for a safe alternative to the old MTB tires.


Can't recommend close questions in LQP if previously flagged

My personal habit of browsing SE is:   View the first page, and flag some questions Irrelevant: Answer questions that I can Clear the review queue   Now notice the 1st and 3rd things. I flag OT questions before doing review works, and some of them appear like this:      I don't think hitting "Looks OK" will affect the result of the review, because I think my previous flag should kick the same post into CV queue (and 3K people will close it). Am I right?


How was this character killed without Avada Kedavra?

It seems that the only officially known way to instantly kill someone with a curse was "Avada Kedavra".   So, (spoilers):      considering that was definitely NOT what Molly Weasley used to kill Bellatrix Lestrange at the end of Battle for Hogwarts, how did she kill Bellatrix?


What is the single word for a person who expresses every emotion with a few or single word.


How does JavaScript closure work in the following example?

I have the following code :  var x = 6; var y = 4; var a = function(b) {      return function(c) {          return y + b + c;      }  };  x = 2; y = 5;  var fn = a(x);  x = 1; y = 3;   I was asked to figure out what unknown  needs to be in order for fn(unknown) to output 10 :  console.log(fn(unknown)); // This should output 10   I know unknown needs to be 5 in order for the fn output to be 10, but can someone explain why?  I'm sure it has to do with enclosure but not quite understand how the variables get assigned at different stages.


My Ubuntu 16.04 keeps disconnecting from the Wi-Fi (eduroam). Why?

I haven't noticed any pattern and I'm sure the Wi-Fi works perfectly because I have no problems with the same computer using Windows 10. The Wi-Fi doesn't turn off though, it simply disconnects from the network and reconnects after about a couple of minutes.  I ran this and got:  lspci -knn | grep Net -A2 03:00.0 Network controller [0280]: Qualcomm Atheros AR9462 Wireless Network Adapter [168c:0034] (rev 01) Subsystem: AzureWave AR9462 Wireless Network Adapter [1a3b:2234] Kernel driver in use: ath9k Kernel modules: ath9k   Also running dmesg  Among the many messages the last one is:  [ 3818.806656] wlp3s0: Limiting TX power to 5 dBm as advertised by 00:23:eb:39:28:21   Any idea why this is happening?  Thank you.


string to double or float cuts off decimal points

I don't know what I am doing wrong but I want to convert a string to a double, using std::stod, but it chops of the decimal points  int main() {   auto value = std::string("321415.1342");   auto val = std::stod(value, 0);   std::cout << val << '\n'; }   this program produces: 321415. The stof also produces the same result. My locale is listed below if it helps.  LANG=en_US.UTF-8 LANGUAGE= LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8"


I have a blackfin 533 and I connect it with external flash memory.   I have a software driver that erases a block, fills data, write to flash memory.  I'm using the following chip ST M29W800D.   How would I test and verify the flash that's working ?   Should I earse it, fill it with data and read it ? but how would I erase it, and I'm running the software that is checking the correctness of the flash eeprom ?


Does the protection Lily made on Harry apply only from Voldemort? Is there any proof from the books?


Different definitions of equivalent norms

I'm trying to show that the following definitions are equivalent Two norms over a field $F$ are equivalent if:  there exists two constants $A,B$ such that $A|x|_1<|x|_2<B|x|_1$ for every $x \in F$ there exists $c$ in $\mathbb{R}$ such that $|x|_1^c = |x|_2$


phyton3 access list column with selected range

I am newbee on python programming language  and I have a problem about accessing list items like this.  My data is data=[[664159, 550946, 1, 1],[665845, 557965, 1, 2],[597173, 575538, 1, 3],[635690, 608046, 1, 5]]  I want to access first two colums of first items that is [664159, 550946] and I am try to this  >data[0][0:1]  but i get only first colums data that is [664159] result. I havent got any idea for solving it. Can you help me please? What is my wrong?  >data=[[664159, 550946, 1, 1],[665845, 557965, 1, 2],[597173, 575538, 1, 3],[635690, 608046, 1, 5]]  >data[0][0:1]   >>[664159]


Got scammed by a "Sugar Daddy", looking for advice on what to do now?

I know how it sounds and I feel like a total fool for falling for it. I wish I had done my research before I followed thru with it, but now I don't know what to do from here. I've been talking to someone thru a website for a couple months now and they had offered to send me money before but I was always unsure so I never accepted. I finally decided to trust them and needed a little help with bills and taking my car to the shop for repairs.   When they told me they needed my bank login information I was super hesitant but ultimately gave in because I only had $50 in my account and figured what was the worst that would happen, I'd be out $50 or I'd be up $200. Well the check they deposited ended up being for $5100. Which was insane and blew my mind. I didn't even expect it to go thru, figured it was a mistake. He explained that there had been a mix up with his financial adviser and the money that I was sent was supposed to go to a charity and that he would need me to send that out once the check cleared.   It sounded suspicious and I wish I had trusted my gut but I stupidly waited a couple days, saw the money was in my account and let him know. He wanted me to send it thru CashApp but I told him I didn't have access to that and asked what other ways I could send it for him. We agreed on a money order mailed to an address in the same state he was supposedly from, so I went down to the bank, pulled out the $5100 and went out and got a money order from a local place by me for $4900. Sent it that afternoon, and told him it was in the mail. I hadn't heard back from him after this for a couple days and assumed it was something to do with his mom (whom he told me was in the hospital) so I didn't immediately suspect anything.   I went to message him last night and saw he had blocked me/deleted his account and all the messages were gone. Now my bank is $5100 in the negative, and I've not spoken with my bank yet. I'm honestly scared I'm going to get in trouble and I'm not wanting my family to find out about this at all. I don't want to file a police report or anything like that either if I don't have to. I didn't screenshot anything and I can't remember the address he asked me to send the money too, I don't even have the receipt for the money order to prove that I don't have the cash still. I am absolutely unsure what to do. Going to be contacting my bank tomorrow morning but would love some advice for what to say to them, how to proceed with all of this. Thanks you!!


What does awaiting reviewers reply mean?  And how long does it take


I am using Ubuntu 14.04 LTS, and for installing Hadoop I created hadoop user as hduser. When I try to open ~/.bashrc using gedit am getting an error as follows,  hduser@arul-java ~ $ gedit ~/.bashrc  (gedit:9254): Gtk-WARNING **: cannot open display:  hduser@arul-java ~ $    How to solve it ?


Let $S_g$ be the closed oriented surface of genus g. Let $C$ be a simple closed curve in $S_g$. Prove that $S_g$ retracts to $C$ if and only if $C$ does not separate $S_g$.  If $S_g$ retracts to $C$, by Alexander-Lefschetz duality, I can get $H_0(S_g-C)=\mathbb{Z}$, therefore $C$ does not separate $S_g$. But I have no idea how to prove another direction.


Is an Immovable Rod a valid spellcasting focus?

The Dungeon Master's Guide classifies an immovable rod as a rod rather than a wondrous item. Does this imply that it is a valid spellcasting focus? If not, what purpose does this classification serve?


In the battle of Hogwarts, after Voldemort knew that all Horcruxes were destroyed and the curse Avada Kedavra will not affect Harry a second time, does Voldemort never think of fleeing the scene and coming again with a better plan instead of going one on one with Harry? He can create Horcruxes again right? and then he can think about what went wrong with killing Harry and after that strike hard.


Show that $(p \to q) \lor (q \to p)$ is a tautology

I tried to prove that $(p \to q) \lor (q \to p)$ is a tautology.  I used $p$ and $¬q$ as conditions. (Premises 1 and 5)  I managed to get to a solution, but I'm not sure if it's right.  Can you please check it?   Thank you!!!:)


Booting gets stuck on a black screen with some text

I have Ubuntu 19.04 dual booted alongside Windows 10. I had not used my PC for a month. The last time I used my PC, Ubuntu was working great. Today (after a month), when I turned on my PC, the boot process got stuck on a black screen with some text written on it. I don't understand what is written (too much technical terms). And at last line "intramfs" is written and I can type and enter any command into it (just like in the terminal).


Increase in gain of CP micro-strip patch antenna

I have successfully designed my circularly polarized patch antenna shown below. I used the slot method. Which as a bandwidth of 23MHz and a resonance frequency of 915MHz. Though the bandwidth is small it is more than sufficient for my application. The axial ratio achieved was 1.7dB at 90 degrees. However, the gain is rather disappointing at -1.5 dBi. Does anyone know of methods I can use to improve my gain?


Having trouble understanding this in Javascript

I was watching this video that talks about Reference Vs Value In JavaScript.    I was really stuck on his last example here.  let c = [1,2] //0x01 console.log('c = ${c}') add(c,3) console.log('c = ${c}') function add(array,element){     array = [element] }   The output is   c = 1,2 c = 1,2   I am trying to understand why that is. Based on my understanding, the add function should allocate [element] to a second address (let's say 0x02), then reassign c to 0x02. Which means that the value of c is now the memory address 0x02, hence c = [3]. What is it that I am not understanding correctly?


Disk space full but logical space available in database

We have a fairly big MS SQL 2008R2 database that resides on a SSD drive. The drive itself only has ~110Gb of space, and the database files are the only files on the drive.  The database is in "Simple" recovery mode, and only has two files, .MDF and .LDF.   The disk is now nearly full: the MDF is currently 109Gb in size. However, SSMS tells me there's nearly 18Gb of "Space Available" (in the 'General' properties page), and if I go through the motions of Shrinking the file it also tells me there's 18Gb of space free. SSMS also tells me the database size is around 132Gb, which surprises me - that wouldn't fit on the drive!  From what I've read, shrink is a really bad idea. However, I'm starting to see replication errors (could not allocate space for object). We've previously tried shrinking the database, but within a few hours the file was back to it's original size.  How should we proceed - given there's apparently 18Gb of free space, should SQL automatically use that free space? Or is it as simple as: we really need more disk space?


Recently it's been in the news that the US were going to ban laptops on flights to the US. Now I am not sure if this really happened or not, so I was hoping someone was.  I'm not sure if this makes a difference, but I go to the US, and at some point I have a domestic flight there too.  EDIT: I am from the Netherlands


How to connect to Canon lbp 2900 network printer in ubuntu 16.04?

my canon LBP 2900 printer is connected to another pc in the network. It is possible to connect if it were a usb printer. How to connect to a network printer in ununtu 16.04?


Component based architecture - Rendering approach?

I'm planning to use a  for a new 3D game engine I plan to work on, however I don't know how to approach the rendering side of things.  I can see two options here:   Every renderable game object has a RenderComponent, which stores a mesh and OpenGL-specific stuff like VBOs and VAOs. When the time comes to have update() called, it will use OpenGL to render itself. Every renderable game object has a MeshComponent. When it's time to render, the Renderer would go through a list of all MeshComponents, extract vertex and material information, and render it.   Which option would be most flexible if I want to implement things like post-processing (bloom, motion blur), skyboxes, LOD, blending/transparency or implementing a deferred renderer?


I am flying through American Airlines from Tokyo to Los Angles via Dallas airport. I want to ask where I have to clear my immigration? Dallas or Los Angles?


Is LED properly implemented in the constant current circuit?

Consider this simple constant current source. The voltage is 27 V, yet the indicator LED is rated to a much lower reverse breakdown. Is the LED safe? Will the LED draw current away from the output load? Output would be less than 1.5 mA. Simulations in LTSPICE proved LED won't lower output current below 1.5 mA but I don't know for sure.


Entering and leaving the UK on the day of visa expiry

I will be entering the UK in the morning and leaving in the evening of my multiple entry visa expiry date as I have a 12 hr layover in LHR. Will I be granted entry if I have my itinerary showing that I'm leaving on that same day?


How can I know the distance between two coordinates?

Maybe this is not the website I'm looking for to find answers but here's my issue.  I'm working on a Java program and I need to know the distance in meters between two locations given it's coordinates in format EPSG: 4326.  For example,  coordinate 1:   42.34839, 2.484839   coordinate 2:   42.27345, 2.23453   What is the system, mathematically, to know the distance difference between two coordinates?


I want to add randomly generated numbers to an vector with size that is determined by the user(xdata, ydata) by using my addInt method, it generates the required numbers in my debugging, but it only returns 0, 0, .. when I print it out    System.out.println("Input the size of first array");   int[] xdata = new int[sc.nextInt()];   System.out.println("Input the size of second array");   int[] ydata = new int[sc.nextInt()];    /* this code got my desired results but I want to use a single method   for(int i=0; i<xdata.length; i++)      xdata[i]= (int)(Math.random() * 100);   for(int i=0; i<ydata.length; i++)      ydata[i]= (int)(Math.random() * 100);      */    IntVector x = new IntVector(xdata); //intVector is my class and contructor   IntVector y = new IntVector(ydata); //I had to make for this    x.addInt(xdata);   y.addInt(ydata);    System.out.println(x.toString()+"\nsorted: ");   System.out.println(y.toString());      ////*****my adding method********//// public class IntVector{ //vector constructor//   public int[] addInt (int[] data){   if (data.length == n) {  //n meaning my capacity      IntVector tmp[] = new IntVector[n+10000];        for(int i=0; i<data.length; i++)         data[i]= (int)(Math.random() * 100);      } return  data;        //all data[i] have randomly generated numbers       //but it only prints out 0 for each value after.    }                  }


"Are you the one who called?" or "Are you the one that called?"

How does one decide whether to use who or that? In the title example:   The correct pronoun is who. The correct pronoun is that. Either is correct. They're interchangeable. It depends on the context.


Value of an expression involving complex numbers

Suppose $a$ is a complex number such that $$a^2+a+\frac 1a +\frac 1{a^2} +1 =0$$ If $m$ is a positive integer find value of $$a^{2m}+a^m+\frac 1{a^m} +  \frac 1{a^{2m}}$$  Setting $a=|a|e^{i\theta}$ we get $$2|a| \cos \theta  + 2 |a|^2 \cos 2\theta+1=0$$ I could not get anything from this. Any ideas? Thanks.


How to convert a Powerpoint template to a Beamer theme?

Fore note: there is , I hope my case is narrow enough to warrant acceptance.  The institute has changed name and image; a new batch of logos and powerpoints templates is out. So far I have used a beamer theme with the old image produced by a savvy colleague that no longer works here. I have no Microsoft software installed, the only programme that opens pptx files is Libre Office Impress, of which I know very little and struggle to work with.  As far as I understand from Impress, the template is composed by a background image, a set of font definitions, and title placing in the first page. What would be the easiest/best way of creating a beamer theme from it?   Update: I do not wish to create a new theme from scratch. I wish to find a method or tool to transform an existing Powerpoint template into a Beamer theme.


Is there a function that is contiunous at all the rationals, and discontinuous at all the irrationals?

Possible Duplicate:          Motivated by the examples of the Dirichlet's no-where continuous function and , we know that a function can have discontinuities at the reals, or at the rationals. My question is whether the set of discontinuities can actually be at the irrationals only.  tells us that such a function cannot be monotone, so that cuts down on the search. Are there other obstructions? Can we exhibit such a function?


$\mathrm{O}_n(\mathbb{Q})$ is dense in $\mathrm{O}_n(\mathbb{R})$

Prove that $\mathrm{O}_n(\mathbb{Q})$ is a dense subset of $\mathrm{O}_n(\mathbb{R})$.  Recall that $\mathrm{O}_n(\Bbbk)$ is the set of $n \times n$ matrices with coefficients in the field $\Bbbk$ and such that the columns form an orthonormal system in $\Bbbk^n$ endowed with the usual euclidian structure.   I managed to prove that $\mathrm{GL}_n(\mathbb{Q})$ is dense in $\mathrm{GL}_n(\mathbb{R})$, but I couldn't go further. Any ideas ?


How can I clean install of Sierra after trying Mojave upgrade?

I upgraded a Mac to Mojave and found it did not function the same as previous OS. I get a lot of people want to move forward, but I wish to go back to how my Mac was  I now need to clean install Sierra again & try to get back to my comfort zone OS.  How do I plan and execute that?


Approximation of measurable function by simple functions

This is from Tao Exercise 19.1.3. Let $\Omega \subseteq \mathbb R^n$ measurable and $f: \Omega \rightarrow \mathbb R$ be measurable. Assume $f \geq 0$ on $\Omega$. Then there exists a sequence $\{f_n: \Omega \rightarrow \mathbb R\}_{n=1}^\infty$ s.t. all $f_n$ are simple, non-negative and increasing and $f_n \rightarrow f$ pointwise on $\Omega$. Tao gives the hint to define $$f_n(x) := \sup \left \{\frac j {2^n} : j \in \mathbb Z, \frac j {2^n} \leq \min(f(x),2^n) \right \}$$ Can someone help me to prove why all $f_n$ are measurable ?!


I want to cite an article from a spanish author having the character í in his name. MWE:  \documentclass{scrreprt} \usepackage[utf8]{inputenc} \usepackage{filecontents} \begin{filecontents}{bib1.bib} @article{test, author = {Garc{\'{\i}}a, S.}, journal = {J. Phys.}, number = {7}, pages = {535}, title = {Some interesting title}, volume = {13}, year = {1987} } \end{filecontents} \usepackage[     bibstyle=phys,     articletitle=false,     backend=biber ]{biblatex} \addbibresource{bib1.bib}  \begin{document}  \cite{test}.  Test: Garc{\'{\i}}a.  \printbibliography  \end{document}   This produces an error: ./main.tex:31: Package inputenc Error: Unicode char ÃÅ (U+301) (inputenc) not set up for use with LaTeX., although in the normal text the name appears correct. How can I fix this?


I have this code:  public class JsonFileHandler<T> {       public  T getContent(File file) {         T t = null;         ObjectMapper mapper = new ObjectMapper();          if (!file.exists()) {             return null;         } else try {             t = mapper.readValue(file, T.class);         } catch (IOException e) {             e.printStackTrace();             throw new RuntimeException(e);         }         return t;     } }   but I get compilation error on this line:  t = mapper.readValue(file, T.class);   which has this signature:  public <T> T readValue(File src, Class<T> valueType)   how can I fix this?


Question about dividends and giant companies

Before asking any questions I'd like to say that I'm not an economist, investor, entrepreneur etc. I just want to know how the world works.  My first question is why would giant companies (Apple, Google, Samsung...) issue dividends?As far as I know only small and medium companies issue them (or at least should) to attract investors, but companies that don't need investments don't have a reason to waste their money.    Second question - why are Google's stocks so expensive and they don't even issue dividends (and they probably don't have a reason to)?


Proving sequence limit given condition weaker than monotonicity

Let $(a_n)_{n \geq 1}$ be a sequence of positive numbers such that $a_{n+m} \leq a_n + a_m$ for all $m,n \geq 1$. (So the sequence is not necessarily monotonic, but from $a_n$ to $a_{n+1}$, it can increase by at most $a_1$). Let \begin{equation*}I = \inf\left\{\frac{a_n}{n}: n \geq 1\right\}\end{equation*} It is to be shown that in fact \begin{equation*}\lim_{n \to \infty}\frac{a_n}{n} = I\end{equation*} I attempted to show that the sequence $\left(\frac{a_n}{n}\right)$ is monotonically decreasing, which would imply the result, but this in fact seems to be false in the general case. So any suggestions would be appreciated.


"Looking forward to hearing from you" - May I omit "I am" at the beginning?

At the end of a letter, is it correct to omit "I am" in this sentence?     I am looking forward to hearing from you   Then it will become:     Looking forward to hearing from you


Toggles have a problem: the state the toggle is in is the opposite of the action taken when the toggle is clicked.  E.G. if my toggle is on, it should display that it is on, but if I click the toggle, it should become off. So should the toggle visually indicate the state it is in ("on") or the action the user is taking ("off").  Is there a best practice for solving this dilemma?


Remove duplicate lines from a very large text-file

I have a very large text-file (> 50 GB), but most lines are duplicate, so I want to remove them. Is there any way to remove duplicates lines from a file, and handle files > 2GB? Because every method I found until now can only work on small files.


Use Lagrange's theorem to prove that if $G$ is a finite group of order $n$ then the map $x \to x^k$ is surjective.   Edit: (n,k) = 1 which I completely blanked on mentioning. Also I truthfully have no idea how my post is a duplicate.  My attempt: First prove $x^k$ is a subgroup of $G$. It is a subset because is some element of $x$ of $G$ and $x^k$ was not in $G$, $G$ won't be closed under addition. This subset is non-empty since it contains the identity element because $1^k=1$. It should be closed under multiplication because $\varphi(ab) = a^k b^k = \varphi(a) \varphi(b)$. I am reasonably confident that I am correct through here.   Let $|G| = n$ and $|H| = m$ for easier notation. Then by Lagrange's theorem $\frac{n}{m} = c$ with $c \in \Bbb Z$, $1 \leq c \leq n$. Then maybe I could use $n = c\cdot m$ so $\gcd(n,k) = 1 = \gcd(c\cdot m,k)$ which implies $\gcd(m,k) = 1$. But, if this reasoning is even correct, I don't know what to do now with it.


Print number of files excluding directories

I learned that 'ls | wc -l' command prints number of files in the current directory, but it includes all files and directories. Can I do the same task only for pure files excluding directories?


Prove that $\lim_{n \to\infty} \frac{x_{n+1}}{x_n} = a \implies \lim_{n \to\infty} \sqrt[n]{x_n} = a$.

Given a sequence $(x_n)_{n=1}^\infty$ such that $\forall n: x_n > 0$, prove that  $$\lim_{n \to\infty} \frac{x_{n+1}}{x_n} = a \implies \lim_{n \to\infty} \sqrt[n]{x_n} = a.$$


Ubuntu installer can't find any disk on Dell XPS 13 9350

I am trying to install Ubuntu 14.04 / 15.10 on my Dell XPS 13 9350 (November 2015).  I created a bootable USB disk which boots fine but the installer and the file manager do not detect the hard drive.  What is the problem? How can I solve it?


Star Trek Series Episode (I think) where crew get stuck in a time warp and have to wait several years to warn their past selves to set it right?

I thought it was from TNG, but it might be something else.    The crew somehow get trapped in some kind of altered time state (either time slows down or they get put in another dimension) The only way to fix it is to wait until a future point in time.  So they end up living most of their lives into old age on the ship.  Several characters get married and develop close relationships.  Finally the one character who ages the least (I think Worf, but it may have been a Klingon like character) has to warn the crew from the different dimension not to do something that will cause the time-disturbance.  I know its a fuzzy description, but I remember it being a good episode  does this sound familiar to anyone?  Thanks


In my document I have a description environment. One of the titles in the description is too long to fit in one line and I want to break it. I know this is a bad styling but I can't think of any way to shorten it. I tried \\ and \newline and they didn't work. What else can I do?  I tried to use the mdwlist package. I added the following in the begining of my document:  \renewenvironment{description}{   \begin{basedescript}{%     \renewcommand{\makelabel}[1]{\bfseries##1}%   } }{%   \desclabelstyle{\multilinelabel}    \end{basedescript}%  }   but all I got is the same result.  I also tried this without any effect:  \renewenvironment{description}{   \desclabelstyle{\multilinelabel}   \begin{basedescript}{%     \renewcommand{\makelabel}[1]{\bfseries##1}%   } }{%   \end{basedescript}% }   I can't use the \multilinelabel since the words in the label are too long, thus, I want to use \pushlabel. However, this doesn't work even in the example you given (probably, it doesn't know how to break lines). Is there any way to force break lines?


Must FCC-certified modules be labelled with the correct FCC ID?

The manufacturer of this radio module I bought claims that it's FCC certified, but  there's no FCC ID on it (though there is the FCC logo). If the final product is to be FCC tested, would it then be tested as an intentional radiator since there's no FCC ID on the radio module (rendering the certification invalid)? AFAIK, that costs a lot more than an unintentional radiator test.  Their website has the FCC ID - could I just print it on a sticker and stick it on the module?  Thanks


mysql truncate column data with specific text

I have a mysql table customer, column reference. 1000 lines of data  There are alot of reference data. 'Customer credit note XXXXX' I want to replace 'Customer credit note'  with ''  How do I do that?


Because PaymentX stores the user's credit card details for you and sends your server a token to charge the card, if you use our SDK, your PCI compliance scope is greatly reduced compared to the case when your servers were handling the card details directly.   What's the best way to phrase the sentence above? I know an english rule is to never start a sentence with Because.


I want to update to 2.8, and it looks like I just have to download that version. Will i have to delete my old version or will it automatically replace it?


I'm having a problem with writing a text file using Java swing. Below is my code, if I try to open the file the text isn't formatted like its supposed to, going into a new line after each input text. I've tried using /n, System.lineSeparator() and %n, but nothing seems to work. Unless I copy the content into another file it looks wrong. Instead of going into a new line it gives me this:  Name: Bob Test Number: 12345678 Email: BobTest@email.com  Address:  Teststreet 123 TestCity Testcountry  Gender: Male Occupation: Student Salary: 500 Manager: Yes  try {                         Object fileName = textField.getText();                         File user = new File("C:\\Users\\Nicol\\Desktop\\"+fileName+".txt");                         if(!user.exists()) {                             user.createNewFile();                         }              PrintWriter pw = new PrintWriter(user);             pw.print("Name: ");             textField.write(pw);             pw.print("\nNumber: ");             textField_1.write(pw);             pw.print("\nEmail: ");             textField_3.write(pw);             pw.print("\n\nAddress: \n");             textArea.write(pw);             if(rdbtnMale.isSelected()) {                 pw.print("\n\nGender: Male");             }else if(rdbtnFemale.isSelected()) {                 pw.print("\n\nGender: Female");             }else {                 pw.print("\n\nGender: none selected");             }             Object professionSelect = comboBox.getSelectedItem();                pw.print("\nOccupation: " + professionSelect);              pw.print("\nSalary: ");             textField_4.write(pw);             if(chckbxIsManager.isSelected()) {             pw.print("\nManager: Yes");             }             else {                 pw.print("\nManager: No");             }             JOptionPane.showMessageDialog(null, "The file has been created on the desktop.");             pw.close();                      }


How can I get a big N like the one below?


Triac randomly triggers when there is noise in the supply

I am using BTA16-800CW (Snubberless version) to control AC appliances (LED lights) and it randomly turns on / flickers when I adjust the fan regulator in the same room (this may be creating some spikes in my mains). I have already connected an MOV to my controller, however did not use snubber as the triac already have them inbuilt ()  The triac is driven by MOC3023 and it functions well otherwise.  Appreciate if you can guide me on any additional components required to avoid such random turn on.  Schematics   Edit I suspect the MOC3023 causing the false trigger! Have anyone used other drivers for BTA16 (snubberless version) successfully without false triggers ?  Update on 18-May-2018 I have tried FOD4208 instead of MOC32023 and they did not stop the false trigger. Also if this is a duplicate question, then please help by giving the solution or the duplicate posts which has the solution.  Update on 26-June-2018 I tried another Triac with high dv/dt and the circuit works fine when the opto driver is removed (Keeping only the triac in the circuit). Also the tests shows that FOD4208 gives less false triggers than MOC3023 (FOD4208 seems to have high dv/dt).


What for is this circle icon in taskbar?


If $T^n$ is $q$-contractive, $T$ exactly has one fixed point

Consider a complete metric space $(X,d)$ and $T\colon X\to X$. Suppose there exists $n\in\mathbb{N}$ such that the n-th power of $T$ is $q$-contractive. Show that then $T$ has exactly one fixed point $\overline{x}\in X$.      The n-th power is defined inductively: $$ T^{n+1}(x):=T(T^{n}(x)), n\in\mathbb{N}. $$ And for a function $T\colon X\to X$, $q$-contractive means  $$ \exists 0\leq q<1~\forall~x,y\in X: d(T(x),T(y))\leq q d(x,y). $$    Now to the proof.  I think I have to show, that $T$ is q-contractive, because then it follows with Banach, that $T$ does have exactly one fixed point. So I have to show, that there exists a $0\leq q<1$ so that for all $x,y\in X$ it is $$ d(T(x),T(y))\leq q\cdot d(x,y). $$ And most likely I have to use the q-contractivity of $T^n$, i.e. that there exists a $0\leq q <1$ so that for all $x,y\in X$ it is $$ d(T^n(x),T^n(y))\leq q\cdot d(x,y). $$  Can you help me?


Deleting files but, disk space doesn't stay free - not due to time machine

After hitting the ceiling on my 256 GB SSD, I deleted around 20 GB to free up disk space. Unfortunately, almost every time I start the MacBook, it issues a warning, that the startup disk is almost full. Seemingly at random, checking the free disk space actually provides the 20 GB of free disk space but after a while it falls down to a few MB (!). I already tried disabling Time Machine's Local Snapshots:  sudo tmutil disablelocal   but that didn't help.  System Specs: El Capitan - 10.11.6 on a late 2013 MacBook Pro  P.S.: this is not a duplicate of


I am trying to reverse a linked list in Java. Here is my code.  class Node{      int value; Node next;      Node(int value){ this.value = value; }  }   class LinkedList{   Node head;   void push(int value){         Node new_node = new Node(value);         new_node.next = head;         head = new_node;         System.out.println("new head is"+head.value);     }  void reverseList(Node node){         Node iter = node;         Node prev = null;         while(iter!=null){             Node currentNext = iter.next;             iter.next = prev;             prev = iter;             iter = currentNext;         }         node = prev;     } // To print the list referred by this node. void printList(Node node){         Node iter = node;         while(iter!=null){             System.out.print(" "+iter.value);             iter = iter.next;         }         System.out.println("");     } }   In main(),  LinkedList list = new LinkedList(); list.push(3); list.push(2); list.push(1);  list.printList();// linked list is 1->2->3 list.reverseList(list.head); list.printList(list.head); // Output is 1   Why is the list not printing in the correct orde (3->2->1) after reversing the list?


Every system sound mutes spotify. On Ubuntu 16.04 it was working fine. Video:


I need to prove that exists a homomorphism uniquely determined in a exact sequence

I have the next sequence where the row is exact, A, B, C and D are $R$-Modules and $ h \circ f =0$.  I need to prove that exists a homomorphism $k: C \to D$ uniquely determined such that $ k \circ g = h$


Can I have two Schengen visas at the same time?

I am a Chinese student in the UK. I just got my Schengen visa from Norway. They only gave me a single-entry visa, from 3rd July to 25th July, and I can only stay in there for 8 days. I will be in Norway from 3rd July to 10th July, that's fine.  However I need to travel to Italy on 18th July, and back to the UK on 23th July. Can I apply for a new Schengen visa for Italy in a situation like this?


Is there such a construction as "to send hello" or "to send hi"?  Or something close?  Or which is better?


Domains and trademarks - is there some legal risk

Suppose there is a trademark called "Rubyblock" and you buy rubyblock.com and name your app "Rubyblock" is there some legal risk?  If yes, how do i can check this before to name the app and buy domain?


I have same exception can please   The previous post issue is resolved.  Exception: :System.CalloutException: You have uncommitted work pending. Please commit or rollback before calling out  Visualforce Page   <apex:page controller="Controller" action="{!init}" showHeader="false" sidebar="false">     <center>         <apex:pageBlock title="Request Listener"></apex:pageBlock>               </center> </apex:page>   Controller :            PUBLIC with sharing class Controller {        PUBLIC String fromNumber      = ApexPages.currentPage().getParameters().get('From');     PUBLIC String toNumber        = ApexPages.currentPage().getParameters().get('To');     PUBLIC String body            = ApexPages.currentPage().getParameters().get('Body');        PUBLIC PageReference init()     {                    System.debug('From Phone Number :' +fromNumber);         System.debug('To phone NUmber :' + toNumber);         System.debug('Message Body :' + body);          TwilioRestClient Client = TwilioAPI.getDefaultClient();                                                                SYSTEM.DEBUG('FROM AND To  Number is NOT NULL');                      String formattedNumber='+919876543210';                 IF(body != NULL)                 body = body;             ELSE                 body = '';             Case c = NEW Case (Subject = formattedNumber,Description = body,Origin = 'Phone');             INSERT c;                               Map<String,String> params1 = new Map<String,String>             {                'To'   => fromNumber,                'From' => '+1908280****',                'Body' => 'Conformation to customer'             };             TwilioMessage message = client.getAccount().getMessages().create(params1); /* Valid conformation SMS sent to the Customer.*/                                            return null ;     } }   While loin as admin then click preview on visualforce page executed but case is not created.I have checked the the debug log it throw the exception.


I'm calculating the covariance of a distribution in parallel and I need to combine the distributed results into on singular Gaussian. How do I combine the two?  Linearly interpolating between the two almost works, if they are similarly distributed and sized.   provides a forumla at the bottom for combination but it doesn't seem right; two identically distributed distributions should have the same covariance, but the formula at the bottom of the page doubles the covariance.  Is there a way to combine two matrices?


export variable in file.sh with : parameter

I have this variable in file.sh: IMAGE_MANIFEST=sha256:c41d9adf556bb500d2834292d84e8dacfcea5c2d1bbd24f80c3ff9061b9925b1  When I run the command below: export $IMAGE_MANIFEST  I get an error: ': not a valid identifier line 35: export: `sha256:c41d9adf556bb500d2834292d84e8dacfcea5c2d1bbd24f80c3ff9061b9925b1  How can I fix it?


Alien: Covenant and Alien (1979) connection: xenomorph

If you haven't seen Alien Covenant don't ruin it by reading the spoiler!  I just saw Alien Covenant. If David "created" the traditional xenomorph that follows the face-huger-type gestation, and since Prometheus and Covenant are prequels (albeit loosely based prequels) than how does - millennia later - the crew in Alien (1979) encounter the same type of species given that the spaceship originated from LV-223 (Prometheus world) and crashed in LV-426 (Alien 1979 world).


Ok. I don't get why my code is reporting a NullPointerException, but I've been here for quite a while trying to figure it out.  And no, files is not null.  Edit: That was a mistake on my part, it was null (I didn't see the order I was running the functions.  Here is my code:  public String[] files;  private void updateRefs(String filepath) {     try {          scr++;         files[scr] = filepath; //NullPointerException???     } catch ( Exception e ) {         e.printStackTrace();     } }


Don't close this question as a duplicate of either  or  but yes I agree that its similar to these questions. Yes I could edit the existing questions but I have created this question to let developers track this issue differently and can manage easily.  Current app version: 0.1.81  Steps to reproduce issues:   Open app, it shows Area51 site as an advertisement. Click on advertisement, it will show 2-3 choice to open advertisement link with. If you select Chrome or browser, it opens successfully but choose SE android app.   Issues:   site name is shown as "Unknown site a..." in title. "No items to show..." text in center of the screen instead of Area51 site feed.   P.S. One reason I have already mentioned why I have created this question separately, another reason is I am not sure whether advertisement for area51 or other sites are also getting displayed.  Here are the snaps for the same issue/s.


"Always use this program to open these files" is grayed out. Why?

I inadvertently set the Registry Editor to be the default editor for *.txt files. Now when I go to change the default, "Always use this program to open these files" is grayed out. This is the case whether I right click on the file and choose "Open with...", or start with the "Set Default Programs" control panel.    Why? How can I fix this?


What does upside down "v" ($\wedge$) mean in this equation?

I have a simple question, but it is hard to google it. I have this equation here:  $$y(t, x) = \sum_{i=1}^{d}(|x_i| \wedge t)^{2} $$  Here $x$ is a size $d$ signal and $t$ is just a scalar. I am not sure how to read that equation in english... I understand everything except for how they use the $\wedge$ here...  If context helps, this is part of a cost function, based on a threshold $t$ that is selected, for your vector $x$.


Why does Windows 8 open Bing.com by itself?

My Windows 8 Laptop will open Bing in IE by itself. It makes a request to:        which then directs to        Changed default browsers from IE to Chrome and see the same behavior in Chrome.  My initial thought was spyware, but the Microsoft URL made me think otherwise. I then confirmed that it happens on brand new installs for others at my company.   It happens (seemlingly) randomly, and without any interaction from me. I can reproduce the issue by disabling my network connection and resuming from sleep mode.


Most efficient way to batch clip in FME?

I have one large shapefile and 100 smaller shapefiles that are smaller areas within the large shapefile.   Using the Clipper transformer, I want to clip the large shapefile using each of the smaller shapefiles (I want to do the clip 100 times), and then write out 100 resulting shapefiles.  What is the most efficient way to do this in FME?


re.compile() doesn't match the valid pattern against a string python

Below match doesn't work:      import re pattern = re.compile("[\^\/!*\[({%?$]")  param = "f00.*"  if pattern.match(param):     print " I am a regexp" else:     print "non regexp"   But this does:  import re node_pattern = re.search("[\^\/!*\[({%?$]", "f00.*")  print bool(node_pattern)   What's wrong with re.compile()?  Isn't it the valid way to match a string against a regexp?


Re-enabling backspace as "go back" in recent Chrome

Since start of this summer, I think that Google removed the option of using backspace for returning to previous page or so.   I was wondering, if there exist any chance, of undo-ing this thing? Is there such thing that would help me, such as downgrading Chrome or using any additional add-ons or something such as this for getting this glorious function back?  It's nearly impossible for me to forget this shortcut (as old habits die hard, lol) and keep pressing it and later on using the mouse to go back.


Is it possible to create an x-y Plot with addplot table where the x-axis entries are not shown, but instead text can be inserted for each one? This is because I have a file containing bonds and I'd like to write CH instead of 1 CN instad of 2,... The legend is already used to describe the different data sets. Of course I could write a separate "legend" in which I'd define 1=CH, 2=CN, but I have the feeling it should be possible to rename the axis entries. However I have not found anything of that sort so far.  Here is the code:  \begin{tikzpicture} \begin{axis} [xlabel = {Bond}, ylabel={Länge in \si{\angstrom}}, xmin= {0}, xmax={14}, legend style={legend pos=  outer north east}]  \addplot [blue, only marks, mark=x, legend entry= {6-31G(d,p)}] table [x expr=\thisrowno{0}, y expr=\thisrowno{2}, header=true] {plot/raw/length/13RHF.txt};   \addplot [green , only marks, mark=x, legend entry= {6-311G(d,p)}] table [x expr=\thisrowno{0}, y expr=\thisrowno{5}, header=true] {plot/raw/length/13RHF.txt};   \addplot [purple, only marks, mark=x, legend entry={cc-pVDZ}] table [x expr=\thisrowno{0}, y expr=\thisrowno{8}, header=true] {plot/raw/length/13RHF.txt};   \addplot [black, only marks, mark=x, legend entry={cc-pVTZ}] table [x expr=\thisrowno{0}, y expr=\thisrowno{11}, header=true] {plot/raw/length/13RHF.txt};   \addplot [pink, only marks, mark=x, legend entry={cc-pVDZ?}] table [x expr=\thisrowno{0}, y expr=\thisrowno{14}, header=true] {plot/raw/length/13RHF.txt};   \addplot [yellow, only marks, mark=x, legend entry={SVP}] table [x expr=\thisrowno{0}, y expr=\thisrowno{17}, header=true] {plot/raw/length/13RHF.txt};   \addplot [orange, only marks, mark=x, legend entry={TZV}] table [x expr=\thisrowno{0}, y expr=\thisrowno{20}, header=true] {plot/raw/length/13RHF.txt};   \addplot [red, only marks, legend entry={GAFF}] table [x expr=\thisrowno{0}, y expr=\thisrowno{2}, header=true] {plot/raw/length/13GAFF.txt}; \addplot [red, only marks, mark=o, legend entry= {XXX} ] table[x expr=\thisrowno{0}, y expr=\thisrowno{2}, header=true] {plot/raw/length/XXX.txt};   \end{axis} \end{tikzpicture}  the preamble uses apart from the regular tikz/pgfplots/pgfplotstable packages and the tikzexternal/pgfplotsexternal libraries:  \pgfplotsset{     legend entry/.initial=,     every axis plot post/.code={%         \pgfkeysgetvalue{/pgfplots/legend entry}\tempValue         \ifx\tempValue\empty         \pgfkeysalso{/pgfplots/forget plot}%         \else         \expandafter\addlegendentry\expandafter{\tempValue}%         \fi     }, }


How to roll back Ubuntu to a previous version?

I just installed a new version of Ubuntu and I want to roll it back to the previous version.  How can I do that? Is that even possible?


Where to obtain Irish passport stamp when entering from Northern Ireland?

I'm going with an American friend from Belfast to Dublin by bus. Despite the lack of border control at the land border due to the Common Travel Area agreement, non-EU/EFTA nationals are supposed to get processed and stamped into Ireland even when entering from the UK - the Immigration section of the Gardai (Irish Police) has consistently told me this by E-Mail and on the phone  I e-mailed the Gardai asking about entering by bus from Belfast, and they said we should go to the Garda Station in Dundalk for entry processing.  However, Belfast-Dublin buses do not stop in Dundalk, but run non-stop between Newry (UK) and Dublin.  What is the proper procedure in this case?  UPDATE: just found the following on the :     If you arrive via the border with Northern Ireland, you must report to an immigration officer at Burgh Quay Registration Office Dublin or your local Garda Síochána (police) station as soon as possible.   I've noticed a common belief here on Travelstack that, due to the Common Travel Area, you need to do nothing as long as you were admitted to the UK. That is then clearly not the case.


php unicode text not showing after insert to mysql

I want to insert unicode text into my mysql database. when i put "আবুল কাশেম"(Bengali language) in input field to insert. it's inserted properly but it's not showing "আবুল কাশেম" it shows "à¦†à¦¬à§à¦² à¦•à¦¾à¦¶à§‡à¦®" this.how can i solve it.   data type: VARCHAR and Collation: utf8_unicode_ci  <!doctype html> <head> <title><title> </head> <body>  <label for="date">আপনার পূর্ণ নাম</label>  <input type="text" name="fullname" id="fullname" placeholder="আপনার পূর্ণ নাম">  <button type="submit" name="register" >রেজিস্ট্রেশন</button>  </body> </html>  <?php   if(isset($_POST['register'])){         $name = mysqli_real_escape_string($con,$_POST['fullname']);   $insert = "insert into users (name) values ('$name')";         $run_insert = mysqli_query($con,$insert);             if($run_insert){             echo "<script>window.open('home.php','_self')</script>";             }          }   ?>


I was wondering if someone could explain the following passage from my textbook.    In the third paragraph from the bottom it is stated that the simulated values come from the marginal distributions. How is this so? We simulate the value x2 from the condition density f(x2|x1)..  Also, there is mention of independence and again because of the dependence of the value of x2 on x1 and so forth, I do not see how this occurs.   Would greatly appreciate your help


I have the following code for a Figure with 4 subfigures:  \documentclass{article} \usepackage{graphicx} \usepackage{caption} \usepackage{subcaption}  \begin{document}  \begin{figure}[b]     \centering     \begin{subfigure}[b]{\textwidth}         \includegraphics[width=\textwidth]{./plots/arm1.pdf}         \subcaption{$Q^{*}$ values for arm 1}         \label{fig:arm1}     \end{subfigure}     ~     \begin{subfigure}[b]{\textwidth}         \includegraphics[width=\textwidth]{./plots/arm2.pdf}         \subcaption{$Q^{*}$ values for arm 2}         \label{fig:arm2}     \end{subfigure}      ~     \begin{subfigure}[b]{\textwidth}         \includegraphics[width=\textwidth]{./plots/arm3.pdf}         \subcaption{$Q^{*}$ values for arm 3}         \label{fig:arm3}     \end{subfigure}      ~     \begin{subfigure}[b]{\textwidth}         \includegraphics[width=\textwidth]{./plots/arm4.pdf}         \subcaption{$Q^{*}$ values for arm 4}         \label{fig:arm4}     \end{subfigure}      \caption{$Q^{*}$ values for different arms}     \label{fig:arms} \end{figure}  \end{document}   This results in   But this way, the 4 subfigures are too large to fit on 1 page. I would like to split this over 2 pages, keeping the subcaptions a, b, ... How can I do this?


Why do the Klingons in Into Darkness have cranial ridges?

To the best of my knowledge the (in-universe) explanation for why the Klingons didn't have cranial ridges in TOS was because of a genetic disease caused by attempts to manipulate Klingon DNA to create augments (like Khan):  In the year 2154, the Klingons gained access to the genetic material of Human Augments and tried to adapt this genetic engineering to improve themselves.... One of the subjects suffered from the Levodian flu, which was modified by the Augment DNA to become a fatal, airborne, mutagenic plague that spread rampantly through the Empire, from world to world. In the first stage of this plague, Klingons lost the ridges on their foreheads     However, I recall seeing in the episode chain of Enterprise where the Klingons became infected with the virus, that the augmented children that the Klingons based their research on were augments from Khan's folk. The scientist who leads the augments is Dr. Arik Soong (an ancestor of Dr. Noonian Soong, Data's father).  Now if these children were augments then, in the prime timeline, Dr. Arik Soong likely found them aboard the Botany Bay and took them for safe keeping. However in the Abramsverse the Augments are likely under section 31's control and so would be kept under guard on earth, meaning that the Klingons wouldn't experiment with genetic research. Therefore everything is fine then? No. Because the Augment virus ravaged the Klingon population prior to the U.S.S Kelvin's fateful encounter with Nero, then the Klingons (or the majority of them) should still have disease-ravaged heads in Into Darkness. So how/why exactly do the Klingons in Into Darkness have cranial ridges?


Ancestor was born in 1832 England, lived in Minneapolis Ward 13. Column 30 ..what is the meaning of -9- .  No letters just  dash 9 dash


I have many files under the current directory.  Each file contains copyrights headers like,      #     # Copyright 2013 Company, Inc. All rights reserved. This software     # is property of Company, Inc and contains trade secrets,  I want to replace Copyright 2013 Company by Copyright 2014 Company  How can I do that?  I tried:  find . -type f -exec sed -r -i "/Copyright\/ 2014\/ Company/d" {} +


If H ≤ Z(G) ≤ G, where G is a finite group,Z(G) is its center, and (G:H) = p for some prime p, then G is abelian.

If $H \leq Z(G) \leq G$, where G is a finite group, $Z(G)$ is its center, and $(G:H) = p$ for some prime $p$, then G is abelian.  Well because H < Z(G) we have that H commutes with all of G. Also |G/H|=p. I was thinking of connecting this result to the fact that if $G/Z(G)$ is cyclic, then $G$ is abelian, but was unable to. Then I thought about using the result that $(G/H)/(Z(G)/H) = G/Z(G),$ but that leads to nowhere. Any suggestions?


Italicizing words that include an underscore doesn't work

Here's the screenshot of my experience with italic text over Stack Overflow.     Basically it just wraps the word into asterisks and leaves it like this. Here on Meta I do not observe this bug.


Obtaining correct area values *With* correct projections?

I'm trying to get the percentage of each U.S. county overlaying groundwater (data from the census and USGS respectively). They're both polygons.   I have 1) correctly projected the data and the layer (NAD 83, meters) 2) clipped the counties using a polygon corresponding to groundwater coverage 3) use calculate geography to obtain the areas, so that I can then figure out proportions/percentages. I create a new field for that (double).   I've been toying around with this and other methods, and I cannot get credible area values. They're tiny; almost all 0.01 - 0.1. One of my many hunches was that it's in decimal degrees, but I've projected the data, and it's still showing up incorrectly. The most frustrating part is that the county/state files won't calculate correctly either on their own, which is bizarre (Florida = 15 m2).  Any ideas?


Removing a black background to create a transparent image

There is a way of removing the background in Inkscape using Bezier curves. For my project, this will be a lengthy task.  I have a white logo on a black background, I wish to have a white image of the logo on a transparent background. Is there a way to trace the white image using colour. There are only solutions for this with a white background, not a black one.  If this is possible, could you describe the process using Inkscape?


The Polya urn model for contagion is as follow.  We start with an urn which contains one white ball and one black ball. At each second we choose a ball at random from the urn and replace it together with one more ball of the same colour.  Calculate the probability that when $n$ balls are in the urn, $i$ of them are white.  How do you prove this probability is equal to $1/(n-1)$?


video editor problems, how can i save an edited video as mp4?

Could someone help me here please? I've edited a video in Blender's video editing program but i can't download the file as an mp4. I've looked trough all the answers I could find on the web and on this website, most of them say I should render the video in default mode, but then there's no sound and only the main video without the music and pictures I've added. I'm in this screen now:   Can someone explain me how to download it as an mp4 file or give me an example how I could do it? Any help is appreciated!  Greetings, Lander


why can Javascript function can update original property of object from outside but cannot update original variable

let variable1="hello"; function func1(variable){     variable="hello hello"; } func1(variable1); console.log("after function: "+variable1);  let object1={     property1:"hello2" } function func2(obj){     obj.property="hello object"; } func2(object1); console.log("after function:" +object1.property);   I have this code, the first console.log() returns  hello   but second console.log() returns   hello object   So I understood javascript cannot change and update variable but it can change and update property of object. But why and how?


Assume for all finite $r>r_0$ that   $$\lim_{n\to\infty}\mathbb{P}(\mathcal{A}_{r,n})=0,$$   where $\mathcal{A}_{r,n}$ is an event on some random variables, and $n$ and $r$ are deterministic variables. How to prove the following?   $$\lim_{n\to\infty}\mathbb{P}(\lim_{r\to\infty} \mathcal{A}_{r,n})=0.$$   This is a part of a bigger problem. I need to prove the second equation but I have proved the first one. Is the second equation always true? If yes, how can I prove that?


I am trying to make a small graphics demo, and was increasing a variable (let's say it's called B) by 0.05 every iteration. Problem, the code does not work as expected. #include <iostream>  int main(void) {     double b = 0;     for (int i = 0; i < 3001; ++i) {         if (b < 150)             b += 0.05;         std::cout << b << std::endl;     } }  The expected outcome is for the last results to be "150.00", or "150", but instead it prints "150.05". Somehow, the code runs the b += 0.05; one more time. I honestly do not know how to search for a fix on the internet, there's no way I can word this error in a short sentence.


I was wondering if someone knows if there is a foot/feet symbol available in any of latex packages that I could use in my text? I would appreciate any hint.  I do really mean a foot/feet icon as in the picture below.


Changing Screen Brightness Through Keyboard Functions on My Notebook

I've installed Ubuntu 16.04 on my Asus X555LJ.  But I don't know how to install drivers or how to enable function keys to controls screen backlight brightness.


June 13th 2017 Microsoft blocked handling HTML markup in SharePoint calculated fields - how to get the same functionality back

On June 13th 2017 all SharePoint calculated columns with HTML markup stopped working.   Basically the fields now render text (regardless of setting the data type to number). The gist of the notice from Microsoft () is:     In Microsoft SharePoint lists and libraries, calculated fields that   are running in the classic UI mode can be used to display results   based on Excel-like formulas. This is a long standing capability, and   is documented in Calculate data in lists or libraries.      Some users have added HTML markup or script elements to calculated   fields. This is an undocumented use of the feature, and we will begin   blocking execution of custom markup in calculated fields in SharePoint   Online from June 13, 2017 onwards. We are also providing this as a   configurable option for on-premises in SharePoint Server 2016 and   SharePoint Server 2013 via the June 2017 and subsequent Public   Updates.   As we don't have on premise SharePoint (online), we have to find an immediate work around, given that this impacts our processes and thus, business.   Is anyone aware of third party applications that will allow for HTML, script markup (that works with SP online)?


I’ve heard people say “a good lens will last a lifetime” many times. Is this actually true of modern lenses? More specifically, will a good lens be usable for a lifetime?  With an inexpensive adapter, I can mount up any M42 (Pentax) screw-mount manual focus lens to my Canon EF mount body. The same is not true of older AF lenses. The Canon FD mount lasted less then twenty years, and is incompatible with modern Canon bodies; this also seems to be the case with the earlier FL and R mounts. While the EF mount has lasted longer than the FD lenses, I have a 15-year-old Sigma lens which does not work correctly on modern Canon bodies due to electronic incompatibilities.  Additionally, there’s the issue of Canon’s EF-S (APS-C only) lenses, which are incompatible with their full-frame DSLRs. If one wants to upgrade to a full-frame body in the future, any money spent on EF-S lenses is wasted.  The situation seems to be better with Nikon’s gear. It’s my understanding that current Nikon bodies are largely backwards-compatible with lenses dating back to the ’60s.


Is there an Upsert API call to create/ update a subscriber in 1 API call? It will save us a lot of resources.


How to purposefully exclusively lock a file?

I want to hold an exclusive lock on a file so it cannot be read or written by anything else. Is there a simple Windows tool or command to do this?   I suppose the tool or utility would implement the  Windows Function.  Note: I've tried text editors like Notepad and Notepad++ on a text file but they don't hold an exclusive lock on it.


How can i write the following symbols in latex?


How can I identify a counterfeit Xbox 360 controller?

I recently bought a Wired Xbox 360 controller from Ebay, and I'm trying to figure out whether it's counterfeit.  It's two-tone black and gray, which  means it's probably the Elite edition of the controller.  Here's what makes me suspicous:   There's no breakaway cable near the USB port (Microsoft's term is ), the cable is one piece from controller to USB port The cord is about 7 feet long The hologram sticker on the back says "Microsoft" but doesn't have the real Microsoft logo, there's no slice taken out of the "o" in "Micro"   Here's a number of details that are correct, as far as I can tell:   The "Microsoft" logo etched on the top of the controller is correct, it has the split "o" and connected "ft" It seems to work correctly when plugged into my computer The front of the controller matches  exactly At the USB end of the cord, the grey wider plastic piece you're intended to pull on has the little nub on top. (You can see what I'm talking about in , the nub is to the left of and below the first "w" in the watermark)   I know pictures would probably be helpful, I'll work on taking some.


Proof that $(x-1)^2$ divides a $nx^{n+1} – (n+1)x^{n}+1$

I want to solve:  Show that, in $\mathbb Q[x]$ (rationals), the polynomial $(x-1)^2$ divides a $zx^{z+1} – (z+1)x^{z}+1$, where $z \geq 1$ is any integer  I am really lost with this one, don't know how to aproach it


I am trying to create a toggle action but with raw JS. So instead of using toggle class I must add and remove each part.  When the user clicks a radio button, one div gets class enabled and the other gets class disabled which controls my styling (to grey the area out)     I am using the following for this:  var d = document.getElementById('justfull'); d.className = d.className + " enabled";   and then giving the other div disabled  var other = document.getElementById('firstandlast'); other.className = other.className + " disabled";   But I am stuck when it comes to removing the class if it's previously been added. As obviously the user can toggle between the two radio buttons. I need to add the enabled class to my new div but I also need to check to see if there was previously a disabled class added to it and if so, remove it.  So I am using the following code:  var oldclass="disabled";  d.className=d.className.replace(oldclass,"");   But this doesn't seem to work as the classname just adds and adds until I have something like this:  <div id="justfull" class="  enabled  enabled  enabled disabled">   How would I properly both add the enabled class and check for a removal of the other? Essentially a toggle class but in raw JS.


Is there a way to make Drupal post to facebook?  I want the user to be able to create an article, and when user does that, it automatically posts information of the new article to a Facebook account. Is this possible?


Should "Jobs's" be pronounced "Jobs" or "Jobsis"?  Thanks!


What is the complexity of finding SHA-1 collisions?

Given the , what is the complexity of finding a SHA-1 collision?  Marc Steven's  is still detailing about 260. Does the previous complexity still hold?


Schengen Visa for germany Refusal Reason #8. Should I Appeal or wait to reapply after 3 months

I have applied for Schengen Visa for Germany in Abu Dhabi on 06/09/2015 for 10 days and the Embassy Refused my application on 22/09/2015. Beacuse of reason no 8.  It was mentioned in German Language (Die vorgelegten informationen uber den zweck und die bedingungen des beabsichtigten Aufenthalts waren nicht glaubhaft) and also in English (the embassy does not hold that you have convinced it that you are going to Germnay for the purpose stated in your application)  Now What is the process, what should I do in this case. Is it good to wait for three months and reapply or it will be better to appeal.


Get property info of all properties which values currently equal 'default'

So, I need to retrieve all properties of an instance which currently have a value that matches the default value of their respective type. Something along the lines of  GetType().GetProperties().Where(x =>      x.GetValue(this).Equals(default(x.PropertyType)));   This obviously doesn't work because it seems 'x' cannot be resolved anymore at this point. What could I do?


What is Hawking radiation and how does it cause a black hole to evaporate?

My understanding is that  isn't really radiated from a black hole, but rather occurs when a particle anti-particle pair spontaneously pop into existence, and before they can annihilate each other, the antiparticle gets sucked into the black hole while the particle escapes. In this way it appears that matter has escaped the black hole because it has lost some mass and that amount of mass is now zipping away from it.  Is this correct? If so, wouldn't it be equally likely that the particle be trapped in the black hole and the antiparticle go zipping away, appearing as if the black hole is spontaneously growing and emitting antimatter?  How is it that this process can become unbalanced and cause a black hole to eventually emerge from its event horizon and evaporate into cosmic soup over eons?


Output of which command used for input to cd

I would like to take the output of a which command, and cd to the parent directory. For example, say I have the following:  which someprogram   With output:  /home/me/somedirectory/someprogram   And I would like to cd to the directory that someprogram lives in:  cd /home/me/somedirectory   I'd like to accomplish this in one line. What is the most elegant, tricky, short way to do this?


Asked question without registering, can't see my question after registration

This morning I've asked a question (on Academia) without registering. I've received an email with a link to set up an account and I've followed it. However it seems this new account is in no way connected with the question I've asked, so I can't comment/upvote/mark as accepted. Have I done anything wrong, or is it supposed to work that way? Is there any way to "merge" the accounts?


What wand was used by Mr Graves at the time of Fantastic Beasts?

We know that the movie Fantastic Beasts is set in 1926. From the movie, we learn that at this time, Dumbledore is a teacher at Hogwarts and Grindelwald is lose after escaping a previous arrest. In the movie we learn that      Mr Graves is in fact Grindelwald in disguise. Grindelwald is shown to be at least in his forties, maybe fifties so he should already be the owner of the wand since he stole it from Gregorovitch as a teen.   We know that Dumbledore won the wand from Grindelwald after defeating him in their historic duel. That duel is always described as being “the end of the dark wizard Grindelwald” so I’m assuming that it didn’t happen prior to the movie and that he didn’t escape after that duel, please correct me if you have cannon evidence stating the contrary.      In the movie, we see Graves’ wand a few time and it isn’t the (very recognizable) one used in DH as the Elder Wand. This could of course be a prop error but since David Yates was also the director on DH and a lot of the visuals are similar I’m assuming it wasn’t. Graves could of course be using another wand in the fear that someone could recognize it but he would still be the rightful master of the Elder Wand. At the end of the movie, Newt is the one that disarms Graves/Grindelwald.   In all logic, he should have been made the new owner of the wand, whether Grindelwald was actually using it or not. That would have made it impossible for Dumbledore to win it from Grindelwald later.  So my question is: What wand is that character using at that specific time? Is he already the owner of the Elder Wand?      And if so, why wasn’t Newt made the new owner of the wand?


Can we define a GROUP_CONCAT function in PostgreSQL?

I have several lines of SQL code for my legacy database with GROUP_CONCAT statements, as in:  SELECT SUM(age), GROUP_CONCAT(sal) FROM Users;   In PostgreSQL, I can do the same with:  SELECT SUM(age), string_agg(sal, ', ') FROM Users;   I would like to reuse the old SQL as much as possible. So I need to define a GROUP_CONCAT function that internally calls string_agg. Is this possible?  EDIT: The linked question is unrelated!  My question asks "How to define a function called group_concat?". The linked question says "How can we do something equivalent to group concat (without defining a new function)?". None of the answers, also match what I want.   The selected answer is spot on! Thankfully it was answered before getting closed.


I want to use a slanted \sum symbol denoting a different meaning from summation. How do I get a slanted \sum symbol?


Exporting table from ArcGIS Desktop to Excel file?

Is there a way to export a table with selected records to an Excel spreadsheet?  I was trying to export just to .txt file but ArcGIS gives me an error message.     An error occurred exporting the table   The other problem I have is with coordinates. I want them only with one locus after the comma, I mean like the format: xx xx xx,x not like I have now xx xx xx,xxx.     The version of my software is 9.3.


I don't understand why the below code doesn't work in c# (.NET Core 1.1).  public interface IChild { }  public interface IParent {     IEnumerable<IChild> Children { get; set; } }  public abstract class ParentBase<TChild> : IParent     where TChild : IChild {     public IEnumerable<TChild> Children {get; set; } }   The error message is      Error CS0738  'ParentBase< TChild>' does not implement interface member 'IParent.Children'. 'ParentBase< TChild>.Children' cannot implement 'IParent.Children' because it does not have the matching return type of 'IEnumerable< IChild>'.   The error message says the IEnumerable< TChild> is not of type IEnumerable< IChild> while I constrain TChild to IChild.  I found two 'easy' ways out of this, but both require rather bad changes in the client code.  I load an entire object tree of these types using ConfigurationSection.Bind() in the client code.  Unwanted solution 1 : Make the parent interface generic  public interface IChild { }  public interface IParent<TChild>     where TChild : IChild {     IEnumerable<TChild> Children { get; set; } }  public abstract class ParentBas<TChild> : IParent<TChild>     where TChild : IChild {     public IEnumerable<TChild> Children {get; set; } }   Unwanted solution 2 :   public interface IChild { }  public interface IParent {     IEnumerable<IChild> Children { get; set; } }  public abstract class ParentBas<TChild> : IParent     where TChild : IChild {     public IEnumerable<IChild> Children {get; set; } }


Plain TeX pdf2ps page numbering offset for front matter in PDF viewer

The good: When I use plain TeX, and then run dvips to get the Postscript output, I see negative page numbers for the front matter in the thumbnail pages on the left in evince and gv (ghostview), followed by positive page numbers starting at 1 after the front matter, although okular shows positive pages pages starting at 1 for the front matter, ignoring the negative page numbers of the front matter.  The bad: When I convert the Postscript file to PDF using ps2pdf, all of my four PDF viewers show me the pages starting at 1 for the first physical page instead of using negative page numbers for the front matter. Then the numbering continues with a constant offset between the page number in the PDF thumbnails and the printed page number on each page.  What I would like is for the postscript-to-PDF conversion to produce a PDF file which shows pages -1 to -22 for the 22 pages of front matter, and then shows 1 for first page after the front matter. In other words, the thumbnails should show the page number which is printed on each page.  I've looked through the parameters for ps2pdf and dvips, but nothing there looks promising. I have heard that LaTeX users do get the right result, but I am using plain TeX.  PS. Here's a sample file which demonstrates the problem.  % test1.tex   2015-8-4   Alan U. Kennington. % Demo of using \pageno to set negative page numbers, like normal plain TeX. % Compile with tex, dvips and ps2pdf.  \pageno-1 Page minus 1. \vfill\eject Page minus 2. \vfill\eject  \pageno1 Page plus 1. \vfill\eject Page plus 2. \bye   The PDF viewers show pages i and ii as 1 and 2. Then they show pages 1 and 2 as 3 and 4. I would really like them to show i and ii as -1 and -2. Then they should show pages 1 and 2 as 1 and 2.


My precooked vacuum sealed ham was left in garage at 45 degrees Overnight is it still good to make

Left my precooked vacuum sealed ham out in 45 degree garage over night is it still good to make


How to install Nvidia 319.12 driver on an optimus system

I have a Samsung NP550 system with Nvidia Geforce GT650M. I have installed bumblebee 3.2.1 and "nvidia-304, 304.88, 3.8.0-19-generic" drivers are loaded for me. However I would like to update to latest 319.12 driver. I heard that this supports optimus natively .  How can I install this driver? Do I have to remove bumblebee and install it or install it along bumblebee?


Android Studio java.lang.NullPointerException when trying to add elements to the view

I have been trying to add relative layouts to a linear layout inside a scroll view in android-studio.   It kept giving me an error:  java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.LinearLayout.addView(android.view.View)' on a null object reference   I thought maybe I can't add it to the scroll view because of so many layouts. So I removed everything and created a small code like so:  public class ChildAccountsActivity extends AppCompatActivity {      @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.child_accounts_activity);          LinearLayout linearLayout = findViewById(R.id.accountHolder);          Button myButton = new Button(this);         myButton.setLayoutParams(new LinearLayout.LayoutParams(                 LinearLayout.LayoutParams.MATCH_PARENT,                 LinearLayout.LayoutParams.MATCH_PARENT));          linearLayout.addView(myButton);  <<--ERROR HERE }   Here I am just trying to add a button to the linear layout, but it keeps giving me the error mentioned above.  Any guidance will be appreciated and please keep in mind that I'm new to programming and very likely don't know what I'm doing. Thanks for your time :D


Admission into top engineering graduate programs with a GPA just below the cutoff

I'm applying for a master's degree at top graduate schools for robotics, such as MIT. However, I've heard that the recommended minimum GPA for these schools is 3.5. My GPA is actually 3.45. I know the supposed "cutoff" isn't rigid, but I'm worried because I don't have any publications either, although I have several years of highly relevant experience working in a number of research labs. With a difference of 0.05 points, will it be rounded to a 3.5 in the admissions reviewers' minds, or is this the final stroke that would send my application straight to the trash bin?


Safest way to remove Ubuntu from dual boot PC

I have a PC with Ubuntu and Windows 7. Now I am intending to remove Ubuntu from there. If I login from Windows and use a Partition tool to delete Ubuntu and reclaim its space, I am afraid it would affect booting because boot menu is GRUB.   How would one take care of the same? I do not have a Windows media because it came installed with the PC.


Why does Google play show a "no connection: retry" error?

Recently I bought a Spice MI 280 with Android 2.3.4, I downloaded apps from the Android Market like App2sd, Task killer, Soundhound etc.  A few days ago Android Market was upgraded to Google Play and when I try to open it it shows a no connection: retry error...although I can browse the net through Opera and uc browser without any difficulty.  When I open YouTube through Opera it shows the main page of the site, but then when I try to play a video it shows cannot play the video.  I have tried adjusting the current date, clearing data and caches etc. I've tried a factory data reset but its asking please input phone password. Any suggestions?


Are there rules for called shots in D&D 4e?

i'm DM to a 4th edition campaign. Been a DM for about 13 years through 2nd and 4th edition and never had to deal with this.  We have a kind of new player into the party, a rogue from PHB1. During combat he kept asking if he could attack the eye of the enemy (Young Blue Dragon) to disable him, or just rip off one of the wings.  Now i know we're in combat, and to get hit in the eye you just need to be very careless or the attacker has to come completely by surprise to achieve something like this.  I can't seem to fond any rule regarding this issue.  The rogue just accepted that he couldn't attack the dragon's eye reluctantly.  Now my question is: Is there any source material addressing this? For now i made a table rule:  If you want to attack a localized spot, the defender cannot know of your existence (invisibility, teleport into battle, etc).  The usual bonus apply, (combat advantage)  If you miss the attack, the defender gets a free opportunity attack with +2 power bonus (aiming and focusing in the attack would be something like range attack, hence combat advantage). This is to prevent possible abuse.  I want to know if this looks like a reasonable rule to deal with this kind of attacks. Or if someone here has more ideas.  Thank you


convergence of $\sum_{n=1}^{\infty} \frac{1}{\sqrt n + \sqrt{n+1}}$

I need to determine if the series  $$\sum_{n=1}^{\infty} \frac{1}{\sqrt n + \sqrt{n+1}}$$  converges or diverges.  My work so far:  Using the comparison test, $\frac{1}{\sqrt n + \sqrt{n+1}} < \frac{1}{\sqrt n } $ and $\frac {1}{\sqrt n }$ is a divergent series


At breakpoint, identifying return value from function

I have the following statement in C#:  if (func1() || func2()) {     ...   I have placed a breakpoint on the if statement.  After stepping through, I can see that the execution enters the then part of the if statement.  How can I tell which function caused the if statement to be satisfied (or if both functions returned true)?  Is it possible to see the return value from a function without first modifying the code and assigning the return value to an interim variable?  Update:  Per this question:   The Autos window shows the return values from the two functions.  In my case, func1 returned false, so func2 was called, which also returned false.


How should artwork be setup for T-shirt printing?

What does it mean to colour separate the artwork for T-Shirt printing? It is normally suggested to use Pantone colours for T-Shirt printing. Is it the Pantone Coated or the Pantone Uncoated? The Uncoated one has more subtle colours and we can't choose brighter shades if the design requires that. What is more appropriate for printing? Can we use gradients in T-Shirt printing or is it suggested to stick to flat colours only?   The reason for asking if gradients were ok was to use it as an option for this design:    I was considering it an option, as it will be difficult to colour separate since the textures are clip masked inside the lion.


Turn a string into a list of lines in python

Example:  string = """i like to program i need attention 12345 67890 abcdefghijkl mnopqrstuvwxyz""" string = function(string) print(string)           ["i like to program" ,"i need attention", "12345 67890", "abcdefghijkl mnopqrstuvwxyz"]      Note, i know about the split() function, i just want to know if there is any function that splits only lines and not spaces.


How do I backup data (SMS/contacts) from a device with a broken screen?

I just broke the screen of my (unrooted) Galaxy S.  How do I get back my SMS and contacts?   PS: I tried Kies but it won't detect my phone for some reason. (Kies works fine with another Galaxy I possess but not this one)


Why are conference papers so important in computer science (CS)?

From my understanding many CS conferences are highly selective and the papers are peer-reviewed. The CS field also seems to publish traditional journal articles. I do not understand the difference between the two and in particular I am curious about the advantages of having two different publication streams. The type of things I am curious about are:   What is the difference between a paper published in a top CS conference and a top specialist journal? Is one more prestigious than another and if so how do they line up? Why not just publish conference papers as a special issues of a journal?


Game Center saves my Clash of Clans account?

I going to sell my iPhone. I want to know if all my progress in Clash of Clans will be saved within Game Center so that I can recover everything when I buy a new iPhone and login again in Game Center.   Assume I am correctly logged in the Game Center with my Apple ID Achievements are visible in the Game Center app   I'm level 18 and have 790 trophies and I don't want to lose that progress.


So I saw this picture on my google+ feed and I immediately know why it wont work. But I'm having trouble explaining to myself and others exactly why. Without using anything overly complex, can anyone explain the flaw.  P.S. Please don't say it won't work because of the law of conservation of energy. I know it can't work, I want to know why this specific scenario won't work. Thanks for the help.


How do I configure the trusted host settings?

I have changed the Trusted Host Settings on my website where I currently installed Drupal beta 8.0 alpha version. But in the error report it is still saying that "Trusted Host Settings NOT ENABLED" . I have changed the code as follows.  // Before $settings['trusted_host_patterns'] = array(   '^www \ .example \ .com$', );     // After $settings['trusted_host_patterns'] = array(   '^www \ .technicalreply \ .com$', );   The error report is still saying that trusted host settings are not enable. What did I do wrong? How can I fix it?


Sci/Fantasy anthology published between the 1950s - 1970s, with "The Newt" and "The Hero Equation"

The collection included 'The Newt' and 'The Hero Equation'.  I am looking for the authors of these stories and the title of the anthology.  The Newt is about newts living inside people and the only way to remove them is for somebody else to declare "I don't believe you have a newt inside you".  The Hero Equation is about aliens who take over humans by having them perform music or artistic works. One human then shoots all the aliens in his quest to be a hero (even though the aliens were having the human produce beauty and art instead of destroying them).


Help me to visualise limit points of $S$.

Consider the ordered square $I^2,$ then the set $[0,1]\times [0,1]$ with the dictionary order. Let the general element of $I^2$ be denoted by $x\times y,$ where $x,y\in[0,1].$ The closure of the subset $$S=\{x\times\frac{3}{4}:0<a<x<b<1\}$$ in $I^2$ is  $(A)S\bigcup ((a,b]\times \{0\})\bigcup ([a,b)\times \{1\})$  $(B)S\bigcup ([a,b)\times \{0\})\bigcup ((a,b]\times \{1\})$  $(C)S\bigcup ((a,b)\times \{0\})\bigcup ((a,b)\times \{1\})$  $(D)S\bigcup ((a,b]\times \{0\})$  **My attempt:-  Case 1:-  $a\times b \notin S$. There is an open set containing $a \times b$ which does not intersect $S$(shown in the figure).   Case 2:-   $a\times b \in S$. There is an open set containing $a \times b$ which does not intersect $S\setminus \{a\times b\}$  So, none of the points is a limit point in $I^2$. But Options are different. Can you help me to visualize?


Is there a way to automatically unwrap my character? If not, is there a tutorial or something?


Why do I have to use MySQL from terminal only?

I managed to install MySQL on Ubuntu 20.04 from the terminal. Everything went perfectly. But why can't I access MySQL like any normal application, i.e., from the menu? The only way I can use it is from the terminal, which is quite uncomfortable. Is this the only way to use this application in Ubuntu? How can I open the normal MySQL window?


At what level do monsters cast cantrips?

A 9 HD Yuan-ti Pureblood can innately cast the poison spray cantrip 3 times per day. The monster description says the save is DC 12, but it does not go into damage. So does it do 1d12 or 2d12 damage?


When I try to sudo apt-get upgrade on my Ubuntu 16.04 I consistently get the following error:  Preconfiguring packages ... dpkg: error processing package mount (--configure): package is in a very bad inconsistent state; you should reinstall it before attempting configuration Errors were encountered while processing: mount E: Sub-process /usr/bin/dpkg returned an error code (1)   How can I solve this?


How to combine date from one field with time from another field - MS SQL Server

In an extract I am dealing with, I have 2 datetime columns. One column stores the dates and another the times as shown.  How can I query the table to combine these two fields into 1 column of type datetime?  Dates  2009-03-12 00:00:00.000 2009-03-26 00:00:00.000 2009-03-26 00:00:00.000   Times  1899-12-30 12:30:00.000 1899-12-30 10:00:00.000 1899-12-30 10:00:00.000


The component type of a list turns to be String which actually is declared to be Duration

I have a customized object including fields: private List<Duration> durations; private Duration single;  When debugging, I evaluate the following expression and the result is java.lang.String which is different from the declared type. Why? durations.get(0).getClass()  As a comparison, the class of single is Duration, same as declared type. If any help, I got the data deserialized from MySQL.


Does Foreign Key improve query performance?

Suppose I have 2 tables, Products and ProductCategories. Both tables have relationship on CategoryId. And this is the query.  SELECT p.ProductId, p.Name, c.CategoryId, c.Name AS Category FROM Products p INNER JOIN ProductCategories c ON p.CategoryId = c.CategoryId WHERE c.CategoryId = 1;   When I create execution plan, table ProductCategories performs cluster index seek, which is as expectation. But for table Products, it performs cluster index scan, which make me doubt. Why FK does not help improve query performance?  So I have to create index on Products.CategoryId. When I create execution plan again, both tables perform index seek. And estimated subtree cost is reduced a lot.  My questions are:   Beside FK helps on relationship constraint, does it have any other usefulness? Does it improve query performance? Should I create index on all FK columns (liked Products.CategoryId) in all tables?


Is "memorise" or "memorize" used more often around the world?    Curious which is more popular, memorise or memorize.


I know that RAM disks are fast, faster than any disk, but they lose their contents on a shutdown of the operating system. The capacity is limited to the RAM. Is there a useful implementation on a new 64-bit Windows 2008 server?


Refferences are not shown in slide. Why?

MWE  \documentclass[usenames,dvipsnames]{beamer} \usepackage{xcolor} \usepackage{tikz} \usepackage{listings} \usepackage{algpseudocode} \usefonttheme[onlymath]{serif} \usepackage{amsmath} \usetheme{Madrid}   \algnewcommand\algorithmicinput{\textbf{Input:}} \algnewcommand\algorithmicoutput{\textbf{Output:}} \algnewcommand\algorithmicinitialization{\textbf{Initialize:}} \algnewcommand\Input{\item[\algorithmicinput]}% \algnewcommand\Output{\item[\algorithmicoutput]}% \algnewcommand\Initialize{\item[\algorithmicinitialization]}%   \logo{%   \includegraphics[width=1cm,height=1.5cm,keepaspectratio]{example-image-a}%   \hspace{\dimexpr\paperwidth-2cm-5pt}%   \includegraphics[width=1cm,height=1cm,keepaspectratio]{example-image-a}% } \begin{document}   \title{Resource  Allocation in Cloud Radio Access Network}   \author[alhelal \& Jobayed Ullah]{   \parbox{2.5cm}{ \centering Md.Al-Helal\\Roll:SH-51}\hspace{1cm} \parbox{2.5cm}{ {\centering Jobayed Ullah\\Roll:EK-107}} } \institute[CSEDU]{Computer Science \& Engineering\\CSEDU} \date{February 25, 2018} \begin{frame}   \maketitle \end{frame} \begin{frame}   \frametitle{Background}   Traditional cellular, or Radio Access Networks (RAN), consist of many standalone base stations (BTS) have some limitations-   \begin{itemize}     \item Each BTS is costly to build and operate.     \item When more BTS are added to a system to improve its capacity, interference among BTS is more severe as BTS are closer to each other.     \item Because users are mobile, the traffic of each BTS fluctuates (called 'tide effect'), and as a result, the average utilization rate of individual BTS is pretty low.   \end{itemize} \end{frame} \begin{frame}   \frametitle{Architechture Overview}   \includegraphics[scale=0.3]{example-image-b} \end{frame} \begin{frame}   \frametitle{Architechture Overview}   \begin{itemize}     \item Large scale centralized deployment: Allows hundreds of thousands of RRHs to connect to a centralized BBU pool.     \item Native support to Collaborative Radio technologies: Any BBU can talk with any other BBU within the BBU pool with very high bandwidth (10Gbit/s and above) and low latency(10us level).     \item  C-RAN BBU pool is built on open hardware, like x86/ARM CPU based servers. Real-time virtualization makes sure the resources in the pool can be allocated dynamically to base station software stacks, say 4G/3G/2G function modules from different vendors according to network load.\cite{Gill}   \end{itemize} \end{frame} \begin{frame} \bibliography{references} \bibliographystyle{plain}  \end{frame} \begin{frame}{\phantom{}}  % \color{Brown}   \color{Sepia}   \centering \Huge\textbf{Thank You} \end{frame} \end{document}   and references.bib is    @ARTICLE{Gill,    author    = "A. E. Gill",    title     = "Some Simple Solutions for Heat-Induced Tropical Circulation",    journal   = "Quart. J. R. Met. Soc.",    volume    = 106,    year      = 1980,    pages     = "447--462", } @InProceedings{conf/wiopt/AlabbasiC17,   title =   "Delay-aware green hybrid CRAN",   author =  "Abdulrahman Alabbasi and Cicek Cavdar",   publisher =   "IEEE",   year =    "2017",   bibdate = "2017-07-06",   bibsource =   "DBLP,          http://dblp.uni-trier.de/https://doi.org/10.23919/WIOPT.2017.7959942;          DBLP,          http://dblp.uni-trier.de/db/conf/wiopt/wiopt2017.html#AlabbasiC17",   booktitle =   "WiOpt",   crossref =    "conf/wiopt/2017",   ISBN =    "978-3-9018-8290-6",   pages =   "1--7",   URL =     "http://ieeexplore.ieee.org/xpl/mostRecentIssue.jsp?punumber=7951216", }   output shows


This is an exercise of an old test of functional analysis Let $p\in[1,\infty)$ and $(y_n)$ a numerical sequence such that $\displaystyle\sum_{n=1}^\infty x_n y_n<\infty$ for all $(x_n)\in\ell^p$. Show that $(y_n)\in\ell^q$ with $\frac{1}{p}+\frac{1}{q}=1$. Hint: Put $\varphi_j(x)=\displaystyle\sum_{n=1}^j x_n y_n$ . From the hint I can get the $\varphi_j$ are in $(\ell^p)^*=\ell^q$ and converges to $\varphi(x)=\displaystyle\sum_{n=1}^\infty x_n y_n<\infty$ and $\varphi$ also lies on $\ell^q$ but i can't say why $(y_n)\in\ell^q$. Can anyone help me?


Differentiate if an object is of type DateTime or Nullable (DateTime?)

How can I differentiate if an object is of type DateTime or NullableDateTime> (DateTime?)? I understand why the following code does not work, but can you help me with a solution that does?     public void Test()     {         DateTime? dateTime1 = new DateTime(2020, 1, 1);         DateTime dateTime2 = new DateTime(2020, 1, 1);         DoSomething(dateTime1);         DoSomething(dateTime2);     }      public void DoSomething(object value)     {         if (value is DateTime?)         {             //Do something         }         if (value is DateTime)         {             //Do something else         }     }


What car should I buy or which car should I buy, what's the most correct one


It gives me this   E:Malformed line 3 in source list /etc/apt/sources.list (dist parse) E:The list of sources could not be read. E:The package lists or status file could not be parsed or opened.