Can't update table with the same column from next record Error 1093

I need to update the records of a table which has a wrong date (1970-01-01), using the next record's data (according to the incremental gkey field).   So, if I do this query:  SELECT aa.gkey,        aa.course_date,        (select course_date from BI.fact_training_event_tbl bb where bb.gkey = (             select min(cc.gkey)              from BI.fact_training_event_tbl cc                   where cc.gkey > aa.gkey)) as next_date from BI.fact_training_event_tbl aa where course_date = '1970-01-01'   It brings the records correctly, as expected:  gkey   course_date  next_date ====   ===========  ========= 4103   1970-01-01   2017-03-23 4884   1970-01-01   2017-03-22 5047   1970-01-01   2017-03-23   I now need to update the course_date field with next_date, but if I try running the following, I get the      Error Code 1093. You can't specify target table 'aa' for update in FROM clause:   update BI.fact_training_event_tbl aa     set course_date =     (select course_date from BI.fact_training_event_tbl bb where bb.gkey = (             select min(cc.gkey)     from BI.fact_training_event_tbl cc          where cc.gkey > aa.gkey)) where course_date = '1970-01-01'   Any ideas on how I can pull this off?  I want to make clear that this question is not answered earlier since the thread about error 1093 shows a simple subquery. In my case, I'm doing a lookup for the next record referencing the main table. Please don't tag it as a duplicate.


I liked the mouse gesture of Windows 7 to minimize all open windows except the active one. Can I have that kind of gestures to use in Unity.  or What are the mouse gestures available for Unity?


Showing that if $p$ and $p^2+8$ are primes then $p^3+4$ is also prime

The question is as stated above. here is my attempt;  $p^3+4=p(p^2+8-8)+4=p(p^2+8)-8p+4$, hence, $p^3+4=p(p^2+8)-4(2p-1)$, so i supposed that $p^3+4$ is composite so that there exist an odd number $n=2k+1$ which divides it. MY PROBLEM IS; how can i show that $k=p$, for if that can be done, the last equation gives a contradiction, showing that $p^3+4$ is prime. Any other approach is welcome please


I was wondering if there was a way that I could reference the numbers of the theorems in my document would actually having to write "theorem 1.11". So that if the numbering of my theorems change then my referencing of them automatically does as well?  Thanks for any help


How will a bad grade from a somewhat unrelated course look on applications?

I'm taking a second year genetics course as a math major (I was interested in bioinformatics, and I need genetics for that). I'm doing poorly in the course so far (I'm passing, but not with great marks). I was wondering how a bad grad will look on my application to math grad schools.   My current cgpa is about 3.8 so I'm wondering if I should just cancel this course (honestly, bioinformatics isn't even interesting to me anymore) and take a CAN on my transcript than a bad grade that will kill my cgpa. How would that look?   Any and all help is appreciated!


Syntax highlighter bugs on multiple  tags

To illustrate, multiple non-script tags works fine:  <element name="value"></element> <element name="value"></element>   But multiple script tags bugs the highlighter, see the pattern:  <script name="value"></script> <script name="value"></script>   and  <script name="value"></script> <script name="value"></script> <script name="value"></script>   and  <script name="value"></script> <script name="value"></script> <script name="value"></script> <script name="value"></script>   here's a real world example:  <!doctype html> <html lang="en">     <head>         <script type="text/javascript" src="http://example.com/one.js"></script>         <script type="text/javascript" src="http://example.com/two.js"></script>         <script type="text/javascript">             $(document).ready(function() {                 alert('waa');             });         </script>     </head>     <body></body> </html>   Look like a bug in some sort of XSS filter, if any.


Tiling large single GeoTIFF raster into smaller GeoTIFF tiles?

I have traditionally used proprietary software tools for tiling raster datasets but I am keen to explore the open source solutions as well.    Are there any open source solutions that can easily tile a GeoTIFF into smaller GeoTIFF (not png or jpg tiles) where you can set the dimensions yourself?   From what I have seen in QGIS, GDAL this is not as flexible as I hoped whilst Saga shows some promise.


A command-line or batch cmd to concatenate multiple files

I have 50 text files in one directory.  Is there a Windows command-line method to concatenate those files into a single file?  I am using .  I don't want to type the name of all files.


Is it more proper to use the equivalent operator or the equals() method to compare the contents of Strings?

I'm reading about the notion of interned strings:  String s1 = "Hi"; String s2 = "Hi"; String s3 = new String("Hi"); System.out.println(s1 == s2); // true System.out.println(s1 == s3); // false System.out.println(s1.equals(s3)); //true   String is an object in Java, but the compiler allows us to use a literal for assigning to a String reference variable, instead of requiring us to use the new operator, because of the ubiquity of strings in programming. The use of the literal for assignments creates an interned string. All interned strings with the same literal point to the same space in memory, thus the equivalent operator is permitted.  It got me wondering, however: would it not be more proper to use the equals() method to compare two string reference variables, given that in Java strings are objects (and not arrays like in other languages) and the contents of objects should be compared using equals(), as the == operator in regards to objects only tells us that they point to the same spot in memory?  Or is it not more proper because the very concept of interned strings makes it clear that one String can only be equivalent (==) to another string if they share the same literal?  If it is more proper, do people commonly use the equals() method regardless, or is it considered overkill?


What Information Can I Use If I Want To Publish My Own D&D 5e Module?

I intend to write a D&D module and publish it under the OGL (I know 5e itself isn't OGL, see note below) for use with both D&D 5e and AD&D. I know there are areas where I can't draw directly (copyrighted worlds, spells, characters, etc.), but can I include more generic information drawn from the major core books? For example, in an encounter where the party fights Zombies, can I include the 5e zombie stats like HP, AC, attack types, etc.? Would I need permission from Wizards of the Coast to include specific information like this? Or, since it is a generic monster, am I free to use D&D stats from the Monster Manual or other books? Basically, if I have a party encounter a 'generic' monster like a Skeleton, can I include stats in the description of the encounter like so:  AD&D: AC 6, HP 4, damage: 1d6 or by weapons (or other data drawn directly from the AD&D Monster Manual) D&D 5e: AC 13, HP 13, damage vulnerabilities: bludgeoning, damage resistance (etc., etc., drawn directly from the 5e MM)  So, can I draw in the exact stats and damage info from the D&D manuals regardless of edition, without a license? If I keep it under 400 words, would this fall under the "fair use" clause of copyright?  Note: My understanding of the OGL is that it is not exclusive to the 3e ruleset. And while copyright law seems to indicate that the OGL isn't needed to publish add-ons at all, just about every publisher I've seen includes an OGL statement. And some publishers (such as Frog God Games) are making supplements for 5e while claiming use of the OGL. As I understand it, publishing my module under the OGL is independent of whether the edition of D&D I intend it to be used with is also published under the OGL.


Let $R$ be a Euclidean domain in which the quotient and remainder are always unique. Does it follow that the ring $R$ is either a field or a polynomial ring $F[X]$ for some field $F$?


I am trying to model a grass stalk and I want the bottom part to be brownish-yellow and the top part to be fresh-green. All I know is that we have to select regions from the mesh and assign different colors to them, but this method will not make it realistic. It will look odd. I want those two colors to merge in the middle. I think you know what I mean.   I want it like this: you can see the different colors and they are merging in the middle:


Why doesn't Spotlight show invisible files that I know exist?

I am running Mac OS X 10.8 (Mountain Lion) and had to edit an invisible file as part of an Android project. While I eventually found it, Spotlight was of no help, since it could not find an invisible file when searching for the exact name (.classpath) and with the 'File Visibility' option set to 'Visible or Invisible'.  Why didn't Spotlight work in this instance?


How to check if a specific Windows security update is installed?

Given that the WannaCry ransomware exploit is going around I wanted to check if my computer has the specific security update that should stop the vulnerability - apparently, MS17-010, assuming I'm understanding the vulnerability and that is indeed the right patch. How would one check that detail?   tries to give some detail but it's gibberish to someone who's not well versed with registry keys (I think I touched them once before to dig out a stubborn virus back when XP was still a thing - that's it.)  searches give some clues regard command line options but they're not all that clear and I don't like running commands I don't understand.


UK-Ireland day-trip by ferry, will my passport be checked and stamped at both ports?

I have a Canadian passport. I entered the UK with it, and I want to take a day-trip to Ireland.  Will my passport be checked, if so, will it be stamped at both ports (going by ferry)?


I noticed that a few tracks from an album appear gray.    The tracks are downloaded, I can play them if I double click them explicitly, but they don't play as part of the album. If I click the album's "play" button, they're skipped (1 gets played, then 3, then 4, etc.)  Why is this happening and how can I prevent it?    I saw a similar question, , but that's not what I'm experiencing — for me, the songs do get downloaded and everything appears to be OK, they just get skipped when playing the album.


Lazy Eye in Infants, Preparations for Seeing a Specialist

My youngest (14 months) has started showing signs of either strabismus or ambylopia (both commonly referred to as "lazy eye", where one eye seems to track differently than the other when the child is tired or isn't focusing).  We're going to see an ophthalmologist once the pediatrician weighs in and recommends one, and I'm interested in suggestions for what I should look for in an ophthalmologist, and in what we should do to prepare for the visit.  Particularly, how important is it that we find one that specifically mentions these conditions as things they specialize in?  They're fairly common conditions (affecting over 4% of children), so I would expect most pediatric ophthalmologists to have as one of their main purposes helping to diagnose and treat lazy eyes; but many do not mention them in their list of specializations.    And, in terms of preparation, do we need to keep track of time or length of lazy eye bouts?  Should we take any videos?  Our pediatrician hasn't noticed this in her periodic checks, but I suspect that he's more focused during these visits (a person he's not that used to, who is talking a lot to him).  I worry the ophthalmologist will have the same problem - not be able to diagnose because of lack of presentation during the visit.


Several months ago I saw someone using an application that showed him files on the computer being modified in real time.  Basically there was an application that wasn't working correctly, so he installed the program, ran the application, and saw all the various files that the application either read from or wrote to.  He found out the application was writing a large debugging file it shouldn't be, which ended up being the problem.  I don't remember the application or the name of the person who used it, but I believe it's a freeware application.  Does anyone know what this program might be?


My (admittedly dated) understanding of unix is that in /etc/passwd if the second field is 'x' then the identity can login with a passwd that matches a hash found in /etc/shadow.  However, when I list /etc/passwd I see that all the identities are marked with an 'x' including those that should not be able to login. In the /etc/shadow file, the no-login entities have a double bang "!!" in the hash field whereas the loginable users have the expected hash.  So, I presume this double bang convention is some alternative to the old (?) mechanism of using '*' to mark no-login users. Why is the old method no longer used?


What are these wires on single-sided PCBs?

I have a few questions about this PCB, namely the wires across the visible side:     I am new to electronics. Would these wires be considered a "trace", "jump", a "via", or something else entirely? How would this be illustrated on a schematic to indicate that it is an actual wire and not part of the etching? If one were to purchase this kind of solid wire, what would its gauge be, its material, and how would I search for it so that I exclude results with shielding? Are there any issues with running wires like this without shielding? Such as electrical interference.   Other questions, not necessary for a complete answer:   Unless I am mistaken, these do not appear to be hand-made due do their exactness and how straight they are. How does a machine place these? Or are they pre-bent, placed, and then sent through a wave solder machine? When would this method still used today? Or is it something that is an artifact of single-layer boards where one would otherwise use a through-hole via and traces on the other side?


How to focus at several locations at once?

I've seen pictures with several objects being in focus and others not in focus. How do I do that? When I focus my camera, lets say along a wall, only parts of the wall will be in focus.   Here is a picture that will help illustrate what I mean, the other picture shows how I would want the camera to focus:


Retrieving a singular pole from the quotient of the coefficients of the power series

I want to show the following statement: Let $f$ be a meromorphic function on $\mathbb{C}$ with one and only one pole at $z_0\neq 0$. This pole can have any order $k>0$, but has to be the only pole of $f$. Let $f(z)=\sum^\infty_{n=0}a_nz^n$ be the power series representation around $0$, hence its radius of convergence has to be $|z_0|$ since that is the first and only singularity of $f$. To show: $$\lim_{n\to\infty}\frac{a_n}{a_{n+1}}=z_0.$$ Now, the way I think this can be shown is as follows:  Show the statement for $z_0=1$ and $k=1$. Generalise to $k>0$. Generalise to $z_0\neq 0$.  Item 1 and 3 have been shown, the first by showing (via residue theorem) that $\lim_{n\to\infty}a_n=g(1)\neq 0$ where $g$ holomorphic such that $f(z)=\frac{g(z)}{z-1}$, the second by considering the function $h(z)=f(z_0z)$, which will have one and only one pole in $1$. The problem is item 2. I have tried plenty of things but can't manage to prove the statement. It really cries for induction.  First try: Consider the primitive $F(z)=\sum^\infty_{n=1}\frac{a_{n-1}}{n}z^n$, which will also have a radius of convergence of $1$ (since $z_0=1$). I now hope that $F$ could be extended to a primitive everywhere since then $F$ would have a pole of order $k-1$ and hence the quotient of coeffiecients would converge to $1$. Yet I can't manage to find a primitive everywhere with a singularity at $1$ which would coincide with $F$ on the unit disk. Second try: Multiply $f$ with $(z-1)$, then I obtain a new function with a pole of order $k-1$, but the coefficients are $a_n-a_{n-1}$ and the quotient is a quotient of differences. This I can't really modify to obtain the quotient of $a_n$. Third try: No induction, but instead computing the Cauchy product of the series $$\frac{1}{(1-z)^k}=\sum_{n=0}^\infty \binom{n+k-1}{k-1}z^n$$ and $g(z)=\sum_{n=1}^\infty b_nz^n$ where $g$ is holomorphic in $1$ and $g(1)\neq 0$, but this will only yield an incredibly jumbled representation of $a_n$ and I can't seem to use the fact that $g(1)\neq 0$.  Any ideas, what else I could try? Or whether one of these tries might actually yield a solution? Cheers for any help!


Can't find my other drives after installing over Windows

I replaced my Windows OS with Ubuntu. After a successful installation I can not find my other drives ( i.e. D, E, F, G ) and their contents in Ubuntu. Is it erased? I was not aware of that. Is there any way to get the contents back?  P.S. At the time of installation I clicked the "erase and replace windows", not "something else".


What is this weird ugly dark join using mirror modifier, smooth shading, and possibly subsurface modifier?

I've made some shape in Blender 2.8 that roughly resembles a handle one might find on a fridge to learn, following along with Gran Abitt's videos.  Where the handle part of the handle meets itself in the mirror, in the "viewport shading" mode, there's an ugly dark band around it.  There is no such join on the backplate.  I think my problem is similar to , but the proposed solutions don't work for me - there is no option to "clear custom split normals data", and the problem actually goes away when I tick "Auto Smooth".  The real problem is that I just don't understand what I'm doing.  Why does ticking "Auto Smooth" make the dark band go away?  What is the dark band?  I can't see anything untoward in Cycles whether it's on or off - is it actually a problem?


ssd how full is too full, performance slowdown or other negative effects

so ive read that its not good to fill up a ssd. im wondering how full is too full?  i have around 100 gigs of data and i am looking to get a 128gb ssd, is that too small? or will i be okay as long as i dont get too close to full capacity?  i dont plan on adding large amounts of data, mostly word documents and other realtively small files.  please let me know if i am getting too close and will experience any bad effects  my budget is good for a 128gb drive but ifi have to i can find some extra cash for a bigger drive.


Supervisor with no expertise in the field

How feasible it is to be supervisored by a professor who doesn’t know the area? She told me it’s my research and she will only provide general research guidance.


Does moving a grappler away from its target break the grapple?

I had an unclear situation in one of my sessions. A monster grappled a PC adjacent to him. In the next turn, a PC cast Gust on the monster. After failing its strength check the monster was moved away from its prey, outside its 5ft reach range from the PC it had grappled. Is it OK to consider this to end the grappled condition?


I would like to standardize on a directory where normal users would put programs/installs which would be used by other users.  What would be the best practices?  For instance, I could create a /users/shared_binaries/ directory with fairly open permissions.  Is there a convention/best practice for doing something like this?  Assume I don't have any network drive to place them.  Basically, I want a location to share binaries without needing to install in the users' home directory nor have higher access than standard user.


Math operator not magnified in beamer frame

I would like to display a "big" formula in a beamer frame. If I test the \Large command this way  \documentclass[hyperref={colorlinks=true}]{beamer}  \usepackage[utf8]{inputenc} \usepackage[italian]{babel} \usepackage{lmodern} \usepackage[T1]{fontenc} \uselanguage{Italian} \languagepath{Italian} \usetheme{Warsaw} \usepackage{pgf,tikz} \usetikzlibrary{arrows} \usetikzlibrary{quotes} \usetikzlibrary{shapes.geometric,intersections,calc} \usepackage{xcolor} \usepackage{booktabs} \usepackage{graphicx}  \begin{document}  \begin{frame}{Test} \[ f(x)=\sum_{n=-\infty}^{+\infty}c_ne^{inx} \]  \Large \[ f(x)=\sum_{n=-\infty}^{+\infty}c_ne^{inx} \] \end{frame} \end{document}   what I see is that the second formula is badly magnified: every symbol or letter is ok, but not the \sum operator, which remains small. What am I doing wrong?  This is what I see:


customizing file manager's top bar in gnome

I have GNOME Shell 3.16.4 installed on my Ubuntu 15.10 machine. However I get the old boring Unity like file manager. Here's a picture of my file Manager. See the top bar is like Ubuntu and button are on the left.     However, I want this my top bar completely like one below. Where you get to type the path. Also, you get the close, maximize and minimize button on the right and only back-forward buttons on the left.


Suppose that we have a Group $(G,.)$, where . is binary operation on $G$. Prove that for any $a_1,a_2,\cdots, a_n\in G, a_1.a_2.a_3.\cdots a_n$ is independent of how it is bracketed.  My attempt:  First of all for any $k\in \mathbb N,a_1.a_2.a_3.\cdots a_k$ must be defined in a way. Let's define it like this  $a_1.a_2.a_3.\cdots a_k=a_1.(a_2.(a_3.(\cdots a_k))\cdots) \tag 1$ Now we have to prove that howsoever $a_1.a_2.a_3.\cdots a_n$ is bracketed, it evaluates to form $(1)$, that is $a_1.a_2.a_3.\cdots a_n$  has a unique value which can be given by the form $(1)$. For $n=1$, $a_1=a_1.e=e.a_1$, where $e$ is identity of the group is a unique element in $G$ as $.$ being a binary operation associates $a_1=a_1.e$ to a unique element in $G$.  For $n=2, a_1.a_2$ is a unique element in $G$ as $.$ is a binary operation on $G$.  For $n=3$, the hypothesis is true by associativity of Group.  Induction hypothesis: Let our hypothesis be true for $r\le n-1$, that is $a_1.a_2.a_3.\cdots a_{r}$ is independent of how it is bracketed and has a unique value which can be given by the form $(1)$.  Now the problem that I'm facing is lies in breaking $a_1.a_2.a_3.\cdots a_{r+1}$ into two parts. I assumed $1\lt i\lt r$ and considered $a_{i+1}.a_{i+2}.a_{i+3}.\cdots a_{r+1}$. As per our definition above,  $a_{i+1}.a_{i+2}.a_{i+3}.\cdots a_{r+1}=a_{i+1}.(a_{i+2}.(a_{i+3}.(\cdots (a_r.a_{r+1}))\cdots )$. RHS is composition of two elements of $G$ under binary operation $.$ and hence unique.  Now $a_1.a_2.a_3.\cdots a_{i}=(a_1.a_2.a_3.\cdots a_{i})$  We have  $a_1.a_2.a_3.\cdots a_{i}.(a_{i+1}.a_{i+2}.a_{i+3}.\cdots a_{r+1})=a_1.a_2.a_3.\cdots a_{i}.(a_{i+1}.(a_{i+2}.(a_{i+3}.(\cdots (a_r.a_{r+1}))\cdots )$. Now I'm stuck.  Please see bracket on LHS here, I don't understand how to remove it and once this is removed how do I show that finally the product (compositio under binary operation $.$) evaluates to a unique value given by the form $(1)$. Please help. Thanks.


I've got a considerable amount of alien detritus lying around my base:    Some items, like the damaged UFO flight computer, are marked as useless and intended for sale without consequence.    However, I have no idea how many bits of Alien Alloys I'm likely to need.  Or what a stack of alien corpses might be useful for, for that matter.  I could, however, immediately use some extra credits.    I'm tempted to sell a bunch of this stuff off to finance my near-term needs, but I'm concerned that some of this is going to be   What bits of alien refuse are critical in the mid and late game, and how much should I keep on hand?


I'am trying to configure apache to use a Self signed certificate to Secure https connections.  This is working Fine using only One domainname.   But how do i configure this to Support the Different hostnames  our Server can be reached?  I've tried to create a multidomain cert, but with this cert the authentification of Single Domain does Not Even work.  Any ideas or hints?


Output is not in human readable format when writing content of an Excel sheet to console in C#

I'm trying to read an excel sheet and displaying contents to console. the code is here    FileStream fileStream = new FileStream(@"E:\USERS\MyWorkbook.xlsx", FileMode.Open, FileAccess.Read);   byte[] byteCode = new byte[fileStream.Length];   fileStream.Read(byteCode, 0, (int)fileStream.Length);               foreach (var byteValue in byteCode)   {       Console.Write(Convert.ToChar(byteValue));   }   Console.ReadLine();   the output is     PK♥♦¶ ♠   ! bî?h^☺  ?♦  ‼☻[Content_Types].xml ¢♦☻(  ☻      ¬?ENA0►E÷HüCä-JÜ²5í?Ç↕*Q>AÄ?Æªc[?iiÿ??û►B¡§j7±↕IÜ{2ñIh²nm¶??Æ»R♀??EAU^←7/>ÅÇ   ì%¿↨↓?rZYï ¶←@1↓__?f? ?q·AR4DáAJ¬→h§▬>?a?UÇV◄ßÆ1♀ªZ"9EUAàNV_◄8EcO►aÑ‼Oji){^óa-I♦   ?"{Ü▬v^¥P!XS)bR1rú?K_s(,3O`▬_§ïßeÖ↔♦»ß1æ►@(?a?sí?►[í?☼öB·LA?F←I↔"fKlk↑--¿$♣?A   pN$å   What's wrong with it?


Embed LaTeX math equations into Microsoft Word

Let's say I have a (comparatively) lovely-looking document in LaTeX, full of lovingly typeset, (relatively) complex equations. Now, let's say some barbarians come along one day and decide that the document has to be put into Microsoft Word (2007). ...after the usual mourning period associated with such events, let's say I value my job (more specifically, the bread it provides) enough to get all the text and tables formatted and references organised into the Word document. –...related questions  and – Now I'm looking at the equations with fear and dread. One option of course is to just lift screenshots from the original document, but this is painstaking if I need to refer to parts of the equation in the text. Also, I might need to edit equations on the fly. Anyone know of a free application which allows embedding LaTeX math into MS Word? I've looked at  and  which do roughly what I want... they build LaTeX images from source and embed them into the Word document, allowing to edit the source later... but both are commerical. ...any help in these troubling times will be greatly appreciated. EDIT: Just a note that  offers a 30-day free trial and is working out really nicely... but still, it's not free. Might be a good solution for those with short-term needs, or money.


Comparison of UID's in firebase not consistent inside FirebaseRecyclerAdaper

I want to display a view holder for all users except the current user. The best solution I found was to simply query all the "Users" then hide the current user view holder. In order to so I check if the model user is the current user. However, my if statement is not working as it should. I print out both UID's and clearly they are equal. However, my if statement which should only run when they aren't equal still executes when the activity is initially opened. If I jump to another activity and then go back to this activity then it works as it should and it hides the view. Anyone know why my if statement isn't working when the activity is first created?         final FirebaseRecyclerAdapter<Users, UsersViewHolder>  adapter = new FirebaseRecyclerAdapter<Users, UsersViewHolder>(options) {             @Override             protected void onBindViewHolder(@NonNull UsersViewHolder holder, final int position, @NonNull final Users model) {                  holder.setInfo(getApplicationContext(), model.getUsername(), model.getName(), model.getProfilePhoto());                 final String currentUserID = FirebaseAuth.getInstance().getCurrentUser().getUid();                 final String otherUserID = getRef(position).getKey();                  System.out.println(currentUserID + " === " + otherUserID + "\n");                 if (currentUserID != otherUserID) {                     holder.mView.setOnClickListener(new View.OnClickListener() {                         @Override                         public void onClick(View v) {                             DatabaseReference currentUserDB = FirebaseDatabase.getInstance().getReference().child("Users").child(userID);                             Map newPost = new HashMap();                             newPost.put("otherUserID", otherUserID);                             currentUserDB.updateChildren(newPost);                             startActivity(new Intent(SearchActivity.this, OthersProfileActivity.class));                         }                     });                 }                 else {                     holder.mView.setVisibility(View.GONE);                 }             }             @NonNull             @Override             public UsersViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {                 View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.users_layout, parent, false);                 return new UsersViewHolder(v);             }         };          adapter.startListening();         rvSearchUsers.setAdapter(adapter);


How do you make a cake lift equally and minimize doming?

Some time ago, I baked a cake (Sachertorte to be exact). The taste and texture was fine, so my recipe is okay.  My biggest issue was the shape. In the middle it was really a lot higher than on the sides. I would like to redo it in the near future, but preferably with a flat(ter) surface. (Especially since I put icing on top and I don't want it to drip off this time.)  Anyone knows the cause of my problem, or even better a solution? I think I put enough butter on the side of my springform pan, in case this is an option.


studying the series $\sum_\limits{n=1}^\infty \frac{1}{n^ {\alpha}(\log n)^ {\beta}}$.

I have to study the character of this series  $$\sum_{n=1}^\infty \frac{1}{n^{\alpha}(\log  n)^{\beta}}.$$  $\alpha$ and $\beta$ are two parameters.  I'm considering the case $\alpha >1 $ and all real values for $\beta $ .  If $\beta \ge 0$, $\exists n_0 \in N $ such that $\forall n\ge n_0, \dfrac{1}{n^ {\alpha}(\log  n)^ {\beta}}<\dfrac{1}{n^ {\alpha}}$.   For the comparison test $\dfrac{1}{n^{\alpha} (\log  n)^ {\beta}}$ converges.  I tried to analyze the case $-1<\beta<0,\beta=-1, \beta<-1$ but I'm not sure.  Anyway, for $\beta<-1$ the series is convergent for $\alpha > 1- \beta$, divergent for $\alpha < 1- \beta$.  For $-1<\beta<0$ the series is convergent for $\alpha > 2$, divergent for $\alpha <2$.  For $\beta=-1$ the series is convergent for $\alpha > 2$, divergent for $1<\alpha < 2$.  I've used the fact that $\log n<n$


I am doing indoor multi-floor routing using pgRouting.  At the moment, I have a dummy network system created to analyze shortest routes between locations with the results served as a WMS layer in GeoServer.  My initial test of the system only included a simple network created on the same z-plane, and everything works perfectly.   At that point, I created some mock interior floor plans to create indoor networks on two separate floors.  For simplicity, I simply assigned the z-elevation of the bottom floor as ‘0’ and the upper floor as ‘10’.  I then created the vertical corridors (e.g. elevators and stairs) in ArcScene to make sure the vertical connections existed, resulting in a fully-connected 3D network.    Using the SQL code found here , I created the modified pgr_createTopology3d and pgr_pointToIdZ functions to build topology on the 3D network.  Following that, I followed normal procedure for building the SQL View to serve the queried results as a layer to GeoServer.    Now that I have the 3D network in the routing system, I tried running some test queries across different floors to ensure that it routes appropriately; unfortunately it does not.  Instead, the system continues to operate on the same z-plane, and seems to ignore the z-values in the vertices, meaning a route is returned, but only on the plane with z-levels assigned as ‘0’.  I’m guessing this has to do with the SQL Statement that’s entered when creating the SQL View in GeoServer.  Right now, the statement is as follows:  SELECT ST_MakeLine(route.geom) FROM (     SELECT geom FROM pgr_fromatob('ways', %x1%, %y1%, %x2%, %y2% ) ORDER BY seq) AS route   That statement above is passing to/from lat/longs to the table ‘ways’ to produce the resulting shortest path; however, there’s nothing in there to give the query any sort of z-information.    Is that where things are going wrong and not correctly routing across multiple floors?   If so, can anyone provide insight on how to correct the SQL Statement to consider z-values?    I’m no SQL expert and been trying a number of different modifications, but nothing working as of yet.


Will importing user preferences from version 2.79b to 2.80 work and is it a good idea?

So today I decided to join the hype and check 2.8 out even though I am the kind of person who does not like to try betas, because I hate change. And anyways I was already shocked by the difference of the keyboard shortcuts. My question is: Is it a good idea to import the preferences from 2.79b or would you guys advice me from doing it and if it's OK to do that, which file should I import and where is it in the Blender Foundation old files? It would be nice if someone showed me the path.


Did Dolores Umbridge Have Any Association with Voldemort (or Death Eaters) before His Return?

I noticed that Dolores Umbridge was born during the first Wizarding War, so it's very likely she wasn't a Death Eater then (but she is pretty evil -- who knows?).  After that Voldemort was not around in a way that could affect many people, and most wouldn't know he was planning to rise again.  During that time, and up through Voldemort's return (in Goblet of Fire), did Umbridge have any connection with the Death Eaters or with Voldemort?  Was she doing what she did on her own, or was it because of an association with Voldemort or his allies?


I have a rather large bunch of files that contains several fields pipe-delimited.     5595340959340|1|MXPYAQWE|870569689456954654|0|0|20181018224126|1212121212121212121212121212|2|0|1000|70|33107||1|Event       5595340959340|1|MXPYAQWE|870569689456954654|0|0|20181018224126|2323232323232323232323232323|2|0|1000|70|33107||1|Event       5595340959340|1|MXPYAQWE|870569689456954654|0|0|20181018224126|3434343434343434343434343434|2|0|1000|70|33107||1|Event       5595340959340|1|MXPYAQWE|870569689456954654|0|0|20181018224126|4545454545454545454545454545|2|0|1000|70|33107||1|Event       5595340959340|1|MXPYAQWE|870569689456954654|0|0|20181018224126|5656565656565656565656565656|2|0|1000|70|33107||1|Event   Notice the eighth field. It currently has 29 characters and I'm supposed to trim it so it has only five characters left.  The only (convoluted) solution I've come up with is this:  Isolate the fields I want to trim:  awk -F "|" '{print $8}' > Original_Fields   Trim the fields  cp Original_Fields Temp more Temp | cut -c -5 > Trimmed_Fields   Create a susbtitution script with sed  grep -rh -f <file_with_matching_strings> /path/to/files > Original_Strings vi Original_Strings :%s/^/grep -rl "/g :%s/$/" \/path\/to\/file | xargs sed -i 's\//g :wq!   And then edit the Original_Fields and Trimmed_Fields files, so I end up with  grep -rl /path/to/file | xargs sed -i 's/Original_Field/Trimmed_Field/g'   This works, but I strongly suspect there must be a quicker way to accomplish this with AWK and SED, so I can do all of this in just one step.


C#: check if file is Valid file path (not exist)

I have simple TextBox when the user can insert File path.  Now I want to validate if this File path is valid for example:  c:\blabla --> this valid  c:  \blabla --> this Not valid   I have this function:  public static bool ValidateFilePath(string path) {     FileInfo fileInfo = null;     try     {         fileInfo = new FileInfo(path);     }      catch (ArgumentException) { }     catch (PathTooLongException) { }     catch (NotSupportedException) { }     if (fileInfo is null)         return false;     else         return true; }   But this return True all the time.  Any suggestion or maybe ready c# method that can verify this ?


How to programatically open a file with a certain application and change the extension

I have hundreds of .exr files that I need to convert to .png -- however, each file has to be opened with an application to ensure it has the proper exposure, etc. (which are conveniently the default settings on the app), then saved to a folder. Thus for every file, I have to   Drag the file from Finder into a QT4Image window to open it with QT4Image. The default exposure and gamma on QT4Image are appropriate, so no changes need to be made there. It requires no visual confirmation, it just needs to be opened on QT4Image. Click File -> Save As. Copy and paste the file name, and add ".png" to the end of it, so that it's saved as "[same file name].png". The file name is the exact same as it was, except now ends in .png instead of .exr Ex. file32.exr would become file32.png Put it in the right folder (all the .png files are going in the same folder).   It's a trivial task but very time consuming, and I am wondering if people have any advice how I would go about coding this instead of doing it manually?


I think it was in the late 70s/early 80s an anime movie appeared on HBO. During that time HBO mailed a monthly TV Guide of prominent movies being aired and I think it had a high profile spot.  I don't think the name of the movie is Space Dragon because I rented that already and it seemed different from what I remember.  I remember the main character tries to assemble the robot but is unable to and gets injured in the process.  It's kind of like the Voltron robot but with just one person controlling the robot.


Stack Exchange site for Arabic language questions?

I am searching for a Stack Exchange site where I can put my question related to the Arabic language.  I tried putting my question on Linguistics Stack Exchange, and it got comments that my question was off-topic:   I posted my question on Islam Stack Exchange and had the same issue there as on Linguistics:


Elementary manipulation with elements of group

Let $(G,*)$ be a group with identity $e$ , let $a,b∈G$ such that $a*b^3*a^{-1}=b^2$ and $b^{-1}*a^2*b=a^3$ , then how do we prove that $a=b=e$ ?


Limiting a site's appearance rate in Hot Network Questions

I get that PCG is cool or whatever, but 7/16 seems a bit silly    Can we flat limit the number of times a Stack appears in HNQ instead of pulling from the list of popular questions without prejudice? I don't care how interesting it is, imo more than two or three from each site gets to be excessive.  (This screenshot was taken from electronics.stackexchange if that makes a difference, which I doubt)


How can you install software without the terminal retrievals or the software center?

I'm essentially asking if it is possible to install software with no internet connection what so ever.


Slap Editor Installation problem, (sudo: npm: command not found)

I'm installing  on Ubuntu 14.04 and when I type sudo npm install -g slap its giving me the error sudo: npm: command not found .  the node version on my system is 0.10.33 and the npm version is 1.4.28  I didn't find any solution to this problem, can anyone help me ?  Thank You in advance.


I have an XML file that looks like:    <results>     <result>       <title>Welcome+to+The+JASON+Project%21</title>       <url>http%3A%2F%2Fwww.jason.org%2F</url>       <domain />       <inside_links>         <inside_link>           <description>News</description>           <url>http%3A%2F%2Fwww.jason.org%2FPublic%2FNews%2FNews.aspx</url>         </inside_link>         <inside_link>           <description>register</description>           <url>http%3A%2F%2Fwww.jason.org%2Fpublic%2Fregistration%2Fregistration.aspx</url>         </inside_link>         <inside_link>           <description>Argonauts</description>           <url>http%3A%2F%2Fwww.jason.org%2FPublic%2FArgonauts%2FArgonauts.aspx</url>         </inside_link>         <inside_link>           <description>Curriculum</description>           <url>http%3A%2F%2Fwww.jason.org%2FPublic%2FCurriculum%2FCurriculum.aspx</url>         </inside_link>         <inside_link>           <description>Credits</description>           <url>http%3A%2F%2Fwww.jason.org%2Fpublic%2FMisc%2FCredits.aspx</url>         </inside_link>       </inside_links>       <inside_keywords>National+Science+Education+Standards, National+Geographic+Society, Physical+Science, Professional+Development, Earth+Science</inside_keywords>     </result>   </results>   ...And I'm very confused as to how to read it. I simply want to get the Title, Description, and URL into separate strings. Something like:  foreach line in lines string title = gettitle; string description = getdescription; string url = geturl;   ...I've read so many tutorials but all of them seem to not be relative to what i need to do.. Can somebody please help me out with this?


The 'Blood' items from the Blacksmith, such as 'Blood Cape' all give +1 to Vampirism.  What does Vampirism do?


Residue theorem with $\frac{1}{2\pi}\int_{0}^{2\pi}e^{\cos\theta}\cos(n\theta) d\theta$.

The following integral should be doable using the residue theorum:     $$\frac1{2\pi}\int_{0}^{2\pi}e^{\cos\theta}\cos(n\theta) \,d\theta$$


Why don't we define division by zero as an arbritrary constant such as $j$?

Why don't we define $\frac 10$ as $j$ , $\frac 20$ as $2j$ , and so on? I know that by following the rules of math this eventually leads to $1=2$ , but we could make an exception and say that $j$ is the only number such that $0*j \not= 0$ , and put other restrictions necesary so that we don't get contradictions. We do this for $i$ , so why can't we do it here? For example, $i^2$ , is defined as $-1$ , but you could also say $i^2=\sqrt {-1} *\sqrt {-1}=\sqrt {(-1)(-1)}=\sqrt{1}=1$ , but we make an exception for this.


Bounds for common correlation of uncorrelated random variables with another random variable

Suppose we have a random variable $y$ and a collection $(x_1,\dots,x_n)$ of $n$ random variables that are all uncorrelated: $\operatorname{corr}(x_i,x_j) = 0$ $\forall i \ne j$ and that all have the same correlation with $y$: $\operatorname{corr}(y,x_i) = \rho$ $\forall i$. Obviously, they can't all have correlation $1$ or $-1$ with $y$ and be uncorrelated at the same time, so there must be bounds.   This question came up when I was solving a different problem, finding the correlation between $y$ and the linear model $\hat{y} = X(X^\intercal X)^{-1}X^\intercal y$, where $X = (x_1,\dots,x_n)$ and $y,x_i$ are now thought of as $m\ge n$ random samples from the random variables. I found that if the random variables have mean $0$ and variance $1$, the expected value is $\operatorname{corr}(y,\hat{y})=\rho\sqrt{n}$, there's also a more complicated formula for the general case (can post if interested, wanna keep this post short).   This lead me to conjecture that the bounds for $\rho$ are $\left[-\frac{1}{\sqrt{n}},\frac{1}{\sqrt{n}}\right]$, now thinking about proving it for the general case.


Why is it sufficient to minimize expected prediction error (EPE) pointwise?

In the elements of statistical learning in section 2.4 it is written that  it suffices to minimize EPE (Expected Prediction Error) pointwise. where             EPE = $E_{X} E_{Y/X}([Y-f(X)]^2|X)$  Why minimizing EPE is equivalent to minimizing $E_{Y/X}([Y-f(X)]^2|X)$? I see that an answer has been posted at  by Matthew Drury.   Matthew said that you can minimize a sum of non-negative quantities by minimizing the summands individually. But I think that is true only when summands are independent of each other. Are we assuming that in this case.


Good DSLR camera for ice hockey pictures

My son just started hockey and my pictures are very dark and grainy.  The lights are dim.  Was looking to get another camera and lens to take better pictures.  Would like to stay under $5,000.  Any suggestions?


I am trying to load video from custom field value ( which is embedded ). Click any button and play that video.     Console log: As i click any button its goes to jquery line console.log(result);. Give no output related to buttons.   What missing and how to make it working-able?  HTML:

<button class="play_next"  data-meta-key="url-1">Video 1</button>

<button class="play_next"  data-meta-key="url-2">Video 2</button>

<button class="play_next"  data-meta-key="url-3">Video 3</button>

   Jquery:  jQuery( document ).ready( function( $ ) {     $( '.play_next' ).on('click', function( event ) {         event.preventDefault();          var meta_key = $( this ).data( 'metaKey' );         var post_id = $( this ).data( 'post_id' );          $.ajax( {             url: ajaxobject.ajaxurl,             type: 'get',             dataType: 'html',             data: {                  action: 'wpse_296903_call_meta',                 meta_key: meta_key,                 post_id: post_id,             },             success: function( result) {                 $( '#output' ).append( result );                 console.log(result);             }         });     }); });   PHP:  function wpse_296903_call_meta() { if( isset( $_POST['post_id'] ) && isset( $_POST['meta_key'] )) {     $post_id = $_POST['post_id'];     $meta_key = $_POST['meta_key'];      if ( in_array( $meta_key, ['url-1', 'url-2', 'url-3'] ) ) {         echo get_post_meta( $post_id, $meta_key, true );     } } wp_die(); } add_action( 'wp_ajax_wpse_296903_call_meta', 'wpse_296903_call_meta' ); add_action( 'wp_ajax_nopriv_wpse_296903_call_meta', 'wpse_296903_call_meta' );   Enqueue_script:  if ( ! function_exists( 'cf_enqueue_scripts' ) ) :   function cf_enqueue_scripts() {  wp_deregister_script( 'jquery' ); wp_enqueue_script( 'jquery', get_template_directory_uri() . '/js/jquery.min.js');  wp_deregister_style( 'style' ); wp_enqueue_style( 'style', get_bloginfo('stylesheet_url'));  wp_enqueue_script( 'script', get_template_directory_uri() . '/js/ajax.js');  wp_localize_script('script', 'ajaxobject', array(    'ajaxurl' => admin_url('admin-ajax.php') ));   } add_action( 'wp_enqueue_scripts', 'cf_enqueue_scripts' );


How do i upgrade ubuntu from 12.04 to 13.10 ?

I have been thinking about upgrading to 13.10, the current release of Ubuntu. I am running 12.04 LTS. I was wondering how I would do this without having to back everything up, or do I need to back everything up? Thank you!


Google Location history showing me in another continent? Did someone hack me?

I've just found out about Google Location history and it correctly displays all the places I've been to in Bolivia to-a-T. Really accurate.  What concerns me is that there is a dot in Singapore! I've never been anywhere near that country. Not even 2000 miles near.    My question is, if someone logged into my account from that country, would that dot load from there? Should I change my passwords ASAP?


Order preserving injections between well ordered sets imply isomorphism

Let $(A, \leq_A),(B,\leq_B)$ be well-ordered sets with order preserving injective functions $f:A \to B, g:B \to A$. Show that $(A, \leq_A),(B,\leq_B)$ are isomorphic (meaning there is an order preserving bijection).  Using Schröder–Bernstein we have the bijection $h:A \to B, h(a)= \begin{cases} f(a) & \text{ if } ...\\  g^{-1}(a) & \text{ if } ...  \end{cases}$ My best bet is that $h$ would also be order preserving but I'm not sure how to show it. The problem is for $x \leq y \in A$ s.t $h(x)=f(x), h(y)=g^{-1}(y)$, how do we show $f(x) \leq g^{-1}(y)$? Is my idea even correct? Hints appreciated...


Is the force which throws a body on a rotating disk outwards centrifugal force?

If some object is kept in a radial groove made on a disk and the disk is rotated with say constant angular velocity.   Now as we know that the object moves outwards ie away from the centre of the disk. I want to know which force is it which throws the object outwards.   As centrifugal force is a pseudo force and hence when the observer is in ground frame it shouldn't be present so which force exactly pulls it out.


I have a series of layers of lines (shapefiles) in My Project. The CRS of some are different and to merge them they all must have same CRS.   When I use Processing/Toolbox/Qgis_algorithims/Reproject_layer the reprojection only works if it is allowed to save to temporary file somewhere (it will not change the CRS when I reproject if I try to save and replace it in My Project directory); THEN  I must remove the original from the layer list and reproject the temp file (without changing the CRS) to get it into my project and name it appropriately.  Is this the only, or proper way to go about this?


Australian overseas--do I need visa to go to Schengen area?

I am an Australian passport holder, I did not get any visas before travelling, while travelling I coincidentally left the Schengen area after 90 days. I never got a visa to travel in Europe because I didn't even know about the Schengen area rule until in UK. I am still travelling (currently in the UK) and have to go back to Italy after just two weeks out of the EU... will I be stopped? Do I actually need to get a visa to go to Italy? And while I'm in London should I go to the Italian embassy ?  If anyone has specific answers please comment, don't send me links to other questions with answers. So much information to read through about these laws it is just getting confusing.


How do you find the uncertainty of a weighted average?

The following is taken from a practice GRE question:     Two experimental techniques determine the    mass of an object to be $11\pm 1\, \mathrm{kg}$ and $10\pm 2\, \mathrm{kg}$.    These two measurements can be combined to    give a weighted average. What is the uncertainty of the weighted average?   What's the correct procedure to find the uncertainty of the average?  I know what the correct answer is (because of the answer key), but I do not know how to obtain this answer.


Which program should I use if I want to draw/sketch to a .pdf files?

It would be nice to have a program which I can use to do some drawing/sketching in a .pdf document and I can also scroll up or down.  Like this:    (Edited with GIMP)  It is not necessary to save the documents with the sketch.  Is there any program that can do these?


Do you have to take the second leg of a domestic flight?

Say I want to book a flight from Fort Lauderdale to Chicago.  Say the airline also flies to St. Louis from Fort Launderdale but has a connecting flight through Chicago.  If I book that flights from FLL->ORD->STL and just get off in Chicago, what possible problems can I run into, assuming I didn't check any bags and only have carry on?  This scenario exist for Southwest, but I wanted this be more of a general question that would apply to all airlines.


Combine attributes (lines) within an attribute table QGIS

I have an attribute table with 100 LINES. The table has a DATE field. The 100 LINES have several DATE values.  I would like to combine all LINES with the same DATE value.  How can i do that?


Which of "game names" and "games names" is correct?

What it's supposed to designate:  A list of the name of each game.  So there are multiple games and therefore multiple names.  But should either or both take an s at the end in a list of game(s) name(s) ?


Number of self-inverse matrices over prime field

Regarding the cryptosystem known as the Hill Cipher,  has an exercise asking you to find the number of involutory keys for $m=2$ over $\mathbb Z_{26}$. This means that we are to find the number of $2\times 2$ matrices over $\mathbb Z_{26}$ that satisfies $K=K^{-1}$. This can be considered a basic mathematical problem regardless of the details of the Hill Cipher cryptosystem.    I have found the number to be $736$ by applying the easily proven result $$ K=K^{-1}\implies\det(K)=\pm1\pmod{26} $$ stated in the previous exercise, and the general formula $$ \begin{pmatrix} a&b\\c&d \end{pmatrix}^{-1} =\det(K)^{-1} \begin{pmatrix} d&-b\\-c&a \end{pmatrix} $$ stated elsewhere in the textbook and hinted at in the exercise in question.    But here is my problem:     This approach seemed far from general, dividing into cases and subcases regarding whether $\det(K)=1$ or $\det(K)=-1$ and regarding the profiles of $a,b,c$ modulo $2,13$ respectively (Chineese Remainder Theorem [CRT]). This lead to conclusions equivalent to saying that for $\det(K)=-1$ the equation $K=K^{-1}$ has $4$ solutions over $\mathbb Z_2$ and $182$ solutions over $\mathbb Z_{13}$. By [CRT] this provides $4\cdot182=728$ solutions over $\mathbb Z_{26}$ for the subcase $\det(K)=-1$. The case $\det(K)=1$ provided $8$ matrices in my analysis.   So my question is:     Is there a general approach for finding the number of solutions to the matrix equation $K=K^{-1}$ over a prime field $\mathbb Z_p$ for matrices of arbitrary size $m\times m$?


beamer: Spacing Between Frame Title and Content Varies With Content (even using the t option)

\documentclass{beamer}  \setbeamercolor{block title}{fg=white,bg=red} \setbeamercolor{block body}{fg=black,bg=gray} \setbeamercolor{background canvas}{bg=yellow}  \addtobeamertemplate{frametitle}{\vspace*{-1.0ex}}{\vspace*{-1.0ex}}  \setbeamersize{text margin left=3mm} \setbeamersize{text margin right=3mm}  \begin{document}  \begin{frame}[t] \frametitle{Frame Title} \color{blue}\vrule width\textwidth height\textwidth \end{frame}  \begin{frame}[t] \frametitle{Frame Title} Text \end{frame}  \begin{frame}[t] \frametitle{Frame Title} \color{blue}\vrule width\textwidth height\textwidth \end{frame}  \begin{frame}[t] \frametitle{Frame Title} \begin{block}{Block Title} Block Text. \end{block} \end{frame}  \end{document}        I want to have a constant vertical spacing between the frame title and   the top line of the "arbitrary" content (text, block, ...). The reason is, that I do not like the   "dancing" when I go to the next slide.


Split 1 email column to 2 column in SQL Server

I have these records:  Name         mail ------------------ George        a George        m Paul          b Lisa          c Lisa          n Sara          d   I want a consolidated list like this:  Name        mail1      mail2 ------------------------------ George          a          m Paul            b          - Lisa            c          n Sara            d          -   How could I do that?


In my field (theoretical computer science), authors of any paper are always listed alphabetically; our papers .  (Well... hardly ever.)  In most other disciplines, at least within science and engineering, the ordering of authors is a signal about their relative contributions to the paper, with the first author indicating the most significant contributor.  Hiring and promotion committees do give extra weight to "first-author papers" (and sometimes have to be reminded that not all areas have them).  As an outsider, I find this practice confusing.  What does first authorship actually mean in your discipline? I understand vaguely that the first author is supposed to be the one who "", but what counts as "work" in this comparison?  Does "most" mean "more than all the other coauthors together" or just "more than any other coauthor"?  What happens when the comparison is unclear?   How often is "did the most work" the actual truth, versus a cover story for a more complex political decision?  I realize that the precise answer is different for every paper.  I'm looking for general guidelines for how an outsider (like me) should interpret first authorship in your field.  Pointers to guidelines from journals or professional societies would be especially helpful.  Please give only one answer per discipline.


VB.NET tag needs to have ‘lang-vb.net’ syntax highlighter set as default

When I  of a code block as VB.NET like this:  <!-- language: vbnet -->      theNodeList.Cast(Of XmlNode)()   theNodeList.Cast(Of XmlNode)()   the code is not highlighted. But this variation works:  <!-- language: lang-vbnet -->      theNodeList.Cast(Of XmlNode)()   theNodeList.Cast(Of XmlNode)()   I get the same results for both versions when I replace vbnet with vb.net:  <!-- language: vb.net -->      theNodeList.Cast(Of XmlNode)()   theNodeList.Cast(Of XmlNode)()     <!-- language: lang-vb.net -->      theNodeList.Cast(Of XmlNode)()   theNodeList.Cast(Of XmlNode)()   In the first version, the language is specified through the tag. In the second version, it's specified through the syntax highlighting parser name. The problem is that the  tag isn't automatically setting the correct parser for (unlike most other language tags).  indicates that a diamond moderator has the power to fix this. Or perhaps the parser is correctly set for the tag, but there's a bug in Stack Overflow with tags with periods in their names.  The tags on a question shouldn't affect whether this problem appears, since the comment should override all tags. That makes this question different from , where there were multiple tags on a question, and a code block with no comment was being assigned the wrong default language.


Equal and opposite reaction - forces coming in pairs - or just common sense?

I've never understood why the conservation of momentum law is taught in schools as "every force has an equal opposite reaction".   To me a gun's recoil is self explanatory; the explosion sits in-between the bullet and the back of the barrel and the gun and bullet fly in opposite directions (as would be expected). The bullet has a much higher velocity than the gun because of its lower comparative mass. Am I wrong here?  Same with stepping off a boat. You push against the boat and the mass differential between your body and the boat as well as the friction in the water enables you to jump off the boat onto the ground without falling on your face. The boat comparatively moves in the opposite direction minimally, but not because of some weird law, simply because you pushed it back!  To tell kids in school "every force has an equal and opposite force" is misleading I think. It makes it seem as if an equal mysterious force manifests out of thin air to keep the universe happy.   Just thinking - "direction of application" is only relevant to perspective, there really is no direction of application since the force and its counterpart occur simultaneously… so more accurately:   The total force can never be propagated along a single vector?


NullPointerException in regards to an ArrayList?

java.lang.NullPointerException     at videostore.BinaryFile.adderoo(BinaryFile.java:47)     at videostore.VideoStore.jButton1ActionPerformed(VideoStore.java:384)     at videostore.VideoStore.access$100(VideoStore.java:17)     at videostore.VideoStore$2.actionPerformed(VideoStore.java:189)   Line 47: if (videosList == null || videosList.size() == 0)  Line 384:BinaryFile.adderoo(vid);  Which refers to the following method:  public void adderoo(Video v) {         if (videosList == null || videosList.size() == 0) {             videosList = new ArrayList<>(10);         }         videosList.add(v);     }   line 17: public class VideoStore extends javax.swing.JFrame {  Line 189: jButton1ActionPerformed(evt);  Essentially I'm trying to add a Video object to an Arraylist I have created named videosList. However every time I try, I get that Exception and I'm not sure why, because I initialized the ArrayList with a size..   initializing the arraylist in my BinaryFile class: public static ArrayList<Video> videosList;  Then I have a method named load, which I run in my main videoStore class in it's constructor:  public void load() throws Exception {          BufferedReader br = new BufferedReader(new FileReader(FILE_NAME));         if (br.readLine() != null) {             try {                 File log = new File(FILE_NAME);                 FileInputStream fileIn = new FileInputStream(log);                 ObjectInputStream in = new ObjectInputStream(fileIn);                 ArrayList<Video> videosList = (ArrayList)in.readObject();                 in.close();                 fileIn.close();             } catch (Exception i) {                 i.printStackTrace();             }         } else {             ArrayList<Video> videosList = new ArrayList<>(10);         }         br.close();     }   The intention of this method is to check if a file contains an ArrayList already, and if it contains it, it de-serializes it and places it into the ArrayList.  I feel like I've covered all the stops, so I'm stumped as to why the exception is occurring.


Optimization of area of rectangle within semicircle

The semi-circle is given by $y=\sqrt{25-x^2}$  Find the length and width of the rectangle such that it's area is optimized.  How do I deal with problems such as these?


If you can't use “he”, “she” or “they” in a sentence, what do you use?

I was waiting for a plane to take off last week, when we had to taxi back to the terminal building to disembark a sick passenger. We weren't told whether the passenger was male or female.   I was thinking about how to tell people about it, but realised I couldn't say that 'He' or 'She' disembarked, because I didn't know the sex. I couldn't say 'They' because I knew there was only one and I couldn't say 'It', because it wasn't an object. Without saying 'The sick passenger' disembarked, what word could I use?


How do I change the User Profile location in Windows 10?

The default location for User Profiles are C:\Users.  I would like to move this location to another drive (i.e. D:\Users).  I've already been able to customize the library locations, however there are other things that I like to migrate as well.  Is there a simple way to change the default location of the User Profiles?


Import package.* vs import package.SpecificType

Would it suppose any difference regarding overhead to write an import loading all the types within one package (import java.*); than just a specific type (i.e. import java.lang.ClassLoader)? Would the second one be a more advisable way to use than the other one?


Gender neutral form of "Gallant Fraternity"?

So there's this concept in  of the "", an informal society of martial brothers and sisters dedicated to justice and defending the weak.   But the original term comes from Chinese, which is an almost entirely gender neutral language, and, use of "fraternity", at this stage of history, is problematic because it implies gender exclusivity, which was never the intent of the original Chinese term.   By the same token, "Gallant Fraternity" has a , so alternate proposals must also be aesthetically attractive.  Note: This is about the proper noun "Gallant Fraternity", which has extensive usage in English, not about the common noun "fraternity".       early 14c., "body of men associated by common interest," from Old French fraternité (12c.), from Latin fraternitatem (nominative fraternitas) "brotherhood," from fraternus "brotherly," from frater "brother," from PIE root *bhrater- "brother." Meaning "state or condition of being as brothers" is from late 15c. College Greek-letter organization sense is from 1777, first in reference to Phi Beta Kappa.   SOURCE:


Maybe this is answered somewhere else, but I didn't see it.  I am running Ubuntu 14.04. When I SSH into my machine, for example:  ssh <user>@<machineip> notify-send "Hello"   I don't see anything on the monitor where I am logged into the machine. If I prefix notify-send with DISPLAY=:0.0 or DISPLAY=:0 nothing different happens. I just never see any notification on the current session.  Is there some trick/switch to getting this working?  In case this isn't clear, allow me to reiterate: From Computer A, I SSH into Computer B. Within the SSH session, I wish to execute notify-send to run on Computer B. I expect a growl-type notification to appear on the monitor of Computer B.


Number of permutations for 2 sets of numbers such that internal order remains same.

Consider you have 2 sets of numbers A and B of size n and m respectively. Find the number of ways of arranging these numbers such that in the final output the order of numbers present in A and B remains same. Eg A={1,2,3} B = {4,5} One of the ways of arranging them is 1 2 4 5 3 Another way is 4 1 2 3 5 Notice how all the numbers of set A have same order  within themselves and same is true for numbers in B.


Very low performance of SO close review queue when using filtering by tag

I've just altered the tag filter in close review queue on StackOverflow to , because questions tagged  and not  were normally skipped by my filter.  Unfortunatelly, the next question in review queue takes very long time to load. It looks like there was no tag indexing in review queue or it was poorly implemented.   Please inspect the problem and fix it.


Why are Python's 'private' methods not actually private?

Python gives us the ability to create 'private' methods and variables within a class by prepending double underscores to the name, like this: __myPrivateMethod(). How, then, can one explain this  >>> class MyClass: ...     def myPublicMethod(self): ...             print 'public method' ...     def __myPrivateMethod(self): ...             print 'this is private!!' ...  >>> obj = MyClass() >>> obj.myPublicMethod() public method >>> obj.__myPrivateMethod() Traceback (most recent call last):   File "", line 1, in  AttributeError: MyClass instance has no attribute '__myPrivateMethod' >>> dir(obj) ['_MyClass__myPrivateMethod', '__doc__', '__module__', 'myPublicMethod'] >>> obj._MyClass__myPrivateMethod() this is private!!   What's the deal?!  I'll explain this a little for those who didn't quite get that.  >>> class MyClass: ...     def myPublicMethod(self): ...             print 'public method' ...     def __myPrivateMethod(self): ...             print 'this is private!!' ...  >>> obj = MyClass()   What I did there is create a class with a public method and a private method and instantiate it.  Next, I call its public method.  >>> obj.myPublicMethod() public method   Next, I try and call its private method.  >>> obj.__myPrivateMethod() Traceback (most recent call last):   File "", line 1, in  AttributeError: MyClass instance has no attribute '__myPrivateMethod'   Everything looks good here; we're unable to call it. It is, in fact, 'private'. Well, actually it isn't. Running dir() on the object reveals a new magical method that python creates magically for all of your 'private' methods.  >>> dir(obj) ['_MyClass__myPrivateMethod', '__doc__', '__module__', 'myPublicMethod']   This new method's name is always an underscore, followed by the class name, followed by the method name.  >>> obj._MyClass__myPrivateMethod() this is private!!   So much for encapsulation, eh?  In any case, I'd always heard Python doesn't support encapsulation, so why even try? What gives?


Prove $\left| \int_a^b f(t) dt \right| \leq \int_a^b \left| f(t) \right| dt$

I've been given a proof that shows the following:  If $f:[a,b]\to \mathbb C$ is a continuous function and $f(t)=u(t)+iv(t)$ then $$\left| \int_a^b f(t) dt \right| \leq \int_a^b \left| f(t) \right| dt$$ The proof begins by letting $\theta$ be the principle argument of the complex number $\int_a^b f(t)dt$ and there is one step in the proof I don't understand; can anyone explain to me why $$\int_a^b e^{-i\theta}f(t) dt=\Re\bigg(\int_a^be^{-i\theta}f(t)dt\bigg)$$  Would this not imply that the imaginary part of the left hand side is equal to $0$? I'm not sure why the LHS and RHS would be equal here.


Is there a relation between the pressure at a point in a fluid and the pressure on the surface of a horizontal object placed at the same point?

So if the pressure in a large fish tank 10 meters below water surface is 50 Glitches (didn't have a realistic number so I put an unrealistic unit), and a Pancake batfish stands still there for a while, does it experience pressure equal to 50 Glitches? , The answer should be yes; by looking at the derivation of the formula $P=\rho gh$  This question was an alternate question to whether the Pressure on an object midway in a fluid depends on the area of the object or not, and the answer is No if I'm correct,  but I also think that the pressure on the object depends on the area of the container, in other words if the batfish stand still for some more time and walls keep pushing towards it it will feel more pressure, but can't see the formula above saying anything about it, the derivation does though. What do you think?


Does max-pooling increase the receptive field?

I'm new in deep learning.   when applying convolution on the image , the receptive field is increased but when applying max pooling on the image, I don't know the receptive field is increasing or keep  for example  there's an image that has a shape (11,11) when applying convolution that has filters shape (3,3), stride=1 on the image, the output receptive field has 3 but when apply max pooling on the image, I don't know whether the receptive field is 1 or 3.  please Somebody tell me the answer. thank you!


Noise trap - Interior Scene with no glass materials

I want to get rid of the noise but I can't for the sake of god find out what is causing it. I am using an HDRI. I am not using glass materials. I blocked all the HDRI light with objects apart from 2 windows (no glass, no geometry, just 2 big openings). Here is a picture (32 samples) : (I am new to blender but I am very familiar with 3d environments) (HDRI is hidden by ''world-> ray visibility-> camera (uncheck)'' but checking it doesnt make any difference anyways)  EDIT: My question here lies on, why does this happen? The problem is solved, I can just increase the samples and activate the denoiser. The problem I have with this is that previewing with 32 samples is different than previewing with 100 or 500 samples. At one point I added a glass material and it acted as a noise trap and after removing the material, the noise trap persisted. I want to know why that happened.


Can "we" be used as a polite substitute for "you"?

Is it ever OK to use we as a substitute for you? Let me illustrate:  I am increasingly receiving emails from colleagues that contain sentences such as:   Can we have a look at this tomorrow please? Can we ensure that we do not...   Now these emails seem innocuous enough, but I know full well that these co-workers have no intention of partaking in the tasks in question.  Would it not be better to say:   Can you have a look at this tomorrow please? Can you ensure that you do not...?   Are these people trying to be considerate of my feelings by indirectly giving orders?  I find this use of we to be particularly grating, so some clarity regarding its correct use would be much appreciated.


Once I establish a ground plane in Eagle PC, how can I relieve it(remove spots locally)  such as under smd caps in a filter circuit to avoid impedance change. Andy-KM4TRT


The Download CSV link seems broken in SEDE query result window

I've created   which works nice. I would really like to download those results as an CSV file. Therefor I click on the provided link on the right hand side of the screen called Download CSV. The result is:  The webpage cannot be found  https://data.stackexchange.com/stackoverflow/csv/202355?UserId=187606 I expected: A file in CSV format. It looks like a regression of  Queries without a parameter work as advertised. Can this be fixed?


I have a new Asus F501A-XX385H laptop, with Windows 8 preinstalled and Intel HD 3000 onboard graphics, which seems to be problematic. No matter what I do, trying to install Ubuntu from a USB stick (the laptop has no optical drive) leads me to a black screen with no cursor. In fact, choosing any of the options leads to a black screen. SecureBoot and FastBoot are disabled. I have already tried:   Using two different USB sticks, with either 12.04.2 or 13.04. I can use them just fine on another computer (live session starts, etc.). Curiously, in the new computer I get a black and white, GRUB-like screen, while in the other I get the usual one with the different options. Increasing the screen's brightness. Using different recommended kernel options I have found for other cases (nomodeset,nolapic,acpi=off,acpi_osi=Linux,acpi_backlight=vendor, even i915.modeset=1 and i915.modeset=0).   Any ideas on how I could fix this? Thank you in advance!


How to Override "Blog pages show at most" in tag.php

I'm in the middle of developing a site () which features a single post on the home page, as determined by the "Blog pages show at most" option in Settings > Reading.  However, I've created a tag.php page where I'd like a complete list of posts (for the relevant tag) to be displayed. I've managed to find the code that can create that list:  <?php  if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

<a href="<?php the_permalink() ?>"><?php the_title(); ?>

  <?php endwhile; endif; ?>   The list is only returning one result though -- presumably because of the aforementioned "Blog pages show at most" setting.  So my question is this: how do I override this setting? To be more specific, what exact code should I insert on tag.php?  I have a feeling that I may have already seen the answer here on Stack Exchange but am too ignorant of PHP coding to implement it successfully. Your help would be much appreciated!  Cheers,  Tom


plot and annotate chi square distribution

My question is replacing Gaussian distribution with chi square distribution in following codes. So it should show a chi-square distribution instead of a normal distribution. Thanks in advance.   \documentclass{article} \usepackage{pgfplots} \begin{document}  \pgfmathdeclarefunction{gauss}{2}{% \pgfmathparse{1/(#2*sqrt(2*pi))*exp(-((x-#1)^2)/(2*#2^2))}% }  \begin{tikzpicture} \begin{axis}[  no markers, domain=0:8, samples=100,  axis y line = none,  axis x line* = bottom,  every axis x label/.style={at=(current axis.right of origin),anchor=west},  height=5cm, width=12cm,  xtick={2.5,5.5}, xticklabels = {$$ , $$}, ytick=\empty,  enlargelimits=false, clip=false, axis on top,  grid = major  ]  \addplot [fill=cyan!20, draw=none, domain=0:2.5] {gauss(4,1)} \closedcycle; \addplot [fill=cyan!20, draw=none, domain=5.5:8] {gauss(4,1)} \closedcycle; \addplot [very thick,cyan!50!black] {gauss(4,1)};  \draw [yshift=-0.3cm, latex-latex](axis cs:4,0) -- node [fill=white] {$0.35$}  (axis cs:4,0);  \draw [yshift=+2cm, latex-latex](axis cs:2.5,0) -- node [fill=white] {$H_0$  Do not Reject} (axis cs:5.5,0);  \draw [yshift=+2cm, latex-latex](axis cs:0,0) -- node [fill=white] {$H_0$  Reject} (axis cs:2.5,0);  \draw [yshift=+2cm, latex-latex](axis cs:5.5,0) -- node [fill=white] {$H_0$  Reject} (axis cs:8,0); \end{axis}  \end{tikzpicture} \end{document}


What's the best day of the week to buy airfare?

Is there any day of the week when airfares are statistically the cheapest to buy?


What are the properties of "position, velocity, acceleration, rotation" collectively named?

They say naming things is one of the hardest problems in computer programming. They were right.  Given the pseudocode below, what is a more appropriate name for this collection of properties? "Course", "Route", "Heading", "Orientation" all don't capture it.  class NewtonianStuff { // <-- Needs a better name   vec3 position, velocity, acceleration; // <-- What is this group called   quat rotation; };  class SpaceShip {     NewtonianStuff xxxxxx; // <-- What do you call that };   Perhaps that collection is too abstract. What is the formal name for this collection of properties?  vec3 position, velocity, acceleration;   The best I can come up with is "PositionAndDerivatives", which doesn't really flow.


Do ability scores force a character to act in a certain way?

As a group, most of the players at our table are fans of rolling for stats. This leads and has led to multiple amazing characters and some .. a bit less amazing.  Something that is rather consistent is that players are often good at emphasizing what their characters are specialized in based on their stats (for example: the charismatic bard, the nimble rogue, the strong barbarian). The thing that lags behind in this concept are often the characters flaws that come from their lower skills.  The roll of the dice gives us a basic way of handling this, because the character will simply fail a lot of the checks related to this skill, but this only goes so far.  An example was our recent very charismatic (17) warlock who wasn't that blessed when it came to Intelligence (7). The problem here is that the player behind the character is far from dimwitted and has an in-depth knowledge of the lore of the world that's being played in.  The question is two-fold:   Should a DM enforce a base-level of adherence to a characters stats when they're RPing? If yes, what would be a good way of enforcing this?    Shouting "Your character doesn't know that, they are not intelligent enough!" whenever the player makes a profound observation about History or the use of Arcana will most likely turn stale very quickly.


How do I write content to another browser window using Javascript?

I've opened a new window with window.open() and I want to use the reference from the window.open() call to then write content to the new window.  I've tried copying HTML from the old window to the new window by using myWindow.document.body.innerHTML = oldWindowDiv.innerHTML; but that's doesn't work.  Any ideas?


I would appreciate help with the following question  Let $X\subseteq\mathbb{R}$ be a bounded set. Define $-X=\{x\in\mathbb{R}\mid-x\in X\}.$ Prove $\sup X=-\inf (-X)$


Why do we use two p's instead of one when spelling "equipped"?


Qiskit gates in LaTeX representation: notation meaning

I started working in Qiskit, and here is an example of how gates of a circuit are represented graphically in LaTeX format:    Obviously, $R_y(\theta)$, is a y rotation by a certain angle. But all the other gates look like $U_i(x,y,z)$, and I don't know how what they actually do. What is their matrix representation? What do the numbers $i,x,y$ and $z$ mean?


What are the most efficient steps I can take to be accepted into a great PH.D Psychology Program?

I want to get a PhD in psychology. I have a computer Science /minor in math with a 2.9. I worked two jobs while in school (as a software technician and a Calculus tutor) and I have one year experience as a SW engineer outside of school. I am currently 25 years old.   This question is not the same as being a weak student and getting in to a great program. Rather this is a complete shift from major and discipline; while also being semi-borderline.


Binary diff tool which would work the same way as diff(1) tool

Do you know Unix/Linux diff(1) tool works? It shows which lines were added and removed between 2 text files, and shows it in the human-readable form. I need the same kind of tool for binary files - except for working on sequences of bytes, not text lines. It still must produce human-readable output (in hex thus).  Note that I don't need cmp -l which diffs binary files byte by byte and can't detect insertions and removals. Note that I don't need xdelta or bsdiff which produce non-human-readable output. Actually, I'm a bit astonished that neither xdelta nor bsdiff offer some kind of human-readable representation for patches they produce. IMHO, such option should be there first, and only then an option to produce an efficient binary patch. After all, how the authors of those tools verify them to work right? And don't they think users will want to verify them either, to make sure that they indeed produce sane and minimal patches?


I used the move command and all files disappeared

I was moving all data to another folder and made 1 mistake and run this commmand  mv * /*   all files have disappeared now. How can I find them? Or are they deleted?


NullPointer exception while passing a value from activity to Interface method and retrieve in fragment android

After searching, finally, I find out that I should use an interface to pass a list of objects from an activity to a fragment. before that, I made my object class Perceilable to send in as an argument to fragment, but it seems that it's not a good approach because I have to initiate my fragment for the first time without setting any argument and after my list of the object is ready I can pass it. So now I want to send my list via Interface but I get this error :  java.lang.NullPointerException: Attempt to invoke interface method 'void com.x.x.Interfaces.CurrenciesSync.syncCurrencies(java.util.List)' on a null object reference     at com.x.x.DashboardActivity$1.onResponse(DashboardActivity.java:124)   here is my interface file codes:  public interface CurrenciesSync {   public void syncCurrencies(List<CurrencyModel> currencies);  }   here is the way I set currencies List in DashboardActivity to syncCurrencies method:  public class DashboardActivity extends AppCompatActivity {         CurrenciesSync currenciesSync;   currenciesSync.syncCurrencies(currencies);     } And how I implement it's method :  public void syncCurrencies(List<CurrencyModel> currencies) {  // using currencies here }


Which is correct?   To back up data. To back data up.   The context is the following: He was careful enough to perform tests and [back up data | back data up] to avoid any problems.


Native JS Map prototype is overwritten in Visualforce page w/ a header

I've been exploring implementing Angular 2.0 in Salesforce custom pages and found that if I set showHeader=true in the VF page, I run into some issues.   It looks like including the header loads "sfdc/main.js", which defines the browser's Map() function without checking if one already exists. This removes some needed prototype functions that are native to ES5/6 such as "set" (needed in Angular 2) and "delete" (needed for an ES6-shim).   I've found that even including an ES5 shim before the ES6 one in attempts to restore some of these prototype methods does not work. If I set showHeader=false, "sfdc/main.js" is not loaded and everything works fine.   Is there a recommended way around this, or is it possible to update "sfdc/main.js" to conditionally define Map() if one does not already exist? It looks like it leaves out quite a few native functions supported in modern browsers.  Thanks


Find all the functions for which $f(x^{2})-f(y^{2})=(x+y)(f(x)-f(y)):\forall x, y\in\mathbb{R}$

Hey guys I need help on solving the following problem Find all the functions for which : $$f(x^{2})-f(y^{2})=(x+y)(f(x)-f(y)):\forall x, y\in\mathbb{R}$$ I started with taking $x=y$, and there you see that the both sides are equal to $0$, therefore the solution is the function $y=x$, but after that I can't prove that that is the only solution (if it is the only). Would appreciate some help, thanks.


Is buying domain names for property addresses and redirecting them to a realty website a viable SEO strategy?

I'm a Linux engineer, and I know quite a bit of programming languages, and can create a website pretty easily, but what I suck at, is SEO. That's an art all by itself, and that's what I need some help in.  My parents are realtors, and they're going through a bit of a dry spell for a while, and I would really like to help them so they can get some bills paid. They have a couple special houses they want to sell, and I thought that maybe me, as a technical junkie, can help a bit.  I spotted  which explains how some realtors are registering the street address of a house they're marketing, as the domain itself, and that's what I want to do.  For example, if the domain is 12345 W McGyver Rd (Fake), then I would have  registered the following domains:   12345WMcGyverRd.com 12345WestMcGyverRoad.com   The domain just points to a vhost on a server I own, which returns a 301 redirect to redirect to my parents real-estate website, specifically to the page that contains the data of the specific house.  The goal is to have the website show up as a search result when someone types the address into a Google search. I figure having the domain as close to the actual address should help.  I went  and submitted the two domains, hoping they would get indexed, but it doesn't look like it's worked..  Are there any SEO tricks I can do? I would be willing to add some PHP to the page that does the redirecting, maybe check to see if its a Google crawl bot and return some useful data? I'm just not sure the best way to do that.  If anyone has any SEO tricks they can suggest that would help, that would be amazing. Im not trying to play the sympathy card, but I just really want to help my parents :)


Limit of the infinite sum of $\frac{n}{2^n}$?

How should I rewrite the sequence so that we have a form that we can easily calculate the limit?


`#bulb{width:100px; height: 100px; border: 1px #333 solid; margin: 20px;}     #bulb.active{background: yellow;}`   <button type="button" id="toggle">toggle</button>  <button type="button" id="getState">getState</button>  <button type="button" id="off">off</button>  <button type="button" id="on">on</button>  <button type="button" id="blink">blink</button>

         var $ = function(el){             return document.getElementById(el);         };         var bulb = $('bulb');         var lightBulbAPI = {             toggle : function(){                 if(bulb.className == 'active'){                     bulb.className = '';                     }else{                     bulb.className = 'active';                 }             },             getState : function(){                 if(bulb.className == 'active'){                     console.log("ON");                   }else{                     console.log("OFF");                  }             },             off : function(){                 if(bulb.className == 'active'){                     bulb.className = '';                     }                 bulb.className = '';                 clearInterval();             },             on : function(){                 bulb.className = 'active';             },             blink : function(){                 setInterval(function(){                     console.log(this.off);                     if(bulb.className == 'active'){                         bulb.className = '';                         }else{                         bulb.className = 'active';                     }                 }, 300);             }         };          $('on').addEventListener('click', lightBulbAPI.on);          $('off').addEventListener('click', lightBulbAPI.off);             $('getState').addEventListener('click', lightBulbAPI.getState);           $('toggle').addEventListener('click', lightBulbAPI.toggle);          $('blink').addEventListener('click', lightBulbAPI.blink);


I have some little problem with my file. There are lot of included PDF files, without any \caption and \section. I need to create a table of content with these PDF files and function hyperref. Can somebody help me please ?  my code below :   \tableofcontents \newpage   \phantomsection          \addcontentsline{toc}{chapter}{something, name \textit{title}} \shorthandoff{-} \includepdf[pages=-]{upload/something}   \end{document}


Making a t-distribution with sample size less than 30

Our teacher said that we can use the graph of a standard normal distribution whenever the sample size is greater than or equal to 30 because of CLT. How can we make a graph of a $t$-distribution if the sample size is less than 30? What I mean is that if the standard normal distribution is like $$\frac{1}{\sqrt{2\pi}}e^{-\frac{1}{x^{2}}},$$ what should a $t$-distribution be?


The system changes my partition mount name with a numeric suffix dynamically (Example: Name becomes Name1, Name2, and so on).  I appreciate all your suggestions to fix this problem in my Ubuntu 16.04 LTS.  Thanks


How do I create a villager with custom trade offers?

I'm trying to set up a shop system in a vanilla minecraft realm and villagers seem like the most streamlined method of doing so, however I'd also like to make it so that other players on the server can program their own villager, or have me program it for them as an operator so that other players can trade with each other through the villager. I figure that since villagers now have a secret inventory, they can collect items, but I was wondering if there's any way to access the items traded to them or if they just disappear.  Currently my thoughts are that a player would initiate a trade, the villagers sells would be linked to individual slots in a chest and the villager buys could be linked to another chest, allowing the player to fill a chest and thus 'program' their villager, and that finally a third chest would be filled with the item the villager receives, while the chest containing the trades would decrement the specific number of the item in the relevant slot.


Prove or disprove - If a divides b and b divides a does a=b

Prove or disprove: If a, b belong to the set of positive integers, and if a divides b and b divides a, then a=b. Does this hold if if a,b are not necessarily positive? Why or Why not?   Here is what I have:  If a and b are integers, we say a divides b if there exists an integer k so that b=ak. Thus:  $$b=ak$$  $$a=bj$$   $$a=akj$$ $$kj=1$$   Since a divides b and b divides a, we know that k,j must both be integer, which means k and j must both equal 1 or -1. This means:   $$a=b$$  This proves that a=b when we assume that a,b are both positive integers.   For the second part of the question, I am asked if I can still say a=b if the assumption about a, b is relaxed so that a,b belong to the integers (not the positive integers.) I think The answer is no, I cannot say that a=b for every case when we allow a,b to also be negative integers.   Here is my reasoning (I use the same idea that a=bj and b=ak here)   $$+/-a=akj$$  $$+/-1=kj$$   So $ |a|=|b|$ but not $a=b$  I'm very new to proofs so any suggestions or thoughts are greatly appreciated.


Empty Cartesian Product, what is $\mathbb{R}^0$?

What is $\mathbb{R}^0$? More specifically, I assume, the Cartesian product: $$\prod_\emptyset \mathbb{R}.$$ Is there a convention here?  I ask because I've stumbled across a definition in topology where the $0$ dimensional closed unit ball and interior of the $0$ dimensional closed unit ball are equal and seem to be a point (although I'm just assuming the last part by context, hence my confusion).


What is the need of having a key schedule before executing AES

Can someone explain to me why does using a key schedule make's AES more secure if instead of calculating and adding your round key's, you just keep on adding the cipher key. ?


Proof of greatest integer theorem: floor function is well-defined

I have to prove that  $$\forall x \in \mathbb{R},\exists !\,n \in \mathbb{Z} \text{ s.t. }n \leq x < n+1\;.$$  where $\exists !\,n $ means there exists a unique (exactly one) $n$. I'm done with proving that there are at least one integers for the solution. I couldn't prove the "uniqueness" of the solution, and so I looked up the internet, and here's what I found:  Let $\hspace{2mm}n,m \in \mathbb{Z} \text{ s.t. }n \leq x < n+1$ and $m \leq x < m+1$. Since $n \leq x \text{ and } -(m+1) < -x$, by adding both, $n + (-m-1) < (x-x) = 0$. And (some steps here) likewise, $(x-x) < n+m+1$.  Now, can I add up inequalities like that, even when the book is about real analysis (and in which assumptions are supposed to be really minimal)? Or should I also prove those addition of inequalities? Thank you :D


sudo apt-get update   gives me this error:   Err:20 http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu disco Release   404  Not Found [IP: 91.189.95.83 80] Reading package lists... Done                       E: The repository 'http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu disco Release' does not have a Release file.   I don't know if this is related but sudo in general also gives me this error:      Traceback (most recent call last):   File "/lib/security/howdy/compare.py", line 17, in <module>     import cv2 ModuleNotFoundError: No module named 'cv2' Unknown error: 1


When we talk about an event, should we use "It is" or "This is"?

When we talk about an event, which expression is more correct: "this is" or "it is"? Is there any difference in their meaning?   Please, don't ask me about Jane again. This is completely redundant. Please, don't ask me about Jane again. It is completely redundant.


Using a mid 2010 27" iMac as a second screen for a mid 2015 27" 5k iMac

I would like to use my ageing 27" iMac (mid 2010 model) as a second screen for my mid 2015 5k model as my even older 24" Cinema Display finally gave up the ghost. I have tried hooking them up using a lightning cable and putting it in target display mode using the standard Command+F2 and also Command+Fn+F2 but nothing happens. Do I need a thunderbolt > mini displayport cable/adapter or mdp > mdp? It would be great if anyone can share any experience of this before I buy one. Thanks.


They don't always wear a hat, but when they do, it's pointy.   Why do fantasy writers depict pointy hats as the headgear of choice for Witches and Wizards?


Is it possible to watch GRUB last boot time?

Is it possible to watch when "Grub" start if we use dual boot, and want specific boot/shutdown time. --> so we can know that when the system boot up for all the OS inside.


After running this code  #!/bin/bash rm -f myfile myfile-individual echo "Greetings, foobar!" > myfile MYSTRING="Jack" cat myfile | sed 's:foobar:$MYSTRING:' > myfile-individual   we end up with   Greetings, $MYSTRING!   in myfile-individual.  What should be the (sed/bash) script for the output to be instead  Greetings, Jack!


How can I prove a function on product space lebesgue measurable?

Let $X$ and $Y$ be two measurable spaces. I want to construct a function $f : X\times Y \to \mathbb{R}$ such that $f(x,\cdot) : Y \to \mathbb{R}$ is measurable for all $x \in X$ and $f(·,y) : X \to \mathbb{R}$ is measurable for all $y \in Y$, yet $f$ is not measurable in the product space. How can I construct such a function?


How does Current relate to Voltage in their behavior in our physical world

I'm really an electrical noob who tries to understand voltage, current and resistance. I know the formulas and can somehow come up with basic explanations about the physics of electricity. However, what I really don't get is the different effect of current and voltage in a circuit.  From what I understand is that power is voltage times current. I'd like to know some physical properties of a high voltage based power in comparison to a high current based power. So far I only know that high voltage power can be transmitted with much less losses. But what are other physical effects of the two types of power? How does a resistor react on high current vs. high power? I don't understand why 1000v with 1amp has a different effect on resistors than 1v with 1000amp. Maybe someone can provide me with some examples to understand the difference a bit better?  Thanks!


I have one array like this arr1 = ['name','age','sex'] and another array that has values of this array like val1 = ['Jone','20','male'] . Now I want to make a dict that will look like this --> val = {'name':'jone','age':'20','sex':'male'}  current I am doing that dict this way -->   val = {} val['name'] = val1[0] val['age'] = val1[1] val['sex'] = val1[2]   Is there any better way to do this?


How can I list the X and Y values on the outside of a 6x6 matrix, as well as list the axis names outside of them? (see image)


does anyone know of a way of running an active directory domain controller, in amazon web services, and connect it to a physical pc outside of the network. Many thanks


I would like to write the following conversion factor in LaTeX, I've been looking in different manuals and I can't find anything. I hope you can help me.    I have come to the following, but the problem is that I am not able to put spaces between spaces. And, ideally, things that are the same could be crossed out:  30 mL dis \times \frac{0,1 mol NaOH}{10^{3} mL} \times  ...


Does a player need to complete a full turn (i.e. 4 actions, pickup, infect) if during the action portion the final disease was cured? I only ask because there was only 1 player card left in the deck and I wouldn't have been able to complete a full turn, which in the rules, signifies that players have lost. However, I knew that I could cure the final disease in one action.


Suppose $f_n\rightarrow f$ pointwise. Show that if each $f_n$ is continuous then $f$ is also continuous.

I know that this result is true for uniform convergence, but I'm struggling to find a counter example of such function.


I have recently purchased my new laptop ASUS Vivobbok S14. i7, 8gb, 512gb version which comes with windows 10 pre installed. I am willing to install ubuntu 18 on this machine. Is there a support for my machine?? I have been reading many posts and came to know that there are backlight keyboard and wifi issue after the installation. And the battery backup is also reduced as compared to windows. I am a programmer, I need to upgrade only if there is full support/drivers available for my machine.


As the authors pointed out in  (p. 2), the following evaluation which was in Gradshteyn and Ryzhik (sixth edition) is incorrect (and has been removed). $$ ''\int_{0}^{\infty}\frac{1}{\left(1+x^{2}\right)^{3/2}} \frac{1}{\sqrt{1+  \frac{4 x^{2}}{3\left(1+x^{2}\right)^{2}}+\sqrt{1+  \frac{4 x^{2}}{3\left(1+x^{2}\right)^{2}}}}} \mathrm{d}x = \frac{\pi}{2\sqrt{6}}'' \qquad (*) $$ A numerical evaluation gives $0.6663771 \cdots$ on the left hand side and $0.64127491 \cdots $ on the right hand side.  I have not succeeded to correct $(*)$.  Do you have any idea on how to evaluate the above integral?


using moderncv, how can I get rid of an empty line below address

I am using moderncv 2.0.0 2015-07-28 to build my resume, but I got an empty line below address, how can I get rid of it?  \documentclass[11pt,a4paper,sans]{moderncv}  \moderncvstyle{banking}  \moderncvcolor{blue} \usepackage{lipsum} \usepackage[scale=0.75]{geometry}   %---------------------------------------------------------------------------------------- %   NAME AND CONTACT INFORMATION SECTION %----------------------------------------------------------------------------------------  \firstname{XX}  \familyname{XX}  \title{Résumé} \address{address1}{address2} \mobile{(123) 687 1709} \phone{(123) 753 3208} \email{XXX@gmail.com}  %----------------------------------------------------------------------------------------   \begin{document} \makecvtitle % Print the CV title   The output is    How can I remove the empty line between address1-address2 and the contact information?


everyone knows about bash vulnerability "CVE-2014-6271", I'm trying to update bash using below command.  apt-get update && apt-get install --only-upgrade bash   but i'm getting bash is already newest version.  Reading state information... Done bash is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 47 not upgraded.   and its still vulnerable for "CVE-2014-6271".


How do you check for whether a device is in a wifi deadzone?

How do you check whether your device is in a wifi deadzone? Specifically, I have a 2007 Macbook.  Environments:   At home  At public places with wifi Hotel wifi setups