In iOS 9.0.1, I can no longer use the control center play/pause button to force play Youtube in the background while open in Safari. I can see the name of the video, but if i click "play" the button flashes white, but doesn't change to "pause" and the video doesn't play. Why is this happening and is there any way to fix it?


Spotlight is disabled but "._file_name" still get created on external drives that I plug in

I want to prevent my MAC from creating ._file_name files on external memory drives that I plug into it. I think I've turned off Spotlight completely. However, such files keep getting created. How to fix that?


Wireless and Bluetooth not working on Lenovo-G550 Ubuntu 19.10

I installed 19.10 on Lenovo G550 but no wireless icon and on settings Bluetooth is not active. I did: sudo nano /etc/modprobe.d/blacklist.conf  blacklist Lenovo-G550 But to no avail  lspci -nnk | grep -iA3 net; lsusb; rfkill list 04:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM4312 802.11b/g LP-PHY [14e4:4315] (rev 01)     Subsystem: Broadcom Inc. and subsidiaries BCM4312 802.11b/g LP-PHY [14e4:04b5]     Kernel driver in use: b43-pci-bridge     Kernel modules: ssb 07:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller [10ec:8136] (rev 02)     Subsystem: Lenovo RTL810xE PCI Express Fast Ethernet controller [17aa:392e]     Kernel driver in use: r8169     Kernel modules: r8169 Bus 002 Device 004: ID 090c:37b1 Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.) Lenovo EasyCamera Bus 002 Device 006: ID 059f:0c41 LaCie, Ltd LaCie Hard Drive USB Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 008 Device 002: ID 1bcf:0535 Sunplus Innovation Technology Inc. 2.4GHz 2way RF Mouse Receiver Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 006 Device 002: ID 1a2c:0b23 China Resource Semico Co., Ltd USB Keyboard Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub 0: ideapad_wlan: Wireless LAN     Soft blocked: no     Hard blocked: no   Any help please TIA Kemal


What is the effect of water 'climbing' over a cup via a wet string?

I have noticed (with tea bags, etc) that if you get the whole string wet, and you have one end inside the cup and the other end below the level of the liquid (outside), the water drains down the string outside the cup at a slow pace... Seeming to defy gravity and move its way up the string until it gets to the cup edge...  What is this effect called, and do we observe it in nature at a larger scale somewhere?


Categorize age ranges and display in one column

I want to see the data as follows  Member   Age  Category Test1    25    Under 30 Test2    55    51-60 Test3    67    Above 60   I have used the below query (from an answer to my ) to calculate the age from DOB and current date and then categorize each age under one name.   This query is creating separate columns, instead I want to see all the categories under one column so that I can group this category column  WITH AgeData as ( SELECT     Username,     Birthdate,     DATEDIFF(YEAR, birthdate, GETDATE()) AS AGE FROM @Table) SELECT     Username,     Birthdate,     Age,     CASE         WHEN AGE < 30 THEN 1         ELSE 0     END AS 'Under 30',     CASE         WHEN AGE BETWEEN 31 AND 40 THEN 1         ELSE 0     END AS '31 - 40',     CASE         WHEN AGE BETWEEN 41 AND 50 THEN 1         ELSE 0     END AS '41 - 50',     CASE         WHEN AGE > 50 THEN 1         ELSE 0     END AS 'Over 50' FROM AgeData


How can I get the executable file folder without the .exe name?

How can I make a string variable containing path to my win-app executable folder? I know that there's the simple command Application.ExecutablePath which returns all the path including the .exe name, but I need that path without the .exe name.


How to convert (or transform) from one range to another?

I have score ranges min score = 40 and max score = 60. I have same gpa ranges too 1.00 - 1.99.  Which formula I can use to calculate the gpa.  Like If I entered 45 then it should print 1.25.  Range of score and grade can be different.  P.S. I am a web developer, and I am a little poor in Math. I need to apply this formula in my coding.


What is difference between group and user

I am totally new to Ubuntu. I just start to learn about Ubuntu. So please help me to learn about Ubuntu.


How to take ownership for ntfs mounted drive

So new user here, decided to change my server to ubuntu 20.04. So far i like it a lot. I'm running into an issue tho, i have multiple hard drives with tb of data all in ntfs. Don't really want to have to convert them, i figured out how to mount them automatically on startup but i can't get the right to do anything but read on them. Tried all i could find by myself on google, chmod, chown, logged as root to do those too. Mostly tried what's in here ---->  I'm out of ideas. Is that possible somehow? Thanks for the help!!!


I purchased an app on my iPhone and the app is also on Mac

When I looked in the purchased section in the Mac App Store the app was not there. Am I doing something wrong or do app have to be purchased on both iOS App Store and Mac App Store?


How do I find the decimal value of a trig function?

Let's say I need the decimal value of $\sin/\cos/\tan$ of $33°6'13''$, or just any non-standard value. How do I do that without using a calculator?


Frequent unexplained bleeping noises on Win 7

For some time, I've been getting random bleeping noises on my Windows 7 machine - the same noise as when the User Access Control prompt comes up (where it asks you for permission to do something). It happens even when I've closed all programs that have any sort of alerts or notifications to them. I've posted a screenshot below of all programs running, including those in the background in the taskbar. It actually bleeped right when I took this screenshot. It happens absence of any noticeable alert, change, notification, etc.   If anyone knows what might be causing it, that would be great, as it is quite annoying.


how to evaluate logistic regression given binary labels

I've encountered an interview question:  Given several binary labels, each label represents a user will click a certain advertisement or not, we have a trained logistic model and its predicted probability of a user clicking the advertisement. How to evaluate this trained  logistic model?  I answered by using different thresholds on the predicted probability, we can easily plot the ROC curve and then area under the curve should be a measure.  The interviewer said that this is Okay, but can you give me other methods? I'm wondering how to answer this question. By the way, I failed at last.            click or not     predicted user1        1               0.8 user2        1               0.6 user3        0               0.4 ...         ...              ...   usern        0               0.3


DROP PROCEDURE IF EXISTS proc_x; DELIMITER # CREATE DEFINER=`root`@`localhost`  PROCEDURE proc_x(sequel CHAR) proc_main:BEGIN SET @SQL = CONCAT(@sequel); PREPARE stmt FROM @SQL; EXECUTE stmt; DEALLOCATE PREPARE stmt; END proc_main #   Above is a syntax for creating stored procedure in my mysql database. When I execute following statement I get error.  CALL proc_x("INSERT  INTO tbl_rec(id,name,brnachID) values(10,'Krunal',07)");      Error : ERROR 1064 (42000) at line 93: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1   Can anyone help me to solve it?  Currently I'm using Mysql on UNIX.


Prove that none of $\{11, 111, 1111,\dots \}$ is the perfect square of an integer

Please help me with solving this : prove that none of $\{11, 111, 1111 \ldots \}$ is the square of any $x\in\mathbb{Z}$ (that is, there is no $x\in\mathbb{Z}$ such that $x^2\in\{11, 111, 1111, \ldots\}$).


<Rule>     <PointSymbolizer>      <Graphic>        <ExternalGraphic>          <OnlineResource            xlink:type="simple"            xlink:href="glass.png" />          <Format>image/png</Format>        </ExternalGraphic>        <Size>28</Size>      </Graphic>    </PointSymbolizer> </Rule>   I want to use external graphics on my layers. I styled with geoserver admin panel. But external graphics are not working. I put my image into /var/www/geoserver/data/styles folder.  I tried some href options but not worked.   xlink:href="glass.png" xlink:href="file:///glass.png" xlink:href="/var/www/geoserver/glass.png"   I think another issue.


Would the word, debris, be singular, plural, or either--conditionally?

My essay speaks of de-orbit "debris" falling to Earth's surface. Like as with the shuttle, it will be strewn in parts across the continent. Follow-on reference to the debris (items) would seem, in the strictest (collective-singular) sense for instance, to require the singular pronoun, it; but the word, they, seems more intuitive...so as not to imply that the debris item(s) all or for the most part would be landing upon one and the same ground location. Your thoughts?


A couple of basic questions about prime numbers

Does there exist a general algebraic formula for evaluating the $k^{th}$ consecutive prime number (in terms of $k$) when the set of prime numbers is arranged in an ascending order? Does there exist a general algebraic formula (in terms of $n$) for evaluating the largest prime number $p$ less than or equal to any given natural number, $n$?


Will files created in windows open in Ubuntu?

I'm currently considering switching totally to Ubuntu. The only thing holding me back is whether or not my photos, music, word processor, and other document files will open in Ubuntu. For example, I have done important files I created in open office on my windows computer. Will they open on open office in Ubuntu? Will my images and photos be displayed the same as they did in windows?  I apologize if this question has been answered previously. I searched, but was unable to located any discussion that addressed my specific question. I am a complete novice when it comes to Linux, but I look to learning more.  Thanks.


In class the other day we were talking about a double exponential RV $X$ with a pdf $f(x)=\frac{1}{2}e^{-|x|}$ for $-\infty<x<\infty$. The professor noted that the mgf was $M(t)=\frac{1}{1-t^2}$ for $|t|<1$. However, I'm trying to verify this now and I keep getting $M(t)=\frac{1}{2\pm 2t}$. Am I incorrect? I'm using the definition of mgf, where $M(t)=E[e^{tx}]$.


Show Laplace operator is rotationally invariant

I'm trying to show the Laplace operator is rotationally invariant. Essentially this boils down to showing $$\frac{\partial^2 f}{\partial x^2} + \frac{\partial^2 f}{\partial y^2} = \frac{\partial^2 f}{\partial u^2} + \frac{\partial^2 f}{\partial v^2}$$  where $$u = x \cos \theta + y \sin \theta$$ $$v = -x \sin \theta + y \cos \theta$$  I think I'm on the right track by noting that  $$\frac{\partial^2 f}{\partial x^2} = \frac{\partial}{\partial x}\left(\frac{\partial f}{\partial x}\right) = \frac{\partial}{\partial u}\left(\frac{\partial f}{\partial x}\right)\frac{\partial u}{\partial x} + \frac{\partial}{\partial v}\left(\frac{\partial f}{\partial x}\right)\frac{\partial v}{\partial x}$$ but I'm having difficulty reaching an end game where I show $$\frac{\partial^2 f}{\partial x^2} + \frac{\partial^2 f}{\partial y^2} = \frac{\partial^2 f}{\partial u^2}({\sin}^2 \theta + {\cos}^2 \theta) + \frac{\partial^2 f}{\partial v^2}({\sin}^2 \theta + {\cos}^2 \theta)$$


Reinhardt's shield blocks most enemy projectiles and bullets but there are certain attacks which can go right through it. Which attacks ignore Reinhardt's shield?


Can't figure out how to change password on Pokémon go. Any help would be great. Thank you .


Moving tfrom Shimano 9- to Shimano 10- speed

I'm thinking of changing the 9-speed Tiagra rear mech on one of my (road) bikes to something, still Shimano, but 10-speed.  The obvious replacements I'll need are cassette, right-shifter and chain. But I reckon because of the narrower chain I'm also looking at a new chainset and rear derailleur. However I think the front derailleur and left-shifter should be safe (still keeping the front mech the same). Ditto the bb, regardless of whether I need a new chainset  Has anyone actually done this conversion and is able to confirm (or put me right)?  Thanks  Update  Decided in the end that going from 9- to 10- was too much to spend all in one go. But I used a service as an excuse to change the cassette (to a 9-speed ultegra) and the chain (dura ace) at quite minimal cost. Can upgrade other parts as and when, although I'm basically looking at Shim's 6500 range here so all quite dated now.


how to create a copy of json object in javascript instead of a reference

i have testdata.js file with json test data as below:  testdata.js file:  module.exports =    {         createHost:         {          name : "System-001",         description: "Creating System",      }   }  In another test, I am trying to create a variable called testcase1 with the above test data. Changing the property value in testcase1, changes the value in the testdata.js file json object.  it("Create a host", function(){ var testcase1 = testdata.createHost;  testcase1.name="sys-002";  console.log(testcase1.name); console.log(testdata.createHost.name); });   Response: sys-002 sys-002  My requirement is to create a copy of testdata instead of creating a reference. How can I do this?


Can there be an onto homomorphism from a ring without unity to a ring with unity?

Let $R$ be a ring without a unit element and $R'$ be a (non trivial) ring with a unit element. Can there be an onto homomorphism from $R$ to $R'$?  Some observations: There cannot be an isomorphism, because then the element of $R$ which maps to $1$ in $R'$ must be a unit element in $R$. Also, we cannot have an onto homomorphism from a ring with unity to a ring without unity as $f(1)$ is going to be a unit element.  Edit: I am defining a ring homomorphism as a function $ \phi: R \rightarrow R'$ such that for all $a,b$ in $R$, $$\phi(a+b) = \phi(a) + \phi(b) $$ $$\phi(ab) = \phi(a)\phi(b)$$


Creating centreline for every polygon in submarine canyon database using ArcGIS for Desktop Basic?

I have the Basic license for ArcGIS and so I cannot use the collapse dual lines to centreline tool or the river bathymetry toolset by ESSA as they both need an advanced license.   Any idea how I can find the centreline or thalweg of the canyons using another tool which works in the standard version of ArcGIS please?


Where is, or what happened to, the absent Ocean?

Having just attended a showing of Ocean's Eight, I couldn't help but note the absence of Danny Ocean from the film.      His sister, Debbie Ocean, visits a crypt, on two occasions, with his name featured prominently. These visits draw our attention pointedly to his character, and his absence from the film.     Is there any information as to why Danny is absent, and what might have happened? I don't recall anything from Ocean's 13 that might explain it, especially given the latter of the dates that were shown.  I half remember Debbie saying, to paraphrase:      "I hope you're in there," while standing in front of the crypt, but I may have misheard or misremembered.   Which, given Danny's chosen occupation, openly implies a lack of certainty or finality; but is it an open question? Or were there any tidbits that might offer confirmation?


I have a custom object that I want to set a unique key based on on lookup values. When I tried to create a workflow update I was blowing past the size limit so I developed it into a trigger and it seems to be working as intended.   I thought since I am already developing a field update trigger, I might as well add on a default name method so everything is contained into one file as opposed to having workflow and triggers updating the record.   When I introduced this method it returns "null null".   public static void setRecordName(List<Responsible_Party__c> newList) {     for(Responsible_Party__c r : newList)     {         r.Name = r.Practice__r.Name + ' ' + r.User__r.Name;     } }   Where practice is a lookup to another custom object and user is a lookup to the user object.   If I change the values to just use the field:  public static void setRecordName(List<Responsible_Party__c> newList) {     for(Responsible_Party__c r : newList)     {         r.Name = r.Practice__c + ' ' + r.User__c;     } }   I get "a1Gg00000049v9xEAA 005A0000006ykwnIAA". How can I get the names to display and not null?


windows 10 -- something is disabling my wireless capabilty when ethernet connected

when connected to ethernet my wireless automatically disables.  i try to re-enable it but it quickly disables again.  went to bios and the power management setting for this is unchecked, so, it's not the issue.  i want wireless on at the same time to connect my wireless hard drive and wireless printer.  how to keep the wireless enabled when connected through ethernet? this is for WINDOWS 10 ONLY not 7


AMD GPU Material in "material preview mode" and "rendered mode", is entirely gray as background. Only outline is displayed

I don't know why but now, when i go in material preview or rendered (in solid mode it works fine), my object is entirely gray, or invisible idk, because it has the same color of the background. I've been working for days on this project without having this issue, it suddenly showed up. I tried opening other old projects and suddenly they all do the same so i guess it is some blender program setting that applies for all the projects, but idk how it happened cuz i didn't change anything :/, anyone got any tips?


I have a query where I chain two columns. Why does the alias not work in the GROUP BY clause but in ORDER BY clause, it does work? How can I write the select correctly?  SELECT   KOS_VER_ID        AS "Vertrag"   , WHR_ISO_3_CODE  AS "Waehrung"   , KOS_KOA_ST_KZN || '  -  ' || ST_LANGBEZ_EN as "Kostenart"   , SUM (KOS_BETRAG) AS "Summe pro KOA" FROM   KOSTEN   , WAEHRUNG   , SCHLUESSELTABELLE WHERE    KOSTEN.KOS_VERHI_WHR_ID = WAEHRUNG.WHR_ISO_ID   AND KOSTEN.KOS_KOA_ST_KZN = SCHLUESSELTABELLE.ST_ID   AND KOS_VER_ID in (2509, 2510, 2511) GROUP BY   KOS_VER_ID   , WHR_ISO_3_CODE   , KOS_KOA_ST_KZN || '  -  ' || ST_LANGBEZ_EN ORDER BY   "Vertrag"   , "Kostenart" ;


I followed along with a tutorial to texture the earth in cycles. Everything worked well and looked nice until I changed the sample rate. The planes I used for lighting turned black and my renders are without lights.   I tried to add a normal light, no better results. Is there a setting that I could have enabled that could be the cause of this?  Here you can see a screenshot of the rendered view with the light emitting plane.


How would one write object-oriented code in C?

What are some ways to write object-oriented code in C? Especially with regard to polymorphism.    See also this Stack Overflow question .


Switching between 2 power supplies without outage

I have two in voltage about equal power sources, a built in 12V and an external solar+battery backed up stable 12V source.  I looking for a simple solution to switch immediately to the other one because my circuit contains a raspberry pi 2 as well what I would not like to reboot.  There can be only 2 situations for my circuit:  1, Solar power source comes on (the main is force switched off)  2, Solar power goes out (the circuit is switching back to main)  Also I would like to completely turn off the main adapter with a relay when the device operates from solar not to waste power.  I realize this is possible by using a simple 12V relay in default close position connected to the solar input only and using 2 reverse current protections on both lines but would a big cap on the supply end be sufficient enough to keep the device operation for a second when the power switching happens?


Exporting from Inkscape to LaTeX - via TikZ

I know only the very basics of TikZ, having only used it to produce a pretty flow chart for one of my documents. I recently learned that you can use Inkscape and export to TikZ.  What are the limitations of the Inkscape->TikZ workflow? Is there some compelling reason to take the time to learn TikZ (which I'm told has a fairly steep learning curve) rather than simply exporting to TikZ from Inkscape?


How is sun's atmosphere (corona) hotter than the surface itself?

Through some research online, I found out that the sun's corona is hotter than it's surface. How's that even possible?? Is the sun releasing it's heat from the surface!!! Need a complete answer.


Convergence of series $\sum_{n=1}^\infty\sin(n)\cdot\sin(1/n)$

I was doing math and I came across this series     $$\sum_{n=1}^\infty\sin n\cdot\sin\left(\dfrac1n\right)$$   I managed to prove that this series is convergent, but I was wondering what value the series converges to $?$ I've put it on Scientific workplace and got a value of around $0.92 $ But I have no idea how to get there.


How many elements of order 5 are there in $S_7$

This seems relatively simple, since the lowest common multiple of the length of the disjoint cycles must be the order of the permutation. Writing this I got: $$(5)(1)(1)$$ Is the only cycle in $S_7$ whose lowest common multiple that I could find. The number of ways to write this are $\frac{7!}{5}$, but my book is instead doing this: $$\frac{7!}{2!\cdot 5}$$ Why is this the right answer for the combinations? And why dividing by $2!$? It seems arbitrary to me, could anyone englighten me on this?


I'm writing an algorithm for plotting mathematical functions. I'm new to C++ and programming in general and thus do not know how to implement this properly.  In order to do this, I naively plot the points satisfying the mathematical condition into a bitmap(ppm file) but when I do this and plot a parabola(y*y =4*a*x), only a few points are plotted in the graph. the coordinate axes and straight lines(y=mx+c) are rendered fine.  Here's my code: I draw to a ppm file  int main() {      int width = 512;     int height = 512;     std::ofstream ofs("plot.ppm", std::ios::out);     ofs << "P3\n" << width << " " << height << "\n255\n";     for (int h = 0;h< height;h++) {         for (int w = 0; w < width; w++) {             vec3f col;             float x = ((float)w - 256);             float y = -((float)h - 256);             if (h == 256||w==256)col = vec3f(0, 0, 0);//axes             else col = vec3f(1,1,1);//background             if (y==x)col = vec3f(0, 0, 0);//straight line             if ((y*y) == (4*16*x))col=vec3f(1, 0, 0);//parabola             int r = int(255.99 * col.x);             int g = int(255.99 * col.y);             int b = int(255.99 * col.z);              ofs << r << " " << g << " " << b << "\n";         }     }     ofs.close(); }    This program plots only a few points which, upon checking the debugger, I found out to be : (0,0),(225,120),(196,112),(169,104),(144,96) and so on [these are the coordinates after origin is translated to (256,256), the center of the image]  I want to know why this is happening and how to fix this.  here's the output image plot.ppm :


How do you validate a column only if it's new item being added?

I recently added validation to a field which works great.  =[Arrival Date]>=TODAY()-5   However, I ran into an issue when an employee is editing an older item to update the "Status" but it's not letting him save because it has an "Arrival Date" of like 3 months ago.   What I would like to do is validate ONLY new items because we want to only enter items within 5 days of arrival, otherwise we don't accept them.  I thought formula below would work because new items don't have an ID yet, but it doesn't seem to like it:  =IF([ID]="", [Arrival Date]>=TODAY()-5, [Arrival Data])   I have a feeling that there is a better concept out there, either way your help is greatly appreciated.


Google Sheet Importhtml from website but I could not get a data

I would like to get NAV from a website below but I could not get a data.  =importhtml("bblam.co.th/en/products/mutual-funds/","table",1)


Convergence in distribution of maximum of exponentially distributed random variables

I have to solve the following homework problem:     Let $X_{1}, \ldots ,X_{n}$ be i.i.d. random variables with $X_{1}\sim \operatorname{Exp}(1)$ and let $X$ have distribution function $F(x)=1-e^{-e^{-x}}$. Show that $\max_{1 \leq k \leq n} X_{k} - \log(n)$ converges to $X$ in distribution.   What I have done so far:  We can compute that $$\mathbb{P}\Big(\max_{1 \leq k \leq n} X_{k} \leq x\Big)=\mathbb{P}(X_{1}\leq x)^{n}=(1-e^{-x})^{n}.$$ Substituting $x+\log(n)$ for $x$, it follows that   $$\mathbb{P}\Big(\max_{1 \leq k \leq n} X_{k} \leq x + \log(n)\Big)= \big(1-e^{-x-\log(n)}\big)^{n}.$$  This does not converge to $1-e^{-e^{-x}}$ as $n$ goes to infinity. Where is my mistake?


In python, I have a class that contains a list as one of its members.  class fan_details:     name = ""     previous_addresses = []     age = 0   fans = []  x.name = "Joe Blow" x.previous_address.append("4, seaview rd") x.age = 42; fans.append(x)  x.previous_address.pop(0)  x.name = "Jimmy Flag" x.previous_address.append("21, Main Street") x.age = 33; fans.append(x)  print fans[0].previous_address print fans[1].previous_address   The two last print statements would print out "21, Main Street". It looks like the append() is like a pointer in C as the fans[0].previous address is the same as fans[1].previous address.  Is there a way of keeping fans[0].previous_address to "4, seaview rd"?  Please bear with me as I am a noob in Python.  Thanks in advance.


When applying a force outside of the center of mass of the body, the body will get both linear and angular momentum. Right?  Does the linear velocity from this force equal to the linear velocity from the same force, which is applied on the center of mass?  $$v_{\text{center}} = v_{\text{non-center}}\quad\text{? (no vectors)}$$  If it does: How is it that the energy applied to the system is equal? In one we have both rotation and linear movement, and in the other just linear movement.


Can anyone explain IEnumerable and IEnumerator to me? For example, when to use it over foreach? what's the difference between IEnumerable and IEnumerator? Why do we need to use it?


I have written a java program to read lines from an xml using buffered reader. This xml contains questions, multiple choice and answers. These questions, choices, answers are stored in List<String>. While presenting these questions to the user, the program requires List<Question>. I clearly understand that a list of String type cannot be copied into list of Question type. So, how do I do this? and what concept am I missing?  EDIT:  I think List<Integer> to List<String> or viz., is different to my question because .toString() and .parseInt() methods exist.


How can I calculate how many equivalence relations can be defined on a given set?  For example:     How many possible equivalence relations can be defined on S =   {a,b,c,d}?


Mean differences between a population and its subsamples

We would like to perform a statistical test to assess that a subsample of a global population has significantly a different mean than the global population. In this context, we are convinced that a statistical test where the null hypothesis H_0 is {means are equal} is what we would like to perform.  To know more about our samples:   the whole population contains more than 60000 values, it passed Gaussian testing and can be considered Gaussian. the subpopulation contains less than 1000 samples. Based on some criteria that we will not discuss here this subpopulation is varying, but most of the time it can also be considered Gaussian. Let us assume that this subpopulation is Gaussian.   For now on, we did not change the variances of our samples but we could divide the global population results by its standard deviation in order to achieve normalization.  We hesitate between the three following tests:   One sample T-Test. Two sample T-Test.  We have absolutely no knowledge that our subpopulation and the global population have equal variance. Practice showed that they have not. However, "equal variances" is one of the t-Tests assumptions see .    Welsh Tests looks more appropriate but the independence of the sample is not verified as well. The subpopulation and globalpopulation are by definition dependent. Should we remove our subpopulation from the global population in order to have non overlapping samples?   Among these three tests which one is recommended? Is there a better test in the litterature for what we are trying to achieve?


Decrypt authenticated cipher while still encrypting

Normal AES-GCM generates an authentication tag at the end of encryption. I want to decrypt it while it is still being encrypted. This would be useful to send, encrypt, receive and decrypt a large file (for example) in one go.  This would also be useful for other things like for video streams or encrypted calls. How could I do that? Switching to CBC seems like a bad idea.


Is it possible to multiple a real number by integer, so that the factional part is low as possible

Given a real number $x$, and a real number $\epsilon>0$ arbitrary small as possible, can we find an integer $n$ such that $|nx-\left \lfloor{xn}\right \rfloor |<\epsilon$ or or $|nx-\left \lceil{xn}\right \rceil|<\epsilon$. ? and if so- can we find either an exact number $n=f(x,\epsilon)$ or even an upper bound over $n$?  Edit:  proved that such $n$ exists. However, I wish to know any upper bound\exact formula for $n$ :)   I know that the above is true by replacing the above constrain by $|nx-\left \lfloor{xn}\right \rfloor |<\epsilon\cdot n$. This follows simply as for each irrational $x$ number there is a series of rational numbers converging to $x$. However, I wish to prove\disprove a more generalized statement.


Is there a map of package names across the different package management systems?

I have amassed a small collection of *nix boxes (Fedora, Ubuntu, CentOS and Puppy) and there are a couple of projects I'm considering that I need to install additional libraries. Specifically, this OpenCV stuff:   However, his instructions are for Ubuntu, using apt-get, and I want to do the same on CentOS which uses "yum". So is there some place that maps packages across package managers? I tried this on Fedora:  sudo yum install build-essential libgtk2.0-dev libjpeg62-dev libtiff4-dev libjasper-dev libopenexr-dev cmake python-dev python-numpy libtbb-dev libeigen2-dev yasm libfaac-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev   There are a few hits, but a lot of "No package xxxx available". So, I'm hoping there is a place that shows what the package names are in what package manager.


Is there a culturally-universal symbol to represent religion or a place of worship?  I would like to avoid having an icon containing multiple religious symbols because that opens up a whole mess of problems and which symbols to show would depend a lot on the cultural of the viewer.


My credit card due date is May 4th and the closing date is May 7th. I have paid statement balance in full today, so it's early than the due date. But I would like to continue purchase through this credit card.  Do I still need to pay this part of statement balance before the due date and if not will I be charged interest fees?


How do you explain the condition under which a simple OLS regression model can be used to yield the causal effect of a treatment?

So, this is a question from an econometric tutorial and I am simply confused (and nervous) about this question. Is an assumption the same as a condition? What kind of example can I give that best explains this?


Generating all Pythagorean triplets for given Hypotenuse

can anybody help me out to find all  Pythagorean triplet when Hypotenuse is given? for example 10 is given i need (10,6,8)  ,and not needed such triplet (10,24,26) as 10 is not Hypotenuse for this triplet!


Ubuntu 20.10 Network issue in ubuntu software store

My ubuntu software store is not loading it just showing dots even if it loads then it almost takes 30-40 minutes to load the page. The only way I can install the app is through the terminal and I'm a new user in Linux. Even sometimes the browser is saying no internet connection or DNS problem. Also before installing 20.10 I installed 20.04 there my connection speed was very bad 2-3mbps I'm not understanding is it an ubuntu software problem or my drivers problem, because in windows the speed is okay.


Drawing and labeling a triangle for a demonstration for the Law of Cosines

I have provided the code for a triangle having vertices A, B, and C. The lengths of the sides are to be labeled a, b, and c.  The altitude of the triangle is to be drawn as a dashed line segment from A to line segment BC, the foot of the altitude is to be labeled P, the height is to be labeled h, and a right angle mark is to be put at the foot.  The length of PC is to be labeled x, and the length of PB is to be labeled b-x, and these labels are to be inside the triangle.  There are now two smaller triangles that are similar to each other.  One pair of angles that have equal measure are to be labeled with an arc having a "peg" through it; the other pair of angles that have equal measure are to be labeled with an arc having two "pegs" through it.  \documentclass[10pt]{amsart} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsthm} \usepackage{mathtools,array} \usepackage{tikz}  \tikzset{ mydot/.style={   fill,   circle,   inner sep=1.5pt   } }  \begin{document}   \begin{tikzpicture}[>=latex]  % the coordinates of the vertices \coordinate (C) at (0,0); \coordinate (A) at (100:4cm); \coordinate (B) at (20:5cm);  % the edges of the triangle \draw (C) -- (A) -- (B) -- cycle;  % labelling the vertices \node[mydot,label={left:$A$}] at (A) {}; \node[mydot,label={right:$B$}] at (B) {}; \node[mydot,label={below left:$C$}] at (C) {};  \end{tikzpicture}  \end{document}


Data plans in Germany that can also can be used elsewhere in Europe

I am planning to spend around 100 days in Leipzig, Germany, this summer. I want to get a prepaid data plan. 1 GB should be more than enough.  My Questions are:    Which service providers have suitable data plans? Prices? Are there service providers that offer support all over Europe? I might go to Prague, Milan, or Amsterdam on weekends and I will need access to the internet there.


Windows 10 not detecting available updates

I'm using an old build of Windows 10 (Version 1511 Build 10586.753, found through winver). I haven't received any updates because I disabled Windows Update in services.msc a while back, but I've since re-enabled it and have tried updating Windows. Windows detected that there were available updates and downloaded them, but when it prompted me to restart my computer to install the updates, it kicked me out of the update at about 30% to the Windows login screen.  I tried restarting my computer to re-try the update, but nothing happened and I went straight to the login screen again. I went into Windows Updates to check for updates, but it's not detecting updates for some reason (I've ensured Windows Update in services.msc is enabled and running). I thought it might not be detecting any because the latest version was already downloaded, so I used Disk Cleanup to get rid of Windows installation files. I rebooted and checked Windows Update again, but it's still not detecting any updates.  My laptop, which was also upgrading from this same build, also could not install the update properly. I ended up re-imaging my laptop, and was able to update from that, but my desktop has a TB of programs that I'd need to back up or re-download, so I'd prefer not to wipe it. What can I try to update my desktop without re-imaging it?


How do I find the Target of an Advertised shortcut?

EDIT: Originally I used the title "How do I find the Target of a MS-Office shortcut?" but have since changed it as the problem is not specific to MS-Office shortcuts.  I have MSOffice 2010 OneNote installed, the shortcut in the Start menu has the following properties:    As you can see the Target information is generic and the Find Target button is greyed out.   How do I find the file the shortcut is pointing to?  EDIT: I was looking for the Target of the shortcut so I could use it with one of the "Favourite" keys on my Microsoft keyboard. However, in getting caught up in wanting to find the location of the Target I forgot that I could just set the favourite to point to this shortcut, not the executable.  Although that solves my issue it still leaves we wanting to know how to find the location of the Target files in Advertised shortcuts.


Is it possible to make good fried salmon in a stainless steel pan?

I am trying to make fried salmon in my stainless steel pan. My goal is to have a nicely browned exterior, but I keep running into the same problem: Once the outer layer of the salmon starts to brown, it sticks to the bottom of the pan, and peels right off the fillet when I try to turn the fish over.  The answers to  similar question all seem to be focused on heating the pan before putting the fish in. This doesn't seem to work in my situation. I am already preheating the pan for a couple of minutes. In case it makes a difference, I have been using olive oil.  Is there a special trick to searing salmon in a stainless steel pan (I prefer to avoid pans with non-stick coatings) without the bottom of the fish peeling off as soon as it browns? Am I just doing this entirely wrong?


X11 linux apps in xming - how to fix font and size?

I'm running LiClipse (a version of Eclipse IDE targeted at Python development) on a remote CentOS 7 host with X11 forwarding to xming on Windows 10.  The application starts up fine, but the fonts are incredibly small, and the wrong type (the default is 'sans', but the displayed font is different). Changing the font type and size in the application preferences has no effect.    Is it possible that I'm missing some font package in CentOS or Xming (I have installed xming-fonts 7.7.0.10)? How can this be solved?  EDIT: xset q shows the following font paths (I switched between xming and VcXsrv and the results are the same, I have now stuck to VcXsrv)  Font Path:     C:\apps\VcXsrv\fonts/misc/,C:\apps\VcXsrv\fonts/TTF/,C:\apps\VcXsrv\fonts/OTF,C:\apps\VcXsrv\fonts/Type1/,C:\apps\VcXsrv\fonts/100dpi/,C:\apps\VcXsrv\fonts/75dpi/,C:\apps\VcXsrv\fonts/cyrillic/,C:\apps\VcXsrv\fonts/Speedo/,C:\apps\VcXsrv\fonts/terminus-font/,built-ins   I have successfully changed the text editor font in the application, by picking the Courier 10 Pitch font in the appearance settings menu. The problem is that none of the default-selected fonts, like Monospace or Sans render properly.  I suspected the missing fonts might be in the C:\Windows\Fonts folder, so I tried added it to the font-dirs file, and the -fp command-line argument of both xming and VcXsrv with no success. That folder is simply ignored, it does not show in the output of xset q even if it's the only option provided, which is now an even bigger mystery.  So it seems the issue is that there's a mismatch between what fonts LiClipse/X11 is expecting to use and what Xming/VcXsrv are providing.  EDIT 2: Not a duplicate of  The solution to that question does not solve this one, and software in use is different.


Four consecutive heads from ten coin flips

If we flip a fair coin $10$ times, what is the probability we get $\ge 4$ consecutive heads?  An approach would be to consider the probability of all consecutive heads, cut off by tails, e.g.,  HHHHTxxxxx  THHHHTxxxx  ...  HHHHHTxxxx  THHHHHTxxxx  ...  but this is complicated, and also has a problem that some patterns overlap (e.g., HHHHTHHHHT). Is there a simpler way to do this?


How does gradient boosting calculate probability estimates?

I have been trying to understand gradient boosting reading various blogs, websites and trying to find my answer by looking through for example the XGBoost source code. However, I cannot seem to find an understandable explanation of how gradient boosting algorithms produce probability estimates. So, how do they calculate the probabilities?


How to integrate KeePass and Chrome/Chromium using ChromIPass?

I'm trying to integrate KeePass and Chrome/Chromium after installing ChromIPass when I try to connect to KeePass, It gives the following error:   ChromeIPass has been disconnected from KeePassHttp. Association was unsuccessful Press the reconnect button to establish a new connection.   How can I connect ChromeIPass with KeePass?


Does anyone know how to wire up mouse events on a map document?  I have found a bunch of example code on how to wire up Add-In tools, but the Add-in I'm creating is a button.  It should be as easy as wiring up event listeners for ActiveView event listeners, but it seems ESRI takes away the ability of clicking on a map because they want to force us to use tools instead of buttons for map interaction??  Maybe a repost of


GIMP Quality .jpg export - what is the best set up?

please could you tell what is the best common quality export value for .jpg image export in the GIMP? For example I set up the 100% for .jpg and for example for image 1,5 MB I will get the 5,2 MB or even more then 7 MB. Is it really better quality than the original photo? Is there any advantages to keep photo in this high quality?


Determinant of a square matrix in a field

\begin{array}{rrrrr|r}     b & a & a & \cdot \cdot \cdot & a \\     a & b & a & \cdot \cdot \cdot & a \\     a & a & b & \cdot \cdot \cdot & a \\     \cdot & \cdot & \cdot & \space & \cdot\\ \cdot & \cdot & \cdot & \space & \cdot\\ a & a & a & \cdot \cdot  \cdot & b   \end{array}  I have the above matrix $A\in M_{n\times n}(F)$ where $F$ is a field and $n\geq1$, $a,b\in F$.  I'm trying to find out how to use row operations to make it into an upper triangular matrix in order to figure out the determinant. But I'm not sure how I would approach it.


Find the missing digits in the expansion of $34!$

If $34!=\overline{295232799cd96041408476186096435ab000000}$ then find the value of $a,b,c$ and $d.$  My Attempt: I can find that $b=0$ because it has seven five integers.  $\lfloor{\frac{34}{5}}\rfloor+\lfloor{\frac{34}{25}}\rfloor=6+1=7$  Also I think $a$ can be found using divisibility rule of $8$ that means $\overline{35a}$ is divisible by $8$ which gives us $a=2$. But I'm stuck in finding $c$ and $d$. Using the divisibility rule of $9$ I get an equation. And using divisibility rule of $11$ I get another equation but when I solve them I get two values for $c$ and $d$.  Note: calculator is not allowed.


Interpretation of rating of the primary voltage of a real transformer

The rating of a real transformer is 15 kVA , 2300/230-V then can we say that the primary rms is 2300 V or can we say that the secondary rms is 230 V or both.  To clarify further, suppose to solve for certain characteristics of this transformer like primary current and secondary current i use the equivalent circuit equation of the transformer referred to the primary side as:  Vp = aVs + Req*Ip + jXeq*Ip  Then what should i use for Vp or Vs in the above equation looking at the rating of the transformer.  In the above equation looking at the rating data given above is Vp= 2300 or Vs = 230 ?As mentioned earlier the transformer is mentioned to be real.


Include a PDF-file and write text above on the same page

I would like to have a section where I insert a PDF-page and write a few lines of text before. What I got:  \section{FOO} %some text is following \includepdf[scale=0.9,pages=1,pagecommand={},offset=0 -3cm]{myPDF.pdf}   Sadly the \includepdf-command seems to produce a pagebreak right when it is used. One workaround is to insert the \section{FOO} into the pagecommand-option of \includepdf, but in that case I am not able to write some text between the PDF and the section-heading. How can I have heading, text and PDF on the same page?


I have a view with full pager, i am showing 10 items per page. Now pager shows up like...  1    2    3    next ›    last »   I want to to show each pager number from which count it will start and end...like   1-10    11-20    21-30    next ›    last »   How can I do this?


What's the difference between gas and plasma?

A friend stated that stars are hot balls of gas, however we know that technically stars are plasma. Is his statement entirely incorrect? Can a plasma be considered a form of gas or should be referred to as a distinct form of matter?


Icons broken in search results of Windows 10

Basically, it looks like this-    I tried doing  but it did not work out.  Is there any way this could be solved?


I opened a program (.exe) with Microsoft's Notepad, just to see what would happen, and apparently all .exe files now open with Notepad. How do I fix this? Even explorer.exe now opens with Notepad. I am using a Windows 7 computer. I thought (using Task Manager) ending explore.exe and reopening it would fix it but since that opens with Notepad, it didn't. I only have a few programs open that were opened before I messed up, which is how I am able to ask this. Please help!


if I run my notebook on battery mode, ubuntu spindown my hardrive every few seconds. How can I fix that?  I have tried it with sudo hdparm -S 127 /dev/sda* but I am not able to disable the spindown and can´t find the reason for this "bug". Running Ubuntu 12.04 - Bug is since 12.04    Recent updates are installed, the problem is still recent. I can change the settings via. sudo hdparm -B 127 but if I change hdparm.conf, Ubuntu does not recognize it.   /dev/sda {   apm_battery=127 }


What wilI I observe when travelling at almost the speed of light?

If I and a group of friends are travelling at or just below the speed of light - can I see myself, can I see them, or they me? Would we see anything at all?


Proving the convergence of the $p$-series without using the integral test?

I'm having trouble figuring out how to prove the convergence of the $p$-series, that is,  $$\sum_{n=1}^{\infty}{\frac{1}{n^p}}$$  where $p > 1$.  I'm in a real analysis course and I have a midterm coming up.  I think I might need to prove this on the midterm, but without using the integral test.  I appreciate any help.  Thanks in advance.


Can you define the subtle difference between "What kind of person ..." and "What kind of a person"?

The indefinite article certainly adds something, creating a slightly different shade of meaning, but is there a clearly defined rule or principle for this?  What kind of freak show is this? What kind of a freak show is this?  Or:  What kind of person are you? What kind of a person are you?  There is a TV show in which a character, unsatisfied with the manner in which he's about to be killed, asks rhetorically:  CHARACTER: What kind of a death is this?  What would change if he said instead:  CHARACTER: What kind of death is this?  Both are grammatically correct, I suspect. Ngram says so, anyway.


I've a third order active filter, without zeros. I know that when \$f=0\$ the gain response is \$1\$. So the cutoff-frequency is located at:  $$\left|\text{H}\left(\omega_0\right)\right|=\frac{1}{\sqrt{2}}\space\Longleftrightarrow\space\omega_0=\dots\tag1$$  The roll-of of the filter can be found by using:  $$\text{roll-of}=20\log_{10}\left(\left|\text{H}\left(\omega_2\right)\right|\right)-20\log_{10}\left(\left|\text{H}\left(\omega_1\right)\right|\right)\tag2$$  In order to get dB/decade I need to have:  $$10\omega_2=\omega_1\tag3$$  And in order to get reasonable values we need to have:  $$\omega_2>\omega_1>>\omega_0\tag4$$  And I know that when \$f\to\infty\$ the roll-of tends to \$-60\$ dB/decade     Let's say I need a accuracy for the roll-of, up to 4 decimal places. What value for \$\omega_1\$ should I pick? And is there a resource that I can check out to read more about this?


function attributes in decorated function

Is there a way to set all attributes in a decorated function as in the original function?  For example if I take this code:  def timeit(f):     import time     def new_f(n):         start = time.time()         res = f(n)         end = time.time()         tt = end-start         print tt         return res     return new_f  @timeit def fun(n=0):     ''' docstring '''     res = 0     for _ in xrange(n):         res = res + 1     return res   Then the function fun has actually lost all its attributes such as fun.func_defaults or fun.func_dict or fun.func_doc. Is there a generic way to handle this?


Ok, so I know what hiberfil.sys is, and I want to use hibernation on my laptop.  But I have another hard drive active in my laptop, it's taken from my old one... and I want to get rid of the hiberfil.sys on that drive. But even with admin privileges I can't delete it.  Any ideas?


abdullahradhy@ubuntu:~$ sudo apt-get install emacs23 E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it? abdullahradhy@ubuntu:~$    What is the problem?  how to solve it?


Simple capacitor use for buffering a battery?

I have a simple application where a 6V, 2A DC power supply is driving 4 hobbyist-grade servos.  In most cases this is adequate, but there are cases (when all servos are suddenly loaded) when I think the power draw will exceed 2A for a short period of time.  It was suggested to me that I should use a capacitor between my power source and the servos in order to handle this kind of transient load.  Unfortunately the suggestor didn't know how this would actually be implemented.  I tried the University of Google, but mostly came up with videos of giant capacitors being used to dramatically explode things.  Could someone point me in the right direction, or give me a simple circuit example of how I would do this.  Is it as simple as wiring a capacitor onto the positive lead?  What calculations should I make to determine the appropriate capactitor size?  For example, if I wanted to sustain a peak of 3A for 5 seconds.


How do I RP a ranger obtaining a beast companion?

How exactly does a ranger befriend a beast companion and how should I introduce one when they reach the level where they get one?


regex for phone number format (with dot)

Can somebody give me the regex for validating the phone numbers 000.0000.000000 and also without the dots.  sample numbers 880.1817.087511 and 8801817087511


I want to draw some Signal Processing plots in my document, and found a package called dsptricks on ctan. I downloaded the .sty files, copied them to /usr/share/texmf/tex/latex/dsp_stuff, but am now stuck. What do I do next, how do I make TeX find the .sty files in dsp_stuff?


Let $F$ be a probability distribution function. Prove that $\int\limits_{-\infty}^{\infty} F(x+a)-F(x)\ dx= a\ \forall a\in\Bbb{R}$

A real-valued map $F$ is called a probability distribution if  $F$ is monotonically increasing $F$ is right continuous $\lim\limits_{x\to\infty} F(x)=1$ and $\lim\limits_{x\to-\infty} F(x)=0$  Again I know that for such $F$, there is a probability measure $P$ on borel $\sigma$-field of $\Bbb{R}$. such that $P((a,b])=F(b)-F(a)\ \forall -\infty\le a\le b\le \infty$. So we have to prove that $\int\limits_{-\infty}^{\infty}P((x,x+a])\ dx=a$ Here $F$ may not be absolutely continuous, so we cannot work with the probability density function. I'm not getting any idea how to prove this result. Can anyone help me in this regard? Thanks for your help in advance.


HTTPS very slow compared to HTTP (not the handshake)


IM doing shared hosting via godaddy.  I have just done a check and found that there are some "explicit" aka spammy porn sites hosted on the same IP address as my website, can this affect my rankings?  Private Hosting is very expensive but will it be beneficial for me to make the move?  Ideally I would like to keep things as it is but this explicit sites residing on the same host as my well maintained reputable site is worrying me...


Calculate without a calculator: $$\left [ 3 \right ]^{2014^{2014}}\mod 98$$   I know I have to use Euler's Theorem. As a hint it says I might need to use the Chinese Remainder theorem too. I know how both of these work theoretically.  For example I can calculate $5^{256} \mod 13$ with Euler's Theorem. But these large numbers throw me off, especially the double power of 2014.  I started of like this for the Chinese Remainder: $$98 = 2*7^{2}\\ \left [3  \right ]^{2014^{2014}} \mod 2 \\ \left [3  \right ]^{2014^{2014}} \mod 49 \\$$  Now calculate both: $$\left [3  \right ]^{2014^{2014}\mod \phi_{(2)} = 2} \equiv  \left [3  \right ]^{0} \equiv 1  \mod 2$$ That was lucky. I fail at mod 49.  Applying Euler's Theorem on 2014^2014 (since ([3]^2014)^2014 seems even more impossible) gives the following:  $$\phi _{(49)} = 42\\ 2014 = 47*42+40\\ 2014^{2014} = 2014^{42^{47}}*2014^{40}\equiv 2014^{40} \mod 49$$  (That doesn't really work without a calculator either.) And what now, applying Euler's Theorem again doesn't work, and I can't do it in my head either.  Is my approach right? Did I do something wrong?  Please point me in the right direction. I'm also open to entirely different solutions.


Wifi drops and won't reconnect until reboot (14.04 with RTL8723BE)

I have a new Sager NP2650 laptop with a fresh Ubuntu 14.04LTS install.  It has a Realtek RTL8723BE wireless adapter in it.  Initially after installation I had no wireless, but I was able to get it working after following the instructions on this thread:  .  I had to checkout an earlier version of the driver from git as the thread says in order to get it to compile on my system.  The problem is that the connection eventually is lost within an hour or so, although Network Manager still shows it as connected.  If I disable and re-enable the Wi-Fi or Networking it doesn't work.  The wifi just endlessly tries to connect, but fails.  If I reboot it works fine again for a while.  I ran the wireless diagnostic script found elsewhere on the forum and uploaded my results here:    I could use some help.  Thanks!


How do I decide what is a "reasonable" Suggestion?

I have already asked some questions that concern the Suggestion spell ( and ). However, there are still some aspects of this spell that are not clear to me. In particular, the fact that the course of action must sound reasonable can be ambiguous. According to the manual, you cannot ask a target to stab himself, but you can ask him to give his horse to a random person. Now, consider for example the following situations:   A halfling is carrying a magical ring that could be extremely dangerous if it was in wrong hands. A wizard suggests him to give it to the first person he meets. A young seaman has just been given a giant vessel and he is going to set sail, the dream of his life. A wizard suggests him to sell him the vessel for a few money.   can the Suggestion spell be used in these situations? Can these courses of action be considered as reasonable? In general, how to quickly determine if the course of action is reasonable?


Making endnotes clickable links with hyperref

I would like to use the endnotes package, hyperref and biblatex together to have links to my endnotes. Here is a MWE that shows how the links don't show up:  \begin{filecontents}{testbib.bib} @Book{jones00,   author =   {Douglas Jones},   title =    {A book},   publisher =    {The metasyntactic variable publishing company},   year =     2000} \end{filecontents}  \documentclass{article} \usepackage{endnotes} \usepackage[autocite=footnote,notetype=endonly,style=verbose-trad1]{biblatex} \bibliography{testbib} \let\footnote\endnote \usepackage{hyperref} \begin{document} Something\autocite[p.12]{jones00} something else\footnote{another endnote?}  \theendnotes \end{document}   I'm open to other end-note producing options that work better with hyperref, but I'd rather stick with article document class.


Screen Resolution Problem with Ubuntu 14.04.02 and VirtualBox

I am trying to change screen resolution of Ubuntu 14.04.02 running in VirtualBox. I tried to install  but I'm getting this error -  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: virtualbox-guest-x11 : Depends: xorg-video-abi-15 Depends: xserver-xorg-core (>= 2:1.14.99.902) E: Unable to correct problems, you have held broken packages.   What should I do to fix this?


Degree of a finite field extension. How to find?

What is the degree of the extension $[\mathbb Q(\sqrt2 + \sqrt3 + \sqrt5) : \mathbb Q ]$?  Can you explain, what I must to do in this example?


Could not create directory /wp-content/upgrade/

When I try to automatically install updates to Wordpress or plugins, I receive an error:     An error occurred while updating... Could not create directory   .../wp-content/upgrade/...   My web host runs an Apache environment, and other Wordpress websites I own don't have this problem.  I have CHMOD the /wp-content/upgrade folder to both 777 and 2777, without any change in the error message.  I have installed the Core Control plugin, and the Filesystem Access module says the only error is that SSH2 is not available, but this is not required for automatic updates.  How do I perform the command:  chown www-data:www-data /path/to/wp-content/ -R   from a Windows machine?  Is it telnet, or putty?  What commands do I use to login?  Thanks.


I am running Ubuntu 14.04 and Notepad++ 6.6.4 (through WINE)  Under the 'Run' tab, I clicked on "Launch in Firefox" , but nothing happened   I uninstalled Notepad++ and WINE, then shutdown. I re-installed Notepad++ and WINE and still have the same problem.   Does anyone know what the problem is?


Which is the preferred way to check if a file exists and if not create it?


Is 1GB DDR2 RAM sufficient for Ubuntu 12.04 LTS 32 bit desktop

I have AMD processor with 1 GB DDR2 RAM. I have installed Ubuntu 12.04 LTS Desktop with 32 bit version. Many times when I open 3-4 applications, it hanged and need to restart my PC. Is it due to less RAM or other hardware?


How to cut extrude inwards like in sketchup?

In sketchup the extruding is similar to blender, but when I pull down it is different. I have a cube in sketchup and added 2 edges, and with the center face I pull down and it cuts to make the u shape. Sketchup  I tried something similar in Blender, but it did not work. After adding loop cut when pull down it created extra faces that I have delete and it adds more work to do. Is there any method or how can i make a simple way cut or extrude downwards? With the boolean can cut in sketchup, it's a simple way just to extrude downward and get what I want. Any suggestion or help which and make my work faster with this simple methods? Blender


How to create keyboard shortcuts from terminal?

I know how to create shortcuts by Keyboard>shortcuts ...  How to do it from terminal?  I am interested on the existing shortcuts from keyboard>shortcuts.  16.04


Adding backslash before quotes when string contains them - PHP

I'm doing a little ajax question-result system. When user types something into the textarea, the result is automatically searched and outputted.   Problem is that every time user types the question that contains "" or '' - the search is unsuccessful. Is there any way I can add backslash to "" or '' inside the string, so it'd be ignored?  Or is there any filter that ignores the "" or ''?  I need the question to be searched with quotes, because questions in database contains them.  Here's the code:  $q = $_POST['q']; // for every " or ' in $q add \ before it $results = array(); $result = array(); $count = 0; $stmt = $dbh->prepare("SELECT result FROM quest WHERE quest LIKE '".$q."%'"); if($stmt->execute()){     $result = $stmt->fetchAll(PDO::FETCH_OBJ);     $count= $stmt->rowCount(); } if($result != NULL){     foreach($result as $part){         foreach($part as $item){             $results[] = $item;         }     }     echo htmlentities($results[0], ENT_QUOTES, "UTF-8"); }


How many primes are there on the form $100\cdots 0 1$?

For example 11 and 101 are primes, but apart from them, can we determine how many primes on the form $100\cdots 00 1$ there exist (in decimal number system)?


Should we have a tag for significant points in time?

There are many discussions about the current incidence. For example:          Should we have a whole tag for this incidence? In general, if in the future there are more crises and incidences like this, should they have their own tags too? I feel it's fine, as we have specific tags for individual events like . And, should we have a  tag?    Related:        Note that these questions are specifically about the conflict 2019, while this question is simply about creating meta tags for significant events.


I keep getting a nullpointerexception when I try to sort users where a certain user has a null value in his profile. I was under the impression Google Collection would handle these null values, but it doesnt seem to work.  This is the code I use:  Comparator<UserModel> firstName_comparator = new Comparator<UserModel>() {     @Override     public int compare(UserModel c1, UserModel c2) {         return c1.getProfile().getFirstName().toLowerCase()                 .compareTo(c2.getProfile().getFirstName().toLowerCase());         }  };  Collections.sort(users, Ordering.from(firstName_comparator).nullsLast());     This specific line throws the nullpointerexception:  .compareTo(c2.getProfile().getFirstName().toLowerCase());   Its because getProfile() is null. How can I fix this? I want to be able to sort my users with null values.


My reputation doesn't increase although I'm receiving many positive bookings, it stays at 432 constantly

Can you please have a look at ? Even if I receive reputation points, the counter constantly stays at 437.


Prove $\sqrt{1+2\sqrt{1+3\sqrt{1+4\sqrt{\cdots}}}}=3$   I tried to express it as a recursive sequence, but I failed.


Make gedit embedded terminal colours the same as the default terminal

I've just updated to 11.10 and now my embedded terminal in gedit does not match my default terminal. I hate looking at a white and black terminal. Does anyone know how to make the embedded terminal match the default terminal?  This is a screenshot:    I want my embedded terminal in gedit to match my default terminal.


My PHP query is returning weird characters like "E�". why?

My data is stored in firebird database. The actual data is  "E…" but when queried in PHP it shows as  "E�" How to get correct data?


Is it possible to count the number of Set bits in Number in O(1)?

I was asked the above question in an interview and interviewer is very certain of the answer. But i am not sure. Can anyone help me here?


I'm trying to prove this by induction, but something doesn't add up. I see a solution given , but it is actually proving that the expression is greater than $2\sqrt{n}$. I'd appreciate some insight.


What is the current status of the UA Revised Ranger?

14 months ago, an  supplement was published that discussed how the ranger described in the Player's Handbook was under powered. These rules reimagined the ranger's abilities, and suggested that an official version would be released later.     Finally, we come to implementation. If this iteration of the ranger, or a future revision of it, grades high enough, our plan is to present it as a revised ranger in a future D&D sourcebook.   Does that Sourcebook exist yet? If not, have the devs given an update or told us their intentions?


APR for a Loan Paid Off in Monthly Payments for 9 Months

Say a loan is issued for 9 months with $1000 principal and with a payment plan consisting of about $162.23 each month.  Does this loan have an APR of 46%?


Mystery book series with an alien bird side-kick and a Protagonist called something like Jarrod

So I have several email addresses over the last 20 years based on the main character from a 3-4 part book series. I'd love to remember the title and re-read them so I can explain the meaning of my email address - it has become my persona.   I read the series in around 1996-97. It was set in space and centred around a lone-ranger type character called Darek Jarrod (I think spelled correctly). He had a telepathic owl-like alien sidekick who flew with him in his little fighter starship thing.   There was some sinister, somewhat ethereal council of overlords who needed to be defeated - I think there was a lead antagonist as well. Eventually, 4 books later, he manages to defeat them.   It's not much to go on - I think it was aimed at young adults/adolescents as I was a teen at the time.   Any help for this 20 year+ mystery would be appreciated.   Thanks,   Jarrod ( :S )


I have an inequality problem which is as follow:  If $a,b,c$ are positive integers, with $a^2+b^2-ab=c^2$ prove that $(a-b)(b-c)\le0$.  I am not so good in inequalities. So, please give me some hints so that I can proceed.  Thanks.


In statistics, should I assume $\log$ to mean $\log_{10}$ or the natural logarithm $\ln$?

I'm studying statistics and often come across formulae containing the log and I'm always confused if I should interpret that as the standard meaning of log, i.e. base 10, or if in statistics the symbol log  is generally assumed to be the natural log ln.  In particular I'm studying the  as an example, but my question is more of general one.


Allow questions to be nominated for migration after editing in the /review queues

When going through the queue of questions to be voted to close, I see a lot of questions that don't belong on one site, but would fit on another... If the question was cleaned up a bit. My options are to either VTC Off Topic, VTC Off Topic and migrate to site XXX, or Edit it.  I propose that when a question gets edited, it goes back to the main Review screen for that post, which gives the option to migrate the question after the edit, or close for a different reason.


This happened to me a couple times before, where i accidently click a key combination and it hides the outliner + other panels Pressing CTRL UP / DOWN / LEFT / RIGHT does not bring anything back for me. And restarting blender doesn't help..


Two answers answer my question, but in a different way. How should I choose which one to accept?

I recently had a question that had two good answers, both of them were valid solutions to my problem. How do I decide which one to accept?


How to put table of contents at the beginning of each chapter?

How can i have such a format in every chapter in my thesis. More specifically i would like this table of contents for each chapter depending on its subsections.


Using ESTA a second time - first for tourism, now for transit

In April 2015, I traveled from Brussels to New York (tourism) after successfully applying for ESTA. Today, my ESTA is still valid (I checked via the official website). On 22 February 2016 I will be traveling from Amsterdam to Cancún, with a transit in Houston. When I applied last year, I was staying in New York, so I answered the question Is your travel to the US occurring in transit to another country? with a "no". For my trip to Cancún, however, this question should be answered with a "yes", since I will not be staying in the US for more than two hours during my transit in Houston.  Is there some way I can change the answer to the question Is your travel to the US occurring in transit to another country? from "no" to "yes"?    Or, do I have to apply for a new ESTA?    I ask this because the ESTA FAQ specifically mentions you should answer "yes" if you're in transit - the point is that I cannot change the answer to this question. The only thing I can do is change the NY address I stayed last year into "In Transit", but I'm not sure whether that's sufficient.  My doubts only grow by reading the explanation from the official  (see bold text):     Each approved ESTA application generally is valid for two years or until the applicant’s passport expires, whichever comes first. A new travel authorization is required if: (1) the traveler is issued a new passport; (2) the traveler changes his or her name; (3) the traveler changes his or her gender; (4) the traveler’s country of citizenship changes; or (5) the circumstances underlying the traveler’s previous responses to any of the ESTA application questions requiring a “yes” or “no” response have changed. The associated fee will be charged for each new application submitted.   I don't mind that much about the $14, but if it's not really necessary, I prefer to leave all the hassle aside.


I've installed Ubuntu 14.04. I'm disappointed to see synapse gone from Ubuntu Software Centre. I've added repository available in Launchpad. It resulted in error 404.  How can I install synapse?


On digikey site program memory for  is shown as 32KB (16K x 16). in ATMEGA328P  program memory is 32KB but what does (16K x 16) mean?  Other Examples are :   16K x 8 64 x 16 64K x 8 1K x 16


Facing the problem in starting the PDFTexify or any other mode

My WinEdt8.0 was going well with MikTex 2.9 yesterday and now after booting my computer it is showing this error, Please Help me to solve it:  Error Launching Console Application PDFTexify......... Command Line: texify.exe --pdf--tex-option-interaction=errortopmode--tex-option=--synctex=-1 "C:\Users\Ajay\Documents\LatexCourse\Cv1.tex" StartUp Folder: C:\Users\Ajay\Documents\LatexCourse  The system cannot find the file specified.


Spoilers within. Finish the game before reading on.      I've already . But I did notice that at the end, the Elizabeth that drowns me in the baptizing pond doesn't wear either brooch, just an unadorned neckband. Is this an oversight or what is the meaning of it? She still wears it on the way to the lighthouse. Did the brooch go missing? Did she take it off? Or was my Elizabeth at some point replaced by another, and how/why?


Update my custom WordPress Plugin through my own server

I am working on a WordPress plugin that will be accessible only to a group of a few selected website owners. I have installed my plugin to those sites already. There is active development going on for this plugin. And we need to upload changes to all the sites. Manually uploading the changes in all sites will be a tedious process. So I would prefer to upload changes to all of those websites at the same time.   How is this possible with WordPress?


How to find basis of intersection of 2 vector spaces with given basis?

Suppose we have vector spaces $\mathbb W$ and $\mathbb V$.  A given basis for $\mathbb W$ is $\{(1, 1, 0, -1), (0, 1, 3, 1)\}$, and a given basis for $\mathbb V$ is $\{(1, 2, 2, -2), (0, 1, 2, -1)\}$.  How to find a basis for $\mathbb W\cap\mathbb V$?


Prove there exists $m > 2010$ such that $f(m)$ is not prime

Let $$f(x) = \sum_{i = 0}^n a_ix^i$$ be a polynomial with $a_i \in \mathbb Z, n > 0, a_n \neq 0$. Prove that there exists some natural number $m>2010$ such that $|f(m)|$ is not a prime number.  I tried to look at $f(m) \bmod m$, and I assumed $m$ is relatively prime to $a_0$, so $f(m)$ is reversible $\mod m$, but I didn't know how to continue to prove it is not a prime number.  I would like to get help with that. Thanks.


Black screen with nVidia drivers on ubuntu

I have: ASUS P4V800D-X Intel Pentium 4 HT 2.80GHz 2.5GB RAM 40GB HDD nVidia 9500GT  When I installed nVidia drivers downloaded from nvidia.com website (selected recommended drivers), I simply can't boot into desktop. I pass through purple screen, and then I get black screen with flashing white underscore on left hand side. Keyboard shortcuts are not working and the only way to get to desktop mode is booting into recovery mode (holding shift when booting etc.). In recovery mode I run:  sudo apt-get remove --purge nvidia*   and that is the only way to get a "normal" desktop environment. I put a quotes on a normal because computer is running slow and I can't set proper resolution.  Also, I've tried to install drivers via ubuntu GUI interface (proprietary, tested drivers), but with no luck.  I am using Ubuntu 14.04


How does the lens diameter influence photo quality?

I have tested two different 50mm lenses in my camera. One was a Nikkor 50mm ∅52mm. The other one was a Sigma 50mm ∅72mm. I took some pictures with both lenses using the same setup for aperture and shutter speed, but couldn't notice significant differences in the quality of the pictures.   So, how does the diameter affects the photo quality, if it does? What advantages would the ∅72mm lens have over the ∅52mm one?


How to delete commits from commit history on GitHub?

I'd like to delete a few commits from showing on the commit history on GitHub.  However, I don't want to actually delete the code associated with the specific commit. I'd just like to delete the commit from appearing in the commit history. Is this possible? If so, how?  Thanks!


What is the rationale between only allowing one user/mention notification in a comment?

So, according to  and practical experience it's not possible to notify more than one user. For example:     @alice and @bob, though I agree with your general concern, ...   is blocked by the system.  The only reasons I have heard :   Spam control? (doesn't make any sense to me, but that's what the post says) Speed? (Regex needs to match only first mention) Technical limitations? (Comment on question: System can't handle sending multiple notifications...)   All these supposed reasons sounds like a bad idea to me, so I doubt those are the real reasons. But I would love finding out what the rationale is in that case.


Notes App on El Capitan: Change Default Format

The Notes app on El Capitan now has a number of styles, such as Body and Heading. How do I change the fonts associated with this?  I tried to make changes to the DefaultFonts.plist file, but it appears that the new System Integrity Protection has locked that down. Notes, of course, doesn’t have a preferences setting.  I really don’t like the font that’s showing up, and I don’t want to have to individually change all of my notes.     Note: This is not a duplicate of . (a) I am referring to the release version; (b) I want to change the font styles; (c) It hasn’t been answered anyway.


How to install the latest stable version of Chromium?

Is there an easier way to install Chromium than what is described ?  Furthermore, is there an easier way to stay up to date with current Chromium releases rather than having to re-build Chromium each release? (a script which automatically grabs and installs the latest build possibly?).  Related:


Uniform convergence, Bounded derivative.

Let $f_n(x):[0,1] \to \Bbb R$ be a sequence of differentiable functions such that for every $n$ and every $x \in [0,1]$ we have $|f'_n(x)| \leq 1$. Also, $f_n \to f$ (pointwise convergence) in $[0,1]$. Prove that $f_n$ converges to $f$ uniformly.   I managed to prove that for every $x_0$, there is a uniform convergence in $(x_0-\delta, x_0 +\delta)$ for some $\delta > 0$.  How can I finish the proof?


New with Windows 10 seems to be the Notification Area. Now, I've seen a few notifications (in the Action Center). The problem is that I haven't understood any of them (actively using computers for 30 years now), and once I click them they are gone. Is there any way to view these past user notifications so I can try and make some sense out of them?


Hi I have written below code. After each execution it is displaying output in a different order.    public class ExcetionInFinallyBlockDemo1 {     public static void main(String[] args) {         int a[] = new int[5];         try {             System.out.println("Accessing sixth element" + a[5]);         } catch (ArrayIndexOutOfBoundsException e) {             e.printStackTrace();         } finally {             System.out.println("finally block start");             try {                 double divide = a[3] / 0;                 System.out.println("Divide result:" + divide);             } catch (ArithmeticException e2) {                 e2.printStackTrace();             }             System.out.println("Finall block end");         }         System.out.println("rest of the code");     }  }   first run output:  java.lang.ArrayIndexOutOfBoundsException: 5         at com.sanju.exceptionHandling.ExcetionInFinallyBlockDemo1.main(ExcetionInFinallyBlockDemo1.java:11)     java.lang.ArithmeticException: / by zero finally block start     at com.sanju.exceptionHandling.ExcetionInFinallyBlockDemo1.main(ExcetionInFinallyBlockDemo1.java:17) Finall block end rest of the code   second run output:   java.lang.ArrayIndexOutOfBoundsException: 5         at com.sanju.exceptionHandling.ExcetionInFinallyBlockDemo1.main(ExcetionInFinallyBlockDemo1.java:11) finally block start Finall block end rest of the code java.lang.ArithmeticException: / by zero     at com.sanju.exceptionHandling.ExcetionInFinallyBlockDemo1.main(ExcetionInFinallyBlockDemo1.java:17)   Third run output:  java.lang.ArrayIndexOutOfBoundsException: 5     at com.sanju.exceptionHandling.ExcetionInFinallyBlockDemo1.main(ExcetionInFinallyBlockDemo1.java:11) java.lang.ArithmeticException: / by zero     at com.sanju.exceptionHandling.ExcetionInFinallyBlockDemo1.main(ExcetionInFinallyBlockDemo1.java:17) finally block start Finall block end rest of the code   Could you please explain why it is printing in different order each time ?


Very new to programming and have some questions about headers.   In the book it uses:  #include "std_lib_facilities.h"   My teacher always uses:  #include <iostream> using namespace std;   Any reason why we would use one over another?  One work better than the other?  Any help would be appreciated. 😊


I recently gave an online JS test, the questions was below, I couldn't understand and solve that, but now I want how that can be done. Please help me understand that.  write a wrap function that takes the execute function as an argument and returns a modified function so that the following requirements are met:   any result returned by the function execute should be returned from the modified function unchanged. if the function execute throws a error, the modified function should return null. after the function execute has thrown an error, its future executions should be prevented and null should be returned multiple modified functions can co-exist   The execute function doesnt take any argument.  function wrap (execute) {   // Return modified function }  var errorExec = wrap(function () {   throw new Error('Error'); }); var resultExec = wrap(function () {   return "Result"; }); console.log(errorExec && errorExec()); // Should output null console.log(errorExec && resultExec()); // Should output "Result"


I know, it may sound as nothing but a provocative question, and probably it is. However I've been thinking about it for a while, despite being aware that the question itself may not have much sense. Consider the field $\mathbb{R}$. Each element can be defined univocally. First $0$ and $1$, then the integers, so the rationals and then all the others (for instance as equivalence classes of Cauchy sequences on $\mathbb{Q}$). Now we can define the complex field $\mathbb{C}$ as $$\mathbb{C} = \mathbb{R}[X]/(X^2+1)$$ where $\mathbb{R}[X]$ is the ring of polynomials with real coefficient. However here it becomes impossible to univocally define a root of the polynomial $X^2+1$ since it has two roots (which we will eventually call $\pm i$) and they are totally indistinguishable. I know that in practice it's not a problem, we just decide to call one of the two roots $i$ and the other $-i$. But what's going on exactly? Is it some kind of "axiom" the fact that we are allowed to choose one out of a set of two identical elements?


dataframe:  data = {"Category":["Resource","Resource","Resource","Resource"],     "Item1":["Bandwidth","Bandwidth","Bandwidth","Bandwidth"],     "Item2":["DC","OC","DC","OC"],     "Amount":[156.415,396.921,-156.415,-396.921]} df = pd.DataFrame(data)  df = df.groupby(["Category","Item1"],as_index=False).sum() print df   get the result:     Category      Item1        Amount 0  Resource  Bandwidth  5.684342e-14   Why Amount not zero?How can I get the right result?


I have this pattern:  1 11 21 1211 111221   I'm guessing it's a fibo pattern, been at it for hours now. Anyone know?


How to check date validation in regex using js?

I am trying to validate date in js ("yyyy/mm/dd") format. After googling I found other date format checked but I can't get in this format.  Any one plz can help me out.  Here is my code.  function dateChecker() {     var date1, string, re;     re = new RegExp("\d{4}/\d{1,2}/\{1,2}");      date1 = document.getElementById("visitDate").value;      if(date1.length == 0)     {         document.getElementById("showError").innerHTML = "Plz Insert Date";         document.getElementById("showError").style.color = "red";     }     else if(date1.match(re))     {         document.getElementById("showError").innerHTML = "Ok";         document.getElementById("showError").style.color = "red";     }     else     {         document.getElementById("showError").innerHTML = "It is not a date";         document.getElementById("showError").style.color = "red";     }  }


I'm testing some software using a browser. I want to start a Chromium of FireFox session, and instruct the browser to an alternate host file. The host file will redirect a couple of domains to the local machine for testing. If the domain is not present in the alternate host file, then name resolution should proceed as normal.  I don't want to modify the real /etc/host or my DNS server because I only need the changes for local testing with a particular browser instance.  Is it possible to instruct Chromium of FireFox (or another browser) to use an alternate host file for testing? Or is there another solution that I missed?


Generate a random number between a desired range using Java

I was able to generate a random number between [0,50] in my java code but how do I proceed in order to create for example a number in the range of [1,49]  This is my code:  public class Totoloto  {     public static void main(String[] args)      {         int n = (int) (Math.random()*50);         System.out.println("Number generated: "+n);      }     }


difference between apt update and apt-get update

I am new to Ubuntu and I found that there   sudo apt update && sudo apt upgrade          #1 sudo apt-get update && sudo apt-get upgrade  #2   what is the difference between them, I haven't found much information about the first command but plenty of explanation on


geometric interpretation of $\vec v \cdot \operatorname{curl} \vec v = 0 $

There is a family of surfaces orthogonal to the vector field $\vec v \in \mathbb R^3$ iff $\vec v \cdot  \operatorname{curl} \vec v = 0 $. Now the necessity part is trivial, but the proof of sufficiency I have seen in physics textbooks, e.g. Kestin: Thermodynamics, is kind of mindless integration similar to the one usually offered to prove Poincare's lemma as in Flanders, or just asserted as in Born&Wolf: Optics. Is there an intuitive and geometric interpretation of this condition that would make it obvious why its sufficiency must be true?


Baggage allowance inquiry with two different airlines in one ticket

I am flying with two different airlines in one ticket. Finnair from Helsinki to Vienna and Qatar airways from Vienna to manila. Which airline baggage policy should I follow? There is no indicated baggage allowance in my electronic ticket.


Having read many links about setting up templates on classes I have got to this perplexing compiler error:  Linking... main.obj : error LNK2019: unresolved external symbol "public: __thiscall test<int,int>::test<int,int>(int)" (??0?$test@HH@@QAE@H@Z) referenced in function _main fatal error LNK1120: 1 unresolved externals   The offending code, as simply as possible is:  test.h  template<typename U, typename V> class test { public:     test(int number); };   test.cpp  #include "test.h"  template<typename T, typename U> test<T, U>::test(int number){}   main.cpp  #include "test.h"  void main() {     test<int, int> a = test<int, int>(4); }   Clearly the previous code does nothing useful, I am simply building a model of templates to start a project. Can anyone explain what I'm not understanding about structuring this solution to meet the ends of having a templated class that can construct itself correctly?


SQL Server Agent fails after installing SQL Server 2019 CU2

After installing CU2 our SQL server agent randomly stops working.  If you go to check on the status of the agent by opening Job Activity Monitor, it comes up blank for a while then throws an error:     Failed to retrieve data for this request.   (Microsoft.SqlServer.Management.Sdk.Sfc)      For help, click:         ------------------------------ ADDITIONAL INFORMATION:      An exception occurred while executing a Transact-SQL statement or   batch. (Microsoft.SqlServer.ConnectionInfo)            A severe error occurred on the current command.  The results, if any,   should be discarded. (Microsoft SQL Server, Error: 0)      For help, click:      Any clue what could be causing this?


Can I keep the Rueful Axe and get Clavicus Vile's Mask?

Is there a way to keep the Rueful axe and get Clavicus's Mask?  I thought you could kill Barbas after receiving the mask, but he is a statue now.  Did I miss my chance?


How to create Windows 8.1 Boot usb on ubuntu 14.04

I want to create a bootable USB and there are no ISO's online, so is there any way I can run the mediacreationtool.exr software without Wine ? Because not even Wine is loading that.


I need to find out the file/directory name that a .lnk is pointing to using c#.  What is the simplest way to do this?  Thanks.


I am trying to install Ubuntu 14.04 from a bootable USB (tried from CD - same problem) on my laptop. At boot, the GRUB opened:    And then it's like the installation have stopped or something. I see only a black screen:    My laptop is an ACER Aspire E15 (E5-573G-504H).


\includegraphics renders my pdf at the right side of the page (exceeds page bounds)

I have a pdf that I'd like to insert in my document. When using graphicx or pdfpages the pdf is rendered like this:  In the pdf itself, the drawing are pretty centered.  What can I do to centralize this?


Why am I getting different results from two servers that located in the same destination network?

There's two servers with the same network IP, and the only difference between them is the last two numbers like: 37.211.15.247 and 37.211.166.178. The Hosting Provider claims that the subnet mask for both networks is 255.254.0.0  When I try the command Tracert (Traceroute) to test the ping and to see what hops does it take to reach the destination server, I get different ping times and different forward path results which is strange because they are all located in the same company host.  Is there something wrong? Shouldn’t it take the same path too?  I have added the the full IP addresses to both servers as requested by some commenters. Well the two servers aren’t “International” anyways, so as far as I know, the only thing that comes to mind is the possibility that the two are configured on different subnetworks just like what . Though it’s suspicious.  UPDATE: After doing so much research, I found out the Subnet of these two hosts. They are on a /15 (255.254.0.0) subnet mask. Unfortunately, this is what that hosting provider claimed to me which is not true, and the true Subnet they apparently use is a /17 (255.255.128.0) Subnet mask. It turns out that they were definitely on different Subnets. That's why I got different traceroutes when I tested these two IPs 37.211.15.247 and 37.211.166.178  because they are clearly on different Subnets. Thank you everyone for these good answers, especially  his answer helped me a lot.


I am struggling with computing the following sums:     $$\sum_{k=1}^{n}k\binom{n}{k}=\binom{n}{1}+2\binom{n}{2}+...+n\binom{n}{n}$$   and     $$\sum_{k=0}^{n}\frac{1}{k+1}\binom{n}{k}=\binom{n}{0}+\frac{1}{2}\binom{n}{1}+\frac{1}{3}\binom{n}{2}+\dots+\frac{1}{n+1}\binom{n}{n}$$   At first, I tried just rewriting the general terms in a form where the Binomial Theorem could be applied, but could not do so. ($k$ should be in the exponent of something with $n-k$ in the exponent of something else.)  Then, for the first sum, I re-wrote it in the following manner:  \begin{align} S &=\binom{n}{n}+\dots+\binom{n}{3}+\binom{n}{2}+\binom{n}{1}\\ &+\binom{n}{n}+\dots+\binom{n}{3}+\binom{n}{2}\\ &+\binom{n}{n}+\dots+\binom{n}{3}\\ &\quad\vdots\\ &+\binom{n}{n} \end{align}  Noting that:  $$\binom{n}{0}+\binom{n}{1}+\binom{n}{2}+\dots+\binom{n}{n}=\sum_{k=0}^{n}\binom{n}{k}1^k1^{n-k}=(1+1)^n=2^n,$$  I can rewrite the first line in $S$ as $2^n-1$ (the $-1$ is there because I'm over-counting the $\binom{n}{0}=1$).  Then I tried to say that if all the "blanks" were filled (if all the lines were like the first line), since there are $n$ lines, then I have $n(2^n-1)$. From this point, we should have:  $$S+\text{blanks}=n(2^n-1)\Longrightarrow S=n(2^n-1)-\text{blanks}$$  However, the problem of finding the value of "blanks" seems as hard as the original problem and I can't get to the right answer of $n2^{n-1}$ (according to WA). In one of my attempts, I ended up with a geometric series but that still didn't work.  I have not spent much time on the second sum as I feel I should be able to do the first one before even tackling the second one. Am I going in the right direction with this? Is there a more intelligent way of working this out?  Thanks in advance for any help/hints.


I try to resolve some task in code wars. I have to create method, which returns column title(occurring in Excel). The method gets one parameter, it's number. For example:  def get_column_title(n) //code end   If n = 1. It should return A.      Test cases:  Test.assert_equals(get_column_title(1), "A") Test.assert_equals(get_column_title(26), "Z") Test.assert_equals(get_column_title(52), "AZ") Test.assert_equals(get_column_title(53), "BA") Test.assert_equals(get_column_title(702), "ZZ")   What I have:    def number_values     {       1 => 'A', 2 => 'B', 3 => 'C', 4 => 'D', 5 => 'E', 6 => 'F', 7 => 'G',       8 => 'H', 9 => 'I', 10 => 'J', 11 => 'K', 12 => 'L', 13 => 'M', 14 => 'N',       15 => 'O', 16 => 'P', 17 => 'Q', 18 => 'R', 19 => 'S', 20 => 'T',       21 => 'U', 22 => 'V', 23 => 'W', 24 => 'X', 25 => 'Y', 26 => 'Z'     }   end  def translate_values     if @n <= 26       number_values[@n-26*0]     elsif @n <= 52         'A'+ number_values[@n-26*1]     elsif @n <= 78         'B' + number_values[@n-26*2]     end end   Issue: I don't know how to resolve this task algorithmically. I thought about dividing the number by 26 in a loop. Can you give me some hints how to approach the task?  Source of exercise:


I want to highlight a certain element in this matrix from matlab output. How can I do this in the verbatim environment?  \begin{verbatim}  P =  1.0000    0.7000         0         0         0      0         0    0.5000         0         0      0    0.3000         0    0.6500         0      0         0    0.5000         0         0      0         0         0    0.3500    1.0000 \end{verbatim}


Setting up my bashrc environment on terminal

How can I get /Users/username/depot_tools to be apart of the list when I enter the command echo $PATH. Currently this is what terminal gives me:  MacBook-Pro:~ bianca$ echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin   But what I want is:  /Users/bianca/depot_tools:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin


LNK2019 on constructor with QGraphicsView subclass

I may be missing something obvious, but I can't get rid of a linking error in my Qt user interface.  I've isolated the part that's causing trouble. Basically, I'm implementing a subclass of QGraphicsView to display an interactive overhead map. For some reason, I can't get the constructor to be resolved.  OverheadMap.h :  #ifndef OVERHEADMAP_H #define OVERHEADMAP_H  #include <QGraphicsView>  class OverheadMap : public QGraphicsView {     Q_OBJECT  public:     OverheadMap(); };  #endif // OVERHEADMAP_H   OverheadMap.cpp :  #include "OverheadMap.h"  OverheadMap::OverheadMap() {     // Body }   main.cpp :  #include "OverheadMap.h"  int main(int argc, char *argv[]) {     OverheadMap *map = new OverheadMap(); }   LNK2019 :  main.obj:-1: error: LNK2019: unresolved external symbol "public: __thiscall OverheadMap::OverheadMap(void)" (??0OverheadMap@@QAE@XZ) referenced in function _main   I can without any trouble use QtCreator's auto-completion with OverheadMap, and I have done a similar subclass implementation of a QFrame that's working, so I doubt there's a syntax error here.  What am I missing?  Thanks.


How to restrict "Remote Login" (ssh) access to only certain IP ranges?

Can someone please tell me how to restrict SSH access only to certain IP ranges (e.g. local network) and not the whole Internet? I guess this has to be done via firewall.


I'm working on a driver, and I'm having trouble finding a way to manipulate the bits I want to on a digital register.  The register has 20 bits (0-19) and I'm only concerned with writing over the last two (19,18).  These bits are part of a hex representing that section, so to visualize, the #'s are what I want to change:  Hex    5    B    0    F  [##00 0101 1011 0000 1111]  All of the other bits must be kept as they are—the example above is arbitrary, so the masking has to handle any combination of bits.    I've tried creating a mask with any combination of & and | with 0xFFFFF and also 0x00000 but neither change just the first two bits of the hex that will be written.  Any ideas to get this to function would be great; and if you could explain how the solution works, even better.


How does the center of mass of a collision change after a collision has occurred compared to before. For instance, I know that it is moving, but does the velocity change and if so does it depend on whether the collision is elastic or inelastic


Auto-expand TAB character in code formatting

Related:       Note that this question, while related, is not the same as the ones linked.  In many cases, when people put code into questions or answers, they copy/paste the code from their editor.  If their editor is using tab characters, the formatting will be broken after the post is submitted.  For example, if a code is indented using TAB characters, then one TAB character in the beginning of a line will be treated as one level of indent and align with the left edge of the code, effectively indenting equally to 4 spaces.  However in the post editor it looks indented twice - the same as 8 spaces.  I often edit other people's posts to improve code formatting and I find this TAB issue being the biggest annoyance.  Most of the times (I think) on SO, we use 4 spaces to format/indent the code.  I think it would be an easy thing to auto-expand TAB characters inside <code> blocks by replacing them with 4 spaces when the post is submitted.


Solve $15x$ "congruent to" $20\mod 88$  So far I think I know $15\mod 88$ is $-41$ or if positive $47$`


How can trees be able to transport hundreds of liters of water all the way up to the crown and out in the leaves?


If $AA^*=AA$, how to prove $A$ is an Hermitian?

If $A$ is an $n \times n$ matrix and $AA^*=AA,$ how to prove $A$ is Hermitian?


using the induction technique to prove $\Pi_{i=1}^{k}(2i-1)=\frac{(2k)!}{(k!)2^k}$

$\Pi_{i=1}^{k}(2i-1)=\frac{(2k)!}{k!2^k}$   clearly the products are in the set of the natural numbers.  Step one show that P(1) is true  $2(1)-1=1$  True.  Step 2 induction assumption  $\Pi_{i=1}^{k}(2i-1)=\frac{(2k)!}{k!2^k}$  This is what we assume to be true.  Step 3  $P(k+1)$  $\Pi_{i=1}^{k+1}(2i-1)=\frac{(2k+1)!}{(k+1)!2^{k+1}}$  The right hand side can be reduced to $\frac{2}{2^k2}$  $\Pi_{i=1}^{k+1}(2i-1)=2(k+1) + \Pi_{i=1}^{k}(2i-1)$  which is the last product times the multiplication of all the previous products.  $=2k+1 + \frac{(2k)!}{k!2^k}$  $=\frac{(2k+1)(2k)!}{k!2^k}$  $=\frac{2k+1(2)}{2^k}$  I am not sure how to continue this proof.