Should neopronoun be encouraged to use in Stack Exchange?

For so long I have wished that English has a singular gender-neutral pronoun that isn't "they". After the push on , do you think we should encourage neopronoun on Stack Exchange?  Imagine a scenario:     - Newcomer: I'm sorry, what is "ze"?   - Old folk: Oh, it's just a neopronoun that folks in Stack Exchange likely to use. It's "more correct" than singular they, and it saves people time to ask back and forth what pronoun they should use. You can use the singular they as you wish without problem   - But then, why we don't all use singular they instead?   - Well, because it comes from a need of non-binary community, and people get used to it. Gradually it becomes a culture here.   As a straight person, I really have no idea if the last sentence is correct or not, but according to My Kid is Gay, it seems so.  Some resources:           See also:


How to send users in the right direction before they post asking for the wrong technique?

I often see users asking for batch programming on Windows and they try to solve rather complex tasks. A lot of these tasks would be better solved with a different technique that is also built-in to Windows, but often users simply don't know it exists.  Are there means to attach a kind of "redirect" to a tag ? In this situation the user should be informed that he is better off using the socalled Windows Scripting Host. Or is this a situation where a Wiki could be linked to the tag and one of the first lines could describe the alternatives ? I only recently learned about the "tag-wiki", but I think it might be too hidden.  I have an example for such a post. The OP confirmed he didn't know of the alternative:


How to handle triangle in PDE to do separation of variables?

Given is the hyperbolic PDE $$\frac{\partial^2u}{\partial t^2}-c^2 \triangle u=0$$ in the Domain $\Omega\times\Bbb{R}$ using the Dirichlet boundary condition $u=0$ in $\Omega\times\Bbb{R}$. The initial values of this PDE are the position $u(\vec x,t=0)=u_0(\vec x)$ and the velocity $\frac{\partial u}{\partial t}(\vec x,t=0)=u_1(\vec x)$    Show that it is possible to split the PDE into one ODE for the time $t$, and one eigenvalue equation $$-\triangle X(x)=\lambda X(x)$$ for $x \in \Omega$ and $x=0$ in $\partial\Omega$ by using separation of variables.    I know that I have to put all the $t$'s on one side and all the $x$'s (or $\vec x$'s?) on the other side. For the beginning i have $$\frac{\partial^2u}{\partial t^2}=c^2 \triangle u$$  Let $u$ be in the form of $u(x,t)=X(x)T(t)$ $$\frac{\partial^2u}{\partial t^2}=X(x)T''(t)$$ $$X(x)T''(t)=c^2 \cdot\triangle (X(x)T(t))$$ $$\frac{T''(t)}{c^2}=\frac{1}{X(x)}\cdot\triangle (X(x)T(t))$$  This is how far I got. Is this right? How do I handle the $\triangle$ to get the $T(t)$ from the right side to the left?


How to solve this problem (404 Not Found) while updating

sudo apt-get update W: Failed to fetch http://ppa.launchpad.net/tahutek-team/prozilla/ubuntu /dists/wily/main/source/Sources 404  Not Found  W: Failed to fetch http://ppa.launchpad.net/tahutek-team/prozilla/ubuntu/dists/wily/main /binary-i386/Packages 404  Not Found


Is that ring the "redshift" of a black hole ?


IntentService - NullPointerExecption on startService

I'm trying to use the IntentService feature that Android provides to try running some calculations in the background.  I've been working on this since yesterday, but I can't seem to find any valid solution. I've looked at quite a few SO questions with regards to IntentService and tried applying the suggested fixes, but mine just can't seem to work.  I've tried passing in various different context / Activies / getApplicationContext() / this / getBaseContext() from the Activity where I call the function but I'm still getting a null object reference error     "Attempt to invoke virtual method 'android.content.ComponentName   android.content.Context.startService(android.content.Intent)' on a   null object reference"   Where the application crashes at the 3rd line in the function where startService() is called (see my code below)  //This function is from MyCurrentClass.class - it is a Singleton and its being called from another activity where it passes in its context public void notify (Context context, JSONObject responseFromDb){      Intent inputIntent = new Intent(context, MyCurrentClass.class);     inputIntent.putExtra("responseFromDB", responseFromDb.toString());     this.startService(inputIntent); //crashes here! }   P.S.: Most of the solutions I've looked at seem to have only 1 Activity, but my app is switching between different Activities.  (Not sure if that matters) But most importantly the class I'm working on is a normal Java class that extends IntentService and its not an Activity class.  I've also declared the service in my Android manifest to link to MyCurrentClass and tried bindService() from the Activity: it was called, but it didn't work too.  Below are some of the questions/solutions I've looked at and tried but failed:               I've actually looked at many others posts, but there were too many.  Hope the info I've provided is enough. If it isn't, do let me know what might be missing and I'll update the question with the required info.


Create environment inside another environment?

Why can't I define an environment, that encloses another tabularx environment inside it?  For example, why can't I do this:  \newenvironment{customTabular}{     % This is the begin code     \begin{tabularx}{\linewidth}{l l X} } {     % This is the end code     \end{customTabular} }   and then use it like:  \begin{customTabular}         Blah & Blah & Blah\\ \end{customeTabular}


Reputation calculation doesn't work properly

I earned 6 upvotes for  question's answer, but, 3 * 10 was added to my reputation. I'm attaching the reputation tab screenshot, you can check in the question votes and reputation given. Under the answer tab, it show 6 votes given for the answer, and, under the reputation tab, only 30 was given. What's the issue?


Can I have suggestions for some good book regarding tensors for physics.


When I have a function definition make-cd and execute the function to get the wrong answer.   (defun make-cd (title artist rating ripped)   '(:title title :artist artist :rating rating :ripped ripped))  (add-record (make-cd "Roses" "Kathy Mattea" 7 t))  (:TITLE TITLE :ARTIST ARTIST :RATING RATING :RIPPED RIPPED)   I should have used (list ...) to get a correct answer.   (defun make-cd (title artist rating ripped)   (list :title title :artist artist :rating rating :ripped ripped))  (add-record (make-cd "Roses" "Kathy Mattea" 7 t))  (:TITLE "Roses" :ARTIST "Kathy Mattea" :RATING 7 :RIPPED T)   Why is this?


Why I am labeled as a new contributor when this is not the case?

Why does philosophy.stackexchange suddenly label me as a new contributor when in fact I have already posted many questions in the last 2 years? It this related to deleting cookies from my pc?


How can I get candid street photographs without causing a reaction — or approaching people for permission?

I'm interested in street photography but always had the fear of how people may react when I'm taking candid pictures. Because, I have seen people snatch away cameras and create a big drama on the street.  It seems that other photographers get different reactions because of their appearance. When taking similar shots the subjects are not bothered as much and may just shy away from the frame if not interested.     [This question is not a duplicate because I want to take candid shots and not approach people and make them pose]


How to place a bar one on the other in bar charts?

I know how to draw for single data...  but How to draw the bars one on the other where the data's grouped  \documentclass[varwidth=true, border=2pt]{standalone} \usepackage{pgfplots}  \begin{document}     \begin{tikzpicture}         \begin{axis}[             symbolic x coords={2006,2007,2008},             xtick=data           ]             \addplot[ybar,fill=blue] coordinates {                 (2006,   42)                 (2007,  50)                 (2008,   0)              };         \end{axis}     \end{tikzpicture}  \end{document}   My data is like this, Number of students in a year batch wise,  $$\begin{matrix}{cccc} year  &  batch 1&   batch 2 &    batch 3\\  2006  &   42  &      87   &       8\\  2007   & 50        & 90        & \\  2008    &      &     78  &        90  \end{matrix}$$   Now I want the data on the respective bars. Like in the following diagram.. It no need to be a 3D diagram.  How to do that??


Can I run a Perl script from within another that is totally independent?

Within Linux I would like Perl script A to launch Perl script B.  However, I want script A to continue running without waiting for script B to return.  And I would like B to be totally independent so that when script A ends, script B is still running.  Is this possible?


Keyboard shortcut to switch focus between multiple displays on OS X 10.9+

The fact that each monitor acts on its own in OS X Mavericks is pretty cool. However, I find that I have to use my mouse and click on the unfocused monitor before I can actually slide back and forth its screens (or spaces).  What's the keyboard shortcut to switch focus to another monitor?  update: follow up


What is the maximum score one can score from one ball?

Hit a no ball and run 4 runs. Then the fielder will throw that ball and it will go for a six..total 11 runs.  Is that possible?


Why can't I dismiss these Stack Exchange cookie popups on mobile browser?

These pop-ups keep appearing on my Android phone when browsing Stack Exchange sites. No matter what I choose these popups occur on every page refresh and whenever I try to view a question. I'm using Google Chrome on Android 9. I read another question that suggested ad blockers or uBlock but I think that's only for desktop browsing and is not supporting by Chrome on Android. To clarify: Even if I "Accept all cookies" the popup reappears upon refreshing the page. I can find NO WAY to stop this popup from appearing on ANY Stack Exchange site. Clicking on "Accept all cookies" makes the popup disappear. Refreshing the page or navigating anywhere else has the popup appear again. I CANNOT click on "Customize settings" it DOES NOTHING. The button changes color slightly and there is a short spinning animation on the left side of it but nothing else happens. I can only choose "Accept all cookies" -- I CANNOT REJECT THE COOKIES. And even if I accept them, the popup just comes back when I refresh. I CANNOT click on "cookie settings" at the bottom of the page. When I click this link it DOES NOTHING. The page does not change. If I switch to "full site" the link "cookie settings" still DOES NOTHING. It does not take me to another page with options. Nothing happens when I click on it. I cannot dismiss this popup permanently. I am using regular Android 9 with Google Chrome. I am not in Incognito mode and I don't have any special plugins. Here is a video of my experience:  And screenshots:   ** UPDATE ** Dismissing the popup today displays a pink banner asking me to disable my ad blocker or to click on "cookie settings" at the bottom of the page. I am using Google Chrome on Android which doesn't support plugins. There is no ad block. Clicking on "cookie settings" does not bring up any settings. Instead, it just brings up the pink banner... Which asks me to disable ad block or click on "cookie settings"... Which brings up the pink banner...


When taking a flight from Belfast to London do you need a photo ID?

When taking a flight from Belfast to London do you need to present a photo ID (driving license/passport) and do you go through passport control?  Does this change if you are not a British or Irish national?


How to write the limits under all three summation : $\sum \sum \sum_{0 \leq i < j <k\leq n} 1$

I want to write the limits under all three summation means starting from summation left side going towards right side ( dependent limits) , Please help on this.   $$\sum \sum \sum_{0 \leq i < j <k \leq n } 1 }$$   thanks..


How to render with same style as seen in solid viewport?

I'm new to Blender and I like very much the esthetics of the viewport. Is it possible to replicate those settings when rendering it?    I got this look when those settings are applied.    Bigger resolution image:


What is the limit of $\prod\limits_{k=1}^{n} (1 + \frac{k}{n^{2}}) $

In the problem we have the inequality: $x - \frac{x^{2}}{2} < ln(1 + x) < x $ for $x > 0$  And we need to use to find : $\lim \Pi_{k=1}^{n} (1 + \frac{k}{n^{2}}) $  Taking $x = \frac{k}{n²}$ and using the function $e^{x}$ I get:   $e^{\sum_{k=1}^{n} \frac{k}{n²} + \frac{k²}{n^4}} < \Pi_{k=1}^{n} (1 + \frac{k}{n^{2}}) < e^{ \sum_{k=1}^{n}\frac{k}{n²}} $  I don't know how calculate the limits $\lim \sum_{k=1}^{n} (\frac{k}{n²} + \frac{k²}{n^4}) $ and $\sum_{k=1}^{n} \frac{k}{n²} $  How can I proceed? Thank you.


Let $G$ be a profinite group (or equivalently a  compact and totally disconnected topological group ) with the property that all of its normal subgroups of finite index are open sets.   Does this imply that all of its subgroups of finite index are open sets ?  (if all subgroups of finite index from $G$ are open sets, than $G$ is called strongly complete ; this motivates the title of this post)


Why do people use braces around the control sequence in \newcommand?

I've seen in every introductory material on LaTeX and in a lot of code of other people (event experts) that the \newcommand command is used by wrapping the first argument in braces, even if it seems unnecessary to me.   The braces are consistent with the usual way arguments are passed to LaTeX commands (since usually the braces are used even if the argument is made of a single token, for consistency and clarity), but in this single case they appear very ugly to me and in my opinion they lower readability.  But these are opinions, while the question is technical: is there any technical reason why one should write this:  \newcommand{\mycmd}[1]{Hello #1}   instead of this:  \newcommand\mycmd[1]{Hello #1}


Dynamically hide LaTeX beamer frame based on tags

I guess I'm in a configuration that will ring the bell to many: in the context of a project that run for many years, I developed a very large Beamer presentation featuring a lot of slides. The LaTeX sources are split in many files and as I have to often redo the presentation of the project, I include (or nor) these files in the main document depending on the time / audience.   Now I would like to somehow automate the generation of the presentation by controlling the frame I wish to include.  It seems to be possible statically with the <handout:0|beamer:0> parameters upon frame definition:  \begin{frame} Hello. \end{frame}  % this frame won't be included \begin{frame}<handout:0|beamer:0>   Hidden \end{frame}   I would like to render the approach more generic. Thus i was thinking about the possibility to   associate a [set of] tag upon frame definition decide later (in some way) about the set of tags to use when compiling the presentation such that only the frame having this tag are considered (and the other are thus hidden).    Does anybody knows a way to do that?


In the prior top bar, the rep dropdown would show you the votes you got after you hit the rep cap, just with no rep showing.  The new dropdown for the new top bar no longer shows you that you received those votes.  I end up having to go to my profile and hit the reputation tab to see if I got any upvotes after I hit the rep cap.    Please put this functionality back into the rep dropdown.  Note, that this also applies to up and down CW votes.


I'm trying to pass some custom field data to contact form 7 - The billing address and name and email address.  I've created a function that pulls in these details from the database - is there an easy way I can send these details in an email when a forms sent?  Can I possible somehow pass the data to the form sending template.  Here is my function that pulls in the correct data.   function rinfo() {  if ( is_user_logged_in() ) {     global $current_user;     get_currentuserinfo();        echo 'Username: ' . $current_user->user_login . "\n";       echo 'User email: ' . $current_user->user_email . "\n";       echo 'Address: ' . $current_user->shipping_address_1 . "\n"; }  }


Redirect output of a command to two different files

I know I can use tee, but I don't want the output to be printed on the screen; I want it to be printed only to the file.  Example:  ls > pk.txt    Now, another file named praveen should also be created.


How to validate an exipred password in AD

I understand how to validate a pwd and how to check if a pwd is expired but in my code I am automatically sending a user to a password reset page if their pwd is exired but I do not want to do this unless they are entering the correct password.  ValidateCredentials will return a false if the password is expired regardless of whether the password is correct or not. How can I tell the difference?


Add comment popover not visible on mobile

When clicking 'Add comment' a popover appears about reputation if it applies to you (e.g. not logged in or not enough rep).  This popover is not visible on mobile unless you scroll right (see screenshot), meaning when you tap 'Add comment', nothing appears to happen.  Unsure if this affects a number of SE sites, or just codegolf.


Fetch single data point from table within tikz

Let's say I have a bunch of data, like so:  1,15,53 5,74,12 74,23,66   It doesn't really matter how I store the data. I could put it in text form within my .tex file or I could store it in an external .csv file.  Now, I would like to fetch single data points within my tikz code. So, for example, let's say I wanted to use the data point at row 2, column 0 (which, in this case, is the number 74). My code would then look something like this:  \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}     \node[draw] at (0,\dataPointAtRow2Column0) {test}; \end{tikzpicture}   Is there something I could write instead of \dataPointAtRow2Column0 to make tikz draw a node at (0,74)?  Note that I'm not looking for a solution like . I do not want to rewrite my code using \pgfplots.


Cosets modulo $(2+i)$ in $\mathbb{Z}[i]$

I've been trying to solve this problem but I got stuck on it:     Given is the ideal $I=(2+i)$ in the ring of Gaussian integers $\mathbb{Z}[i]$.    How many elements does the quotient ring $\mathbb{Z}[i]/I$ contain?   I'm just a dummy but I will show you what I have been trying to do.   My first observation is that we need to find out how many cosets the subgroup I has. In order to find that out I wrote: $I=\{(a+bi)(2+i):a,b \in \mathbb{Z}\}=\{(2a-b)+(2b+a)i:a,b \in \mathbb{Z} \}$.  Now we see that for all $z \in I, \ 5\mid 2 \text{Re}(z)+\text{Im(z)}$, because $ \ 2(2a-b)+(2b+a)= 5a$. Now denote the set $A = \{z \in \mathbb{Z}[i]: 5\mid 2 \text{Re}(z)+\text{Im(z)}\}$. I don't know if $A$ is a subring or an ideal or neither, but it's a subgroup of $\mathbb{Z}[i]$ with regard to "$+$", containing 4 other cosets, right?  As I noticed $I \subseteq A$, although I failed to proof that $A \subseteq I$, so all I've got now is that $|\mathbb{Z}[i]/I|\geq5$, without the knowledge if even this is bounded from above.  Could some of you please tell me if this makes sense, and give an hint? Thank you!


Remove all non-numeric characters except spaces

I'm using this regex to get just a number back.  Regex.Replace(foo, "[^.0-9]", "")   How do I make it not remove spaces?


What is the minimum viable cell size for 2x2 ANOVA?

I have a 2x2, between-subjects experimental design (2 independent variables (IVs) with 2 levels each) and one dependent variable (DV).  My data are unbalanced and an interaction between the IVs seems likely, so I plan to use ANOVA with Type III Sums of Squares to test whether my DV is different across one of my IVs while controlling for any influence of the other IV (or the interaction, if present).    My question is this: what is the minimum number of data points that I need in each of my 4 cells, to ensure that ANOVA likely won't give spurious results? I'm aware of  of having at least 20 data point in each cell, but that recommendation only serves to control the test's rate of false negatives. What I'm more worried about is that with a small enough cell size, the statistics on which ANOVA is based probably won't be very reliable, and so the results of the test would be unreliable as well (in terms of either false negatives or false positives). Are there any papers or texts out there that have studied and made recommendations regarding this concern?


If $R$ is a domain satisfying ACCP and for all $a,b \in R$, $\gcd(a,b)$ exists, then $R$ is a UFD. Now my strategy is to prove all irreducible elements in $R$ are also prime. So take an irreducible element $p \in R$ such that $p|ab$, then I wanted to prove that $p|a$ or $p|b$. I couldn't get anywhere doing this. My final thought to maybe keep taking GCD's of some elements and then try to apply ACCP to the ideals generated by the GCD's, but I'm not sure how to implement this. Maybe I'm missing something simple?


Show application menus in top menu bar at Ubuntu 18.04

I've just updated my Ubuntu from 16.04 to 18.04.   In Ubuntu 16.04 there was setting which moved application menus to the top menu bar     I can't find this setting at Ubuntu 18.04, and my app windows look like this :     It is awful, because now there is 3-times less useful space at the top of my window!  How can I collapse 3 lines at the top to one line in top bap, like in Ubuntu 16.04?  UPD: this is not only about VSCode. This behavior affects all apps with menu bar including terminal, LibreOffice, etc.


I am facing a rather strange problem. Machine learning gives us a probability of a data point belonging to either class (classification) or the actual estimate of the dependent variable given independent variables (regression).   I am interested in building a model that has output such as $P(y \leq \hat{y} | x)$, that is, the 'probability of actual value to be less than or equal to predicted-value given x'.   I have gone through confidence intervals and predictions intervals for Logistic Regression. Are they best, I can do? Is there stream of research or machine learning, which I am missing.


Remotely control an Android tablet from a Mac or Windows machine?

Does anyone administer any Android devices as kiosks which you need to be able to monitor remotely?  I've been looking for something like TeamViewer for Android. I found there's a Support version which should allow people to connect to the Android device but I am unsure if you can fully control it? i.e load up certain apps, change app settings etc.?   I also found Bomgar and AirDroid or something similar.  Ideally, I need to know the status of the device (online or offline) and be able to diagnose any problems (or update the settings and apps). We already use SureFox Kiosk Web Browser which works OK (although it's not as responsive as just running the Chrome app)


when i typed sudo apt-get update in terminal, it gave me this error:  E: Malformed line 1 in source list /etc/apt/sources.list.d/gazebo-latest.list (dist) E: The list of sources could not be read.   I looked into gazebo-latest.list file. there is a line   deb http://packages.osrfoundation.org/gazebo/ubuntu quantal main   How can i fix this problem


I would like that my references for which I use apsrev show the title of the article. I've found  apsrev-title.bst file that should allow me to do so. But this doesn't work :\   I've downloaded this .bst style, put it in revtex folder where .bst files are, but I get the error  I couldn't open style file apsrev-title.bst ---line 38 of file diplomski.aux  : \bibstyle{apsrev-title  :                       } I'm skipping whatever remains of this command I found no style file---while reading file diplomski.aux   So what am I doing wrong? How to implement this? I also looked at .diff file but I don't know what to do with it.  Any help will be appreciated :)


I have an attribute table with some fields and I want to display on map the values of a field of this table. Table is a shapefile. I need to turn on label of a field automatically with arcpy, so I tried to use contour annotation but it gives error.  Field= "Teste" env.workspace = "F:/ArcGIS/Trab/Model/Subestações.shp" arcpy.ContourAnnotation_cartography('Subestações', env.workspace, Field , 50000, "ContourTeste", "BLACK",  "", "PAGE", "")  ERROR 000366: Invalid geometry type   I could to use this function for a polyline feature, and with this error I think that problem is this function can't be used with point feature.  How I can turn on label of a field with arcpy?


Is it just me, or is this an obvious way to see in an instant whether or not a post to review is a test?

I've been reviewing posts for a while now, and I get tests, like everyone else. But, is it just me, or is there an obvious way to see in an instant whether or not a post is a test? The thing is, I usually apply a filter to review posts more consistently, but the type of test posts seem to be randomly given. For example, if I have an Opinion-based filter, whenever I see a post that have been flagged as Needs details or clarity, I know it's a test (I enjoy clicking on the link to text posts before casting a vote to look at the score!).


Do magnetic fields exist beyond the gravity of a black hole?

reported strong magnetic fields escape out of black holes. Does that rule out photons being a component off a magnetic field since light/photon are trapped by the black hole?


Converting a java (JAR) application to a windows exe

I have java application with several main methods. I would like to convert it to a windows .exe that does not require a java run time environment. Which application can I use to do so that will convert the application together with its database to exe?. I am currently using excelsior jet. However it can only convert the application to exe leaving the database to interact it wit it externally. Any Advice?


Showing that $f$ has exactly one fixed point

Let $\gamma$ be the circle $\{z \in \mathbb{C}: \lvert z\rvert=1  \}$. Suppose $f$ is a function analytic on an open set containing $\gamma$ and its interior and that $\lvert\, f(z)\rvert<1$ for each $z$ on $\gamma$. Show that $f$ has exactly one fixed point inside $\gamma$   That is, there is exactly one $z$ in the open unit disk with $f(z)=z$.   Is this a result of Louville's theorem?   I don't know how to approach it.


Objects created with a specific size aren't coming out at that size when exported

new to Blender here and I'm trying to make an object of a specific size that I can 3D print. Here's what I'm doing:   File> New> General, select the cube and delete it. Go to the Scene Properties tab and under Units, make sure the system is Metric and length is in mm. Add mesh> Cylinder In the Add Cylinder box that pops up, change the vertices to 64, radius 20mm, depth 4mm.   This creates an appropriate cylinder, but it's really tiny in the window and I have to scroll in a lot to see it. Once scrolled in, I have about 3 clicks of my scroll wheel before it goes from barely visible, to visible, to now we're inside it. Working with such a small object has been really difficult.  When I export the object as a .stl and open it in Chitubox, the cylinder is so small that it isn't visible. If I click to resize it, Chitubox tells me that the object is 0.04mm(x) by 0.04mm(y) by 0.00mm(z).   What am I doing wrong here?


Can the new messagebox be somewhere else?

Apparently we have a new messagebox:  Can it please be screen-centered or near the action I took? It is on the top but I clicked to delete a comment on the bottom. The mouse movings give me muscle ache.


Proposing Windows as its own Stack Exchange site?

Is there a reason why we have a "Unix and Linux" Stack Exchange and an "Apple" Stack Exchange but no "Windows" Stack Exchange? (Hell even Ubuntu got its own)  I couldn't find it anywhere so I'm asking.  Since Windows has many users it would be a potent Stack Exchange.


Adding a value to a single key but added to multiple keys

In the code below, very strangely to me, 0 and 1 are added to the BOTH keys:  zip_to_dict1 = zip(["a", "b"], [[]]*2) dict1 = dict(zip_to_dict1) dict1["a"].append(0) dict1["b"].append(1) print(dict1["a"], dict1["b"]) # [0, 1] [0, 1]   However, this works somehow:  zip_to_dict2 = zip(["a", "b"], [[], []]) dict2 = dict(zip_to_dict2) dict2["a"].append(0) dict2["b"].append(1) print(dict2["a"], dict2["b"]) # [0] [1]   Is there any difference between [[]]*2 and [[], []]?:  [[]]*2 == [[], []] # True   ...What's the problem?  (Note: I'm using Python 3.4.1)


A basic question about finite rings and local rings

Let $R$ be a finite commutative ring. Does $R$ must be a direct product of local rings? The basic example is $\mathbb Z/n\mathbb Z$, but I can not find any counter example. If the answer is no, then in what conditions $R$ is a direct product of local rings?


What is a good book for learning Stochastic Calculus?

I am in search of a good book for learning Stochastic Calculus from a purely mathematical/statistical point of view. Almost all the books I see are based on Finance. Also, please specify the pre-requisites for this course.  Actually, I am quite knowledgable in Measure Theory, Markov Chains and Martingale Theory. I believe this knowledge should suffice.  I am planning to self-study this subject. Please suggest me good books.  Thank you.


Im trying to create the following:    I have tried:  \draw [dashed] (1,1) -- (4,5)node[anchor=north west] {Line};   however i cant figure out how to place the word in the enter of the line and not in it ends.  Thank you.


While upgrading my Ubuntu from 18.04 to 20.04 it stopped responding and I forced it to restart and it is showing error

I lost my complete iOS.  Oh no! Something has gone wrong A problem has occurred and the system can't recover. Please contact a   system administrator.


Enter from password field doesn't submit SE login form

On  page for a site where I don't yet have an account, if I select the "Log in using Stack Exchange" box, when I hit enter from the password form, nothing happens.  Minor, but...


When trying to copy and paste from the terminal, it doesn't work. I can't use Ctrl + C to copy, and when I select the text with the mouse and right click, no option to copy or cut appears. I installed Ubuntu 12.04 for the first time a few days ago and maybe it is missing something. Copy and paste does work in LibreOffice.


Say i have a class, TestClass. What I want to do is to have a function which i can pass a instance of TestClass into, which will set the attribute test_function of the object to a new function, which takes in self as the first parameter. How would I do this? Example: class TestClass:     def __init__(self):         self.t = "t" #irrelevant  object = TestClass()  def assign_function(object):     object.test_function = #????????  assign_function(object)  object.test_function() #I want this line to be able to run and for test_function to be able to access the attributes of object  I've already tried some options but I can't seem to find anything that works. For most of my solutions, the function requires an extra parameter, so for a function like def func(self, text):     print(text)  I would still have to pass something in as self, rather than it being done automatically like class functions are


How to change logos in Black color by using bclogo.sty

Is this possible to change \bclampe color to Black color? My tags are follows:  \documentclass{book} \usepackage{environ} %fancy boxes \usepackage{tikz} \usetikzlibrary{patterns,shapes,arrows,calc,decorations.pathmorphing,backgrounds,graphs,positioning,fit,petri} \tikzstyle{cuadricula}=[gray ,thick,dashed] %style for tike grids \usetikzlibrary{decorations} \usepackage{pgfplots} \pgfplotsset{compat=1.7} \usepackage[tikz]{bclogo}  \NewEnviron{myidea}[1]   {\par\medskip\noindent   \begin{tikzpicture}     \node[inner sep=0pt] (box) {\parbox[t]{.99\textwidth}{%       \begin{minipage}{.3\textwidth}       \centering\tikz[scale=5]\node[scale=2,rotate=30]{\bclampe};       \end{minipage}%       \begin{minipage}{.65\textwidth}       \textbf{#1}\par\smallskip       \BODY       \end{minipage}\hfill}%     };     \draw[black,line width=3pt]       ( $ (box.north east) + (-5pt,3pt) $ ) -- ( $ (box.north east) + (0,3pt) $ ) -- ( $ (box.south east) + (0,-3pt) $ ) -- + (-5pt,0);     \draw[black,line width=3pt]       ( $ (box.north west) + (5pt,3pt) $ ) -- ( $ (box.north west) + (0,3pt) $ ) -- ( $ (box.south west) + (0,-3pt) $ ) -- + (5pt,0);   \end{tikzpicture}\par\medskip% }  \begin{document}  \begin{myidea}{Title} This is for test. This is for test. This is for test. This is for test. This is for test. This is for test.  This is for test. This is for test. This is for test. This is for test. This is for test. This is for test.  This is for test. This is for test. This is for test. This is for test. This is for test. This is for test.  This is for test. This is for test. This is for test. This is for test. This is for test. This is for test.  \end{myidea}  \end{document}   PS: I need to get all logos in Black color only...


Isn't "there're" a contraction for "there are"?

Aw, don't be silly. Well, I think so. So we'll say, "There're books in the library." We can also say, "We know there're not lots of foods or drinks in the library, but only books."


Conditional sentences - which is correct?

If I had bought insurance for the trip, I would have got a refund after I got sick and had to cancel.  OR  If I had bought insurance for the trip, I would have got a refund after I had got sick and (had) had to cancel.  ?


Toggle language by pressing Shift + Command

I've moved from PC to Mac and I'm used to pressing Shift + Ctrl, while on Mac I have to press Ctrl + Space. This is a bit frustrating (probably because I've only used it for 2 days), so I opened System Preferences > Keyboard > Shortcuts and tried to change the shortcut to Shift + Command and for some reason it refuses to change.   I tried to test some other shortcuts such as Command + Z and it works fine. I'd still like to change it to Shift + Command. Is there a way I can achieve this?


Where can I download a DL 4000 chipset driver for 13.04

I would like to say thanks in advance for any and all help.  I recently bought an AOC e1659fwu usb powered monitor. This monitor came with a CD/DVD which had drivers on it- but they were only for Windows. I am currently running 13.04 (raring ringtails?). I've googled around a lot and also asked AOC customer service and accoring to them, there are no drivers for me to download. I asked around a bit and the general feedback I've been given is that Linux has display drivers inherently. One person said that I should find out what chipset my monitor uses and try downloading the driver for that specific chipset. If that's the best way to do it, then would anyone be able to help me locate where I can download a DL 4000 chipset driver please. If this isn't the best approach, would anyone be able to direct me down the right path.   Incase it's relevant: my laptop is an ASUS N56V and I'm currently dual booting Windows 8 and Ubuntu 13.04


I have  bash-script that uses sudo commands, but in the middle I need to stop sudo-influence and then later reinstate it.  Very simple version using Pseudo code  sudo apt-get install -y synaptic sudo ... // I need to suspend sudo here, otherwise the folder  // is created with root as the owner. mkdir ~/mystuff // then reinstate it here sudo apt-get install -y ssllib   Does sudo request the passphrase as soon as it starts to run a bash script - or- does it only ask when it encounters the first "sudo" line?  If so, then I think I may be able to move all the non-sudo stuff to the top. But, the problem there is I will have to wait until the first "sudo" line is encountered to then enter the passphrase.


How do I apply differential cryptanalysis to a block cipher?

I have read a lot of summaries of block ciphers particularly with regards to the NIST competitions stating that reduced-round block ciphers are – for example – vulnerable to differential cryptanalysis.  I have a general idea that the application of differential cryptanalysis is to look at the difference between inputs;  makes that fairly clear. However, I could take any two inputs for any given block cipher and I am pretty certain I'd be staring at random differences.    I am aware this is the idea of a well written block cipher; however, assuming a broken or vulnerable cipher (feel free to provide simple examples) how do I go about choosing differences to try?  Are there any clues in algorithm design that would inform a decision on which values to choose?  How does being vulnerable to differential cryptanalysis impact a cipher in the wild?  If all I have are differences between known plain-texts and known keys as my analysis and a captured ciphertext as my data to exploit, what can I actually deduce?


What my PPI should be set at for others to download my photos?

I sell my photos  on Etsy for others to buy and download and I'm trying to figure out what I should set my PPI at and if I should resample when I do it...it is all very confusing. I'm reading all different sort of opinions on the Web about it.  I tried not resampling and it made my images very small. So I don't know what to do.   Advice!!?


I'm fairly new to blender and not a graphics person by any stretch of the imagination. I've been having some success though modelling semi-reflective glass for a project I wish to build (physically) and I'm wondering if it is possible to model the effects of a lens. The lens I wish to model is a double-convex type. It has a diameter of 120mm and a focal-length of 301mm. Is this something that can be modelled in blender and if so, how? I'd like to be able to position the camera close to this lens and reproduce the magnifying effects of the lens on the scene behind the lens as well as depth-of-field effects.  Thanks a lot.


IEnumerable and IEnumerator, or foreach C#

I was learning about Collections, in this case the interfaces IEnumerable and IEnumerator, I studied that with this simple example:   string s = "Hello world";             IEnumerator rator = s.GetEnumerator();              while (rator.MoveNext ())             {                 char c = (char)rator.Current;                 Console.WriteLine(c+".");             }   But then I thought... I can do this with foreach loop, so I tried:    foreach (char c in s)             {                 Console.WriteLine(c+".");             }   If I can do the same with the foreach loop, Why Do I have to use the interfaces IEnumerable and IEnumerator? What is better in performance? Imagine, I am doing a program which spell each letter of a big text, What Would I have to use? Interfaces or foreach loop?  I have been researching about foreach loops and I found that foreach works with interfaces.


Is moving wp-config outside the web root really beneficial?

One of the most common security best practices these days seems to be . I've never really found a good explanation for that, but I'm assuming it's to minimize the risk of a  malicious or infected script within the webroot from reading the database password.  But, you still have to let WordPress access it, so you need to expand open_basedir to include the directory above the document root. Doesn't that just defeat the entire purpose, and also potentially expose server logs, backups, etc to attackers?  Or is the technique only trying to prevent a situation where wp-config.php would be shown as plain-text to anyone requesting http://example.com/wp-config.php, instead of being parsed by the PHP engine? That seems like a very rare occurance, and it wouldn't outweigh the downsides of exposing logs/backups/etc to HTTP requests.  Maybe it's possible to move it outside the document root in some hosting setups without exposing other files, but not in other setups?    Conclusion:  After a lot of back-and-forth on this issue, two answers have emerged that I think should be considered the authoritative ones. Aaron Adams makes a good case in  wp-config, and chrisguitarguymakes a good . Those are the two answers you should read if you're new to the thread and don't want to read the entire thing. The other answers are either redundant or inaccurate.


Violated non-proportional hazards - Cox regression model of time-dependent covariable

I have been reading a lot on Stack Overflow for a while now, but this is my first post here. Thanks for all the help I've received! I am currently working on a project where we are trying to estimate the effects of a drug on overall and disease-specific mortality. This is a prospective observational study, where patients are enrolled when they have a blood test, which happens at different time points. Patients are then followed until death, emigration, or the end of the study. To figure out if the drug impacts mortality, we have set up a Cox regression model where drug exposure is allowed to accumulate over time with the cumtdc function specified . The problem is that the proportional hazards assumption is severely violated - with p-values approaching 0 for most of the covariates. I am a beginner to this type of analysis and what I have read and tried so far is:  Splitting continuous variables (such as age) into categories, which did not make a difference. Could interaction variables be helpful here - if so, how do I best implement them? Would this analysis be better suited to be performed with an accelerated failure time model? Is it possible that the analysis could be valid despite the non-proportional hazards? I am asking this since, intuitively, there are many individuals in the study (> 300 000) and many events (> 30 000), so even minimal violations might be registered as significant.  I am attaching the Schoenfeld plots with the respective p-values for the covariables.  I would be most appreciative of any suggestions to this problem. There seem to be many different approaches out there, making it a bit tricky to navigate for a beginner. Thank you!


Which is preferred? Are both technically correct?  1. Mike scored 40 points; John, 17; and Victor, 2. (Is the added punctuation here [ie the semicolons and extra commas] unneeded?)  2. Mike scored 40 points, John 17, and Victor 2.


Query if modifier exists on listed objects

I'm new to Blender and the way it works with Python, so I still don't understand quite well the way the different commands work.  But I wanna create a small tool where i can assign a modifier to a list of selected objects and play with the properties. So far I achieved adding the modifier to the selected objects, but if I happen to create new elements and select all objects in the scene I need to find a way to query which objects already have the modifier and which do not. So if I run the script again, only the ones without the modifier get it, otherwise it gets duplicated.    So far I haven't been able to find a way to do this using  bpy.context.selected_objects , I don't know if there is another way or if i'm using it wrong.  Here's the script i have to apply the modifier:  import bpy  objSel = bpy.context.selected_objects   for i in objSel:    if i.type == "MESH":                   subD = i.modifiers.new(name = "Subdivisions",type = 'SUBSURF')        subD.show_only_control_edges = True   Any help is appreciate it!


Return types of main function in C as character return type

Can Main function be defined as Character return  type? and what are the other different return type we can use for main function?


Why there is no unique "recipe" for quantization of a classical theory?

I have seen in Wikipedia that different quantization methods exist (see Wiki article with name "Quantization"). Moreover, Wikipedia stated that there is more than one way to quantize a classical theory. Why? Why quantization is not unique?  If you hear lectures about quantum theory, you will learn the canonical (commutator relation) quantization and the Path integral method. You will learn that canonical method and Path integral method are equivalent.   Now there also exists a quantization with the Moyal $\star$ product and phase space; this method is also equivalent to the methods I have mentioned previously.  Main question: Which quantization method is completely different to the most convenient one like commutator relations? I am thinking about things like the spin network state quantization that is used in Loop quantum gravity. Can spin networks be used to quantize well-understood theories like quantum chromodynamics also?  Answers would be greatly appreciated.


What is the order of excecution of printf(..) parameters?

I want to do something like this printf("%d,%d",array[c], array[c+1]), with only one variable that increases in every iteration. I wrote the following code, and I expected "1,2" to stdout, I was wrong:  #include <stdio.h> int main() {     int c = 1;     printf("%d,%d",c++,c++); /* 2,1 */     //printf("%d,%d",c,c++);   /* 2,1 */     //printf("%d,%d",c++,c);   /* 1,2 */ }   If I try doing printf("%d,%d",c++,c) and  printf("%d,%d",c,c++), I can see that there is no defined order of execution of the "c++" statements.  Could somebody explain how the code I wrote compiles to ? And why and how does it change according to the position of the "c++" statements.


Particle color from emitter's shader color without any textures

Using the Texture Coordinate node with From Instancer checked, I can assign particle's color based on the emitter's texture.  NOTE: I am aware of previous questions that address a generally similar issue, such as this , for instance. However, none of the answers in these questions address my problem. They are all related to inheriting color from a texture. I want to inherit the surface color from Blender shaders, when using multiple materials on the emitter.  However, I can't seem to find a way to assign the particle color if I am only using simple shaders with no textures. Let me show you an example of what I am trying to achieve. Let's say I have a plane that looks like this:  This plane uses two simple emission shaders, one for each half.  If I create a hair particle system, this is what I get:  By default, the particle system is using the Path option in the Render panel, and it seems to give me the option to use only one of the available material slots.  What I want to do is to swith the Render As setting to Object and create a material for the particle that inherits the surface color of the face from which the particle was emitted. So, if I have something that looks like:  ...I would like the cones on the red side to be red and the cones on the green side to be green. I can of course achieve this result by creating two different particle systems that use different materials and then control where these particles appear using vertex groups. However, I would like to see if there is a way to achieve what I want using just one particle system and the material assigned to the particle object. Any ideas?


How to compile \nomencl in order to have a list of abbreviation?

I am quite new in LaTeX and I am using it to write my master thesis. Everything works quite fine until I wanted to make a list of abbreviations. I read most I could, including the nomencl package documentation and a lot of subjects here, but I still can't understand how to compile it.   I'm using TeXShop on Mac and I have the main page with the code and a smaller window of command, that displays any mistake when I typeset, for instance. My code is the following :      \documentclass{article}     %other packages     \usepackage[intoc]{nomencl}     \renewcommand{\nomname}{Abbreviations}     \makenomenclature       \begin{document}     %title and other stuffs      \newpage     \setcounter{tocdepth}{3}     \tableofcontents     \printnomenclature     %Then some example of my abbreviations :     \section{Experimental Part}    \textit{Synthesis of some compound \textbf{(aa)} \cite{FAP}}\\ %E13     To a solution of 2-bromo-5-methoxybenzoic acid in DMF \nomenclature{DMF}{Dimethylformamide} (33 mL) is added CuCN\nomenclature{CuCN}{Copper Cyanide}.       \end{document}   When I compile it, even twice as for other commands, nothing appears, not even a blank page. And I can't type in my command window, so impossible to type the command :   makeindex master thesis.nlo -s nomencl.ist -o master thesis.nls   recommanded by the nomencl package documentation.


Use std::find on vector to find matching class attribute

Say I have a class myClass with 3 attributes in the constructor (string value, int pos, int pos_2).  Now I make a vector of objects of said class.  How would I search through vector<myClass> to find the index of any class objects with a string that matches a given string?    Example:  Here's a (non-functional) attempt at finding a class object that has the string hello as its string value:  std::string to_find = "hello"; std::vector<myClass>::iterator duplicate_it; duplicate_it = std::find(subrelation_vector.begin()->value, subrelation_vector.end()->value, to_find); int duplicate_pos = *duplicate_it->pos;


Hyphenation of -oriented when preceded by two words

Which of these two is correct:     (a) I have experience in data science-oriented programming languages.   or      (b) I have experience in data-science-oriented programming languages.


Marginal, joint, and conditional distributions of a multivariate normal

Let $Y$ ~ $MVN_3(\mu, \Sigma)$ where $\mu = (5,6,7)$ and $\Sigma = \begin{bmatrix}2 & 0 & 1\\0 & 3 & 2\\1&2&4\end{bmatrix}$ Find (a) The marginal distribution of $Y_1$ (b) The joint distribution of $Y_3$ and $Y_1$ (c) The conditional distribution of $Y_3$ given $Y_1$. Now, my experience with probability prior to this class is limited to Sheldon Ross's intro book and Wackerley, Mendenhall, and Schaeffer, which I'm currently using for my Into Math Stat class. I've never before done conditional, joint, or marginal densities with matrices, nor have I covered them for variables that are dependent.... So please forgive the embarassing attempts I have made to solve this. It also does not help that the class this problem is for does not have a textbook, just some notes frantically scrambled onto a whiteboard twice a week while our prof reminds us that he hates teaching and would rather be researching... My attempts (a) I can write $Y_1 = AY + b$, where $b=(0,0,0)^T$ and $A = (1,0,0)^T$. Thus: $Y_1$~$MVN(\cdot,\cdot)$ because it is a linear transformation of a multivariate normal. Thus: $E[Y_1]=E[AY+b]=AE[Y]+b=(1,0,0)^T(5,6,7)^T=5$ $Cov(AY) = ACov(Y)A^T = A\begin{bmatrix}2 & 0 & 1\\0 & 3 & 2\\1&2&4\end{bmatrix}A^T$ This becomes: $(2,0,1)\begin{bmatrix}1\\0\\0\end{bmatrix}=2$ However, knowing that $Y_1$ and $Y_3$ are not independent makes me question this result...    (b) The joint distribution of $Y_1$ and $Y_3$ I basically did the same thing as above but with $A = \begin{bmatrix}1 & 0 & 0\\0&0&1\end{bmatrix}$. This yielded $W = (Y_1, Y_3)^T$ ~ $MVN(\mu=(5,7)^T, \Sigma = \begin{bmatrix}2 & 1\\1&4\end{bmatrix})$ (c) The conditional distribution of $Y_3$ given $Y_1$ This part I'm honestly at a loss for...unless I'm just supposed to take the integral of the density function for $(Y_1, Y_3)$ divided by the density function for $(Y_1)$, i.e., conditional = $\int f_{Y_1,Y_3}/f_{Y_1} dy_1$. If I am supposed to do this, how do I get the actual joint density function and perform the integration and division? The only formulas I've been provided for multivariate normal distributions involve matrices, and I have never seen matrix integration. I apologize if my comprehension is lacking, my classmates and I have been thrown into this material with no assistance from our professor.


How can I generate a radom number for twice?

So guys I am trying to make a function that returns a random number (which I need that code to be executed excluesively) generate the same number for different two functions. Basically I am going to call a function that returns a random number but when I call that function again, I need it to be the same number as in the previous function (I am not very good at javascript.). I have these codes, but of course it generates some another number in each function:  function gen() {     return Math.floor(Math.random() * 21) + 40; }  function chan() {     var rand = gen(); }  function sell() {     var rand = gen(); }


Is there a way to get administrative access from Windows Subsystem Linux files to Windows files correctly?

Is there a way to access Windows file with administrative rights using WSL?  sudo vi /mnt/c/Users/a/admin/file.txt


Cannot install code blocks from Ubuntu Software Centre

it displays a window  that says Requires installation of untrusted packages it says:  This requires installing packages from unauthenticated sources.  details--codeblocks codeblocks-common codeblocks-contrib gamin libcodeblocks0 libgamin0 libwxbase2.8-0 libwxgtk2.8-0 libwxsmithlib0 valgrind   the pop up window also has two options: ok and repair.  when i am trying to click Ok it doesn't do anything and when i am trying to click repair the window appears another 3-4 times and in progress one program called update cache is running but the cache didnt get updated and apart from that i updated cache from the update centre.  Please Help


$a+b=c \times d$ and $a\times b = c + d$

There is a 'nice' relationship between the integers (1,5) and (2,3) as  $$1+5=2 \times 3;$$ $$1\times 5 = 2 + 3.$$  So I tried to find all positive integers pairs $(a, b)$ and $(c, d)$ such that $$a+b=c \times d;$$  $$a\times b = c + d.$$  To find this, $a, b, c, d$ must satisfy $$(a+1)(b+1)=(c+1)(d+1).$$ However, this condition is only necessary but not sufficient. Any idea?


I want to display record getting value from database where id=id (insert value into database from getter method not work) in java

I create A java file Name Attend.java  public class Attend { String attend_id,studname,owner;  public String getOwner() {     return owner; }  public void setOwner(String owner) {     this.owner = owner;  }public String getStudname() {     return Studname; }  public void setStudname(String Studname) {     this.Studname = Studname; }  public String getAttend_id() {     return attend_id; }  public void setAttend_id(String attend_id) {     this.attend_id = attend_id; }} ;   other file DAO file AttendDao.java  , public class AttendDao {public static List<Attend> getAllRecords(){     List<Attend> list=new ArrayList<Attend>();         //Attend u1=null;      try{         Connection con=DbConnector.getConnection();         PreparedStatement ps=con.prepareStatement("select attend_id,studname,owner from attend_detail where owner=?");         Attend u1 = null;         //System.out.println(u1.getOwner());         ps.setString(1,u1.getOwner());         ResultSet rs=ps.executeQuery();         while(rs.next()){             Attend u=new Attend();             u.setAttend_id(rs.getString("attend_id"));             u.setStudname(rs.getString("studname"));             u.setOwner(rs.getString("owner"));             list.add(u);         }     }catch(SQLException e1){System.out.println("sql error:"+e1);     }catch(Exception e){System.out.println(e);}     return list;     //} }},   i want to get this owner value from database if owner="xyz@xyz.com" then it will display only that rows data  This is my database and its value.. database name Attend_detail.  attend_id  studname     owner  ATN001     abcd       xyz@xyz.com ATN002     efgh       null          this my jsp view.jsp   <%@page import="com.attend.detail.AttendDao,com.attend.detail.Attend,java.util.*"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

Attendance List
  <%  List<Attend> list=AttendDao.getAllRecords();  request.setAttribute("list",list);  %>

           Attend_id	           Student_id	            owner

     <c:forEach items="${list}" var="u">
           ${u.getAttend_id()}	           ${u.getStudentid()}	          ${u.getOwner()}
        </c:forEach>

   it shows NullpointerException  how to solve it.. please rply.


First to mention that I came to the need of asking help after furious research I reattempts for about 3 weeks.  I checked previous threads in Oracle community but nothing works for me. I am trying to restore Oracle 11.1.0.7. multi HDD cluster production on single hdd locally on amazon ec2.  Restore is done from full back-up copy I downloaded from ftp location (I have no access to production,export and etc.) just have access to the files, i.e. I  am not able to change anyhow export procedure.  So here are my steps in brief (I guess that problem might be in some of them):   rman target / set DBID ... startup nomount RESTORE CONTROLFILE FROM 'file destination' shutdow;startup mount; Catalog the backup files to rman: catalog backuppiece 'C:/BKUP/AL_2851492942_20151016_893271615_PGQJSFHV_1_1';for all AL and BK files sqlplus / as sysdba Rename all redo files to match my local directory structure rman:crosscheck backup;     Run{ Rename all data files to match my local directory structure  SET UNTIL SEQUENCE 50511;       RESTORE DATABASE; SWITCH DATAFILE ALL; RECOVER DATABASE;  }  sqlplus sys/sys as sysdba shutdown immediate;  startup mount; alter database noarchivelog; Drop the no longer used log files:-drop these in state UNUSED left Active and Inactive Drop all temp files(they point to other drive letter; ALTER DATABASE OPEN; ALTER TABLESPACE mytempspace   ADD TEMPFILE 'c:\oracle............dbf'   SIZE 1G REUSE   AUTOEXTEND ON   MAXSIZE UNLIMITED;   My problem is that on my second query (get) to db through my app I receive:  ORA-01578: ORACLE data block corrupted (file # 64, block # 2559928) ORA-01110: data file 64: 'C:\ORACLE\ORADATA\mydb\mydbLOBDATA2_1.DBF' ORA-26040: Data block was loaded using the NOLOGGING option ORA-06512: at "mydbUSER.POBJECTSTATE", line 78 ORA-06512: at line 1   What I was able to find with validation and it is LOBSEGMENT -   Lob_ObjectState and it logically corrupted.  I try DBMS_REPAIR and with rman advise failure (which suggest to restore my copy from back-up- nothing useful).  Since back-up are refreshed every week I try with new ones from the next week, again the same problem.  Is there a possibility that the problem starts from export (how can I check  this-I do not have access but i may ask db admin to check anything)?  Any other ideas?


Can you lift yourself standing on a wooden block using pulley mounted on block?

I am new to this site. Please help me figure out this problem.  Is it possible to lift oneself like shown in schematic?  Waiting for good suggestions.  Chirag


What is the fastest way to test a website across all browsers and browser versions?

I have made a social media web application and I want to test the compatibility of the web application for the different type of browsers and browser version.     I started testing my web application manually but it is not an efficient way to cover all combination of browsers and browser versions. So is there any way possible to do same?


What is the purpose of imaginary numbers

In my math class, we understand how to work problems with imaginary numbers in them, but do not understand the purpose or reasoning behind them.


$\sum_{n=1}^{\infty}\underbrace{ \sin\left ( \sin \left ( \dots \sin \left ( \dfrac {\pi}{2} \right ) \dots \right ) \right ) }_{n\text { #} \sin }$

Following interesting trigonometric series came into my mind when I solve another series problem.  $\sum\limits_{n=1}^{\infty}\underbrace{\sin \left ( \sin \left ( \sin \left ( \dots \sin \left ( \dfrac {\pi}{2} \right ) \dots \right ) \right ) \right )}_{n \text { number of } \sin \text { terms}}\\=\sin \left ( \dfrac {\pi}{2} \right )+\sin \left (  \sin \left ( \dfrac {\pi}{2} \right ) \right )+\sin \left ( \sin \left (  \sin \left ( \dfrac {\pi}{2} \right ) \right ) \right )+\dots\\=1+\sin \left (  \sin \left ( \dfrac {\pi}{2} \right ) \right )+\sin \left ( \sin \left (  \sin \left ( \dfrac {\pi}{2} \right ) \right ) \right )+\dots $  Since for each $x\in \mathbb {R}$, $-1\le \sin x \le 1$, $n$th term of the series is defined  and lies between minus one and plus one.  Do you have any idea about convergence of the series?  I believe that many of you have nice ideas and arguments. So please share with us. Thank you.


Is there a way to run all commands in bash as if they were invoked with time in front? I want that I could type $ some_command and this will actually invoke $ time some_command.


How do you use plural or singular form of an adjective?

So I was taught that you should almost always use singular form of an adjective instead of plural form. But recently, I've seen people using plural form and it sounds quite weird and I don't know if it is correct.  For example,   "Salary tax" instead of "Salaries tax" "Office supplies" instead of "Offices supplies" "Product demo" instead of "Product demo"   In the above cases, the word "Salary" is used as an adjective to describe the type of "tax", so it will be in singular form. But I saw people using salaries tax and not sure if it is grammatical.  So my question is if there are any general rules on how to use the singular/plural form of an adjective?


Could anyone tell me why my code for this Huffman encoding algorithm is producing an error?

I have a Huffman Tree, and a character, and I want to return what that character's encoding within the Huffman Tree should be.  I've implemented it using the breadth-first traversal method, and each time I'm checking the left and right tree, I'm checking if the tree's data is equal to character I'm looking for. Each time I go right or left, though, I add 0 or 1 to the encoding so far. Eventually, when I find the character equal to the tree's data, I return that tree's encoding value.  Code:      public static String findCharEncoding(BinaryTree<CharProfile> bTree, char character) {         Queue<BinaryTree<CharProfile>> treeQueue = new LinkedList<BinaryTree<CharProfile>>();          // Create a TreeWithEncoding object from the given arguments and add it to the queue         treeQueue.add(bTree);          while (!treeQueue.isEmpty()) {             BinaryTree<CharProfile> t = treeQueue.remove();  ->          if (t.getLeft().getData().getCharacter() == character) {                 return t.getLeft().getData().getEncoding();             }             if (t.getLeft() != null) {                 t.getLeft().getData().setEncoding(t.getLeft().getData().getEncoding() + "0");                 treeQueue.add(t.getLeft());             }              if (t.getRight().getData().getCharacter() == character) {                 return t.getRight().getData().getEncoding();             }             if (t.getRight() != null) {                 t.getRight().getData().setEncoding(t.getRight().getData().getEncoding() + "1");                 treeQueue.add(t.getRight());             }         }          // If it gets to here, the while loop was unsuccessful in finding the encoding         System.out.println("Unable to find.");         return "-1";     }   Which I've implemented as follows:          for (int i = 0; i < charOccurrences.size(); i++) {             char character = charOccurrences.get(i).getCharacter();              charOccurrences.get(i).setEncoding(findCharEncoding(huffmanTree, character));             System.out.println(charOccurrences.get(i).getEncoding());         }   CharProfile is a custom class that holds the character value, the probability of the character and the encoding.  It keeps returning a NullPointerExceptionError at the line if (t.getLeft().getData().getCharacter() == character) {, which I've indicated with an arrow. I've tried and tried, but I can't seem to figure out why, other than the fact that it's t.getLeft().getData() that's returning the error, not the whole thing, or t.getLeft(), but I still can't figure out why.


How to prove $\frac{a}{b+c}+\frac{b}{c+a}+\frac{c}{a+b} <2$?

Prove the inequality for a triangle with sides $a,b,c$ we have $$\dfrac{a}{b+c}+\dfrac{b}{c+a}+\dfrac{c}{a+b} <2$$  Trial: Since $a,b,c$ are sides of a triangle I know  $a+b>c,b+c>a,a+c>b$


Show custom popup and prevent page from refreshing / exiting if form changes and the user did not save his work

I Have a page with a form in it ( many inputs, selects, textareas and popups ). I made a custom popup  - The client does not want the default alert message - to show when the user changes something in the page and forgot to save it. The issue is to prevent the page from reloading or exiting until the user choose when of the if he like to stay on the page and save his work or not. Any recommendation or suggestion.   $('#node-application-front-radb-form').data('serialize', $('#node-application-front-radb-form').serialize()); $(window).bind('beforeunload', function(e) {   var urlApplication = window.location.href.indexOf("/application/");   if (urlApplication > 0) {     if ($('#node-application-front-radb-form').serialize() != $('#node-application-front-radb-form').data('serialize')) {       ConfirmDialog("Voulez-vous sauvegarder vos modifications.? Si oui, appuyer sur le bouton Enregistrer en bas de la page de l'application");       function ConfirmDialog(message) {         $('

').appendTo('body')           .html('

' + message + '?

')           .dialog({             modal: true,             title: 'Modification non enregistrer',             zIndex: 10000,             autoOpen: true,             width: 'auto',             height: 400,             resizable: false,             buttons: {               'Oui': function() {                 stop();                 $(this).dialog("close");               },               'Non': function() {                 $(this).dialog("close");               }             },             close: function() {               $(this).remove();             }           });       }     }   } });


I like the UI and the cleanliness of the Stack Exchange sites, but one thing that bugs me is the wording of the notification that something is a duplicate. I have had many questions closed because they are duplicates, but often, they aren't a true duplicate or an exact duplicate.  I'm not complaining about the looseness that questions get closed, I'm saying that the notification should be changed from "exact duplicate" to either "possible duplicate" or just "duplicate". The reason is because that is inaccurate. Questions that are exact duplicates should have the exact same question and the same answer. Saying that a question is closed as a duplicate would mean almost the same thing, but it wouldn't have a connotation that the question is exactly the same. Questions like  could be fixed with the wording of the notification and a bit of strictness on the reason to close as a duplicate.


Weird shadows when using solidify modifier on hollow cylinders

I'm seeing weird shadows when using the solidify modifier on hollow cylinders. I've verified all normals are correct. I can't seem to find any way to fix this. The shadow problems carry over to Unity when imported. What can I do to fix this?


Getting rank for keywords that I don't want to appear on my website

One of my products has two names. One of them is what I consider correct and thus it is what I want to appear on my website. The other name is incorrect for me, so I would like to avoid it. But I know that many people will search my product using the "bad" name.  How could I get the "bad" name indexed for my site on search engines even if nobody can read it there? Of course, I want to do it "legally" so that no engine will ban my site considering it as cloaking, black hat SEO, etc...   EDIT: Having that "bad" name on my backlinks is not an option. For example I would perceive user reviews connecting my site to that word as a negative point.  Maybe having my site as a search result for that word could be negative as well, but I think it is worth it.


I have a mesh with round face(picture1). I just wondered if i could unwrap this round face as straight as in the second picture. Is it possible ?    This is how i want to unrwap it;


Problems with java.net.SocketException: Connection reset

how are you? I was creating a system that passes a "protocol" to the server and it returns an object, but I'm having problems with java.net.SocketException: Connection reset. What can it be?


polyglossia or bidi bug: [\d\.] gets inverted to [\.\d]

After bidi was updated to v. 19.6 (2016-05-23), using at least one RTL language with polyglossia leads to number and following dot being inverted. Cf.  \documentclass{book} \usepackage{polyglossia} \setotherlanguage{hebrew} \begin{document} 6. \end{document}   with and without \setotherlanguage{hebrew}. Note that it is not necessary to actually use that language.  I do not know whether this is a bug in bidi or an incompatible change which polyglossia needs to adapt to. Because of this I have not opened an issue on polyglossia's github page. Sadly, bidi's contact information are outdated – the sourceforge referred to on CTAN is unused and the github page that is mentioned in the package's readme and PDF does not seem to exist any more either.  The problem might be something along the lines of     Does anybody have the previous version of bidi at hand?  TIA, Dario


How to use GPS/Maps without an Internet connection?

I need a way (possibly a third-party application) that allows me to use maps and GPS without an Internet connection.  I don't use it by car, just for walking in cities. It would be nice if I could just copy all data relative to a particular city before going there for tourism.  The Google Maps app does not store maps reliably, so it is risky to rely on it without an Internet connection.


Free up phone memory taken up by thumbnails

I have a 16 GB Samsung Galaxy S3 phone - 5.05GB of which is being taken up by thumbnails! Can I move these to my 32GB SD card?   I have tried DMR (duplicate media remover) and that has detected duplicate pics and videos but stops when I try to delete them.


Valid references on origins of Machine Learning, Statistical Learning and Data Mining

I know it's a rather debated question on Stack Exchange communities but let me explain the points of this question.  I'm writing my capstone on Machine Learning and I need to clarify deeply, giving valid references, the differences among Data Mining, Big Data, Statistical Learning and Machine Learning. As far as I understand (I'm reading The Elements of Statistical Learning, An Introduction to Statistical Learning which are well known books) and based on the questions linked below, those are basically Machine Learning. Correct me if you do not agree with me.  However, I can't find an article or book with a detailed discussion on the origins of those fields and relationship of each other and I can't cite, like, the questions below. They're not considered valid references.


Does Stack Exchange prevent cheating with "fake" accounts?

I've been thinking how easily a user could create a fake account to upvote all his own questions/answers. I didn't think of doing it myself; I like to win my reputation the right way, but I'm sure there are a lot of people who would do that.  Does Stack Exchange prevent this in any way?


java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TableRow.addView(android.view.View)'

Hello guys i am here with this problem when i try to add facebook audience network to my application it crashes right away getting this error can anyone please help me with that ?   2020-11-11 09:01:22.946 28765-28765/com.amongushowtoplay.com E/AndroidRuntime: FATAL EXCEPTION: main     Process: com.amongushowtoplay.com, PID: 28765     java.lang.RuntimeException: Unable to start activity ComponentInfo{com.amongushowtoplay.com/com.amongushowtoplay.com.PTPlayer}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.LinearLayout.addView(android.view.View)' on a null object reference         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3334)         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3473)         at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)         at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)         at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2067)         at android.os.Handler.dispatchMessage(Handler.java:107)         at android.os.Looper.loop(Looper.java:224)         at android.app.ActivityThread.main(ActivityThread.java:7519)         at java.lang.reflect.Method.invoke(Native Method)         at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:995)      Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.LinearLayout.addView(android.view.View)' on a null object reference         at com.amongushowtoplay.com.PTPlayer.onCreate(PTPlayer.java:91)         at android.app.Activity.performCreate(Activity.java:7893)         at android.app.Activity.performCreate(Activity.java:7880)         at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1306)         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3309)         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3473)          at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)          at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)          at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)          at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2067)          at android.os.Handler.dispatchMessage(Handler.java:107)          at android.os.Looper.loop(Looper.java:224)          at android.app.ActivityThread.main(ActivityThread.java:7519)          at java.lang.reflect.Method.invoke(Native Method)          at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:995)


I am learning the use of tikz. Your help is very impressive. I have to complete my drawing soon and its gives me difficulty to fix the positions of points from where to start and where to go. Would you suggest me at least one of the two plots at your earliest? I will be much benefited if you kindly help me for this.    \documentclass{article} \usepackage{tikz} \usetikzlibrary{   decorations,   decorations.markings,   hobby, }  \begin{document}  \begin{tikzpicture}[use Hobby shortcut, scale=1.5]      \draw[thick] (0.4, 0) .. (0.8, 0.3) .. (1.0, 0) .. (0.4, 0);     \draw  (-.3 ,1).. (0, 0) .. ( 1.2 , 0 )      \draw  (-.3 ,-1).. (0, 0) .. ( 1.2 , 0 ) .. ( 0 , 0 ) ;      \draw   (.5, 0) .. ( .8 , 0 ) .. ( .6 , 0 ) .. ( .7 , -0.012);      \draw (-.1, 1)..(-.08, .7)..(-.05, .4)..( .1 , .4 )..( .7 , .6 )..( 1.4 , 0 )..( .7 , -.6 )..( .2 , -.4 )..(-.1,-.5)..(-.11 ,-.8);     \node[inner sep=1.5pt,circle,fill=red] at  ( .7 , -0.01) {};     \node[rotate=0] at  ( 1.2 , -0.7) {\scriptsize H};     \end{tikzpicture} \end{document}   This is for the 2nd.


I am after documentation on using wildcard or regular expressions (not sure on the exact terminology) with a jQuery selector.  I have looked for this myself but have been unable to find information on the syntax and how to use it. Does anyone know where the documentation for the syntax is?  EDIT: The attribute filters allow you to select based on patterns of an attribute value.


I have connnected to fb and my coc has been deleted. How to get back that account which I had linked it to fb?

My account was th 8. I had connected it to fb. Now my coc has been deleted. When I installed it. My old account is not coming. How do I get it back?


I am using the apex pageblock and pageblocksection with lightning LDS. The page block section is not hiding the third column due to rendering issue. Below is the piece of code :  <apex:pageBlock >          <apex:pageBlockSection columns="3" dataStyle="width:10%" labelStyle="width:23%" collapsible="false" >          <apex:selectList value="{!selectedYear}" id="fy" label="Fiscal Year" tabIndex="1" multiselect="false" size="1" styleClass="slds-select">                 <apex:selectOptions value="{!years}" />                 </apex:selectList>                   <apex:selectList id="region" value="{!selectedregion}" multiselect="false" size="1" label="Region" onclick="setPrevVal();"  onchange="showConfirm({!isEdit}, false);" required="true" styleClass="slds-select ">                     <apex:selectOptions value="{!RegionList}"/>                 </apex:selectList>                  <apex:selectList id="month" value="{!selectedMonth}" multiselect="false"                     size="1" label="Month" onclick="setPrevVal();" onchange="showConfirm({!isEdit}, false);" styleClass="slds-select">                     <apex:selectOptions value="{!MonthList}" />                 </apex:selectList>    <apex:selectList id="dsso" value="{!selectedDsso}" multiselect="false" disabled="{!if(selectedMonth == '0',true,false)}"                                  size="1" label="DSSO" onclick="setPrevVal();" onchange="showConfirm({!isEdit}, true);" required="true" styleClass="slds-select">                     <apex:selectOptions value="{!DssoList}" />                 </apex:selectList>                 <apex:selectList value="{!selectedCategory}" id="cat" label="Category" tabIndex="1" multiselect="false" size="1" styleClass="slds-select">                 <apex:selectOptions value="{!categories}" />                 </apex:selectList>                     <apex:selectList id="tfsArea" value="{!selectedTfsAreaNumber}" multiselect="false" disabled="{!if(selectedDsso == '0',true,false)}"                                  size="1" label="TFS Area Number" onclick="setPrevVal();" onchange="showConfirm({!isEdit}, false);" required="true" styleClass="slds-select">                     <apex:selectOptions value="{!TFSAreaNumberList}" />                 </apex:selectList>                </apex:pageBlockSection>          </apex:pageBlock>


London Heathrow airport - do I need a transit visa?

I am traveling from the US to India via London Heathrow on November 6. I will be at LHR on 7th at 6:20 am and departing at 9:25 pm. I'm an Indian national and have a valid US visa.  Do I need a transit visa to stay airside?  I have been scared that British Airways have stopped a few people from boarding flights (no details just rumors).  Do I need a transit visa to stay landside? I want to do some sightseeing. What are the chances of getting past officials using transit without visa concession?  Real stories will help a lot to calm the butterflies in my stomach.


Order of $h$ is equal to the order of $ghg^{-1}$ for all $g , h \in G$.

Show that $o(h)$ is equal to $o(ghg^{-1})$ for all $g , h \in G$.   My attempt.   Let $m = o(h)$ and $d = o(ghg^{-1})$. Then it follows that $m$ is the smallest such integer such that $h^m = 1$ and $d$ is the smallest such integer such that $(ghg^{-1})^d$ = 1.  Consider $(ghg^{-1})^m$, then $(ghg^{-1})^m$ = $gh^mg^{-1} = gg^{-1} = 1$. Hence $d$ divides $m$. (1)  Now consider $h^d$. Since $d$ divides $m$, there exists an integer $n$ such that $m = nd$. Hence $h^d = h^ \frac{m}{n}$ = $(h^m)^{\frac{1}{n}}$ = $1^{\frac{1}{n}} = 1$. Hence $m$ divides $d$. (2)  Therefore by (1) and (2) we get that $d = m$.  Can someone tell me if this is correct?


Can the spacing of menu bar apps be modified in Big Sur?

It's much too wide, which is a problem if you use a lot of menu bar apps.


A friend claims that the phrase for free is incorrect. Should we only say at no cost instead?


Edit apparently they belong in the includes folder, were they also are. could it be of any use for a hacker to have these two folders in the root?    I've been checking my drupal site and noticed in the root folder were two folders, database and filetransfer:    I dont know if this is hacked or belonging to some module or stuff, does anyone know something about this?


Series about proxy space battles via implanted computers in kids

The premise of the story is that there are 2-3 main coalitions on Earth and they fight over resources in the edges of the solar system with spaceships that are controlled from Earth by kids with computers in their heads.  If I recall correctly:   The main character's name is Tom, he starts out by conning people at some sort of gambling arcade before he is found and recruited by the "army" The Pentagon in the US has a super tall tower built in the courtyard called The Spire where most of the three books take place. The reason they need kids for this has something to do with brain elasticity and putting computers in adults causes them to go mad. All the cadets are super dismissive about learning how to program their computer aside from one girl who is super good at it. The best fighters from each side of this conflict were something of superstars, but everyone else was kept completely anonymous for their protection. There were at least 3 books last I knew, released circa 2011-2014 The third book ends with Tom being the first astronaut to Mars. The first book had a green cover, the second was yellow, and the third was red. Though I might have the order wrong.


Simple login with Java code - using conditional assignment

I'm still newbie to java programming. And can anybody tell me what's wrong with the source code? When I run the code, the conditional assignment always outputs "login failed".  import java.util.Scanner; public class ProgramBiodataMahasiswa {     public static void main(String[] args) {         Scanner input = new Scanner(System.in);         String username, password, output;         System.out.print("Enter username     : ");         username = input.nextLine();         System.out.print("Enter password     : ");         password = input.nextLine();         output = (username=="kesit" && password=="ps123") ? "login successfully" : "login failed" ;         System.out.println(output);     } }


Virtual Memory being utilised when plenty of RAM is avalible

I use RainMeter (Desktop Customisation Tool) and It comes with a widget that displays real-time RAM and Virtual Memory usage, and ever since I've had it - it always displays at least 10%-30% SWAP usage. Is comes to this % by adding RAM usage with "SWAP"/Virtual Memory usage, which comes in at a difference of +7/10% I have 11.6 GB (from 16Gb) available from application software. Is this healthy or a problem?


Access taxonomy fields on page.html.twig

I have added a header image field to most of my entities of my website so that the header image can be overwritten if needed. On any node, my code in my page.html.twig file works perfectly:  {% if node.field_header_image.entity.uri.value %}
 {% else %}
 {% endif %}   However, I've added a field_header_image field to my taxonomy terms and can't seem to find a way to get the code I need to print on my page.html.twig file.  On my taxonomy page template file, if I print the following code: {{ file_url(elements['#taxonomy_term'].field_header_image.entity.uri.value) }} I get what I need but this doesn't work in page.html.twig file.  Any suggestions on how I can access this? Or is there another way for me to overwrite the header image on my taxonomy terms?  EDIT: Is there a way to do this through a preprocess?


How to mount ext partitions on Windows 8

I have Linux installed on my PC along with Linux (Ubuntu). How can I access files from Windows 8 which are present on the Linux's partition?


No Wifi on new installed Ubuntu, BCM43228

I newly installed Ubuntu alongside Windows on my laptop and no connection to the internet is available.  Ubuntu Version should be the newest and I am new to Ubuntu and wanted to get some experience in it. I tried e.g. sudo apt-get update and other suggested commands but no packages (so every installation doesn't work) were found and connections to some http-resources failed also, because the site couldn't resolve.  Any hints for the solution would be awesome!  If any information is needed, just let me know  Output of lspci | grep -i network:  03:00.0 Network controller: Broadcom Limited BCM43228 802.11a/b/g/n


Is there a way to display webform submission based on element values?

I create a webform in Drupal 8 with certain elements (first name, last name, email, phone, visible (Yes / No)). I want to display the results of the webform based on the element (visible = Yes), so that other roles cannot see the results where visible = No. How can I do that? How can I filter webform submissions based on element values?


I'm out of close votes. Can I use moderator flags instead?

I'm out of close votes again today. But I still have 100 flags. How do the mods feel about me flagging questions for closure, even though I would be able to VtC myself, if I weren't already out of votes?  Related: How do the mods feel about me flagging a question for closure (a super obvious code-dump, for example), even if I have CVs remaining, in an attempt to preserve my close votes for less clear cut close decisions?


i booted windows to my usb and during the installation  i got an error  saying the hdd partition that i want windows to be installed on  must be formatted to ntfs or something like that, that my issue idk how. The format icon in the installer is disabled  i dont want to dual boot just a straight windows


. Thanks, Apple!   by creating two files. In the tutorial max. processes is at 2048.  Did this. Problem is: my max. processes per user is 2500. Found out via try & error. Great stuff!  Why? Why can't I go over this number? Tried 2600, after reboot uname -a shows 1064. What is this number, why exactly 1064? Why am I limited in user processes anyway? The default number was 709...  P.S.: for those who wonder why I need such a "high" number: it's because of JMeter and the thread handling there. If I don't manually edit the maxproc, JMeter just won't run properly. Or not at all.


Brownian motion first hitting time negative barrier

for the standard cases the answer is well known, but somehow I couldn't derive the answer for the following setting:  Suppose that $X_t = \sigma B_t + ct$, where $B$ is a Brownian motion, $c>0$ is a constant and $X_0=0$. We define $H_a = \inf \{ t: X_t =a \}$ for $\underline{a <0}$ as the first hitting time. What is the density of $H_a$ in this case?  It is different from the standard case because now   $$[H_a \leq t] = \left[ \inf_{s \leq t} X_s \leq a \right] \tag{1}$$  Thanks!


How to get rid of "Updates are available" message in Windows 10?

Today I got the following message:    Computer was frozen and the only button available was "Get Updates".  I don't need this feature, I need to work, not serve my machine the time she wants.  Currently I did cold reboot and had time to open task manager and process explorer on different screens before the message appears again. Due to the bug in the application, I was able to kill MusNotification.exe process.  Unfortunately, I am unable to restrict system access to musnotification.exe and musnotificationux.exe files, or add them to antivirus blacklist.  How to ban this feature?


Multiple Ad-Hoc Statements taking longer than previous days

We have a Data Warehouse product which runs a number of ad-hoc (IE SQL Text, not stored procs or dynamic SQL) every night.  The build took significantly longer last night than previous nights and looking at the DW Product's log, I can see a number of INSERT INTO.... SELECT.... FROM statements that have taken longer (approx 10 queries each taken circa 30 mins longer than normal) than the previous night  I have taken a couple of these queries and tried to run them in SSMS and am still seeing the slow performance. I then updated stats on the tables of these queries which has made no difference.  When they are running, I run sp_BlitzFirst and can see the usual CXPACKET and LATCH_EX waits I am used to seeing on the server and nothing out of the ordinary.  The queries have never been the best performing and are in need of tuning but I can't see what would cause this seemingly random nose dive.  The build runs overnight when there is no other activity running. I have observed today and I could see no blocking (Although I wouldn't think it was down to blocking as they run slow in SSMS now)  I have overnight Perfmon traces and they are not showing anything unusual for environment either.  What could the problem be here? It sounds parameter sniffing-esque but these are ad-hoc queries. Nothing has changed on the server.


I have question about a homework.     Why can we be $100\%$ sure after $4$ tests for the special case of $p=13$?   I don't get it. I have a formula that states, that every test increases certainty by $\left(\frac14\right)^k$, where $k$ is the number of tests. So after $4$ tests I get around $99.6\%$ certainty, not $100\%.$


Command-line to list DNS servers used by my system

Is there a command to list dns servers used by my system?  I tried   $ cat /etc/resolv.conf  # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 127.0.0.1 $ cat /etc/network/interfaces  # interfaces(5) file used by ifup(8) and ifdown(8) auto lo iface lo inet loopback   But it doesn't list any servers, if I go to "Network Manager GUI Tool", in Wireless section it lists "DNS 192.168.1.1 8.8.8.8 8.8.4.4"  Can I get same information from command line?  I am using Ubuntu 12.04 LTS


How do  keep going? The pendulum is what makes the clock go. However, the pendulum will slow down due to friction. What energy source keeps the pendulum from eventually stopping?


Comfortable transfer from BVA to Paris center

I need to get from Paris Beauvais Tille Airport to Paris center. What are my options (times, prices)?  I'll be travelling as two (or three) adults plus two small kids, therefore comfortable options are most important and speed (time) is little more imporant to me than price.


Everyone says you should start saving young. However, should my priority be to pay off my mortage?

Everything I read says you should use time to your advantage and start saving as soon as possible. However, I have a home mortage with an interest rate higher that what one could expect to make out of an investment.  I know that mathematically, it make more sense to pay off my mortage. However is there any reason I should not make as large of payments as I can to my mortage and instead save a portion?  I have 6 months of expenses saved, so this type of emergency saving shouldn't be considered.  Thanks!


Please help me install working Nvidia drivers

I am running Ubuntu 18.04 and I cannot get my system to work with Nvidia drivers.  Every time I select any proprietary Nvidia driver (other than the Noveau driver), I get errors.  This is the error I usually get:  You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies:  libnvidia-ifr1-390 : Depends: libnvidia-gl-390 but it is not installed  libnvidia-ifr1-390:i386 : Depends: libnvidia-gl-390:i386 but it is not installed  nvidia-driver-390 : Depends: libnvidia-gl-390 (= 390.48-0ubuntu3) but it is not installed                      Recommends: libnvidia-gl-390:i386 (= 390.48-0ubuntu3) E: Unmet dependencies. Try '' with no packages (or specify a solution).   So, I run sudo apt --fix-broken install as it prompts me, and then I get the following error:  dpkg-divert: error: mismatch on package   when removing 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 by libnvidia-gl-390'   found 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340' dpkg: error processing archive /var/cache/apt/archives/libnvidia-gl-390_390.48-0ubuntu3_amd64.deb (--unpack):  new libnvidia-gl-390:amd64 package pre-installation script subprocess returned error exit status 2 Errors were encountered while processing:  /var/cache/apt/archives/libnvidia-gl-390_390.48-0ubuntu3_i386.deb  /var/cache/apt/archives/libnvidia-gl-390_390.48-0ubuntu3_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   Can anyone help me fix this?  EDIT 1: I completely uninstalled ALL Nvidia drivers, and then just tried to install the 390 drivers. I got the following error message:  E: /tmp/apt-dpkg-install-nItDms/11-libnvidia-gl-390_390.48-0ubuntu3_amd64.deb: new libnvidia-gl-390:amd64 package pre-installation script subprocess returned error exit status 2 E: /tmp/apt-dpkg-install-nItDms/14-libnvidia-gl-390_390.48-0ubuntu3_i386.deb: new libnvidia-gl-390:i386 package pre-installation script subprocess returned error exit status 2


I made a function find_all which returns a vector of position(iterator) of all position of element xr in a STL container ar. What`s wrong with this code.  template<typename T1, typename T2 = T1::value_type> auto find_all(const T1& ar, T2 xr) {     typedef T1::const_iterator const_iterator;     vector<const_iterator> it;     for (auto it2 = ar.cbegin(); it2 != ar.cend(); ++it2)         if (*it2 == xr)             it.push_back(it2);     return it; }   The code compiles in Visual C++ 2015, but gives following error with gcc compiler: Error :   prog.cpp:3:38: error: need 'typename' before 'T1::value_type' because 'T1' is a dependent scope   template<typename T1, typename T2 = T1::value_type>                                       ^ prog.cpp: In function 'auto find_all(const T1&, T2)': prog.cpp:6:11: error: need 'typename' before 'T1::const_iterator' because 'T1' is a dependent scope    typedef T1::const_iterator const_iterator;            ^ prog.cpp:7:10: error: 'const_iterator' was not declared in this scope    vector<const_iterator> it;           ^ prog.cpp:7:24: error: template argument 1 is invalid    vector<const_iterator> it;                         ^ prog.cpp:7:24: error: template argument 2 is invalid prog.cpp:7:28: error: invalid type in declaration before ';' token    vector<const_iterator> it;                             ^ prog.cpp:10:8: error: request for member 'push_back' in 'it', which is of non-class type 'int'      it.push_back(it2);         ^     I want to simply correct it.


Determinant of the square matrix $A$ where $a_{i,j}=|j-i|$

Let $A$ be a square matrix such that $a_{i,j}=|j-i|$, show that the determinant is $D_n=(-1)^{n-1}(n-1)2^{n-2}$   I have been struggling with this problem for a while now and I was hoping to get the slightest of nudges towards the solution. I would appreciate it if you phrase your hints in forms of questions so I can work through the idea. Please don't post a complete solution unless I asked, and thank you for your time. I wanted to obtain a recurrence relation between $D_n$ and $D_{n-1}$ but I failed. So far, I attempted to use Gaussian elimination on the first and last row and I obtained $(-1,1,\ldots,1)$ and $(1,1,\ldots,-1)$ for the first and last row respectively but I didn't know how to proceed from then on.


Does a moving magnet release more magnetic radiation in space as the number of charges placed near it are increased?

Why does a moving(at constant velocity) magnet release more energy in the form of magnetic fields when the number of charges palced near it are increased? Say two current carrying coils $C1$ and $C2$ are in a system in which $C1$ is moving at constant velocity. The energetic magnetic fields from $C1$ will reach $C2$ after an interval of time. So at the moment $C1$ releases energy(in the form of M.F) it doesn't know about charges in surrounding and it can't make predictions of how much energy is to be released at the moment.So it can only give out energy of that amount that it knows at that instant such as velocity and amount of current etc. , therefore a fixed amount of energy in M.F  let say equal to $M'$ is released in a time period. When we add another coil say $C3$ in system, the amount of energy released by C1 is still $M'$ as its velocityand other factors are same. Therefore the total output can't exceed $M'$.  This statement says that you can't get more wireless energy by constant velocity gaining magnet in output even if you use many sets of coils.  But i think that it is false and we can get larger amount of energy as output(by magnetic fields of that magnet) by using extra coils $C2,C3....Cn$ Please solve that question!🧭⏰


Bibliography not showing at end of document

Following various examples, here here my current (relevant) code: in %Preamble% \usepackage[backend=biber, style=numeric, sorting=none, defernumbers=true]{biblatex} \addbibresource{Pages/bibliography.bib}  And at the vary end of the document: \nocite{*} \chapter{Bibliography} \printbibliography %Prints bibliography Bibliography is not showing, what am I missing or doing wrong?  I trimmed down and anonimsed the code for testing, still not working: File main.tex %Preamble \documentclass[a4paper,french,oneside,openright]{book} \usepackage[backend=biber, style=numeric, sorting=none, defernumbers=true]{biblatex} \addbibresource{Pages/bibliography.bib}   \begin{document}     \nocite{*}     \input{Pages/xx-Bibliography.tex}         \end{document}  File xx-Bibliography.tex \chapter{Bibliography} \printbibliography %Prints bibliography  or \chapter{Bibliography} \printbibliography  File Pages/bibliography.bib : sample found on  @article{einstein,     author =       "Albert Einstein",     title =        "{Zur Elektrodynamik bewegter K{\"o}rper}. ({German})         [{On} the electrodynamics of moving bodies]",     journal =      "Annalen der Physik",     volume =       "322",     number =       "10",     pages =        "891--921",     year =         "1905",     DOI =          "http://dx.doi.org/10.1002/andp.19053221004" }  @book{latexcompanion,     author    = "Michel Goossens and Frank Mittelbach and Alexander Samarin",     title     = "The \LaTeX\ Companion",     year      = "1993",     publisher = "Addison-Wesley",     address   = "Reading, Massachusetts" }  @misc{knuthwebsite,     author    = "Donald Knuth",     title     = "Knuth: Computers and Typesetting",     url       = "http://www-cs-faculty.stanford.edu/\~{}uno/abcde.html" }   Also tried Pages/xx-Bibliography.tex: \chapter{Bibliography} \printbibliography[keyword={physics},heading=none,resetnumbers=true]


Keep only the lines containing exact number of delimiters

I have a huge csv file with 10 fields separated by commas. Unfortunately, some lines are malformed and do not contain exactly 10 commas (what causes some problems when I want to read the file into R). How can I filter out only the lines that contain exactly 10 commas?


How often should I lube with Pedros Ice Wax?

I'm a usa cycling road racer. I just got a recommended lube Pedros Ice Wax. I ride about 100 miles a week. How often should I lube my chain with it and how often should I clean it?