Show how many items are hidden by CSS Overflow using jQuery or JS

Ive been digging all day on a way to handle this. Im showing color swatches for products but I want to only show 1 row and have the rest that don't fit within the box to be hidden and show either a + sign or +3,+4,+5 based on how many cant be seen. The box also changes sizes based on screen size.    I'm open to ideas that dont use CSS overflow but I'm not sure where to start.  HTML and CSS is just one DIV with 15 image tags in it. Height of 20px and overflow:hidden. All of this doesnt matter as I can change it to anything needed though.


Draw and update text in viewport without modal operator in blender

At the moment, i draw ma text in viewport with this modal operator:  _handle = None  def modal(self, context, event):     context.area.tag_redraw()     if not context.window_manager.show_text.enabled:         return {'CANCELLED'}     return {'PASS_THROUGH'}  @staticmethod def handle_add(self, context):     VIEW3D_OT_ADH_display_text._handle = bpy.types.SpaceView3D.draw_handler_add(            draw_text_callback,             (self, context),            'WINDOW', 'POST_PIXEL')  @staticmethod def handle_remove(context):     _handle = VIEW3D_OT_ADH_display_text._handle     if _handle != None:         bpy.types.SpaceView3D.draw_handler_remove(_handle, 'WINDOW')     VIEW3D_OT_ADH_display_text._handle = None  def invoke(self, context, event):     if context.window_manager.show_text.enabled == False:         context.window_manager.show_text.enabled = True         VIEW3D_OT_ADH_display_text.handle_add(self, context)          return {'RUNNING_MODAL'}     else:         context.window_manager.show_text.enabled = False         VIEW3D_OT_ADH_display_text.handle_remove(context)          return {'CANCELLED'}      return {'CANCELLED'}   Is it possible to draw my text without modal operator and update it with:  bpy.app.handlers.scene_update_post   when my mesh is updated please ?


Let $G$ be a group, and let $g \in G$ be an element of order $n \in \mathbb{N} \setminus \{0\}$. Prove that for all $r \in \mathbb{Z}$ we have $$ o(g^r) = \frac{ n}{\gcd(n,r)} $$ where $o(g^r)$ means the order of $g^r$ in $G$.  Attempt at proof: Let $r \in \mathbb{Z}$ be arbitrary. Let $m \geq 1$ be a positive integer. Then $(g^r)^m = g^{rm} = e $ if and only if $n \mid rm $ since $n$ is the smallest positive integer such that $g^n= e$. Since $n$ divides $rm$, there exists a $q \in \mathbb{Z}$ such that $nq = rm$. So $ m = nq / r$. I want now to conclude somehow that $$ nq = \operatorname{lcm}(n,r) $$ since we can then use the relation $$ \frac{n}{\gcd(n,r)} = \frac{\operatorname{lcm}(n,r)}{r} $$ and the assertion would follow. Any help?


How detailed is penalty kick encroachment in football

The laws of the game prohibit encroaching on a penalty kick whether it is an attacking player or defending player.  The keeper is supposed to remain on the line until the kick is taken but in practice this is a loose interpretation; movement off the line is common.   My question is: if another player (besides the keeper and penalty taker) has a foot on/over the line of the 18 yard box or the arc, what grounds are there for a retake or an indirect kick out?  Is it a similar loose interpretation which goes unpunished or shall it be referenced as an offside play or simply an infringement?


JTextField with JComboBox is not working properly

I want a JTextField to appear when user select "Extra" in JComboBox list and hidden otherwise. But the JTextField is not appearing when user is selecting "Extra" but it is appearing if i shrink the window and enlarge it again. After doing like that it is working properly, only for the first time it is not appearing. Why it is behaving like that? any solution for this?  Here is my code:  getCmbJtocsv_C_8().addActionListener(new ActionListener() {     public void actionPerformed(ActionEvent e) {    {        input3 = (String)adaptor.getCmbJtocsv_C_8().getSelectedItem();       adaptor.getTxtJtocsv_C_8().setVisible(false);        if(input3.equals("extra")){           adaptor.getTxtJtocsv_C_8().setVisible(true);       } }   i have changed the string comparison and i'm still getting the same result.


Please let me know if I can deploy juju on Eucalyptus, if yes please provide me the configuration details which i need to edit on environments.yaml file.


Where are Windows 7 wireless connection event logs?

I'm trying to diagnose and test some a Windows 7 domain-auth-over-wireless-network. I'd like to see what network the computer is connecting to, what auth it is using, and what DHCP data it receives prior to user login, and also what happens after user login. Does event viewer show this info? Do I need to enable it anywhere?  Cheers,  Victor


How can I search for all files that are not user writeable in unix using grep

I am trying to see all the files that are not user writeable. I know I can use the ls command to view all, but I wanted to have just the ones that are not user writeable. I am currently in unix and the find command will not work for me


Turn Off Device Enrollment Notifications

I keep getting notifications about the Mac being able to be configured automatically. I have no profiles installed and there are no files in LaunchAgents or LaunchDaemons. Tried turning off notifications from System Preferences but that didn't seem to work. Does anyone have any idea on where that notification is coming from and how to turn it off?


How to prove if n>2 is a prime number, then n is odd?

I understand why this is true, but I have no idea on how I'd go about proving it by writing a detailed structured proof.  Since a prime number is a integer, I started off like this:  Assume n in Z     Assume n > 2 and is a prime         Then...?   I also know that for a number to be even, it has to be divisble by 2. And if n is divisible by 2, then it can't be a prime number (exception is 2 = 2 x 1).  But how would I write this out formally?  Thank you!


gksudo for Baobab Disk Usage Analyzer doesn't show /boot. I recently removed several old kernels. How can I verify that I've freed up space in /boot?     Backstory — I started spring cleaning because Ubuntu wasn't booting properly without workarounds. I diagnosed the error when my computer warned me that /boot was almost full. The warning opened Disk Usage Analyzer without root permission so /boot wasn't scanned. Now the analyzer can't seem to find the directory at all.  What I Did — After updating to most recent kernel, I removed old kernels one at a time with:   sudo apt purge linux-image-[VERSION].   When I was done, I updated grub2.  Each time the purge command said it would free up 0 Bytes of space. They are gone tho according to:   dpkg --list | grep linux-image


If starting speed is faster than terminal velocity then what?

If an object is say thrown down (vertically) at an initial speed that is faster than its terminal velocity, what would happen to that objects speed? Would it slow down?


I had a taxonomy called: wossom. And I was using taxonomy-wossom.php as the template file that will describe a term of this taxonomy.  Now I need to change the name of the taxonomy to wossom-balag, so I changed the name of the template to taxonomy-wossom-balag.php. But the page is not working correctly.  Is the cause of the problem the fact that I am not respecting naming convention for the hierarchy?  Thank you very much


find nonsingular matrices $B$ and $C$ that satisfy $BC+ CB= 0$

How to find two non singular matrices $B$ and $C$ such that $BC+ CB= 0$. Clearly $B$ and $C$ must be square matrices of same order and the order is even.so it is possible we can find some example of order 2. But I cannot find any. I would be happy if someone helps me in finding some matrices.Thanks in advance.


Dot product of two vectors as the eigenvalue of a special matrix

I just noticed that for any two Cartesian vectors their dot product is precisely the only non-zero eigenvalue (if such exists) of the following matrix:  $$\vec{a}=(a_1,a_2,a_3,\dots)$$  $$\vec{b}=(b_1,b_2,b_3,\dots)$$  $$A_{mn}=a_m b_n$$  For example:  $$\vec{a}=(a_1,a_2)$$  $$\vec{b}=(b_1,b_2)$$  $$A= \left[ \begin{matrix} a_1 b_1 & a_1 b_2 \\ a_2 b_1 & a_2 b_2 \end{matrix} \right]$$  $$\left| \begin{matrix} a_1 b_1-x & a_2 b_2 \\ a_2 b_1 & a_2 b_2-x \end{matrix} \right|=x^2-(a_1b_1+a_2b_2)x=0$$  $$x_1=0,~~~x_2=a_1b_1+a_2b_2=\vec{a} \cdot \vec{b}$$  The same works for vectors of any dimension. We obtain the following characteristic polynomial of $A$:  $$x^d-(a_1b_1+a_2b_2+\dots+a_db_d)x^{d-1}=0$$  Of course for two perpendicular vectors their dot product will be zero, so the characteristic polynomial will just be:  $$x^d=0$$     Is there some deeper meaning behind all this?


Prove $f $ is identically zero if $f(0)=0$ and $|f'(x)|\le|f(x)|$

$f:\Bbb R \to\Bbb R $ is differentiable, $f(0)=0$ and $|f'(x)|\le|f(x)|$ for all $x$ then prove $f$ is identically zero.  I tried to use mean value theorem and end up in $|f(x)|\le |x||f(c)|$ for some constant $c$ which depends on $x$. Can you help me little bit...


I have some suggesting questions on Area51. When I get a notification in that, the app will switch to Safari. It's inconvenience for me, since I have to log in and don't feel so native. Why does the iPad app not support Area51?


Capacitor sizing on a voltage regulator output

I have an application in which an RFID reader demands 200 mA of current when it attempts to read an RFID tag. For some reason the current switcher power supply either can't supply enough current or can't supply a clean enough voltage and I end up with a poor performance on the reader.   I want to use a standard LM7805CT regulator in place of the switcher, but how large of a capacitor should I use? The datasheet suggests 0.1 uF, but I'm not sure that is large enough since the reader gets turned on and off a lot.  I am regulating down from a 24 V battery (it is pushing the limit of that particular regulator, but I will add active heatskinking to it).


If I were an MLA, I would have helped people yesterday   If I were an MLA, I would help people tomorrow      If I was an MLA, I would have helped people yesterday   If I was an MLA, I would help people tomorrow   Are they grammatically correct? Someone says If-something-was and    Perfect tense' (would+verb third form) aren't acceptable in condition sentence to use along with one another. They say If we use them with perfect one, then it will be correct. For example: If I had been an MLA, I would have helped people.  If I were/was an MLA, I would help people Are they right that that's incorrect to use so? I'm oblivious to the examples because I haven't influential skills on grammar; I wrote them on my own. Sorry If I made any errors there


I have a set of Photoshop files which consist of a base image with a series of layers with colored overlays. The overlays are labeled using the layer names.  My task is to get these overlays as SVG paths, somehow preserving the labels. (If I can preserve the fill colors as well, that would be cool, but we can define arbitrary fill colors if needed.)  So far we have tried exporting the layers as Illustrator paths, and then exporting to SVG from Illustrator. This gets us reasonable SVG paths, but (a) we lose the labels, and (b) if a layer has more than one discrete section in its overlay, it is separated into several paths.  Is there a way to get these layers into SVG while retaining the labels? Or should we do our Export > Illustrator > SVG  route on a layer-by-layer basis?  We're working with CS5, if that's important.  ETA to answerers: We've long since finished this project and delivered the job, so I can't accept an answer, but feel free to pitch in your potential solutions for others.


Convert multiple images to a gif with cross-dissolve

I've found both of these amazing answers on Superuser: one to convert a series of images to a video with cross-dissolves between them, and another to convert a video to a high-quality gif. My follow-up question to both of those is, how can I do this in one command, for multiple images (could be 3 images, or could be 20).  @LordNeckbeard and other ffmpeg superusers, can you help me out?  Here's the answers that have helped so far:  Images to Video with cross-dissolve:   Video to Gif:


Why does Retrofit enqueue produce null point exception?

I have created my own test JSON and try to incorporate it into my Android app using Retrofit but for some reason I can´t seem to understand I get a Null Point Exception when trying to fetch the JSON.   I have created JSON that looks something like this:  [{"date":"2019/01/01","availability":"available"},{"date":"2019/01/02","availability":"closed"},{"date":"2019/01/03","availability":"closed"}]   And so on...  Then I have set up both the Retrofit code and the Room database code.  Here is the Retrofit code from the main class:  public class MainActivity extends AppCompatActivity {  MainRepository mainRepository; Call<List<RFVariables>> getRFPosts;  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate( savedInstanceState );     setContentView( R.layout.activity_main );      getRFPosts = mainRepository.getGetPosts();      getRFPosts.enqueue( new Callback<List<RFVariables>>() {         @Override         public void onResponse(Call<List<RFVariables>> call, Response<List<RFVariables>> response) {             List<RFVariables> myResponse = response.body();              if(myResponse != null) {                 for(RFVariables item: myResponse) {                     Log.d("TAG", item.getDate());                  }             }          }          @Override         public void onFailure(Call<List<RFVariables>> call, Throwable t) {          }     } );   It crashes on the getRFPosts = mainRepository.getGetPosts(); line with the error Attempt to invoke interface method 'void retrofit2.Call.enqueue(retrofit2.Callback)' on a null object reference         at com.slothmode.sunnyatsea.MainActivity.onCreate(MainActivity.java:25)  The repository code looks like this:  private Retrofit retrofitObject; private RFCalls retrofitRepository; private Call<List<RFVariables>> getPosts;  public MainRepository(Application application) {     this.retrofitObject = new Retrofit.Builder()             .baseUrl( "https://api.myjson.com/bins/" )             .addConverterFactory( GsonConverterFactory.create() )             .build();      this.retrofitRepository = this.retrofitObject.create( RFCalls.class );     this.getPosts = this.retrofitRepository.findPosts(); }  public Call<List<RFVariables>> getGetPosts() {     return getPosts; }   I have done this successfully before, so not sure what's mising this time around. Seems like an exact replica of my other successful projects. What am I missing? Let me know if there is more code I should show. Thanks in advance. Really stuck here.


Content type permission to specific users

How do I set content permission so that specific content types become visible/usable to the admin user only, while other content types may be visible by other user roles?  After I added new content types, I checked the rebuild permissions.   Content access is working fine but the problem seems to be the fact that the enw content types aren't made visible / accessible to the other roles...


Distribution of quadratic forms of normal variables

Suppose $X\sim \bf{N}_m(\bf{\mu}, \bf{\Sigma})$ where the covariance matrix $\bf \Sigma$ is positive definite. Show that the distribution of $X^T{\bf{B}}X \sim \chi^2(\bf{tr(B\Sigma)})$where $\bf B$ satisfies    $\bf{B\Sigma B}=\bf{B}$ $\bf\mu^TB\mu=0$  Now, previously I had done this result, when $\Sigma$ was replaced by $\bf{I}$ and $B$ was idempotent. This one is where I am stuck. I have found that $\bf B\Sigma$ and $\bf \Sigma B$ are idempotent. Now, I tried to find some $U\sim \bf{N_{\text{tr}(B\Sigma)}}(0, I)$ such that $U^TU=X^T{\bf{B}}X$ then we would be done, but I can't seem to find such an $U$. Can someone help me? Thanks.


Would like to install Ubuntu on secondary hard drive within my computer

Okay, so here's the story.  I am trying to install Ubuntu 13.04.  I currently have a 2TB drive in my computer where Windows 7 boots from, and a secondary 500GB drive that also has a bootable installation of Windows 7, because the version on the 2TB is a clone of what was on the 500.. I do not need any information on the 500 as I already have it moved over to the 2TB.  What I want is to completely reformat the 500 so that it has about 300GB for NTFS and the rest for Ubuntu.  However, I can't seem to find a straightfoward way to do that in the Ubuntu installer.  If I click on "Install Ubuntu alongside them," it does not give me the option to select my 500GB drive, only my 2TB.  I do NOT want any linux partitions on my 2TB drive.  I do not want to click, "Erase disc and install Ubuntu" for obvious reasons.  Finally, clicking "something else" brings up a menu that is quite confusing.  I can kind of figure out how to use it, but it's not as straightfoward as I'd like..  Further, I know that Ubuntu requires a SWAP partition, but I do not know how much, or even how, to allocate that with the stupid dropdown menus it gives me.  So, to get to the point..  What is the easiest, safest way to do what I want to do?  That is, allocate approximately 200G for Ubuntu on my 500G drive, and be able to choose between Windows 7 on my 2TB drive and Ubuntu at startup - all, of coarse, without touching the 2TB drive at all.  Thanks!


I have been using the following commands in my preamble.   \usepackage{amsthm} \theoremstyle{definition} \newtheorem{exmp}{Example}[section]  \newcounter{Examplecounter} \newenvironment{MathematicalBackground}{%   \begin{quote}%     \refstepcounter{Examplecounter}%     \textbf{Mathematical Background \arabic{Examplecounter}}%     \quad }{%   \end{quote}% }   Then in the text I am using the following.   \begin{mdframed}[backgroundcolor=brown!20]   \begin{MathematicalBackground}     ...   \end{MathematicalBackground} \end{mdframed}   I also have a different type of region in the text defined by,  \begin{exmp}   \begin{mdframed}[backgroundcolor=blue!20]     ...   \end{mdframed} \end{exmp}   With figures and tables we can create lists at the front of the document by using \listof... commands. How can I get a list of these two environments at the front of the document? I am aware of this  but still can not define my lists.   Many thanks for your help!   Edit   From the link I entered    \usepackage{thmtools} \renewcommand{\listoftheoremname}{MathematicalBackground}    Then entered the following at the start of the text.    \listoftheorems[ignoreall,show={MathematicalBackground}]   I also tried swapping MathematicalBackground for expm. All wouldn't parse, so I am definitely doing something very wrong here.


Which cell balancing method is best to use and implement for low-voltage (48V battery stack) battery management system for E-bike application?

I would like to design a battery management system for low voltage systems. I am developing a BMS for a 48V, 20Ah battery pack system.  When it comes to battery balancing, I am confused in between resistor based passive and capacitor based active cell balancing method.  Which one is better for my low voltage system application?  Passive cell balancing: Shunt resistor method: It bleeds the charge through resistors and transistor switch, but the energy is wasted through a resistor as heat.  Even though it is a low voltage battery pack my confusion is will this heat increase the temperature and will this be a problem?  Active cell balancing: Switched capacitor cell balancing in this method the battery is getting balanced by transferring the charge from high voltage cell to low voltage cells by using capacitor and transistor switch. It is more efficient than passive cell balancing but it takes more time to get equalized and it depends on large voltage variation.  Other cell balancing methods like inductor or transformer based and converter based are more efficient but more complex and expensive for low voltage BMS and as a beginner.  So I am confused as to which cell balancing method is best for a low voltage (48V, 20Ah) system. Please suggest to me which method is best to use based on my requirements.


Connect atoms with chemfig in nested rings

I'm trying to draw a cylindrospermopsin molecule using chemfig. There's my code  \documentclass[12pt]{standalone} \pagestyle{empty} \usepackage{standalone}  \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{makeidx} \usepackage{graphicx,graphics} \usepackage[brazil]{babel} \usepackage{chemfig} \begin{document} \chemfig{% A*6(-B*5(-R-S-\phantom{G}-\phantom{C})-C*6(-G-H-I(-K-[:-30]L*6(-M-N-O-P-Q=\phantom{L}))-J-\phantom{D})-D-E-F-) } \end{document}   I'm getting the following molecule    There's a way to link the S and G atoms correctly and make a single chemical bond between C and G  This is the entire cylindrospermopsin structure


Find the domain of composition of two functions

Let $$f(x)= \frac{x}{x-9} \text{ and } g(x) = \frac{-6}{x+5} $$   Find the domain of $f \circ g.$    Please show the steps and substitution/algebra to the problem. Thank you.


Why does JavaScript returns different outputs for the mathematically similar expression?

Let's say we have 3 variables   var a = 0.1  var b = 0.2  var c = 0.3   Why does (a + b) + c gives 0.6000000000000001 and a + (b + c) gives 0.6?


What is the correct way to use infinitive after the verb "help": with or without "to"?  For example:     Please, help me to understand this.   or:     Please, help me understand this.


I have two for-loops in python inside while loop as follows: while ..   for ..     for ..       if condition == True:          break   I want to break the first for-loop once the condition in the if statement is met, How can I achieve it, it appears that break is only terminating inner for loop and not outer, I want outer for-loop to be terminated.


Can I modify the existing tikz coil decoration, so that the downstrokes are not drawn in a certain interval, to produce a picture like this?    Edit: Previous attempts, code and MWE has been moved to or superseded by my own answer.


Is there a way to do nibble-by-nibble swap an array of bytes in memory?

In python to obtain the digest of the byte string, I do this   hashlib.sha224(b"Nobody inspects the spammish repetition").hexdigest()      Result: 'a4337bc45a8fc544c03f52dc550cd6e1e87021bc896588bd79e901e2'   to reverse result, I do this  hashlib.sha224(b"Nobody inspects the spammish repetition").hexdigest()[::-1]      Result: '2e109e97db885698cb12078e1e6dc055cd25f30c445cf8a54cb7334a'   I would like to do the same in C with Openssl.  I do this  #include <openssl/sha.h> #include <openssl/opensslv.h> #include <openssl/crypto.h>  int main() {    unsigned char digest[SHA224_DIGEST_LENGTH];    char string[] = "Nobody inspects the spammish repetition";    SHA224((unsigned char*)&string, strlen(string), (unsigned char*)&digest);         char mdString[SHA224_DIGEST_LENGTH * 2 + 1];    for (int i = 0; i < SHA224_DIGEST_LENGTH; i++)        sprintf(&mdString[i * 2], "%02x", (unsigned int)digest[i]);    printf("SHA224 digest: %s\n", mdString);     return EXIT_SUCCESS; }   but I don't know how, with C++, to get the same result as the reverse in python.  How can I achieve this?  Any help would be greatly appreciated. Thank you.  Edit: it's not the same as using std::reverse.  It is not a duplicate of the question ?  My solution: Ref:   for (uint16_t j=0; j < SHA224_DIGEST_LENGTH; j++)     digest[j] = ((digest[j] & 0x0F) << 4) | ((digest[j] & 0xF0) >> 4); std::reverse(std::begin(digest), std::end(digest));


Is there an animal equivalent to "anthropomorphism"? That is: ascribing animal traits to non-animals

I'm watching them demolish a building near me and thought that the JCBs were rather animalistic – almost dinosaur-like.  Anyway, it just got me onto thinking that it's not anthropomorphy if I want to give a non-human (animal) trait to an inanimate object.  Another example is that the comedian Isy Suttie once described an elderly person, hunched over and using a pair of walking sticks as resembling an insect (except she was funny). I suppose this is the same thing.  The only thing I can think of that might fit is "xenopomorphism".  Any ideas?


why a hidden column will be set as optional if i change its defualt value

Sometimes you are faced with problems that you can not understand . Now I have a hidden column inside my Issue tracking list, which is used to store a series of string to be read by the list workflow. now i set a defualt value for the column such as "ABC", and i set it as a hidden field, so user will not be able to modify its value or see it. but the problem is that if admin users chnage the defualt value of the hidden field from the "List Option>> List Setting >> Columns >> click on the hidden column", then its type inside the content type will be changed from hidden to optional and the field will appear inside the New and edit forms ,, so can any one adivce on this please? is there a way to prevent the hidden column from being set as optional when its defualt value is changed ? Thanks


using confirm alert box in js inside another function

I had a confirmation box that showed a confirmation alert when clicking on the delete button,  heres the function     it was working fine whenever i put a class for any html element, until i added it inside this function it stopped working  $(document).ready(function() {   $('#list').dataTable({     "ajax":{           url :"list.php",           type: "GET",           error: function(){             $("#post_list_processing").css("display","none");           }         },         "columns": [               { "data": "title" },               { "data": "description" },               {                 "data": function(item) {                   return 'delete';                 }               }           ]   }); });


Unit to display for 00:00 minute:second format

What would be a way of making clear the distinction between 00:00 min:sec format and 00:00 hour:min format? Due to spacing constraints (driven by specific client specs regarding font sizes; this is an embedded HMI), I can neither use full format (00:00:00) nor is there space for a full min:sec / hour:min pseudo-unit.  I'm thinking of using "h" for the hour:min entries and "min" for the "min:sec" entries, but this not really intuitive.


Appending a row with a button is not detected with jQuery [button.class]

Alright so I basically have a table that is drawn by PHP for every row. Within the row, I have data and a "delete" button to delete the specific row.   <?php    if ($result->num_rows > 0) {      // output data of each row      while($row = $result->fetch_assoc()) {          echo "
" . $row["id"]. "	" . $row["username"]. "	" . $row["active"]. "	<button class='btn btn-danger btnDelete btn-xs' href=''>delete</button>
";      } }    ?>   To delete the row, I have a script to show a modal when the button is clicked, using data-id as shown below.           $('button.btnDelete').on('click', function (e) {             e.preventDefault();             var id = $(this).closest('tr').data('id');             $('#myModal').data('id', id).modal('show');             $('#modaltitle').text('User ID: ' + id);             });   However, the question is: when I append to the table using jQuery, the row is shown and added to the database correctly, but the delete button does not bring up the modal to delete the row. It will only delete when the page is refreshed.  From the source, the code of the appended row looks ok to me.  Finally, here's the source for the appended row.          $('#btnAdd').click(function () {             var user = $('#user').text();             var newuser = $('#txtUserAdd').val().toLowerCase();             var dataString = 'user='+ user.toLowerCase() + '&user2=' + newuser;            $.ajax({            type: "POST",            url: "../adduser.php",            data: dataString,            cache: false,            success: function(result){            console.log(result);            $('#userlist tr:last').after("
ID	" +newuser+ "	Active	<button class='btn btn-danger btnDelete btn-xs' href=''>delete</button>
");             }             });         });   Help is much appreciated, let me know if you need more info.


Is it a logical flaw to blame someone for an event if they were simply its causal factor?

I would ask if this is a logical fallacy, but I don't think you can consider wrongful attribution of blame to be a logical fallacy, because attributing blame is a normative claim, not a descriptive one.  Suppose an event happens. Looking back at the chain of events, we see that person A did an action such that, had this action not occurred, the event would not have happened. We then blame person A for the event, and hold them morally responsible.  For example, suppose I have a gambling problem. Because of this problem, I steal money from my cousin's wallet and gamble it away. This triggers my cousin, who cares about me, to search for a gambling anonymous group for me to join. He finds one and drives over there. In the parking lot of the site, he gets accosted by a mugger who attacks, and essentially kills him. Now my family blames me and my gambling problem for my cousin's death.  Clearly it's true that, in an indirect way, my action caused my cousin to die. But it's a misattribution of blame to say that I'm morally responsible for my cousin's death based on my action. It would, however, be appropriate to say that I'm morally responsible for the loss of my cousin's money.  I believe that this is such a common error in argumentation that there must be a term for it.


$RP^1$  is homeomorphic to $S^1/\sim$, which is in turn homeomorphic to the closed upper semicircle with the endpoints identified. I cannot imagine how to paste the the antipodal points to make the circle into a semicircle in the 2 dimensional space. Can anyone show me the process of the pasting?


Good evening everyone!  I have  problem that I have searched for an answer for a few hours and I can't understand why it is happening! I have installed tinc (a VPN program). I have set it up as advised on the archlinux article for it. I have 2 installations. 1 is on google cloud (Works without errors) 1 is on my own virtual machine with ubuntu 18.04 (error message)  It should work by creating a tun interface. But it gets an error message. Here is the code it is trying to execute, it is contained in tinc-up:  ip link set dev $INTERFACE up ip addr add 10.0.0.2/32 dev $INTERFACE   the $INTERFACE part being /dev/net/tun that is default for tinc program. I tried added it separately instead of $INTERFACE, still the same error.  I am at my wits end. Does anyone have any kind of time to help me with this? It certainly would make my day!  Edit: I forgot the error message. Here is the log which contains the error message:  tincd 1.0.33 starting, debug level 5 /dev/net/tun is a Linux tun/tap device (tun mode) Executing script tinc-up sh: 1: /etc/tinc/vpn/tinc-up: Permission denied Script tinc-up exited with non-zero status 126 Listening on 0.0.0.0 port 655 Ready Trying to connect to vpn (34.72.222.60 port 655) Timeout from vpn (34.72.222.60 port 655) during authentication Could not set up a meta connection to vpn   Error message is: sh: 1: /etc/tinc/vpn/tinc-up: Permission denied  But I run it with sudo tincd. I have also tried sudo -s  Then starting tincd as the root user.


Help me understand Bayesian prior and posterior distributions

In a group of students, there are 2 out of 18 that are left-handed. Find the posterior distribution of left-handed students in the population assuming uninformative prior. Summarize the results. According to the literature 5-20% of people are left-handed. Take this information into account in your prior and calculate new posterior.    I know the beta distribution should be used here. First, with $\alpha$ and $\beta$ values as 1? The equation I found in the material for posterior is   $$\pi(r \vert Y ) \propto r^{(Y +−1)} \times (1 − r)^{(N−Y +−1)} \\ $$  $Y=2$, $N=18$  Why is that $r$ in the equation? ($r$ denoting the proportion of left-handed people). It is unknown, so how can it be in this equation? To me it seems ridiculous to calculate $r$ given $Y$ and use that $r$ in the equation giving $r$. Well, with the sample $r=2/18$ the result was $0,0019$. The $f$ should I deduce from that?  The equation giving an expected value of $R$ given known $Y$ and $N$ worked better and gave me $0,15$ which sounds about right. The equation being $E(r | X, N, α, β) = (α + X)/(α + β + N)$ with value $1$ assigned to $α$ and $β$. What values should I give $α$ and $β$ to take into account prior information?  Some tips would be much appreciated. A general lecture on prior and posterior distributions wouldn't hurt either (I have vague understanding what they are but only vague) Also bear in mind I'm not very advanced statistician (actually I'm a political scientist by my main trade) so advanced mathematics will probably fly over my head.


I created a simple maze (via surface subdivision, extrusion, smooth shadows and edge split). Now I want to add some 'hedge' textures to the walls. When I drag and drop the texture, I seem to get just one color instead of a texture?     It seems only a few cells got the right texture?    Edit: I've set up the texture manually for some planes, but is it possible to automise this process?    Edit2: It works when I select everything at once and then adding the texture. When I add the texture a second time, it's just a green square.


How can changing the order of integration be used to solve the integral $\int_0^\infty \frac{\cos{(\alpha x)}-\cos{(\beta x)}}{x}\, dx$

I am attempting to solve the integral $$\int_0^\infty \frac{\cos{(\alpha x)}-\cos{(\beta x)}}{x}\,dx$$ I know that the correct answer is $\ln{\frac{\beta}{\alpha}}$ and that the integrand can be rewritten as $$\int_\alpha^\beta \sin{(xy)}\,dy$$ to form the double integral $$\int_0^\infty \int_\alpha^\beta \sin{(xy)}\,dy\,dx$$ Now if we were integrating over a finite rectangular region, I would feel comfortable using Fubini's theorem to swap the order of integration. Is there a way to switch the order of integration for a double integral of this form?


What are alternatives to Objective-C for Mac programming?

I've become very comfortable in the world of pointer-free, garbage-collected programming languages. Now I have to write a small Mac component. I've been learning Objective-C, but as I confront the possibility of dangling pointers and the need to manage retain counts, I feel disheartened.  I know that Objective-C now has garbage collection but this only works with Leopard. My component must work with Tiger, too.  I need to access some Cocoa libraries not available to Java, so that rules out my usual weapon of choice.  What are my alternatives? Especially with no explicit pointers and automatic garbage collection.


Can I delete a logical E: drive, which popped up after installing dual boot ubuntu?

I installed Ubuntu dual-boot in my PC alongside Windows 10. Before installing, i had shrunk my 1TB hard drive and left 200 GB for Ubuntu installation. The installation went fine, but after booting up Windows, I see in disk management, that a new logical drive had appeared, which i did not create, having 512 MB size...Can i safely delete the new drive?


I just did the hardware updates available through the update manager, this is the first time I had ever seen or heard of a hardware update but I figured it would be legit because it was coming from the official Ubuntu update manager. It mentioned something about being one of the last updates before support was dropped so I thought it would be a good idea but now I think either my resolution or driver has messed up because the quality of graphics and everything things else is poor now. It's not terrible, but I feel like it was better looking before the updates. anyone know a solution?


I've just finished watching an episode of an american tv series. At the end of the episode, the narrator said, 'there is only two episodes left'. My question is: because two episodes is plural and countable, oughtn't it be 'there are only two episodes left'? I find this a bit of confusing, maybe because english isn't my first language, but until now, I thought that the language rules regarding this case aren't that complicated... Thanks!


Similar question suggestion list overwrite issue

When posting a new question in StackOverflow, it shows similar questions. As one keeps on writing, list changes but they overlap with one another. This happens when you scroll down a bit when the new list is visible. Below is the screenshot for the same. Web browser: Mozilla Version: 77.0.1  Operating System: Windows 10


Auto-lookup of page/site title for external links posted in WMD

Most of the times, when I paste a link I do:    Click on the "link" icon at the toolbar   Paste the link   Enter the link title      While step three is not too problematic I would like to skip it.   Could we insert the page title, back from step 2, so the next time we enter a link it appears like this:   Like Jeff said in [Stack Overflow Outage - Blog – Stack Overflow][1]  [1]: http://blog.stackoverflow.com/2009/10/stack-overflow-outage/   And from there we can put what ever we want ( just like today ) ie    Like Jeff said in [the latest blog][1]  [1]: http://blog.stackoverflow.com/2009/10/stack-overflow-outage/   If needed, or just leave it like that ( as I will do  most of the times)


How to get badges "Curious", "Inquisitive" and "Socratic" with non-well received questions in the past?

I am well aware that on my Physics Stack Exchange account, I have asked a few good questions and also some bad ones in the past.  For the Curious badge, I have an 8/5, but am unable to get it as I do not have a positive question record.  I am unable to delete those questions as others have already spent time investing an answer.  Hence, I would like to ask, given these circumstances, is there NO way that I can even get these badges?


How do I manage what programs startup in Windows 8?

There's a nifty new tab in the 'Task Manager' called 'Startup' where I can manage the program that run at startup.    BUT... It doesn't show all of the application that run at startup:    Some of the hidden culprits are:   Steam Skype Google Drive Dropbox Cisco VPN Java Update   "What about the registry?" Here's what's found in there:    Which doesn't contain all of the running programs.  How do I manage these startup applications from within Windows 8?


Git - Switching to the other branches shows the modification from previous branch

I'm in branch a and make some modifications in the index.php file. For example I add //test then switch to branch b. I open the index.php file and see that there is that //test in the index.php file that was added when I was in branch a. Is it a bug or I made a mistake? How to differentiate the codes in different branches?


Rebind Microsoft Sculpt Mobile Mouse (Windows Key)

using the , by downloading the , i can rebind the mouse keys, but the WINDOWS key i can't change it, and that is the only key i may(and want) to rebind because i have it (twice) on the keyboard, and i can't find an option to change it, am i missing something? Or is there any way to bypass this limitation    i found that the keys are saved here: HKEY_CURRENT_USER\Software\Microsoft\IntelliPoint\ModelSpecific\5025\EventMapping\4  but i've been trying to change the [4](4 is middle mouse button) but i didn't found any for the windows key


How do I show that the sum $(a+\frac12)^n+(b+\frac12)^n$ is an integer for only finitely many $n$?

Show that if $a$ and $b$ are positive integers, then $$\left(a +\frac12\right)^n + \left(b+\frac{1}{2}\right)^n$$is an integer for only finitely many positive integers $n$.   I tried hard but nothing seems to work. :(


Why even-numbered elements, with their even proton numbers are more abundant than odd-numbered elements ?


I want to calculate the S-box for AES. But I have a problem with the multiplicative inverse step. For example, the inverse of 95 is 8A.  I don't know how to get this result. How is the multiplicative inverse computed?


Rename first part of multiple files with mv

In a directory there are these files and more:   file1.txt file1.html  file1.pdf ...   Every file1 should be replaced with newfile:   newfile.txt newfile.html newfile.pdf ...   I've tried:  for f in $(ls file1*); do mv $f newfile*; done   this does replace all files with file1 to one file newfile*.   for f in $(ls file1*); do mv $f ${f/$f/"newfile"}; done   this also replaces all files with file1 to one file newfile. Or  find . -name "file1.*" -exec sh -c 'mv I DONT KNOW' _ {} \;   I don't understand how to set a part of the file name as a variable and replace this.  What is the simplest way to do this with mv?


Destination Path Too Long & how to resolve it?

Whenever I use Windows Explorer to copy Google Drive subfolders, I frequently get the "Destination Path Too Long" error. Any suggestions how to resolve it?


Let $A$ be an $n \times n$ real symmetric matrix with eigenvalues $\lambda_1,\ldots,\lambda_n.$ Find the set of $v \in \mathbb{R}^n$ such that $$\lim_{k\to\infty}\left<A^{2k}v,v\right>^{1/k}$$ exists and find the set of possible limits.  Since $A$ is symmetric there exists an orthonormal basis $v_1,\ldots,v_n$ of eigenvectors of $A$. Let $\lambda_j$ be the eigenvector corresponding to $v_j$. If $v \in \mathbb{R}^n$, then $$v = c_1v_1 + \cdots c_nv_n, c_j \in \mathbb{R}.$$ Since $<v_i, v_j> = 0$ for $i \neq j$ and $= 1$ if $i = j$, and $A^{2k}v_j = \lambda_j^{2k}v_j$, by the linearity of the inner product the limit becomes $$\lim_{k\to\infty} \left(c_1^2\lambda_1^{2k} + \cdots c_n^2\lambda_n^{2k}\right)^{1/k}.$$ This is where I'm stuck. I don't know how to evaluate the limit. I tried taking logs and using L'Hopital's rule, but that only gave another limit I couldn't compute. Since $$c_1^2\lambda_1^{2k} + \cdots + c_n^2\lambda_n^{2k} \leq (c_1^{2/k}\lambda_1^2 + \cdots + c_n^{2/k}\lambda_n^2)^k,$$ I know that if the limit exists it's bounded above by $\lambda_1^2 + \cdots \lambda_n^2$. Any help proceeding would be great.


A doubt in the rigorous definition of limits.

I studied the definition of limits today, and I think I mostly understood it, but I have a little doubt. In the definition:  $f(x)$ is defined on some open interval containing $a$, except at possibly $a$. So, $\lim_{x\to a} f(x) = L $ if and only if for every number $\varepsilon>0$, there exists a corresponding number $\delta>0$ such that:  $$\text{If   } 0<|x-a|<\delta \text{ then } |f(x)-L|<\varepsilon$$  First of all, if you see any mistake in my definition or understanding, please tell. So my question is, why can't we write $0<|x-a|\leq\delta$ and $|f(x)-L|\leq\varepsilon$ in the last line? What kinds of problems can arise from this? If the definitions are equivalent, can you explain/prove me why?


Clipboard for copying and pasting files in command line?

In Bash, suppose I visit a directory, and then another directory. I would like to copy a file from the first directory to the second directory, but without specifying the long pathnames of them. Is it possible?   My temporary solution is to use /tmp as a temporary place to store a copy of the file. cp myfile /tmp when I am in the first directory, and then cp /tmp/myfile . when I am in the second directory. But I may check if the file will overwrite anything in /tmp.  Is there something similar to a clipboard for copying and pasting a file?


Regression coefficient greater than 1: is it possible?

I was reading an article about the polar motion of the Earth: . A regression is performed between observed and modeled complex time series of data - the type of regression is not specified. The regression coefficient is then calculated for different values of the estimated parameter (quality factor); its amplitude and phase are shown in Figure 2 (I don't know if I am allowed to post it directly here). My question is why can the amplitude of the regression coefficient be as high as 2.3? I thought that the absolute value of the regression coefficient, for real series, had to be in the range 0-1. Therefore I was expecting a maximum amplitude of $\sqrt{2}$ for a complex series. Is there a more general definition of regression coefficient that I'm missing?


Enable usb debugging mode from adb under clockworkmode "Broken digitizer"

My friend brought me a Xtreamer Q mobile phone with broken screen, clockworkmode is working, but USB debugging mode is disabled, I found some posts about how to enable it from adb i tried them and none of them worked. here :   and from this tutorial i learnt how to edit build.prop file.   the commands i have used are: adb pull, adb remount, adb push. While i was under clockworkmode i mounted system and i pulled build.prop then i added this line to it persist.service.adb.enable=1, used remount then pushed the file after that reboot, but i couldn't find the device in adb when it have booted normaly. Next i tried to set adb_enabled to 1 in /data/data/com.android.providers.settings/databases/settings.db by following some steps from here  ttp://forum.xda-developers.com/showthread.php?t=774507 and it also didn't worked "The device was not listed". Also i have tried this zip file from clockworkmode it didn't work too...    My phone do not support USB org cable  my files after editing:


The magnetic field of a magnetic monopole

Let us define the magnetic field $$\vec{B} = g\frac{\vec{r}}{r^3}$$ for some constant $g$. How can we show that the divergence of this field correspond to the charge distribution of a single magnetic pole (monopole)?  EDIT:  If I calculate the divergence I get $$ \begin{align} \nabla\cdot\vec{B} &= \nabla\cdot\left(g\frac{\vec{r}}{r^3}\right) \\ &= g\left(\nabla\frac{1}{r^3}\right)\cdot\vec{r}+\frac{g}{r^3}\left(\nabla\cdot\vec{r}\right)\\ &=g\left(-3\frac{\vec{r}}{r^5}\right)\cdot\vec{r}+\frac{g}{r^3}(1+1+1)\\ &=-3g\frac{1}{r^3}+3g\frac{1}{r^3}\\ &= 0 \end{align} $$ which contradicts that there is a sink or source of magnetic flux.


What would actually happen to a person jettisoned into space?

Alright, so we have all seen the movies where someone gets blasted out of the airlock on their starship, or their suit decompresses while on a space walk. The poor schmoe usually either decompresses so violently that blood is oozing out of every orifice in their body, or they freeze instantly.  From this I have two questions:   Would the decompression really be that violent?   Clearly the drastic difference in pressure from a normal "earth" like environment to space would be bad, but would it be that devastating. I vaguely remember that standard atmospheric pressure was something like 15 psi, which doesn't seem like enough to mess you up that bad.  Would you actually freeze instantly in space?   Heat, or lack thereof is a measure of internal energy, but in a vacuum there wouldn't be anything to have internal energy, so does space even have a temperature? Wouldn't some form of matter have to be present in order to cool off? If there were no matter besides yourself and a few stray particles here and there, it seems like it would take a very long time to cool off.


Can the Mods reset the Vote Count for good questions that received an unnecessary judgement?

I asked a  and maybe because some users had their leg bitten by their dog subsequently while looking at my answer they decided to downvote it.  This makes the site look unprofessional and opinion based.


How to access a SQL Server database from other computer connected to the same workgroup?

I have created a C# application which uses a SQL Server database. I have other computers connected to me and to each other in a workgroup. I have shared my C# application with others. When they open the application they get the error      A network related or instance-specific error occured while establishing a connection to SQL Server. the server was not found or was not accessible   But the application is working fine on my PC. The connection string I am using is   Data Source=ASHISHPC1\SQLEXPRESS;Initial Catalog=ACW;User ID=ash159;Password=ashish159   which is stored in a .config file.   The application is working fine on my PC. What must I do? I have enabled the TCP/IP in the server but the same error persists. Some change in connection string or something else?


It is possible to use the stealth skill to "hide" in . But are there any mechanical benefits to doing so?  In combat, you gain advantage on an attack if your target can't see you, and confer disadvantage on their attack. Since you must be unseen to hide in the first place, what extra benefit does hiding get you?  Out of combat benefits might be harder to enumerate, but are there good examples where hiding might provide something more than just a good stealth check would?


Does this site meet the Stack terms of service?

See "qandasys dot info"  Which say Question and Answer is proudly powered by WordPress. Theme "The Fundamentals of Graphic Design" by Arjuna Icons by FamFamFam  And I don't see any Creative Commons acknowledgement.


When was the Action Surge feature description changed to remove mention of "a possible bonus action"?

The fighter's Action Surge originally stated:  Starting at 2nd level, you can push yourself beyond your normal limits for a moment. On your turn, you can take one additional action on top of your regular action and a possible bonus action  This mention of "a possible bonus action" has been a source of confusion, as evidenced by this question  and at least four questions that have been marked as duplicates of it. This is no longer the case. Action Surge now says:  Starting at 2nd level, you can push yourself beyond your normal limits for a moment. On your turn, you can take one additional action. Once you use this feature, you must finish a short or long rest before you can use it again.  It is now quite clear that Action Surge does not grant an additional bonus action. But when did this change occur? I have checked the  and it makes no mention of the change. So when did this change occur and was it documented?


Randomly select array index without selecting previously selected indexes

I am trying to create a shuffle play feature for a music streaming app and I'm trying to figure out the best way to create this.  I want to be able to shuffle through an array by selecting a random index but not selecting one that has already been selected. I can think of a few ways to do this but none seem very elegant. Has this problem been solved before? Is there a simple solution to this?   Thanks


Transfer emails between two of Gmail's special accounts

I am lecturer in a university. My university uses free Gmail service. I had changed my email ID and the older one would be closed after a few months.  I don't see Accounts and Import tab, I just see Accounts tab in which no option is mentioned for importing emails. I tried the method with creating a filter for forwarding, but that too, doesn't work any more in Gmail.  Is there any other method than above for transferring emails from my older account to newer account?


For how long have I been banned by Singapore immigration?

I am a USA female citizen. I travelled as a tourist to Singapore several times, never overstayed, but I did usually stay nearly the maximum 90 days. I have OCD and wash everything. One time I got rejected when I tried to enter Singapore with a damp passport because I was told it was not in good condition. I know that sounds stupid to present a damp passport but it gets worse ... also I got quite upset because I was being deported all the way back to USA and I did not want to go back. It was a business class ticket on Singapore airlines and the airline was responsible to pay for my return so they did not like that and subsequently banned me.    I did get accepted back into Singapore as a tourist a year or so later, but had a few weird problems like getting caught for taking a shower at a resort swimming pool facility where I did not stay. I had to leave Singapore in an odd way, with my passport held at the airport.    I had to collect it with a special letter on the day of my flight. I tried to go back again to Singapore about a year after with a good quality passport but was refused for "secret reasons".  The officer did mention to not try again for at least 6 months.  I love Singapore because it is tropical and clean. I am not a criminal but my odd OCD behavior seems to have caused a problem with visiting.  I spend a lot of time in Thailand by the way and of course immigration there is different. Any suggestions how I can get another chance with Singapore?  I think I have learned my lesson about how to behave there and hope it is not too late.


ORDER BY a String which contains a number

I'm trying to 'ORDER BY' a String field which contains numbers. It orders like this:  1 10 2 3 ...  I've tried whith LPAD, VALUE, *1, but nothing works.  THANKS all for ur help!


How to list all collections and their objects?

I have a scene with 2 collections of 4 objects each. I am trying to get all collection names and their objects' names. Unfortunately, info panel nor python hints have not been helpful to find the command. How do I get a list of all collections' names? How do I get a list of all objects' names in a given collection?


Is there a central limit theorem for random variables with a bounded interval?

Is there any theorem which states the asymptotic distribution for the sample mean when the samples are drawn from a random variable which has a bounded interval?


I want to increase the check box size for my following code:
     <form>         <input type="checkbox" name="chat" value="LiveChat" />Live Chat
         <input type="checkbox" name="email" value="Email us" />Email Us     </form>
   is it possible?


Can I use Pact Magic spell slots gained on a short rest to gain sorcery points?

I'm planning on multi-classing in Warlock as a Sorcerer in 5e. I'd like to be able to use my Warlock spell slots from Pact Magic (that I regain on a short rest) to gain sorcery points.  I'm inclined to believe the answer to this question is "Yes", because the Font of Magic feature does not specify that the slots expended need be Sorcerer spell slots or even Spellcasting spell slots. Although it does seem to be RAW, I find it hard to believe that this was RAI, because it essentially copies the Sorcerer capstone with three levels in Warlock. Does anyone know if there's an official ruling as to whether or not this is allowed?  Here's the relevant rule:     Converting a Spell Slot to Sorcery Points. As a bonus action on your turn, you can expend one spell slot and gain a number of sorcery points equal to the slot’s level.


I cannot find my newly-created ubuntu directory

I have microsoft 10. I just downloaded the ubuntu app from the microsoft store. I just created a directory called prep-work in ubuntu's shell. I then went to visual code and made notes about a program that is linked to the ubuntu shell (or prep-work directory). However, when I go to the search directory and go into the file explorer I cannot find the ubuntu file at all. I know the file exists because when I try to make the prep-work file again in Ubuntu's shell, it says it cannot do so because the file already exists. How can I locate this file? also, what is the command I can use to make sure that I am in the prep-work directory? when i type the command pwd i cannot tell if I am in there or so. I am confused. Please help. Thank you


How did the expression "hands down" come to mean "without a doubt?"


I can't find the answer to this question. What is a java.util.EventListener? How does it work? I have already done some research on google but I only found this, which isn't very clear: a tagging interface that all event listener interfaces must extend.  Can someone please help?


Can the velocity of the center of mass of two spheres change after a collision?

I'm curious as to whether or not the velocity of the center of mass of a system comprised of two spheres can change after the two spheres collide. Looking at the equation for the velocity of the center of mass for a system of particles:  $$V_\text{CM} = \frac{m_1v_1 + m_2v_2 + \cdots + m_nv_n}{m_1 + m_2 + \cdots + m_n}$$  It looks like, if after the collision, one of the particles changes direction, and the negative terms outweigh the positive terms in the numerator, the velocity of the center of mass would change direction (and possibly magnitude). However, I can't think of any examples where this would happen in elastic or inelastic collisions. I'm not even sure if its speed can change. It would make sense that it would if kinetic energy (velocity) was lost in an inelastic collision, however, I can't come up with any conditions to make this happen.  I could really use some insight.


I have two given names and one surname. Is it a problem if I omit the surname from my ticket?

I have two names as my given name in the passport and I typically just use this as my first and last name. However, my passport has a surname too which I almost never use. Due to this, I mistakenly provided my given name as first and last name.   As per the passport,  Surname : AAAA Given name(s) : BBBB CCCC   In the ticket, First name : BBBB Last name : CCCC  The credit card I've used to make this booking has my name as BBBB CCCC.  Will this create a problem at the travel time?  Update : the airline says that they can't update the name in the ticket. They are saying that since they have made a remark of the passport details boarding will not be a problem but I might face problems at immigration. Do they check name details in itenerary to exactly match passport at the time of immigration? Is that true in your experience?  Update : Travelled without any problem, neither at boarding gate, immigration nor after arrival at border police control.


Is there a keyboard shortcut to change the render engine? I have looked through the keymap preferences and I cannot find one. Is there any way to make one? My computer takes a while to render with the Cycles engine and becomes very slow so it is hard for me to switch back to Eevee using my mouse, so a keyboard binding to switch back and forth between the engines would be very helpful. If anyone could give me any advice on this is, I would appreciate it very much :)


Last two digit of number raised to exponents.

Find the last two digits of $3^{3^{2014}}$.   Attempt:   First I try to work with $3^{2014}$. So we can work on $\text{mod 10}$.  Then, $$\begin{align}&3^1 \equiv 3\pmod{10}\\ &3^2 \equiv 9 \pmod{10}\\ &3^3 \equiv 27 \equiv 7\pmod{10}\\ &3^4 \equiv 81 \equiv 1\pmod{10}\end{align}$$  So  $3^{2014} = 3^{(4\cdot503) + 2} \equiv 3^0 \cdot 3^2 \equiv 9 \pmod{10}$.  So the last digit is 9. However I am ask to find the last two digit. Can anyone please help me? I would really appreciate all the help.


One desktop is plenty for me. In particular, I do not like the fact that when I drag a window to a side, it automatically switches to a new desktop. I don't want that.   I've unchecked all kinds of things related to multiple desktops, but none of it has managed to disable this feature.


Time magazine (March 5th) carries the article titled, “Ukraine, not the Ukraine: The significance of three little letters,” in which the following comment of William Taylor, who served as the U.S. ambassador to Ukraine from 2006 to 2009 was quoted:     “Ukraine is a country. The Ukraine is the way the Russians referred to   that part of the country during Soviet times … Now that it is a   country, a nation, and a recognized state, it is just Ukraine. And it   is incorrect to refer to the Ukraine, even though a lot of people do   it.”      What is the difference between Ukraine and the Ukraine? Does the Ukraine mean Ukrainians or Ukrainian district (of Russia)?   Most of all newspapers call Ukraine Ukraine. Are there a lot of people who call the country “the Ukraine,” Really?


I've got a problem with my external hard drive (500Go). I wanted to create a system repair disc on a separate partition (10 Go) with the official tool from Microsoft. (this partition was the first in the hard drive)  But the tool has extended the partition (to 32 Go) and the second has been truncated and became unallocated. I have a lot of things on it, and after some days I desperate to find a (free) way to recover all my data.  Some tools ask to paid after check all my hard drive, (lost 2 hours each times ...), some doens't work with unallocated partition...  I think partition's index is lost but most of data are still here because the tools i tried find files.  Did someone know a free tool to do that ? Or is it possible to do this with Windows disc tool ?  Thanks


No new data on https://data.stackexchange.com/

I noticed that the newest data for some tags from Stack Overflow is a week old. An example is here:    Why is that?


Right now I have a Nikon D3100, a Sigma 50mm f1.4 (older version). Right now I have almost 1300$. What do you think I should buy? I'm hesitating between the Nikon D7100 or buying a Sigma 35mm f1.4 Art+ a flash and some other accessories. (I'm really into portrait photography)


I have been using elsarticle.cls  for most of my work. Now I am trying to take those papers and put them into a thesis, using a thesis template given by my school. The elsarticle says in the preamble  %% natbib.sty is loaded by default. However, natbib options can be %% provided with \biboptions{...} command. Following options are %% valid:  %%   round  -  round parentheses are used (default) %%   square -  square brackets are used   [option] %%   curly  -  curly braces are used      {option} %%   angle  -  angle brackets are used    <option> %%   semicolon  -  multiple citations separated by semi-colon (default) %%   colon  - same as semicolon, an earlier confusion %%   comma  -  separated by comma %%   authoryear - selects author-year citations (default) %%   numbers-  selects numerical citations %%   super  -  numerical citations as superscripts %%   sort   -  sorts multiple citations according to order in ref. list %%   sort&compress   -  like sort, but also compresses numerical citations %%   compress - compresses without sorting %%   longnamesfirst  -  makes first citation full author list %% %% \biboptions{longnamesfirst,comma}  \biboptions{sort&compress}   Since I am using the mitthesis.cls instead of elsarticle.cls now, I tried to load natbib using:  \usepackage[numbers]{natbib}   This seems to work (I think?), but if I try to use \biboptions{sort&compress}, I get an error:  Undefined control sequence \biboptions   Any ideas on how to get \biboptions{sort&compress} to work?   Also, am I loading natbib correctly (I want to use a numbered bibiliography style like \bibliographystyle{model1a-num-names}).


Can anybody help me ? Which is correct ?     Each of the actors did their part well. or Each of the actors did his part well.   Thanks in advance.


I'm attempting to prove the following statement:     Let $f:\mathbb{R}\to\mathbb{R}$ be a function and suppose that $|f(x)-f(y)|\leq (x-y)^2$ for all $x,y\in\mathbb{R}$, therefore f is constant.   I was trying to prove it by a theorem that states that; Let f be a differentiable function in $(a,b)$. Therefore if $f'(x)=0$ for all $x,y\in(a,b)$, then f is constant.  But i'm stuck trying to prove that f is differentiable to use the above theorem.


I was trying to embed terminal to gedit. But Embedded Terminal option is missing when I go to Edit -> Preference->Plugin. On searching web I figured that I need to install gedit-plugin which I can find on Ubuntu Software Store. But when I searched gedit-plugin it says "No Application Found". Am I missing something, or doing something wrong? Please guide me through, I am new to ubuntu.


What is the difference between "flag" and "close" buttons on questions?

The flag seems to put in a close vote as well, but the close vote doesn't flag it necessarily? If that's the case, what's the point of the close button?


Both buttons 'No Action Needed' and 'I'm Done' are sometimes enabled when reviewing an item you've already acted on

If you review a post in the First Posts or Late Answers review queues, and you have already edited/voted on/commented on it, the item will already have the 'I'm Done' button enabled. Usually, the 'No Action Needed' button is disabled in those cases, but (in my experience) since 6-8 weeks, in 20%-40% of the times, it is not. See the screenshot below for an example:    I couldn't detect any pattern between the specific actions I've already taken on the post and whether the No Action Needed button is enabled or not.   is similar, but I'm pretty sure that request was already implemented and (as far as I know) it used to work correctly until a few months ago.


Adjective to describe people being over cautious to be polite or considerate

Looking for an adjective or noun to describe people being over cautious to be polite or considerate to others, and often expecting or causing others to respond or act in a similar way.  For example,   Holding door for people behind while the other is still meters away.  While walking on the road, constantly check behind and pose to give way to others while people behind have no intention to overtake but stressed to do so due to the pose.   Edit  Normally these people see themselves very positively. They believe they are behaving at a higher social moral standard than others, and expect others to behave accordingly too.  The word I'm looking for should be:   Negative, as the behavior is not very pleasing. Reveal the undesired expectation imposed on others to behave equally polite, considerate or even "elegant".


I have a class and there are some properties in it. I had written the getters and setters for those properties. Here is my code:  [DataMember] public string FullName {     get { return string.Format("{0} {1}", this.Name1, this.Name2); }     set { FullName = value; } }   But the problem is when I set values to Full Name..  var customer = new Customer {      FullName = customerPhone.Customer.FullName };   It gives the following exception..     An unhandled exception of type 'System.StackOverflowException'   How can I write the set property correctly?


what's the difference between /bin/zsh and /usr/bin/zsh?

I saw the following in /etc/shells -    % cat /etc/shells # /etc/shells: valid login shells /bin/sh /bin/dash /bin/bash /bin/rbash /bin/zsh /usr/bin/zsh   I want to know if there is a difference betweem /usr/bin/zsh and /bin/zsh ?  I did chose /usr/bin/zsh as it has to be interactive login and CTE skills.


Setting up a minecraft server on a website

I have a website asifslab.com and I want to set up a minecraft server there so that it is 24/7. Is there any way to do this through FTP or cPanel or will I have to set it up on my PC?


I write and illustrate children's books. I scan my illustrations to jpeg and then create the book in InDesign.  The proof always looks great but the printed book illustrations are awful. I have tried calibrating my screen, and calling the printer as well as InDesign.  ID converts RGB to CMYK thus causing the problem.  Can anyone help with this issue? Specific settings would be helpful! Thanks


Do 10k+ users see the pings if they were already deleted? Do mods see them?

Consider the following scenario:   User A writes a comment to User B, or answers the question of User B. This could ping user B, i.e. (s)he would see the comment in his inbox. However, User B is not logged in at the time. The ping is made deleted:   the answer of User A (to User B's question) is deleted the comment of User A (to User B's post, or by mentioning @UserB) is deleted the post which is commented by User A, is deleted (but not the comment)  After that, User B logs in.   Will he see the ping in his/her inbox?  If User B is a 10k+ user, in theory (s)he would see User A's answer, and also his comment, if it wasn't deleted. If User B is a diamond moderator, (s)he could even see User A's deleted comment.  I think, the most logical way would be, if User B would see the ping if and only if (s)he could see the post or comment addressed to him(she). But how does it actually work?


Does Hilbert's $\varepsilon$-calculus have any real problem when using for incomplete systems?

In Mathias' paper Hilbert, Bourbaki and the scorning of logic (see ), he mentions Hilbert's $\varepsilon$-calculus (and thus Bourbaki's $\tau$-calculus) is not suitable for incomplete systems. But he did not elaborate if there is any real problem (like inconsistency or incapability) with it. Obviously Hilbert hoped to use $\varepsilon$-calculus to prove the completeness of systems like ZFC, and failed as we know. But this does not mean $\varepsilon$-calculus itself has any problems. So, is  Mathias' criticism out of his personal flavor of logic and educational reasons, or there is any real problem for $\varepsilon$-calculus in incomplete systems?


How to efficiently determine which of thousands of polygons intersect with a linestring

I have a shapefile that contains several thousand / and another shapefile that has a variable number of LineStrings.  In the example below the blue Polygons are those that intersect with the red LineString and the brown Polygons are those that do not.   I am using the Shapely  binary predicate to check whether each LineString intersects with any one of the Polygons:  import fiona from shapely.geometry import LineString, Polygon, MultiPolygon  # Open each layer poly_layer = fiona.open('polygon_layer.shp', 'r') line_layer = fiona.open('line_layer.shp', 'r')  # Create each Polygon/MultiPolygon the_polygons = [] for poly in poly_layer:     if poly['geometry']['type'] == 'Polygon':         the_polygons.append((poly['properties']['poly_id'],                              Polygon(poly['geometry']['coordinates'][0])))     elif poly['geometry']['type'] == 'MultiPolygon':         all_polygons = []         for poly_coords in poly['geometry']['coordinates']:             all_polygons.append(Polygon(poly_coords[0]))          the_polygons.append((poly['properties']['poly_id'],                               MultiPolygon(all_polygons)))     else:         print poly['geometry']['type']         raw_input()  # Create each LineString the_lines = [] for line in line_layer:     the_lines.append(LineString(line['geometry']['coordinates']))  # Check for Polygons/MultiPolygons that the LineString intersects with covered_polygons = {} for poly_id, poly in the_polygons:     for line in the_lines:         if poly.intersects(line):             covered_polygons[poly_id] = covered_polygons.get(poly_id, 0) + 1   The above code takes a long time to run, and being new to Fiona and Shapely I am not sure that this is the most efficient way to accomplish things.  So is there a better way to do what I want?  Edit: The key to speeding up the computations was to use a spatial index.  The linked question does not have what I believe is the fastest solution - using GeoPandas.


Is it possible to call this event handler in this case?

I am using C# in WinForms to use a trackbar as follows. At the beginning of the code I define the event handler: this.trackBar1.Scroll += new System.EventHandler(this.trackBar1_Scroll);   And here is the implementation when one scrolls the trackbar: private void trackBar1_Scroll(object sender, EventArgs e) {     //do something... }  So this works, but I need to call the above function from inside another event handler such as: public void numericUpDown1_TextChanged(object sender, EventArgs e) {     //what to do here to call trackBar1_Scroll ? }  What could be done to call trackBar1_Scroll from inside numericUpDown1_TextChanged?


JQuery sorting li by only first div inside

Try to make a sort  by using jquery sort. I would like to sort this li's by first div content(in my example, sort by aaa, bbb, ccc and ddd containing fields). Thanks in advance. Here is my code. Try to use .first() and changing the tags, it all useless( Hope for your help  My code:  function newSort(){     $('#attachedCards ul li').html(         $('#attachedCards ul li').children('div').sort(function (a, b) {            return $(a).text().toUpperCase().localeCompare(                 $(b).text().toUpperCase());         })     ); }   html-structure:

ddd

                 some useless info2

ccc

some useless info1

bbb

some useless info3

aaa

some useless info4

   expected result:   aaa       some useless info4  bbb      some useless info3  ccc       some useless info1  ddd       some useless info2    I have now:

     aaa
     bbb
     ccc
     ddd
     some useless info1
     some useless info2
     some useless info3
     some useless info4

     aaa
     bbb
     ccc
     ddd
     some useless info1
     some useless info2
     some useless info3
     some useless info4

     aaa
     bbb
     ccc
     ddd
     some useless info1
     some useless info2
     some useless info3
     some useless info4

     aaa
     bbb
     ccc
     ddd
     some useless info1
     some useless info2
     some useless info3
     some useless info4


How to prove that the inverse of following matrix exist and has integer entries?

How to prove that the following matrix has an inverse with integer entries? Also find out the inverse.  \begin{bmatrix}     1 & \frac{1}{2} & \frac{1}{3} & \cdots &\  \frac{1}{n-1} & \frac{1}{n} \\ \frac{1}{2} & \frac{1}{3} & \frac{1}{4} & \cdots &\  \frac{1}{n} & \frac{1}{n+1} \\  \frac{1}{3} & \frac{1}{4} & \frac{1}{5} & \cdots &\  \frac{1}{n+1} & \frac{1}{n+2} \\ \frac{1}{3} & \frac{1}{4} & \frac{1}{5} & \cdots &\  \frac{1}{n+1} & \frac{1}{n+2} \\ \vdots & \vdots & \vdots & \vdots & \vdots & \vdots\\ \frac{1}{n} & \frac{1}{n+1} & \frac{1}{n+2} & \cdots &\  \frac{1}{2n-2} & \frac{1}{2n-1} \\   \end{bmatrix}


How can I make Caps Lock work like it did prior to Sierra?

Downloaded and installed macOS Sierra (10.12) on 10/1/16.  Since then, my Caps Lock key is behaving weirdly different (I'm an OS X user since Mavericks).  Note: This only seems to affect users with more than one language as their input source.  Explanation: Caps Lock simply does not work when a (update: Non-Latin language) language other than English (in my case, Hebrew, an RTL language) is set as the input language. When that's the case and Caps Lock is pressed, it simply blinks for a second and then turns off again, but then and turns off. Even when I am able to turn it on, it doesn't have the same effect (all keys behave as if Caps Lock is off)  Why is this bad: Just a small example — take a look at the bottom-right key, which is ? (or / when Caps Lock is on). When Hebrew is selected, it's actually a period (.) and that is normal. Prior to Sierra, I could press the Shift key to get a ? and hold Caps Lock to get /. Right now I can't use  / when I'm typing in a language other than English because Caps Lock doesn't work.   Note that Caps Lock works just as expected when English is set as the input source.


Why did Gandalf become the white wizard?

When Gandalf comes back alive after dying in The Lord of the Rings, why does he come back as the white wizard not the grey wizard? Am I correct that it is because Saruman had become evil?


Is $\mathbb{Z}[\sqrt{-1}]/(7)$ isomorphic to $\mathbb{Z}[\sqrt{-2}]/(7)$?  Here $(7)$ is the ideal generated by $7$.  If so, please tell me the explicit isomorphism. And how you  come up with the construction?


How to make  grep display only the matching regexp?

I am trying to find data from files using grep, but grep usually prints out the filename as well as the line where the term is found.  In this case, I am looking for a special regexp and I want grep to print all items matching the regexp, not the line or the filename. In other words, I want to see only the matched regular expression.


Is it possible for two Minecraft players to use the same map, if they are in different networks?

Imagine player 1 and player 2 want to play the  map (so that both of them are in that map). They are located in different networks (not on the same LAN).  Is it possible to set up Minecraft so that both players can play in the same map?  If yes, what is the easiest way to do this?


Show that the set $\mathbb{R}^{n-1} \times 0$ has measure zero in $\mathbb{R}^{n}$.  Well, I resolved as follows:  We have $\mathbb{R}^{n-1} \times 0 \subset \mathbb{R}^{n}$. Let $\cup_{\lambda \in L} A_{\lambda}$ be an open cover of $\mathbb{R}^{n-1} \times 0$. So, the Theorem of Lindelof we say that $\cup A_{\lambda}$ admits an enumerable under coverage $\cup_{i=1}^{\infty} A_{\lambda_i}$. Set $$A_{\lambda_i} = ( x_{1,i} - \frac{\sqrt[n]{\epsilon}}{2\sqrt[n]{2^{i+1}}}, x_{1,i} + \frac{\sqrt[n]{\epsilon}}{2\sqrt[n]{2^{i+1}}}) \times ( x_{2,i} - \frac{\sqrt[n]{\epsilon}}{2\sqrt[n]{2^{i+1}}}, x_{2,i} + \frac{\sqrt[n]{\epsilon}}{2\sqrt[n]{2^{i+1}}}) \times \cdots \times ( x_{n-1,i} - \frac{\sqrt[n]{\epsilon}}{2\sqrt[n]{2^{i+1}}}, x_{n-1,i} + \frac{\sqrt[n]{\epsilon}}{2\sqrt[n]{2^{i+1}}}) \times ( - \frac{\sqrt[n]{\epsilon}}{2\sqrt[n]{2^{i+1}}},\frac{\sqrt[n]{\epsilon}}{2\sqrt[n]{2^{i+1}}}),$$ where $(x_{1,i},x_{2,i}, \cdots , x_{n-1,i}, 0) \in \mathbb{R}^{n-1}\times {0}.$  Being $v(A_{\lambda_i})$ the volume of $A_{\lambda_i}$. We have to $v(A_{\lambda_i}) = \left( \frac{2\sqrt[n]{\epsilon}}{2\sqrt[n]{2^{i+1}}}\right)^{n} = \frac{{\epsilon}}{{2^{i+1}}}$. So we have to $$\sum_{i=1}^{\infty} v(A_{\lambda_i}) = \epsilon \sum_{i=1}^{\infty} \frac{1}{2^{i+1}} = \frac{\epsilon}{2} < \epsilon.$$    I would like to know if this solution is correct. My biggest question is if I can do $A_{\lambda_i}$ as done above.


Number of lags to use in Engle's ARCH-LM test

How does one decide on number of lags to use in this test? Can one just justify the number based on previous papers?  To clarify, I am forecasting conditional variance, and have generated my log returns. Having estimated an OLS, I now need to to test if there are ARCH effects.  Should I test at lags 1, 5, 10? Or is 1 lag enough in case to draw conclusions?  Having run lags, 1, 5, 10, F-statistic was very high, but decreases with increasing lags. P value is significant through no matter what lag is used.


How do I change page title based on heading?

I would like to change the title of my page based on the name of   for example, <h1>lorem imsum<h1>  would set the page title to lorem ipsum


I've noticed that the majority of Ubuntu help websites present apt commands in the following format:  sudo add-apt-repository ppa:[ppa-address] sudo apt-get update sudo apt-get install [application-name]   But I know that apt commands like this one work too:  sudo add-apt-repository ppa:[ppa-address] && sudo apt-get update && sudo apt-get install [application-name]   Is there a particular reason that most sites present in the first format? Are there known issues with chaining commands with &&, or to put it another way are there any benefits/drawbacks to using either method?  Further, other then loss of internet, are there any circumstances in which an apt command might fail?


Why shortcut which is visible on the desktop screen, not visible when we go into User>Desktop

See the following image: In desktop screen I can see shortcuts like D-Link connect..., Adobe Reader X, VLC media player. Why aren't these shortcuts visible in the box (i.e. user>desktop) ?  But Shortcuts like torrent, 7capture are visible. But why not the other shortcuts?


What is the equivalent of Persian idiom "When the reed blooms"?

In Persian, we say "When the  blooms" when we want to  express that an event:   Never happens. (This is only the opinion of the speaker so it's not a fact) It's very unlikely to happen. It's going to take so long to actually happen. (It's so long that you'd be better off giving up expecting it)  3.1. We also use it when someone is always postponing something they have to do so you never actually see it happen.   For example:      Kyle: When are you going to pay my money back?      Cartman: When the  blooms.   Now I don't know if I got the plant's name right because there are some other versions like:        In any event, they have mentioned this plant in the idiom because apparently some versions of it actually never bloom. Others believe it's because farmers harvest them before they get the chance to bloom (e.g to make music instruments), so it never happens. I'd love to know the equivalent idioms or expressions for this.  PS: I only know "When pigs fly" but I'm not a fan of it because the word pig sounds a bit rude to me and partly because it implies a strong impossibility which doesn't work for the #3 use.


How can I print all subsets of a set using bash script. like : {} , {1} ,{2} ,{1,2} for A={1,2} this is what I have already write but I always thinks there must be a better way also my script just prints subsets with 1 or two members not all of them  I`ll be thankful if you help me complete/rewrite this script.  #!/bin/bash   # Created By: Amirreza Firoozi # License : GPL3+ power() {    echo $(( $1 ** $2 )) } update(){ a=${SET[i]} b=${SET[j]} }  read -p "Please Enter the set like A={1,q,9} : " TSET echo "$TSET" | sed -e 's/.*=//' -e 's/[{}]//g' -e 's/,/\n/g' > TSET.txt MEM_NUM=$(cat "TSET.txt" | wc -l)  ZIR_NUM=$(power 2 $MEM_NUM) mapfile -t SET <TSET.txt for i in "" ${SET[@]};do     echo "{$i}" done RESIGN(){ i=0 j=1 } RESIGN m2(){      while [ 1 == 1 ];do     if [ $i == $(($MEM_NUM - 1)) ];then        break     fi     while [ "$j" != $MEM_NUM ];do        update          echo "{$a,$b}"     ((j++))     done   ((i++))  j=$(($i+1))  done } m2 RESIGN


How can I print the contents of a file minus everything including and below the line above the first occurrence of a pattern?  Say the pattern is "^Previous" on line 15; then I would like to print lines 1--13.


Redirect automatically when selecting an item from a select drop-down list

This page does it the way I want it to:   But I want to find a better way using jQuery, can anyone point me to a good script that uses jQuery to accomplish this?


Ubuntu keeps looping back to login screen

I was half way through an update and needed to stop the download and switched my computer off (Dell latitude E6500) (Ubuntu 14.04.4 LTS). Now the screen keeps looping back to login after I enter my password. Help please!!  😞


Where should I be extracting the  module, sites/all/modules or sites/all/libraries?


How do I remove an EFI System partition from a drive in Windows 7?

I have an external HD which used to be my TimeMachine drive. I got a different drive for that, so I want the original drive back as an external on my Windows box, but it has this random 200 MB partition labeled as EFI System Partition. How do I get rid of this?


Show that $\neg$ and $\wedge$ form a functionally complete collection of logical operators  Can someone give a hint?


Thank you for your patience over the last 15 weeks whilst we build this road   Can I replace the over by during or in and if I can, is it making any difference then?  The previous question in this regard didn't get a thorough explanation about over and during being used with a period of time. Some indicated when during are used with a period of time, it has connotation that thing happened intermittently, but in fact I can find many instances contradict this viewpoint, saying, wages have fallen by more than twenty percent during the past two months...and interesting thing is we have a analogous sentence in which over is used, the number of attacks on the capital had gone down over the past week...  My goal is to make the difference between them clearer rather than ambiguous results got in that post.


Is trailing slash automagically added on click of home page URL in browser?

I am asking this because whenever I hover over a link to a home page (e.g. http://www.example.com), I notice that a trailing slash is always added (as observed on the status bar of the browser) whether the home page link contains a href attribute that ends with a slash or not. But whenever I am on the home page, the URL on display will not have a trailing slash.  I tried entering a slash to the URL in the URL bar. And with Firebug enabled, I notice that the site always return a 200 OK status. An article  discussing this states that having a slash at the end will avoid a 301 redirection. But I am not seeing any redirection, even on  page.  Could this be a browser feature that is appending the slash?


Prove that $Ax = b$ with complex solution, actually is rational solution

Let $Ax = b$, a system of linear equations, $A$ is matrix of rational numbers, and this system has only one complex solution.  Prove this solution is also rational.  Can someone help me please? I prefer not only hints... thanks.


Why the windows Ubuntu terminal are not support USB peripheral or ADB support

Ubuntu pls add a feature for this in windows and still if you not gonna do it. So it just for typing a code or just running a command not used for windows. Why Ubuntu...


battery is not charging after liquid contact

After spilling a tea into the macbook 11 i have disassembled it. Cleaned everyhing with IPA and brush. Put together. Macbook is working but charger does not charge. LED does not light. System says it does not charge, source of power adapter. There is small icon of battery with flash saying 2%. I have changed I/O Board, battery, performed NVRAM/SMC reset. Still behave the same. No change.   Any other suggestions?


difference in single quote and double quote while doing comparison in javascript

var str = ' some value, 1, 2 , test3';     str +="test string, 12, test12";       var varArray = new Array();    varArray = str .split(",");    if(varArray[i] == '' || varArray[i] == "")    {     //some logic     }   I have referred this piece of code from some blogs. I am curious, is there any difference in both comparison in if condition . is it specific to browser. Please help me to know the reason of using this. or both are same.


I have problem with Pokémon Go. When I meet with professor he wants from me to select one of those three pokémon but I can't select any of them. Nothing happens when I click any of them. Also my map is blue.   When I launch this game I get "GPS signal not found" but I enabled GPS, disabled mock mode, enabled high traffic and same problem happens..


Run As Administrator Shortcut Without Password Prompt

I have installed a program on Windows 7 that needs Admin rights to run properly. When running on Windows XP; I used the runas command with the savecred switch to create a shortcut that opened the application and run as Administrator without prompting for a password.  I have tried the most options found on the internet with the properties dialogue of the shortcut and messed around with the Scheduled Tasks option, but to no avail.I am running Windows 7 Home Premium, 32-bit.   I have programs installed on my computer that have a Administrator Icon Overlay and seam to run as Admin without prompting for credentials. How can I achieve the same manually?


"than do something" vs. "then do something"

Which is sentence is correct? Than? Or Then?     I'd rather go running then eat    Or...      I'd rather go running than eat


Adding geoprocessing results as layer to dataframe using ArcPy?

I am still new to ArcPy.   I'm running a really simple script, it selects a feature from a dataset (one town out of many), saves the data, and adds it to the (empty) dataframe.      map = mapping.MapDocument("CURRENT")     df = map.activeDataFrame        where_clause = "TOWN = " + "'"+GetParameterAsText(0)+"'"      arcpy.MakeFeatureLayer_management(statewide_towns, "TOWNS")     arcpy.SelectLayerByAttribute_management("TOWNS","NEW_SELECTION", where_clause)     arcpy.CopyFeatures_management("TOWNS", "OUTPUT_Single_TOWN")     arcpy.MakeFeatureLayer_management("OUTPUT_Single_TOWN", "TOWN_BND")     mapping.AddLayer(df,"TOWN_BND","AUTO_ARRANGE")   Throws me this error:   Traceback (most recent call last):   File "C:\path\to\myTool.py", line 58, in <module>     mapping.AddLayer(df,"TOWN_BND","AUTO_ARRANGE")   File "c:\program files (x86)\arcgis\desktop10.5\arcpy\arcpy\utils.py", line 182, in fn_     return fn(*args, **kw)   File "c:\program files (x86)\arcgis\desktop10.5\arcpy\arcpy\mapping.py", line 49, in AddLayer     assert isinstance(add_layer, Layer) AssertionError  Failed to execute (myTool).


Do abilities, spells, and magic items that give a user extra dice of damage benefit from the Critical Hit rules?

Are abilities, spells and magic items that gives a user extra dice of damage susceptible to Critical Hit rules?  So does this counts with Hex, Hunter's mark, Colossus Slayer and even the extra 2d6 fire damage from something like Flame Tongue sword?


In the double-slit experiment of electrons (observed by photons), is it correct to say the collapse is caused by the momentum of the photons?

I'm working off the article, . I think it's well-written, but I'm not convinced about this part:     So what is causing the change in the particle’s behaviour?      In the example given above, when electrons are fired at a fluorescent screen, when we bombard the electrons with photons the interaction changes the state of the system catastrophically as, despite lacking mass, photons do carry momentum.   Here the author strongly implicates the momentum of photons as being responsible for the collapse. But is that correct to say?  I have read that the  verified that obscuring which-way information restores wave-like behavior. So it feels to me it's more about some "outer" state (perhaps well-characterized as "information") that we don't yet understand that collapses the system, not per se the photon-electron interaction.  Or am I wrong, and in fact for example, the process of obscuring in the quantum eraser experiments somehow "undoes" the photon-electron interaction or restores the quantum state through another interaction?


Why do we think of a nucleus as nucleons held together by a strong force rather than a cluster of quarks?

The implication of this point of view is that protons and neutrons retain their structure in a nucleus. That is the 3 quarks making up nucleons still closely interact and interactions with quarks from other nucleons in the nucleus are "at a distance" (relatively speaking, of course). How accurate is this picture?  In analogy with molecules. The atoms retain their structure, but are deformed. And we have things like covalent and ionic bonds.   Are their similarly flavored interactions among nucleons in a nucleus? For example, will two nucleons share a quark or exchange quarks?


Why use .h files when you can just put all in the .cpp fil?

I been searching a lot lately about header files and stuff and i always see the same things, but i dont get something, why use the .h header file when you can just throw the code on the .cpp file?  Why do this?:  //getten.h #pragma once int GetTen();  //getten.cpp #include getten.h int GetTen(){ return 10; }  //main.cpp #include "getten.h" printf(GetTen());   When you can do:  //getten.cpp int GetTen(){ return 10; }  //main.cpp #include "getten.cpp" printf(GetTen());


Can one preserve food by periodically heating it?

I get that keeping food temperature low will slow down chemical reactions and preserve food, but sometimes my sister preserves food by heating it every 6 hours or so (up to 1-2 days). Does this help preserving the food? If yes, how does it work?  If it matters, the food currently in question is , but I would appreciate a general explanation. In case anyone is wondering, she doesn't store it in the fridge because it is full.


Is there an exact form of  $$f(s)=\sum_{n=0}^\infty {\frac{(-1)^n}{(2n+1)^s}}=1-\frac{1}{3^s}+\frac{1}{5^s}-\frac{1}{7^s}+\dots$$ when $s$ is odd?   Discussion  I have been exploring infinite series and will be spending my evening looking for patterns in this particular class.  I invite the interested reader to join me and the not so interested to just move along. I will be updating this question with relevant facts as the evening unfolds.   There must (there must!) be some closed form in terms of $\pi$ and $s$ when $s$ is odd and there will definitely be something we can say about how this relates to the     $f(1)=\frac{\pi}{4}$  $f(2)=$. [I will leave a remark about this below.]  $f(3)= \frac{1}{64} (ζ(3, 1/4) - ζ(3, 3/4))=\frac{\pi^3}{32}$  $f(4)= \frac{1}{256} (ζ(4, 1/4) - ζ(4, 3/4))$  $f(5)= \frac{1}{1024}(ζ(5, 1/4) - ζ(5, 3/4)) =\frac{5\pi^5}{1536} $  $f(6)= \frac{1}{4096}(ζ(6, 1/4) - ζ(6, 3/4)$  $f(7)=\frac{1}{16384}(ζ(7, 1/4) - ζ(7, 3/4))= \frac{61 π^7}{184320}$  I thought about posting in Meta asking about this type of question. It's a "call to adventure" question: Come look at this with me if you so please. If you're not into it... downvote the question/let me know in the comments/move on to some other question that you do enjoy.  Update 1: It looks like $$f(s)= \frac{1}{2^{2s}} \Bigg(\zeta(s, \frac{1}{4})-\zeta(s, \frac{3}{4}) \Bigg)$$  Update 2: A remark on Catalan's number and on $s$ even in general.  The wiki page claims it to be unknown whether this Catalan's constant is irrational or transcendental. Come on guys? What do we pay you for? Let me just state for the conjectural record that $\sum_{n=1}^\infty\frac{a_n}{n^s}$ for a periodic sequence of integers $a_n$ has just must be transcendental (it must!). I am very confident this is the case when $a_n$ has period of prime $p$ and for $s=1$. It's surprising to me that I would need these conditions. Note that for $f(2)$ the numerators of the series would be $1,0,-1,0 \dots$ and that's not a prime period and also $s \neq 1$ so we cannot use any of those tools to make any statements about Catalan's number but also... one cannot deny the conjecture isn't really too bold. Most numbers should be transcendental and this periodic numerators of these series must be a push in the transcendental direction.


Struggling to understand degenerate perturbation theory

As far as I gather, before a perturbation is applied, the eigenspace associated with the degenerate energy is multidimensional but after applying the perturbation this space 'splits' into different eigenspaces. If we use Non-degenerate perturbation theory, then we would end up dividing by zero when calculating the coefficients for the linear combination of the perturbed state. The way to get around this is apparently to diagonalise the perturbation Hamiltonian with a basis of the unperturbed degenerate eigenstates, and this is what I fail to understand.  Why is it that diagonalising the perturbation Hamiltonian will solve the problem of dividing by zero? Also how can I understand visually what is happening to the linear transformation on the eigenspace before and after diagonalising the perturbation Hamiltonian?  Another problem I have is understanding the process of calculating the energy and state corrections after finding a basis in which the perturbation Hamiltonian is diagonalised. Every example or explanation I have found is incredibly abstract. I would love to see a simple example with matrices and vectors if possible if anybody has links to good resources or can be bothered to go through one in an answer. I find matrix/vector representations to be much more intuitive.   Lastly, another question that I have just thought of: Are these eigenstates that we find to diagonalise the perturbation Hamiltonian with precisely the eigenstates of the new total Hamiltonian? And in that case, are they regarded as the first order corrections to the space of eigenstates whatever that would mean?


How can I solve this exercise?  Suppose that $A,B,C,D$ are $n\times n$ matrices with entries in a field $F$,  satisfying the conditions that $AB^{t}$ and $CD^{t}$  are symmetric and $AD^{t}-BC^{t}=I$.  Here $I$ is the $n\times n$ identity matrix, $M^{t}$ is the transpose of $M$. Prove that $A^{t}D-C^{t}B=I$  Thanks for your help


I have a shed in my backyard about 200ft from the house. I would like to run electrical to the shed to install 2 or 3 power outlets, and two LED lights for the inside.  Currently from the house to about 50ft from the house there is an exterior power outlet on a pole (no light on the pole, just the outlet). The line from the circuit breaker is completely dedicated to this one outlet the whole way -- currently no forks or splices. It is a 12 gauge UF-B wire run connected to a 20 amp gfci breaker. It is not in conduit and looks about 2 to 2.5 feet deep.  I am wondering if I can continue the line from the power outlet 50ft from the house on more 12 gauge UF-B for another 150ft to the shed -- which will have 2 or 3 power outlets and two LED lights for the inside. Or I am wondering if it would be required for me to have a dedicated line and a subpanel in the shed -- and maybe heavier wire.  Thanks!


Result is not properly displaying using Stack Exchange Data Explorer Queries?

I checked the top 50 users of a particular city using a query in the Stack Exchange Data Explorer. You can see the result , and I am not able to find my name in the list, while my city name is the same. Is there a problem with data updates?


Accessing instance field takes longer than declaring local variables?

I was watching a video on basic Java game programming and saw this bit of code  private void render() {     BufferStrategy bs = getBufferStrategy();     if (bs == null){         createBufferStrategy(3);         return;     } }   It seems to me like the code would run faster by declaring the reference "bs" outside of the render method so it isn't recreated every single frame, but then I actually tested it myself and found the opposite was true.  package test;  public class tm {     static String s;      public static void loop1(){         s = "hi";     }      public static void loop2(){         String d;         d = "hi";     }     public static void main(String[] args) {          long x1 = System.nanoTime();         for(int i = 0;i<100000;i++)             loop1();         long x2 = System.nanoTime();         for(int i = 0;i<100000;i++)             loop2();         long x3 = System.nanoTime();          System.out.println(x2-x1);         System.out.println(x3-x2);     } }   After running this a few times it became apparent that loop1 took on average an order of magnitude longer. It seems counter intuitive that simply accessing an instance field takes longer than creating a new variable. Am I missing something or is it that simple? How can I learn which equivalent actions take longer so I can better optimize my code?  1937701 284818  2036061 599144  3189017 675694  1971058 608125   there are a few runs. Did I benchmark incorrectly?