how to refer a record type in a apex class

I'm writing a Apex class to auto delete Case records of record type claims and service failure with created date older than 6 Years here is the code. But i'm failing to Refer the record type in the code can i get some help on it   global class DeletecaseBatchClass implements Database.Batchable<sObject>{     global DeletecaseBatchClass(){     }      global String query;     global Database.QueryLocator start(Database.BatchableContext BC) {         query = 'SELECT Id, createddate, RecordType.Name from case where createddate < date.today()-2190 AND RecordType.Name IN ()';         return Database.getQueryLocator(query);     }      global void execute(Database.BatchableContext BC, List<case>scope){         delete scope;     }      global void finish(Database.BatchableContext BC){     } }


for(String objectName : jsonMap.keySet()){             // List<map<String,String>> listObjects=jsonMap.get(objectName);             List<Map <String, String>> jsonFieldMapToUpper= new List<Map<String, String>>();             for(map<String,String> JsonFieldMap: jsonMap.get(objectName)){                 Map<String, String> keyVal=new Map<String, String>();                 for(String key : JsonFieldMap.keySet()){                     keyVal.put(key.toUpperCase(), JsonFieldMap.get(key));                                      }                 jsonFieldMapToUpper.add(keyVal);                 jsonMap.put(objectName, jsonFieldMapToUpper);             }         }         System.debug('TRANSFORMED '+jsonMap);


Is it possible to create a lens shader with EEVEE/Cycles ? I'd like to have the control over the camera position and the ray direction per sample. This allows to simulate various conventional lens distortions (which I'm not interested in) and other deforming effects. Houdini and Arnold supports a camera lens shader, someone also used it to run across the objects and bake textures. Some other ideas include run a particle simulation, and assign each particle to a pixel in the image as if it were a camera looking from that particle. Or you can just use an ordinary object to sample the space around. You can mix perspective and orthographic in different parts of the image, blending between them, or even zoom only part of the image. This thread shows how to set it up and one possible use that this kind of level of control gives you.  I insist that I'm not trying to replicate this specific effect, I'm looking for this level of control per pixel.


Prove that a series is bounded with induction

I have to prove that the following condition is true: $$\frac{1}{n+1} + \frac{1}{n+2} + ... + \frac{1}{2n} > \frac{13}{24}$$ for every $n > 1$.  I understood that this series is the same as: $$S(n) = \sum_{i=1}^n \frac{1}{n + i} $$  I tried to use induction but I could't reach something meaningful.   (This exercise was in a discrete math exam, so I am not looking for a proof using series theory).  Thanks!


Blender 2.8 doesn't recognize my graphics card for GPU

Blender 2.8 isn't recognizing my graphics card for gpu or opencl rendering. I'm using a mac with a Radeon Pro 580 8 GB graphics card. Are there any articles about best graphics card for use in Blender? I'm thinking about buying a new one, since the cpu rendering takes very very long. Any tips would be greatly appreciated!


Is $(\mathbb{Q}, +)$ elementarily equivalent with $(\mathbb{R}, +)$?

How can I decide if $\mathbb{Q}$ is elementarily equivalent with $\mathbb{R}$ for the language that only consists of the 2-ary function symbol +? And how can I prove it? My idea was that they are indeed elementarily equivalent, but I don't see how I can prove this.


so i'm working on my CS project in which we need to sort a list of DVD's by director. it'll compile, however when i run it i'm getting a null(in java.util.Arrays) i've called java.text.numberformat and java.util.* is that i forgot to add anything in my imports? thanks friends.   public void addDVD(String title, String director, int year, double cost, boolean bluray) {     DVD newDvd = new DVD(title, director, year, cost, bluray);     int index = Arrays.binarySearch(collection, newDvd);     if(index >= 0) {         System.out.println("DVD with title " + newDvd.getTitle() + " already exists.");     }     else {         int index1 = -index - 1;         collection = insertDVD(collection, newDvd, index1);         System.out.println("DVD with title " + newDvd.getTitle() + " added.");     }     totalCost += cost; }


Crash happens when I try put button into fragment

Below are my code  java.lang.NullPointerException: Attempt to invoke virtual method 'void  android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference


I have never seen Umbridge at one of Voldemort's meetings but is she a Death Eater? I think she just agrees with what any Minister of Magic says, and seeing as Pius is a Death Eater she agrees with his views about Voldemort. But what does the public say?


Why is normal force sometimes called "reaction force"?

I know that normal force is not a reaction force to the gravitational force: first because the gravitational force is from Earth on the object    (action force), thus the reaction force is simply from the object on Earth according to Newton's third law; also because in certain situations like when the object is on an inclined plane, the normal force doesn't even equal the force of gravity on the object but only the perpendicular component of gravitational force. My question is: In some textbooks (as shown below, Physics for the IB Diploma (Cambridge University Press) by K.A. Tsokos), normal force is named "normal reaction force"; why is that and where's the action force if the normal force is a reaction force? I'm pretty sure I will receive many wonderful answers, but could you also refer me to a specific reference by page number to read more?  Normal reaction contact forces If a body touches another body, there is a force of reaction or contact force between the two bodies. This force is perpendicular to the surface of the body exerting the force. Like tension, the origin of this force is also electromagnetic. In Figure 2.29 we show the reaction force on several bodies.  Figure 2.29 Examples of reaction forces, $R$.


I usually find, after blowing up my pic on the computer, that at one point (where I wished to focus) the image is very sharp, then as I inspect the picture I see that some more parts of the image, either horizontally or vertically, are in focus.  My confusion is that when we lock the focus at a certain point, is it that entire plane (both in the x and y directions) that is in focus? because I see most of the time (in Macro), that focusing is either horizontal or vertical or am I mistaken, because of minute differences in distance? E.g.,                          (In focus)                                |                             |    (Not in focus )  ________|__________ (Not in focus or I have mistaken)                             |                             |                             |                          (In focus)   I understand the general statement that a higher F-number means a greater area of focus.


ab&2e;1652769179"/> i did correlction using rerular expression ab&2e;(.*?)"/>  but during execution some times extra text (cd&3d;) adding to the data like  ab&2e;cd&3d;1652769179"/>  So need to ignore data "cd&3d;"  Please let me know any idea to ignore text cd&3d; Thanks  Thanks Raghav


What's the meaning of buzziest in this context?

This is the context:  Seasoned travellers, especially the sort that jet around the globe clutching laptops, know that certain words are to be avoided like the plague. This is because those who choose these words are masters of disguise : the service offered is the exact opposite of that indicated by the name used to describe it. Thus many flights described as “direct” are actually indirect, since they involve a stop, and a lengthy wait, in, say, Dallas-Fort Worth en route between Boston and Vancouver. Similarly, habitués of railways learn to shun any train claiming to be an “express” or “rapid”, since such services seem invariably to be the slowest (by design, not just by accident). Which perhaps make it fitting that some of the most seasoned travellers of all, management consultants, appear to have been inspired by just this sort of untruth-in-advertising. The buzziest among them now claim not just to be consultants, or advisers, or even experts. They are “thought leaders”.


I want to triple boot Windows 7, XP and Ubuntu

So. I have windows 7 and Ubuntu right now. And i want to add windows XP too. I did some research and found out that you need to install everything in order from XP to Ubuntu. But i have windows 7 and Ubuntu already. And i want to ask is there a way without re-installing Windows 7 and Ubuntu. P.S.: Thanks to anyone who will reply.


How can I use Linq to get distinct results filtered by property

Given this class:  public class Tool     {         public int Id { get; set; }         public int Number { get; set; }         public string Source { get; set; }     }   And a list of Tools like this:  var tools = new List<Tool>()             {                 new Tool {Id=444, Number=121, Source="Master"},                 new Tool {Id=777, Number=121, Source="M1"},                 new Tool {Id=333, Number=51, Source="Master"},                 new Tool {Id=555, Number=61, Source="Master"},                 new Tool {Id=848, Number=51, Source="M1"}                 //Many more             };   How could I use Linq to get a list of distinct Tools by Number and if 2 tools have the same Number select the one whose source is "M1", i.e.the resulting list would contain:  Tool {Id=777, Number=121, Source="M1"} Tool {Id=848, Number=51, Source="M1"} Tool {Id=555, Number=61, Source="Master"}


I was playing terraria today, and my friend came and deleted the my world.  Is there a way for me to recover my world?


What questions should I be able to answer when entering USA?

Last time I entered USA, the border officer asked me a lot of questions. Some of them were quite personal and others were about my destination in the USA. For example, he asked me where I would stay. I knew the address and since it was a private host, he asked me if I know the profession of my host. I couldn't answer this question and the border officer seemed a little bit surprised about that.  So my question is: What questions should I be able to answer when I want to enter the USA?


What is difference between select count(1) from table and select count(*) from table

What is difference between select count(1) from table ; and select count(*) from table ;  Here my table contain 5rows and 5column


Is there a complete mirror of all the WotC expansions. It seems a lot of them are gone completely: not on the website, not on the Internet Archive, not on any mirrors. I can't find a lot of the stuff mentioned at the Guide to Free DnD. Namely any of the stuff on the ww2.wizards.com.


I already installed gnome-clocks and added some new time zones in it.   In addition, I installed gnome-tweak-tool and enabled Ubuntu appindicators.   I still don't see an option to add world clocks to the top bar. What am I missing?


Let $A$ be an $n\times n$ matrix, with $A_{ij}=i+j$.  Find the eigenvalues of $A$.  A student that I tutored asked me this question, and beyond working out that there are 2 nonzero eigenvalues $a+\sqrt{b}$ and $a-\sqrt{b}$ and $0$ with multiplicity $n-2$, I'm at a bit of a loss.


pgfplot: plot non-numerical data from CSV file

I have a csv file like:  column1,column2 string1,value1 string2,value2 …   Values are integers, strings are alphanumeric.  I tried to plot it, with strings on x axis and values on y axis. After some tries leading to errors like Could not parse input "string1" as a floating point number, sorry. The unreadable part was near…, based on some questions (like , , ,  or ), i finally found this only way to get the things works, (see also , page 363):  \begin{tikzpicture} \begin{axis}[     symbolic x coords={string1,string2,string3,…},     minor tick num=1, ] \addplot table [x=column1,y=column2] {csvfile.csv} \end{axis} \end{tikzpicture}   Obviously, the non-numerical data needs to be write directly in the graph definition.  How can i have the same in a DRY way, i.e. have for only source of data the CSV file given as \addplot parameter ?


Action names in post menu cut off in iOS 13

I just updated my iPhone 7 Plus to iOS 13 tonight and noticed that the post menu in the Stack Exchange app became close to unreadable, because the font/text is too large to be properly displayed. Luckily we can still recognize the icons...    (Yes, app development has been frozen for quite a while but the app continues to serve me well.)


SELECT   DISTINCT OH.MRN,OH.VISIT_NUMBER,OH.EVENT_TIME FROM ONCOLOGY_HISTROY_MV OH WHERE   OH.PROC='BC - Heamatology-Oncology Appt' ORDER BY EVENT_TIME ASC   I'm trying to get the first visit for each MRN (Patient) in a particular PROC (which is Procedure)  Please help :)


What's my confusion with the chain rule? (Differentiating $x^x$)

When deriving $x^x$, why can't you choose $u$ to be $x$, and find $\dfrac{d(x^u)}{du} \dfrac{du}{dx} = x^x$? Or you could go the other way and find $\dfrac{d(u^x)}{du}\dfrac{du}{dx}$, giving $\ln(x)\cdot{x^x}$? Both methods seem to be equally wrong.


Why was my very first question on stackoverflow put on hold as primarily opinion-based?

I just joined this community and posted . But after some few minutes, i realised it's been on hold. Is there anything i said that was inappropriate?


I have seen style manuals suggest that there be no space between emdash and the surrounding words.   The following NY times article has spaces in the first sentence:      "An expression of concern by the environmental group Greenpeace about   the carbon footprint was marred this week by real footprints — in a   fragile, and restricted, landscape near the Nazca lines, ancient   man-made designs etched in the Peruvian desert."     This despite there being an article in the same Ny times suggesting no space. What is correct?       First, make the thing the right way. There are a few ways to do it,   but generally, on a keyboard, you can do as follows: previous word/no   space/two hyphens/no space/following word. Word-processing programs   turn the two hyphens into an unbroken line that’s roughly the width of   a capital “M” — hence the official name of this punctuation mark, the   em-dash. (Some publications, including this newspaper, add spaces   around dashes.)


I was refused a tourist German visa. Is it OK to apply for a business trip to the same place?

The first time, I was not entitled to disclose the purpose of the travel to anyone beyond the company, so I applied for a tourist visa.  It feels, er, not completely true, but I couldn't provide an invitation from the inviting company (we didn't even know if we will sign an agreement, and the deal was a top secret).  I was rejected with a reason like "not convincing".  Is it bad?  Now I'm applying for a business trip visa. update: for a different date, for 3 days. It is not the same trip, but happens within a month from 1st application.  Should I include an explanation letter to a visa officer? What should I write there to convince the officer?  Here's why I think I need to provide extra explanations (these are USA rules but still):


Sometimes, I have to remake a set of faces for an object. E.g.  Is there a faster way to create faces between the outer and inner ring only (no center) than by selecting every four adjacent vertexes and creating a face between them?


How to make a complete operating system backup of windows without anything missing, to switch it to a different hard drive? A complete personal usable backup without using untrusted software, exactly like original.


Understanding ransomware – What makes plain-text-attacks or brute-forcing so hard?

Say I have four files. Two are completely unencrypted, while the other two are the exact same files other than that they have been encrypted with (apparently) the same public key (via a ransomware virus). Is it possible to deduce the key from these files, so I can apply it to other files also encrypted with the same key?  Edit  Sorry, after searching through the questions related to my tags, I see the simple answer is no, because although the public key is easily discovered, it's probably a private key I'm looking for, which would be hosted elsewhere.   But to modify the question:   Does the length of the public key imply the length of the private key, or can they be unrelated?  Also, wouldn't more plaintext information provide a brute-force program a starting point to speed the process?    I don't understand why, given that all the files would be decrypted using the same key, we can't deduce said key by comparing encrypted files to unencrypted ones.


Can a Wizard control his magical powers without a wand?

In the Potterverse, it is seen that some children are born with the "magic gene" and others are not (e.g. Lily Potter and her non-magic sister Petunia). Those children from the United Kingdom who possess magic will be enrolled at Hogwarts where they will learn, amongst other things, how to use their gifts properly. We learn early on that a wizard needs a wand, and in the Philosopher's Stone film we see Harry visiting Olivander's to acquire his wand.   's answer sufficiently describes why Wizards use a wand.   But we know Wizard children can perform magic by instinct without ever getting a wand or learning how to  control their magical powers.  My question is, Could a wizard, with enough training, become able to control his or her magic without one?


I am using WP Courseware (www.flyplugins.com) for a client's site and my basic understanding is that the course units are basically a custom post type ('course_units'). The course units can be created directly or converted from posts.  WP Courseware does not support category or tags taxonomy out of the box and it had to be enabled.  All of that was said to say that when I have posts tagged that they show up when you call  however the course units tagged with "design" do not show up.  I have never bothered with tags enough to care about tag clouds, etc so I do not know what file, template or function that needs to be updated to support the custom post type of "course_units" when it displays posts containing tags.  I followed the advice found here:   register_taxonomy_for_object_type( 'post_tag', 'portfolio' );   And now I see Tags under my Course Units in WP Dashboard.  I click on Tags and see the tags and click on the count and it shows the course units that tagged correctly in the backend, so I just need to know how to enable support on Tag Cloud for the front end where it actually returns the course unit posts instead of "Sorry, no content matched your criteria."  What connection am I missing?


Where can I find information online on occult psychic archetypes?

I am looking for information on a psychic marauder archetype which was on the Archives of Nethys site, but that site is down.  Where can information on psychic archetypes could be found online?


How do I find (or exclude) all directories and sub-directories matching a certain pattern (in Linux)?

I'm trying to use the Linux find command to find all directories and sub-directories that do not have .svn (Subversion hidden folders) in their path. I can only get it to exclude the actual .svn directories themselves, but not any of the sub-directories.  Here is what I'm doing right now:  find . -type d \! -iname '*.svn*'   I've also tried:  find . -type d \! iname '.svn' \! iname '.svn/*'   Just an FYI, I'm trying to use the find pattern so I can apply some subversion properties to all directories in my repository excluding the subversion hidden folders and their sub-directories (by applying the exec command to the directories returned from the find command)..  TIA


Is the following statement true ? If yes prove it and if no then give a counterexample?  Consider the finite cyclic group $\Bbb Z_n$. Consider $a,b\in \Bbb Z_n$ such that  $o(a)=r,o(b)=s$. If $s\mid r$ then $b\in \langle a\rangle $. Initially I thought the statement is correct. But the problem is I am unable to prove it. How to prove it?


Does flanking always grant advantage, or is it up to discussion?

The rules packet does not provide any specific rules about flanking.  However the rule does say that the DM has lots of leeway in deciding when to give advantage or disadvantage in combat.  Should it be understood that flanking always gives advantage, or is the DM supposed to only give advantage when there is "clever flanking"?  What is the best way to handle "flanking" in D&D 5e?


How to add a box of a fixed size (width and height) around a graphic of varying sizes?

I've found lots of references for ways to create a box around text, but none for around graphics.  I want the border frame around the graphic to all be the same size, with a graphic inside the box, centered vertically and horizontally, and a caption outside the box.  This box would need to be able to be placed side by side so it effectively makes a grid.  EDIT: Here is a working demo  \documentclass{article} \usepackage[demo]{graphicx} \usepackage[letterpaper, margin=1in]{geometry}  \begin{document} \setlength\unitlength{1in}   \framebox(2,2){\includegraphics[width=1.875in,height=1.875in,keepaspectratio]{infinity_80_gf_2010}} \framebox(2,2){\includegraphics[width=1.875in,height=1.875in,keepaspectratio]{Plus80_2010}} \framebox(2,2){\includegraphics[width=1.875in,height=1.875in,keepaspectratio]{comfort_achp_Puron}}   \bigskip  \framebox(2,2){\includegraphics[width=1.875in,height=1.875in,keepaspectratio]{Pref_Vent_VA}} \framebox(2,2){\includegraphics[width=1.875in,height=1.875in,keepaspectratio]{infinity_98}} \framebox(2,2){\includegraphics[width=1.875in,height=1.875in,keepaspectratio]{infinity_80_gf_2010}}  \end{document}   This is the result:


Installing Ubuntu 14.04 on HP Pavillion Issues

For the past couple of days I've been trying to install Ubuntu on my Laptop so it can Dual-Boot alongside Windows 7. I have Windows 7 pre-installed with the Laptop.  Firstly I downloaded the ISO File and I installed it on the USB using the instructions on the ubuntu website.  I put the USB in the laptop and then when I restarted it successfully boots and give me a black screen with 4 options the first is to try Ubuntu and the second is to install directly.  For the case which I choose Try Ubuntu and then choose to Install Ubuntu via there, the issue is that it tells me during the installation "This computer currently has no detected OS. What would you like to do?" and the options are to Erease disk and install ubuntu or something else. When I choose something else it gives me 4 partitions. sda1,sda2,sda3,sda4. I didn't know what to do from there.  I tried something else, when the computer restarts I actually pressed F9 and I chose the booting. There were a number of options, but the weird thing is there was the name of the USB that has Ubuntu on it, and the same exact name but with [UEFI] beside it.  When I choose to boot without the UEFI, it took me directly to a menu where I choose to try ubuntu or install ubuntu, using this way, it gives me another option during the installation which is Install Inside Windows 7, when I choose it, the computer just restarts.  I have UEFI off and Legacy on from the settings.   After googling and going through various forums, I thought the problem would be because HP Laptops come pre installed with 4 partitions. I have actually deleted HP Tools Partition and it didn't do anything. Same behavior during the installation.  I tried to shrink my C driver and I left 40GB of unallocated space using the Windows Disk Management tool, but it also didn't do anything.  I am out of ideas and out of hope ! I tried lots and lots of tutorials on YouTube and forums but nothing helped me.  Thank you so much for reading this and any help would be so much appreciated !


Why did the Tesla battery in Queensland respond to grid frequency? Why isn't this stable?

The RenewEconomy article  details the recently installed Tesla battery in Queensland Australia's response to a sudden change in line frequency of the power grid. Why would a frequency change be the thing that the battery responds automatically to? Naively thinking, since the grid may have several different power sources operating independently but connected to the same grid, wouldn't they all be designed to remain synchronized to a stable frequency? Loading might lower the voltage, but I'm surprised the frequency would be allowed to drift.  Last Thursday, one of the biggest coal units in Australia, Loy Yang A 3, tripped without warning at 1.59am, with the sudden loss of 560MW and causing a slump in frequency on the network. What happened next has stunned electricity industry insiders and given food for thought over the near to medium term future of the grid, such was the rapid response of the Tesla big battery to an event that happened nearly 1,000km away. Even before the Loy Yang A unit had finished tripping, the 100MW/129MWh had responded, injecting 7.3MW into the network to help arrest a slump in frequency that had fallen below 49.80Hertz. Data from AEMO (and gathered above by Dylan McConnell from the Climate and Energy College) shows that the Tesla big battery responded four seconds ahead of the generator contracted at that time to provide FCAS (frequency control and ancillary services), the Gladstone coal generator in Queensland.


Difference between F-test and T-test on OLS

I was running a regression with 1000 observations and 7 explanatory variables (with a constant term included as a "variable").  So, the population model initially stated was:  $Y_{i} = \beta_{1} + \beta_{2}X_{2i} + ....+ \beta_{6}X_{6i} + u_{i}$  So the sample model is:   $\hat{Y_{i}} = b_{1} + b_{2}X_{2i} + ....+ b_{6}X_{6i}$  (Estimated via OLS, meaning that I used the Gauss-Markov assumptions:  )  After performing an individually significant test over $\beta_{6}$ i got the result that I can not reject the Null Hypothesis of $\beta_{6} = 0$.  But, if I make a F-test, of joint significance, I get that I can reject the Null Hypothesis of $\beta_{6} = 0$.  What's the intuition? (and maybe the mathematics behind)   How can it be that one test contradicts the other?  Thanks!


number of differents vector space structures over the same field $\mathbb{F}$ on an abelian group

My question  raised another one. How many differents vector space structures over a field $\mathbb{F}$ we may have on an abelian group?  I know that there are abelian groups that we can not endow it with a structure of vector space over any field, for example $\mathbb{Z}_{6}$. But if an abelian group has a structure of a vector space over a field $\mathbb{F}$, is there an upper bound for ways we can define a different structure? Such as the number of automorphisms of the field $\mathbb{F}$. I am conjecturing according to the answer given before.


See progress of Spotlight re-indexing in El Capitan

Other Questions and Answers address how to check the progress of Spotlight rebuilding its index, previous to El Capitan: Click the Spotlight menu. The menu/panel that appears reports a progress bar if re-indexing is in progress.  In El Capitan, that menu/panel no longer appears. Now a grey box appears in the middle of the screen where we are expected to enter our search words. The re-indexing progress bar no longer appears.


how to enable two-finger scrolling on Asus Zenbook / Ubuntu 15.10

Just installed Ubuntu 15.10 alongside windows 10. Touchpad generally works (clicking, dragging, moving cursor) but two-finger scroll does not work.  Using Asus Zenbook UX305UA. I've seen some other threads with different Zenbook models and different Ubuntu versions, and the packages people have suggested don't work.   I think I have an Elantech touchpad, because I see:  $ grep -i pad /proc/bus/input/devices N: Name="Elan Touchpad"   In addition, it looks like the system is not recognizing that it is a touchpad. In System Preferences->Mouse and Trackpad, I see "Mouse" but not "Trackpad".  It was suggested that my question is a duplicate, but the proposed duplicate is for a different machine. The fact that the answer to the other question does not work for me confirms that the difference between the models is meaningful, and that the answer to this question will be different.  As requested in comments, output of xinput is:  ⎡ Virtual core pointer                      id=2    [master pointer  (3)] ⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)] ⎜   ↳ PixArt USB Optical Mouse                  id=9    [slave  pointer  (2)] ⎜   ↳ Elan Touchpad                             id=11   [slave  pointer  (2)] ⎣ Virtual core keyboard                     id=3    [master keyboard (2)]     ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]     ↳ Power Button                              id=6    [slave  keyboard (3)]     ↳ Video Bus                                 id=7    [slave  keyboard (3)]     ↳ Sleep Button                              id=8    [slave  keyboard (3)]     ↳ USB2.0 HD UVC WebCam                      id=10   [slave  keyboard (3)]     ↳ Asus WMI hotkeys                          id=12   [slave  keyboard (3)]     ↳ AT Translated Set 2 keyboard              id=13   [slave  keyboard (3)]


Some bibliography of an introduction to Bayesian Data Analysis

I'm doing a PhD in astrophysics and astrodynamics. Ive coursed a math degree but I'm not familiarized with statistics and analysis data. In the thesis I'm doing a lot of bayesian analysis data is required to modeling some observations and so on. Can you please recommend to me some bibliography that could help an amateur like me? Something like an introduction or whatever.   This is an article im trying to understand, for example. The part of the Bayesian model escapes me.


Let $G$ be any group. Let $H$ consist of the same set of elements as $G$, but with a new operation given by $a ∗ b = ba$, for all $a$ and $b$. Show that $H$ is a group, and that it is isomorphic to $G$.  I am having trouble proving what is being asked of me. First, I have no information about how the operation is in $G$. I suppose I could define the operation in $G$ as is usually done for group definition, this is if $a, b \in G$, then its product is $ab$. Based on that, $H$ with the new operation would be a group as well, since they have the same elements. The truth seems like nonsense to me but I can't think of anything else. Also I have tried to establish an isomorphism and let the rest follow from this fact, but so far it has been unsuccessful. Any hint would be helpful.


Solve for all possible functions f: $|f(x)-f(y)|=2|x-y|$.

I'm getting $f(x)=2x+f(0)$ and $f(x)=f(0)-2x$ by setting $y=0$, but I'd like to verify. Am I right?


Can $\{(f(t),g(t)) \mid t\in [a,b]\}$ cover the entire square $[0,1] \times [0,1]$ ?

Suppose $f,g : [a, b] \to R$ are both continuous and of bounded variation. Then can set $\{(f(t),g(t)) \mid t\in [a,b]\}$ cover the entire square $[0,1] \times [0,1]$ ? And what if we remove the condition both $f,g$ are of bounded variation ?


What is the meaning of the structure constant for the $\rm SU(3)$ group and how I can find its values?

To calculate the tree-level amplitude for:  $$Z(p_1) + Z(p_2) \to Z(p_3) +Z(p_4)$$  I must take into the consideration, amongst other cases, the amplitude for:    I know the values shown in another post for the structure constants (f) exist, , but I don't understand what these numbers mean. How do the particles being a Z or W boson change such values?  Is this related to longitudinal polarization vectors in any way?  How are these values used to find the amplitude of a diagram?


Why does this regex inculde square brackets in the results?

How can I rewrite the regex below so it won't return the square brackets in the results. I have to use match since it's part of other code. Can someone help?   var s = '{[{main}(other data)][{data}(other data)][{address}(other data)]}'; m = 'data' var qm = function(str) {   return s.match(new RegExp('\\[{' + str + '}\\(.*?\\)\\]', 'gi')); } console.log(qm(m)); // returns "[{data}(other data)]"  // trying to get "{data}(other data)" no square brackets


Can I visit other Schengen countries on a long-term Schengen visa or residency permit?

I have requested for a French long term (Type D) student visa from a consulate in India. It's a national Type D visa and not a Schengen visa. My question is that can we still go to other Schengen countries on this visa? If not then can we get a Schengen visa from a consulate in France?


Coefficient of $n$th cyclotomic polynomial equals $-\mu(n)$

For a polynomial $f=X^n+a_1X^{n-1}+\ldots+a_n \in \mathbb{Q}[X]$ we define $\varphi(f):=a_1 \in \mathbb{Q}$. Now I want to show that for the $n$th cyclotomic polynomial $\Phi_n$ it holds that $$\varphi(\Phi_n)=-\mu(n)$$ where $\mu(n)$ is the Möbius function. What I know is that $\displaystyle\Phi_n=\prod_{d|n} (X^{\frac{n}{d}}-1)^{\mu(d)}$.


Default browser utility to forward links to their respective apps?

On a machine I used at my old job, I had a little taskbar app (which I'd configured to be the default browser) installed that allowed me to configure e.g. Slack links to open directly in Slack, and the same for other apps, and all other links to open in Firefox as usual. It helped prevent loads of tabs piling up (e.g. click a link in Slack, it opens a tab in the browser which then opens up some other app, ugh). It essentially acted as a little configurable router for any link clicked in apps. It worked great, but now I'm trying to find it again and I can't remember what it was called or how I found it. Does anyone else know what I'm talking about?


My GPU is intel HD 4400, i can play that game when my OS was win 10, but i can't play it on linux 16.04 TS. Anybody know how to fix it? Thanks.


Redrawing a planar graph with straight edges

Recently in my undergraduate graph theory course we started learning about planar graphs. Now, the concept is very easy to me - However, in the homework, we are asked to redraw a certain graph as planar (not usually too hard), but then, redraw it in such a way that every edge is completely straight. I find this fairly difficult myself.  Are there any methods to help get a straight edge graph from one with curved edges? Do you have any tips? Anything you do to help yourself would be appreciated! Thanks so much  EDIT: Basically, how would I go from left to right without brute forcing/guessing? (Dont have 10 rep so can't post images, here is a link to the image):


What algorithm is used by computers to calculate logarithms?

I would like to know how logarithms are calculated by computers. The GNU C library, for example, uses a call to the fyl2x() assembler instruction, which means that logarithms are calculated directly from the hardware. So the question is: what algorithm is used by computers to calculate logarithms?


How to install "Need For Speed - Most Wanted"

How to install the game "Need for Speed - Most Wanted" in Ubuntu 16.04 LTS? I tried the Ubuntu Software Center search engine but couldn't find it, nor did I found the .deb file through which I could easily install it using 'Gdebi package installer'. Can you help me?


Prove that (01) and (01...n-1) generate Sn?

Show that every element of Sn can be written as an arbitrary product of the elements (01) and (01...n-1).   I understand that this can be solved using induction, and I've set up my base cases. However, I'm not sure how I can prove that if the proposition is true for k, it must also be true for k+1.  Any help would be appreciated.


"But had events gone another way"(grammar)

The whole sentence is "But had events gone another way, this would be a rather different memoir."   Why is the sentence not like "But the events have gone another way"? "Have" and "events" are reversed, is this first conditional?


\begin{equation} \d{u} \left( t \right) = Z \end{equation}   Am I missing a package or what?


How is a second measured? And why is it measured that way?

The earth's rotation around itself (one rotation around Earth's own axis) doesn't take exactly 24 hours. It off by some seconds which becomes somewhere around 6 hours per year and 1 day in 4 years(leap year), which brings the question why didn't we modify the measurement of 1 second ever so slightly so as to avoid leap years altogether.   Well how is 1 second measured exactly?  says      the duration of 9,192,631,770 periods of the radiation corresponding to the transition between the two hyperfine levels of the ground state of the caesium 133 atom. []   Well, why is it measured that way? Is there any technical reason like it is easy to measure and can be standardized easily? Or is it really possible to modify the measurement of time?


Add PostGIS spatial functions to a custom schema other than "public" in PostgreSQL

Recently, I created a PostGIS 2.0.3 database on a PostgreSQL 9.1 database server using pgAdmin. The "PostGIS" extension was found installed in "Extensions". Al spatial functions were added to the "public" schema. That's fine.  Now I want to store all my data into a new scheme called "gc". However, how can I make all spatial function installed in that "gc" schema? There is no single function in the schema. However, when I tried to import/new a feature class from ESRI ArcCatalog 10.1 to this schema, it worked! The feature class could be imported and displayed in QGIS.  Could anyone give me any tip or idea about it?  I am new to PostgreSQL and PostGIS.


In Star Wars: The Force Awakens, we see Supreme Leader Snoke a few times dispensing orders to his subordinates.      However, we always see him communicating via hologram, and we've seen in previous Star Wars films that these holograms are often projected at a different size than the original person is.   So how tall is he really?  I don't think we ever got a good shot of him with something to give a sense of scale.


Relation between Hermite polynomials and Brownian motion (on martingale property)

Let us define Hermite polynomials as $H_n(x)=(-1)^n e^{x^2/2}\frac{d^n}{dx^n} e^{-x^2/2}.$ One can prove that $e^{\theta x-\frac{1}{2} \theta^2}=\sum_{n=0}^{\infty} \frac{1}{n!}H_n(x)\theta^n \quad (*).$  Now denote $H_n(t,x):=t^{n/2}H_n(x/\sqrt t)$.  We want to prove that $H_n(t,B(t))$ is a martingale. Now, I've thought to use the identity $H_{n+2}(t,x)=xH_{n+1}(t,x)-(n+1)tH_{n}(t,x)$, so $$\mathbb E(H_{n+2}(t,B(t))|\mathcal F_s)=\mathbb E(B(t)H_{n+1}(t,B(t))|\mathcal F_s)-(n+1)t \mathbb E(H_{n}(t,B(t))|\mathcal F_s),$$ but that seems not to be the right way to solve the exercise. So I guess one shall use $(*)$, but I don't know how to do it. Can someone help me?  If it is possible, I'de like to prove it without using the fact that $dH_{n+1}(t,B(t))= H_{n}(t,B(t))$, because the exercise I proposed here is from a sheet that contains also the exercise $e^{\theta x-\frac{1}{2} \theta^2}=\sum_{n=0}^{\infty} \frac{1}{n!}H_n(x)\theta^n$, and I think that I should use that fact, but I'm not sure.


Make a div tag toggle between two css classes

What i want to do is to change the class of the div tag with a toggle button using javascript. So that when i press the button once the div tag gets the show class, and when i press the same button again it gets the hide class. Is this possible?  html:  Show/hide
     I want this div to toggle between the 'show' class and the 'hide' class
   css:  .show {     display: block; }   .hide {     display: none; }   js:  function toggle(){     var hide = document.querySelector(".hide");     var show = document.querySelector(".show");  }  var hidebutton = document.querySelector(".togglebutton"); hidebutton.onclick = toggle   Would document.getElementById("MyId").className = "MyClass"; be usable somehow?


Final theory in Physics: a mathematical existence proof?

Some time ago, I read something like this about the issue of "a final theory" in Physics: "Concerning the physical laws, we have several positions as scientists  There are no fundamental physical laws. At the most elementary level, the Universe/Multiverse is essentially chaotic and anarchical. There are no such laws.  There are a continuous sequence of more and more precise theories, but there is no a final theory. Physics will be always evolving from one approximate theory to another bigger and more accurate. In the end, we will be also able to find a better theory and additional levels of complexity or reality.  There is a final theory explaining everything, and we will find if and only if: i) We are clever enough to find such a theory. ii) We make good and sophisticated enough mathematics. iii) We guess the right axioms/principles/ideas. iv) We interpretate data correctly and test the putative final theory with suitable instruments/experiments. "   Supposing 3) is the right approach... Question: How could we prove the mere mathematical existence of such a theory? Wouldn't it evade the Gödel's incompleteness theorem somehow since, as a Theory of Everything, it would be explain "all" and though it should be mathematically self-consistent? How could a Theory of Everything be a counterexample of Gödel's theorem if it is so, or not? Note: The alledged unification of couplings in supersymmetric theories is a hint of "unification" of forces, but I am not sure if it counts as sufficient condition to the existence of a final theory. Complementary: Is it true that Hawking has changed his view about this question? SUMMARY: 1') Does a final theory of physics exist? The issue of existence should be tied to some of its remarkable properties (likely). 2') How could we prove its existence or disproof it and hence prove that the only path in Physics is an infinite sequence of more and more precise theories or that the Polyverse is random and/or chaotic at the most fundamental level? 3') How 1') and 2') affect to Gödel's theorems? I have always believed, since Physmatics=Physics+Mathematics (E.Zaslow, Clay Institute) is larger than the mere sum that the challenge of the final theory should likely offer so hint about how to "evade" some of the Gödel's theorems. Of course, this last idea is highly controversial and speculative at this point.


Why did it take Thanos 3 years to get to the Space Stone?

Here is the storyline:  Avengers: Age of Ultron         Thanos decides to do it by himself. Captain America: Civil War    Scott Lang is put under house arrest for 3 years. Ant-man and the Wasp            Scott's three years are almost over while the Infinity War is passing.  What was Thanos doing almost 3 years? Maybe it was hard to get the Power Stone? Or maybe he couldn't find the Space Stone?


Calculating current required for powering multiple robots in parallel

I'm looking to power multiple robots off a single 230V mains supply in parallel. I'm using the . I can't find out how many amps it draws anywhere but I know the motors I'm using have a stall current of 760mA so I'd guess around 1A per robot? I will be using 4 robots with this setup The Micro Magician states it has a:  Built in LDO +5V, 1A regulator (input voltage must be at least 5.5V) to power external 5V devices Built in LDO +3.3V, 500mA regulator  Does this mean I can have a power supply grid with any amount of amps and the micro controller will protect the board by limiting the amps? The voltage will be around 6V in this grid once I choose an appropriate transformer. Once I know what amps the power supply grid will need to produce to handle powering the 4 robots I can then choose a transformer? Let me know if any of the above statements are wrong, I'm quite new to this. Thank you! Edit: if anyone is confused about the "power grid" part, I have prototyped this circuit and it works well:


I'm doing a project in the field of multilevel marketing on .Net and SQL server.  In the database it should save like a binary tree. How should i design a database?


I am Using menu token module to access pages related particular user, I am getting issue while selecting path in token menu using replacement patterns. can any one explains on what basis it will take the link and direct to the page. i tried to use [node:content-type:name], As there are so many content types created in my site, so how it will take the specific content type which is related with the node.  kindly suggest me if there are alternatives for this.. i am fed up by trying this whole day.


I have a list:  var lt = {   "part1" : "p1",   "part2" : "p2",   . (another key/value)   . (another key/value)   . (another key/value)   . (another key/value) }   and a variable  var myVar = "part2";   I want if myVar equal to the lt I want the variable z take the value p2 of lt. I have this:  for (var i = 0; i < lt.length; i++) {     if (myVar === lt[i]) {       z = lt.[i]     } }   However when I test it chrome console the var lt return undifined


How to backup the software-packages downloaded by Synaptic Package Manger?

I am using Ubuntu 14.04.5 LTS & I am not always connected to the internet for downloading software-packages. Suppose, for instance, I downloaded packages like VLC, Banshee etc, using synaptic package manager, and after a month or so I have to format the system.   So here are my queries :-    How to backup these 2 softwares EARLIER so I won't have to go through the pain of downloading them again? Does synaptic uses dpkg or apt-get by default? If it uses dpkg, how to change it to apt-get? Is it recommend to change it to apt-get or dpkg is good? Is there a way to ensure that after fresh installation of the Ubuntu, Synaptic only downloads the Repositories and not the Updates?   EDIT :- I KNOW THAT .deb files downloaded by Synaptic are kept at  /var/cache/apt/archives/   But you can't just randomly put any deb files there and than sew it in synaptic for installation. I've tried it.  Eg. If I have a package and all its dependencies as .deb and to install them I keep them at /var/cache/apt/archives/ and then open synaptic. But you see that software won't be visible in synaptic for installation. (won't be in search list)  I want to install backed up packages from synaptic not with  sudo dpkg -i *.deb


Can you please explain how to take md5 of a file using php


There seems to be a problem with making a clickable archive.org URL. For example:     See the .   I am using Chrome. I suspect something about the * in the URL, perhaps because it gets encoded as %2a, causes the URL request to be sent to the current site (meta.stackoverflow.com) which doesn't make sense.


Let $f: \mathbb N \rightarrow \mathbb N$ are increasing function such that $f\left(f(n)\right)=3n$. Find $f(2017)$

Let $f: \mathbb N \rightarrow \mathbb N$ are increasing function such that    $$f\left(f(n)\right)=3n$$   for any positive integer $n$.      Find $f(2017)$   My work so far:  1) If $m\not=n$ then $f(m)\not= f(n)$  2) $f(3n)=3f(n)$


How to programmatically restart windows explorer process

I'm working on a windows shell extension, and unfortunately, when making changes to the DLL, I must restart windows explorer (since it keeps the DLL in memory).  I found this program from Dino Esposito, but it doesn't work for me.  void SHShellRestart(void) {     HWND hwnd;     hwnd = FindWindow("Progman", NULL );     PostMessage(hwnd, WM_QUIT, 0, 0 );     ShellExecute(NULL, NULL, "explorer.exe", NULL, NULL, SW_SHOW );     return; }   Does any one have something they can share to do this?  P.S. I realize that I can go to task manager and kill the explorer process, but I just want to do it the lazy way.  Besides, this enables automation.  P.P.S I am using .NET for the development, but the shell restart functionality could be in C, C++ or a .NET language.  It will simply be a small stand-alone executable.


Why light cannot pass through wall whereas Sound can?

I have read answers stating that light is not able to be transmitted through a wall whereas sound is easily transmitted due to difference in wavelength. But, why? I am looking for detailed and satisfactory answer. Please also include the reason of WIFI signals easily transmitting through any media as compared to sound.


Shortest Path and Minimum Curvature Path - implementation

Let's say we are given a race track, which may be described as a closed curve of given width (it may differ along the curve). My task is to implement an algorithm which finds two kinds of trajectories for the car. The first one is the shortest path, i.e. such closed curve contained in the race track that enables the car to drive the shortest distance per lap, the speed is irrelevant. The second one is minimum curvature path where the car can achieve higher speeds in the corners, the length is irrelevant.  The following picture shows the two kinds of paths for an example race track:   I found a paper () that describes the two problems in such way that they can be presented as quadratic programming problems. The problem is that I don't have sufficient knowledge to convert the input data to the appropriate matrices, needed in the quadratic equation. I can only understand the transformations up to some moment.  Here are the descriptions of the algorithms, found in the mentioned paper:   Could someone please help me and explain the transformations done in the equation (6) and (7) for the SP problem and virtually all equations for the MCP problem? The format of representation of all the coordinates, depicted in Fig. 2 in the document, is perfectly clear for me. I realize that some equations are just the intermediate steps to achieve the goal, so maybe there's an easy, algorithmic way to explain a newbie like me how I should transform the given coordinates to get the matrices for the quadratic programming solver.


How to create object from another without undefined properties

Is there a better way to accomplish this in Javascript?  const data: any = {}; if (values.email) data.email = values.email; if (values.password) data.password = values.password; if (values.username) data.username = values.username;   I don't want the data object to have the properties for the undefined or falsy values.


Let $p\in \mathbb{Q}$ such that $p^2<2$. Find $\varepsilon>0$ such that $p+\varepsilon\in \mathbb{Q}$ and $(p+\varepsilon)^2<2$.  I need the explicit form of $\varepsilon$. Can anyone show how to find $\varepsilon$?


Alias "Post Link" in data.stackexchange.com generate invalid links for "Meta sites" of pt.stackoverflow and es.stackoverflow

I create a query using [Post Link] and [Comment Link] and I noticed that the generated links are inverted for some sites, for example: This  (query to pt.stackoverflow meta) generate links like this: https://meta.pt.stackoverflow.com/q/1  But the correct one is: https://pt.meta.stackoverflow.com/q/1  Ths  (query to es.stackoverflow meta) generate links like this: https://meta.es.stackoverflow.com/q/146  But the correct one is: https://es.meta.stackoverflow.com/q/146  others like Web Apps Meta and Game Dev Meta and Russian Stack Overflow are generating correctly:      including the bug that occurred in Arqade Meta (mentioned in ) has already been fixed, then it is a problem that only occurs in some cases, test arqade meta:


Validate whole XML to a predefined structure

I have an XML string from a web service, that might be lacking some child nodes.   Before parsing the XML, i want to check if all the nodes are there and correct.  Example:  <fields>     <field RandomAttribute="True">  //these attributes should not make a difference        <name>Test1</name>        <type>Text</type>        <id>123</id>     </field>     <field>        <name>Test2</name> //THIS field node lacks the "type" child node        <id>114</id>     </field> </fields>   What is the best way, to take the whole XML, and check whether all the nodes comply to a predefined xml schema/structure?  Notice that I added a RandomAttribute to the first FIELD node, which shouldn't have any effect on the functionality.


I am planning to do a thesis in the Elasticsearch(a search engine based on the Lucene library) parameter optimization using some machine learning or optimization algorithm(automate the optimization of Elasticsearch parameters/settings based on current data/conditions). Which Machine learning or optimization algorithm do you suggest for it?


Hello I am writing code in javascript to find out if 4 digits number is palindrome or not. First I check if the number has for digits and if it does I find every digit using / and % and then check if the first digit matches the last and the second digit matches the third digit. The thing is the result is always number not palindrom.Can someone help me out?    var numri = window.prompt("Vendosni numrin"); numri = parseInt(numri); while (numri > 9999 || numri < 1000) {   alert("Number not 4 digits");   var numri = window.prompt("Vendosni numrin");   numri = parseInt(numri); } var shifra4 = numri % 10; numri = numri / 10; var shifra3 = numri % 10; numri = numri / 10; var shifra2 = numri % 10; var shifra1 = numri / 10;  if (shifra4 == shifra1 && shifra2 == shifra3)   alert("Number palindrome"); else   alert("Number not palindrome");


Using String name = input.next(); then making an If statement

I was wondering how I can fix this:  import java.util.*; public class HelloWorld {   public static void main(String[] args) {      Scanner input = new Scanner(System.in);      System.out.println("What is your name?");     String name = input.next();     if (name == Donald)         System.out.println("Welcome back Admin");     else         System.out.println("Go Away");     } }   I want to make it so that if the user inputs a specific name, then it will say something specific, anything else and it says go away. I am a new student of Java and was messing around to see if this is possible


I came to Berlin on December 27 and stayed until now.  My 90 days are almost over but last week I went to Croatia (which is not part of Schengen) for one night and came back to Berlin. My friends have told me that once I'm out of Schengen area I can restart my 90 days again.   Can I stay in Schengen area for another 90 days after leaving it for one day or do I have to leave it for 3 months to restart the 90 days period?


How to enter credit card "statement credits" (e.g. cash back) in double entry accounting?

A credit card statement credit is a reduction in liability, so I would think it's "income" of a sort.  But, I could also see it as a reduction in expense; for example, buying a plane ticket using a credit card with 3% "cash back" (that gets applied as a statement credit) is sort of like a rebate or a delayed discount to that same expense.  Is there any general consensus or "best practice" for how to account for such things?  I could enter it as a negative expense, or as a special kind of income.  But if it's as a negative expense, it raises another question, which is: what kind of expense should it be entered as (i.e. which expense account)?  (The example with a plane flight and one big lump sum is clear enough as a negative expense, but how about 1% back on all purchases gradually adding up and finally resulting in one big statement credit?)  If it's entered as income, won't this falsely alter my income/expenses reports from a tax perspective?  (Since it's not really income.  Or is it, legally?)    I'm new to double-entry accounting and this question is general rather than specific to a single tool, but I'm starting to use GnuCash so answers geared toward how to implement the solution in GnuCash are especially welcome.


Let $z$ , $w$ $ \ \in \mathbb{C}$ with $|z|$ , $|w| < 1$. Then prove that $|\frac{z-w}{1-z\bar{w}}| < 1$.  What I have noticed : $|z-w| = |w||\frac{z\bar{w}}{|w|} -1| $ but I don't know how to proceed.


How many faculty positions should one apply to?

Since the start of the hiring season, I've seen around 20-30 job openings that looked interesting for assistant professor positions in my area of computer science.  However, it's somewhat awkward to ask my recommendation letter writers to send letters to 20 different places. (Is it not?) How many places do people usually target simultaneously?


Find all eigenvalues of the n-order square matrix $A$ in complex number whose all entries equal 1

I have tried to start with mathematical induction, but it does not seem to work. Could you please help me? Thank you in advance.


I see the differential operator both with upright and italic d in different books/articles. So I'm curious about $$ \int x^2 \, dx \quad \text{vs.} \quad \int x^2\, \mathrm{d}x,$$ and $$\frac{d}{dx}f(x) \quad \text{vs.} \quad \frac{\mathrm{d}}{\mathrm{d}x}f(x).$$  Is there a convention which of these notations should be used?


Set a timeout time for a specific function

I'm programming a function that requests the user for input, and I would like the function to automatically terminate if the user takes too long to enter the input. For example, a simplified version of my code is of the following: user_input = input('Please enter "yes" or "no" below: ')  if user_input.lower() == 'yes':      # executes some code elif user_input.lower() == 'no':      # executes some code else:      # executes some code  Right now the program will wait for the user to input the result before executing anything else and as stated above, I would like the program to automatically stop running if the user takes too long to input the answer. I'd appreciate any help!


What gave Isildur the power to successfully curse the Men of Dunharrow?

The swarms of dead men fighting for the good side always seemed wrong to me. I know they did it to be released from their plight, but.... It's one thing to curse somebody, it's quite another to back it up. How did Isildur back up his curse on the oath breaking men of Dunharrow?


For example  was  as a duplicate. The OP, in his infinite wisdom, edited out the duplicate link!  And then someone flagged it for moderator attention, and a moderator rolled it back and locked it with a warning to the OP. This is the way in which such things are handled... --Shog9  Why is this allowed? This should be prevented, or the duplicate question link should be present in the close reason. Now if any future users (who are not used to the Stack Exchange) come, they will see that the question is closed due to it being a duplicate but they will not know what the duplicate link is. I propose that we put a non-editable header at the top of duplicate questions that the OP cannot remove, unless the question is reopened.  Related:


C++ Virtual Function Overriding and Overloading

I have the following class structure:  class X {     // ... };  class Y : public X {     // ... };  class IA { public:      virtual void Foo(X* x) = 0; };  class A : public IA { public:      void Foo(Y* y)     {         Foo(static_cast<X*>(y));     } };  class B : public A { public:      virtual void Foo(X* x) override     {         // ...     } };   However, this code generates compiler errors:  error C2664: 'void A::Foo(Y *)': cannot convert argument 1 from 'X *' to 'Y *'   The way to fix it is to replace A::Foo(Y*) with this:  void Foo(Y* y) {     static_cast<IA*>(this)->Foo(static_cast<X*>(y)); }   I have trouble understanding why this cast is necessary, and would appreciate some insight. I'm not quite sure if this is guaranteed to be a safe cast either.  To my understanding during overload resolution, the compiler should select the function that requires the least amount of implicit casting for the parameters. But that doesn't seem to be the case here.


Tried searching online why it does this. I tried changing the redix of the parseInt method but it doesn't seem to change anything as well.    var sum = [6, 1, 4, 5, 3, 9, 0, 1, 9, 5, 1, 8, 6, 7, 0, 5, 5, 4, 3]  // digits.length returns 19 var wholeNumber = sum.join("") var makeNum = parseInt(wholeNumber) console.log(wholeNumber) // returns string: 6145390195186705543 console.log(makeNum); // returns int: 6145390195186705000     Can anyone explain why makeNum does not return me the integer of wholeNumber but rather replaces the last 3 digits at the back with zeroes. I t


I have installed VMware on Ubuntu 13.10 but when i launch it then a message said that i  have to specify the path for the linux-headers-3.11.0-19-generic. Now i'm not expert on linux, i give the command "uname -a" here the result:  Linux MarioP 3.11.0-19-generic #33-Ubuntu   My knowledge of linux kernel stops here. Can you help me?


How would you write a fraction in binary numbers; for example, $1/4$, which is $.25$? I know how to write binary of whole numbers such as 6, being $110$, but how would one write fractions?


The Riemann zeta function $\zeta(s)$ has no zeros for $\Re(s)>1$

I write $\zeta(s)$ for $\Re(s)>1$ as:     $\zeta(s) = \prod_{p} (1-p^{-s})^{-1}$   Using this I can show that the Riemann zeta function has no zero for $\Re(s)>1$. I'm however not sure about the next step. I would like to use the zero product property, but I know it doesn't necessary hold for infinite products. How do I handle this situation?


What is the best mission in gta online to get the most rp and cash after patch 1.11?

I want to rank up and get money quick without or with cheats any ideas? I'm rank 55.


Indefinite integral of $ \int \frac{x^3}{\sqrt{x^2+1}} \,\text{d}x$.

Can you please provide any sort of hint or suggestion on how to find the following indefinite integral?  $$\int\frac{x^3}{\sqrt{x^2+1}}\text{d}x$$  I tried substituting everything but it didn't work. I also tried trigonometric substitution but I couldn't find any valid trigonometric identity for $ \sqrt{\cos^2(x)+1} $ or $ \sqrt{\sin^2(x)+1} $.


I recently added another RAM module and while it is supported by my motherboard I'm not quite sure if it's of the same type as the one my notebook shipped with. How can I tell what RAM modules are used in my pc?


I've updated my Ubuntu to 19.10 couple of weeks ago and on installation system suggests to change or add shortcut for input source selection despite one was already defined previously. I've added ctrl+shift shortcut and just realized that it somehow overlapped any other ctrl+shift+something shortcuts globally, i.e. when I want to open new window in vscode, it opens new tab and it looks like system doesn't see the shift button press.   I tried to search this combination in shortcuts settings, but it's just not there.


In Gauss Law for Electrostatics, Electric flux term contains Electric field due to charges that are both inside and outside the Gaussian surface. If we use Gauss Law to calculate electric field at a point near the infinite line of charge we make Gaussian cylinder (as Gaussian surface) coaxial with the line of charge in such a way that point is on the cylindrical surface. Now if we place another infinite line of charge outside our Gaussian surface. Will the electric field computed by using our previous Gaussian cylinder gives resultant electric field as Gauss's law contains electric field due to both the charges that are inside and outside the Gaussian Cylinder. Kindly Explain it I am very much confused...


Is there a contradiction between isotropy and the Big Bang?

Disclaimer: I'm not asking whether the Big Bang happened at a point. I'm asking whether the fact that the universe is isotropic and that the Big Bang happened contradict each other.  To be honest I am just starting to learn General Relativity and cosmology but I feel like this question has a profound basis. If we assume that the universe "started" by the Big Bang (which I naively imagine as just the expansion of a sphere) then surely it must have started out from a certain point, which is still in our sphere universe. However we also know that the universe is isotropic, that there are no "special" points. How can these two facts coexist since if the Big Bang really did happen then there must be a characteristic point in our universe, a special point, which contradicts the principle of isotropy. So what am I missing, if I'm missing anything?


Animations won't transfer states until entire animation is completed

I am following the  and am using Unity 5.  I just completed this video (linked) and I tested played it to see my animations worked but it seems like it will only transition from idle to walking after the entirety of the idle animation completes. The idle animation is quite long so my character will move around when it looks like its idling since the movement responds right away.  Did I mess up something in my transitions? I followed the directions exactly and didn't change anything in the inspector that I wasn't told to do.


How to get table names using sqlite3 through python?

I have a problem to get data from the sqlite3 database. I can't find out the names of tables and their encoding. When I open DB through sqlitebrowser names were just unreadable characters. Connection to DB is fine.  conn = sqlite3.connect('my.db') conn_cursor = conn.cursor() conn.text_factory = str   But how can I get the names of tables and their encoding?


If T(N) = T(sqrt(N)) + 1 and T(1) = 1  then what is the upper bound i.e O(N) for this function?  sqrt(N) => square root of N


Launch Application on different workspace without changing workspace

I want to launch application on another workspace without changing current workspace.  For example I am on Workspace 1 and want to launch Chromium on my second Workspace.  Currently I am using the command below :  chromium-browser & wmctrl -r chromium-browser -t 2   or   wmctrl -s 2 chromium-browser   but I want to launch chromium on the second workspace while I am on the first workspace.  When I switch to the second workspace, I expect Chromium to be launched.


Comparing JTextField value to multiple arrays

I started learning Java recently so I decided to make a simple sign up/log in form.  private JTextField username; private JPasswordField password; private JButton check; private JButton addToDb; ArrayList<String> dbUser = new ArrayList<String>(); ArrayList<String> dbPassword = new ArrayList<String>();  public trial(){     super("Title");     setLayout(new FlowLayout());      username = new JTextField("",10);     password = new JPasswordField("",10);     check = new JButton("Login");     addToDb = new JButton("Sign Up");     add(username);     add(password);     add(check);     add(addToDb);      addToDb.addActionListener(             new ActionListener(){                 public void actionPerformed(ActionEvent event){                     if(!username.getText().isEmpty()                         && !password.getText().isEmpty()){                          dbUser.add(username.getText());                         dbPassword.add(password.getText());                         username.setText("");                         password.setText("");                         System.out.println(dbUser + "/" + dbPassword);                      }else{                          System.out.println("Please fill the fields and try again!");                     }                 }             }                    );      check.addActionListener(             new ActionListener(){                 public void actionPerformed(ActionEvent event){                      for(int i=0; i<dbUser.size();i++){                          if(username.getText() == dbUser.get(i) && password.getText()== dbPassword.get(i)){                             JOptionPane.showMessageDialog(null, "Access Granted!");                         }else{                             JOptionPane.showMessageDialog(null, "Access Denied!");                         }                                            break;                                               }                 }             }     );                         } }   As you can see, I've made two text fields (username and password), two buttons, one that stores the values in two different arraylists (I tried with a HashMap but that didn't work either). And one that compares the values in the arrays to the values in the text fields. The problem is that when I use the login button, it always says access denied. Any ideas how to fix this?


How about a "Irritable" badge for someone who downvotes often?

EDIT : How about a forced comment   dialog...which forces the user's to   comment when they downvote otherwise   they can't....right now it just shows   a popup to suggest posting a   comment...maybe this is little too   strict...but i just find it annoying   when ppl downvote and leave no   comments....   How about having a badge "Irritable" for a user who downvotes over 20 times in a month and then have maybe further "Furious" for over 50 downvotes in a month....just a fun suggestion...since i see people downvote like crazy at times...there should also be a way to downvote a comment i think in addition...


Testing a string containing only spaces (tabs, or " ")?

My code below doesn't work:  stringZ="    "  if [[ "$stringZ" == ^[[:blank:]][[:blank:]]*$ ]];then   echo  string is  blank else   echo string is not blank fi    Result:  string is not blank   # wrong   How can I test this?


What files to exclude from git repository for an ios project?

I am working on an ios project and I want to add the project to my gitlab account. I'm using command line for managing git, not XCode.  I wonder what are the files I should exclude from my repository.  My candidates for exclusion are from the xcodeproj package only:    The xcuserdata folder but I see it includes scheme information so I'm not completely convinced. The project.xcworkspace package   Is this correct? Is there anything I'm missing?  Thanks.  The question identified as a possible duplicate asks specifically "in conjunction with Xcode". I am using command line. They're may be no difference but that was part of the question. Besides the answers to that questions are dated and this question may have different answers overtime, at least that is my understanding.


monitor files (à la tail -f) in an entire directory (even new ones)

I normally  watch many logs in a directory doing tail -f directory/*. The problem is that a new log is created after that, it will not show in the screen (because * was expanded already).  Is there a way to monitor every file in a directory, even those that are created after the process has started?


How can you turn on or off the cheats after you make an offline server?My brother did something in settings but I can't find it.


Under what circumstances can you compare the $ R^2 $ value of two models?

When you different models that are trying to establish the relationship between the same variables -- but these models have different structural forms, when can you compare the $R^2 $ of these models?  For example, of the three models here:   Regressing $ Y $ on $ X $ Regressing $ Y $ on $ \ln(x) $ Regressing $ \ln Y $ on $ \ln(x) $ Regressing  $ \ln(Y) $ on $ X $   which models would be comparable?   Should I write out: $$ R^2 = \frac { \Sigma \hat{y_i}^2 }{\Sigma y_i^2} $$ and then see if the numerator and denominator have the same general structure? (For example, if the denominator of one model is in logs and the other in raw form, then the model with the raw form variables will have a higher "Total Sum of Squares", and thus lesser $ R^2 $  (I do not necessarily need direct answers on these; but a general direction will greatly help).


Filter [review Close Votes] to the tags I marked interesting

The number of open close votes just reached over 100k and I've never seen it go down before. I tried a number of those, but a lot are about subjects I don't understand (for me that would eg be python, or .net). I cant rate those properly because most of the time I cant really understand what it is about.  My idea would be to make with the same principle as Stack Overflow has with the [Questions]  tab, the subjects with preferred tags get displayed. Those same tags could be used for close-reviewing, because I would actually be able to review them which makes it a lot more interesting than keep clicking skip.  Any thoughts about his?  (ps, first post on meta, not sure whether I did this correct)  edit: This account only has 1 point at the moment, my Stack Overflow account is more active.    Edit after a comment: I've just noticed the filter. While this does about the same as I was thinking about, this is a passive method. My suggestion would be automatically filter on preferred tags


I posted something online and someone said it was wrong so...  I said : I just changed my phone number. That person said that i should have said : I have just changed my phone number.  Which one was the correct version?


Solving differential equations of the form $f'(x)=f(x+1)$

How to solve differential equations of the following form:   $\frac{df}{dx} = f(x+1)$


Hey guys I was reading Alfred van der Poortens paper regarding Apery's constant and I came across this pretty equality. For all $a_1, a_2, \ldots$  \begin{align} \large\sum_{k=1}^{\infty}\frac{a_1a_2\cdots a_{k-1}}{(x+a_1)\cdots (x+a_k)} = \frac 1x \end{align}  I tried fiddling around with the the summands by trying to use a partial fraction decomposition but it just got messy.  link to paper:


Assume $n>2$, $n\in\mathbb{Z}$, and $a_2,a_3,...a_n\in\mathbb{R}^+$ such that $a_2a_3\cdots a_n=1$. Prove:   $$(1+a_2)^2(1+a_3)^3...(1+a_n)^n>n^n.$$   My attempt:  I have used AM-GM for inquality so the condition follows that  $$\frac{2^{n^2-2}}{a_2^{n-1}a_3^{n-2}...a_{n-1}^2a_n}>n^n,$$  but I do not know how to continue to a solution.  Please share your ideas in comments. Thanks!


Meaning of the phrase 'in three months' time'

What does the bold phrase below mean? Why do they use the possessive? Why do they use the noun time?     Yes, but he's getting married in three months' time.    I have understood this sentence     Yes, but he's getting married in three months.


Is it okay to delete the comma after '1969' below ?  Joe said, "February 7, 1969[,]is my date of birth."   And can we delete the comma after 'Indiana' and '2015' below?  Lisa reported, "The Gary, Indiana[,] man was arrested on charges of conspiracy."  Johnson said, "The February 1, 2015[,] meeting has been canceled."  After all, '1969', 'Indiana' and '2015' are all essential information and are not parenthetical elements; hence those commas should be removed, right?  Thank you.


Valid justification for algebraic manipulation of $\mathrm{d}y/\mathrm{d}x$?

I've read many question/answer threads here on SE re: justification for the algebraic manipulation of $\mathrm{d}y/\mathrm{d}x$ in the standard formulation of calculus. I worked up my own shot at a justification using the definition of the derivative and would like to get the input of others whether it holds. It doesn't involve pushforward maps, non-standard analysis (two things I don't yet know), or any other tool than simple limit algebra/laws, the definition of the derivative, and (implicitly), the chain rule that makes the substitution possible. If it does hold as a justification as far as it goes, i.e., in one-dimension, it would seem to me, at least, to be a simple and clear justification in the form of an example that could be useful to other beginners. If goes wrong somewhere please let me know for my own understanding.   Integrate $\int \frac{x}{1+x^2}\mathrm{d}x$.  We'll do this by substitution. We want to restate the original problem in terms of $u$. That means that we want to state $x$, $1+x^2$, and $\mathrm{d}x$ in terms of $u$. Let $u=1+x^2 \rightarrow \frac{\mathrm{d}u}{\mathrm{d}x}=2x \rightarrow \mathrm{d}x=\frac{\mathrm{d}u}{2x}$. Let's justify that last step as that's where the justification (that I speak of) is required:  By definition, $\frac{\mathrm{d}u}{\mathrm{d}x}=2x$ is defined as $$ \lim_{\Delta x \to 0}\left( \frac{u(x+\Delta x)-u(x)}{\Delta x} \right)=2x $$ Recall that the limit of a quotient is equal to the quotient of the limits as long as the denominator is not equal to zero, thus the foregoing becomes $$ \frac{\lim_{\Delta x \to 0}\left( u(x+\Delta x)-u(x) \right)}{\lim_{\Delta x \to 0} \Delta x } =2x $$ Multiplying both sides by $\lim_{\Delta x \to 0}\Delta x$ and then dividing both sides by $2x$ yields $$ \frac{\lim_{\Delta x \to 0}\left( u(x+\Delta x)-u(x) \right)}{2x} =\lim_{\Delta x \to 0} \Delta x $$ which, in the limit, is equal to $$ \frac{\mathrm{d}u}{2x}=\mathrm{d}x $$ Rearranging we have $$ dx=\frac{\mathrm{d}u}{2x} $$ as desired.


I right click and into properties I allow the permision to run as a programe. But still cannot run it. It is still opening in text document file


I'm wondering how you'd implement the following use-case in REST. Is it even possible to do without compromising the conceptual model?  Read or update multiple resources within the scope of a single transaction. For example, transfer $100 from Bob's bank account into John's account.  As far as I can tell, the only way to implement this is by cheating. You could POST to the resource associated with either John or Bob and carry out the entire operation using a single transaction. As far as I'm concerned this breaks the REST architecture because you're essentially tunneling an RPC call through POST instead of really operating on individual resources.


Transit stay 6 hours in al jazeera terminals

i have transit 6 hours in aljazeera terminals kuwait with 1 year old kid.How can reach any aiport lounge (Sheikh Saad Terminal) or (terminal M)


I wanted to install a package to monitor the temperature of my CPU called .  According to Synaptic, it's already installed.    Can someone give me some simple step-by-step instructions on how I can actually run it from the command line or otherwise?


I can separate single faces in the UV editing mode. I disabled sync selection and sticky vertex selection. But when I select two faces in a group of joined faces, I can't separate them by pressing Y. I have blender 2.74.  How can I split a group of joined faces in the UV mode?


Login failed for user - Error: 18456, Severity: 14, State: 38

I am trying to run and ADODB command in MS Access 2012 to exec a stored proc in our SQL server 2008R2 database, but I keep getting error 38 and SQL profiler shows the following:     Error: 18456, Severity: 14, State: 38.   2015-01-28 12:59:27.34 Logon   Login failed for user 'NordenDevel'. Reason: Failed to open the explicitly specified database. [CLIENT: 82.71.5.169]   This user (NordenDevel) login works on this database (NordenWeb) in SQL Server Management Studio and in Visual Studio, so the database is working fine and I do not see how it could be a permission issue.  Can anyone suggest what I could do to find out what's wrong?  Many thanks, YAOWSC


ResourceDictionary in a separate assembly

I have resource dictionary files (MenuTemplate.xaml, ButtonTemplate.xaml, etc) that I want to use in multiple separate applications. I could add them to the applications' assemblies, but it's better if I compile these resources in one single assembly and have my applications reference it, right?   After the resource assembly is built, how can I reference it in the App.xaml of my applications? Currently I use ResourceDictionary.MergedDictionaries to merge the individual dictionary files. If I have them in an assembly, how can I reference them in xaml?


I wanted to connect to an FTP Server using Finder's Go > Connect to Server option. So I try to do so like this:    But, when I try to do so, it opens in VLC and then VLC crashes.     Anyone facing a similar problem? What can I do to open it in Finder itself? Do I need to change some defaults? If so, where?


Creating a Dice Roller in Java. Help me understand why this works?

I stopped programming a few years ago because I didn't think I would get to graduate. Surprise, now I am, and I have to brush up on rusty novice skills. I decided to start with a dice rolling program written in Java. The first version of this program is just supposed to spit out a random number between 1 and 10. As I go I plan to expand it with a GUI that allows the user to select the number and type of dice to roll.   The first version of this program works. My problem is that I don't know why it works. I was first going to use java.util.random and use random.nextInt() but the range was enormous and I couldn't figure out how to limit it to a specific range.  I searched online and found something that worked. Here's what I have.  class DiceRoller {      public static void main(String[] arguments){          int min = 1;         int max;         int result;          result = rollDice(10, min);          System.out.println(result);     }      public static int rollDice(int maximum, int minimum){         return ((int) (Math.random()*(maximum - minimum))) + minimum;     } }   The specific part that I found to make this work is:      public static int rollDice(int maximum, int minimum){         return ((int) (Math.random()*(maximum - minimum))) + minimum;     }   But I don't understand why it works. Is it something with random() within the Math class itself that differs from Random in java.util? Why is it necessary to take the random number and multiply it by the difference of the maximum and minimum, then add that result to the minimum? To be honest I feel stupid for asking but I want to understand why this works rather than just take the code and use it because it does.  Edit: I know.. I know.. I should've just read the class documentation. Thanks for humoring me and answering anyway. I appreciate the replies, and thank you Aaron for the explanation.


How can I set two passwords for one account?

It would be great if I have two passwords to my account, so that if I forget one, I can still login without much trouble.  Is it possible to do this?  By "two passwords" I mean two login passwords...


I am trying to understand the quantile regression, but one thing that makes me suffer is the choice of the loss function.    $\rho_\tau(u) = u(\tau-1_{\{u<0\}})$  I know that the minimum of the expectation of $\rho_\tau(y-u)$ is equal to the $\tau\%$-quantile, but what is the intuitive reason to start off with this function? I don't see the relation between minimizing this function and the quantile. Can somebody explain it to me?


Help me separate each student into separate rows without inputting the parent data each time

I am collected data about parents and students.  I need there to be a separate row for each student without entering the family data each time.  I have always used the "pre-filled link" option to do this but need a less tedious way and want to use a formula to do this on my response sheet.  I have found some resources online but I can not get any of the examples to work for me.  Here is a copy of the response.  I would like each row to include data from A-L (header data?) and make a new row for each student M-T, U-AB, AC-AJ, AK-AR.  This is an example but the actual sheet will have more columns. This has 2 tabs, how I my responses are coming out and the second tab is how I want it to look. Any help is greatly appreciated.


How to play with friends in my single player worlds?

My sis and I really want to play together in Minecraft but she always gets lost in public ones plus I get lag. I really want to play with her. How can it just be us and no one else?


Is there a difference between base vectors and projection method of calculating coordinates?

I'm trying to grasp the idea of co- and contra-variance. During my study I meet something like that: Let's say we have a vector $\vec{v}$ and want to calculate its coordinates in base $\hat{b}$. I've heard there are two ways of doing it: one where we try to find how much we must enlarge/shorten base vectors, so when then we add them the result is our original vector $\vec{v}$. The other one is where we project the original vector onto base vectors and note the length of such projections. One of those method is covariant and the other contravariant (I don't remember which one), and the explanation is they give not only different values of coordinates, but also these coordinates behave differently when our original vector changes. In my opinion both of those methods should give the same results: in both of them we are calculating elements of a sum which gives the original vector, so by simple thinking the length of them should be the same. Am I wrong?


How do I troubleshoot problems with my wireless connection?

Let's say I have a problem with my wireless connection. What commands should I run to share their output with a tech-savvy friend or an online support community?  For example:   How can I tell if my wireless card is recognised? How can I get information on which wireless networks are within range? How can I tell if I am connected to a wireless, but not the Internet?     I'm asking this question because I'm seeing many questions about problems with wireless connections, without many details, like . It would be useful if I could point to this question so that the asker can improve their question with more information. I'm hoping for a comprehensive answer with all the details, or with links to other generic questions for brevity.


Is it impolite to repost someone's original question elsewhere?

I saw a question asked that interests me on one of the Stack Exchange sites. However, I would like a different perspective than that of the site it was posted on.  Is it considered impolite to repost on a separate SE site?


I am using a struct List with 2 variables. I am trying to set the value of a variable in a loop but I get the error:  Cannot modify the return value of 'List<>.this[int]' because it is not a variable  Why am I seeing this error? [Serializable] public struct SetData {      public float Time;      public float Value; }  public List<SetData> setData;  void Start () {     for (int i = 0; i < setData.Count; i++)     {        setData[i].Time= ((float) DateTime.Now.Hour + ((float) DateTime.Now.Minute * 0.01f));     } }


Description:  I noticed some strange behavior when you have a really slow internet connection and you click the "flag" button on questions and answers more than once.  At first, a single "loading" throbber appears next to the "flag" button. But if the internet is slow, and you click the "flag" button again and again, you get this:    Whoops! We only need one, right?  This works both in and out of the review queues when flagging questions and answers.  Steps to Reproduce:   Find somewhere with a really slow internet connection (or bandwidth-limit your computer). Go to any question or answer. Click the "flag" button. Repeat Step 3.     Solution:  I think that the "flag" button should be greyed out once it is pressed, just like the "Save Edits" or "Post Answer" buttons. This way, users will not want to click on it again.  Also, of course, I think only one throbber should be created for the "flag" button if it is clicked.


how do I make my profile's folders and files private from other profiles on the same PC running Ubuntu 14.10?

I was looking for a file in the file manager when I noticed that I can access and view any folders and files in the other profiles from a standard account. So I'm wanting to know if I can make each profile private like they are in XP?


When in game does gaining a level happen?

We are fairly new to D&D and we are not really sure about how to handle one thing as provided by the rules. It's about the point in time when you level up in-game. The rules tell us this:  As your character goes on adventures and overcomes challenges, he or she gains experience, represented by experience points. A character who reaches a specified experience point total advances in capability. This advancement is called gaining a level. When your character gains a level, his or her class often grants additional features, as detailed in the class description. Some of these features allow you to increase your ability scores, either increasing two scores by 1 each or increasing one score by 2. You can't increase an ability score above 20. In addition, every character's proficiency bonus increases at certain levels.  We understand that if you gain a specific amount of XP you advance to an higher level, but we want to know how this is expressed in game how according to the rules. Does it really happen instantaneously? We heard from other players that in earlier editions this did happen after a long rest, but we just cannot find any clue about it in the 5e rules. We could make a homebrew rule for that but mainly we just want to know if we are just too blind to find it. 😅


Sql server 2016 Change only server and without all databases

How can i change server collation without changing whole databases, because i have  many databases which aren't belong to me, so i want change server collation and my database only.   SQL Server version:  2016 SQL Server Collation:  Arabic_CI_AI  in the server i have many databases, some of these databases i work on them and others are not belong to me and should not be touched.  I want to change the collation: Arabic_100_CI_AI  When i use this script:   sqlservr -m -T4022 -T3659 -s"MSSQLSERVER" -q"Arabic_CI_AI"   it change the server collation along with all databases in the server, but i don't want this i need to do change only the collation of the server only.  Is that possible?


Tricking someone into being the willing target of a spell

Some spells, I believe, require a willing target. Others only allow a save if the target is unwilling. I am wondering if you can tell a target that you are going to cast one spell and then actually cast a different one.  Can you trick a target creature into being willing to be a target by lying about what spell you are going to cast? Can the target tell the exact nature of an incoming spell for willing/unwillingness/save purposes?


Turn off Windows 10 Task View sliding animation

I actually use the new task view tool provided in Windows 10 and I was wondering if there is a way to disable the sliding animation between different desktops. I find this kind of annoying and it seems to take a second each time for the animation to play. It would be great if there was a way to disable this so each time I switch to a desktop, it switches instantly instead of playing the animation.


A brilliant protagonist recruited into a secret war, learns artificial language

Read or listened to this story a few years ago, I think by Robert A. Heinlein.  The protagonist was a highly intellectual analytical genius who was approached by a secret "good guys" organization which was involved in a stereotypical Light vs Dark shadow war.  After some induction processes,  he was taught a highly specialized artificial language which had been constructed for the purpose of extremely accelerated logical/deductive thinking/processing as well as interpersonal communication.  Later in the course of the war it became necessary for him to sacrifice himself for the greater purpose in some type of battle.  I believe it was set in our solar system, but spanned a couple different planets.  That's about all can recall.  Thanks!


Is the normal force a conservative force?

Most of the time the normal force doesn't do any work because it's perpendicular to the direction of motion but if it does do work, would it be conservative or non-conservative?  For example, consider the following block-incline system where the incline is on a friction-less surface. Now as the block moves down, the incline itself starts moving in the opposite direction. Here, the normal force acting on the incline by the block does do work.    This question was on some website (it asked something about the final velocities of the block and the incline) and they solved this using mechanical energy and momentum conservation which confused me as I couldn't understand why the normal force here is conservative.  So,    Is the normal force always conservative or is this only in some cases?  If yes, how do we deduce that like in the above example? Also, if it is conservative, what would be its corresponding potential energy function?


Subdomains vs. subdirectory – status as of 2012.

This  and I wanted to check how things have changed in the past 2 years. My problem:    I run a site with most of the content distributed to subdomains that’s are user based. E.g:  Joe.example.com John.example.com Jil.example.com    So all of these subdomains have the content and the main site example.com becomes a mere dummy listing all the subdomains. Now the question is, as of 2012, how is google treating domain authority and page rank in this case? I understand the notion of page rank as page per se but when it comes to domain authority will the parent domain have the cumulative effect of the domain authority or will it be spread out?


String Aggregation without using ListAgg -- SIMPLE ANSWER (Oracle)

Is there a simple way to do a string aggregation without using ListAgg?  I am new to Oracle and I was trying to use the ListAgg function and it is not working.  I think I have a version installed that is not compatible with ListAgg.  I am essentially trying to the following:  Actual List:  Encounter ID  CPT Code   ------------  --------- 123           21556 124           21554 123           92145 123           92542   Output:  Encounter ID  CPT Code   ------------  --------- 123           21556,92145,92542 124           21554


Adding data ton an array of objects in java

I'm trying to add data to each item in an array of objects from Scanner input. But I am getting a null pointer exception at patients[i].setPatientId(id).   My code is as follows:  public static void main(String[] args) {          Scanner input = new Scanner(System.in);         Patient[] patients = new Patient[3];          for (int i = 0; i < patients.length; i++) {             System.out.println("Enter a patient Id: ");             int id = input.nextInt();              System.out.println("Enter the patient name: ");             String name = input.next();              System.out.println("Enter Amount: ");             double amount = input.nextDouble();              patients[i].setPatientId(id);             patients[i].setPatientName(name);             patients[i].setAmount(amount);         }     }   Can someone please tell me what I am doing wrong ?


Since Power = V*I increasing voltage reduces current and so it is better to have a higher voltage. My question is, since voltage is potential difference i.e. joules per metre, increasing the voltage also increases the heat lost so why is this beneficial?  In addition to this, since we are trying to make the transfer of electricity more efficient and this means moving more electricity with less heat loss. Power is the heat loss per second and since we're dealing with a fixed power wouldnt we want to increase current rather than voltage so that we move more electricity in less time?  I know that my reasoning is wrong somewhere so can someone clarify why this is wrong and provide background information about voltage/current etc. as well as any relevant maths to back it up. Thanks in advance


Estimate recent activity on specialized StackExchange sites

On specialized  (other than SO), responses take usually much longer time. Users can watch and compare question visits, but this is not very helpful for guessing when an answer in a specific topic probably will arrive... User profiles contain a seen time, which means user activity is tracked by the site software, users are also connected to tags, just as questions are. Would a direct way to estimate activity (maybe based on users and/or tags)? a valuable improvement?  Edit-Summary I reworked this question heavily, because it focused to much on looking at most recent users. I'm not interested in another "user ranking". And my question hasn't found its answer at .


Second WLAN card not available in Kali 2.0

I recently installed two of the same pcie wireless LAN cards into my HP 2710p computer with Kali Linux 2 installed. I can use one of the cards, but the second card is not available. I cannot find a second wireless LAN entry within my file system nor within the interface selection for Wireshark. Why is the second card not available?


How do I get a Cron like scheduler in Python?

I'm looking for a library in Python which will provide at and cron like functionality.  I'd quite like have a pure Python solution, rather than relying on tools installed on the box; this way I run on machines with no cron.  For those unfamiliar with cron: you can schedule tasks based upon an expression like:    0 2 * * 7 /usr/bin/run-backup # run the backups at 0200 on Every Sunday  0 9-17/2 * * 1-5 /usr/bin/purge-temps # run the purge temps command, every 2 hours between 9am and 5pm on Mondays to Fridays.   The cron time expression syntax is less important, but I would like to have something with this sort of flexibility.   If there isn't something that does this for me out-the-box, any suggestions for the building blocks to make something like this would be gratefully received.  Edit I'm not interested in launching processes, just "jobs" also written in Python - python functions. By necessity I think this would be a different thread, but not in a different process.  To this end, I'm looking for the expressivity of the cron time expression, but in Python.   Cron has been around for years, but I'm trying to be as portable as possible. I cannot rely on its presence.


Please anyone tell me when we have to use "has been, have been , had been" and something  started in past and still continuing is it possible to use has been ?


private void drawSquare (Graphics g, int row, int col,         Tetrominoes shape){      Color[] colors={new Color(0,0,0), new Color(204,102,102),             new Color(102,204,102), new Color(102,102,204),             new Color(204,204,102), new Color(204,102,204),             new Color(102,204,204), new Color(218,170,0)     };     int x = col * squareWhidth();     int y = row * squareHeight();     Color color = colors[shape.ordinal()];  // **** NullPointerException here ****     g.setColor(color);     g.fillRect(x + 1, y + 1, squareWhidth() - 2,     squareHeight() - 2);     g.setColor(color.brighter());     g.drawLine(x, y + squareHeight() - 1, x, y);     g.drawLine(x, y, x + squareWhidth() - 1, y);     g.setColor(color.darker());     g.drawLine(x + 1, y + squareHeight() - 1,     x + squareWhidth() - 1, y + squareHeight() - 1);     g.drawLine(x + squareWhidth() - 1,     y + squareHeight() - 1,     x + squareWhidth() - 1, y + 1); }   Throws me a  nullpointerexception when I run the program and the terminal reference me in this line: Color color = colors[shape.ordinal()];


Proving a combinatorics equality: $\binom{r}{r} + \binom{r+1}{r} + \cdots + \binom{n}{r} = \binom{n+1}{r+1}$

How to prove the following? Should I use induction or something else?     Let $n$ and $r$ be positive integers with $n \ge r$. Prove that   $$\binom{r}{r} + \binom{r+1}{r} + \cdots + \binom{n}{r} = \binom{n+1}{r+1}.$$   Attempted start:  Basis step: ${\binom{1}{1}} = {\binom{2}{2}}$ true.  Where do I go from here?


How to prove sum of powers property of roots of unity?

We know that $1+\alpha_1+\alpha_2+...+\alpha_{n-1}=0$ where $\alpha_i$ are the roots of $z^n=1$. How can I prove that: $$1+\sum_{i=1}^{n-1}\alpha_i^m=\begin{cases}0\quad m\in Z,m\not\equiv0\pmod n\\n\quad m\in Z,m\equiv0\pmod n\\\end{cases}$$