Python regex: matching nested parenthesis

suppose I have a string containing substrings  # the substrings and the whole string surrounded by parenthesis string = '((substring1)(substring2))'   I want to get both substring1 & substring2 using regex, but I'm having a problem :(  This is what I have now:  match = re.search('(\(.*\))', string) print match.groups()    The problem is, the result shows:  ('(substring1)(substring2)', )     It seems like the regex matches only the first opening parenthesis and the last closing parenthesis..  In other words, the matching regex is like..  (    match.....    )   instead of   (    (match1)(match2)   )   How do I make the regex catch the INNER parenthesis??  Thanks


Move center of radial anisotropic to center of object

Is possible align the center of radial anisotropic shader with the center of the hole? I tried:   Move origin (I always think origin determines the center of anisotropic- not true) Separate tangent values and change each individual by multiply different numbers - something changes, but I was not able to move the anisotropic's center.   Any other ideas?


Is there a way to see the history of questions protected by me or another user?

Having a record of all actions taken on a site, as is provided by the "activity" and "votes" tabs of our profile, comes in handy very often. Perhaps the most common case is being able to find a question I've interacted with in the past, to see if anything has changed about it. This applies to questions a user has protected as much as anything else. Users are theoretically encouraged to unprotect questions when it's no longer necessary, as emphasized , but in practice they often do not. In many cases it's hard to blame them: unless they specifically marked it as a favourite, the site doesn't keep any record of the question to allow them to find it again. We should help users more easily review their own protections in the future.    For personal review, the votes tab is adequate, but there may also be value in displaying this publicly in the activity tab. There may be users with a history of repeatedly protecting questions over-eagerly. It would be useful to be able to review other users' protection histories to see if this is the case. Even if this is not available to regular users, it may be helpful to moderators, unless their user activity views already allow them to filter down to see this.


Difference between >> and >>> in verilog?

What is the difference between >> and >>> in verilog/system verilog? I know that == tests for only 1 and 0, while === tests for 1, 0, X, Z. So how is that similar to the shift operator?


Scientific short stay work (Schengen) visa in France but enter Italy first?

I have a Schengen visa issued by France which is type C short stay scientific work visa (visa stamp has remark: scientific researcher), But i am looking to enter italy (Rome) and drive to France. Would that be a problem (1) from entry point of view at Rome airport on Schengen short stay (but not tourism) visa, (2) traveling in Italy on Schengen short stay (but not tourism visa) point of view.  Any suggestion/comment will be helpful.  EDIT: I am planning on traveling to Italy for tourism for 3 days before my work in France starts and I was warned by visa interviewer that traveling to Italy for tourism on work visa can result in denied entry to Italy. I am an Indian national traveling from US to Europe.


What does the word perilous mean in      You could taste it; a nervous tension that came perilous close to fear?   It looks as if there should be perilously instead, meaning too (close).   Are this and similar contractions of the words in The Game of Thrones by G. Martin (from whence the quote comes) probably due to archaic or rather simplified style?


Old answers converted to comments shouldn't show up as new messages in the global inbox

A comment from 2009 has just shown up at the top of my inbox.  Initially it showed as one minute old, a few minutes later it's showing 4 minutes ago, so the time error appears to be dynamic not static. According to @Mat (presumably via 10k tools)  That comment was initially an answer (posted on Dec 9 '09 at 22:03). It was converted to a comment a few minutes ago (11:07Z) by a moderator (most likely following a flag and/or review actions), which explains the notification.  Since I already received notice of this information when it was first posted 5 years ago, adding it to my Inbox again is just noise.  Displaying a notice for it doesn't add any value and shouldn't occur.


Is the universe fundamentally deterministic?

I'm not sure if this is the right place to ask this question. I realise that this maybe a borderline philosophical question at this point in time, therefore feel free to close this question if you think that this is a duplicate or inappropriate for this forum. Anyway, I'm an electrical engineer and I have some basic knowledge of quantum mechanics. I know that Schrödinger's equation is deterministic. However, quantum mechanics is much deeper than that and I would like to learn more. If this question is not clearly answerable at this point than can anyone point out some recognized sources that try to answer this question. I would appreciate it if the source is scientific and more specifically, is related to quantum theory.


Set of intersection points in trilateration / multilateration

Like in  I will get a set of points (3 or more) with latitude, longitude and distance (in KM) information to find out the target location. A distance could be about 500 KM. The circles (unlike the above question) doesn't intersect in the same point which results in a set of points forming a region of a possible location.  Based on , I managed to write a java function that returns the set of intersection points for a set of circles (x,y,radius in CM) in the Cartesian coordinate system. But I don't know if I can adapt this function to get the intersection points of circles on the earth. Is this possible?


Unhide Windows 7 context menu extras permanently

In Windows 7, when you hold down Shift when right-clicking in Windows Explorer, extra items such as "Copy as path", "Open command window here", or more "Send to" options, are added to the context menu, depending on the item you clicked on.  Is there any way to have those extras permanently, without having to hold down Shift?  I hope it can be done without installing extra shell extensions (see below) – more thinking about a registry hack or something…  Update:  Solved for "Open command window here", not yet for "Copy as path"!    On my XP system, I used to install  only for the shell extension that comes with it, giving the ever useful 'Copy pathname', 'Copy short pathname', 'Run with command line arguments' and 'Open in DOS box' menu items, without needing to hold down Shift or any other "modifier key".


I am trying to query all the nodes which are in Potsdam city and with postcode 14480. I know that it can be coded as follows:     area["ISO3166-1"="DE"][admin_level=2]->.germany; (   node["addr:city"="Potsdam"]["addr:postcode"="14480"](area.germany); )->.r;  but I would like to use an if condotion with evaluators as shown below in the code. However, it seems that there is something wrong in the code below How can I fix it? Code:     [out:json][timeout:180]; area["ISO3166-1"="DE"]["admin_level"="2"]->.germany; (   node(     if: (t["addr:city"] == "Potsdam") && (t["addr:postcode"] =="14480")   ); );    out geom;


Is there any way to automate the process of copying the files between windows and unix without doing it manually, using tools such as winscp.  I need to copy files from unix to windows such by executing some commands in windows. I goolged it and found these tools that can do this.  ftp sftp scp pscp winscp console.   EDIT : Can I get something using pscp because I just found out that ftp is not enable in my servers.  Please suggest a way of doing it and I need to run whatever script/command in windows only for copying the unix files.  EDIT 2 : Getting this error in winscp console for sftp :  winscp> get abc.sh c:\ abc.sh                    |          0 KiB |    0.0 KiB/s | binary |   0% Can't create file 'c:\abc.sh'. System Error.  Code: 2. The system cannot find the file specified (A)bort, (R)etry, (S)kip, Ski(p) all:


Multi colored faces while in object mode

I downloaded this model as an .obj and it came with this alternate color for some of the faces. What is it and how can I remove it. Thank you.


Enable to see vote counts on the mobile app

When you're an established user you can see vote counts on the site. Evidently, you can't do that on the site, though it's useful information.


I bought a used iPhone 5 today. When I insert a Nano SIM and try to activate it, it says the previous user has locked the phone and that I need to insert a number to get it unlocked.  I bought the phone through an online site olx.com so I am not able to get in touch with the person to get it unlocked.  I hope that the phone was not stolen and sold to me. I have the bill of the phone, the charger, and knowledge that the device is still under warranty.  Any idea on how I can gain access to the device?


Will Stack Exchange respect EU's "right to be forgotten"?

If a citizen of EU would request all his questions and answers to be deleted from all Stack Exchange sites, would that request be carried out?  I'm not just talking about account deletion, where questions and answers by the user are being anonymized. I'm talking about the case where the user demands all his questions and answered be deleted.  Would Stack Exchange be doing something illegal if they refused the request?


Real life uses of Moment generating functions

In most basic probability theory courses your told moment generating functions (m.g.f) are useful for calculating the moments of a random variable. In particular the expectation and variance. Now in most courses the examples they provide for expectation and variance can be solved analytically using the definitions.   Are there any real life examples of distributions where finding the expectation and variance is hard to do analytically and so the use of m.g.f's was needed? I'm asking because I feel like I don't get to see exactly why they are important in the basic courses.


Default 'Change Password' page in Community

I want to create a custom lightning component or VF Page just like below Default 'ChangePassword' page in community.  I know that this is a standard page which we cannot modify in salesforce, that's why i wanted to create a lightning component/VF Page which should replicate the above page. Can you help me to find the code for this page? From where I can see the code for this page? or create a lightning component/VF Page for this. Regards, Pravindra


This doesn't seem to be a double negation, does it?

They walked past a mossy tree stump. Harry could hear running water; there must be a stream somewhere close by. There were still spots of unicorn blood here and there along the winding path.        "You all right, Hermione?" Hagrid whispered. "Don' worry, it can't've gone far if it's this badly hurt, an' then we'll be able ter –– GET BEHIND THAT TREE!"        Hagrid seized Harry and Hermione and hoisted them off the path behind a towering oak. He pulled out an arrow and fitted it into his crossbow, raising it, ready to fire. The three of them listened. Something was slithering over dead leaves nearby: it sounded like a cloak trailing along the ground. Hagrid was squinting up the dark path, but after a few seconds, the sound faded away.        "I knew it," he murmured. "There's summat in here that shouldn' be."        "A werewolf?" Harry suggested.        "That wasn' no werewolf an' it wasn' no unicorn, neither," said Hagrid grimly. "Right, follow me, but careful, now."       They walked more slowly, ears straining for the faintest sound. Suddenly, in a clearing ahead, something definitely moved.    (Harry Potter and the Sorcerer's Stone)    The bold part seems to be not a double negation but a dialect. Is this right?


I use declaretheoremstyle to define a theorem environment, and print a list of theorems in the end of my document:  \documentclass[12pt]{book} \usepackage[english]{babel} \usepackage[margin=2cm]{geometry}% just for the example \usepackage{xcolor} \usepackage{amsthm} \usepackage{thmtools} \usepackage{mdframed} \usepackage{etoolbox}  \declaretheoremstyle[   spaceabove=6pt, spacebelow=6pt,   headfont=\normalfont\bfseries,   postheadspace=1em,   notefont=\bfseries,   notebraces={(}{)},   bodyfont=\itshape,   shaded={bgcolor=yellow!20} ]{thmstyle}  \declaretheorem[style=thmstyle,name=Theorem]{theorem}  \begin{document}  \begin{theorem}[Somebody] ... \end{theorem}  \begin{theorem} ... \end{theorem}  \renewcommand{\listtheoremname}{List of Theorems} \addcontentsline{toc}{section}{\listtheoremname} \listoftheorems[ignoreall,show=theorem]  \end{document}   The theorems are numbered from the beginning to the end of the book, and from 1:    However, I would like to number the theorems with chapter number (like Figures or Tables), for instance, 1.1 (the first theorem in Chapter 1), 1.2 (the first theorem in Chapter 2)...  Does anyone know how to do it?


How $$ax ≡ ay\ (mod\ n)$$  ==>  $$x ≡ y\ (mod\ \frac{\ n}{gcd(a,n)})$$  How we got gcd here? Please assume I know nothing about ring theory.


Changing a Field Set programmatically in Apex

Is it possible to update/edit a field set from Apex programmatically?  We have a javascript app that connects to an Apex back end.  If possible, we want an admin to be able to update the field set we use for displaying our object directly from the app itself, but I cant find anything about doing that so I dont know if its possible


Phone stuck at boot animation after Andriod 6.0 Update

The four dot animation is endlessly running after Android 6 update in Nexus 5.


Programming with LaTeX -- Add names and characteristics

I have to do a lot of certificates and I have a list of names, every name has a characteristic (A,B or C). I have designed the whole structure for the certificate and have the 'name' and 'characteristic' in blank.   My question is if it is possible to do something like  while (i in list):  code for structure with line name = i and charactertistic = char[i]  i+=1 newpage   In LaTeX, I mean writing the list and their characteristic in the code.


I have the following command:  \newcommand{\plusbinomial}[3][2]{(#2 + #3)^{#1}}   This command takes 3 parameters and the default value of the first parameter is 2.  If I don't want to use the default value, then I would call it like this:  \[ \plusbinomial[4]{y}{y} \]   My question is, how do I define default value for all the parameters and how should I call it then?


Is $3 − 2i$ irreducible in $\mathbb Z[i]$?

I know in order to be irreducible $3-2i$ must not equal zero, it's not a unit and whenever $3-2i=ab$ then either $a$ is a unit or $b$ is a unit.  We can assume $3-2i=(a+bi)(c+di)$ for some $a,b,c,d$ in the integers and both elements are not units.  After this I am not sure where to proceed.


How to deal with multiple address layouts

I am facing a small UX obstacle, that is related on how to handle address layouts for different countries. We are building basically a sign up process, that asks the user to enter their country of residence. On the next step the user then has to enter their address details.  The input fields on this page need to adjust to the standard address layout for the users country of residence.   Is there a smart way to design a uniform address layout that feels natural for users basically anywhere on earth? (Street, No., Zip Code, City)


If $z_1,z_2,z_3 \in \mathbb{C}$ and $|z_1|=|z_2|=|z_3|$ and $z_1+z_2+z_3=0$. Prove that $z_1,z_2,z_3$ are points of a equilateral triangle

If $z_1,z_2,z_3 \in \mathbb{C}$ and $|z_1|=|z_2|=|z_3|$ and $z_1+z_2+z_3=0$. Prove that $z_1,z_2,z_3$ are points of a isosceles triangle that is on a unit circle with the center in the coordinate beginning.  The answer is given in the following manner:$$z_1=|z_1|e^{i\varphi_1}\\ z_2=|z_2|e^{i\varphi_2} \\ z_3=|z_3|e^{i\varphi_3}\\ |z_1|=|z_2|=|z_3|=|z|$$ It goes on to state that this needs to be true, which I understand why: $$|z_1-z_2|=|z_2-z_3|=|z_3-z_1|=\sqrt{3}|z|$$ and then finding $$|z_1-z_2|=....$$  $$2|z|\left|\sin\left(\frac{\varphi_1-\varphi_2}{2}\right)\right|=2|z|\left|\sin\left(\frac{ \pi }{3}\right)\right|????$$  How can we assume this??


How do I prevent changes to my PostgreSQL database?

My steps:   run the final pg_dumpall on a server prod-server-old Shut down prod-server-old for ever. copy the output to a different server (prod-server-new) Restore the db there. All traffic goes to prod-server-new now   How can I avoid modification to the database during pg_dumpall (between step1 and step2), so that modifications during this time cannot be lost?  In my case it is 100% OK to have a small down time.   There are several databases in the "cluster" (btw, I do not like the word "cluster". I guess most people think a "cluster" is a group of several computers, but in this case it means one Postgres server, which holds several databases).  My question was marked as possible duplicate to "Make Postgres database temporarily read-only (for performing volume snapshots)". I don't think it is a duplicate, since in my case is different since I don't ask for a temporary read-only state.


Linq OrderBy given multiple columns, priority order and sort direction

I have an IEnumerable for multiple sort order specification where:  public class Specification {     public string Column { get; set; }     public OrderByDirection Direction { get; set; }     public int Priority { get; set; } }      Then I have another IQueryable that I would like to lazy sort on the basis of the given IEnumerable respecting the direction and the priority. What would be the best approach to do this? are there any libraries out there that currently do this? Can someone explain how something like this can be approached with dynamic queries (expression trees)?  Note: Assume the column specified do exist in the IQueryable.


How to get a list of faces from a mesh in blender API 2.79

I'm trying to create a some code in blender where I can have it print a full list of vertices and faces for a mesh that I have selected. I'm then planning on using this list to draw out the same mesh in a another program i want to use as an add-on. I am am able to get blender to return the list of vertices in the console, but I've had no luck with the faces. I'm just starting to learn the blender API, so any help would be appreciated.  I've already looked at some older forums on a solution to this problem, but they all use a mesh.faces function, which blender says does not exist anymore. I'm getting a feeling that after some updates blender has moved it to a new class function, however, I have no idea where it is.  ## This first part works like a charm, and it prints out the vertices perfectly. obj = bpy.context.active_object v = obj.data.vertices[0] coords = [(obj.matrix_world * v.co) for v in obj.data.vertices]  plain_coords = [vert.to_tuple() for vert in coords] print(plain_coords)  ## This is the part I need help on. No matter what I try it keeps saying there is no attribute  f = obj.faces print(f)   In the bottom, I'm trying to set f to be the list of faces in obj, but it keeps saying that obj doesn't have the attribute faces.


QGIS not reading elevations from GeoTIFF created by ACADCIVIL?

I've generated a raster DEM in ACADCIVIL in TIFF format: name.tif & name.tif.aux.xml. ArcGIS reads the data correctly but QGIS sets the whole data to the same value = minimum height Looks that QGIS 3.4 doesn't support this format. Same happens on 2.18  gdalinfo output:  Driver: GTiff/GeoTIFF Files: Surface1.tif        Surface1.tif.aux.xml Size is 405, 528 Coordinate System is: LOCAL_CS["POSGAR_07_F5",     UNIT["metre",1,         AUTHORITY["EPSG","9001"]]] Origin = (5512262.832999999634922,6109047.309000000357628) Pixel Size = (1.000000000000000,-1.000000000000000) Metadata:   AREA_OR_POINT=Area   TIFFTAG_SOFTWARE=Autodesk Civil3D 2008 Image Structure Metadata:   INTERLEAVE=BAND Corner Coordinates: Upper Left  ( 5512262.833, 6109047.309)  Lower Left  ( 5512262.833, 6108519.309)  Upper Right ( 5512667.833, 6109047.309)  Lower Right ( 5512667.833, 6108519.309)  Center      ( 5512465.333, 6108783.309)  Band 1 Block=405x100 Type=Float32, ColorInterp=Gray   Min=38.088 Max=39.473    Minimum=38.088, Maximum=39.473, Mean=38.565, StdDev=0.301   NoData Value=3.4028234663852886e+38   Offset: 38.082,   Scale:0   Metadata:     STATISTICS_COVARIANCES=9.08270199017587E-02     STATISTICS_MAXIMUM=39.473079681396     STATISTICS_MEAN=38.564526756118     STATISTICS_MINIMUM=38.088008880615     STATISTICS_STDDEV=0.30137388124225     STATISTICS_VALID_PERCENT=52.86   I've changed scale to 1 --> same result File Properties --> Info Band  Number Band    No-Data    Min   Max 1    Band 1  3.40282e+38  n/a   n/a


Blender 2.8 - Moving Light Inside of an Object

I have a light inside of a wire (simple bezier curve) in Blender 2.8 and I'm wondering how I can get it to animate and move inside of the wire curve?  I'd like it to follow all the curves and loops of the wire itself.    I'm looking for a faster way than hand-animating it with individual keyframes.


Condolences from a student to a professor

I have a professor I really care about and our professional relationship as a student/teacher has been growing in a positive direction. The professor has been really kind to me in many ways including giving personal/academic advise and providing motivation towards certain goals.   My professor has been gone, without word, for an extended period of time...  I got stupid and curious, and using Google, I figured out the professor lost an important loved one.   I now feel ashamed because I know I violated the professors privacy; however, now that I know my first instinct is of empathy and to give my condolences to my professor.   Now the more I think about it, I don’t want to say anything so that I don’t disrespect our relationship, but I feel that giving my condolences is the “right” thing to do when someone you care about is in pain, but I only am aware of the situation because I already disrespected our relationship.   I’m frustrated and confused. Could any lecturers or professors give me some guidance?


How do I prove combinatorically that $\binom{r}{r}+\binom{r+1}{r}+...+\binom{n}{r}=\binom{n+1}{r+1}$?

I tried counting subsets with r+1 elements from the set {1,2,....n, n+1} which gives RHS. However I could not come up with an answer corresponding to LHS. $$\binom{r}{r}+\binom{r+1}{r}+...+\binom{n}{r}=\binom{n+1}{r+1} $$


How to draw circles around multiple row cells and column cells as shown in attached figures.  I am using Professional lay out tables... i.e. Tables in tabular environment, Table below    I am also attaching my table of interest here where I want to highlight as shown in picture  \documentclass{article} \usepackage{booktabs,multirow}  \begin{document} \centering \begin{tabular}{c c cc c } % centered columns (5 columns) \toprule &&\multicolumn{3}{c}{\textbf{J}}  \\       \cmidrule(l){2-5} &&\multicolumn{2}{c}{\textbf{$M_J=1$}}& $\textbf{$M_J=2$}$  \\       \cmidrule(l){2-4}  &\textbf{I} & $\textbf{J=1}$ &$\textbf{J=2}$ & \\         \bottomrule \multirow{2}{*}{\textbf{ $ M_I=1$ } }&I=1 &      $n_{1111}$   &   $n_{1211}$  &  $n_{1+11}$\\ &I=2 &      $n_{2111}$   &   $n_{2211}$  &  $n_{2+11}$\\  \textbf{ $ M_I=2$ } &  &       $n_{+121}$   &   $n_{+221}$  & $n_{++22}$\\ \bottomrule \end{tabular} \end{document}


Does the limit of function of two variables exist

If $(a,b) \in \Bbb R^2$ and $a+b=1$, calculate the following limit or demonstrate that there is none: $$ \lim_{(x,y) \to  (a,b)}  \frac {y\sin(\pi x)}{x+y-1}$$  I'm doing that: $\lim_{(x,y) \to  (a,b)}  \frac {y\sin(\pi x)}{x+y-1}=\lim_{(x,y) \to  (0,0)}  \frac {(y+b)\sin(\pi (x+a))}{x+y}$ $$ f(x,y)=  \frac { (y+b) \sin(\pi (x+a))}{x+y}  \Rightarrow f(0,\frac {1}{n})=  \frac{(\frac{1}{n}+b) \sin \pi a}{ \frac{1}{n}}= \sin \pi a + n b \sin \pi a  $$ I can get that : If $ a  \in  \Bbb Z \lim _{n \to \infty} f(0,\frac {1}{n})=0  $ and if $a \notin \Bbb   Z $ function doesn't limit.   Why this funtion no limit ,when $ a \in \Bbb Z  $ ?  Help me, please.


Changing property names when serializing JSON

Is there any way to set the name of the serializable field?  I'm trying to work with JIRA webhooks and I ran into an issue where their request package contains a field that is a protected keyword in Apex:  JSON  {     "toString": "A new summary.",     "to": null,     "fromString": "What is going on here?????",     "from": null,     "fieldtype": "jira",     "field": "summary" }   Class  public class Item {     public string toString { get; set; }     public string to { get; set; }     public string fromString { get; set; }     public string from { get; set; }     public string fieldtype { get; set; }     public string field { get; set; } }   When I try to save this I get an error:     unexpected token: 'from'   C# has a annotation you can add to set the serializable name: [JsonProperty(PropertyName = "FooBar")]  Not sure if apex has anything similar.


Algebraic Closure and $p$-adic completion: do they commute?

I know that the algebraic closure of $\mathbb Q_p$, which I'll denote $\overline{\mathbb Q_p}$, is not metrically complete: there are $p$-adic Cauchy sequences that do not converge. (The example I know is $\sum_{n > 0, (n,p) = 1} \zeta_n p^n$ where $\zeta_n$ is a primitive $n^{th}$ root of unity; there are plenty of others).   However, there is a proof via Krasner's Lemma - mentioned on Wikipedia , with a reference to Proposition 8.1.5 of Neukirch, Schmidt, and Wingberg's Cohomology of Number Fields - that the $p$-adic completion of the separable algebraic closure of a global field $k$ is equal to the separable algebraic closure of its completion. That is, for $k = \mathbb Q$, $\overline{(\mathbb Q_p)} = (\overline{\mathbb Q})_p$.   Why doesn't this mean that the algebraic closure of $\mathbb{Q}_p$ is complete? The example I gave above, $\sum_{n > 0, (n,p) = 1} \zeta_n p^n$ is a $p$-adic Cauchy sequence in $\overline{\mathbb{Q}}$, so it should converge to an element of $(\overline{\mathbb{Q}})_p$.   EDIT This is answered . For reference, $(\overline{\mathbb{Q}})_p$ denotes the union of all completions of number fields with respect to valuations extending the $p$-adic valuation on $\mathbb{Q}$.


How do I disable the upgrade to new version warning?

After I allowed Ubuntu on my notebook to upgrade to 13.4, it lost Wi-Fi connection. Network menu does not show wireless access points, but according to syslog it establishes connection. Also, the wireless router provides IP address to the host. I don't want to spend time on debugging and solving the problem that most probably will reappear with new update, so I decided to reinstall 12.10 version. It recognized Broadcom Wi-Fi modem right after the boot, and everything went great, until today I powered it on and suddenly found that it is running 13.4 and all my problems are back!  Is it possible to instruct it to stay with 12.10 until I decide to upgrade?


Extract coordinates from polyline in QGIS

I have a shapefile with 64 lines with the metadata:  General: Storage type of this layer: ESRI Shapefile Source for this layer: C:/Users/toke.nielsen/Desktop/lines.shp Geometry type of the features in this layer: Line The number of features in this layer: 64 Editing capabilities of this layer: Add Features, Delete Features, Change Attribute Values, Add Attributes, Delete Attributes, Create Spatial Index, Fast Access to Features at ID, Change Geometries Extents: In layer spatial reference system units : xMin,yMin 563677.42,6223900.13 : xMax,yMax 568136.66,6227899.44 Layer Spatial Reference System: +proj=utm +zone=32 +datum=WGS84 +units=m +no_defs   How do I export the coordinates from these lines to a .csv file? I have tried to write GEOMETRY=AS_XY in the layer options when creating the .csv and I have tried the vector->geometry tools->export/add geometry columns, but then I only get the length of each line.


Can I use a one time pad key twice with random plaintext?

I understand the basics of OTP: $|\text{key space}| = |\text{plaintext space}|$ implies perfect security, key reuse destroys this.  Cryptanalysis on the $N$-Time Pad for $N > 1$ involves finding patterns in the ciphertext; this, however, all seems based on the premise that patterns exist in the plaintext (e.g. English language).  My question is: if $m_1$ and $m_2$ are two truly random strings, and they are both encrypted with the same OTP key to yield $c_1$ and $c_2$, is it possible to recover $m_1$ and $m_2$ from $c_1$ and $c_2$?  In other words: while "perfect security" (aka perfect indistinguishability) is obviously lost (constructing a distinguisher for two messages is trivial), is the plaintext still safe?


I am attempting to install the lxdm package for debian (wheezy). Running apt-get update does not yield any errors, and my sources.list file is as follows:  deb http://ftp.us.debian.org/debian/ wheezy main deb-src http://ftp.us.debian.org/debian/ wheezy main  deb http://security.debian.org/ wheezy/updates main deb-src http://security.debian.org/ wheezy/updates  deb http://ftp.us.debian.org/debian wheezy-updates deb-src http://ftp.us.debian.org/debian/


I followed the steps suggested by @kazuhito and it is set to the GRASS folder. However when I close, I get error message. GRASS Folder is set  Error message when attempting to Close - have to Cancel instead    Original Question This is branched off from  I installed `QGIS Standalone Installer Version 2.18 (64 bit) from . Then I went to  to install GRASS GIS 7.2.1 (current stable) No matter what I try, every time I run v.clean I get same error:  This algorithm cannot be run :-( GRASS folder is not configured. Please configure it before running GRASS algorithms.  How to fix this?


I am measuring serverPerformance.  Right now I get this in milliseconds but I want to convert this into seconds when it is more or equal to 500 milliseconds.  I Accomplish this like this     public static string ConvertMillisecondsToSeconds(long milliseconds)     {         if(milliseconds >= 500)             return Math.Ceiling(TimeSpan.FromMilliseconds(milliseconds).TotalSeconds).ToString() + "s";          return milliseconds.ToString() + "ms";     }   My problem  When I return totalseconds without Math.ceiling I get for example: 0,846 seconds When I use math.Ceiling method I get 1 second.   Desiered result     0,8 seconds.   basically im searching for a method that will return a decimal value, with 2 decimals.


How can I get my textures to export from blender (Specifically to unity)

So I made a robot character in blender and I want to use it in unity. However, whenever I export it and add it to unity the textures don't work. I've tried a lot of ways to fix it, but nothing seems to work. I could really use some help with this since I can't find anything that actually works online.


Getting rid of paragraph identation after a figure

I'm writing my thesis with ShareLaTeX and is having a problem. For some weird reason, I now have a random indentation at the beginning of a paragraph under a float. I have used numoures floats before and not had a single issue, so I don't know what causes this. Any ideas on how I can solve it?


How to delete a pdf file if it does not contain text?

I want to erase all pdf files that do not contain text. I tried to use a PdfBox. Method pdftoText converts pdf to String.   public static void main(String[] args) throws FileNotFoundException, InterruptedException {               String pdfText = PDFTextParser.pdftoText("xxx.pdf");                                        //files[i]);             if (pdfText == "") {                 File toBeDeletedFile = new File(location+"xxx.pdf");                 if (toBeDeletedFile.delete()) {                     System.out.println("success");                 }                 else {                     System.out.println("still there");                 }             }           }   }   This did not bring any results


Number of ways to choose $n$ balls from $3n$ balls, distinguishable/indistinguishable.

The question I am stuck on is 'how many ways can I choose $n$ balls from $3n$ balls, with $n$ indistinguishable black balls, $n$ indistinguishable white balls, and $n$ distinguishable coloured balls.'   I have been thinking about this problem for some time but can't get very far, I am used to questions about just distinguishable or indistinguishable objects, but I am not familiar with a problem involving both.  I think that there are $n+2$ 'colours' where within the colours all the balls are indistinguishable, but I don't really know where to go from there so any hints would be much appreciated.


I know this question has been asked a million times, but none of the things I've tried from other answers have worked. I've got a Caicos HDMI Audio [Radeon HD 6400 Series] audio device and I've installed "PulseAudio Volume Control" after reading this thread  and I can see "Radeon HD 6400" listed in the output devices and see the volume meter moving when I try to playback audio, but nothing comes through the speakers. aplay -l outputs:    **** List of PLAYBACK Hardware Devices **** card 0: SB [HDA ATI SB], device 0: VT1708S Analog [VT1708S Analog]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 0: SB [HDA ATI SB], device 3: VT1708S Digital [VT1708S Digital]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 1: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]   Subdevices: 1/1   Subdevice #0: subdevice #0       I can also see the "output bar" moving as if it were playing audio, but still no sound from the speakers...  Any ideas?    Thanks in advance, Dan


biblatex - Consistent numbering in split bibliographies

I have a document in which the bibliography is splitted via categories. I would like to reference to the elements by numbers [1]. Inside each bibliography, the entries should be sorted by year-name-title (ynt), but the numbers in the first bibliography should be smaller than the numbers in the second one.  MWE:  \documentclass{article}  \usepackage[sorting = ynt,bibstyle=numeric]{biblatex} \usepackage{filecontents}  \begin{filecontents}{\jobname.bib}     @book{a,         author = "I",         year = "1973"     }     @book{a2,         author = "I",         year = "1923"     }     @book{b,         author = "You",         year = "1959"     } \end{filecontents}  \addbibresource{\jobname.bib}  \DeclareBibliographyCategory{own}  \begin{document}  \nocite{a,a2} \addtocategory{own}{a,a2} \nocite{b}  \printbibliography[category=own,title={A}] \printbibliography[notcategory=own,title={B}]  \end{document}   Now, the order of the numbers in the bibliography is "[1],[3]" in the first list, and "[2]" in the second list. This looks odd and if there are more items, one has to search through both lists in order to find a reference. I would like to have "[1],[2]" in the first list and "[3]" in the second list.  An option is to add a "presort" key to the corresponding entries in the bib-file, but I would like to not touch the bib-file. Is there, e.g., any possibility to add the "presort" key afterwards in the tex-file? Or can biblatex sort by category (I searched the manual but did not found any clue)?


Totem sidebar gone after upgrade (playlist)

I just noticed that my totem video player doesn't have a sidebar with playlist anymore.   I didn't use totem for some time, so I am not sure which ubuntu upgrade was responsible for it, now I am using vivid.   Is there any way to get the sidebar back including the playlist?  If not, what were the reasons to remove the playlist sidebar?  Edit  apt-cache policy totem gives  totem:   Installed: 3.14.3-0ubuntu0.1   Candidate: 3.14.3-0ubuntu0.1   Version table:  *** 3.14.3-0ubuntu0.1 0         500 http://archive.ubuntu.com/ubuntu/ vivid-updates/main amd64 Packages         100 /var/lib/dpkg/status      3.14.2-0ubuntu1 0         500 http://archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages


I have been working on a software where there is a section to promote and/or demote other users.  For last two days, I have been thinking and searching for a common term to group both of these terms together but it seems like I am out of luck or I am searching in the wrong direction.    I was wondering if anyone is aware of a proper term or word which can convey the meaning of promotion/demotion or level change on itself without requiring any further explanation to the user?   Update  To make it clear, it's promotion/demotion just like done in school. So Level, Rank etc are out of question.  Also the term will be better suited if it's a verb for Promotion/Demotion.


Prove that a certain entire $f$ is constant

Let $f$ be an entire function such that there exists $z_0, z_1$ $\mathbb{R}$-linearly independent so that $\forall z \in \mathbb{C}\ f(z+z_0)=f(z)=f(z+z_1)$. Prove that $f$ is constant.  I know that $f(z_0) = f(z_1) = f(0)$, so I guess I should prove that f is equal to $f(0)$ in a set with an accumulation point, but I don't know what to do next. Also, $f(z) = f(a z_0+b z_1)\ \forall\ a,b\ \in \mathbb{Z}$  Any hints?


how to create a custom master page in sharepoint online

I would like to change the two default master pages and customize a new master page.But I can't understand how to do it.Please suggest me.


what comes before "for i in range (...)"

I have a simple question, looking at the following code:  letters = [hand[i]][:1] for i in range(5)]  What does the argument before 'for I in range(5)' do?? I can't seem to figure it out.


Symbols do not copy correctly from latex pdf to ms word

I have text containing 3 symbols in pdflatex and produce pdf. It is OK. Then i copy these symbols and paste in MS word 2013 and have another symbols or from one symbols two are produced:     Before   z { ^𝑊      After   ---   Here is tex text:  \documentclass[12pt]{article}  \usepackage[utf8]{inputenc} \usepackage{cmap} \usepackage[T1,T2A]{fontenc}    \usepackage[english,russian]{babel} \usepackage{amsmath} \usepackage{amssymb}  \begin{document}  before  $\digamma$   %  after copy from pdf  to MS WORD:  z  $\varkappa$  %  after copy from pdf  to MS WORD:   {  $\hat{W}$    %    after copy from pdf  to MS WORD:  two symbols  after  \end{document}      Environment:   Windows 7 Miktex 2.9 Texworks pdflatex   Question: it is not good for users to have such pdf, how to improve situation?  Thank for your comment about post  "Copying LaTeX from a PDF"  But it is not the same. I need the same utf8 code of these symbols in pdf (before copying) and in any rich editor (after copying), for example in ms word. It is simple: somebody will find article in pdf in internet and will take part of the text in his own information base, there it must seen exactly the same as he previousle saw in pdf version. BUT in post "Copying LaTeX from a PDF" the goal was to go back to latex code, i tried the example by Stephan Lehmke - after copying we have really latex code: $$f:\mathbb {R}\rightarrow \mathbb {R}$$ - this is not my goal.      That is, the currently accepted duplicate would put the LaTeX code into the clipboard if I copy the mathematics from the PDF.  This is not what I want.  When I copy the PDF output of $f : \mathbf{N} \to \mathbf{Z_8} \cross \mathbf{Z_16}$, I would like to paste it into another application and see something like     f : N → Z8 × Z16


Relay(or Alternative of relay) without pull-back feature

Generally relay triggers when current passes through its coil. When current stops flowing, moving terminal of relay is pulled back into the default situation. I need relay, once triggered, to remain in that situation only regardless of the current. In short, I want the relay without spring. I am pretty sure that this kind of relay doesn't exist, but there must be a component which satisfies this requirements. I mostly work on Digital and FPGA side, so I don't have enough knowledge about Analog.If anyone can suggest me a component which fits here, it will be very helpful for me


How to level up characters in D&D 5th edition?

I'm a new dungeon master, and I'm looking to find out how to level up my players characters to level 2 after they defeated a few monsters. How would I go about doing this? I have no experience in the matter and am really only dungeon mastering my first game I have ever played because I have the time on my hands for research and love story building.


Why does the Lasso provide Variable Selection?

I've been reading , and I would like to know why the Lasso provides variable selection and ridge regression doesn't.  Both methods minimize the residual sum of squares and have a constraint on the possible values of the parameters $\beta$. For the Lasso, the constraint is $||\beta||_1 \le t$, whereas for ridge it is $||\beta||_2 \le t$, for some $t$.  I've seen the diamond vs ellipse picture in the book and I have some intuition as for why the Lasso can hit the corners of the constrained region, which implies that one of the coefficients is set to zero. However, my intuition is rather weak, and I'm not convinced. It should be easy to see, but I don't know why this is true.  So I guess I'm looking for a mathematical justification, or an intuitive explanation of why the contours of the residual sum of squares are likely to hit the corners of the  $||\beta||_1$ constrained region (whereas this situation is unlikely if the constraint is $||\beta||_2$).


What is the point of a polymorphic reference in Java?

I'm relatively new to the topic of polymorphism and inheritance, but I've had a burning question. Consider this code:   public class Food {     public static void eat() {         System.out.println("This food is great.");     } }  public class Cake extends Food {     public static void eat() {         System.out.println("This cake is great.");     } }   Of course, you could instantiate a Cake object like this:   Cake c = new Cake();   but I've also been told you could instantiate a Cake object like this:  Food c = new Cake();   My question is: What's the difference between the two? I do not see the point of the second one but I'm sure there has to be a situation where it would be useful?


So, I'm very new to Apple products and am feeling a bit naive about it all - so, forgive me if this sounds a bit stupid!  I am thinking about purchasing a used iPod touch 5th gen 64gb and I am wondering how a factory reset is done and if I can do it myself or if I would need to take it to a store. As well as how much does a reset do? Does it remove the previous user's junk?


I write program to get data(text) from json and show it in list view , i write the code and its working but now i get url of image with json but i dont know how to show the image in list view with image view , please help me  here is my code  MainActivity:  public class MainActivity extends ListActivity {  private ProgressDialog pd; JSONParser jParser=new JSONParser(); ArrayList<HashMap<String,String>> P; JSONArray s=null; private final String url="http://192.168.1.4:81/upload/travel.php";   @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); P = new ArrayList<>(); new travel().execute();  }  @Override protected void onListItemClick(ListView l, View v, int position, long id) { super.onListItemClick(l, v, position, id); String id_code=((TextView)v.findViewById(R.id.id_code)).getText().toString(); Intent in=new Intent(MainActivity.this,ADD.class); in.putExtra("id",id_code); startActivity(in);  }  class travel extends AsyncTask<String,Void,String>{  @Override protected void onPreExecute() {     super.onPreExecute();     pd=new ProgressDialog(MainActivity.this);     pd.setMessage("login");     pd.show(); }  @Override protected String doInBackground(String... params) {      List<NameValuePair> parms=new ArrayList<>();     JSONObject json=jParser.makeHTTPRequest(url,"GET");      try {         int t=json.getInt("t");         if(t==1){             s=json.getJSONArray("travel");             for(int i=0;i<s.length();i++){                 JSONObject c=s.getJSONObject(i);                 String id=c.getString("id");                 String companyname=c.getString("companyname");                 String cod=c.getString("cod");                 String bign=c.getString("bign");                 String stop=c.getString("stop");                 String date=c.getString("date");                 String time=c.getString("time");                 String price=c.getString("price");                 String url_image=c.getString("url_image");                  HashMap<String,String>map=new HashMap<String,String>();                 map.put("id",id);                 map.put("companyname",companyname);                 map.put("cod",cod);                 map.put("bign",bign);                 map.put("stop",stop);                 map.put("date",date);                 map.put("time",time);                 map.put("price",price);                 map.put("url_image",url_image);                  P.add(map);              }         }else {             Toast.makeText(MainActivity.this,"No Data Found",Toast.LENGTH_SHORT).show();         }       } catch (JSONException e) {         e.printStackTrace();     }      return null; }  @Override protected void onPostExecute(String s) {     super.onPostExecute(s);     pd.dismiss();     runOnUiThread(new Runnable() {         @Override         public void run() {             ListAdapter adapter = new SimpleAdapter(MainActivity.this, P, R.layout.item_list,                     new String[]{"url_image","companyname", "cod", "bign", "stop", "date", "time", "price"},                     new int[]{R.id.id_code,R.id.companyname, R.id.cod, R.id.bign, R.id.stop, R.id.date, R.id.time1, R.id.price});               setListAdapter(adapter);         }     });  }  } }


No homomorphism from $Z_{16}\oplus Z_{2}$ onto $Z_{4}\oplus Z_{4}$.

For some reasons, homomorphism is a very hard area for me to make improvements. I've been hitting the brick wall for almost 2 hours.   Prove that no homomorphism exists from $Z_{16}\oplus Z_2$ onto $Z_4\oplus Z_4$.  Assume a homomorphism $\phi$ exists from $Z_{16}\oplus Z_2$ onto $Z_4\oplus Z_4$. Then $\phi$ is an isomorphism.  Note that the $\left | \ker \phi \right |=2$ The $\ker \phi$ is also a normal subgroup for $Z_{16}\oplus Z_{2}$. We want possible normal subgroup of order 2. I.e., 2 elements in each normal subgroups.  By Lagrange's theorem, the order of each element in a group divides the order of a group so the possible order of the elements are 1 or 2. If the elements has order 1, then the Ker \phi cannot have 2 elements.  Hence, $\ker\phi$ = $\left \{ (0,0),(8,0) \right \}$ ,$\left \{ (0,0),(0,8) \right \}$,$\left \{ (0,0),(8,1) \right \}$, possibly.  By the First isomorphism theorem:  $\phi: Z_{16}\oplus Z_2 \rightarrow Z_2\oplus Z_2$  $\Psi: G/\ker \phi \rightarrow \phi\left ( Z_16\oplus Z_2 \right )=Z_2\oplus Z_2$  $g\ker \phi  \mapsto \phi(g)=\Psi(g\ker \phi)$  Any help is appreciated.  Edit: I know that $(2,0)$ has order $8$ in $Z_{16}\oplus Z_{2}$ but any elements in $Z_{4}\oplus Z_{4}$ does not have order $8$ which would have solved the question at the outset. But I would like a different route.


Gparted can't resize Ubuntu. Want to resize it so that I can install Windows

I want to resize this part:   I installed Ubuntu 16.04 and I want to resize this and give an empty memory so that I can install Windows 10. However, I can't resize it and don't know why.


MySQL Where IN while also looking for anything that has the value with any amount of 0's preceeding it.  I am trying to do a   select *  from table  where acol IN (1,2,3,4,5);   I would also like to return anything that has 001, 0002, 03, 00004 etc.  Any help appreciated!


I have had Ubuntu 14.04 for a couple of weeks now with no problems.  Then suddenly, I started my computer up, logged into Ubuntu and it only showed my wallpaper.  There were no icons and the terminal didn't work.  I had made no changes to my computer and it was working fine when I logged in only an hour before.  I have a dual boot with windows 7 (which is working fine.)  I can still access my files using Ctrl + Alt + F2 and shut down but is there any way to fix this problem? Thanks


Ubuntu 16.04 error run 'apt-get -f install' to correct these

I tried to upgrade using apt-get upgrade and got this error message:  insserv: Starting DbSecuritySpt depends on monit and therefore on system facility `$all' which can not be true! insserv: Starting DbSecuritySpt depends on monit and therefore on system facility `$all' which can not be true! insserv: Starting DbSecuritySpt depends on monit and therefore on system facility `$all' which can not be true! insserv: exiting now without changing boot order! update-rc.d: error: insserv rejected the script header dpkg: error processing package util-linux (--configure):  subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing:  util-linux E: Sub-process /usr/bin/dpkg returned an error code (1)  If I tried to remove util-linux getting below error   root@e2e-34-223:~# apt-get remove util-linux Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies:  linux-image-4.4.0-31-generic : Depends: initramfs-tools but it is not going to be installed or                                          linux-initramfs-tool                                 Recommends: grub-pc but it is not going to be installed or                                             grub-efi-amd64 but it is not going to be installed or                                             grub-efi-ia32 but it is not going to be installed or                                             grub but it is not going to be installed or                                             lilo but it is not going to be installed  linux-image-4.4.0-31-lowlatency : Depends: initramfs-tools but it is not going to be installed or                                             linux-initramfs-tool                                    Recommends: grub-pc but it is not going to be installed or                                                grub-efi-amd64 but it is not going to be installed or                                                grub-efi-ia32 but it is not going to be installed or                                                grub but it is not going to be installed or                                                lilo but it is not going to be installed  policykit-1 : Depends: libpam-systemd but it is not going to be installed  systemd : Depends: util-linux (>= 2.27.1) but it is not going to be installed            Recommends: libpam-systemd but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


Is it possible to restrict SQL Server DB_Owner when connecting using SQL Server Mgt Studio?

Here is the back story. A developer created an EXE program. The exe program has the ability to access a SQL Servre database. In order to do that we create an Active Directory group. Let's call this group AppAdmin. The EXE program use windows integrated security to connect to the SQL Server database.  In order to use this EXE program, the user must belong to the APPAdmin group. The AppAdmin group then now set the membership as DB_Owner for the database. This setup has been like this for a few years. and it is running fine. The user is only limited to what the EXE program can do.   Now here is the complication. One user one day decided to install SQL Server Management Studio Express. Let's call this guy JOE. and JOE is a member of APPAdmin group.  Now I am assigned to find away to protect the database from JOE breaking it using SQL Server Management Studio.    I am wondering if there is a way to restrict JOE when he is connecting using SQL Server Management Studio?   What are you suggestion ??  Changing this EXE program seems to be out of the question because it is big and I might break it if I start changing how the EXE program connect to the SQL Server database  Thank you


Quotient modules isomorphic $ \Rightarrow$ submodules isomorphic

Suppose $M$ is a module, $H$ and $K$ submodules.   If $$M/H \cong M/K$$ can I conclude that $H \cong K $ ?   If not, how to construct a counterexample ?


Difference between defining classes in different ways in JavaScript

What is the difference between defining classed in the following ways?  1)  var parentCls = {     name:'John',     callMe : function (){         alert('Method gets called');     } } parentCls.callMe();   2)  function parentCls(){     this.name='John';     this.callMe = function (){         alert('Method gets called');     } } parentCls.CallMe()   Thanks


How to fix undefined reference to in my case?

I compile the code like so: c++ .\Run.cpp .\Vector.cpp The Vector.cpp and the Vector.h are in the same folder.. I've seen many threads about this problem, but they didn't help, im sure that there is a miniature problem but i can't see it... Thank you for the help!  This is the Vector.h  #ifndef VECTOR_H #define VECTOR_H #include <iostream>  template <class T> class Vector { private:     T *data;     size_t size;  public:     Vector() : data(nullptr), size(0) {}     Vector(const Vector<T> &v);     ~Vector();     Vector<T> &operator=(const Vector<T> &v);      void push_back(T el);     void push_front(T el);     void erase(size_t i);     void clear();      bool contains(T el);     T &operator[](size_t i);     size_t length(); };  template <class T> std::ostream &operator<<(std::ostream &os, const Vector<T> &v);  #endif   This is the Vector.cpp  #include "Vector.h" #include <iostream>  template<class T> size_t Vector<T>::length(){     return size; }  template<class T> T &Vector<T>::operator[] (size_t i){     return data[i]; }  template<class T> Vector<T>::Vector(const Vector& v) {     data = new T[v.size()];     for (size_t i = 0; i < v.size; i++)     {         data[i] = v[i];     }     size = v.size(); }  template<class T> Vector<T> &Vector<T>::operator= (const Vector& v){     if(this != &v){         delete data;         data = new T[v.size];         for (size_t i = 0; i < v.size; i++)         {             data[i] = v[i];         }         size = v.size();     }     return *this; }  template<class T> Vector<T>::~Vector(){     delete data; }  template<class T> void Vector<T>::push_back(T el){     T* newData = new T[size+1];     for (size_t i = 0; i < size; i++)     {         newData[i] = data[i];     }     newData[size] = el;     size++;     delete data;     data = newData; }  template<class T> void Vector<T>::push_front(T el){     T* newData = new T[size+1];     for (size_t i = 0; i < size; i++)     {         newData[i+1] = data[i];     }     newData[0] = el;     size++;     delete data;     data = newData; }  template<class T> void Vector<T>::erase(size_t _i){     T* newData = new T[size-1];     for (size_t i = 0, j = 0; i < size; i++, j++)     {         if(i == _i){             i--;             continue;         }         newData[i] == data[j];     }     --size;     delete data;     data = newData; }   The run.cpp  #include "Vector.h" #include <iostream> using namespace std;  int main(){     Vector<int> v;     v.push_back(4);     cout << v << endl;     return 0; }   The errors:  undefined reference to Vector<int>::push_back(int), undefined reference to std::ostream& operator<< <int>(std::ostream&, Vector<int> const&), undefined reference to Vector<int>::~Vector(), undefined reference to `Vector::~Vector()'


Add comment triggers fail in first post review audit?

Link:   I was going to add a comment for the guy to post his solution as an answer!  Come on! :-)  Now, seriously, why do you assume adding a comment is a bad review in this cases?  Post link:


Example of function that is differentiable, but the second derivative is not defined

Is there an example of function that is differentiable at $a$, but the second derivative is not defined at $a$? I bet that this is not possible, because if the function is differentiable then it is smooth and the slope is not vertical, so the only way the second derivative to be not defined is if the slope of the first derivative is vertical. That means that the rate of change is ambiguous at $a$, since there are at least two points almost equal for the same $x$, so I bet that such function doesn't stand a chance not even in the real world, but also in the wonderword of math. Prove me wrong!


How to remove a .pdf's document restrictions?

I need to remove some restrictions from a .pdf document:    I can't zoom or use any other buttons. The toolbar just isn't available. I never saw a .pdf file like this one.


WPF ResourceDictionary in other assembly

I've created a ResourceDictionary in WPF for all my styles of the application. Because there are much of them, I store them in a different assembly. I've now imported the Dictionary in App.xaml and declared the namespace in my application. But how can i use the styles? Window: xmlns:style="clr-namespace:namespace;assembly=assemblyname" App.xaml: <Application.Resources>     <ResourceDictionary>         <ResourceDictionary.MergedDictionaries>             <ResourceDictionary Source="pack://application:,,,/assemblyname;component/Styles.xaml"/>         </ResourceDictionary.MergedDictionaries>     </ResourceDictionary> </Application.Resources>  Does I also need to declare it in the <Window.Resources>-block?


Would be possible if tachyonic existed to send info to the past or see the future? since the tachyons according to special relativity could travel to the past?  i have searched in wikipedia and the most accurate info was this link    if so could we use the spin of tachyons to send bits of information to the past? :D


Hypernym for buildings, fossils, spiders and particles

Edited in response to answers/comments.  I'm trying to find a term (other than 'objects' or 'things') which I can use to describe the commonality of substance which all the things that have been named after Nelson Mandela - which include inanimate objects such as buildings, 3.5-million-year-old species of woodpeckers, a species of spider discovered in 2002, and a nuclear particle - share in common.  Suggestions which touch on their common attribute of being named after Mandela are useful, but not what I'm after.  The word could be used in a context such as 'Many xxxxxs are named after NM' or 'NM had many xxxxxs named after him.'  Any ideas?


$$\int \dfrac{1+x^4}{(1-x^4)^{3/2}} dx$$   Attempt:   Multiplied and divided numerator by $x^2 $ to get $\displaystyle\int \dfrac{x^2+x^6}{(x^3 - x^7)^{3/2}} dx$ but the problem here is the $-$ sign before $x^7$ otherwise the numerator would have been the derivative and I could've done u- substitution.   How do I proceed with it? Need a minor hint.


How to reverse the pagination numbers of an archive?

I have archive pages that each contain titles and excerpts from 10 blog entries. Both entries and archive pages are in reverse chronological order:   when a new blog entry is written its title and excerpt go to the top of the front page; when you are on one page and you click through to "Next page", you get the titles and excerpts for the 10 previous blog entries.   This is pretty standard for blogs.  But the archive pages are numbered by default in the same order. Thus Page 1 contains excerpts from the most recent 10 entries, Page 2 contains excerpts from the next 10 most recent, etc.  To be clear: at the moment, "Next page" refers to the page with the next higher number. Thus the front page, which contains excerpts from the most recent entry and the nine next most recent entries, is labelled Page 1, and the 10 entries posted before those 10 entries are on Page 2.  I need the page-numbering the other way round, namely in direct chronological order, so that for example if there are 97 entries then   entries 28-37 would be excerpted on Page 4, and the PREVIOUS page from there, containing excerpts from entries 18-27, would be called page 3.   How can I achieve this, whether by amending functions.php in the child theme (preferably), by writing a "Snippet" (next most preferred), or by amending archive.php in the Astra parent theme directly (least preferred, because of possible update problems)?  Edit  The following isn't a solution but it may be part of one. This re-numbers pages into direct chronological order, but unfortunately it also reverses the order in which they are shown (from reverse chronological to direct chronological). So it causes the front archive paget to contain excerpts from the earliest posts rather than the latest ones!  <?php  add_filter('pre_get_posts', 'posts_by_forward_date');  function posts_by_forward_date($query) {   if(is_archive() || is_home()) {     $query->set('order', 'ASC');   } } ?>


Backgrounder:  The  (Pointer to IMPLementation) is a technique for implementation hiding in which a public class wraps a structure or class that cannot be seen outside the library the public class is part of.  This hides internal implementation details and data from the user of the library.  When implementing this idiom why would you place the public methods on the pimpl class and not the public class since the public classes method implementations would be compiled into the library and the user only has the header file?  To illustrate, this code puts the Purr() implementation on the impl class and wraps it as well.  Why not implement Purr directly on the public class?  // header file: class Cat {     private:         class CatImpl;  // Not defined here         CatImpl *cat_;  // Handle      public:         Cat();            // Constructor         ~Cat();           // Destructor         // Other operations...         Purr(); };   // CPP file: #include "cat.h"  class Cat::CatImpl {     Purr(); ...     // The actual implementation can be anything };  Cat::Cat() {     cat_ = new CatImpl; }  Cat::~Cat() {     delete cat_; }  Cat::Purr(){ cat_->Purr(); } CatImpl::Purr(){    printf("purrrrrr"); }


Ordering of Sites on SE Reputation Leaderboards

So I was on an aimless stroll through the  and planning to usurp the Shog  when I figured I'd shift to another site to be more productive. Only my productivity was shot when I saw this:    Yes indeed, randomly ordered sites in the horrible Windows default font causing incredible confusion and inability to actually use the menu to migrate. While the main leaderboard site is fine since you can search, this dropdown certainly isn't near as user friendly. So I was forced to point out this horrible travesty. Please put it in alphabetical order for the dropdown, so that it operates in a manner that anyone sane would expect it to. In reality I doubt that feature is used often, if ever, and navigating by typing the first letter of the site name does work, if oddly, so it isn't as if it's something urgent, but yikes that's a badly designed dropdown!


So I’ve been doing some research & realised that they done the double slit experiment with large molecules and the molecule behaved as a wave , so does this mean that all matter is really just a wave that becomes concentrated energy when observed ? Is the mind what is holding the physical world together ? If we are not looking is the universe just an ocean of information ? If we are waves then waves of what kind ? Everything in the universe is electromagnetic so does this not imply that we are made of electromagnetic waves capable of moving at light speed ? Brain waves are definitely electromagnetic so what does this entail ? Is our consciousness/mind made of light ? This would explain how people have transcended space/time through meditation . Just a few questions I’d like to hear the answers too .


References not getting listed when using Biblatex approach

I am a beginner when it comes to Latex. I am using MikTex TexWorks on Windows. I have already seen  post   However it seems I am still missing something when it comes to Biblatex approach and that's what I am specifically interested in.  Here's my simple code .tex file  \documentclass[11pt,a4paper]{article} \usepackage{multicol} \usepackage[style=alphabetic]{biblatex} \addbibresource{myref} \DeclareNameAlias{default}{first-last}  \begin{document} This is a sample document. This is a sample document. This is a sample document ~\cite{Ref1}.  This is a sample document. \\  \printbibliography  \end{document}    and my myref.bib file in the same folder is   @Article{Ref1,   author =   {First, Last},   title =    {Sample Article},   journal =  {Journal 1},   year =     {2006} }   For @Article I believe these are a must to be included.  In MikTex it runs without any errors and generates the PDF, but reference is missing.  This is the PDF output. I am wondering where am I making a mistake. I am a beginner and am learning by following other examples already available.


As the title says, here is the blend file, the problem is present both in cycles and blender render.  I can see the model in rendered view, but when I render it, the render shows up blank.    Blend File:


Hard surface modeling - topology problem

Don't know why the problem occurs.  after smooth shading, this appears  I need an edge loop there for the sharp edge of the gun cut-out.


Issues installing python 3.7 and its packages

What I would love from this question is advice please on   best way to install python 3.7 as the default python best way to install packages   I'm very new to the command line. I'm in the middle of a Data Science boot camp and trying out some things on Ubuntu, however, many of the commands we're learning don't seem to be installed (including the installer...).  e.g. python   iboopedu@CODE1026:/mnt/c/Users/shane$ python  Command 'python' not found, but can be installed with:  sudo apt install python3 sudo apt install python sudo apt install python-minimal  You also have python3 installed, you can run 'python3' instead.   e.g. pip  iboopedu@CODE1026:/mnt/c/Users/shane$ pip install python  Command 'pip' not found, but can be installed with:  sudo apt install python-pip  iboopedu@CODE1026:/mnt/c/Users/shane$ sudo apt install python-pip [sudo] password for iboopedu: Sorry, try again. [sudo] password for iboopedu: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package python-pip   e.g. virtualenv  iboopedu@CODE1026:/mnt/c/Users/shane$ virtualenv test  Command 'virtualenv' not found, but can be installed with:  sudo apt install virtualenv  iboopedu@CODE1026:/mnt/c/Users/shane$ sudo apt install virtualenv Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package virtualenv   Troubleshooting  I also use a Mac, and on Terminal and all of the above commands work fine without any special set-up or install, running python from Anaconda.  Given this, I've attempted to replicate running python from Anaconda on Ubuntu.   I've tried the following without success:   Changed PATH manually to include Anaconda's python.exe   iboopedu@CODE1026:/mnt/c/Users/shane/Documents$ echo $PATH /mnt/c/Users/shane:/mnt/c/Users/shane/Anaconda3/Library/bin:/mnt/c/Users/shane/Anaconda3/Scripts:/mnt/c/Users/shane/Anaconda3:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program Files/WindowsApps/CanonicalGroupLimited.UbuntuonWindows_1804.2018.817.0_x64__79rhkp1fndgsc:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Program Files (x86)/Windows Live/Shared:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Program Files (x86)/GNU/GnuPG/pub:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Windows/System32/OpenSSH:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:/mnt/c/Users/shane/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/shane/AppData/Local/Programs/Microsoft VS Code/bin:/snap/bin    Reinstalled Anaconda with install option to auto add Anaconda to PATH   iboopedu@CODE1026:/mnt/c/Users/shane$ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program Files/WindowsApps/CanonicalGroupLimited.UbuntuonWindows_1804.2018.817.0_x64__79rhkp1fndgsc:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Program Files (x86)/Windows Live/Shared:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Program Files (x86)/GNU/GnuPG/pub:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Windows/System32/OpenSSH:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:/mnt/c/Users/shane/Anaconda3:/mnt/c/Users/shane/Anaconda3/Library/mingw-w64/bin:/mnt/c/Users/shane/Anaconda3/Library/bin:/mnt/c/Users/shane/Anaconda3/Scripts:/mnt/c/Users/shane/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/shane/AppData/Local/Programs/Microsoft VS Code/bin:/snap/bin   That's where I am, hopefully someone can help! Thanks in advance.


Why indefinite article with "imagination"?

Imagination can't be counted. But I have seen some people using the indefinite article in front of imagination.  For example, "Everyone has an imagination."  What makes that correct, grammatically?


Is the logarithm of an expectation the same as the expectation of the logarithm?


How does linux store the mapping folder -> file_name -> inode?

Just started reading a bit about the linux file system. In several places I found quotes like this one:      Unix directories are lists of association structures, each of which contains one filename and one inode number.   So I expected to find out that each directory would contain the names of the files under it, with each file mapped to an inode. But when I do vim directory_name in ubuntu, I get something like this:  " ============================================================================ " Netrw Directory Listing                                        (netrw v156) "   /Users/user/workspace/folder "   Sorted by      name "   Sort sequence: [\/]$,\<core\%(\.\d\+\)\=\>,\.h$,\.c$,\.cpp$,\~\=\*$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$ "   Quick Help: <F1>:help  -:go up dir  D:delete  R:rename  s:sort-by  x:special " ============================================================================== ../ ./ folder1/ folder2/ file1 file2   I expected to see an inode number next to each file name, why isn't this the case?


BiblaTeX: Not printing bibliography, includes bib label in final PDF

I have a bibliography (.bib) file:  @article{tong2012string, author = {D. Tong}, title = {{L}ectures on {S}tring {T}heory}, year = {2012}, archivePrefix = {arXiv}, eprint = {0908.0333}, primaryClass = {hep-th}}   In my LaTeX file, I included:  \usepackage[citestyle=numeric,backend=biber]{biblatex}  \addbibresource{references.bib}   In addition, I used, \cite{tong2012string} next to where I'd like the [1] to appear, and finally attempted to print the bibliography using \printbibliography.    What Happened:  Instead of including [1], in the PDF it printed [tong2012string] in bold. Also, the blbiography was not printed at all. I've tried:   Making sure I'm using biber by specifying 'backend=biber' Deleting any auxiliary files that may have been causing the problem   However, my .blg file is always the same:      This is BibTeX, Version 0.99dThe top-level auxiliary file: String.aux I found no \citation commands---while reading file String.aux I found no \bibdata command---while reading file String.aux I found no \bibstyle command---while reading file String.aux (There were 3 error messages)     Windows 7, using TeXStudio and MiKTeX    Working Example  \documentclass[11pt]{article} \usepackage{amsmath,amssymb} \usepackage[citestyle=numeric,backend=biber]{biblatex} \addbibresource{references.bib} \usepackage[margin=0.95in]{geometry} \begin{document}  \cite{tong2012string}  \newpage \printbibliography \end{document}   See above for .bib file.


which one of the following statement is correct:  I was informed that I will be joining this team  (or) I was informed that I would be joining this team.   FYI: I am joining the team next week, and I am updating my teammate about this.


What should come after 'us', 'is' or 'are'?

Should it be "every single one of us is" or "every single one of us are"? seeing as 'us' is a plural term, should the word 'are' come afterwards?


Can a shapefile store several geometry types? Yes or no? Why or why not?


Probably been answered but couldn't find the answer.   From the perspective of a photon:  - For the photon to travel from body A to body B would take 0 secs. - The universe would be one point in "something" and the lifespan of a photon would be 0 secs. - But photons are created and "die" all the time, did they exist? - There is no such thing as time(?).   Singularity but what falls apart, if the photon exists?


I've read conflicting information regarding the meaning of the idiomatic phrase "take the cake".  I am quite confused, because based on one source it means something is exceedingly good and according to another - exceedingly bad.   Could someone shed some light on which of the two is the actual/prevalent meaning of the phrase?  For example which of the two uses sounds more natural? "He drank all the milk and left the empty bottle in the fridge! That really takes the cake!" or "Thanks for all the help! You really take the cake!"


Can anyone help me develop some intuition for the idea of avoided crossing in QM. To explain what confuses me consider a two-level system given by  $ M=   \begin{bmatrix}     E1 & 0  \\     0 & E2 \\   \end{bmatrix} $  Let us denote its eigenvectors as $\lvert 1 \rangle$ and $\lvert 2 \rangle$ and assume we set $E1=1$ and want to plot $E2$ along with the eigenstate that follows this energy as a function of $E1$. What is now the correct way to make this plot? Is it that the state $\lvert 2 \rangle$ follows $E2$ as it crosses $E1$ or should I switch around my states when passing the degeneracy point. The reason why I ask is that when you have a small perturbation on the off-diagonal terms you will have an avoided crossing where the lower level avoids the upper one at the degeneracy point and somehow it makes sense that the states should then be switched around at the degeneracy point. Hope it is clear what I mean.


Gravity attracts objects which have mass right. We know that light is massless so why does a black hole's gravity attract light?


Note: I am asking this question as a simple introductory question to proofs by induction, to which I will give also my formal answer (which should be correct, if not, please comment) for future visitors of this website.  I know that to prove something by induction, we need formally 3 steps (2, if we considere inductive hypothesis and inductive step together):   Base case or basis:  We determine what is the base case for our statement $P(n)$, and we immediately prove it. Inductive hypothesis:  We assume our statement $P(n)$ is true for $n$. Inductive step:  We try to prove that our statement is also true for $P(n + 1)$. If we can prove that, we can also prove that our statement is true for $n + 2$ (we don't need to do it), and so on.  This step is usually the most difficult part, because it involves some algebraic manipulation, or some imagination in some way. For this last reason, it might be helpful watching other similar proofs by induction to solve the current one.   For example, suppose our $P(n)$ is the following:  $$\frac{n(n + 1)(2n + 1)}{6} = 0^2 + 1^2 + 2^2 + 3^2 + ... + n^2$$  which is basically saying that the sum of all squares of the natural numbers from $0$ to $n$ can be determined by the formula on the left side of the equation.  How would we prove $P(n)$ is true for all $n \in \mathbb{N}$?  For more information about the proof by induction, see the Wikipedia page about induction called .


Group theory: Intuition as to what a group is

In group theory the group is an algebraic structure consisting of a set which has elements associated with definite finitiary operations. Can an intuitive explanation be provided as to what this means.


Apple has an amazing marketing/advertisement team. Their ads and presentations are always amazing. In 1997, they had an iconic "Think Different" campaign for their new slogan. Within commercials they would say "The people who are crazy enough to think they can change the world, are the ones who do."  It is one of my favorite quotes, but it sounds strange/improper (as does the slogan "Think different"). Is that sentence proper grammar?


I have posted a question on . But now i feel its more suitable for  and want it to be migrated,i came to know about cross-validated later. But since datascience is beta, not a lot users have enough points to migrate. What should i do in that case to get the answers? Deleting a question again might be counted as a negative contribution.


Variance of product of dependent variables

What is the formula for variance of product of dependent variables?   In the case of independent variables the formula is simple:  $$ {\rm var}(XY) = E(X^{2}Y^{2}) - E(XY)^{2} = {\rm var}(X){\rm var}(Y) + {\rm var}(X)E(Y)^2 + {\rm var}(Y)E(X)^2 $$ But what is the formula for correlated variables?  By the way, how can I find the correlation based on the statistical data?


Simple way to programmatically get all stored procedures

Is there a way to get stored procedures from a SQL Server 2005 Express database using C#? I would like to export all of this data in the same manner that you can script it our using SQL Server Management Studio, without having to install the GUI.  I've seen some references to do thing via the PowerShell but in the end a C# console app is what I really want.  To clarify....  I'd like to script out the stored procedures. The list via the Select * from sys.procedures is helpful, but in the end I need to script out each of these.


Trying to add a comma in between each value of my list python

I am creating a dice program that must roll the dice a certain amount of times and append those rolls to a list. I am trying to figure out how to add commas in between each item of the list. This is the code that I have so far:   listRolls = []  def listPrint():     for i, item in enumerate(listRolls):         if (i+1)%13 == 0:             print(item)         else:             print(item,end=' ')


norm (x+y)= norm(x-y) implies x is perpendicular to y.

Let $(X,\langle\cdot,\cdot\rangle)$ be an inner product space. Prove if $X$ is a real vector space, then  $\lVert x+y\rVert= \lVert x-y \rVert$ implies $x\perp y$.


Is there any way to bypass or cheat through the Lava Level?

I'm finding this level absolutely impossible. I've been trying for days now to get through it. I can't get past even the first two or three turning platforms.  Is it really this diffucult? It's been such a fun and relaxing game until now – now I really hate this game and i'm just so, so frustrated.  I have seen the answers on "" but it does not quite help enough. Are there any other tips? Any way to cheat it? A way to slow the lava? A way to save the state right at the bottom of the turning platforms? A way to hack my "save state" to say "you finished this level"?!  I'd really just like to hire an expert to get through this level so I can continue with the fun, relaxing exploration that I thought this game was about.  I'm playing on a PC, if that helps.


Can I get off a plane at connecting flight?

I know this may be considered hidden-city ticketing and airlines have qualms with the practice, but since it's technically not illegal I was wondering if I bought a ticket from Chicago to Moscow with a plane change in Dusseldorf, Germany if I could just get off at Dusseldorf. Would I be able to check my bags only to Dusseldorf? Another problem is that Russia requires a visa, but since I'm not going all the way to Russia, would I still need to get one?   Another way of putting all this, is it feasible for me to travel this way?


How To Prove that $v=r\cdot z\ $ is Distributed Uniformly at Random

I consider a finite field $\mathbb{F}_q$, where $q=2p+1$, and $p$ , $q$ are prime numbers.  Let $z$ be a fixed element of the field. Also let $r$ be a value picked uniformly random from the field where $r>\frac{q}{2}$    Question: How to prove that $v=r\cdot z\ $ is distributed uniformly random in subset of the field where the  subset's size is $p$?


How can I determine that I am looking at the block I need?

I want to execute a command if I am looking at a specific block. A command should only be executed if it is targeted.


What is there to do after beating the Elite Four/Champion (Post-Game)?

I've defeated the Elite Four and the Champion. The credits rolled and I've been teleported to my home in Vaniville Town. What is there to do now? Any specific events/features that are unlocked now?  I already know of and caught Mewtwo and Zyrgarde.


Flooded roads and deprived communities: QGIS route analysis function to avoid flooded roads?

In QGIS I am analysing the flooding of road networks. I have created a vector line layer of all the stretches of roads in my study area where high risk flood extent areas intersect them. I now want to see which deprived areas would be most impacted by calculating the shortest route to essential services (avoiding these flooded roads). I have polygon layers of regions of deprived communities and point layers of hospital locations. Is there a plugin or function in QGIS that allows me to calculate the shortest route (and the time it takes, if possible) to the nearest hospital from the edge of a polygon, avoiding these flooded roads (line layer)?


There is currently a 5-minute grace period on edits on questions and answers where editing it does not cause a new revision in the history.  I'd appreciate a similar grace period on comments, perhaps 30 seconds or so. Call me clumsy but I'll very often notice a tiny slip or unclear wording I want to correct immediately after posting a comment, but even if an edit is done within 10 seconds it still incurs the penalty of having the pencil icon stuck next to it.  This doesn't seem like the best use of the pencil icon, because when a comment is that new it's probably been scarcely seen in its original form and the edit is not likely to lead to abuse that would cause things to be read out of context (no more so than deleting a comment, anyway). The pencil icon would be more meaningful if it was reserved for non-immediate changes.


I want to find the determinant of  $$  \begin{pmatrix}  1/(n+1) & 1/n & \cdots & 1\\   1/(n+2) & 1/(n+1) & \cdots & 1/2\\  \vdots & \vdots & \ddots & \vdots\\  1/(2n+2) & 1/(2n+1) &  \cdots & 1/(n+2)  \end{pmatrix}.$$  More preciesly, I hope to show that this matrix has a nonzero determinant. How I prove this?


If $\mu$ is an ordinal, how can we formalize that  $$   \sum_{\lambda<\mu}x_{\lambda}=z $$  When $\mu=\omega$, this is just the usual infinite series, the partial sums converge to $z$.  What is the definition for higher ordinals?   I don't think this is quite the same as an uncountable sum, it is a sum over an well-ordered index. We can define it as a limit points of finite sums, but I was wondering whether there is a "better" (possibly equivalent) definition that takes advantage of the extra structure (well-oredring of the index). I suspect this will make sense only if countably many elements are non-zero.   As for the context, I guess the most general one could be that of topological vector spaces, so that we have the vector operations and limits.


C# pattern to prevent an event handler hooked twice

Duplicate of:  and   I have a singleton that provides some service and my classes hook into some events on it, sometimes a class is hooking twice to the event and then gets called twice. I'm looking for a classical way to prevent this from happening. somehow I need to check if I've already hooked to this event...


Consequences of not closing an open short sell position?

If I short sell stocks of a company but do not close my position by buying them back, what will happen? I realize it is a bad thing, but what exactly? I will need to pay a penalty?


Solving the functional equation $f(x + y) + g(x-y) = \lambda g(x) f(y)$

Let $\lambda$ be a nonzero real constant. Find all functions $f,g : \mathbb R \rightarrow \mathbb R$ that satisfy the functional equation   for all $x,y \in\Bbb R$:   $$f(x + y) + g(x-y) = \lambda g(x) f(y)$$   I tried this:  $y=0$ implies $f(x)+g(x)$=$\lambda g(x)f(0)$. Here we have two cases depending on $f(0)$:   $f(0)=0$ or $f(0) \neq 0$.   If this is true, what next?


I have just turned on my PC and have two applications running; Thunderbird and Firefox. Whatever else is running is part of Ubuntu's feature set (as well as a few indicators).  This has been ongoing for weeks, so I'm not sure if it's normal behaviour or not.  Right now, my memory usage indicator says that Ubuntu is using 41% of my 6GB of RAM. I haven't even opened Gimp or my other day-to-day things. I'll be buying another 6GB of RAM, this week, so that I don't run out when using Gimp or Openshot, for example.  An overview of my running applications shows that Nautilus is using the most, yet it isn't even open. This seems a little excessive, or am I missing something?


How do you break out of current creative mind sets?

Most designers hit a roadblock at one time or another.   Few designers get those "dream" projects where they are allowed to create anything and everything they want. In most cases we all have to adhere to some restrictions.   After dealing with similar restrictions repeatedly, it becomes very easy to get mired down in how the design problems have been previously solved rather than finding new solutions.   I'm familiar with mood boards, idea books, and the like. However, these all seem to basically take the user down the same previously traveled paths.  What specific steps should one take in order to break out of current mindsets and expand horizons to look at a project in a fresh, inventive manner?  Is there a processes you use to conceptualize something in a new way?


Real Projective Space, $\mathbb P^n$, is Hausdorff.

I was looking through a proof that $\mathbb P^n$ is Hausdorff (take it here as the set of all one dimensional subspaces in $\mathbb{R}^{n+1}$, but it's unclear to me why this isn't nearly trivial.  If I have two points $x,y \in \mathbb{R}^{n+1}$, aren't the images of the disjoint open balls also disjoint open sets in $\mathbb P^n$?   That is, if $x,y \in \mathbb{R}^{n+1}$, and $B_x,B_y$ are disjoint balls, aren't $\pi(B_x)$ and $\pi(B_y)$ disjoint open sets in $\mathbb P^n$? ($\pi : \mathbb{R}^{n+1} \to \mathbb{P}^n$.) Namely, aren't these images the sort of cones in $\mathbb R^{n+1}$ consisting of lines less than $\epsilon$ angle away from the line through $x$ and $0$?   edit: does it work to do the following: let $N$ be sufficiently large  take $L_y$, the line through $y$, and consider the compact subset $\overline{B}_N(x) \cap L_y$. Then, minimize $$\|x-z\|$$ over this subset for $z \in \overline{B}_N(x) \cap L_y$. Repeat for the minimum distance from $y$ to $L_x$. Then use half the smaller of these radii.  Does this work? (i.e. the length of the line segment perpendicular to $L_y$ through $x$)


How to convert hex to decimal in c#.net?

Convert Hex to Decimal  Example:  It would ask a Hex. Shown below.  Enter Hex: 8000 8000 1000 0100  Then,  The Result: 32768 32768 4096 256  Convert each hex to decimal.  HEX  = DECIMAL  8000 = 32768  8000 = 32768  1000 = 4096  0100 = 256


Does Ubuntu Ubuntu 14.04.1 LTS have any OpenSSL vulnerabilities in connection with the Heartbleed bug? I downloaded the ISO today and I am installing it and I would like to know if there are any existing vulnerabilities.


I use Ubuntu Studio 15.10, 64 bit, and WineHQ 1.9.1.  I've tried to install a Windows software which needs Adobe Air complement, but I can not to install it, not from the original software CD, not from  the Internet.  What's wrong here?  How can I install it?  Is there some "replacement" for Adobe Air, somewhere?  Greetings & Blessings from Chile!  Juan


Roll up data from a column into 1 comma delineated cell in SQL?

If I have a table like this:  Name  | Start Time item1 | 4:00PM item1 | 6:00PM item2 | 3:00PM   How can I roll up the start time column so the end result would be  Name  | Start Time item1 | 4:00PM,6:00PM item2 | 3:00PM   Thanks!


Do these verbs have the same meaning : help / help out

There are many verbs that have different meanings when we add a preposition to them, whish are the phrasal verbs -according to what I understand- , but sometimes I can't feel the difference , like : end up , help out, miss out  Is there really a difference that I can't see ? or they're almost the same without the preposition ?


I just took accepting answers for granted on Stack Exchange, but then I came across Quora, a Q&A site that doesn't have accepted answers (Just to be clear, I'm not suggesting that we make Stack Exchange like Quora - there are tons of reasons why SE >> Quora - but we should be open to other ways of doing things). So, I thought about the pros and cons of accepting answers. What I have here is not an exhaustive list, but just what I came up with off the top of my mind just now. Cons of Accepting Answers  The best answer isn't always accepted. Often, the accepted answer and highest voted answer are not the same. For questions with 20 views, this is okay, but on many popular questions, the accepted answer isn't the highest voted. In my opinion, the highest voted answer is the best answer, since I value the community's opinion above that of the OP. There are cases where this isn't true, but the vast majority of the time, it is. The Accepted Answer goes to the top. I wouldn't have any problems with point 1, except that the accepted answer is always at the top. I think that the best answer should be at the top, because some people don't scroll down below it (myself included, oftentimes). Accepting seals the question. What I mean is that to accept an answer to a question is almost the same as closing it. People may still go to it and look at it, but definitely fewer. It reduces the traffic. It discourages better answers. Accepting an answer doesn't mean it is the best possible answer, it just means that it satisfies the OP. But since accepting an answer seals the question, a person who can provide a better answer is unlikely to stroll along and give that better answer.  Pros of Accepting Answers You guys already know these, so I'll just go over a few of them briefly:  In many cases, the "right" answer is showcased by sending it to the top of the list. The answerer of the "right" answer is rewarded with 15 rep. New users can reward helpful answers, if they don't have upvoting privileges yet.  Possible Solutions I'm not sure how to solve the problems of accepted answers without abolishing them - but I think the pros, primarily the first two, outweigh the cons - which is why I'm asking this question here. How can we fix the problems with accepting answers without getting rid of all the benefits?


In the Last Jedi, the Resistance, correctly assumes that      The First Order has a way of tracking them through hyperspace.   But why did they came to that conclusion, knowing that there is a technology that can signal your position across the entire galaxy?      Actually, Leia uses it so that Rey can find them   So why go straight to "a new technology has been developed" when the much simpler possibility "There is a tracker on one of our ships" (possibly hidden by a mole) was a valid possibility?


I was trying out  on a few equations and realized that angles have no dimension. Otherwise equations such as $s=r\theta$ are not dimensionally consistent.  Further, why don't trigonometric ratios have any dimension?  PS: I couldn't find any appropriate tag for this question. Could someone re tag as appropriate? Thanks.


I'm trying to use gdalwarp to reproject an ascii grid file. According to  this shouldn't be a problem and indeed I can happily use gdal_translate to create grd files (AAIGrid) but not gdalwarp:  gdaltest 14:40:08 $ gdal_translate -of AAIGrid rj_DEM_1978.grd junk.grd Input file size is 401, 301 0...10...20...30...40...50...60...70...80...90...100 - done. gdaltest 14:40:25 $ rm junk.* gdaltest 14:40:41 $ gdalwarp -of AAIGrid rj_DEM_1978.grd junk.grd Output driver `AAIGrid' not recognised or does not support direct output file creation.  The following format drivers are configured and support direct output:   VRT: Virtual Raster   GTiff: GeoTIFF   NITF: National Imagery Transmission Format   HFA: Erdas Imagine Images (.img)   ELAS: ELAS   MEM: In Memory Raster   FITS: Flexible Image Transport System   BMP: MS Windows Device Independent Bitmap   PCIDSK: PCIDSK Database File   ILWIS: ILWIS Raster Map   SGI: SGI Image File Format 1.0   Leveller: Leveller heightfield   Terragen: Terragen heightfield   netCDF: Network Common Data Format   HDF4Image: HDF4 Dataset   ISIS2: USGS Astrogeology ISIS cube (Version 2)   ERS: ERMapper .ers Labelled   RMF: Raster Matrix Format   RST: Idrisi Raster A.1   INGR: Intergraph Raster   GSBG: Golden Software Binary Grid (.grd)   GS7BG: Golden Software 7 Binary Grid (.grd)   PNM: Portable Pixmap Format (netpbm)   ENVI: ENVI .hdr Labelled   EHdr: ESRI .hdr Labelled   PAux: PCI .aux Labelled   MFF: Vexcel MFF Raster   MFF2: Vexcel MFF2 (HKV) Raster   BT: VTP .bt (Binary Terrain) 1.3 Format   LAN: Erdas .LAN/.GIS   IDA: Image Data and Analysis   GTX: NOAA Vertical Datum .GTX   NTv2: NTv2 Datum Grid Shift   CTable2: CTable2 Datum Grid Shift   ADRG: ARC Digitized Raster Graphics   SAGA: SAGA GIS Binary Grid (.sdat)  gdaltest 14:40:52 $ which gdal_translate /Library/Frameworks/GDAL.framework/Programs/gdal_translate gdaltest 14:41:05 $ which gdalwarp /Library/Frameworks/GDAL.framework/Programs/gdalwarp gdaltest 14:41:10 $    As you can see, the format list is somewhat shorter than normal. From the two which commands at the bottom you can also see that both gdalwarpand gdal_translateare located in the same library. Does anyone have an explanation for this? I can work around it easily enough but this shouldn't be happening, should it?


Supposed I have a project that is intended to be open-source, but it depends on a static library that I also wrote (and I don't want open-source). If I distribute the library with the other code to be compiled together, could the library be somehow decompiled so the original source is recovered? I know disassembling is possible, but the output of that is somewhat cryptic still.


Good explanation of the QQ-plot algorithm?

Anyone know a good explanation of the QQ-plot algorithm?  , p.2. has the only one I've found and it's a bit unclear to me (particularly the percentiles and quantiles).


MS SQL Server unexplained differences in query speed

I have a production database and staging database, they contain the exact same data, the production database was backed up and restored as the staging database. A particular operation (API call) always runs in about 200ms when connected to the Staging database but in production it always takes around 1700ms. I thought the indexes might need reorganizing in production and in staging they could be in better shape because it was restored from a backup but when I ran sys.dm_db_index_physical_stats(NULL,NULL,NULL,NULL,NULL) ddips  the index fragmentation is pretty much the same between both databases. I can try restarting the database server late at night and see if that brings up the performance but i'm really puzzled as to why one database would be so much different to the other in query performance when they contain the same data.


How to distinguish between divides and order symbol?

I want to write something like $|X|||G|$ but it is not clear that order of X divides order of G. How can I make this right?


Upright text in math mode for chemical elements

I have a line as follows:  \documentclass[a4paper]{article}  \usepackage{siunitx}  \begin{document}  {$d_{(O_{1}-Zn/Mg)}(\SI{}{\angstrom})$ \end{document}   showing:    I don't want the letters to be written in italic. Please kindly let me know how to remove italic and how to have tighter word-spacing inside the parentheses?


If I have a 500GB SATA can I clone that to a 256GB SSD?  What is the procedure involved to do that correctly.


Determinant of a specific circulant matrix, $A_n$

Let  $$A_2 = \left[ \begin{array}{cc} 0 & 1\\ 1 & 0 \end{array}\right]$$  $$A_3 = \left[ \begin{array}{ccc} 0 & 1 & 1\\ 1 & 0 & 1 \\ 1 & 1 & 0 \end{array}\right]$$  $$A_4 = \left[ \begin{array}{cccc} 0 & 1 & 1 & 1\\ 1 & 0 & 1 & 1 \\ 1 & 1 & 0 & 1 \\ 1 & 1 & 1 & 0\end{array}\right]$$  and so on for $A_n$.  I was asked to calculate the determinant for $A_1, A_2, A_3, A_4$ and then guess about the determinant for $A_n$ in general. Of course the pattern is clear that  $$ \det A_n = (n-1)(-1)^{n-1} $$  but I was wondering as to what the proof of this is. I tried to be clever with cofactor expansions but I couldn't get anywhere.  Could someone explain it to me please?


TV show with sci-fi inventions of the family member and trouble it causes

SCENE-1: (face disappears) A girl applies a cream for a pimple problem and the pimples will disappear and she is warned to not apply excess cream. In college she applies more cream and her body facial parts will disappear.  SCENE-2: (Dream world) Same girl falls from sky with parachute and lands in classroom because of bad guy and covers with parachute cloth and she controls the dream and makes everyone in classroom be wrapped by parachute cloth to escape embarrassment.   SCENE-3: (Mermaid) A girl becomes mermaid and swims in swimming pool.


Is there a way to denote the calculation $1+2+3+\dots+n$?

Since $n!$ represents $$1\cdot2\cdot3\cdots n,$$ I am wondering if there is a way to represent  $$1+2+3+\dots+n?$$ What are some usual notations for the computation of some common sequences? Any other examples?


Space of orientation-preserving diffeomorphisms on the circle.

Diff$_+(\mathbb{T})$ is the space of orientation-preserving diffeomorphisms on the circle. Then is it true that it is connected?  I have looked through the similar questions on here, but seem to find no clear motivation, so far by reading through the sources of some of the post I have concluded that this statement is true. But I cannot seem to find any good motivation as to why.   If somebody could please refer me to a text where this is shown or describe it that would be great.  Thanks!