How to get first one from Sequence Index python

I have following sequence index:  [{u'matches_template': 0, u'plate': u'EA7THE', u'confidence': 92.405113}, {u'matches_template': 0, u'plate': u'EA7TBE', u'confidence': 83.526604}, {u'matches_template': 0, u'plate': u'EA7TRE', u'confidence': 82.455276}, {u'matches_template': 0, u'plate': u'EA7T8E', u'confidence': 82.432587}, {u'matches_template': 0, u'plate': u'6A7THE', u'confidence': 80.914902}, {u'matches_template': 0, u'plate': u'BA7THE', u'confidence': 80.913948}, {u'matches_template': 0, u'plate': u'EA7THB', u'confidence': 78.234192}, {u'matches_template': 0, u'plate': u'GA7THE', u'confidence': 78.146278}, {u'matches_template': 0, u'plate': u'EA7TE', u'confidence': 77.999985}, {u'matches_template': 0, u'plate': u'A7THE', u'confidence': 77.449036}, {u'matches_template': 0, u'plate': u'EA7TH6', u'confidence': 76.716492}, {u'matches_template': 0, u'plate': u'6A7TBE', u'confidence': 72.036392}, {u'matches_template': 0, u'plate': u'BA7TBE', u'confidence': 72.035439}, {u'matches_template': 0, u'plate': u'6A7TRE', u'confidence': 70.965065}, {u'matches_template': 0, u'plate': u'BA7TRE', u'confidence': 70.964104}, {u'matches_template': 0, u'plate': u'6A7T8E', u'confidence': 70.942375}, {u'matches_template': 0, u'plate': u'BA7T8E', u'confidence': 70.941422}, {u'matches_template': 0, u'plate': u'EA7TBB', u'confidence': 69.355682}, {u'matches_template': 0, u'plate': u'GA7TBE', u'confidence': 69.267769}, {u'matches_template': 0, u'plate': u'A7TBE', u'confidence': 68.570526}]   I tried for loop to get only plate values from this sequence index.  EA7THE EA7TBE EA7TRE EA7T8E 6A7THE BA7THE EA7THB GA7THE EA7TE A7THE EA7TH6 6A7TBE BA7TBE 6A7TRE BA7TRE 6A7T8E BA7T8E EA7TBB GA7TBE A7TBE A7TBE   This is code for it. But I don't know how to get first of these sequence index. Please help to get first plate value of it.   for candidate in plate['candidates']:           print(candidate['plate'])    I would like to know how to get plate number of maximum confidence value. I know this is stupid question. Sorry for that.


In Adobe Illustrator, I need to combine multiple compound paths and paths into a single object or shape

I have a floorplan diagram which consists of over 100 different paths and compound paths.  I need to combine all of these elements into a single shape layer.  I have tried selecting all of them and using both the "Unite" and "Merge" options in the Pathfinder window.  This didn't work.  I have also tried "Make Compound Shape."  Not only does this not create a single shape layer, it also messes up the drawing by creating blocks of color where there were none before.  I have even tried a hack workaround by copying all of these paths and compound paths in Illustrator, pasting them into Photoshop, and creating a single shape layer out that, which I could then copy back into Illustrator.  The trouble is, as soon as I click "combine," Photoshop freezes and crashes.  I guess the shape just has too many points for it to handle.  It's too large a file.  What can I do to create a single shape layer?


Find the sum of series $\sum_{n=0}^{\infty}\frac{z^{kn}}{(kn)!}$

$$\sum_{n=0}^{\infty}\frac{z^{kn}}{(kn)!}$$  Later edit: Is this correct?  $$e^{z\epsilon_p} = \sum_{n=0}^{\infty}\frac{z^n\epsilon_p^n}{n!}$$  $$\sum_{p=0}^{k-1}e^{z\epsilon_p} = \sum_{n=0}^{\infty}\frac{z^n}{n!}\sum_{p=0}^{k-1}\epsilon_p^n $$  $$\sum_{n=0}^{\infty}\frac{z^{kn}}{(kn)!} = \frac{\sum_{p=0}^{k-1}e^{\epsilon_p^nz}}{k} $$


I'd like to keep track within Trello of things I've asked others to do, including clients, partners, etc. I can't really ask them to create a login in Trello just to help me. So is there a way to identify that this card is not for me to do something but actually for someone else, other than just putting their name in the title obviously ? Ideally, I'd like to be able to add them as "ghost member" or something like that. By the way, it would be nice to have a suggestion board in Trello itself where users can suggest things.


iPhone asks for Mac password (or Mac asks for iOS password)

During iPhone update to iOS 10.3.1, I was asked for my password using the correct machine name for my Mac mini. To be clear, the request was not for my iCloud password, my actual local user account password for macOS. This can also happen in the other direction - setting up a Mac may ask for verification for you to enter your iPhone / iPad passcode (and not your iCloud password)  I could not find any information about this kind of access. I was thinking it was security for iCloud and possibly related to two step authorization or two factor authorization. This is the first time I can think of that I entered a desktop password outside of that actual desktop.  I don't have a screen shot but I recall an implication that some files in my Mac are encrypted and need my password. '... need to enter the password for .'   Are there settings I can I control this assuming it's a legitimate part of iCloud setup process or iOS setup process?


Why there are many scenes in anime that take place on the roof?

Why there are many scenes in anime that take place on roofs, particularly the roof of schools?  School roof seem to be a popular place for students who want to be alone with no one else there. Sometimes they come in for lunch, or just relax there.     Angel Beats!, Boku wa Tomodachi ga Sukunai, Kampfer, Mahou Shoujo Madoka Magica  This is also on the roof, but it's hopital roof  The Disappearance of Haruhi Suzumiya  They even use it for fighting scene  Ichiban Ushiro no Daimaou  Sometimes there's even a garden on the roof of the school.  The World God Only Knows  Any reason why does this common occurrence?


How to make Windows 7 default in grub menu?

How to change the label to make Windows 7 to be a default on this screen?


Simultaneous installation of Firefox legacy and Firefox Quantum?

I do not want an update to kill all my add-ons, but also would like to enjoy the advantages of FireFoX qua**um.  How can I install one of them next to the other one?  Linux can be installed without overwriting Windows/default OS (some PCs ship FreeDos). But what about applications?  Windows allows installing onto an alternative directory.


In the Star Wars saga, one of the most iconic weapons of the Empire was the Death Star: a self sustained weapons platform the size of a moon, with the capacity to destroy a planet. in A New Hope, we see the first Death Star in close proximity to the planet Alderaan, holding the planet hostage as the Empire tries to deduce the location of the Rebel Alliance's headquarters. In Return of the Jedi, we see the second Death Star in "dry dock" over the forest moon of Endor as it is being constructed.  My question is: How did the Death Star move? I imagine a spherical space station the size of a moon would be utterly massive, requiring a massive amount of thrust to move it. If it was constructed in low orbit of an inhabited planet/moon, the gravitational field would be immense, consisting of the planet/moon's gravity, and the Death Star's own considerable gravity. Breaking that gravitational field would be a massive task, yet we see no thrusters or engines on either Death Star. Were they hidden, stored under the station's surface while not in use? Was the station towed by another vessel?


Why might it be silly to have a 2-step Wizard?

it's stated that it's silly to have a 2-step wizard. What are the reasons for this and is it really all that bad to have a 2-step wizard process?      In either case, the hard part of designing this kind of UI is striking a balance between the sizes of the chunks and the number of them. It’s silly to have a 2-step wizard, and a 15-step wizard is tedious. On the other hand, each chunk shouldn’t be overwhelmingly large, or you’ve lost some benefits of this pattern.   For my interface there is a 2 step process and I feel that in order to visualize that in a recognizable manner it would be best to use a wizard-like interface.   Would this really be silly?


I just came across a user who has been suspended for over 10 years (to 'cool down'). This seems unrealistic, as we can see that 10 years ago SE didn't even exist (meaning, a lot can change in that time period). It seems unlikely that a moderator will impose a suspension of that duration, as a year or 5 years should achieve around the same result.  That leads me to wonder, are suspensions automated?


From a little research done it seems as though they would create subatomic particles (maybe electrons?)If so, would photon collisions technically create matter? Is this a widely thought of theory?


$\vert\mathbb{Q}^m\vert = \vert\mathbb{N}\vert$. Proof

To start with I'm not completely understand what $\mathbb{Q}^m$ is. Is it the number of all elements in $\mathbb{Q}$ that was taken to some power $m$?  To show that two sets have the same cardinality we must introduce a map $f: \mathbb{N} \longrightarrow \mathbb{Q}^m$ that would be a bijection, but I got stuck with it. Can someone please show me a proof or give a hint?


I am wondering if there are any people out there also wondering why there is no Stack Exchange website for Interior Designers. The  is more DIY contracting based and for technical driven questions.


Imagine you are biking, and you come across a ledge. I want to figure out what minimum velocity do you need to bike at to overcome a ledge, of some height $H$.   Roughly, it looks something like this:   The wheel is essentially a thin ring, with mass $M$, radius $R > H$, velocity (moving rightward) $v$, and angular velocity $\omega$. We know that the wheel is purely rolling so $v=\omega r$, as long as it is on the rough surface.   I know that energy at the bottom has to be more than the gravitational potential energy of the wheel at the top (the limiting case is when the wheel has no velocity when it mounts the edge). Therefore, $$\frac{1}{2}I\omega ^2 + \frac{1}{2} Mv^2 = MgH$$ where $I$ is the moment of inertia.   I do not think this all you need to know, though. As in you could be going really fast, but a bike won't be able to climb the Empire State Building. Can we conserve angular momentum about the point of contact between the ledge and the wheel? Does the normal force do any work on the wheel?  How do you go about finding the minimum velocity required to climb the ledge?


Setting a from address in SingleEmailMessage

I want to set a from address in a salesforce SingleEmailMessage, but can't see a way to do this and there is no standard method described in the documentation.   I want the email to be sent from doNotReply@blahblah.com, however, the email address of the user editing the record (which triggers the email send) is used as from address.  I'm using the following code:  mail.setReplyTo(fromaddress); mail.setSenderDisplayName(fromaddress);   But my code only changes the display name, not the email address.  Full code:   public static void sendSingleMail(id objId, ID templateId, string fromaddress) {      Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();     mail.setReplyTo(fromaddress);     mail.setTemplateId(templateId);     mail.setTargetObjectId(objId);     mail.saveAsActivity = false;     mail.setReplyTo(fromaddress);     mail.setSenderDisplayName(fromaddress);      ErrLogger.logger('Email being sent to :');     ErrLogger.logger('objId found:  ' + objId);     ErrLogger.logger('templateId found:  ' + templateId);     ErrLogger.logger('fromaddress found:  ' + fromaddress);      Messaging.sendEmail(new Messaging.SingleEmailmessage[] {mail}); }


textarea not shrinking when deleting character

I am trying to use Javascript to shrink and grow automatically as the height of the scroll is increasing. The growing the height of textarea is achieved but when I am deleting the texts I can't figure out how to shrink the size.... I don't want to use the jQuery functions. My code is: <html> <head>   <script>     function func() {     var ta = document.getElementById('mytexta');     ta.value+=ta.scrollHeight+' '+ta.clientHeight;     if(ta.scrollHeight>ta.clientHeight)       {         ta.style.overflow='hidden';         ta.rows+=1;       }                      }   </script> </head> <body>    <textarea class="mytext" onkeyup="func()" id="mytexta" style="overflow:hidden;">Here we go</textarea>   </body>   </html>


Showing that in a well ordered ring homomorphic to $\mathbb{Z}$, there are no elements between zero and the ring's identity.

I'd like to prove the following statement:     Given a well-ordered ring $A\neq \emptyset$ with identity $I$ and a   homomorphism $\phi: \mathbb{Z}\to A$ such that $\phi(n) = nI$, then   the set       $$\left\{ a\in A: 0<a<I \right\}$$      is empty.   If $\phi$ was surjective (or bijective), then this would obviously be true. (So, I suspect that that's the case.) But, how could I then prove that?


Does domain name affect seo ,, what if I have only 1 keyword in domain name ,, or no keyword in domain name ,,, a want to start a tech blog , is having "bit' in domain name good/OK?  Its not gonna be a electronics related blog just purely tech stuff (except ec) ,, Q seo effects of  having a top level domain vs a national level domain (.com/.net vs .in)  Q .com vs .net.   Seo affects


Suppose that in a conversation, our conversational partner just said something completely new to us, and we want to express that we didn't know (or haven't known) about it before. For example,  A: Some dictionaries will tell you whether a noun is countable or not. B1: Oh, I didn't know that. B2: Oh, I haven't known that. B3: Oh, I didn't know that until you mentioned it. B4: Oh, I haven't known that until you mentioned it.  Which responses are possible? (I think all are possible.) Which one is the most likely response by a native speaker?


how to avoid screen termination once the job is done

using a shell script i am ceating multiple screen in which i m running rsync cmnd with below syntax, n i m able to do so.  screen -dmS "$SESSION_NAME" "$COMMAND" "$ARGUMENTS"   but as soon as rsync completed , the screen which was generated with above syntax , automatically got terminated.  is there any way to avoid screen terminations ??


I have to questions. The first one is why when we run this function we have ConcurrentModificationException ?   public static void testList() {     List<String> list = new ArrayList<String>();     list.add("str3");      for (String st : list) {         if (st.equalsIgnoreCase("str3")) {             list.remove("str3");         }     }     System.out.println(list); }   I thing, because enhanced for use Iterator (which checks modificationsCount), but I ask to be sure. Is that the reason for the exception.  The second question is if I useCollections.synchronizedList(new LinkedList<Something>()); can I use 2 or more enhanced for loops? For example I have to threads and at some time the first one remove element from the collection and at some time the second one add elements in collection. I thing that it should be thread save even when we use iterator (I thing that enhanced for use iterator). Thanks in advance.


Metal dust/shavings in food from knife wear?

I've been wondering about this for a while, since getting interested in knife sharpening.  When using a knife, it will get duller. One (the primary) reason being that you "bend" the edge. You fix this using a honing steel.  After a while though, you need to sharpen the knife again.  Another setting: If you have a brittle knife and/or mistreat your knife you will chip it.   As far as I can tell, this should mean that small pieces of metal (dust, shavings, etc.) come lose, and then likely get in the food.  Is this correct? Are there no health considerations when digesting small pieces of very sharp metal?


Impossibility of constructing a continuum-size linearly independent set in $\Bbb R$

This is a response to the following exchange at    [Bill constructs a $\aleph_0$ linearly independent set in $\Bbb R$]  Can you extend the idea of this proof to get the right dimension? Currently, you only have a countably infinite independent set, but the dimension is size continuum. –   I believe the answer to this question is no, for the following reason. Suppose we have a spanning set for $\Bbb R$ over $\Bbb Q$, of cardinality $\frak n$. Then by definition we have the cardinality equation ${\frak c}\le^*[{\frak n}]^{<\omega}\cdot \aleph_0$ (where $[{\frak n}]^{<\omega}$ is the cardinality of finite subsets, and $\frak m\le^*n$ means there is a surjection from $\frak n$ to $\frak m$). If $\frak n$ is finite, then we get ${\frak c}\le^*\aleph_0$ which is false, so $\frak n$ is infinite (but not necessarily Dedekind-infinite). If we assume the axiom of choice, then the equation reduces to $\frak c\le n$, hence every Hamel basis is size continuum. But without AC I don't know any way to simplify the original equation to get anything stronger than "$\frak n$ is infinite". This is at best heuristic evidence for the original question, since it is considering a different problem (spanning sets instead of linearly independent sets). How could one show that there are no ZF-constructible $\Bbb Q$-linearly independent subsets of $\Bbb R$ of cardinality continuum?


Friend recursively changed ubuntu filesystem permissions

My buddy has full access to my Ubuntu 16.04 machine to host his website and doesnt know too much. He went into folder and went to change file permissions but instead ran   chmod -R /   to 775 or 755 he doesnt remember and I can't remotely get into the server to check.  It appears to be offline as i can't remote SSH, websites are down, like it appears to be completely offline but it isnt. I tried to login physically to it on root only to receive incorrect login when entering the username root without it even asking for a password. THOUGH the account that the command was executed form can be logged into and has sudo access.  I don't have a viable backup so if anybody could help that would be amazing!  <3


Part Of Mesh Becomes Inverted After Parenting To Armature

I am attempting to use Kinect V2 for motion capture in blender. After playing around with locations and rotations of bones I finally found out what was causing the unintended contortions in my mesh, but one problem still remains. The character's hip region is deformed but the rest of the character is fine, so I'm not sure what is causing this. Pictures are below:    Here is the link to the blender file:  .


Using Calculate Field to fix hyperlinks in ArcPy gives Cannot use VB for services?

Getting an error while trying to script it, specifically "Cannot use VB for services."  Snippet and VB code block as follows:  Raw block (works within ArcMap): "\ftp\raw\YYYYMMDD\Files\Charles" +[NAME]+".ntf"  Snippet:      date = '"20160207"'      arcpy.CalculateField_management(outShp, "Link", '"\\\\ftp\\raw\\"' + date + '"files"' + "[NAME]"+ '".shp"', "VB", "")   Not sure what the issue is, somehow need to be able to insert the date and have it syntactically be correct (in either VB or python).  I didn't explain very well I have a column that contains a portion that is part of the hyperlink, so need to concatenate A column to the end of B column (with the partial path) to complete the link


PHP - Remove children with a specific attribute in php

The goal is to delete every XML child with the same parent that matches the id.   The problem I've encountered was that only the first XML child was removed. When I ran this file the output was "The id is: 1" and also "CarlCarlok". The script removed the first XML child with the attribute "1". Which also was proven when I checked the XML file afterwards where the comment with id "9" was removed. So..To resolve this issue i have to know:     How do I remove every XML child with the same parent?   Because now it only removes the first one it encounters.   <?php require '../functions.php';  $id = $_GET['id']; echo "The id is: " . $id . "\n";  $comment_xml_path = '../data/comments.xml'; $comments_xml_file = simplexml_load_file($comment_xml_path);  foreach ($comments_xml_file->comment as $c) {     echo $c->author;     if (strcmp($id, $c['parent']) == 0) {         $dom = dom_import_simplexml($c);         $dom->parentNode->removeChild($dom);         echo "ok";     }     save_xml($comment_xml_path, $comments_xml_file);   (save_xml() is a function for saving utilizing asXML that we made during class)  The XML file  <?xml version="1.0" encoding="UTF-8"?> <comments>     <comment id="6" parent="3" date="20150317224217">          <author>Carl</author>          <cmt>3</cmt>     </comment>     <comment id="9" parent="1" date="20150312225112">          <author>Carl</author>          <cmt>dsa</cmt>     </comment>     <comment id="10" parent="1" date="20150356225256">          <author>Carl</author>          <cmt>2</cmt>     </comment>     <comment id="11" parent="1" date="20150357225257">          <author>Carl</author>          <cmt>2</cmt>     </comment> </comments>


Voltage exceed source voltage over a coil when opening a switch

Well, I have the following circuit:         – Schematic created using   When the switch is closed for a long time, the current that is flowing trough the resistor \$R_1\$ and the coil is given by:  $$\text{I}_\infty=\frac{\text{V}}{\text{R}_1}=\frac{10}{100}=\frac{1}{10}\tag1$$  With that given I can solve what happens when I open the switch. The current trough the coil will stay in the same direction as when the switch is closed. Now, at the moment when I open the switch the voltage across the coil \$\text{V}_{\text{Y}_1}\$, is given as:  $$\text{V}_{\text{Y}_1}=-\text{V}\cdot\frac{\text{R}_1+\text{R}_2}{\text{R}_1}\cdot\exp\left(-\frac{\text{R}_1+\text{R}_2}{\text{L}}\cdot t\right)\tag2$$     So, the voltage over the coil will start (when I open the switch) at \$-\text{V}\cdot\frac{\text{R}_1+\text{R}_2}{\text{R}_1}=-10\cdot\frac{100+100}{100}=-20 V\$, which is (absolutely seen) higher than the supply voltage. How is that possible? Or is the formula \$(2)\$ wrong?


Evaluation of integrals with floor functions

Given the following integral $$ \int_{0}^{1102}\lfloor \sqrt x \rfloor dx $$ What are the ways available to compute this integral? I've tried plugging it into the integral calculator on desmos.com and it gives an answer of 23825 However, when I tried manually expanding this equation, i,e $$ \int_{0}^{1102}\lfloor \sqrt x \rfloor dx =\\= \int_{1^2}^{2^2} 1 \space\ dx + \int_{2^2}^{3^2} 2  \space\ dx + \int_{3^2}^{4^2} 3 \space\ dx \space +...+ \int_{32^2}^{33^2} 32 \space\ dx + \int_{33^2}^{1102} 33 \space\ dx $$ I get a value of $23837$. Is there something extra I'm accounting for in my expansion and calculation?


Prove: $$\frac{x}{\sqrt{y}}+\frac{y}{\sqrt{x}}\geq \sqrt{x}+\sqrt{y}$$ for all x, y positive   $$\frac{x}{\sqrt{y}}+\frac{y}{\sqrt{x}}-\sqrt{x}-\sqrt{y}\geq 0$$  $$\frac{x\sqrt{x}+y\sqrt{y}-x\sqrt{y}-y\sqrt{x}}{\sqrt{y}\sqrt{x}}\geq 0$$  $$\frac{x(\sqrt{x}-\sqrt{y})+y(\sqrt{y}-\sqrt{x})}{\sqrt{y}\sqrt{x}}\geq 0$$  $$\frac{x(\sqrt{x}-\sqrt{y})-y(-\sqrt{y}+\sqrt{x})}{\sqrt{y}\sqrt{x}}\geq 0$$  $$\frac{(x-y)(\sqrt{x}-\sqrt{y})}{\sqrt{y}\sqrt{x}}\geq 0$$  $$\frac{(\sqrt{x}-\sqrt{y})(\sqrt{x}+\sqrt{y})(\sqrt{x}-\sqrt{y})}{\sqrt{y}\sqrt{x}}\geq 0$$  $$\frac{(\sqrt{x}-\sqrt{y})^2(\sqrt{x}+\sqrt{y})}{\sqrt{y}\sqrt{x}}\geq 0$$  All the elements are positive and if $\sqrt{x}=\sqrt{y}$ we get $0$  Is the proof valid?


Indexes: integer vs string performance if the number of nodes is the same

I am developing an application in Ruby on Rails with the PostgreSQL (9.4) database. For my use case, columns in tables will be looked up very frequently, as the whole point of the application is searching for very specific attributes on a model.  I am currently deciding whether to use an integer type or simply use a typical string type (e.g. character varying(255), ) for the columns, as I'm not sure what the performance difference will be on the index.  These columns are enums. They have a fixed size for the amount of possible values they can have. Most enum lengths do not exceed 5, meaning the index would be more or less fixed throughout the lifetime of the application; thus, the integer and string indexes would be identical in the number of nodes.  However, the string that would be indexed could be around 20 characters long, which in memory is roughly 5x that of the integer (if an integer is 4 bytes, and the strings are pure ASCII at 1 byte per character, then this holds). I don't know how database engines do index look-ups, but if it needs to "scan" the string until it matches exactly, then in essence that means that the string lookup would be 5x slower than an integer lookup; the "scan" until match for the integer lookup would be 4 bytes instead of 20. This is what I'm imagining:  The lookup value is (integer) 4:     scanning............................ FOUND | getting records...   |BYTE_1|BYTE_2|BYTE_3|BYTE_4|BYTE_5|BYTE_6|BYTE_7|BYTE_8|...|   The lookup value is (string) "some_val" (8 bytes):     scanning.....................................................................................   FOUND | getting records...   |BYTE_1|BYTE_2|BYTE_3|BYTE_4|BYTE_5|BYTE_6|BYTE_7|BYTE_8|...|   I hope that that makes sense. Basically, because the integer takes up less space, it can be "matched on" faster than its string counterpart. Perhaps this is a completely wrong guess, but I'm no expert, so that's why I'm asking you guys! I suppose that  seems to support my hypothesis, but I want to be sure.  The number of possible values in the column wouldn't change in using either one, so the index itself would not change (unless I added a new value to the enum). In this case, would there be a performance difference in using integer or varchar(255), or does using an integer type make more sense?    The reason I am asking is that Rails' enum type maps integers to string keys, but they aren't meant to be user-facing columns. Essentially, you can't do verification that the enum value is a valid one, because an invalid value will cause an ArgumentError before any validations can be run. Using a string type would allow validations, but if there's a performance cost I'd rather just hack away around the validation problem.


What is the series where humans are genetically altered to go under cover on alien planets?

It was a series of 3 or 4 books.  The crew of a ship were on a mission to recover something ( rings I think) from different planets.  Humans had been genetically altered to live on each planet.  Volunteers were permanently altered to blend in on the planet to complete their missions.


In MacOSX Mavericks, launching an app from the command line versus by double-clicking

In MacOSX Mavericks, what are the differences between launching an app    by double-clicking it or through Spotlight, and  from the command line?   By launching an app such as Emacs from the command line, I mean, opening Terminal and typing  ~$ open /Applications/Emacs.app   or   ~$ /Applications/Emacs.app/Contents/MacOS/Emacs   I know the PATH environment variable can be different. But what else? And what's the consequence?  Also, what's the difference between Mavericks and, say, Snow Leopard?


I was wondering considering there are a lot of professional coders out there is there any counteraction for the GameOver Zeus and Cryptlocker viruses that have been all over the news?  I mean for after the virus has infected your computer, would a simple system restore work? (this is assuming that your bank details were not on the computer or could not be found and you are held to ransome).


The question refers to a simple Form using POST method to send data to the server.I am interested in some cases:  1] Data come from a Form Textbox  2] Data come from a Form Listbox  3] Data are used to enter new data in the database  4] Data are used in a query after WHERE to filter out results  Question 1: Is a query safe vs SQL Injections in all combination of the above cases? If not what can I do to make sure I did my best in keeping my code as secure as possible?  What makes me sceptical is that I included the  $ComparisonB variable in the mysqli query, using prepared statements though.  Question 2: Assuming we sanitize $ComparisonB vs XSS using the following method:  function xssanitize($data,$encoding='UTF-8') {    return htmlspecialchars($data,ENT_QUOTES | ENT_HTML401,$encoding); }   Is it sufficient or should I do something more?  I KNOW that "Security is a state of mind", but I would like to learn to do things as proper as possible.


I want to render a few frames and all I get is a black screen

To escape Blender I tried to export the particle simulation to fbx by baking the animations and then bring it in and then I can render it very easily there. I was unable to bake the animation of flocking birds, so I'm forced to render in Blender but I still cannot figure out how to render frames. Can anyone just show me even by pictures where to click to render one frame the correct camera


What would be an appropriate opposite of "exceed"?

Exceed is commonly used, but when I found myself wanting to use the opposite I couldn't really find a single word that would do it.   fall short of and inadequate are a little off. How about deceed?


One Key to multiple values dictionary in C#?

I often need one key to multiple vaules dictionary, but in C# most of them are two dimensions like Dictionary and Hashtable.  I want something like this:  var d = new Dictionary<key-dt,value1-dt,value2-dt,value3-dt,value4-dt>();   dt inside<> means data type. Anybody has ideas about this?


Can Cunning Action be taken more than once per turn?

The  feature states:     Starting at 2nd level, your quick thinking and agility allow you to move and act quickly. You can take a bonus action on each of your turns in combat. This action can be used only to take the Dash, Disengage, or Hide action.   Player's Handbook, p. 96  If I somehow could take more than one Bonus Action within a single turn, could Cunning Action be used twice?  My concern is that it says "on each of your turns" (emphasis added) and I am unsure if that means it can only be used once per turn irrespective of available actions or if I'm reading too much into that phrasing.


Very Low Quality flag on edited question. Wasted?

The Very Low Quality flags get automatically dismissed (and become 'disputed') every time the post has been edited.  So does it make sense to flag the bad posts with this flag if:   the post has been edited already? there is a chance the post will be edited - the question is bad, so is formatting, so someone may want to improve formatting (but it wouldn't make the question any better).   I feel the flag would be 'wasted' in that cases, so isn't it better to use other flag (which isn't auto dismissed)?


Multiple servers acting like a single one with all the hardware?

by now I have 10 servers for hpc, power computing oriented. My users need to launch several processes using qmake. The users are used to work with ubuntu 9.10, and the software from the repositories is switable for them.  I've deployed ubuntu 9.10 to all 10 servers (pxe rocks).  By now we work with parallel-ssh and cluster-ssh, which allows as to launch the same process to all servers. With this tools this tools the servers remain as independent but with the same software and the same launched command.  Now we would like to go to next step and see all the servers as a single one with all the resources from the other 9 as if was its resources.   The difference would be substantial in time to process and also time to design the command to launch.  Any advice on wich software to use will be very useful?  Thanks


I have a question regarding notation in modular arithmetic and congruence classes.  I am used to the notation   $a \equiv b$ $(\mod n)$; it simply means n divides a-b  But I've seen a similar notation in the context of groups (old fashioned one I believe) where the n is replaced by a subgroup and that got me slightly confused. Here it is:  If G is a group, a,b elements in G and P a subgroup of G, then what is the exact meaning of   $a \equiv b$ $(\mod P)$ ? Is it equivalent to $ap_1$=$bp_2$ for some $p_1$,$p_2$ in P?


Previous part time employer never paid me but I received a W-2

I worked part time for a corporate company that never paid me. I received a W-2. Who do I contact? I tried to reach the manager but he won't return my calls.


None modifies noun? --" an entryway jumble of backpacks and umbrellas"

Chatting about laundry facilities and meal times, Pam led us through an entryway jumble of backpacks and umbrellas. In the kitchen, she poured apple ( From an ACT test)  Please help me understand why nouns " jumble of backpacks and umbrellas" can directly post-modifies another noun " entryway". I think at least a preposition like "with" or others are needed here between "entryway" and " jumble of backpacks and umbrellas".


Software Updater can't check for updates

I'm using an ASUS laptop with Ubuntu 20.04 installed. I want to update the system and some other software. When I opened it, it shows a message that interrupts the check: Failed To Download Repository Information Check your Internet connection. I'm sure that I'm connected to a stable network because everything still works fine, so how can I fix this? Error message:  System info:


Can I make Chrome the default web browser in iOS?

With Google Chrome available for iOS now I'd like to know if it's possible to make Chrome the default browser? I find "open in browser" type options from other iOS apps still take me to Safari.  Not interested in jailbreaking. Looking for a solution that works without having to do that.


After fitting a linear mixed effect model with lme, I run a posthoc analysis with glht and get the following results:  Simultaneous Tests for General Linear Hypotheses  Fit: lme.formula(fixed = data ~ des_days * muscle, data = data_emg_trf,      random = ~des_days | ratID/cycle, method = "ML", na.action = na.omit, control = lCtr)  Linear Hypotheses:                                      Estimate Std. Error z value   Pr(<z)     muscleVM + des_days1:muscleVM = 0  -0.152947   0.003203 -47.752  < 2e-16 *** muscleVM + des_days9:muscleVM = 0  -0.100683   0.003531 -28.511  < 2e-16 *** muscleVM + des_days45:muscleVM = 0 -0.026425   0.003311  -7.981 2.22e-15 ***   Estimations and standard errors make sense if I compare them with a plot of the data. However, I am worried about the very small p-values, close to eps. Is it suspicious or it could be real? What could the problem be? Thanks!


Let $f(x) = x^2 + x + 41$. Show that $f(n)$ is prime for $0 \le n \le 39$, but $f(40)$ is composite.

$40 \cdot 40 + 40 + 41 = 40(40 + 1) + 41 = 40 \cdot 41 + 41 = 41(40 + 1) = 41^2$, so $f(40)$ is composite.  Suppose $f(n) = n^2 + n + 41$ is prime for $0 \le n \le 38$. But $f(n + 1)$ is also prime: $39^2 +39 + 41 = 1601$. So, $f(n)$ is prime for $0 \le n \le 39$.  Does the solution to the problem look something like that?  edit: like some users noted I might have to check all nonnegative $n < 40$ manually. The other post didn't solve my problem because I have no idea what's going on there. So, all I want to do is to see how strong induction fails here.


I migrated  over .  When it got there, it had lost . I’m confident that the comment wasn’t deleted by a moderator on Stats since it was gone immediately after the question arrived on that site.  This looks like a bug, no?


What are some methods for proving that a group is cyclic?  For example, I found this link  for different ways to prove a group is abelian. Could anyone make a list like this for different ways to show a group is cyclic?


How to change the order to choose os during boot?

I have recently installed Ubuntu in my laptop alongside Windows 10 by dual booting. And at the start grub is showing up to give options between Ubuntu os and Windows boot loader.  If I don't do anything for some time, Ubuntu gets selected automatically. Instead of Ubuntu I want Windows to get selected if I don't do anything. How can I do that?


Sum of number of factors of first N numbers

Given a number N ( Value can be large like N < 10^9 ) How can we calculate sum of the number of factors of first N numbers??  Example :  For n = 3  Answer:   = #f(1) + #f(2) + #f(3)  ---   { #f(n) -> number of factors of n }     = 1 + 2 + 2    = 5


user's details or user details, which one is the correct form when referring to the details of a user in a database?  Regards


Two sets of nether portals, only one set works both ways

I have built an area in the sky in the overworld and have attempted to link to it from the ground through the Nether rather than building ladders and such in the overworld. I've read that the Y coordinate does not need to be translated to the Nether since it doesn't reach as high as the overworld anyways as long as all the portals in the Nether are at the same elevation. There's also a video demonstrating this. Is that false? I drew a diagram to best describe what is happening with the attached coordinates. Both overworld portals work fine going to the corresponding portals in the Nether, however both Nether portals link to the same ground overworld portal.


Why questions deleted by owner are not marked as "deleted by owner"?

I saw many times at SO, and finally decided to ask, why questions deleted by owners are not marked as "deleted by owner"? One :    In fact, I don't know how to consider my question. I believe there might be a reason for such behaviour, however I didn't find any clear explanation on Meta (if it exists, just close the question by duplication).  Nevertheless, I'd prefer to see "deleted by owner" instead of name repetition.


What's the quotient space of torus $S^1\times S^1$ under equivalence relation $(z,w)\sim (w,z)$

Consider the quotient space of torus $S^1\times S^1$ under the equivalence relation $(z,w)\sim (w,z)$. I'm trying to visulaize it but find it pretty hard to do. Any hint?


Do you have a version of Ubuntu that works with Windows 8? Ubuntu 12.04.3 and 13.10 can not detect windows 8 on my hard drive and want to erase everything.


Working with AIG Raster format in ArcGIS for Desktop?

I downloaded a specific layer which has the format "AIG" as you can see in the screenshot.      It has no projection so I applied "Define Projection" on it. I searched for the projection and found the following:     4.1 - INDIRECT SPATIAL REFERENCE SYSTEM:      Type of indirect spatial reference system:      By country.      Reference date:    2001.      4.2 - DIRECT SPATIAL REFERENCE SYSTEM:      Datum:  Lambert Azimuthal.      Ellipsoid: Sphere.      Map projection: Projection    LAMBERT_AZIMUTHAL      Units                    METERS              Spheroid         SPHERE      Major Axis        6378388.00000               Minor Axis       0.00000      Parameters:      radius of the sphere of reference                      6378388.00000      longitude of centre of projection                        9  0  0.000      latitude of centre of projection                        48  0  0.000      false easting (meters)                                       0.00000      false northing (meters)                                      0.00000   The problem I have is that if search for this projection I get these two    After applying the first one using "Define Projection", nothing changes in the file. By this I mean the spatial reference is still "undefined" and the coordinate system is unknown. I also tried other projections but nothing works. If I convert it to a polygon first, define projection works but the reference on the map is still completely wrong. I think these problems occur because of the "uncommon" raster format?  I also think that the projection from the screenshot is not equal to the one I posted up here?  My goal is to project it in the end to "British National Grid" as all my layers I work with have this projection.  I also tried it on another computer with ArcGIs 10.2 and the same problem occured.  See these FME links for further reference to the AIG format:          I am using ArcGIS 10.2.2 for Desktop.


Onions are an excellent addition to many dishes, but cutting them can be frustrating when they make you "cry" all the time.  Does anyone know any tips or tricks to help minimise the tears when chopping ?


What's with the passive present perfect progressive?

I was taught that we made passive voice using be + the participle of the main verb, without changing the verb tense. E.g.,     I send letters. (present simple)       Letters are sent. (present simple of 'Be' + participle)      I sent letters. (past simple)       Letters were sent. (past simple of 'Be' + participle)      I was sending letters. (past progressive)       Letters were being sent. (past progressive of 'Be' + participle)      I have sent letters. (present perfect)       Letters have been sent. (present perfect of 'Be' + participle)   Works beautifully, right? That is, until a student asks you "How about…"     I have been sending letters. (present perfect progressive)       Letters HAVE BEEN BEING SENT. (present perfect progressive of 'Be'?!)   I said that would be too weird to say (is it not‽ ) and it would be more appropriate to say Letters have been sent, to which the student retorted: But then you are changing the verb tense. It is no longer progressive.  Can anyone explain, please?


Is it safe to use 'food safe' hard plastic for hot liquids?

Searching the internet, I found a lot of sites and articles saying that you should not use plastic containers for hot liquids, like plastic cups for coffee. But I was not able to find an answer for whether this applies to hard plastic with the 'food safe' (wine glass and fork) icon. More specifically, I use plastic bowls like this for soups, ramen, etc. And I am wondering if this is safe. The bowl is bought in Norway, in case that makes a difference. I do not see any other symbols on it.


Post Hoc test for time*group interactions of one way multiple measures ANOVA

I have 6 Treatment groups (A-F, with A as control) and measure parameter A at four time points 1-4. Now I am particular interested in time*treatment as I want to know if the change over time of the parameter of the groups B-F is significantly different to the control A. However, with a mixed multiple measures ANOVA including all groups (A-F) I only get a general answer: time*treatment is significant or not. Consequently, I did mixed multiple measures ANOVA for each group and the control group (A and B, A and C, A and D etc.).   My question now: Is it appropriate to do seperate analyses? (I am thinking of the issue with multiple t-test and the increase in type 1 error)  Is there another way to calculate the time*treatment  significancies for all groups (B-F) to the control within a single analysis?    I am working with SPSS btw. - Thank you already in advance!   EDIT: This is a repeated measures ANOVA with one dependent variable and not a MANOVA where you have multiple independent variables


Unable to update CLAMAV and CLAMTK "Problem with internal logger"

I ran sudo freshclam to try to update ClamAV and ClamTK but I got this ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!). ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log). ERROR: initialize: libfreshclam init failed. ERROR: Initialization error!  ls -l /var/log/clamav/freshclam.log -rw-r----- 1 clamav clamav 44504 Aug  6 16:40 /var/log/clamav/freshclam.log


Change pole angle without affecting mesh

I have rigged a zombie, and when I change the pole angle it affects the mesh's flow. I have tried applying the armature both before and after changing the poles, but nothing works. Examples:      Is it possible to change the pole angle without affecting the mesh?


how can i get value of dynamic element with on click in jquery

// I want to get data of clicked class which is $('.add_another_ele')  $('#table-body').on('click',$('.add_other_ele'),function(){   //get id of $(.add_other_ele) }) <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>


How to fix "bone heat weighting failed to find solution for one or more bones" I tried everything!

I have tried every solution i could find here and nothing seems to be working. I'm a beginner I only know the basics. Can someone help me with it?    Here is the blend file:    If someone can fix it i would be so grateful.  Edit: i tried Remove Doubles, didn't work.


Why can't see full pointer array value after passing into a function

I am learning VC++. I am wondering why i can't see full value {99,20,14,80} in "printElements3". I could see only "arr" 0xmemory address and following by "99", the first value.  Does this mean I have to pass by Reference in order to see the full array values?    Appreciate someone can help me understand this. below is my code.   #include <iostream>   void printElements3(int *arr, int size)  {    for (int i= 0 ; i < size; ++i)   {     std::cout << arr[i] << std::endl;   }  }    int main()   {      int arr[4]={ 99, 20, 14, 80 };      printElements3(arr,4);      return 0;   }


Here by $b(n,F)$ we mean the Lie algebra of all $n \times n$ upper triangular matrices. So, the first step of the question asks to prove that $L^m$ has a basis consisting of all matrix units $e_{ij}$ with $j - i > m$.  So I thought I would try to compute $L^m$ for different $m$. Now, $e_{ij}$ where $i < j$ form the basis for this Lie algebra. $[e_{ij}, e_{kl}]$ $=$ $\delta_{jk}e_{il}$ - $\delta_{il}e_{kj}$. So we have two cases, $j = k$ or $k = l$, but not both. These two cases lead to $L^1$ being the span of $e_{il}$ and $e_{kj}$. Now I don't know how to check if the claim in the question is true for $L^1$. Can anyone help me out?


Prioritizing Security Updates Across Web Server

Single web server with LAMP stack, OpenSSL, and one Drupal site running on it. There are security updates available for the Linux Kernel, Apache, MySQL, PHP, OpenSSL, and Drupal.  Generally, is there a best practice for prioritizing these updates by risk of exploitation? Are there technical reasons one should be the higher priority for applying security updates vs another?  My initial thought was the the public facing pieces such as Drupal, OpenSSL and Apache are the highest priority for getting security updates applied since they are the most vulnerable to the outside world/the first to fall.  I was thinking of 'priority' defined as how quickly an update is applied after it is released (hours, day, months) or by frequency (every x weeks or months) updates are applied.  In that case, my ranking from highest to lowest priority:   Drupal OpenSSL Apache PHP MySQL Linux Kernel   I realize this this would depend on the severity of each vulnerability and other factors but looking for best practice with reasoning if possible.


Entire doubly-periodic function is constant

I want to show that a function $f$ entire s.t.  f(z+1)=f(z)=f(z+i)  for all $z$, must be constant.  I think what I need to do is show that the function is bounded in some region of the complex plane, and then by periodicity it must be true that the function is bounded everywhere, and hence by Liouville must be constant. Can someone help me do this? Thanks!


How can I resize the original versions of all of the images that have already been uploaded?

I have a Drupal 7 site that uses a custom content type that allows users to upload images via the core image field.  Originally, I set the maximum resolution of images to 2048x2048 on the field configuration page.  However, I realized that I only need a resolution of 1024x1024.  I have modified the value of the setting, and new image files are resized appropriately, but the image files that have already been uploaded are still up to 2048 pixels in size.  What I want to do:  I would like to resize the image fields that have already been uploaded to a maximum of 1024x1024 as well.  What I tried: I made a view of all images and used Views Bulk Operations to re-save all content.  However, this had no effect on the image sizes.


Why do they portray characters with beard/eyebrows not matching their hair?

Why did they make characters like Gendry to have blonde beard when he has black hair?   Or Daenerys to have black eyebrows, when she has silver hair.


I am building a small JavaScript game where the user has to guess a word. The user will be given letters and he will have to combine them into a word. Every time when the user adds/removes a letter, the system checks if the word combined is the answer.  As the game will be mostly presented to users with no programming skills and because my server is not too powerful, I decided to implement word checking on the client side. (otherwise, I would have to run an ajax request for php script which possibly checks the answer from mysql db. that would introduce extra latency and load on the server)  Now, just to make sure, I would like to make it a bit more difficult for users with low programming skills to find out the answer variable or see the comparing function.  Is it somehow possible to make a function in JavaScript non-human readable? Or at least making it hard-readable?    Just to remind you again, I am not too concerned if the final code will be not secure enough and some people actually crack the compare function and get the answer - I would be happy for their effort.


I am trying to re-create a variational autoencoder. The loss function has two terms: reconstruction loss and KL-divergence term. KL-divergence is defined as $$ D_{KL}(P||Q) = -\sum_{x\in X}{P(X)\log\bigg(\frac{Q(X)}{P(X)}}\bigg)$$  While in the the  it says  kl_loss = - 0.5 * K.mean(1 + z_log_sigma - K.square(z_mean) - K.exp(z_log_sigma), axis=-1)  The formula for KL-divergence looks completely different from what is in this line of code. Can somebody familiar with variational autoencoders help?


Applications to replace iTunes for iPod synchronization?

I need to synchronise my iPod Nano (5th generation) with music and podcasts (video and audio). I can use Rhythmbox for music, but does not seem to work with Podcast.  So, what application can I use to synchronize my podcats ?  Edit :  After a week of fight with my iPod Nano, i've definitively uninstalled Banshee and i finally use Rhythmbox.  Why ? because several times my music and podcast list in my iPod have been corrupted (3 times the same podcast, podcast in music and music in podcast, wrong covers ...)   I start this new week testing RhythmBox....  Edit 2 : finally found a solution with gPodder, read my answer for details


How to make the SELECT statement work with UTF-8

Suppose you've got a mySql database like this:  CREATE TABLE animals (`name` varchar(7));  INSERT INTO animals (`name`) VALUES ('häst'), ('apa'), ('orm'), ('ödla');   Now, if I would like to retrieve all animals with the character 'ä', I would use the query:  select * from animals where name like "%ä%";   Except this returns the animals "häst", "apa" and "ödla". It seems like it searches for the letter "a" instead, probably because it doesn't support UTF-8.  How can you make it support UTF-8?  I have character-set-server set to utf8mb4.


SSH: User name of the remote machine's user?

I need to run a script from my local machine on a remote server via SSH. One of the operations involves chown and for that I need to have a programatic access to the server's user name (I am looping through a couple of servers)  But when using whoami for the chown argument I get the username of my user on the local machine that is SSHing in.   If I check with simple whoami it gives the remote user but I cannot capture it into a variable.   How to get the remote user name?   ssh $server << EOF   pwd   whoami   rsync /some/stuff ./dump   chown `whoami`:`whoami` ./dump EOF


How do you setblock a command block that testsfor a named item in a player's inventory?

I'm trying to make a door that searches a player's inventory for a golden nugget named "Golden Leaf". I have all of the redstone working, but for some reason the command block that tests for the item stays active, so I have a different command block hooked up to replace it and deactivate it. However, it wont work. This is the command I'm currently using:  /setblock -9456 83 10214 command_block 0 replace {Command:"/testfor @p {Inventory:[{id:"minecraft:gold_nugget",tag:{display:{Name:"Golden Leaf"}}}]}"}  And it keeps saying "Invalid character at "m" in minecraft. I changed it and took out the 'minecraft' part but it still won't work. What is wrong?


Abort Routing and continue with the original request in .NET

I want to use routing for all incomming calls to my server and then only use the routing on some of these (depending on values in my database).  I know how routing is done, what I don't know is how to abort routing inside my IRouteHandler.  ex  if (routing)  {   // do routing      var page = BuildManager.CreateInstanceFromVirtualPath(VirtualPath, typeof(IHttpHandler)) as IHttpHandler;     return page; } else  {   // proceed as if no routing has been made }


Why $\lim_{x\to a} f(x) = f(a)$ in continuous function?

I asked the same question here but actually no one understood me :      .   But here a drew a figure to understand me :   THIS FUNCTION IS INCREASING IN EVERY EVERY LITTLE BIT CHANGE ,So the function around $\lim_{x\to 2} ≠ g(2)$ (In the second graph which hasn't gap).


How to generate correlated random numbers (given means, variances and degree of correlation)?

I'm sorry if this seems a bit too basic, but I guess I'm just looking to confirm understanding here. I get the sense I'd have to do this in two steps, and I've started trying to grok correlation matrices, but it's just starting to seem really involved. I'm looking for a concise explanation (ideally with hints towards a pseudocode solution) of a good, ideally quick way to generate correlated random numbers.   Given two pseudorandom variables height and weight with known means and variances, and a given correlation, I think I'm basically trying to understand what this second step should look like:     height = gaussianPdf(height.mean, height.variance)    weight = gaussianPdf(correlated_mean(height.mean, correlation_coefficient),                          correlated_variance(height.variance,                          correlation_coefficient))    How do I calculate the correlated mean and variance? But I want to confirm that's really the relevant problem here.  Do I need to resort to matrix manipulation? Or do I have something else very wrong in my basic approach to this problem?


First, some background on out situation. We're a small-medium business who has around 20 TB of data on two different NAS's, and that number grows by at least 10% annually. 90% of this data we need to keep for legal reasons related to the work we do, and all of it needs to be accessible. Less then 1% changes daily, but we still need to be able to view and access the other 99%.  Now as the end of the year approaches its time to start our annual backup. The last 5 years we've simply plugged several external HDD's into a PC on the network and used robocopy to copy the two separate NAS's to the externals. Then in early January we'll go back and in an incremental backup to the same drives to make sure we've got anything that changed since. Finally the CEO takes these drives to his house for safe keeping.  We also do a nightly incremental backup of the NAS's to another set of external HDD's. So solutions I'm looking at now for the annual are also trying to take into account our incremental nightly backups, to try and make both better.  So - goals: To complete the annual backup as easily, securely, and quickly as possible. As we're a small business cost is always an issue, and anything I come up with I have to be able to justify the costs to the higher ups.  So far I've considered tape backup, and just another NAS where once a year we pull the drives out to give to the CEO, and buy another set to rebuild a new backup.   I'm pretty new when it comes to backing up such large amounts of data, and any help or tips you have would be much appreciated.  So, any recommendations on how we could make our backup process better?   PS - Both NAS run on raid6.


Regression Model with aggregated target data

I would like to fit a regression-like model where I have all the predictor-variables on the individual level, but my target value only on some aggregate-level. So for many groups of individuals, I have the summed up target-value but not the individual target.  I could imagine to change OLS a bit and use a function like this:   But I I wanted to ask, if there are better approaches or if there are libraries (preferably in python) for this kind of OLS.  Thank you in advance!  Ps: I asked a similar question and earned a tumbleweed-badge. So I wasn't sure, whether to post this as a new question or edit the old one...


Question title text changes to "undefined more votes needed" when I close a question as 'unclear what you're asking' in the moderator queue

I  as unclear what you're asking after receiving flags on it in the moderator queue.   Once I did that, the text for the question title in the moderator queue changed from:     How to use handler to display images from database without passing ID in querystring?    to     How to use handler to display images from database without passing ID in querystring? [undefined more votes needed]    The text on the main page has stayed consistent with the new 'on hold' verbiage, however.  Here's a screenshot:


Why do news stories tend to use "robbery" when they mean "mugging"?

robbery (noun): the crime of stealing from somewhere or someone.    mugging (noun): an act of attacking someone and stealing their money.       robbery is stealing only, but mugging is attacking and stealing.  But I noticed most of news websites use robbery instead of mugging, even when it is include attacking.        A woman has been assaulted with a hammer during an attempted robbery outside a south Belfast restaurant.    On-loan Marseille winger Florian Thauvin was reportedly "violently assaulted" on Monday evening as he fended off an attempted robbery.       Why shouldn't they use mugging instead of robbery? it will be more accurate.


Wings of Liberty in as few missions as possible

I'm trying to beat the WoL campaign in as few missions as possible. Can anyone tell me which order of missions I should go in to do so?


The fundamental group of a topological group is abelian

I want to show the fundamental group of a topological group is abelian. In fact, the question says the topological group is path connected. I do not know where I should use path-connectedness. I think, it is still true if we do not suppose path-connectedness. Right?  I do not know homotopy. I have just learned the fundamental group.


calculate $ \lim \limits_{x \to 0} x^a \int_x^1 \frac{f(t)}{t^{a+1}} \, dt$

Let $ f$ be a continious function and $a>0$  calculate the limit  $$ \lim \limits_{x \to 0} x^a \int_x^1 \frac{f(t)}{t^{a+1}} \, dt$$  i tried to divied to 2 cases, if $ \lim \limits_{x \to 0}  \int_x^1 \frac{f(t)}{t^{a+1}} \, dt = L < \infty$  then the answer is clearly $0$, else we can use l'Hopital rule, but I'm not sure how to apply it on the integral,  I know that if $F(x) = \int_0^x \frac{f(t)}{t^{a+1}} \, dt$ then the derivative will be $\frac{f(x)}{x^{a+1}} $ but what do i do with $\int_x^1$  thx


Unicoin Bug: Automining Returns Diminishing

I'm using the auto-mining script from one of the meta posts here and it doesn't works!  At first I got steady returns but the returns seem to diminish over time. Using Fiddler I confirmed that the server seems to release less and less coins.  This is unacceptable! I am a loyal customer paying nothing and I demand that my auto-mining script continues to yield returns forever!  If you cannot deliver on that please refund what I have payed for using this site.  Plz advise!    In case you didn't notice: This is a parody of over-demanding, leeching askers on Stack Overflow.


Variance of expectation conditional on marginal distribution

Let $Y=(Y_1,Y_2)$ be a joint distribution with marginal distributions $Y_1$ and $Y_2$.  Let $X$ also be a random variable.  Is it the case that: $$\mathbf{Var}\left(\mathbf{E}(X|Y)\right)\geq\mathbf{Var}\left(\mathbf{E}(X|Y_1)\right)?$$ If so, how does one prove this?


I'm trying to learn blender in a perspective of making meshes that I can export to game engines. Making nice looking high polys seems to go okey for me, but I have a hard time with controlling my normals when doing my low poly mesh.  Here I have a low poly model with some bevels on it. What I want to do (because of the bevel) is to force the normals marked red to be flat. I've successfully done so using the blend4web plugin. I also want to keep a sharp edge around the faces on the inside (marked green), now there's where things get tricky for me. I have been searching around and the only way I found that works is to split the edges. Now I really don't want to do that since this is a problem that appears quite often and I want to keep my low polys as intact as I can.      I made an example in maya just to show you what I want. (This mesh is using the exact same topology and is all intact).


Is it possible to find out what program or script created a given file?

Three files have suddenly appeared in my home directory, called "client_state.xml", "lockfile", and "time_stats_log". The last two are empty. I'm wondering how they got there. It's not the first time it has happened, but the last time was weeks ago; I deleted the files and nothing broke or complained. I haven't been able to think of what I was doing at the time reported by stat $filename. Is there any way I can find out where they came from?  Alternatively, is there a way to monitor the home directory (but not sub-directories) for the creation of files?


I know this question has been asked many times, but in different forms. I want to access the selected variable elsewhere within the scope of the topmost function (alert is currently returning undefined). I know I need to use a return in some way or another. Thank you in advance.  $('#people_search_mobile').change(function() {    var selected;    $('li a', $('#suggestions')).bind('click.autocomplete',function(){      selected = ($(this).text());   });    alert(selected);  }


Making a menu to take me to different scenes

How do I make a mesh clickable so that when I click on it, I go to a different scene? Obviously just making a mouse sensor (left button) > Set Scene (game) isn't working. Whenever I click anywhere on the screen, it goes to the next scene. How do I make it so that when I click a specific object, the actuator goes off?


"I am really not into it" vs "I am not really into it"

If someone asks help on a subject, and I am lacking in knowledge on it, which is appropriate or correct?  I am really not into it I am not really into it  The intention is to convey that I am not well versed in this particular subject.


Why is the Community User the sole approver of this tag wiki suggested edit?

My  for the tag wiki of the  tag on  seems to have been approved solely by the :    What gives? I'm not sure if this is a bug or not, so I've tagged it as [support].  Further info Based on , taking any action (except Skip) on a suggested edit review will definitely log that action. For instance,  is a tag wiki suggested edit that the moderator  reviewed around the same time by clicking on "Improve Edit" — it shows "Edit" next to Tsundoku and "Approve" next to Community.    From the same link, there is one case in which the Community User appears as the sole reviewer, namely when there is a clash of editing between a user with privileges and one without privileges. But, in that case the Community User will reject the edit, not approve. Furthermore, I suggested my edit on the [login] tag's info at 2020-07-30 14:19:10Z and the edit on the wiki was approved by the Community User at 2020-07-30 14:42:59Z, which is late enough. I'm also pretty sure that no other edit was going on at that time. This also does not seem to be a case of the Community User taking credit for a deleted user's review, as mentioned in . This is because  made by Tsundoku on the [login] tag's wiki has the same timestamp as the approval by the Community User. Definitely no other user, deleted or otherwise, was involved in this process. Could someone explain how it happened that the Community User was the sole approver on my suggested edit on a tag wiki? I took Tsundoku's help in  to try and play with the various options that are visible on a tag's info page for approving a suggested edit; however, we couldn't come to any fruitful conclusion.


How to download entire Youtube channel using commands or application

I want to download entire Youtube channel using Ubuntu, but i can't find way to download, any help appreciate !


Can I have both 2.79 and 2.8 on my system? Will one interfere with the other?

I have Blender 2.79 on my Windows 7 system.    I want to install 2.8, but I'm completing some courses which use 2.79.  If I install 2.8, will it automatically replace 2.79?  Will they interfere with one another?  Thanks.


What is the best way to add options to a select from a JavaScript object with jQuery?

What is the best method for adding options to a <select> from a JavaScript object using jQuery?  I'm looking for something that I don't need a plugin to do, but I would also be interested in the plugins that are out there.  This is what I did:  selectValues = { "1": "test 1", "2": "test 2" };  for (key in selectValues) {   if (typeof (selectValues[key] == 'string') {     $('#mySelect').append('<option value="' + key + '">' + selectValues[key] + '</option>');   } }   A clean/simple solution:  This is a cleaned up and simplified :  $.each(selectValues, function(key, value) {      $('#mySelect')           .append($('<option>', { value : key })           .text(value)); });   Changes from matdumsa's: (1) removed the close tag for the option inside append() and (2) moved the properties/attributes into an map as the second parameter of append().


I have heard the following 4 pronunciations for this word LaTeX. Which is the correct one?   Laatec Letec Laatecs Letecs


How to go change azerty to qwerty on huawei ascend y530

Alright so I got a Huawei Ascend Y530, and I live in the Netherlands, where literally no person ever uses an azerty keyboard. However, for some reason I can only get azerty when setting my keyboard to Dutch. It's annoying me to no end but I have no idea how to get alter the keyboard to suit my wishes.  Does anyone know how to change an azerty keyboard to qwerty without changing the language?


Google is now indexing individual answers?

Lately I've noticed a very annoying trend where individual answers are being indexed by Google. Often these are not even the accepted answer but for whatever reason it's what gets picked up.  Is this a recent change in SO's indexing policy? A profile setting to always go to the question would be awesome.


Inconsistency with partial derivatives as basis vectors?

I have been trying to convince myself that it is consistent to replace basis vectors $\hat{e}_\mu$ with partial derivatives $\partial_\mu$. After some thought, I came to the conclusion that the basis vectors $\hat{e}_\mu$ were ultimately just symbols which represent what we think of as arrows, so it is not a problem to use a different symbol. The only requirement is that one can manipulate the $\partial_\mu$ in the same way as the $\hat{e}_\mu$.  However, raising/lowering indices seems to create an inconsistency. In switching our representation of the basis vectors, we make the substitutions:  $$\hat{e}_\mu \rightarrow \partial_\mu$$  $$\hat{e}^\mu \rightarrow dx^\mu$$  However, while we previously could write $\hat{e}^\mu=g^{\mu \nu}\hat{e}_\nu$, we fail to be able to write the same relationship in the new representation:  $$dx^\mu \neq \partial^\mu =g^{\mu \nu} \partial_{\nu}$$  My questions are:   Have I done something invalid here? If not, is it just an unwritten rule that one should never try to raise an index of a basis vector?  What is the motivation to write basis vectors as partial derivatives or differentials (for the tangent or cotangent space) as opposed to just writing some other symbol? Do we actually need the properties of a derivative or differential in our basis vectors? I am aware that the $\partial_\mu$ resemble the expression $\frac{\partial\vec{r}}{dx^\mu}$ which is a natural choice for the basis vectors $\hat{e}_\mu$, but the differentials seem to come out of nowhere.


How does the Distant Spell Metamagic interact with the Thunderclap spell?

has a range of 5 feet and states (emphasis mine):  You create a burst of thunderous sound that can be heard up to 100 feet away. Each creature within range, other than you, must succeed on a Constitution saving throw or take 1d6 thunder damage. [...]  The Distant Spell  states:  When you cast a spell that has a range of 5 feet or greater, you can spend 1 sorcery point to double the range of the spell. [...]  Does doubling the range of Thunderclap also increase its area of effect or do something else entirely?


filter journalctl output, preserve color

I am using journalctl to watch the system by journalctl -f -p 4, but I'd like to grep-out some information.  This works: journalctl -f -p 4|grep -v "maximal mount", but grep discards any color info, a small benefit by jornalctl that I'd like to keep. Note that this happens even if I add --color=never to grep.


I want to start using LaTeX on Ubuntu. Where do I start?

There are many different kind of options that you can do  in order to start using LaTeX on Ubuntu. I would prefer doing that through Eclipse, but if there is a better way of doing it, feel free to write your opinion on why using this instead of something else.


In movie At World's End wasn't Davy Jones killed. The how is he back in Dead Men Tell No Tales.  Didn't Jack made Will stab his heart? If he is not dead what actually happened there recollect only the part where it is explained that one must take his place.  Is it already explained in movies or should we wait for next adventure to answer the same?


I'm going through a process of creating documentation from a long list of emails.  This process is ongoing and I don't have control of the input (the fact that the source is coming via email).  The documentation I am creating links to (or contains) the information from the emails.    What I've been doing is exporting the email thread to html, making available on our intranet and then linking to it in my documentation.  Sometimes new emails in the same thread come in after I create the link thus causing problems.  Also, it'd be ideal to keep the privacy of these emails and not have to repost the content.  Also, it'd be easier for me if I didn't have to export them to html.    What would be ideal is to be able to create a link to the user's own outlook email (something like outlook://search:subject:"howto create blue widgets").  This obviously assumes the user has that email thread in their inbox.  Can I do something like that?


I know I should lubricate my chain regularly. I got some lube at my LBS; how should I apply it? Do I just drip some on one spot, and turn the pedals around a few times to spread it out? Drip it all over the chain? Do I clean the chain first? How can I tell if it needs lube, or if I've put enough on?


Solving (quadratic) equations of iterated functions, such as $f(f(x))=f(x)+x$

In  thread, the question was to find a $f: \mathbb{R} \to \mathbb{R}$ such that  $$f(f(x)) = f(x) + x$$  (which was revealed in the comments to be solved by $f(x) = \varphi x$ where $\varphi$ is the  $\frac{1+\sqrt{5}}{2}$).    Having read about  shortly before though, I came up with this train of thought:  $$f(f(x)) = f(x) + x$$ $$\Leftrightarrow f^2 = f^1 + f^0$$ $$f^2 - f - f^0 = 0$$  where $f^n$ denotes the $n$'th iterate of $f$.  Now I solved the resulting quadratic equation much as I did with plain numbers  $$f = \frac{1}{2} \pm \sqrt{\frac{1}{4} + 1}$$ $$f = \frac{1 \pm \sqrt{1+4}}{2} = \frac{1 \pm \sqrt{5}}{2}\cdot f^0$$  And finally the solution $$f(x) = \frac{1 \pm \sqrt{5}}{2} x .$$  Now my question is: *Is it somehow allowed to work with functions in that way?** I know that in the above, there are denotational ambiguities as $1$ is actually treated as $f^0 = id$ ... But since the result is correct, there seems to be some correct thing in this approach.  So can I actually solve certain functional equations like this? And if true, how would the correct notation of the above be?


Why do color printers, cameras and monitors/tvs use different color models?

Many printers use CMY or CMYK whereas most computer monitors and TVs use RGB. Many cameras, film cameras, image and movie formats use YUV. Why don't they use the same color representation?


I can't open any virtual machine on VirtualBox

I'm using Ubuntu 17.0.4.  The error code is :   Failed to open a session for the virtual machine windws 7.  VT-x is disabled in the BIOS for all CPU modes (VERR_VMX_MSR_ALL_VMX_DISABLED).  Result Code: NS_ERROR_FAILURE (0x80004005)  Component: ConsoleWrap  Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}


How to place tree node not to overlap with tikzpicture?

I'm trying to draw a tree diagram using tikzpicture, the issue is that when the distance between nodes are not wide enough the tree nodes are wrapping. As I use two column style, I need to find a way not to overlap the nodes. What might be the options?   \documentclass[border=10pt]{standalone}  \usepackage{tikz} \begin{document} \begin{tikzpicture}[sibling distance=5em,     every node/.style = {shape=rectangle, rounded corners,         draw, align=center,         top color=white, bottom color=white}]]     \node {\textit{$sentence_i$}}         child {          { node {Sender}              child { node {Name} }             child              { node {Location}                  child { node {Latitude}}                 child { node {Longitude}}             }         }}         child    { node {Event}}           child    { node {Datetime}             {                 child { node {Date}}                 child { node {Time}}             }         }               child    { node {Location'}             {                 child { node {Lattitude'}}                 child { node {Longitude'}}             }         }; \end{tikzpicture} \end{document}


Can a full version of Ubuntu be Installed on a USB Drive?

I have installed Ubuntu several times on my thumb drive. First times were on 8 GB thumb drives. I noticed I could not save anything as when I rebooted, it was all gone.  So, I got a 30 GB drive, tried installing again... and same thing.  Now I've found out I am running a LIVE version... not actually an installation.  So, for the somewhat novice who cannot do command-line installs,  step by step is there a way to install ubuntu-12.04.3-desktop-i386.iso using, unetbootin-windows-585.exe to a 30 GB USB stick using my Windows 7 machine?


How can I remove partitions? I already have 4

Help I want to remove my partitions everything apart from my windows 7 how can I do this ?


Reading NV chart data (.bsb and .eap) with QGIS?

I have some data from NV charts. As it looks like the data is contained in .bsb and .eap files. Is there a possibility to implement these data in QGIS as raster as a background? Loading the .bsb data directly seems not possible. Loading the .eap data works but there is only black and white lines and nothings looks like a map.  This nautical chart data seems to be different from NOAA data as no .kap files exist.  Data can be read using the following software: nv charts App, Chart Navigator professional, or Chart Navigator Standard.


How to obtain the sum of the following series? $\sum_{n=1}^\infty{\frac{n^2}{2^n}}$

It seems that I'm missing something about this.  First of all, the series is convergent: $\lim_{n\rightarrow\infty}\frac{2^{-n-1} (n+1)^2}{2^{-n} n^2}=\frac{1}{2}$ (ratio test)  What I tried to do is to find a limit of a partial sum $\lim_{n\rightarrow\infty}S_n$ as follows: $S_n=\frac{\frac{1}{6} n (n+1) (2 n+1)}{\frac{1-\left(\frac{1}{2}\right)^n}{2 \left(1-\frac{1}{2}\right)}}$. Still, the limit is $\infty$ and I'm clearly doing something wrong.


How to write unit test for a private void method in which other private method is being called?

private void ConvertString(ABC object)  {     String head = "";     String tail="string_tail";     if(!tail.isEmpty())      {         String converter = new StringConvert();         head = converter.convert(tail, TYPE1);         setHeadToTail(head,object);     } }  private void setHeadToTail(String head, ABC object)  {     List<Mixture> values=object.getValues();     if (values!=null)      {         for (Mixture Values1 : values)          {             if (Values1 instanceof NumMixture)              {                 ((NumMixture) Values1 ).setTail(head);             }         }      }   }  I want to write unit test for ConvertString method to check weather the value 'head' converted is equal to the value 'head' being passed in setHeadToTail(). Can anyone help in this?  @Test public void test_ConvertedValue() throws Exception {      ABC obj1=methodToSetSomeValues();     Method method=Project.class.getDeclaredMethod("ConvertString", ABC.class);     method.setAccessible(true);     method.invoke(new Project(), obj1);     String expectedVal= "1234";      ArgumentCaptor<String> argumentCaptor=ArgumentCaptor.forClass(String.class);      verifyPrivate(new Project()).invoke("setHeadToTail", argumentCaptor.capture(), obj1);     assertEquals(expectedVal,argumentCaptor.getValue());   }   In this test case I want to check the value of 'head' converted is equal to parameter passed in setHeadToTail() i.e. head but this is not working.


How to create your own commands that can be used anywhere

I am new to linux, and I am learning bash scripting at the moment. I was wondering how I would save my script as a command and then be able to call that command anywhere in the terminal. So i could save the command in a folder somewhere, but be able to use that command in a different folder without having to type out the path to said command.  Is there a way to do this? For example, I make a script that runs chmod +x 'file' and then takes an argument for the file to run the command on. How would i go about coding this and then saving it so i can call that script from anywhere.  Sorry if i didn't explain my question too well, and thank you for any help with my problem.


Activate Excel Add-Ins as part of Deployment?

I am using the office customization tool to create an unattended installation file for Microsoft Office 2010 pro plus. I have everything setup as I like, except that I need the excel add-ins activated (Analysis ToolPak, Analysis ToolPak - VBA, Euro Currency Tools, Solver.)   There is a section of the office tool that lets me customize the features, and I have configured the entire excel branch to be "Run from my computer," but the add-ins are still grayed out.  Does anybody know how to activate these excel add-ins via command line or registry entries? Am I missing something with the office customization tool?


Overstayed in Philippines for 18 years. I wanna go back in Hawaii. But i have no money. Also my passport lost 3 years ago. I don't know what to do. Not enough money to go home.


how many ways can you write a number n as a sum of 1s, 2s and 3s

Given $n \in \mathbb{N}$ how many ways can one write $n=a+2b+3c$ for $a,b,c \in \mathbb{N}$.  I have an idea as if I use a a 3-tuple to represent $(a,b,c)$, I can list all of them using two functions $f((a,b,c)) = (a-2,b+1,c)$ and $g((a,b,c)) = (a-1,b-1,c+1)$. Which makes a nice pattern that should be easy to compute for any n however I'm struggling finding an actual equation that works everytime. Right now I have one that works sometimes being; Let $x = \left \lfloor{n/2}\right \rfloor  $, $y = \left \lfloor{n/6}\right \rfloor  $ and $z = x-y$. Then the function $f(n)$ is the count. $f(n) = 1+x+(c/2)(c+1)+bc-b(b+1)$. However I know it's wrong.  EDIT: Sorry forgot to add that f(n) should be a function of just n.


Do i need MAC if i sign the message with for example ed25519?

If I understand correctly MAC makes sure that the encrypted message isn't altered, so I presume signing the message with for example ed25519 would do the job too. Am I right?


Sorting list with dictionaries values(Maximum to Minimum)

I have an array with loads of dictionaries in it. However I want to sort dictionaries in a way where I have maximum value to a specific key in a dictionary. For example I have a list that looks like this  [     {         "num_gurus": 40,         "id": 119749,         "code": null,         "name": "ART 198P",         "short_name": "ART 198P",         "title": "Directed Group Study",         "department_long": null,         "full_name": "Directed Group Study",         "department_short": "ART"     },     {         "num_gurus": 3,         "id": 119825,         "code": null,         "name": "ASAMST 198P",         "short_name": "ASAMST 198P",         "title": "Supervised Group Study",         "department_long": null,         "full_name": "Supervised Group Study",         "department_short": "ASAMST"     },     {         "num_gurus": 200,         "id": 119904,         "code": null,         "name": "AST 636",         "short_name": "AST 636",         "title": "Baudelaire: Art Poetry Modernity",         "department_long": null,         "full_name": "Baudelaire: Art Poetry Modernity",         "department_short": "AST"     } ]   I want my output to sort my dictionaries where the value of a key attribute 'num_gurus' is maximum to minimum. Expected output would be.  [     {         "num_gurus": 200,         "id": 119904,         "code": null,         "name": "AST 636",         "short_name": "AST 636",         "title": "Baudelaire: Art Poetry Modernity",         "department_long": null,         "full_name": "Baudelaire: Art Poetry Modernity",         "department_short": "AST"     }     {         "num_gurus": 40,         "id": 119749,         "code": null,         "name": "ART 198P",         "short_name": "ART 198P",         "title": "Directed Group Study",         "department_long": null,         "full_name": "Directed Group Study",         "department_short": "ART"     },     {         "num_gurus": 3,         "id": 119825,         "code": null,         "name": "ASAMST 198P",         "short_name": "ASAMST 198P",         "title": "Supervised Group Study",         "department_long": null,         "full_name": "Supervised Group Study",         "department_short": "ASAMST"     }  ]   I have tried this so far      for items in load_as_json:             for key, val in sorted(items['num_gurus'].iteritems(), key=lambda (k,v): (v,k), reverse=True):                 print key,val  This throws me error and doesn't do what I actually want to. This is the error I got.   File "utils.py", line 61, in GetPopularCoursesBasedOnGurus     for key, val in sorted(str(items['num_gurus']).iteritems(), key=lambda (k,v): (v,k)): AttributeError: 'str' object has no attribute 'iteritems'


I've just been looking through a few man pages for a few different commands including grep and ifconfig.  I've noticed over a few pages, the content uses a strange syntax to notate what i think are quotations (back-tick followed by a single or double quote):  `text'     Why can't they use ' or " to open and close quotations?  Update  I now realise that this should be bolding out the characters instead of noting quotes. Is there any reason my system is ignoring these when formatting? I'm using OSX.


I have an array with 3 items "AAA", "BBB" & "CCC"  I have a string and its value is "CCC"  I am looking for a condition that will take this string and check if its in the array.  I get the array via:  string[] departmentArray = newDepartment.Split(',');   and the string  string department = "CCC";


Web-design: "Paging" versus "Dynamic content loading"

I apologize for badly formed Title, but I do not know the actual term for the latter case where content loads and expands the page downwards.  This seems to be the trend today, and it is a pain to follow such trend. I personally prefer paging in ALL cases. If I have to refresh or revisit a site to find a certain item, I simply can not, because of how the content is loaded on to the pages these days.  Even if a search engine points me to a page where the information exists, I have to crawl through the content to find it.  But with paging, I simply jumped straight on to the page where the information is.  Why do we keep taking steps backwards with design trends? What is the point behind this style? Only reason I could think of is that I don't have to reload the whole page with this "dynamic content loading", but that's it..


I am having trouble remembering how find the generators of a field.   Let's say I have $\Bbb{F}_5$ adjoined $\sqrt{2}$, and I want to show that $2+\sqrt{2}$ is a generator in F^x. So it's order is 34 and |F|=25. For some reason I was thinking I raise $2+\sqrt{2}$ to every power that is not co-prime to $24$, and if it not equal to $1$, it is a generator. But that is going to be awful, and there must be an easier way to accomplish this.


Has Salesforce stopped cleaning up old debug logs?

Seems like every time I open the dev console these days I get this message:     The Developer Console didn't set the DEVELOPER_LOG trace flag on your   user. Having an active trace flag triggers debug logging. You have 403   MB of the maximum 250 MB of debug logs. Before you can edit trace   flags, delete some debug logs.   I've had to manually query ApexLog using the Tooling API and delete the existing logs every time for new logs to start recording again.   I did hear somewhere that SF switched from a time limit on debug logs to a size limit... But is there a setting change that allows SF to go back to deleting the oldest logs when the size limit is reached?


finding line integral with potential function

Evaluate the line integral  $$ \int_C (\ln y) e^{-x} \,dx - \dfrac{e^{-x}}{y}\,dy + z\,dz $$  where C is the curve parametrized by $r(t)=(t-1)i+e^{t^4}j+(t^2+1)k$ for $0\leq t\leq 1$  I know that the potential function is $$f(x, y, z) = -e^{-x}\ln y + \frac{z^2}{2} + C$$ but exactly how would I use that to evaluate the line integral?


how to make tabular width stretch to page

How ? my code and result below  \chapter*{Camera Calibration Data, \\ Cont'd}  Focal Length in x = 953.58\\ Focal Length in y = 953.58\\ Principal Point = (959.5, 539.5)\\   \begin{tabular}{|c|c|c|}   \hline Camera 1 & $\begin{array}{ccc} 0.99997 & -0.00769 & 0.00016 \\ -0.00500 & -0.66628 &-0.74569 \\ 0.00585 & 0.74567 & -0.66630 \end{array}$ & 0\\ \hline Camera 2 &   0& 0\\ \hline Camera 2 &  0 & 0\\ \hline Camera 2 &0  & 0\\ \hline Camera 2 &  0 & 0\\ \hline Camera 2 &  0 & 0\\ \hline \end{tabular}   I am trying to make it look like


NullPointerException with custom font in android

I am getting this error on using a custom font. I have tried using the code in MainActivity and the Respective xml activity(Enquiry) too ( in this case there's no error but the font wont apply).  MainActivity  public class MainActivity extends AppCompatActivity         implements NavigationView.OnNavigationItemSelectedListener {     WebView webView;    TextView tv_appname;     Typeface typeface;      @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);         String fontpath="font/batman.ttf";         tv_appname=(TextView)findViewById(R.id.tv_appname);         typeface= Typeface.createFromAsset(getAssets(),fontpath);         tv_appname.setTypeface(typeface);   Acitivity Enquiry(In which the text is placed whose font I want to change)  <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:app="http://schemas.android.com/apk/res-auto"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:background="@drawable/bg"     tools:context="mayank2511.galgotiasuniversity.EnquiryActivity"     android:id="@+id/nav_enq"     android:paddingLeft="20dp"     android:orientation="vertical">     <TextView         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:text="Enquiry Form"         android:textSize="34sp"         android:textColor="#fff"         android:id="@+id/tv_appname"         android:layout_marginTop="10dp"         android:gravity="center"/>   Enquiry Activity (incase it helps- it's commented rn)  public class EnquiryActivity extends AppCompatActivity {    /* TextView tv_appname;     Typeface typeface; */     @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_enquiry);         /*String fontpath="font/batman.ttf";         tv_appname=(TextView)findViewById(R.id.tv_appname);         typeface= Typeface.createFromAsset(getAssets(),fontpath);         tv_appname.setTypeface(typeface);         getSupportActionBar().hide();*/         getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);     } }


Stick two faces to each other with different rotation

I am trying to stick two faces to each other. These two faces are of the same size, but do not have the same rotation. I tried to do it manually and I of course experimented with the magnet tool, but it did not work well till now. Is there a possibility to mark two faces like "that they belong together" and stick perfectly to each other like magnets?  Thank you, Huxi


Diff Between p[i] , i[p] and *(p+i) , *(i+p) in C/C++

I want to know the Difference between below four terms in C/C++:   p[i]  i[p] *(p+i) *(i+p)   Where p is Array, i is loop current index.


Without the Axiom of Choice, must two nonempty sets have a surjection between them?

Let $A$ and $B$ be two nonempty sets. Can we show, without using the Axiom of Choice, that there must either be a surjection $A\to B$ or $B\to A$?  With Choice we can do this by using Zorn to obtain a maximal injective partial function $A\to B$, and then extending it to a surjection in one direction or the other.


I exactly want to know that what does  mean? if a person carrying a bag but he is standing he is not doing any work because bag did not cover any displacement in the direction of force but if a person is walking then did he do any work or not?


Selecting lowest values in from attribute table in ModelBuilder?

I am trying to select the lowest value from an attribute table within model builder. I have used the Sort tool to sort the values in ascending order but when I add the Select tool and go to enter an expression there is no value selectable. From my understanding, the Sort tool assigns an FID to each value with the lowest value being 1 in which I could use the Select tool and enter the expression: "FID = 1" to get my desired output.  I am relatively new to ModelBuilder.   Any suggestions on how to work through this?     Current Model


How can I clean out duplicate entries from my PATH?

Currently, my $PATH has two identical entries for /usr/local/bin and I'm curious whether there's a way to clean that up, or if I should just not worry about it. It looks like this (broken up into a readable list):  /Users/myself/.rvm/gems/ruby-2.0.0-p353/bin /Users/myself/.rvm/gems/ruby-2.0.0-p353@global/bin /Users/myself/.rvm/rubies/ruby-2.0.0-p353/bin /usr/local/bin <--( Here ) /usr/bin /bin /usr/sbin /sbin /usr/local/bin <--( Here ) /opt/X11/bin /usr/texbin /Users/myself/.rvm/bin


Is it possible to save frequently used expressions in QGIS?

Is there any way to save frequently used expressions in the selection or field calculator dialogs? Obviously I can cut and paste them into a file where I might save them, but I mean within the context of QGIS like you can do in ArcMap.


Type «sudo» is not known on line 1 of the sources list

7I was trying to install Spotify on my fresh install of Ubuntu 16.04 LTS 64Bits, something went wrong, now I got the error message shown in the picture and cannot open the update manager.    These are the steps that I followed:   Add the Spotify repository signing key to be able to verify downloaded packages  sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys BBEBDCB318AD50EC6865090613B00F1FD2C19886  Add the Spotify repository  echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list  Update list of available packages  sudo apt-get update  Install Spotify  sudo apt-get install spotify-client    This is the message shown in the terminal  $ sudo apt update N: Omitiendo fichero «sp» del directorio «/etc/apt/sources.list.d/», ya que no tiene extensión de nombre de fichero E: Tipo «sudo» desconocido en la línea 1 de la lista de fuentes /etc/apt/sources.list.d/spotify.list E: No se pudieron leer las listas de fuentes.


Software & updates shows intel 8265 / 8275 wireless driver not working: don't use device or contnue using a manually installed driver?

I have recently upgraded to Ubuntu 20.04 on my Matebook X Pro running an Intel 8265 / 8275 wireless card. The wifi is working fine on my device, a little slow. However, when I go into the Additional Drivers tab in Software & Updates. It says that the wireless device is not working and gives me three options only two of which I can select Do not use the device or continue using a manually installed driver.  Is there anything I need to be fixing since it says the device is not working?  Thanks for the help!


How many ordered pairs (A,B) , where A , B are subsets of {1,2,3,4,5} have: |A∩B|=1

if A ,  B  are subsets of  {1,2,3,4,5}  How many ordered pairs  (A,B)  have: |A∩B|=1


Expect script to remote SSH between 2 servers

I am new to expect scripting, I have a case where I need to run a script on a on a server that contains our backups that will send a command to my firewall device that will send a backup to an internal FTP server. My snippet is  #!/usr/bin/expect set PASS="password" spawn ssh admin@10.3.0.1 -p 4118   #Firewall Device IP expect "Password:"  send "$PASS\r"   For some reason when running this small snippet of code by itself it still asks for a password to be entered.  I applied the changes suggested by Joao Vitorino, it' no longer asking for a password but it is throwing these errors:     TEST.sh: spawn: not found    TEST.sh: expect: not found    TEST.sh: send: not found


Orthogonal Projection of $ z $ onto the Affine set $ \left\{ x \mid A x = b \right\} $

Suppose $A$ is fat(number of columns > number of rows) and full row rank. The projection of $z$ onto $\{x\mid Ax = b\}$ is (affine)        $$P(z) = z - A^T(AA^T)^{-1}(Az-b)$$       How to show this?       Note:  $A^T(AA^T)^{-1}$ is the pseudo-inverse of $A$   What I am thinking is from:   Least square problem:  $$\text{min $\left\|\: Ax-b \,\right\|_2$}$$ The solution for this is $\hat{x} = A^T(AA^T)^{-1}b$. It seems $(Az - b )$ above is the role of $b$ here.   Vector projection of $x$ onto $y$:    $$p = \frac{x^Ty}{y^Ty}y$$      But I still cannot figure out how to prove the above result.


Why can't I upvote something if it just helped me

It seems it would be very nice if a user could comment on or upvote something that just helped them solve a problem.  I was disappointed that I couldn't enforce an answer or comment that really helped me because my reputation is so low.  Seems silly, because some of the upvotes would probably be a lot greater if people doing searches could upvote them.


Select characters by holding down a key in Linux (like in OSX)

I've been wondering if there's any add on available that does something like Mac OS X. My mother tongue is Spanish, and now I live in a Francophone environment, I also do English a lot, so I'm in need of different accents, specially in French, I have been using Linux for two years now and have also been using Mac OS X every now and then, for testing purposes. I find really useful the functionality available on Mac OS X, where you keep pressing the key and it displays a list of available options on the same character, different accents, or punctuation. Can I do this on Linux?


Will the small proportion ruin the ability of chi-square test?

Let me raise an example to be clear: say I have a 2*2 contingency table as follows:  5 10  10000 10000  I assume it satisfies the assumptions of chi-square test. But the proportion ~ 0.05% is very small. Will it cause a problem? E.g. the effect size can be small I suspect.


View the change history of a file using Git versioning

How can I view the change history of an individual file in Git, complete details with what has changed?  I have got as far as:   git log -- [filename]   which shows me the commit history of the file, but how do I get at the content of each of the file changes?  I'm trying to make the transition from MS SourceSafe and that used to be a simple right-click → show history.


What's the correct way to remove broken uninstall in Windows?

I'm using Windows 10 Home 64-bit. I have a program that was manually deleted from the “Program Files” folder, but it still shows it in the “Programs and Features” list, and when I click uninstall it shows an error message saying that Windows cannot find the uninstaller:    I've seen many other s in this SE saying that from the registry editor I should go to:  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall   for me, it was in  HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\   then go the key to be deleted by locating the key name created by the program, then finally delete the selected registry key and its values.  Where that worked, and no more issue in the add or remove programs panel, but I pressed Ctrl+F and typed in the 'application's name' and tried to search for in the registry editor, so I found many results    and in those locations for example:  HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\LowRegistry\Audio\PolicyConfig\PropertyStore\c24b033a_0   ,  HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Compatibility Assistant\Store   ,  HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers   Should I worry about these values? would they have been removed if I had used the proper way of uninstallation? should I manually delete them? is their existence necessary? or should just ignore them?


How Amy is able to bring back the people she remembers

In The Big Bang episode, Amy recalled the Doctor by looking at River's notebook and brought him back. Why can Amy do this? How did River not forget the doctor? and If River didn't forget the doctor, how could she can not bring the doctor back?