why is void used and not a specific data type as arguement for functonn in c++ using class object array

why are we giving void as parameter for getdetails  function i.e getdetails(void) and not (char name, int rollNO ) as  parameter .why is this being done only while using array of class objects. why ?  class student {  private:  char name[30];  int rollNo;  public:  void getDetails(void); //member function to get student's details  void putDetails(void); //member function to print student's details }; void student:: getDetails(void) //member function definition, outside of the class {  cout << "Enter name: " ;  cin >> name;  cout << "Enter roll number: ";  cin >> rollNo; }


Is trace of regular representation in Lie group a delta function?

My major is physics. I need to use some tools in group theory, but I am really  confused by the trace in compact infinite groups. The following is my question:  In discrete group theory, the irreducible representation of identity group element $e$ is always an identity matrix. So the trace of $e$ under  regular representation is the order of the group : $\chi(e) = |G|$. I hope to get  similar result for Lie group. For example, SO(2) has infinite number of irreducible representations, $D^{(m)}$, where $m=0,\pm 1, \pm 2,\cdots $. All of them are 1-dimensional $D^{(m)} = e^{im\phi}$. Here $\phi$ is the rotation angle. For element $R(\phi)$ in SO(2), the trace in $m$th irreducible representation should be  $\chi(R(\phi))=e^{im\phi}$, if we sum all these traces up, we get the trace in regular representation. So what is the trace of $e$ in the regular representation ? It seems to be infinite.


Suppose that the discrete random variable X can only assume values in the interval [0,1]. Among all such random variables, which has the largest variance?


Why aren't alien planets as varied in climate as the Earth?

The Earth in all of its varieties has wide ranging climates. At the top level it has tropical, dry, temperate, continental, and polar climates. And yet often the planets depicted in science fiction are often single climate planets.    The forest moon of Endor The desert planet of Dune The desert planet of Tatooine The desert planet of Vulcan The outer planets in Firefly all appeared to be mostly desert (supiciously like Calfornia desert).  The inner planets in Firefly were all temperate or tropical.  The icy Breen homeworld The icy Andorian homeworld The icy Frost Giant planet   I'm not suggesting there are no Earth-like planets in science fiction, but it feels like it is less common than it should be. Considering the only planet we have as an example is our own, it seems like planets should be just as varied in the cosmos.


Someday, as strange as it feels to me right now, I might be asked to review an article for publication. A while ago my advisor and I were talking about this, and it hit me that I don't really know how to be a good reviewer, beyond the basics:   Respond timely to things, Make your report clear and detailed, Have actually read the paper, Etc.   Beyond this, though, I'm completely in the dark. So I'd like to ask:     What's some good advice for a first-time reviewer?   My field is math, but I'm really interested in general advice (although advice specific to math, or another field, would also be interesting and useful).    I'd like to make this question "community wiki" or analogous, but I can't seem to figure out how - if someone can do so, please do, and then I will delete this paragraph.


on  looking myself it seems to be a missing favicon-* class likely the same css issue as


Show that $\frac{1}{2} +\frac{1}{2^2} +\frac{1}{2^3} + ... +\frac{1}{2^n} < 1 $ and explain how the picture below is a good representation of this inequality.  I came across this in an Algebra book and I'm really interested in how the proof for this problem looks like. Does anyone know how to go about it ?


Marginalising over standard deviation of normal to get the posterior on mean

I am trying to understand the concepts of Bayesian data analysis by examples. I have managed to "do" something, and I would like some advise on where I have gone wrong.  My data is that I have 50 students who take a test and score in the range [0, 1.0], I refer to this as $y$. I would like to calculate the posterior distribution of their mean score $P(\mu|y)$ assuming that the scores are normally distributed with mean $\mu$ and standard deviation $\tau$.   Looking at other examples, I was able to do the following in Pymc:  import pymc as pm import numpy as np import matplotlib.pyplot as plt  # Generate fake data data_scores = np.random.normal(0.5, 0.1, size=50)   mu = pm.Uniform("mu", lower=0, upper=1) tau = pm.Uniform("tau", lower=0, upper=500) scores = pm.Normal("score", mu=mu, tau=tau, observed=True, value=data_scores) model = pm.Model([scores, mu, tau]) mcmc = pm.MCMC(model) mcmc.sample(40000, 10000, 1)  mu_samples = mcmc.trace('mu')[:]  plt.hist(mu_samples, bins=30) plt.show()   Which produces a nice histogram.   However, I am confused because I feel like I have calculated $P(\mu, \tau| y)$ and hence now need to marginalise of $\tau$ before considering the distribution of $\mu$.  Eventually I want to use this compare how to classes did on a test, but I am at a very basic level of understanding right now so any comments are appreciated.


How to smooth out the edge of a material?

Hello Blender Stack Exchange !  I'm having a bit of an issu on a personal project right now, and that issue is that I can't seem to "blur out" or "fade" a material on a part of a mesh how I want to. Here's a pic of the situation :    I'd like for the gold material to fade on the edge to the silver color, but I do not know of an efficient way of doing so... please help.  Thanks in advance ! :)  Here's a link to the file :


Are there Legal Requirements to inform EU immigration about other passports I might have?

Could I travel for example into Germany as a US citizen (= on an US passport), and not tell them that I am a French citizen too? Or this a violation?


Beginner Help on Materials, Shading, and Textures

I have been using blender for some time now and I still can't wrap my head around 4 things, Shaders, Textures, and Materials. What I've understood from researching the internet about them that textures are like a skin that you put around your object or mesh and that there are different types of textures (skins) which are called maps. I don't know what the hell are shaders, I've read so much about them trying to understand and I still can't. Materials are all the texture maps combined together to give the unique look of the material.   Can someone please just tell me if I'm right with my understanding or correct me if I'm wrong and just give me extra helpful information, thanks


Hello everyone I'm new user of Ubuntu.  Today I've installed the Ubuntu 16 on my laptop, whole life I was using windows so I'm totally new to this system.  I was using cable connection but when I unplug the cable I recognize that system does not show any wifi connection...  I tried few solution from this site - neither worked for me and I think that I mess up something by pasting all those solution commands into my terminal...  When I was looking for nvidia drivers In additional driver menu I found something below nvidia driver - there is Unknow: Unknow (I think it might be the problem). I'm lenovo y720 user - all drivers are made only for windows 10. I just want to say something else - when I change the driver of Unknow: unknow in additional drivers for suggested on my cable connection stops working and the wifi doesn't work anyway.  Can anyone help me locate the problem? I would be gratefull :)  @edit lspci -nnk | grep -e 0200 -e 0280 -A3 resault:     02:00.0 Network controller [0280]: Intel Corporation Device   [8086:24fd] (rev 78)  Subsystem: Intel Corporation Device [8086:1010]     Kernel driver in use: iwlwifi   Kernel modules: iwlwifi 03:00.0   Ethernet controller [0200]: Realtek Semiconductor Co., Ltd.   RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168]   (rev 15)  Subsystem: Lenovo RTL8111/8168/8411 PCI Express Gigabit   Ethernet Controller [17aa:3881]   Kernel driver in use: r8169     Kernel   modules: r8169   now rfkill list all:     0: ideapad_wlan: Wireless LAN    Soft blocked: no    Hard blocked: yes 1:   ideapad_bluetooth: Bluetooth  Soft blocked: no    Hard blocked: yes 2:   phy0: Wireless LAN    Soft blocked: no    Hard blocked: no 3: hci0:   Bluetooth     Soft blocked: no    Hard blocked: no   and uname -r:     4.13.0-32-generic


How can I have an amsmath Theorem environment where the name of the environment is passed as an argument? e.g. \begin{note}[Name of the Theorem]     Lorem ipsum dolor sit amet, consetetur sadipscing elitr,     sed diam nonumy eirmod tempor invidunt ut labore et dolore     magna aliquyam erat, sed diam voluptua. \end{note} \begin{note}[A different name]     Lorem ipsum dolor sit amet, consetetur sadipscing elitr,     sed diam nonumy eirmod tempor invidunt ut labore et dolore     magna aliquyam erat, sed diam voluptua. \end{note}  resulting in this: Thanks in advance! EDIT: Added a second example for clarity


Why are the icons in the Hot Network Questions scrambled?

For the past few days, the icons in the Hot Network Question bar have been wrong. Some are okay, but others are not, which makes me think maybe an index is shifted somewhere. It looks like this was a problem before () but it seems to be occurring again.  For example, right now I see the following icon/site pairings:   WorldBuilding icon -> Workplace site MotorVehicles icon -> MathOverflow site Writing icon -> WorldBuilding site Skeptics icon -> Sitecore site Physics icon -> Photos site Security icon -> Scify site (kind of my favorite mistake actually) SuperUser icon -> Stats site   It looks like things in the letter M onwards get messed up. Magneto site shows an "MA" icon, which I think is right (but I'm not positive).   This is happening on Windows, Linux, and Android (website). Using both Firefox and Chrome. I see it on most of the sites (Physics is my home, where the list above came from), although it looks like it's okay on this site. Clicking on a random site (Sitecore), it is wrong there too.   This is a screenshot of the problem:


I already installed pybootchartgui and boot chart in Ubuntu 16.04. After running  sudo pybootchartgui   or  sudo bootchart   this is the result:  No path given, trying /var/log/bootchart.tgz   warning: path '/var/log/bootchart.tgz' does not exist, ignoring. Parse error: empty state: '/var/log/bootchart.tgz' does not contain a valid bootchar   There is a duplicate question . It is is very old and the answers provided doesn't work.


How to run programs each time the system boots up?

What is the command line in bash to make a program run every time the system boots up?


Which sentence is more grammatically correct:     Jack’s predilection toward competitive sports resulted in him becoming a great tennis player.   or     Jack's predilection toward competitive sports resulted in his becoming a great tennis player.


Proving a specific module is projective.

Let $R$ be a left artinian ring and $M$ be an arbitrary $R$-module.  Prove that $M/J(R)M$ is a projective $R/J(R)$-module.


Is it possible to indent in texstudio based on the levels? It seems that a proper macro might be able to do such a job, though it seems to be complicated.  Edit:  Thanks to Troy, we know that latexindent has this capacity.Therefore the problem is to write a macro which runs the latexindent on all file at once without causing problems.


Adding a custom field to standard object activity

I would like to add a custom Date field to a standard Activity object. Lets say this date field is called 'food_expiration__c'. Looking at another question:   So I go to to Activity.object and add to the existing fields:  <fields>         <fullName>food_expiration__c</fullName>         <description>When food expires</description>         <externalId>false</externalId>         <label>Food Expiration Date</label>         <required>false</required>         <type>DateTime</type>     </fields>   Then I open my deployment package.xml and see the following two custom classes that I had modified:  <?xml version="1.0" encoding="UTF-8"?> <Package xmlns="http://soap.sforce.com/2006/04/metadata">   <types>     <members>Custom_Class1</members>     <members>Custom_Class2</members>     <name>ApexClass</name>   </types>   <version>47.0</version> </Package>   Am I to then add the following : Activity    so that when I deploy that this custom field exist ?  Sorry I cant try it at the moment but mostly trying to understand how it is done right


For $a,n \in \Bbb N$, how to prove if $a^n-1$ is prime then $a=2$ and $n$ is prime?

Suppose  $a,n \in \Bbb N $. How do you prove that if $a^n-1$ is prime, then $a=2$ and $n$ is prime .  Is the converse true I.E : (if $p$ is prime then $2^p-1$ is prime)?


If newtons law applies without pseudo forces then we're in an inertial frame. So theoretically we've an inertial frame. What about practically finding one? Earth is not, probably neither the sun. Then where can I find a place to be inertial?


My system is in Dual boot 1) Ubuntu 2) Windows 8. How can I uninstall Windows8 If I uninstall Windows8 would it affect my other partitions (Drive D,E).


Let $f:[0,\infty)\to\mathbb R$ be a function in $C^2$ such that  $\lim_{x\to\infty} (f(x)+f'(x)+f''(x)) = a.$ Prove that $\lim_{x\to\infty} f(x)=a$


When I delete a comment, then try to delete another comment too quickly, the error message talks about comment votes

When I tried to delete a comment after I just deleted another one, the system told me     You can submit a comment vote every five seconds.   The message should be different, right?


Let $L/k$ be a field extension of degree $n$. Then it is not difficult to see that $L$, as a $k$-algebra, can be embedded in $M_n(k)$. Now is it ever possible to embed $L$ in $M_{n-1}(k)$?


There is only one thing I hate on macOS (Sierra) since this was created.  I open an application and work on it.  I click on another application on the dock and the whole screen slides to the right and I see that app.  I click on the first application on the dock and the whole screen slides to the left.  For heaven's sake. How do I disable this? If I want to slide I go to an ice rink.  I have already typed that on terminal and restarted the machine  defaults write com.apple.dock mcx-expose-disabled -bool true   and this hateful thing continues.  I want to disable spaces, mission control and for that matter launchpad too and all other things like that.


APT ERROR (since installing multiscan:i386) : subprocess installed post-installation script gave the error value 1

I have got a big problem with my package management (apt). I tried to install the multiscan:i386 package and since then I always get errors when I'm using commands dealing with the package management.  I don't know if it matters, but I have got an i7-4720HQ, Ubuntu 17.10.1, 64-bit architecture and I'm normally installing amd64 packages.  me@LINUX:~$ sudo apt remove multiscan [sudo] password for me:  Reading package lists... Done Building dependency tree        Reading state information... Done The following packages will be REMOVED:   multiscan:i386 0 upgraded, 0 newly installed, 1 to remove and 1647 not upgraded. 1 not fully installed or removed. After this operation, 98.3 kB disk space will be freed. Do you want to continue? [Y/n] Y (Reading database ... 459704 files and directories currently installed.) Removing multiscan:i386 (0.8.5-1) ... install-info: No dir file specified; try --help for more information. dpkg: error processing package multiscan:i386 (--remove):  subprocess installed pre-removal script returned error exit status 1 install-info: No dir file specified; try --help for more information. dpkg: error while cleaning up:  subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing:  multiscan:i386


How many ways to pick four increasing numbers from 1 through 39?

Say there's a bin of balls numbered 1 through 39, how many ways are there to pick 4 increasing numbers in a row?   First I figured that it would be a permutation without repetition problem, so I got that the number of ways of picking 4 different balls without considering increase is $$\frac{39!}{4!(39-4)!} = 82,250.999966$$  Then I thought I need to divide by some factor that changes the problem from any order to only increasing order which I thought might be 4!, so I got: $$\frac{82,250.999966}{4!} =  3,427.124998$$ and rounded down to get $3,427$. I'm terrible at these counting problems so I probably did this wrong. Can someone help me out please?


I have to write a bash script which will echo different things if option "-l" is given. I have literally no idea how to do this; I've read many tutorials and still I don't get it. Please, help!  1 #!/bin/bash 2 #include <unistd.h> 3 echo 4 curl 'http://api.apixu.com/v1/current.json?key=e471b83639ca4fcb882132359180811&q=Poznan' \ 5     | jq '.current.temp_c'   and now, given option l, some more info should be echoed.


How to make a font with Adobe Illustrator?

I have recently created my own font/typeface with Adobe Illustrator, and I would like to use it as a real font (e.g I would like to use it as I type something).   Is this possible in Adobe Illustrator or would I need a different software?   If so what program would be good for creating a font?


iPad seems to be locked into a voice response mode when touching keys. It was okay a few minutes ago. How I can't get loggin. The numbers/letters do not appear on screen but voice repeats the key touched but doesn't loggin or go pass that screen?  How do it get out of this mode.


How can I efficiently generate a Set from a List structure?

I have a bit of code where I've written a SOQL query that returns a list of SObject records, however I need a Set<Id> structure to pass to another method that I don't have control of (and thus can't change the method signature of).  How can I turn my returned List<SObject> into a Set<Id>? Is the best option just a for loop?


I am wondering whether there is another method to show that $\sqrt{118}$ is irrational. I have always been taught to use proof by contradiction for showing irrationality. Can anyone think of other methods? Please help.


Archipack errors in Blender 2.90; cannot get the thumbnails to load; tried everything

I am using a 2012 miniMAC; Catalina OS 10.15.7; Blender 2.90. In Blender I have called up archipack, tried rendering the thumbs, which I though was working; Pointed the file directory where the archipack marlib blend should be and still get the following error messages when I select door or window.  Ironically, the wall loads just fine. Here is the error message: Traceback (most recent call last):   File "/Applications/Blender.app/Contents/Resources/2.90/scripts/addons/archipack/archipack_preset.py", line 475, in invoke     self.menu = PresetMenu(context, self.preset_subdir)   File "/Applications/Blender.app/Contents/Resources/2.90/scripts/addons/archipack/archipack_preset.py", line 222, in __init__     self.make_menuitem(filepath)   File "/Applications/Blender.app/Contents/Resources/2.90/scripts/addons/archipack/archipack_preset.py", line 299, in make_menuitem     image.colorspace_settings.name = 'Raw' TypeError: bpy_struct: item.attr = val: enum "Raw" not found in ('AppleP3 Filmic Log Encoding', 'AppleP3 sRGB OETF', 'BT.1886 EOTF', 'BT.1886 Filmic Log Encoding', 'Filmic Log Encoding', 'Linear', 'Non-Colour Data', 'sRGB OETF')  location: <unknown location>:-1 ```


Suppose $a_n\geq 0$ for all $n$ and $$\lim_{n\to \infty }\frac{a_{n+1}}{a_n}=\rho.$$ How can I show that $\lim_{n\to \infty }\sqrt[n]{a_n}=\rho$ ?  Atempts $$|\sqrt[n]{a_n}-\rho|=\frac{|a_n-\rho|}{a_n^{n-1}+\rho a_n^{n-2}+...+\rho^{n-1}},$$ but I'm not so sure why the RHS goes to 0 when $n\to \infty $.


Pathological listings problem: tilde in \lstinline in a footnote

I seem to be unable to write a tilde in a \lstinline in a footnote.  If you uncomment the only commented line in my minimal working example, you'll see what I mean:  \documentclass{article}  \usepackage{listings}  \begin{document} This works: \begin{lstlisting} ~/path/to/file \end{lstlisting}  And this works: \lstinline{~/path/to/file}  And this works:\footnote{\lstinline{/path/to/file}}  %But this does \emph{not} work:\footnote{\lstinline{~/path/to/file}} \end{document}   edit: I'm not sure if the answer to this was quite covered in the linked post (listings in footnotes) because that question related to the listings environment, not the lstinline macro.


Proving that a certain continuous function is surjective.

Let $f:\mathbb R \to \mathbb R$ be a continuous function such that $|f(x)-f(y)|≥|x-y| ,\forall x,y \in \mathbb R  $ , then how do we prove that $f$ is surjective ?


When to use icons vs. icons with text vs. just text links?

Are there any rules on when to use icons vs. icons with text vs. just text links in a web application?  For example:    vs.   save  vs.  save    Extra question: Is  save -or- save  preferable?


mathematical difference between column vectors and row vectors

I'm writing a mathematical library; and I have an idea where I want to automatically turn column matrices and row matrices to vectors, with all of the mathematical properties of a vector.  Answer I'm looking for:  Someone with good mathematical reasoning explaining why:  column matrices, column vectors, row matrices, row vectors should not be treated as the same thing. (The library will ofcourse understand operations like [[1,2],[3,4]] * [1,2], where [1,2] is a vector)  or:  some kind of showcase or example where it is impossible for a library that can't differentiate between row vectors and column vectors to know which one of several possible answers are correct.  or:  some kind of evidence that it is in fact possible to do this.  please note: inner vector multiplication will be easily integrated by using a special function for that function rather than the * sign.


Find a vector v⃗ parallel to the intersection of the planes 2x+y+5z=3 and 4x+2y+2z=7.

I'm not sure what the first step is here. Could anyone explain how to do this problem even in just step by step wording? You dont have to figure out the answer im just not sure what the steps are here. thank you


12V volts being reduced through a PN2222

I'm trying to build a circuit for controlling the speed of a fan from an ESP8266 MCU.  I have a PN2222 transistor with the base connected through a 1K resistor to a digital out of the MCU.  The voltage at the digital out is +3.3V when it's high and I verified that I can successfully set it high and low on the MCU reading it with a DMM.  So that part seems to be working.  The power supply for the fan that is being switched by the transistor reads ~18V unloaded using a DMM.  However when I read the voltage of the emitter of the transistor using a DMM it reads 8V no matter whether the base is high or low.         – Schematic created using   I was expecting it to read 18V when the base of the transistor was high and 0V when it was low.  Clearly there is something I am misunderstanding here with my first foray into transistors being very new to electronics in general.


How to determine process which makes DNS Request?

I have a server on AWS, GuardDuty started send me notifications:  *** "type":"Backdoor:EC2/C&CActivity.B!DNS", *** {"domain":"libcurl.so","protocol":"UDP","blocked":false} *** is querying a domain name associated with a known Command & Control server. ***   I've checked the server with all possible security tools and nothing found. With tcpdump -A I saw that my server send such kind of request about this domain. I have turned on auditd. But nothing strange was found.  My question is, how to determine, which process exactly send this request?


Line of Bones to Travel and Conform to Curve (Train or snake following path)

I've searched google extensively on this. Can't seem to find an answer.   I know about spline IK, which is wonderful for conforming a row of bones to a path. But combining the armature object with a follow path modifier causes the point of origin to move, but the bones themselves stick to the beginning of curve.   Ultimately my goal is to make a creature like a snake or centipede follow a curve path, thus animating it fairly realistically ...


Trying to understand the idea behind path independence for line integrals

I’m trying to grasp the idea behind the line integral for conservative vector fields. If I have some vector valued function $F$ which can be represented as $\nabla f$ then I have a conservative field. Now what I’m not fully comprehending is that why the integral $$\int_C F \ dr$$ is path independent. I’ve looked several explanations for this and the analogy for FTC is quite clear so this makes sense in ”symbolic” form, but all the explanations I’ve seen usually explain this via some physical experiement such as traversing to the top of a mountain and since the gravitational field is conservative the work done to get to the top would be independent of the path I’m taking. I’m not a physicist and even this doesn’t quite make sense, I would assume that the work done from the gravitational field to me would be much greater if I start to go for example up sideways instead of directly walking up the mountain? If work is defined as $W=f \cdot d$ wouldn’t the $d$ be much greater if I’m taking a longer path and thus $W$ would get larger? Is there some other kind of intuition for this that wouldn’t rely so much on physical concepts such as the gravitational, electric or magnetic fields? Edit: Ah perhaps if I’m taking a path sideways the field vectors would be directed towards me at some angle and thus wouldn’t do as much work as if they would be directed right towards me?


I am familiar with the interpretation of the irreducible representations (finite dimensional) of $SU(2)$ in terms of homogeneous polynomials of degree $n$.   If I take two of these irreducible representations, say $\rho_{i}$ and $\rho_{j}$ of dimensions $i+1$ and $j+1$ respectively, and take their product $\rho_{i}\rho_{j}$, the resulting representation will be the direct sum of other $\rho_{k}$'s. For a fixed $k$, how do I calculate the multiplicity of $\rho_{k}$ as a summand in the product representation in terms of $i$ and $j$?


How can I see two different pdf documents on screen split vertically?

How can I see two different pdf documents on screen split vertically and independently scrollable?


SE forbids the # sign in email addresses

When I've tried to set up my account with a mail tag, it was rejected because the mail address weren't valid according to your verifier. My mail provider uses # as character for . When I've removed my address tag, I could sign up.  The # character is allowed in the local part of email addresses. Citing :     Without quotes, local-parts may consist of any combination of   alphabetic characters, digits, or any of the special characters ! # $   % & ' * + - / = ?  ^ _ ` . { | } ~   There are lots of  email validators on the web, and even on SE.


I was installing Metasploit using the script invocation for quick installation and as I pasted the script in the terminal the error  ./msfinstall: line 1:syntax error near unexpected token 'newline' ./msfinstall: line1: '<DOCTYPE html>'   appeared. How can I fix this?


I have a condition where I need to disable standard Lead Assignment Rules if certain criteria are met.   if(emailWithAccIdMap.containsKey(ledRec.Email) && emailWithAccIdMap.get(ledRec.Email) != null && !openOppMap.isEmpty() && openOppMap.get(emailWithAccIdMap.get(ledRec.Email)) != null && openOppMap.get(emailWithAccIdMap.get(ledRec.Email)).Owner.isActive ==true){                     ledRec.Status = 'Duplicate';                     System.debug('Changing the Status');                     //then assign the original lead owner to new lead owner                     ledRec.OwnerId = openOppMap.get(emailWithAccIdMap.get(ledRec.Email)).OwnerId;                     ledRec.Account_Name__c = openOppMap.get(emailWithAccIdMap.get(ledRec.Email)).AccountId;                     ledRec.Field_for_Lead_Workflow__c = true;                     Database.DMLOptions dmo = new Database.DMLOptions();                     dmo.assignmentRuleHeader.useDefaultRule = false;                     ledRec.setOptions(dmo);                     //since owner is assigned, it shouledRec not pass through round robin                     ledRec.checkAssignment__c = false;  }   This is my code snippet which is running on before insert. The control is entering the IF condition as the debug statement is getting printed. Yet, the owner assigned through this snippet is being overridden by the assignment rules.  I also tried executing this in after insert trigger context but it did not work. Can somebody tell me what I'm doing wrong?


How to get the three sticks of dynamite in West of Loathing?

I've gotten the first stick by learning Dickerin' through the book mom gives, then the second through trading a needle. How the heck do I get a third?


Why does Email to Salesforce think my emails are spam?

Email's which we are sending to Salesforce in order to associate with records in Salesforce  is not getting associated with any records .In fact ,when I send an email to salesforce using outlook then salesforce is classifying it as spam and in the subject it puts   {SPAM: 40} :Undeliverable: and sends it back to us and the rest of the error is given below.  This message was created automatically by the mail system.  A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:                 emailtosalesforce@dmsi81qidzeggr6vknn7rr7oosgsgdyccyvb1ttzshtw64lg6.       8-dea8eae.c.le.salesforce.com (Undelivered): 551 Failed due to:        SenderAuthorization.           I do not understand how salesforce can classify it as spam.I have tried sending it from three different email addresses using outlook but it always sends it back as {spam 40}  and when I try to send it through Yahoomail it works perfectly fine.It works fine in Production as well as sandbox.We do have valid email addresses registered in the section email to salesforce so that is not the problem   What can we do to resolve this issue? or what do u guys suggests.I hope some salesforce technical employee can guide us.


I'm getting a better understanding of how IV's work, but still have some confusion. So Stamina IV directly relates to HP. but what about Attack and Defense ? Let's say you have two pokemons with identical CP. They have equal Defense IV, but one has a Attack IV bonus of 3 and the other has an Attack IV bonus of 14. How does that impact what each one can do in combat? Obviously the one with Attack IV bonus of 14 is better, but how (quantitatively)? The damage is set by the moveset, so what can it do better than the other? Same about the Defense IV? If the Stamina and Attack are the same, but one has a lower Defense IV bonus than the other, what does that really translate to in combat numbers? And how does CP (or pokemon level) affect actual damage? A 150CP Vaporeon with hydropump still dishes out the same 90 damage as a 2800CP Vaporeon, doesn't it? Or am I missing something?


Why deoxyribose for DNA and ribose for RNA?

Why is DNA made out of deoxyribose and RNA made of ribose? Why can't they both use ribose or deoxyribose? I think that the deoxyribose gives an advantage in storing genes, the job of DNA and ribose is better dealt with outside the nucleus...but why?


Show that $\sum_{n = 1}^\infty \frac {z^n} {n}$ converges when $|z| = 1$ , except when $z =1$

I'm stuck at this one. If $z \ne 1$, can I show this by invoking that when $|z| = 1$ then $z = e^ {i \theta}$ where $\theta = arg (z)$?


Database on secondary replica cannot join availability group

I am trying to add a database to an Availability Group Always On. I already have the other two DBs working fine on the same SQL Server 2016 Standard Edition Cluster (running on Windows 2016 Standard).  When joining the secondary DB to the AG the database ends up in Not Synchronizing / Recovery pending state. I followed different online sources with alternative solutions without any success.  Has anyone else experienced a similar situation? Any suggestions?


How do you version your Oracle database changes?

I am interested to know what methods other people are using to keep track of changes made to the database including table definition changes, new objects, packages changes, etc.  Do you use flat files with an external version control system?  Triggers? Other software?


I am currently running a Dungeons and Dragons 4 campaign for a group of 9 players.  Whittling the group down to a more manageable size is not really an option since they are all family.  When we do combat it takes forever even if I have one player help me and allow them to go 2 at a time.  When we do story based adventure there are 2-3 players that do most of the talking and the others twiddle their thumbs.  I've tried encounters with many foes, encounters with only a few tough foes, dialog only encounters, social puzzle encounters, everything I can think of.  What else can I try to get this group more engaged?


What is the word for when anachronisms are used in movies set in modern day? This is deliberately  done to produce a distinct style. This style is used in the TV show "Pushing Daisies" and the film "The Brothers Bloom".


One of the purposes of comments is to provide feedback on a post, and this request is specific to the comments that are feedback on ways to improve the post.  When an edit is being made to a post, the editor could select a comment, and have it be linked to that edit.  Maybe have it be the edit summary, maybe have it linked via a new method.  This linkage would be used to document that the edit is taking care of the improvement requested in the comment.  Once the edit is complete, this should then remove the comment (and possibly comments replying to it), closing the loop on the comment improving the post.  It would also provide a new way for comment threads to be cleaned up.


Proof that if $a^3 \mid b^2$ then $a\mid b$.

I am trying to prove that if $a^3 \mid b^2$ then $a\mid b$, where $a,b \in \mathbb{Z}$.  Let $PDC(x)$ be the set of all primes in the prime decomposition of $x$.  So far, I am using the fundamental theorem of arithmetic to try to see what I can do with it. Proving contrapositively, I have $a\nmid \ b \implies \exists p $ a prime, $\exists k \geq 1$ such that $p^k \in PDC(a)$ and $\exists r \in \mathbb{Z}$ such that $p^r$ with $r < k$. So, $p^{3k} \in PDC(a^3)$ and $p^{2r} \in PDC(b)$ where $2r < 3k$ which implies that $a^3\nmid \ b^2$.  Is this valid? Thank you in advance.


Is inflation a good or bad thing? Why do governments want some inflation?


How to fix this GTK library installation error?

I'm trying to install GTK library in ubuntu 16.04 LTS but I'm getting error saying E: Unable to correct problems, you have held broken packages.  nikhil@nikhil-desktop:~$ sudo apt-get install libgtk-3-dev Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  libgtk-3-dev : Depends: libgtk-3-0 (= 3.18.9-1ubuntu3) but 3.20.8-1ubuntu0~ppa1 is to be installed                 Depends: gir1.2-gtk-3.0 (= 3.18.9-1ubuntu3) but 3.20.8-1ubuntu0~ppa1 is to be installed                 Depends: libgdk-pixbuf2.0-dev (>= 2.30.0) but it is not going to be installed                 Depends: libpango1.0-dev (>= 1.37.3) but it is not going to be installed                 Depends: libatk-bridge2.0-dev but it is not going to be installed                 Depends: libepoxy-dev (>= 1.0) but it is not going to be installed                 Depends: libxcursor-dev but it is not going to be installed                 Depends: libegl1-mesa-dev but it is not going to be installed                 Depends: libwayland-dev (>= 1.5.91) but it is not going to be installed                 Depends: libmirclient-dev (>= 0.13.3) but it is not going to be installed                 Depends: nettle-dev but it is not going to be installed E: Unable to correct problems, you have held broken packages.   How can I fix this issue, I'm trying to install opencv with this package library, how can I install it without getting any errors, I'm following instructions from PYimage search.


How to restore GTA 5 from a external hard drive

I bought GTA5 this weekend over steam, then realised that the game is 60GB big and I use a capped line. I asked one of my friends to make a copy of the game so I can restore the game using steam and he copied the folder of where it was installed. How do I get this to work?


How to get the date 7 days earlier date from current date in Java

I am using   DateFormat dateFormat =  new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); Date date = new Date(); String fromdate = dateFormat.format(date);   to get the current date, how can I get the date 7 days back. For example, if today is 7th June 2013, how can I get 31th May 2013 in the same format as defined in date formatter?  Update  Got the solution:  DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");          Date date = new Date();         String todate = dateFormat.format(date);          Calendar cal = Calendar.getInstance();         cal.add(Calendar.DATE, -7);         Date todate1 = cal.getTime();             String fromdate = dateFormat.format(todate1);


My inbox and recent achievements keep reincarnating

Every time I renew my page, I get a green and red notification at the top of the page, for notifications that I have already seen.  As more notifications appear, the reincarnating number has gone up.  It started when I logged on an hour ago, with the one new message and one rep change.  It goes away after I acknowledge it while I am on the page, but reappears as soon as I navigate to a new page.


How do I add a "confidence rating" to something?

I have a bunch of survey responses from people all over the country. Each survey has one question: "How much do you like X?" (X isn't important here), where answers range from 0 (not at all) to 100 (a lot).  I want to group the results by (for example) State. However, when I group things by State, some of these groups have a couple hundred responses, whereas others might have fewer than 10.  I want to take an average of my results by State, but States with few responses are going to potentially be misleading.   So I've been asked to add a "confidence rating" so people can determine which averages are meaningful, which aren't, etc, and I'm not sure how to properly quantify / include this sort of metric.  Making up an example:  State             Num Responses Average Rating Rhode Island            4            96 Texas                  124           77 Alaska                  2           100 Arizona                15            55 Washington             23            76 California             34            67


Simple check operation is not working in java

String TypedMaxNumber = MaxValue.getText(); if(TypedMaxNumber == "100")     System.out.println(TypedMaxNumber+" = 100");   I think it is a silly problem, but when I am running to run this program and I type 100 in the text Field it is not going inside the loop. What could be the reason.


Is there a way in C# to declare a group of variables and methods as private or public like in C++ (example below).  I am just trying to avoid typing a million "public"s and "private"s.  class Foo  {    private:     int Alpha;     string Dog;     public:     bool Bites;     bool Bad;   }   I keep getting an error in C# and have exhausted my internet search abilities. Thanks


Why does an object with higher speed gain more (relativistic) mass?

Today, in my high school physics class, we had an introductory class on electromagnetism. My teacher explained at some point that an object with a very high speed (he said it started to get somewhat clearly noticable when travelling at 10% of the speed of light) will gain mass, and that that's the reason why you can't go faster than light. One of my classmates then asked, why is this so? Why does an object with higher speed gain more mass? This of course is a logical question, since it is not very intuitive that a higher speed leads to a higher mass. My teacher (to my surprise (responded saying that it is a meaningless question, we don't know why, in the same way we don't know why the universe was created and those kind of philosophical questions. I, being interested in physics, couldn't believe this, I was sure that what he said wasn't true. So after a while of thinking I responded saying: Can't we describe it with Einstein's $E=mc^2?$ If an object gains speed, he gains more (kinetic) energy. With this equality we see that the more energy an object gets, to more massive it becomes. He then replied saying that this formula is used for different cases, whereupon he gave a vague explanation as to when it is used. He gave me an example to show what I said was incorrect; when a car goes from $10 m/s$ to $40m/s$, according to what I said we would see a big increase in mass, and we don't (this sounded logical to me). So here I am, with the following questions:  Why does an object with a higher speed have more mass (than the same object with a smaller speed)?  When is $E=mc^2$ used and why is my argument incorrect in explaining this phenomenon?


Why do the subtitles and audio of the Spanish version of Daredevil not match?

I am learning Spanish and just finished watching Seasons 1 and 2 of Netflix's Daredevil with Spanish audio and Spanish subtitles.  I was struck by how frequently the audio and subtitles diverged - and not just because the audio used longer words and subtitles needed to be shortened or anything.  Examples of this would the subtitles reading Lo siento when the audio says Lo lamento or subtitles translating .  I am fairly confident that the audio was translated from English separately from the subtitles being translated from English.    Why would they do this?  It seems cost ineffective to translate twice.  Do other TV shows or movies do this?


Speed greater than light in circular motion

We know that linear speed of object going around a circle is $\omega * r $ Now let us take an elastic string and rotate a body of negligible mass with $\omega = 500  rad/s$ It is possible to further stretch this string while maintaining $\omega$ constant using a super powerful motor.  If we extend the chord length to say $1,000,000 m$ then the linear speed of the body should come out to be equal to $500,000,000 m/s $ which is greater than the speed of the light.   Where is the fallacy in the above argument?


What's the easiest way to get a LINQ query (from an SQL database - does that matter?) to order strings naturally?  For example, I'm currently getting these results:   Project 1 Project 10 Project 2   What I'd like is to see is this:   Project 1 Project 2 Project 10   The query I'm using is this:  return from p in dataContext.Projects     orderby p.Name     select p;


What are the primary reasons to use paging instead of a single page layout in a form?

For a form consisting of about 100 fields that are divided into 6 categories and none of the fields sets are dependent on previous ones (i.e. not a checkout process or the alike)... When should you create steps instead of using a single page layout? Keep in mind that we want to give the user the freedom of filling the form in any order he/she wants.  Just to clarify, this is a form for which prospective students of high schools and colleges already aproved in selection must fill. A gigantic form with personal data.


I've already installed macOS Sierra. But I've also performed a "general" cleaning and I suspect some files were gone. Now the whole system is slow, some things doesn't behave the way they used to. Is it possible to download again macOS Sierra from AppStore and simple reinstall it? I mean, install macOS Sierra over macOS Sierra that is already up and running (not so well...). Thanks a lot for your help.


Which one is correct      Compared to another countries       Compared with another countries


If I sign up for the 3 free months of Apple Music, do I keep Match-ed songs when the trial ends?

If I sign up for the Apple Music free trial (which ), will I keep my (DRM-free but watermarked) Matched music when the trial ends?


auto start or enable service on boot up permanently ubuntu 16.04 lts

how to auto start or enable service on next boot up or start up? in ubuntu 16.04 lts how to start or enable service on the next boot up or start up? in ubuntu 16.04 lts  without doing it manually enable or start services again everytime i start up or boot up the ubuntu 16.04 lts  thank you


Library dependency problem with sphirewall-core and libboost

I am facing problems with library dependencies when trying to install sphirewall-core. Is there any way to solve this or to install that dependencies?  These are the steps I followed:   $ sudo apt-get install sphirewall-core Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  sphirewall-core : Depends: libboost-random1.49.0 (>= 1.49.0-1) but it is not installable                    Depends: libboost-regex1.49.0 (>= 1.49.0-1) but it is not installable                    Depends: libboost-serialization1.49.0 (>= 1.49.0-1) but it is not installable                    Depends: libboost-system1.49.0 (>= 1.49.0-1) but it is not installable                    Depends: libboost-thread1.49.0 (>= 1.49.0-1) but it is not installable                    Depends: libprocps0 (>= 1:3.3.2-1) but it is not installable                    Depends: libboost-random1.49-dev but it is not installable E: Unable to correct problems, you have held broken packages.


Increase ISO or use Photoshop post production exposure correction ?

With some slow lens, and in some situation I tend to under expose. Situation like action where i need to freeze movement, I use obviously fast shutter.   When I open my RAW in Photoshop and I click the magic "Auto" correction, Photoshop increase exposure, 1 or 2 stop.   Then I notice "noise" .   My question is: is it better to increase on camera ISO, or post production action ? Or it is simply THE SAME ?   If I increase ISO i increase noise.  If I increase exposure in post production i increase noise....  Thanks


java NullPointerException error. No Output

So I have a school assignment to do in Java, I have created the program but it does not give me an output. Im still a beginner so plz help me fix the problem. the first half of my code uses joptionpane but i want to display the output in the console. this is my code:  import java.util.Scanner; import javax.swing.JOptionPane;  public class payroll2 {     public static void main(String args[])     {         new payroll2().SetPayrollDetail();         new payroll2().SetBonus();         new payroll2().SetCommission();         new payroll2().SetNssf();         new payroll2().SetNetSalary();         new payroll2().GetPayroll();     }      Scanner myScanner=new Scanner(System.in);     Double empID;     String empName;     String empDept;     String designation;     Double basicSalary;      Double bonus;     Double commission;     Double nssf;     Double netSalary;       public void SetPayrollDetail()     {         empID = Double.parseDouble(JOptionPane.showInputDialog(null, "Enter ID: ", "ID",JOptionPane.QUESTION_MESSAGE));          empName = JOptionPane.showInputDialog(null, "Enter Name: ", "Name",JOptionPane.QUESTION_MESSAGE);          empDept = JOptionPane.showInputDialog(null, "Enter Department (Marketing or Other): ", "Department",JOptionPane.QUESTION_MESSAGE);          designation = JOptionPane.showInputDialog(null, "Enter Designation (Manager, Executive or Other): ", "Designation",JOptionPane.QUESTION_MESSAGE);          basicSalary = Double.parseDouble(JOptionPane.showInputDialog(null, "Enter Basic Salary: ", "Basic Salary",JOptionPane.QUESTION_MESSAGE));     }      public void SetBonus()     {         if(basicSalary < 1500){             bonus = 0.0;         }         else if(basicSalary>=1500 && basicSalary<3000){             bonus = basicSalary * (12/100);         }         else if(basicSalary>=3000 && basicSalary<5000){             bonus = basicSalary * (15/100);         }         else{             bonus = basicSalary * (25/100);         }          System.out.println(bonus);     }      public void SetCommission()     {         if( empDept.equalsIgnoreCase("other") ){             commission = 0.0;         }         else if( empDept.equalsIgnoreCase("marketing") && designation.equalsIgnoreCase("manager") ){             commission = basicSalary * (30/100);         }         else if( empDept.equalsIgnoreCase("marketing") && designation.equalsIgnoreCase("executive") ){                     commission = basicSalary * (15/100);         }         else if( empDept.equalsIgnoreCase("marketing") && designation.equalsIgnoreCase("other") ){                     commission = basicSalary * (10/100);         }         else{             commission = 0.0;         }          System.out.println(commission);     }      public void SetNssf()     {         if(basicSalary < 1500){             nssf = basicSalary * (5/100);         }         else if(basicSalary>=1500 && basicSalary<3000){             nssf = basicSalary * (8/100);         }         else if(basicSalary>=3000 && basicSalary<5000){             nssf = basicSalary * (12/100);         }         else if(basicSalary>=5000 && basicSalary<7000){             nssf = basicSalary * (15/100);         }         else if(basicSalary>=7000 && basicSalary<10000){             nssf = basicSalary * (20/100);         }         else{             nssf = basicSalary * (25/100);         }          System.out.println(nssf);     }      public void SetNetSalary()     {         netSalary = ( basicSalary + commission + bonus ) - nssf;          System.out.println(netSalary);     }      public void GetPayroll()     {         System.out.println("Payroll Details \n _____________________");         System.out.println("ID:\t" + empID);         System.out.println("name:\t" + empName);          System.out.println(bonus);         System.out.println(commission);         System.out.println(nssf);         System.out.println(netSalary);      }  }


Generic methods for primitive types in java

Here is an example:  import java.util.Collection;  /**  * Created by IDEA on 16/11/14.  */ public class Size  {     public static int size(Iterable<?> data)      {         if (data instanceof Collection) {             return ((Collection<?>) data).size();         }         int counter = 0;         for (Object i : data) {             counter++;         }         return counter;     }      public static int size(int[] data)      {         return data.length;     }      public static int size(double[] data)      {         return data.length;     }      public static int size(float[] data)      {         return data.length;     }      public static int size(short[] data)      {         return data.length;     }      public static int size(boolean[] data)      {         return data.length;     }      public static int size(char[] data)      {         return data.length;     }      public static <T> int size(T[] data)      {         return data.length;     } }   The size method is the same for all primitive arrays. Is there a way to avoid this redundancy?


Why return a collection interface rather than a concrete type?

I've noticed in other people's code that methods returning generic collections will almost always return an interface (e.g. IEnumerable<T> or IList<T>) rather than a concrete implementation.  I have two related questions. Firstly, why (if at all) is it considered better to return an interface? Secondly, is there a collection interface that includes the Sort method (as List<T> does)?


Is there a way to manage File permissions (roles) using the REST API?   I'm developing an app asking for permission on the fly:   I don't care about the way to do it... just want to upload a file to the SharePoint (already implemented that) - and then just make sure other users can't access it (before I delete it).  So any of these solutions will be just fine:     set permissions on the file itself   copy it to a folder and set permissions for that folder     create a 'document library' and set permissions for it (this seems to be doable when you have FullAccess rights - which is not possible to get using the REST API)


In the Hobbit Part 3 Movie, Legolas calls Bolg "the spawn of Azog." My understanding is that Azog is his father (from the wikia), but how exactly does an Orc reproduce? The term spawn is what really make me wonder because it typically means that the being was made with unconventional reproductive mean, as in not coitus. So how does an Orc like Azog produce spawn? Is Bolg technically a part of Azog?


C# instantiate generic List from reflected Type

Is it possible to create a generic object from a reflected type in C# (.Net 2.0)?  void foobar(Type t){     IList<t> newList = new List<t>(); //this doesn't work     //... }   The Type, t, is not known until runtime.


Prove that these statements $(A \lor \neg B)$ and $\neg A \to \neg B$ are logically equivalent

I have these two statements -  $(A \lor \neg B)$ and $\neg A \to \neg B$  and i have to prove that they are logically equivalent, I don't know if I am doing my logic wrong though because I don't see how they are logically equivalent?   I did a truth table and it didn't work out as logically equivalent for me. Are they even logically equivalent or am I going wrong somewhere?  My truth table:


I have a contour vector layer with a step 0.2m . I want every 1 metre, to change the line style, a thicker line for example, and the rest of them,symbolize with a dotted style. So, I can do it manually, categorize the layer, and at each metre,change the style, or I can copy the file, paste it and delete all the Real numbers, leave the integers only, and style them as I like and put the layer over the original. My question is if I can do the same job with the "Rule-base" style. If there is a formula which can locate the integer numbers and make them a category, so I can finish my job quicker.


I'm trying to launch a gui over ssh, but I get the error  Gtk-WARNING **: cannot open display: :0.0    I start the remote machine via wakeonlan It sits at Ubuntu's login screen I connect via ssh to the remote machine DISPLAY=:0 someprogram & fails do to the error above   However, if I login on the remote machine and get past the login screen, all ssh gui commands now work.  So how do I login remotely?  Some more background:  I'm attempting to wake my desktop computer from my laptop. I then try to launch spotify on my desktop, since it's connected to the speakers in my room. If I can get spotify to run on my desktop, I can then launch spotify on my laptop and control it from my laptop. The issue is that spotify needs to be running on both, and the gui for spotify on the desktop won't run until I'm logged in.  Let me know if any more information is needed. For now I simply need to walk over to my desktop and log in which is no issue, but ideally I'd be able to do this all from my laptop.


Apex Code to create recurring event salesforce

Can anyone provide me sample apex code to create recurring event in salesforce.  I am using below code:  Event newEvent = new Event(); newEvent.OwnerId = '023170000004yO9AAI'; newEvent.Subject ='Test'; newEvent.WhatId = recordId; newEvent.IsRecurrence = true; newEvent.RecurrenceStartDateTime = System.today(); newEvent.RecurrenceEndDateOnly = System.today()+30; newEvent.RecurrenceType = 'RecursDaily'; newEvent.IsAllDayEvent =true; newEvent.DurationInMinutes =1440; newEvent.ActivityDate = yagyaPerformanceObj.Start_Date__c; insert newEvent;   I am using above code to create recurring event. My requirement is to create recurring event for 30 days which recurs daily. I am getting this error 'REQUIRED_FIELD_MISSING, Required fields are missing: [Recurrence Interval]: [Recurrence Interval]'  I don't know which field I am missing.


How long can a 3-month-old go without eating?

My 3-month-old son has started sleeping through the night, with a vengeance. He sleeps for hours. And when he finally wakes up and I expect him to be starving, he's often still ready to happily play for a bit - say 1/2 hour to 45 min. Now, I know this isn't such normal behavior for a 3-month-old, and I'm definitely appreciating having my nights back, but I'm also a bit concerned - how long is the longest I should let him go without eating?  Edit (more details):  I used to try to stretch him and make his last feeding right before I went to sleep, so that I could take full advantage of his sleep-time. So we used to put him to bed about 12:30-1:00, and then head to sleep ourselves. He started off going about 6-7 hours... But a couple of weeks ago he started sleeping longer, and longer, and longer... Now he goes nearly 12 hours. He'll go to sleep at 12:30 AM and wake up at 12 PM or later. And he'll then happily play for another half hour, making about 12 hours of no-eating. I generally trust that I can rely on him to tell me when he's hungry, but I was wondering if there's a limit to how long I can let him go without eating...


Can initialisms be forced into acronyms?

There are some initialisms out there that are unpronouncable as words in any correct English sense (I found one today of ). However the inventor of such terms force a word onto them, in this case:     The SQRL system (pronounced “squirrel”)   Unless you were aware of this term, and the authors intended pronunciation of it you would pronounce it as letters 'S-Q-R-L'. But that is not how the author intends.  So, if these terms that would clearly be initialisms in any normal sense of the word, but have had a pronunciation forced upon them, can these be referred to as an Acronym?  (This is sort of related to the question: , although that post seems to stem from a misunderstanding of the difference between initialism and acronym so the answers reflect that misunderstanding rather than this particular situation)


The set $D = \{ p \in (0,\infty) \mid \int_X |f|^p ~d\mu < \infty\}$

Let $\mu$ be a (positive real) measure on a space $X$ and $f$ a measurable function. Put $F: (0,\infty) \rightarrow \overline{\mathbb R}_+, p \mapsto \int_X |f|^p ~d\mu$. Write $D = \{ p \in (0,\infty) \mid F(p) < \infty\}$. It is easy to see that $F(p) \le F(r) + F(s)$ if $r<p<s$, whence the fact that $D$ is connected alias an interval. Moreover, $\log F$ is convex by Hölder's inequality.  Is there $\mu$ and $f$ such that $D$ has exactly one element? The example of $\mu$ Lebesgue-measure on $(0,1)$ resp. $(1,\infty)$ and $f(x) = x^\alpha$ shows that $D$ can be an open interval. Can it be closed? Left-open, right-closed? Left-closed, right-open?  In my intuition, $D$ should be open, at least left-open in general. What do you think? This is an (as I guess, standard) exercise, taken from the Big Rudin. I apologize if this is a duplicate, thank you for indicating the answering article then.


Finding UMVUE of $\theta$ when the underlying distribution is exponential distribution

Hi I'm solving some exercise problems in my text : "A Course in Mathematical Statistics".  I'm in the chapter "Point estimation" now, and I want to find a UMVUE of $\theta$ where $X_1 ,...,X_n$ are i.i.d random variables with the p.d.f $f(x; \theta)=\theta e^{-\theta x}, x\gt0$.   I know that $E(X_i)=1/\theta,$ for each $i$, and also have that $\bar{X}$ (or equivalently $\sum_1^n X_i$) is a complete sufficient statistic for $\theta$. But I cannot go any further here. Somebody can help me?


Advice on integrating $\int \frac{x^2 +n(n-1)}{(x \sin x +n \cos x)^2} dx$

Our integral is: $$\int \frac{x^2 +n(n-1)}{(x \sin x + n\cos x)^2} dx$$ I considered that this can be turned into some sort of quotient differential: $$ d \frac{u}{v} = \frac{ v du - u dv}{v^2}$$ Now, comparing this with our integral: $$ v = x \sin x + \cos x$$ And, $$ dv = \sin x + x \cos x - n \sin x = (1-n) \sin x + x \cos x$$ Now the problem is I can't figure out $u$ / make the numerator of the form $ vdu - u dv$... what do I do next?


Yes, I've tried all the basic kill, pkill, etc. methods that come up with a Google search. Sometimes it works, other times it seems something is preventing the process from terminating. There is no stderr message when the kill command fails, but ps, pgrep, etc. show the process is still running.  Is there a more forceful way to do this? Thanks.


Is automatically mounting drives with the exec flag a security vulnerability?

I'm trying to understand what the noexec flag actually accomplishes. Does it prevent all executions originating from that file system? Or is it only ones that aren't in the bin folder?  In addition, let's say I manage to set exec as the default flag for all drives. Is there actually a risk that I could plug in a USB and it would automatically execute malicious code? Is this what noexec exists for, or is it only there to prevent users from doing stupid things with random executables?  This is different from the suggested duplicate as the duplicate does not explain whether there are security vulnerabilities associated with this practice.


How can I tell which package an executable came from?

I'm answering a question with a suggestion to use rename, and I realize I don't know what package it comes from (as part of the answer, I imagine saying something like "if you don't have rename, it's installed as part of [package]").  man rename tells me to SEE ALSO: mv(1), perl(1) - so my first thought is that it was installed with perl.  A related answer, , helps me figure out that the perl package includes prename but not rename - and it turns out that my /usr/bin/rename points to /etc/alternatives/rename which points to /usr/bin/prename  So this is still kind of confusing.  Did /etc/alternatives/rename point somewhere else before I installed perl?  Is there a general way to tell which package something comes from?


derivative bounded by a constant multiple of the function

$f$ is differentiable on $[a,b]$, $f'(x) \leq A|f(x)|$ where $A$ is a non-negative constant.  If $f(a)=0$ show $f(x)=0, \forall x\in [a,b]$  I imagine the proof uses the Mean Value Theorem but I have not been able to get it to work.  I know $|f(x)|=|f'(c)|(x-a)$ where $c \in [a,x]$, so $|f(x)| \leq A\  |f(c)|(x-a)$ where $c\leq x$ And I guess I could sort of iterate this to keep getting a smaller $c$ but I don't see why it must go all the way to zero.


Gmail App in my Android device shows correctly all the labels that I created using Gmail through web interface.  Can I create new labels in Gmail on Android device using Gmail App?   Also, ideally, once I create these new labels in Gmail App, I obviously should be seeing the same in Web Interface of Gmail too (Sync!!).  Any ideas?


Using vim as the editor for the It's All Text! Firefox Add-on

I am trying to use vim as the external editor for It's All Text! within Firefox. This works fine for standard http:// web pages, but when I try to use it within TiddlyWiki, 89 instances of vim are opened. I am guessing that the difference is that the TiddlyWiki page is a file on my local file system. I also created a simple html file and had the same problem. Is there a way around this problem?   From the comments:     I am on Windows Vista if that makes a difference.


what are some good books on probabilities  and measure theory? I already know basic probabalities, but I'm interested in sigma-algrebas, filtrations, stopping times etc, with possibly examples of "real life" situations where they would be used  thanks


I want to filter an array that only contains emails,   I did this   emails = emails.filter((x)=>(x !== (undefined || null || '')))   that delete the empty value, but can accept a value that is not an email.


Install Windows on a usb flash drive from Ubuntu

I want to install a Windows version on a USB flash drive from Ubuntu. How can I do it and which version of Windows should I choose?


How to estimate $P(x\le0)$ from $n$ samples of $x$?

Suppose, we have $n$ samples $x_i$ of a random variable: $$x \sim \mathcal N(\mu,\sigma^2) $$ Based on the samples, we want to estimate the probability that $x$ is negative: $$P(x\le0)$$ Intuitively, I would first estimate: $$\hat \mu=\frac 1 n \sum x_i$$ $$\hat \sigma^2={\frac 1 {n-1} \sum (x_i-\hat \mu)^2}$$ and then calculate: $$P(x\le0)=\frac1{\sqrt{2\pi\hat\sigma^2}} \int_{-\infty}^0 e^\frac{x-\hat\mu}{\hat \sigma} dx$$ However $\hat \mu$ and $\hat \sigma$ have variance! If I use this method, I suspect I am ignoring that variance and making an incorrect estimation. Is this reasoning right? If so, how can I estimate $P(x\le0)$ more correctly, taking $\text {VAR}[\hat \mu]$ and $\text {VAR}[\hat \sigma]$ into account?


When is $Aut\left(\mathbb{Z}_n\right)$ cyclic?  Where $Aut \left( G \right)$ is the group of "Automorphisms of the group $G$" under composition.     I know that $Aut\left(\mathbb{Z}_n\right) \approx U\left(n\right)$ but I don't know when $U\left(n\right)$ is cyclic.


I've got a pressure sensor and a flow sensor. Both have a 5V span, but have a (different) null offset i.e. at zero pressure (gauge) or zero flow they read ~2V and ~1V respectively.   I am using an  and PiPyADC (from git) so can only read up to 5V. How can I remove these offsets?   Git code has a function:  |  cal_self_offset(self) |      Perform an input zero calibration using chip-internal |      reference switches. |       |      Sets the ADS1255/ADS1256 OFC register.   but I'm not sure that's what I need, I definitely can't make it do what I want anyway!  Currently, my only thought is to step the voltage down over a 2/3 potential divider to get into range, though I'm bound to lose some accuracy this way. I'm hoping I can somehow remove the offsets from both sensors.  I appreciate any help/guidance,  Thanks.


Virus folder can't be deleted - WindowsApps

A few months ago I noticed that on my HDD there is a folder called WindowsApps and I tried to delete it because I know that it wasn't system related because my OS is on my SSD. I had no perm over it and couldn't enter the folder or change it's perms but I have all perms.  Few days ago I deleted my antivirus because it kept giving me false reports and deleting files that had no viruses. After 2-3 days the virus inside WindowsApps was activated and it kept setting the homepage to viceice.com on all my browsers. Soon enough it started opening false programs like taskMgr.exe or SkypeApp.exe and this are all fakes. When I used Open File Location on the processes it opened up the WindowsApps folder but I couldn't open it any other way and I couldn't delete it's content. Whilst trying to shutdown this false processes they would keep activating.  I never download anything with viruses and I'm sure of it. My thoughts are that it was transferred via WiFi because I use my neighbours WiFi.  I had to reset my Windows 10 and lose many programs but WindowsApps was still there and I still couldn't delete it, open it or change it perms. Currently it is not functioning and the antivirus I downloaded is hopefully keeping it from doing so. I tried using the Unlocker program to delete it but it said that it can't do it and will try on the next reboot but it did nothing. So I need a way to delete this because I don't want it destroying my PC. Thank you in advance.


software installation with dpkg -i vs. with make, how do they differ?

I've seen both these ways suggested for installing packages manually, but I don't know the difference:  dkpg -i <pkg>.deb   and  ./configure make make install   So how do they differ? Is the former one only a "more automated" way of just doing the same thing as the latter one? Or they are completely different?  (P.S: Asked here because dpkg is "debian package").  Edit: After reading the answer by  I see that using make involves compiling of program from source while dpkg just knows best how to organize the compiled program in different directories. There's another question on the network asking about the difference between apt-get and dpkg which is obviously different from this question.


I was tasked with creating a function "transitions" that takes as input a value of type std_logic of arbitrary length. The returned value should be an integer that records the number of transitions (0 → 1, or 1 → 0) as you scan the binary bit pattern from left to right (or right to left). For example, the value 0110010011 would return 5; the value 001 would return 1.  Below is a piece of VHDL code that you can use to test your function. Add your function to the code and simulate to check that your code is giving the correct result. Show your code and the simulation results. In your simulation, display the first 100 ns, with t2, t4, t6 and t8 all shown as either signed or unsigned decimal and data displayed as binary.  library IEEE; use IEEE.STD_LOGIC_1164.ALL; use IEEE.STD_LOGIC_UNSIGNED.ALL; entity test_transitions is end test_transitions;  architecture Behavioral of test_transitions is   signal data: std_logic_vector (7 downto 0):="01111100";   signal t8, t6, t4, t2: integer; begin   tt: process   begin     wait for 10 ns;     data <= data+1;   end process tt;    t8 <= transitions(data);   t6 <= transitions(data(5 downto 0));   t4 <= transitions(data(3 downto 0));   t2 <= transitions(data(1 downto 0));  end Behavioral;   Here's what I coded but keep receiving multiple syntax errors when I perform the Behavioral Check Syntax Test in the Xilinx ISE Design Suite. Any help would be greatly appreciated.  library IEEE; use IEEE.STD_LOGIC_1164.ALL; use IEEE.STD_LOGIC_UNSIGNED.ALL;  entity TransitionFunction is end TransitionFunction;  architecture Behavioral of TransitionFunction is    function transition(signal data: in std_logic) return integer is      variable count: integer;   begin     count:= 0;     for i in data'range loop       if data(i) /= data(i+1) then         count := count + 1;       end if;     end loop;     return count;   end transition;    signal data: std_logic_vector(7 downto 0):="01111100";   signal t8, t6, t4, t2: integer; begin    tt:   process   begin     wait for 10 ns;     data <= data+1;   end process tt;    t8 <= transitions(data);   t6 <= transitions(data(5 downto 0)));   t4 <= transitions(data(3 downto 0)));   t2 <= transitions(data(1 downto 0)));   end Behavioral;   Error messages:


Data points Imported into QGIS are in the middle of ocean

I'm new to QGIS and tried importing  (stops.txt). The project CRS, base map CRS and GTFS CRS have all been set to Google Mercator, but the points that are supposed to appear in Boston is now plotted in the middle of the ocean.  Did I miss out on something that messed up the import/plotting?


Select n records at random from a set of N

I need to select n records at random from a set of N (where 0 < n < N).  A possible algorithm is:     Iterate through the list and for each element, make the probability of selection = (number needed) / (number left)      So if you had 40 items, the first would have a 5/40 chance of being selected.      If it is, the next has a 4/39 chance, otherwise it has a 5/39 chance. By the time you get to the end   you will have your 5 items, and often you'll have all of them before that.   Assuming a good pseudo-random number generator, is this algorithm correct?    NOTE  There're many questions of this kind on stackoverflow (a lot of them are marked as duplicates of ).  The above algorithm is often proposed (e.g. 's answer) and it's always questioned (e.g. see , , , ...).  Can I have a final word about the matter?


Display/print the applicable __init__ method

Lawrence Benson points out that if you don't include an __init__ in your class, then it will inherit from a superclass by default .    supports this when stating that, "a class may define a special method named __init__()."  Is there any way to print/display a description of the __init__() or __new__() methods that apply to a particular class? Meaning - in the interpreter, can I run a command that will return them?  I've tried to run everything I can find in __dir__, to no avail:   >>>__dir__  ['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'drive']


Would it be possible to setup SE sites specifically designed for children, what do you think?

Yesterday my daughter watched me acting on my favorite SE site. She essentially said:      "Hey, that's cool. Can you recommend me a me a site there, where I could go to with my bunch of questions I have to ask?"   I admittedly had to deny her going here, since    She's going to get 12 that month (IIRC minimum age to legally participate at SE is 13, correct me if I'm wrong) Her english skills aren't well developed enough, to participate in internationally aimed sites   I've done more research then later and found 1, specifically designed for children's questions.  They're controlling more questions, and missing topics coming in from the interested children via e-mail.  I appreciate this model somehow, since (vs. a forum or SE), it's moderated by adults, and directed e-mail channels. Though adults have their "blinders" strapped on, and may totally miss the question. Also it keeps the kids safe from any totally off question attends of pedophile nature or such.    I've been infected now with the thought, if it would be possible to make up a site using the SE engine, that is specifically designed for    childrens asking mainly children answering decent moderation by adults, merely keeping them safe probably language specific, since we can't expect children to be familiar with english to ask well formed questions   I know it's kind of opinion based, but could you imagine one goes well and have the right controls at hand, to set up such kind of sites with SE (in Area51)?    As @Oded and others confirmed the point, that it generally wouldn't be legal for children younger than 13, besides parent's explicit agreement, which apparently can't be managed properly,   BREATHE  I still think that +13 year aged teens till at least 16 need to be treated as children, and it would be a good idea to give them protection level moderated sites.    1)Sorry it's in german, and that's also part of the question somehow. But I'd suppose everyone else here might be intelligent enough to extrapolate this for their native languages.


Weak decay iff or if strangeness changes?

I know that for a decay if the strangeness changes then the decay is a weak decay because strangeness is conserved in both strong decays and electromagnetic decays. However, is it also true that if a weak decay occurs the strangeness must also change? i.e. do we have: $$\text{weak decay} \iff \Delta S\ne0$$ $$\text{or}$$ $$\text{weak decay} \Leftarrow \Delta S\ne0$$ If it is the latter, is their another necessary and sufficient condition (apart from looking at timescales) to see if a decay is weak?


How do I fix Google Chrome's latest new tab page?

I've just updated to the latest Google Chrome Dev build, and they've changed from the annoying-but-ok new tab page to an ugly and less usable page.  On the old one, nine thumbnails was not enough, and now they've restricted it to eight.  There's an empty "Tips and Suggestions" box which I wouldn't want even if it had stuff in; they've added Recent Downloads - on the rare occasions when I need that, I'll hit Ctrl-J to open the Downloads tab; and the site-specific search box on the right has now gone!  Is there a way to get the old new tab page back, or a plugin to provide a superior one?   Update: I launch Chrome by pressing Win+R and entering "chrome" - I have a shortcut on the Path with a Target of "C:\Documents and Settings\<user>\Local Settings\Application Data\Google\Chrome\Application\chrome.exe" --old-new-tab-page and whilst double-clicking this shortcut brings up the previous new tab page, using the keyboard method results in the old one.  How do I get it working via the Run box? (Without using a batch file, which slows things down too much.)  Update 2: GRRR! Now they've gone and stopped the --old-new-tab-page parameter from working at all! I hate this new version of the page that they're forcing upon us - can anyone provide a method to get rid of it and get the decent page back?


I have an image attached that displays diffraction gratings and chromatic dispersion. I’m curious why it has this sort of star shape. Also, if there is some sort of formula or way to predict the shape. Info on the pic: This is a photograph taken on my iPhone, with flash on, of my tv.


The color of page number doesn't change in Beamer

I cannot change the color of the page number at right bottom. The setting applied to black but still be white, why?  How can I change the one to black??  ¥documentclass[dvipdfmx,11pt,notheorems]{beamer} ¥usetheme{Madrid} ¥usefonttheme{professionalfonts} ¥setbeamertemplate{frametitle}[default][left] ¥setbeamertemplate{navigation symbols}{} ¥setbeamercovered{transparent}  % Footer ¥setbeamertemplate{footline}[page number] ¥setbeamerfont{footline}{size=¥normalsize, series=¥bfseries} ¥setbeamercolor{footline}{fg = black, bg = black}   ¥usepackage{amsmath,amssymb} ¥usepackage{amsthm} ¥usepackage[T1]{fontenc}% ¥usepackage{textcomp}% ¥usepackage[utf8]{inputenc}% ¥usepackage{otf}% ¥usepackage{helvet}%  ¥begin{document}  ¥begin{frame}¥frametitle{test} ¥begin{block}{aaa} ¥begin{itemize} ¥item aaa ¥item bbb ¥end{itemize} ¥end{block}  ¥begin{exampleblock}{Example} ¥begin{equation*} ¥frac{¥pi}{2} =¥left( ¥int_{0}^{¥infty} ¥frac{¥sin x}{¥sqrt{x}} dx ¥right)^2 =¥sum_{k=0}^{¥infty} ¥frac{(2k)!}{2^{2k}(k!)^2} ¥frac{1}{2k+1} =¥prod_{k=1}^{¥infty} ¥frac{4k^2}{4k^2 - 1} ¥end{equation*} ¥end{exampleblock}  ¥begin{exampleblock}{Example} ¥begin{equation*} ¥frac{¥pi}{2} =¥left( ¥int_{0}^{¥infty} ¥frac{¥sin x}{¥sqrt{x}} dx  ¥right)^2 =¥sum_{k=0}^{¥infty} ¥frac{(2k)!}{2^{2k}(k!)^2} ¥frac{1}{2k+1} =¥prod_{k=1}^{¥infty} ¥frac{4k^2}{4k^2 - 1} ¥end{equation*} ¥end{exampleblock}  ¥begin{exampleblock}{Example} ¥begin{equation*} ¥frac{¥pi}{2} =¥left( ¥int_{0}^{¥infty} ¥frac{¥sin x}{¥sqrt{x}} dx ¥right)^2 =¥sum_{k=0}^{¥infty} ¥frac{(2k)!}{2^{2k}(k!)^2} ¥frac{1}{2k+1} =¥prod_{k=1}^{¥infty} ¥frac{4k^2}{4k^2 - 1} ¥end{equation*} ¥end{exampleblock}  ¥end{frame}   ¥end{document}


OL3 How to select features of a WMS layer

I want to show on the map the features of the saved layers from a GeoServer server, but I don't know how to do this...  Like this, but with the dragbox interaction...  I have this code:  var select = new ol.interaction.Select(); mapa.addInteraction(select); var selectedFeatures = select.getFeatures(); var dragBox = new ol.interaction.DragBox({         condition: ol.events.condition.always,         style: new ol.style.Style({             stroke: new ol.style.Stroke({                 color: [0, 0, 255, 1]             })         })     });      mapa.addInteraction(dragBox);      dragBox.on('boxend', function(e) {         if (capaActiva != null) {             var info = [];             var extent = dragBox.getGeometry().getExtent();             var source = capaActiva.getSource();             console.log(source);             var url = source.getGetFeatureInfoUrl(extent, viewResolution, 'EPSG:3857',{'INFO_FORMAT': 'text/plain'});             console.log(url);          } else {             Ext.MessageBox.show({                 title: 'Error',                 msg: 'Check a layer',                 buttonText: {                                             ok: 'Aceptar',                 }             });         }     });


Questioning the Accuracy of Storm Troopers

On Tatooine after the Jawa traders are attacked Luke mentions that it must have been sand people who had done it. Ben Kenobi corrects him by saying that they were only made to think it was sand people and mentions the accuracy of the laser blasts saying, "only Imperial storm troopers are so precise."  Yet, in several scenes after this it appears as though the storm troopers are terrible shots. For example, the scene where Luke and Leia are gearing up to swing to the other side of a chasm in the Death Star, they're being shot at by several storm troopers, all of whom miss Luke and Leia (while Leia manages to take out a couple of them). There's also the scene where Han charges into a large group of troopers, again, all of whom miss him as he runs away. If they're as highly trained as we're led to believe, then episode 4 would have been the last movie in the series due to the storm troopers dusting off all the heroes.  So was the accuracy they showed during the attack on the jawa traders just a fluke or were those small group of troopers just the best shots of all the storm troopers in the whole galaxy?  In summary, are there examples in the non-movie canon that shows how accurate storm troopers really are? It seems like they were made bumbling for the movie to make the heroes look better, as is often the case in films.


Headings don't show the content correctly

This code:  \documentclass[twoside,symmetric,notoc,justified]{tufte-book}%  \usepackage[utf8]{inputenc} \usepackage[latin]{babel} \usepackage[OT1]{fontenc} \usepackage{lipsum}   \geometry{   %showframe,   paperwidth=145mm,   paperheight=215mm,   inner=16mm,   outer=10mm,   top=10mm,   bottom=40mm,   marginparsep=3mm,   marginparwidth=40mm,   includemp,   includehead, } \fancyhf{}% \fancyhead[LE]{\bfseries\thepage\quad$\bigg|$\quad\leftmark} \fancyhead[RO]{\bfseries\rightmark\quad$\bigg|$\quad\thepage}  \begin{document}  \tableofcontents  \chapter*{Introduction} \addcontentsline{toc}{section}{\textbf{Introduction}} \lipsum[1-5]  \chapter{Chapter1} \section{Section1} \lipsum \section{Section2} \lipsum \section{Section3} \lipsum \chapter{Chapter2} \section{Section4} \lipsum \section{Section5} \lipsum \end{document}   gives this:   As you see, the headings still show "Index", but it is already "Introduction". How to fix it? I want it to show "Introduction" on the page where it is. Thank you.


How to make GRASS and SAGA tools capable to use in QGIS？

I installed QGIS, GRASS and GDAL by OSGeo4w package, and as I finish the installation, I want to use GRASS tool, I face this problem：    But I already installed GRASS and SAGA, how to make those tools in QGIS to be used？


Is this the best way to see my running processes?

So obviously the title says it all. Is this the best way to view my running processes?  ps -u whoami


Modify background jobs and/or notify on job completion post-launch

I would like to be able to somehow modify a running command and/or get notified when a running command completes after it has been started.  Normally, when I know a command is going to take a long time, I will preemptively set something up for a notify:  ./takes_long_time && touch done   or  ./takes_long_time; touch done   My question is if ./takes_long_time was executed without the touch, is there a way I can go back and add it without restarting ./takes_long_time?


How should I escape special characters in bash  flyway info -url="jdbc:redshift://server_name/db_name?ssl=true&sslfactory=com.amazon.redshift.ssl.NonValidatingFactory" -password='$PROD_PASSWORD'  PROD_PASSWORD=sf45$h)jY*@hj   I want to escape the dollar sign  I tried escape \ and putting password='$PROD_PASSWORD' and also password="$PROD_PASSWORD" also %40.


Search for 'weatherworking' story set in Britain

I would have read this at some point before 2001, which is not particularly helpful but does at least cut out the last 13 years, I guess?  (Assume, by the way, that basically all of what follows will spoil the story.)  SYNOPSIS  The protagonists of the story are a pair of young siblings, a boy and a girl. The brother is able to work weather magic, and close to the beginning of the story I'm pretty sure they come across a man who is being pressed to death as a witch. I'm pretty sure they rescue him.  Over the course of the story, it emerges that the setting is a Britain in which people have returned to the land. It isn't a Britain that never developed, however; people seem simply to have forgotten the use of technology. This is not a worldwide effect, however: there's a mention that, with all these weatherworkers in Britain, the weather in France has taken a turn for the dreary, rainy, and gray, and so this tech-less bubble basically covers just Britain. I think we find this out from the man, who will have come back in (and whose technological knowledge may have gotten him in trouble, though as far as I recall devices also stop working once they come in contact with the bubble). We also find out that at the moment this happened, there was an hour or two of chaos as (for instance) drivers on expressways lost control of their cars, airplanes failed, etc.  Eventually, they all come across the source of the disturbance, which ends up being the tomb of Merlin, who was apparently sleeping and then reawakened (possibly by archaeologists?) Ultimately, Merlin is responsible for Britain turning into a gigantic Ren Faire*, and after our protagonists talk to him he agrees that there isn't a crisis, that Britain should be allowed to rejoin the world, and everyone sort of wakes back up into understanding modern technology. Maybe Merlin goes back to sleep.  At the end, it's raining, and the sister asks her brother to make it stop, but he can't.    *Yes, I know this is anachronistic. Sorry.


Borel-Cantelli Lemma "Corollary" in Royden and Fitzpatrick

The Borel-Cantelli Lemma in  seems to be a sort of "corollary" of the .  It says:  "Let $(E_k)_{k=1}^{\infty}$ be a countable collection of measurable sets for which $\sum_{k=1}^{\infty} m(E_k) < \infty$. Then almost all x $\epsilon \ \mathbb{R}$ belong to at most finitely many of the $E_k$'s"  I don't get three things:   "Then almost all x $\in \ \mathbb{R}$ belong to at most finitely many of the $E_k$'s"   What does that mean? Since the Borel-Cantelli Lemma comes after the "almost everywhere" definition, I guess: $\exists \ Z \ \subset \mathbb{R}$ s.t. $m(Z) = 0$ and $\forall x \ \in \ \mathbb{R} \setminus Z$, x belongs to $(E_{j}, E_{j+1}, E_{l}, ..., E_{m})$.   In the proof, one can see the $m(\limsup \ E_k) = 0$ part, stated as $m(\cap_{n=1}^{\infty} [\cup_{k=n}^{\infty} E_k]) = 0$. For some reason, $m(\cap_{n=1}^{\infty} [\cup_{k=n}^{\infty} E_k]) = 0$ implies that "Therefore almost all x $\in \ \mathbb{R}$ fail to belong to $\cap_{n=1}^{\infty} [\cup_{k=n}^{\infty} E_k]$ and therefore belong to at most finitely many $E_k$'s"   Okay, why? What is the contradiction if almost all $x \epsilon \ \mathbb{R}$ belong to all the $E_k$'s? Or a countably infinite subcollection?   What is the significance of this? Why not just state the Borel-Cantelli Lemma as "Let $(E_k)_{k=1}^{\infty}$ be a countable collection of measurable sets for which $\sum_{k=1}^{\infty} m(E_k) < \infty$. $m(\cap_{n=1}^{\infty} [\cup_{k=n}^{\infty} E_k]) = 0$"?


I have a question regarding setters for a returned object.  I have a class with a private HashMap and a get method. The HashMap contains Minions (a class also having private values with getters and setters) as values.  When I now do  Minion testMinion = MyClass.getMinion(somestuffhere); testMinion.setLevel(9);   Does only the level of the variable testMinion change so I'd have to update the HashMap with the new Minion or does this modify the original Minion in the HashMap since testMinion is just a reference to it?


Where can I download the Synaptics Touchpad suite?

On Synaptics website, they advertise the Synaptics Touchpad suite for Linux, but it is not available for download.  Am I looking in the wrong place?  How do I get a hold of this?  This would solve my clickpad problems that people are currently hacking around...


Is there a way to monitor number of attempted Skype connections on a specified port and dynamically firewall off the offending IPs if they break a certain threshhold within a specific time limit - in Windows 7?  On a Linux box, though it's a bit crude, I know I could use wireshark or nstat and output to a file, then cron a job to grep through and then parse the data for number of attempted connections to a specified port, add a firewall rule to iptables, then truncate the log file for the next iteration, and I'm all set. I'm a bit lost on how to go about this or something similar on a Windows 7 box.  The situation I'm trying to solve is that I have several users that need Skype access. Resolving a skype username to IP is fairly simple and this has resulted in their machines being DDOS'd on occasion. While I know I could do this upstream on a full-fledged ASA or similar device, for various networking reasons I'm trying to find a solution that can be implemented on the users computer. White-listing and blocking everybody else is not an option.  Thanks for any input or ideas on this.


Calculating the entropy of an attribute in the ID3 algorithm when a split is perfectly classified

I have been reading about the ID3 algorithm recently and it says that the best attribute to be selected for splitting should result in the maximum information gain which can be computed with the help of the entropy.  I have written a simple python program to compute the entropy. It is shown below:  def _E(p, n):     x = (p/(p+n))     y = (n/(p+n))     return(-1* (x*math.log2(x)) -1* (y*math.log2(y)))   However suppose we have a table consisting of 10 elements as follows:  x = [1, 0, 1, 0, 0, 0, 0, 0, 0, 0]  y = [1, 1, 1, 0, 1, 0, 1, 0, 1, 0]  Where x is the attribute and y is the class. Here P(0) = 0.8 and P(1) = 0.2. The entropy will be as follows:  Entropy(x) = 0.8*_E(5, 3) + 0.2*_E(2, 0)  However the second split (when x=1) is perfectly classified and this results in a math error since log2(0) is negative infinity. How is the entropy calculated in such cases?


I noticed that I cannot edit . The tooltip explains  that      Suggested edits are not allowed on non-tag-wiki posts on meta sites   After searching I found  and  that says that this is by design. I do get the reason why I can't edit (not enough rep), my problem is that the tooltip explanation is not very clear to me. What exactly is meant by 'non-tag-wiki posts'?. Does it mean that if someone with enough rep adds a 'wiki' tag to the question then I will be able to edit the post?


How can developers be assured that their software is fault free?

For example when creating software for critical real time applications, like those used in aviation, how certain are you that it's going to run without problems? Are you 100% certain or are you >90% certain?  We see that bug fixes are continuously added in every software application. What if the bug bites back before there is a chance to fix it,especially in mission critical applications?  So is a fault free application really possible and is exception handling the solution to uncertainty? How far can exception handling go?


Is the Macbook 12 inch's USB-C charger interchangeable with other USB-C chargers or devices?

If there is only the Macbook 12 inch USB-C charger nearby, can it be used to charge other USB-C devices, such as any Android phones that also use USB-C? (will it be "too powerful" and damage other devices?)  Vice versa, if there is a Quick Charge 2.0 or 3.0 USB-C charger from other devices nearby, can it be used to charge the Macbook 12 inch?  The main concern is about whether it could damage the device or battery.


I used VS2019 to write C# project in Windows7. There is a error when I tried to compile the project: An object reference is required for the non-static field, method, or property  'ViewerController.curLSUnits'     When I tried to used some recommended method from other similar questions, that is, add"static" to the definition of  curLSUnits, new error occurs(Member 'ViewerController.curLSUnits' cannot be accessed with an instance reference; qualify it with a type name instead  ImageExplorerServer), seems like I could not add "static". What should I do to fix this "An object reference is required for the non-static field, method, or property 'ViewerController.curLSUnits'   " problem? viewcontroller.cs:    public UnitData[] curLSUnits;     public static void SaveToFile(int exportFileIndex, string argDBpath,       DataTable dt, int currentRow,int      m_IESTrayXTrayYValueEqualToTrayColTrayRow,int m_ExportDefectWithRedRec,      BackgroundWorker bgw = null)     {         try         {             if (exportFileIndex == 2)             {                                     string pathExptRpt = Path.GetDirectoryName(argDBpath) +         "\\ExportFolder\\" + Path.GetFileNameWithoutExtension(argDBpath) +             ".csv";                                     ExportRpt.WriteDefToCsv(bgw, pathExptRpt, dt,            exportFileIndex, currentRow,             m_IESTrayXTrayYValueEqualToTrayColTrayRow,             m_ExportDefectWithRedRec, curLSUnits);   //WY200619             }              else             {                 string pathExptRpt = Path.GetDirectoryName(argDBpath) + "\\"             + Path.GetFileNameWithoutExtension(argDBpath) + ".xlsx";                 ExportRpt.WriteDefToExcel(bgw, pathExptRpt, dt,           exportFileIndex, currentRow,             m_IESTrayXTrayYValueEqualToTrayColTrayRow,             m_ExportDefectWithRedRec);             }         }         catch (System.Exception ex)         {             debug.OutputDebugLogString("[IES] Temp debug log (SaveToFile):"      +ex.ToString() +  Environment.NewLine);                      }     }  exportRPT.cs:        public static void WriteDefToCsv(BackgroundWorker bgw, string       pathSaveFile, DataTable dtDefDetails, int ExportFileIndex, int       currentRow,     int IESTrayXTrayYValueEqualToTrayColTrayRow, int ExportDefectWithRedRec,      UnitData[] curLSUnits)     {         try         {                         System.IO.Directory.CreateDirectory(Path.GetDirectoryName(pathSaveFile));              var csv = new StringBuilder();              //Write Headers             string Headers;             SetDefectColumnTitile(out Headers);             csv.AppendLine(Headers);        ......


I uninstalled ubuntu 32 bit to get ubuntu 64 bit but when I did that when I turn on  my pc when I try to go to windows and get a black screen that just blinks and I do not have a windows disk


I get disconnected from LAN every few minutes

I'm trying to play a LAN server with my sibling, but every few minutes, I lag then get disconnected.  It tells me that the connection was forcibly closed by a remote host.  We have the same wifi, and also I have let Java through firewall on both computers.  We run 1.10.2 and Windows 10.


I am new to C# and I want somthing that works like this in C++  #define PointCloud List<PointData>   wherer PointData is a small class which contains some data about a point and List is the generic List.  Greetings  //edit: PS: Is there a name for the thing I am searching? If there is one, please tell me.


So here is the thing, I'm working on my own little PHP based forum software for my college exam (comp. sciences). One thing I found tricky to do is to allow html content. One of the exam requirements is SQL security.  In my forum I want to allow someone to copy and paste something from the internet, like say a WikiPedia article, with all hyperlinks and font styling to transfer over ones they paste it into the forum textarea.  I was able to achieve this with use of nicEditor which is a js wysiwyg editor. Now the problem strives from the way I validate the user input. In order to make the input secure it's called in such format.  parsebbCode(htmlentities(stripslashes($posts_content)))   This pretty much renders everything useless, turning html into plain text. So here is the thing, how can I store the html code in it's default state in MySQL and convert it into rich format ones it's going to the client side, without creating a SQL vulnerability? Or should I just write some BBCODE to parse the basic elements instead?


Do I need a transit visa to go from Narita to Haneda?

Two weeks from now (Oct. 22), I will land at Narita airport at 3 P.M. and then transfer directly to Haneda airport for my connecting flight to Manila at 1 A.M. on Oct. 23; this is a 9-hour layover and I have no plan to travel outside of Tokyo for pleasure. The embassy told me to get a transit visa, but is it applicable in my situation? Is there any exemption? I am a Philippine citizen.


Finding Stack Exchange sites that have a specific tag

I want to ask a question about how to do something with DyNet. I am not sure what site is the best place for this question. A possible way to find out is to look for the site where the tag "dynet" exists (and, if there is more than one, find the site with the largest number of questions with this tag).   How can I find all the Stack Exchange sites that have a specific tag?


What I tried      $sql="select * from project_status where node_id=".$vid." and ".  strtolower($field_progress_flags)."!='' and ".  strtolower($field_progress_flags)." IS NOT NULL";         $query=$sql;     $array = array();     $result = mysql_query($query);     while ($object = mysql_fetch_array($result)) {         $array[] = $object;     }     mysql_freeresult($result);     echo "<pre>";     print_r($array);   the actual sql query is  select * from project_status where node_id=385 and draft!='' and draft IS NOT NULL  here am not getting any data what am doing wrong here?


Camera slows down zooming into an object while in viewport

I have been encountering an issue where the camera zoom slows down then completely stops moving before I reach an object which I'm trying to zoom into. I'm not too sure how to fix the issue and I've searched the web but still struggling to fix the problem. Thanks in advanced