How to show Xbutton(clear button) always visible in uisearchbar

In my application, I am adding a . My intent is to enable the UISearch Bar "X button"(clear button in ) to be always visible. I have tried using the following code below to try to make the "X Button" be always visible. However, it does not work. If I set tf.clearButtonMode = UITextFieldViewModeNever, the clear button in  not showing. I am not sure what is wrong? I would really appreciate anyone's help here. Why is this not working? Code (Not working) for (UIView* v in searchBar.subviews) {     if ( [v isKindOfClass: [UITextField class]] )     {         UITextField *tf = (UITextField *)v;         tf.delegate = self;         tf.clearButtonMode = UITextFieldViewModeAlways;         break;     } }  Goal: I want to always show the clear button if the text length is equal to 0  i.e. if I don't input any text.


Why is Cauchy-Riemann equation not sufficient for differentiablity

In my undergraduate complex analysis textbook, it claims that Cauchy Riemann equations is not a sufficient condition for the existence of derivative. Intuitively, I do not understand why this is true, as if you satisfied $$u_x=v_y$$ $$u_y=-v_x$$  it implies that both $$f_x \;\; and\;\; f_y$$ exist and therefore $f$ should be differentiable   Any hint would be much appreciated


Why is Pentium 4 Prescott slow compared to Pentium M?

I was benchmarking if it is worth to put loop inside a callback function so I tested fourth order Runge-Kutta of on y'=y in C++, all with gcc 5.1 on Ubuntu with compilation command  g++ -std=c++11 -O3 -march=native --fast-math test.cpp   The Runge-Kutta loop  double dt=(t_end-t_0)/N; auto y=y_0; auto t=t_0; for(size_t k=0;k<N;++k)     {     auto k_1=f(k*dt, y);     auto k_2=f(k*dt + 0.5*dt, y + 0.5*dt*k_1);     auto k_3=f(k*dt + 0.5*dt, y + 0.5*dt*k_2);     auto k_4=f(k*dt + dt, y + dt*k_3);      y+=dt*(k_1 + 2*k_2 + 2*k_3 + k_1)/6.0;     }  return y;   Inlining was achieved by a template and a function object. For dynamic binding a function pointer was used.  The Pentium M  Specs as given by /proc/cpuinfo  cpu family      : 6 model           : 13 model name      : Intel(R) Pentium(R) M processor 1.73GHz stepping        : 8 microcode       : 0x20   Frequency from sudo cpufreq-info  current policy: frequency should be within 800 MHz and 1.73 GHz.                 The governor "userspace" may decide which speed to use                 within this range. current CPU frequency is 1.73 GHz (asserted by call to hardware).   Results                    ODE solution       exp(1)             diff                   Execution time Function pointer  2.718281828037378  2.718281828459045  -4.21667145644733e-10  53321972 Inlined call      2.718281828037378  2.718281828459045  -4.21667145644733e-10  19916460   The Prescott:  Specs as given by /proc/cpuinfo  cpu family      : 15 model           : 4 model name      : Intel(R) Pentium(R) 4 CPU 3.40GHz stepping        : 3 microcode       : 0x5   Frequency from sudo cpufreq-info  current policy: frequency should be within 2.80 GHz and 3.40 GHz.                 The governor "userspace" may decide which speed to use                 within this range. current CPU frequency is 3.40 GHz.   Results                    ODE solution       exp(1)             diff                   Execution time Function pointer  2.718281828037378  2.718281828459045  -4.21667145644733e-10  70811683 Inlined call      2.718281828037378  2.718281828459045  -4.21667145644733e-10  19928642   Comparison and question  So the Prescott performs no better (it seems to be much worse), than the much lower clocked Pentium M. Sure, Prescott had a very long pipeline, but my code is highly predictable since N=2^30. So what makes the Prescott that slow despite its high CPU frequency?


How to only enqueue block javascript on the frontend when its needed

I'm using register_block_type (see ) to register a Gutenberg block that depends on some Javascript on the frontend.  However, I'd rather the Javascript not be enqueued on absolutely every frontend pageload because the block is usually not used and I don't want to unnecessarily make everyone download the file. What's the best way to do that?


Negative values for AIC in General Mixed Model

I'm trying to select the best model by the AIC in the General Mixed Model test. The best model is the model with the lowest AIC, but all my AIC's are negative!   So is the biggest negative AIC the lowest value? Or is the smallest negative AIC the lowest value, because it's closer to 0?   For example is AIC -201,928 or AIC -237,847 the lowest value and thus the best model?


Google gives incomplete results on self search

I recently did a search on my own name, and three email addresses I've used over the last 30 years.  I have done this before, and I typically get something like 100,000 hits, with a lot of them dating back to the days of usenet.  Recently when I ran this search, The initial screen said 14,000 hits, then on clicking page 2, I ended up with 97  The distribution of hits is odd too:  I have a few from various Stack Exchange posts, but I've written hundreds.  I have a few from Medium.com, Quora, and a single one from Slashdot from decades ago.  All of these are sites where I have written a lot.  But I am also indexed on sites where I may have made a single response to a blog.   Why are my search results so incomplete?   How can I get a complete list of every post I've written anywhere on the internet?


how to get g++ package install in ubuntu 14.04LTS offline?

since I am new to this society but I a using Ubuntu for last one and a half year.I was not facing any problems because it is best. My problem is that how to get g++ packages install in my computer in an offline way for 14.04 LTS version because I do not have any internet connections.Thank you to all the respected one's and thank you for making me as one of your family member.


Chain rule for multivariable functions confusion

Suppose $f=f(x,y(x))$.  Then applying the chain rule we get $\frac{\partial f}{\partial x}=\frac{\partial f}{\partial x}\frac{\partial x}{\partial x}+\frac{\partial f}{\partial y}\frac{\partial y}{\partial x}=\frac{\partial f}{\partial x}+\frac{\partial f}{\partial y}\frac{\partial y}{\partial x}$.  From this it seems that it always holds that $\frac{\partial f}{\partial y}\frac{\partial y}{\partial x}=0$.  Where's the mistake?


Old, vaugely Starship Troopers-like novel/novella with female, possibly gay, protagonist?

Plot Details/Summary  This one is going to be a real longshot. I've only read a couple parts of the story, and I only remember a couple of moments from those parts of the tale. Hopefully they will be memorable enough for it to be identified.  The protagonist in the story is a human female soldier who fights on various planets as part of mankind's ongoing military campaign (against who or what, I do not remember).   She wears advanced, powered combat armor and carries very advanced weaponry.    I also recall that the protagonist may have been gay.  It sticks in my mind she has a girlfriend who is a fellow soldier, though assigned to a different vessel, and they spend long periods of time away from each other.  I believe there was a paragraph where the protagonist arrives at a base/starport, and finds out her partner shipped out just a few hours earlier.  The first specific detail I can remember is a battle where the protagonist is seriously wounded.  She is hit in the lower leg by a powerful enemy weapon. The weapon's blast penetrates her armor, and mangles the lower leg off just below the knee.  Her powered armor immediately activates its triage protocols.  A razor-sharp iris-valve located in the mid-thigh amputates her ruined lower leg, while other systems inject her with painkillers and other medicines to keep her from going into shock.  I believe that is the final scene in the first part of the story I read.  The second detail I recall comes from the second part I read.  The protagonist is sunning herself on the beach with her partner, both of them enjoying a couple weeks worth of shore leave.  The docs have grown her a new leg.  The protagonist states she still has some therapy to do before she gets full use of the limb back, but that she will be back in the fight soon enough.  Timeframe of Publication  I'm thinking this one is from the 1970s.  I remember reading both parts in a couple of old sci-fi magazines that my dad had picked up at a used book store.  It might have come out in the early 80s, but no more recent that that, IIRC.  I don't think it would been published earlier than the 1970s.


How to know if a sum of squares has integer solutions?

I'm stuck on a homework problem, which asks whether or not the sum of three squares of integers can equal 999. This is an abstract algebra class, not number theory, and we haven't learned any number theory tools beyond the division algorithm and relative primeness. I'm at a loss how to proceed. The only thing I've noticed is that either all three numbers must be odd, or exactly one of them, but this doesn't seem to lead me anywhere. Any help is appreciated, thank you.


In which situation is HMAC mandatory rather than signature?

I’ve seen that the question has been asked already but this is still confusing to me.   In a digital signature, Alice sends a message M and the hash(M) which is signed by her private key. Bob recomputes hash(M) (that he retrieves with Alice’s public key) and ensures that he finds the same hash value as Alice.  Therefore he knows that the message M is coming from Alice and that M has not been tampered with during the transit. So, it looks like we get both authentication and integrity.   In the HMAC construction (or more generally MAC this is not the subject here), a shared key between Alice and Bob is appended to the hash of data. I agree that it provides also both message authentication and integrity but what does it provide more? In other words, in which situation is HMAC absolutely required?


How can I create an  using python? I'd like to create one for each selected object and then all empties should be parented or constraint to the selected objects, meaning that the rotation and position should be copied over as well. I tried something along these lines but I can't get it to work properly: import bpy  for obj in bpy.context.selected_objects:     bpy.ops.object.empty_add()  Q: How to create an empty per object in selection?


maximum value of $xy+yz+zx.$ given $x+2y+z=4$

if $x+2y+z=4$ and $x,y,z$ are real number. then find maximum value of $xy+yz+zx$  putting $x+z=4-2z$ in $y(x+z)+zx = y(4-2z)+zx = 4y-2yz+zx$  i wan,t be able to  go further,could some help me with this


Escape again after value manipulation in PHP

Let's say i have this code:  $value = mysqli_real_escape_string($con, $_POST['value']); $value = strip_tags($value, '
');   for example with this value: $_POST['value'] = "
how
 you doin'?
";.  Should I escape $value after changing its text value? It contains an apostrophe that can cause problems with the mysqli queries, or even a SQL Injection. Thanks!


recover deleted folders on Ubuntu server

I've deleted folder on Ubuntu server 16.4 . I did it via SFTP (using Transmit) by simply deleting them via GUI. Is there a way to recover them?


Is there a way to host multiple domains with Apache web server without making any changes to the DNS server?  I have full control over the Apache server and no control over the DNS server.


Replace @@@ and NotApplicable string and redirect output to other file?

I'm using IBM AIX which doesn't have much support like sed -i and sed with \t is not working in my case.  I would like to replace replace NotApplicable string with a single space ' ' then replace @@@ multi-char-delimiter with a tab delimiter, in a specified order using single command be it awk, or sed.  I tried using sed as following but it didn't work. Couldn't add search and replace for NotApplicable with a ' ' single space in below command.     sed 's/@@@/\t/g' file.csv > file.xls   Sample data.  cola@@@colb@@@colbc test@@@test@@@test test@@@NotApplicable@@@test 123@@@145@@@567 333@@@444@@@NotApplicable  cola    colb    colbc test    test    test test            test 123     145     567 333     444


I want to password protect certain application in my desktop application. For example, everytime open firefox I want to set a password for it so that opening firefox should ask for password. I want to do the same for libre office as well. So when I open libre office, it should ask for password. And the password should be different for each different application. Is there any way to do this? I am using ubuntu 16.04.   Thanks in advance.


There are a lot of images not visible to me.          The issue is actually very weird. The images are appearing on a machine but not on another. Both have different ISPs having different IP addresses.  I know the question has been asked before:      But the answers say that the bug has been fixed.


Two factor ANOVA with repeated measures by mixed model (lmer)

I did a simple experiment with trees: 5 species (sp) and two management (trt). I assessed the diameter (diam) through the time (month=1:24) and I'm interesting in the factors interaction effect, I mean if the management is suitable for some species.  The  has some limitations since it is not balanced, so in 2 out of 10  factors combinations (sp*trt) I have 4 trees (subjects) and for the rest there are 5 trees:          sp    trt trees 1       A      L     5 2       A      W     5 3       B      L     5 4       B      W     5 5       C      L     5 6       C      W     5 7       P      L     4 8       P      W     5 9       T      L     5 10      T      W     4   I fitted the following model:  m1 <- lmer(diam ~ trt * sp * month + (1|tree), data = dat1)   I'm  not sure if I'm doing right, mainly if the model is right...      If the model is correct, and the anova is the following table:  Analysis of Variance Table              Df  Sum Sq Mean Sq F value trt           1 0.12110 0.12110 17.3756 sp            4 0.06761 0.01690  2.4251 month         1 0.33917 0.33917 48.6659 trt:sp        4 0.00436 0.00109  0.1564 trt:month     1 0.15814 0.15814 22.6900 sp:month      4 0.24445 0.06111  8.7687 trt:sp:month  4 0.19109 0.04777  6.8547


Can you cast a spell with a Somatic component if you're attacking with a two-handed weapon?

The related question –  – says that you can cast a spell if you're holding a 2H weapon. The  says:     Two-Handed (p. 147). This property is relevant only when you attack with the weapon, not when you simply hold it.   Although, that means if you attack with the weapon, both your hands are occupied. Hence the question. Can you cast a spell you're attacking with a two-handed weapon?  An example situation  Let's say two wizards are having a squabble. Wizard 1 smacks Wizard 2 with his staff, using both hands. On his turn, Wizard 2 tries to smack Wizard 1. I assume turns happen simultaneously in D&D 5e combat. Can Wizard 1 casts Shield as a reaction, while both his hands are occupied in that very moment?   implies you can cast a bonus action spell. But it is "especially swift" according to the PHB. What about a reaction spell?


awk to search the string and count for total in a one liner

I have logs like as given sample below, where I'm simply looking for a SUCCESS string in the log file and counting the total.  $ cat ansible.log lnx-host01.tin.com | SUCCESS => {"changed": false, "ping": "pong"} lnx-host02.tin.com | SUCCESS => {"changed": false, "ping": "pong"}   This is what the simple straightforward way, but I'm wondering if it can be done with awk itself as a one liner without passing to the wc command.  $ awk '/SUCCESS/{print $0}'  ansible.log | wc -l 66  OR  $ awk '/SUCCESS/' ansible.log| wc -l 66


Recover data from external disk with SMART failure

I have a WD My Passport Ultra external hard drive which failed after my laptop restarted in the middle of a file transfer. Since then I'm unable to open the files in the hard drive. Even though I can browse the files and view the file names and sizes, whenever I try to open a file I get an error message device not ready.   I scanned the disk with WD Drive Utilities and the SMART status check fails, which apparently means that the disk is corrupted. I tried to recover the files with Recuva which failed because the recovery software couldn't read the dist. Is there any way to recover the files in that disk or it's completely written off?


Hill Cipher - Unknown plaintext attack, known key

I was wondering if I have the key and the encrypted Hill Cipher message(s). I can definitely figure out the charset involved. But the order is missing. Assuming that I use 37 modulo or higher. How would I go about cracking it?


Assigning geometry to existing features in QGIS?

I have a point-shape-layer with existing features and an attribute table. But none of these features have a geometry  yet(i.e. no points that are shown). How can I now add a point to each feature?  Ideally I want to click on a row in the attribute table and then click on the map to set that new point.


Evaluate the convergence of the following infinite sum. I am so bad when it comes to parameters. I don't know where to start. $\sum_{n=1}^{\infty}\dfrac{(n+1)^a-n^a}{n^b}$, where $a,b\in\mathbb{R}$.


Combining rotation (using Quaternion* Quaternion) doesn't work as expected

I have fragment of code that has to rotate the camera to the direction where my cursor is as below:   float yaw = mouseSensitivity.x * Input.GetAxis("Mouse X"); float pitch = mouseSensitivity.y * -Input.GetAxis("Mouse Y");  Vector3 camRotDir = new Vector3(pitch, yaw, 0);  // this works  Vector3 camRot = mPlayerCamera.transform.rotation.eulerAngles + camRotDir; mPlayerCamera.transform.rotation = Quaternion.Euler(camRot);  // this doesn't work //var rotation = Quaternion.Euler(camRotDir); //mPlayerCamera.transform.rotation =  mPlayerCamera.transform.rotation * rotation;   WithmouseSensitivity being an arbitrary Vector2 value representing mouse's sensitivity respectively on axis X and Y.  The problem is when I convert the current camera's rotation in Quaternion to Euler angle, add the camRotDir to it and then convert the result back to Quaternion, it works properly, the z component in camera's rotation remains unchanged during this process. But when I first convert the camRotDir to Quaternion and add it to camera's current rotation by multiplying them together, I get unexpected behaviour, the z component was somehow changed.   I have no idea why this happens, should Quaterion of (euler_a + euler_b) == (Quaternion of euler_a) * (Quaternion of euler_b) ?  Code run in Unity 2018.3.12f1.


Is the Data Explorer now updated weekly?

There was an update around the 17th or 18th. Now, I see that all of the sites have been updated as of the 25th. I know that there was a time when a weekly or every-two-week update cycle was planned, but I couldn't find any confirmation of this having been implemented. The  still says monthly, but there had been a delay of a few months at one point, so I'm not entirely sure that the FAQ is trustworthy on all points. Every other post that I've found about the Data Explorer is at least a few months old, and this appears to be a recent change.


Why does Bing webmaster tool's SEO analyzer complain about multiple  tags?

I used the Bing webmaster tool's SEO analyzer on my website, and it reported:     There are multiple  tags on the page.   It recommends that there should only be one
 tag on the page.  The page is a listing of blog posts for a category. So each blog entry is structured like this.

...

summary...

...

summary...

...

summary...

...

summary...

   How is this invalid? I thought this was the correct way to describe a post in HTML5.


I wanted some opinion on my set up here, just to make sure I got the basics right.  I have a Li-ion battery charging circuit based on the MCP73113. This is designed to be a single-cell battery charger.   The battery itself (3.7V, 650mAh) comes with its own PCB with Schottky diode and current regulators as protection. EDIT: Not a Schottky diode. Current limiter and a Protection IC.  By design, they work together just fine.  I have more batteries from the same manufacturer and wanted to make higher capacity packs by putting two cells in parallel. The two cells come with their own PCB, but I only kept one of them, as I soldered their leads together. It seems to work and they are charged and discharged just like regular batteries (3.7V, now 1300 mAh).  However, not all the packs I made work smoothly and I get a failure rate of 2 in every 10 packs. They all start out normally, but occasionally when the batteries are not charged for some time, or are used up, they tend to not work anymore. So far, in only 1 pack I found the voltage to be different (both now below 2V, aka dead).  I assume my method is not the right approach to ensure 100% success rate, so I was wondering how can this be solved. All the controllers I looked into was designed for multiple cells in series, not parallel. Am I fundamentally missing something here?


using arithmetic notation to transverse a string of chars

How can I transverse a char array using a pointer? Is there a way to transverse an array using a pointer?  I have a program using a char array and a for loop but I want to be able to use pointers to move through the array of chars. However I am not sure how to use a pointer with an array of chars.    #include <stdio.h> #include <string.h>  int main() {    char arr[] = "abcde";   int length = strlen(arr);   for(int i = 0; i < length;i++)   {        printf("%c ", arr[i]);   }   return 0; }   I need to change the way I transverse the array, but not sure how to do it using just pointers. It also needs to work in c and c++.


Let X be a Banach space, and x,y ∈ X. Show that if ℓ(x) = ℓ(y) for every ℓ ∈ X′, then x = y.

Not too sure where to start. Seems like it should be an easy adaptation of a theorem, but have't been able to find it in my notes. Thank you!


Hide Dropdown When Clicked Outside (With JavaScript)

Here is a simple way to show and hide a dropdown menu when an element (flag, in this case) is clicked:   function handleDropDown(elementId) {   const element = document.getElementById('languages');   if (element.style.display === "block") {     element.style.display = "none";   } else {     element.style.display = "block";   } } .flag-icon-wrapper {   margin-right: 20px;   padding-top: 5px; }  .flex {   display: flex; }  .flag-icon {   width: 50px; }  .is-hidden-initially {   display: none; }  .languages-menu {   border: 1px solid black; }

Spanish

French

Russian

    Now I want to hide the menu when you click anywhere else on the screen. The menu should hide when you click anywhere outside of it. Without jQuery. I found a comment on the top answer for , which explains how to do it with Vanilla JS:   let menu = document.getElementById('languages'); let nav = document.getElementsByClassName('languages-menu'); let html = document.body.parentNode;  function handleDropDown(elementId) {   const element = document.getElementById('languages');   if (element.style.display === "block") {     element.style.display = "none";   } else {     element.style.display = "block";   }   menu.addEventListener('click', toggleClassMenu);     html.addEventListener('click', function(event) {   event.preventDefault();   if (menu.contains(event.target)) {     element.style.display = "none";   } else {     element.style.display = "block";   } }); } .flag-icon-wrapper {   margin-right: 20px;   padding-top: 5px; }  .flex {   display: flex; }  .flag-icon {   width: 50px; }  .is-hidden-initially {   display: none; }  .languages-menu {   border: 1px solid black; }

Spanish

French

Russian

    But as you can see it creates a TypeError: "Uncaught TypeError: document.getElementByID is not a function" - I'm not sure why that's causing a type error (?) getElementById should be camel case, correct? And besides the error, are there any other suggestions for doing this only in JavaScript?


He proposed that this meeting to be held annually instead of monthly.      Should to be omitted or kept?


Match text after colon and before new line - Javascript

I have a text in the following format:  Concept number 1: my content here1
 Concept number 2: my content here2
 Concept number 3: my content here3
   I want a regext to get the text after Concept number 1:. So I want to get the following: my content here1.  I was using Concept number 1(.*?)
, but I'm getting the whole string as a result instead of the text after the colon.  .  var text = $('.text').html(); var regex = new RegExp('Concept number 1:(.*?)
', "g"); var matches = text.match(regex); //matches contains `Concept number 1: my content here1<br>`


The Multiverse theory says that there are infinite alternatives of our universe, many of them are very similar to the one were we live other are completely different. But the number of parallel universes isn't infinite. It' s a very, very, very.... huge number because we have to consider all the possible configuration of the universe (for example the number of the particles at the power of itself multiplied by....) but at all it shouldn't be infinite.   Is this wrong?


You are missing the following 32-bit libraries, and Steam may not run: libc.so.6 this is the error i keep getting when trying to install steam on ubuntu 14.04


Howto typeset the direct current symbol in LaTeX?

How can I typeset the following symbol for direct current (i.e. a = symbol where the lower line is dashed)?     The image above is an enlarged version, the size I need is like =, \approx, \simeq etc.


How do I pass two parameters to a tikz style?  I would like to do something like this:  \begin{tikzpicture}[     transformer/.style={draw, cylinder, gray!80, rotate=90, minimum height=#1, minimum width=#2},   And then, I want to use this style in a node:  \node [transformer{2.3cm}{1cm}] () at (0,0.6) {};


Short Story with a simple form of machine evolution

This story Starts out like the standard "Planet of the Apes" routine: Space voyagers from Earth get caught in some sort of warp and return to a recognizable Earth, but the civilization they knew is long gone. In this story, however, all macro biological life has disappeared completely, to be replaced by a wilderness of feral machines, many of them replicating the standard biological forms: amulatory predators/prey (analogous to animals), sessile energy accumulators (like plants), even sea "creatures". Some predators are able to use parts of their prey directly, although most incorporate some kind of smelter or other recycling feature that allows them to mine basic materials from prey. Explosives are part of the repertoire of prey defenses, hinting that some of this may have been kicked off by humans tinkering with autonomous machines meant for warfare. I think it was by a well-known SF author, like, say, Robert Silverberg.  I believe it dates back to the 1980s, could have encountered it in a collection of older stuff, but it's definitely post-60s, as integrated chips are mentioned explicitly as a resource.


Feature request/suggestion: Segmented styled asking format

Background  So this is really just directed more towards newer posters. Most of the time the questions are basically a wall of text, with code, problems and expected results all intermingled which makes it hard to follow top to bottom what they're looking for. So what I'm proposing is, rather than an empty textbox without without direction, have segments which gives the poster some guide on how to ask and what to actually put there.  Suggestion  Have three blocks:   What I have (this should be some background with code, could split this into two section, where one section provides more written info about the situation and the other section is more code related) What I'm getting (result currently outputted, probably no code) What I want (expected result, probably no code)   See an example of how I formatted one of my questions:   Of course, this should only be forced on newer users (maybe 50 and under rep like comments). And anyone else can have free text as we do now, though with the option of using the segmented format as well.  Implementation  Something like this:    var title = ["What I have", "What I'm getting", "What I want"]; var hints = ["Give information on the background and provide code", "Post what results you're getting from provided code/situation", "Post what results you are expecting to receive"]; var text = Array(3).fill(""); var index = 0;  (function() {  $("#title").html(title[index]);   $("#hint").html(hints[index]);   $("#text").val(text[index]); })();  function change(dir) {  text[index] = $("#text").val();     if (dir === "prev")   {     if (index)     {       index--;     }   }   else   {     if (index < 2)     {       index++;     }   }     $("#title").html(title[index]);   $("#hint").html(hints[index]);     $("#text").val(text[index]); }

   <textarea id="text">        </textarea>
 <button onclick="change('prev')"> prev </button> <button onclick="change('next')"> next </button>


Observed it many times on many Ubuntu versions. If you type wrong password either in UI mode or in terminal, it takes little more time before it declares incorrect password.  Correct password check is almost instantaneous, but incorrect password takes slightly longer. Its not lot of time, but still lot more than correct password.   Why is it so?


Time traveling astronaut appearing frozen to observers in time travel accident

So I was recently watching the series seven episode of Doctor Who titled "Hide" and it struck me that I had read a short story that was remarkably similar to the astronaut woman of the episode.  Here's what I remember definitively of the story:  The story is told from two perspectives: that of the traveler and that of the observers throughout time. The traveler is running but to the outward observers he/she appears frozen like a statue. As the story progresses the 'statue' moves slowly through the millenia but to the everyday people its imperceptible, he/she is just an anomalous statue.  What I think I remember:  The time traveler is dressed in some type of space suit looking thing. I think the time traveler is the test pilot for the new time travel device/ship. The traveler may possibly be crossing dimensions (really not  sure about that). They are either running towards a light or away from the crashed ship. I vaguely remember something like the traveler was trying to send a message or something to a loved one but the distortion made it unintelligible to the receiver but by the end of the story someone had cracked it and it may have been something like "i love you, goodbye." or something to that effect.  I'm also assuming that, from my vague recollections of the story compounded with what has now been years of studying SF, that this story fits into the 50's or 60's. While I think it could easily have been written as early as the 40's I don't think it would have been written in the 70's.   Thanks in advance for the help, because this is driving me insane that I can't remember more about this story.


What really happens when matter and antimatter combine?

When Energy is converted to matter, we know equal amounts of matter and antimatter are produced. What happens when matter and antimatter combine?


after run sudo apt upgrade in Ubuntu 18.04 LTS show error :  ~# apt upgrade Reading package lists... Done Building dependency tree        Reading state information... Done Calculating upgrade... Done The following packages were automatically installed and are no longer required:   kwayland-data libboost-filesystem1.62.0 libboost-iostreams1.62.0   libboost-serialization1.62.0 libboost-system1.62.0 libcapnp-0.5.3   libcapnp-0.6.1 libdfu1 libfam0 libfwupd1 libhfstospell9 libkf5archive5   libkf5attica5 libkf5auth-data libkf5auth5 libkf5bookmarks-data   libkf5codecs-data libkf5codecs5 libkf5completion-data libkf5completion5   libkf5config-bin libkf5config-data libkf5configcore5 libkf5configgui5   libkf5configwidgets-data libkf5coreaddons-data libkf5coreaddons5   libkf5crash5 libkf5dbusaddons-bin libkf5dbusaddons-data libkf5dbusaddons5   libkf5doctools5 libkf5globalaccel-bin libkf5globalaccel-data   libkf5globalaccel5 libkf5globalaccelprivate5 libkf5guiaddons5   libkf5i18n-data libkf5iconthemes-data libkf5idletime5 libkf5itemviews-data   libkf5itemviews5 libkf5jobwidgets-data libkf5jobwidgets5   libkf5kdelibs4support-data libkf5kiontlm5 libkf5mediaplayer-data   libkf5notifications-data libkf5notifications5 libkf5parts-data   libkf5service-data libkf5solid5 libkf5solid5-data libkf5sonnet5-data   libkf5sonnetcore5 libkf5sonnetui5 libkf5textwidgets-data libkf5wallet-data   libkf5waylandclient5 libkf5widgetsaddons-data libkf5widgetsaddons5   libkf5windowsystem-data libkf5windowsystem5 libkf5xmlgui-data   liblttng-ust-ctl4 liblttng-ust0 libmirclient9 libmircommon7 libmircore1   libmirprotobuf3 libphonon4qt5-4 libpolkit-qt5-1-1 libprocess-cpp3   libprotobuf-lite10 libqt5printsupport5 libqt5test5 libqt5xml5 libtgvoip1.0   libunity-api0 liburcu6 libvoikko1 libzmqpp4 phonon4qt5   phonon4qt5-backend-vlc sonnet-plugins ubuntu-app-launch Use 'apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2 not fully installed or removed. Need to get 0 B/153 kB of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n]  dpkg: error processing package fonts-tlwg-sawasdee-ttf (--configure):  package is in a very bad inconsistent state; you should  reinstall it before attempting configuration No apport report written because the error message indicates its a followup error from a previous failure.                           dpkg: dependency problems prevent configuration of fonts-tlwg-sawasdee:  fonts-tlwg-sawasdee depends on fonts-tlwg-sawasdee-ttf | fonts-tlwg-sawasdee-otf; however:   Package fonts-tlwg-sawasdee-ttf is not configured yet.   Package fonts-tlwg-sawasdee-otf is not installed.  dpkg: error processing package fonts-tlwg-sawasdee (--configure):  dependency problems - leaving unconfigured Errors were encountered while processing:  fonts-tlwg-sawasdee-ttf  fonts-tlwg-sawasdee E: Sub-process /usr/bin/dpkg returned an error code (1)


Many problems arise with Google's OpenID implementation (now deleted: , , ...), asides with all the obvious privacy concerns (although quite opposed to security ones...)  Will it be possible to remove an account directly from the interface without involving the administrator team (yes, I do know they are very responsive)?  Some rules could apply:   you can only delete recently created accounts (several days?) with reputation points under a certain limit (1?) Obviously only the account you are logged in (beware of XSS attacks!) ...


Is it possible that the geometry of spacetime isn't Minkowskian, if we only take special relativity into account?

If you don't consider general relativity, could you say that the geometry of spacetime might be different from how it's specified by the Minkowski metric? Or is Minkowski spacetime the only geometry that can fully portray the fundamentals of SR?


I would like to paint an objective picture of some binary outcome.   Now I have data like this: 1085x yes, 1704x no. The percentage of the positive outcome is 40.72%, but I want to give an estimation of the uncertainty. (I have multiple rows like this that are independent of each other) I have Googled for bounds on Beta distributions or Bernoulli trials but can't make sense of it.  This unanswered question is related:


This is a  about DNS glue records.   What exactly (but briefly) is a DNS glue record?  Why are they needed and how do they work?


I am relatively new to GIS and am facing some difficulties trying to summarize/pool data together.  I've attached the file to make it easier. FID_pc11_1 (Refers to postcode identifier) and count refers to the number of each postcode. Basically, there are 2107 objectid_1 (which is the different buffer zones around schools), code represents the different lower super output areas in UK.   I would like to summarize my data, such that it would give me data in the format of; in zone 1 (eg.objectid_1= 1),what is the summated count (of postcodes) for each of the code/lower super output layer (eg:E101002711).


Domain name resolution tool not specific to DNS

host, dig and nslookup can be used to lookup DNS names from the command line. However, they query the names from the DNS server directly, instead of using nsswitch to resolve host names. This means /etc/hosts and mDNS aren't used.  Is there a command line tool that looks up the name by the standard way (honouring mDNS and /etc/hosts)?  There is a , but it seems to be specific to OS X.


I really need a water flow animation exactly like this. I'm already using follow path, curve and array modifier but the result not as expectation.  Here's the exact sample I wanted:   My result the array is not following the curve path:


For $x\in\mathbb R\setminus\mathbb Q$, the set $\{nx-\lfloor nx\rfloor: n\in \mathbb{N}\}$ is dense on $[0,1)$

Let $x\in \mathbb{R}$ an irrational number. Define $X=\{nx-\lfloor nx\rfloor: n\in \mathbb{N}\}$. Prove that $X$ is dense on $[0,1)$.    Can anyone give some hint to solve this problem? I tried contradiction but could not reach a proof.  I spend part of the day studying this question   and its answers. Only one answer is clear and give clues to solve the problem. This answer is the first one. However, this answer does not answer the question nor directly, nor the proof follows from this answer.   This answer has some mistakes, he use that $[(k_1-k_2)\alpha]=[k_1\alpha]-[k_2\alpha]$ which is not true. Consider $k_1=3, k_2=1, \alpha=\sqrt{2}$ we have $[(k_1-k_2)\alpha]=2\not= 3=[k_1\alpha]-[k_2\alpha] $. We only can assure that $[k_2\alpha]-[k_1\alpha]-1\leq [(k_2-k_1)\alpha]\leq[k_2\alpha]-[k_1\alpha]$.   Who answered said something interesting about additive subgroups of $\mathbb{R}$, but unfortunately the set $X=\{nx-[nx] : n\in \mathbb{N} \}$ is not a subgroup. Considering the additive subgroup $G=\langle X \rangle$, if we prove the part (a) of the link, we get that indeed $G$ is dense on $\mathbb{R}$ but we can not conclude that $X$ is dense on $[0,1)$.  I think this problem has not been solved.  Thanks!


How many votes on questions by sock puppets does it take to suspend his account?

If a sock puppet votes on a question or an answer, how many times can it do that before the account gets suspended or deleted?


If you cast Blindness/Deafness as a 3rd level spell, can you target one creature with both effects?

The Player's Handbook states that when cast as a 3rd level or higher spell, Blindness/Deafness can target additional targets equal to the difference between the spell slot the spell is cast at and its base spell slot level of 2.  My question is, would it be legal to cast Blindness/Deafness as a 3rd level spell, but instead of having either effect (blindness OR deafness) target two creatures, have it target one creature with both effects (blindness AND deafness.)  I'm having a hard time deciding whether this would provide an overpowered effect, as it increases the amount of disabilities one creature will suffer from, but lessens the number of creatures affected by the spell.  Perhaps it could be legal provided the targeted creature gets to make a separate CON save against each effect?


Failed install of Hyper V uses up 18GB of HDD

I've decided to try out the 'Hyper-V Windows 10 dev environment' on my laptop. Beginning this I only had about 20gb remaining so had to remove an additional 20gb from my hard drive, leaving me with 40gb free.(which is the recommended free amount to use Hyper-V) I initiated Hyper-V Windows 10 dev environment through Hyper V quick create, but just before it finished installing the application stopped saying there wasn't enough free storage to complete the task. Before beginning the daunting process of removing more files I looked how much storage space I should have which was now at 22GB free. What happened to the other 18GB I had before the download began? I've tried a restart, c-cleaner, and treeSize but I cant see anything out of the ordinary. It wouldn't have allowed me to begin the first install unless there was 40GB free. So where did this space go to?


Is it possible to update a jailbroken iOS 7 to a version Apple has stopped signing?

My iPad is running 7.0.2 and is jailbroken. It looks like Apple is not signing the 7.1.2 any longer.  Is there a way to upgrade iOS to 7.1.2 without letting iTunes contact its home (i.e. Apple's servers)?


How do I remove aluminum foil from the bottom of my oven?

I had this brilliant idea to put aluminum foil at the bottom of my oven while I cooked pizza at very high temperatures. I was hoping it would catch any toppings that fell off so I could quickly remove them and prevent smoke. The result is that the foil bonded to the oven and now I'm not sure how to get it off. Any chemicals or tools I should use in this situation?


How to remove/apply all modifiers of one object in python

Lets assume you have 1 object with 4 modifiers added to it. I am curious how one would approach the task to apply all or to delete all modifiers of a just selected object that has many modifiers already added.  The console reads out the modifier delete as  bpy.ops.object.modifier_remove(modifier="Box Right ")   So "Box Right " I might have to replace with something like active.object.modifier.name and then work each modifier off?  This would be very helpful when you want to generate a static mesh for animation or 3D printing.


Can you hire a cosigner online? And does it work? Has anyone tried it?

I am looking to hire a co-signer online for a loan that’s been approved pending co-signer approval. I completely comprehend that my financial assessment is sketchy however I would like to offer some clarifications as to why Things adversely affected my credit score and see if anyone would be willing to share in the loan. Is there any such service ? And does it work?


How to disable rotating to landscape mode?

I tried . Could not find configChanges in manifest file. Anyways, how to disable rotation of screen(to landscape mode)?      <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"     package="com.joericharduz.akita"     android:versionCode="1"     android:versionName="1.0" >      <uses-sdk         android:minSdkVersion="8"         android:targetSdkVersion="17" />      <application         android:allowBackup="true"         android:icon="@drawable/ic_launcher"         android:label="@string/app_name"         android:theme="@style/AppTheme" >         <activity             android:name="com.joericharduz.akita.MainActivity"             android:label="@string/app_name" >             <intent-filter>                 <action android:name="android.intent.action.MAIN" />                  <category android:name="android.intent.category.LAUNCHER" />             </intent-filter>         </activity>     </application>  </manifest>


Why is $\varphi$ called "the most irrational number"?

I have heard  called the most irrational number. Numbers are either irrational or not though, one cannot be more "irrational" in the sense of a number that can not be represented as a ratio of integers. What is meant by most irrational? Define what we mean by saying one number is more irrational than another, and then prove that there is no $x$ such that $x$ is more irrational than $\varphi$.  Note: I have heard about defining irrationality by how well the number can be approximated by rational ones, but that would need to formalized.


Consider error of hypothesis h over training data errortrain(h) and error over entire distribution D of data errorD(h). Hypothesis h in H overfits training data if there exists an alternative hypothesis h´ in H such that:   errortrain(h) < errortrain(h´) errorD(h) > errorD(h´)   I am struggling to find literature on that topic.  Is there a more formal (or more detailed) definition of overfitting?


Which book in Asimov's Foundation series describes a video communication system just like our "Zoom"

Long ago I read all the books in Asimov's Foundation series. In one of them, people are living alone or very few at a time on separate worlds that are far apart. They communicate via a video system that I remember as being very much like today's "Zoom." I can't find which book that is in. Can anyone help?


how do I groupby a simple string list in python

I have tried searching this and the closest thing I came was using Panda packages, however is there is a way to accomplish this simple groupby with only inbuilt modules My example: x = ['apples', 'cat', 'cherry' 'apples', 'cherry']  and when group, I want my end result to be: y = ['apples', 'cat', 'cherry']


C++ Template function that accepts a function as parameter

I have a Component that I attach to projectiles spawned by my character. I would like to make a callback function that is called when the projectile hits a valid target. In Component.h I declare a function :     template<class T>     void OnTargetHit( void (T::*Callback)() );  In Component.cpp is implementation: template<class T> void UInterpolationComponent::OnTargetHit( void (T::*Callback)() ) {     (T::*Callback)(); }  Now in my Character.cpp I would like to Get the component and assign it a "callback" function, a function that would be triggered when te target is hit, ofcourse this component could be applied to different Actors, therefore I want to pass a function from the calling class so I provide a specific implementation:     AActor* Projectile = GetWorld()->SpawnActor<AActor>(PrimaryAttackProjectile_BP, GetActorLocation(), Rotation);      UInterpolationComponent* InterpComp = Cast<UInterpolationComponent>(Projectile->GetComponentByClass(UInterpolationComponent::StaticClass()));     InterpComp->InterpSpeed = 1800.f;     InterpComp->bHoming = false;     InterpComp->StaticTarget = Location;     InterpComp->bIsDestroyable = true;     InterpComp->OnTargetHit<ACartagraCharacter>(&CalculateDamage);  The problem is with the last line of code :     InterpComp->OnTargetHit<ACartagraCharacter>(&CalculateDamage);  I'm not sure if I should pass an ampersand or not, If I should Include the class name, I tried all of the following:     InterpComp->OnTargetHit<ACartagraCharacter>(CalculateDamage);     InterpComp->OnTargetHit<ACartagraCharacter>(&ACartagraCharacter::CalculateDamage);  None of them work, either gives me an ampersand error, or if in the last case presented it gives me a linker error. I also tried making them static functions, but that doesn't make too much sense as the component is instanced on each spawned projectile. I'm new to template functions and not sure how I'm supposed to do this. Please help.


I have the following code:  typedef void VOID; int f(void); int g(VOID);   which compiles just fine in C (using gcc 4.3.2 on Fedora 10). The same code compiled as C++ gives me the following error:  void.c:3: error: ‘<anonymous>’ has incomplete type void.c:3: error: invalid use of ‘VOID’   Now, this is something in external library and I would like the owner to fix that problem. So I have a question - does C++ standard forbids this construct? Could you give me a pointer/citation? The only thing I can recall is that function declaration with (void) to signal empty parameter list is deprecated in C++, but I don't understand why typedefed VOID does not work.


How does one execute a javascript function while debugging in the iOS Web Inspector?

In the Sources Tab, I can see the init() function and have set a breakpoint.  To verify that it works, I want to execute the function to see the output and stop at the set breakpoint. function init() {     console.log("main.js init");   }  In the console, I entered:  > init(); and got back "ReferenceError: Can't find variable: init. Tried:  >init()  and got the same thing. My background is in native code, Swift and ObjectiveC.  So this is new to me and I'm not finding any examples or documentation online.


This may sound strange but I have all windows instillation iso's back to windows 95. Is there a way to add them all to a 512GB pen-drive and make it boot-able. So when I put the USB in it will give a dos like menu to choose the iso I want to boot from. Thanks in advance.


how to list groups along with its users using terminal in ubuntu 14.04.5?

For example: Group workers have 2 users: john and jony . What command do I have to use to list the members of group workers ?   These commands don't serve my purpose:  compgen -u , compgen -g, cut -d ":" -f 1 /etc/passwd


Visa requirement query for Indian postdoc applying in UK

I have completed a Ph.D. in India, which is my native country, and am applying for post doc positions in the UK.  However, due to strict visa rules, I am not sure if my application would be shortlisted. In these types of situations, my CV and application file have already been approved by the PI.   However, do universities generally sponsor non-EU candidates like me or  is it the responsibility of the PI to make the proper arrangements? How can I ensure that my job is not denied due to non-academic reasons like visa issues?


Why does Wolfram Alpha say that $\sqrt{1}=-1$?

Why does ?    Is this a mistake or what? Can anyone help?  Thanks in advance.


Fit a chainguard when there is a front derailleur

My bicycle has a front derailleur. It's a hybrid. I use it to commute and would like to fit a chainguard.  Is there any chainguard that can be fitted when there is a front derailleur?


I have an HTML (not XHTML) document that renders fine in Firefox 3 and IE 7.  It uses fairly basic CSS to style it and renders fine in HTML.  I'm now after a way of converting it to PDF.  I have tried:   : it had huge problems with tables.  I factored out my large nested tables and it helped (before it was just consuming up to 128M of memory then dying--thats my limit on memory in php.ini) but it makes a complete mess of tables and doesn't seem to get images.  The tables were just basic stuff with some border styles to add some lines at various points; : I actually had better luck with this.  It rendered some of the images (all the images are Google Chart URLs) and the table formatting was much better but it seemed to have some complexity problem I haven't figured out yet and kept dying with unknown node_type() errors.  Not sure where to go from here; and : this seems to work fine on basic HTML but has almost no support for CSS whatsoever so you have to do everything in HTML (I didn't realize it was still 2001 in Htmldoc-land...) so it's useless to me.   I tried a Windows app called Html2Pdf Pilot that actually did a pretty decent job but I need something that at a minimum runs on Linux and ideally runs on-demand via PHP on the Webserver.  What am I missing, or how can I resolve this issue?


How to predict using ordered probit regression and calculate prediction accuracy?

I want to do an , then cross-validate model prediction accuracy with 80% data for training and 20% for validation, and calculate  for predictions.  Consider this dataset:    X     Y ----------  2.3    1  3.1    2  3.5    2  10.0   5  6.8    4  5.0    3  5.4    2  3.2    1   I did this:  x=c(2.3,3.1,3.5,10.0,6.8,5.0,5.4,3.2) y=c(1,2,2,5,4,3,2,1) myData=data.frame(cbind(x,y))  library("MASS") reg=polr(as.factor(myData$y)~myData$x,data=myData,method="probit")   I saw , but I couldn't fully understand. Suppose myValidationData contains 20% of data which I want to use for validation. So, I would do:  fit=predict(reg,type="probs") x=c(5.6, 5.1) y=c(3,3) myValidationData=data.frame(cbind(x,y))   This is how I tried to predict, but is it correct, when I want to cross-validate?  fit=predict(reg,data=myValidationData,type="probs")   How should I measure RMSE? And, how can I plot the prediction?


I believe bipartite means you can split the vertices of a graph into 2 groups, where each vertex in the first is connected to all in the second (correct me if Im wrong) Does that mean every 2-colorable graph is bipartite? If not, what are some counterexamples, and an explanation why?


If magnetic fields are created by moving charges, how do magnets work?

This is probably is stupid question but I think it must clear up some misconception I have. Magnets, presumably have magnetic fields. But where are the moving charges? Don't we need a current?


I was wondering the difference between norm and distance. My teacher told me that a norm always induce a distance, but that the reciprocal is not true. So, let $(E,\|\cdot \|)$ a normed space. I agree that we can give a structure of metric space by setting $d(x,y)=\|x-y\|$. Now let $(E,d)$ a metric space. Why $\|x\|=d(x,0)$ would not be a norm over $E$ ?


I have a problem. I have a Windows user [domain\user] on my instance that has access to some database. I want to change the default schema for that login. I can do this when I create some test login and user in the database but not for my Windows user:  ALTER USER [MFG\giorgi.nakeuri] WITH DEFAULT_SCHEMA=[TBBS]   ...results in:     Cannot alter the user 'MFG\giorgi.nakeuri', because it does not exist   or you do not have permission.   But when I am trying to add it:  CREATE USER [MFG\giorgi.nakeuri] FOR LOGIN [MFG\giorgi.nakeuri]   I get:     The login already has an account under a different user name.   When I observe login in properties it has a check on the database and both user and default schema are dbo. But I can not change any of those from that window. I am connected to instance with this windows user and login server role is all: public, securityadmin, serveradmin, setupadmin, sysadmin.


How to get difference of date in JavaScript Date object?

Consider I have an array of dates eg:  abc = [new Date("2015-03-01"),new Date("2015-03-02"),new Date("2015-03-03"),new Date("2015-03-04")]   output:  [Sun Mar 01 2015 05:30:00 GMT+0530 (India Standard Time), Mon Mar 02 2015 05:30:00 GMT+0530 (India Standard Time), Tue Mar 03 2015 05:30:00 GMT+0530 (India Standard Time), Wed Mar 04 2015 05:30:00 GMT+0530 (India Standard Time)]   I'm trying to push the difference between two dates and trying to store the data in a new array. Here is what I have tried,  var arr = []; abc = [new Date("2015-03-01"),new Date("2015-03-01"),new Date("2015-03-02"),new Date("2015-03-03"),new Date("2015-03-04")];  for (let i = 0; i < abc.length-1; i++){     arr.push((abc[i+1].getDate() - abc[i].getDate())+1) }   And the output I'm getting is:   [1,2, 2, 2]   But I needed the output something like   [1,2,3,4]    I need to append plus one to each date difference. How can I achieve that?


How to express 0.999999... recurring as a fraction without equaling 1

I was wondering is there any way to express $0.999999$ recurring as an actual fraction without equaling $1$? Because I tried to convert it into a fraction following the rules for normal recurring decimals like this:  $$\begin{align}n&=0.999\dot9\\10n&=9.999\dot9\\n&=0.999\dot9\\9n&=9\\\therefore n&=9/9\end{align}$$  But as you can see the result is $9/9$ which ultimately is equal to $1$ . And I've even tried calculating it other ways like this:  $$\begin{align}1/3&=0.333\dot3\\2/3&=0.666\dot6\\\therefore3/3&=0.999\dot9\end{align}$$  But it always ends up telling me that $0.9999999... = 1$. Is there any mistake in my logic? And I also realized this applied to other recurring decimals ending in $9$. E.g: $0.5999999...=5.4/9 = 0.6$ . So is there a way to write $0.999999...$ as a fraction so you can differentiate it from $1$?


How to prove snake lemma in abelian categories without invoking Mitchell's embedding theorem?

The usual way to prove snake lemma is by diagram chasing, which requires you to work on the elements.   But snake lemma still holds on abelian categories.   Could someone provide a version of proof for snake lemma by chasing arrows?


An integrable and periodic function f(x)

For a periodic function we have: $$\int_{b}^{b+a}f(t)dt = \int_{b}^{na}f(t)dt+\int_{na}^{b+a}f(t)dt = \int_{b+a}^{(n+1)a}f(t)dt+\int_{an}^{b+a}f(t)dt = \int_{na}^{(n+1)a}f(t)dt = \int_{0}^{a}f(t)dt.$$ , but I don't understand how we obtain $\int _{b+a}^{\left(n+1\right)a}\:f\left(t\right)\:dt=\int _b^{na}\:f\left(t\right)dt$ in our equality?


On reputation section: all vote values are not shown for each event

I just reviewed a reputation for some users and I found that all vote values are not shown for some events, I don't know if this is a bug or just normal behavior, I didn't found any information about it.  As shown in the screen-shot, vote value is not shown for some upvote events.


Should I open a credit card when I turn 18 just to start a credit score?

I spend about $20-30 a week on my debit card, with periodic $200-300 purchases every few months. I've thought about getting a credit card the moment I turn 18 and using it to buy everything, then immediately paying it off. Assuming I only use it to buy things I can afford (which I trust myself to do), essentially treating it as a debit card, is this a good idea? Or should I wait until I'm a bit older?   Assume that I will only spend money I have in my bank account at the time I spend it and that I will keep track of how much I spent and never spend more than I have.  Joe Taxpayer recommended I post an update: I ended up getting a card, and from my perspective the only thing that's changed is that it takes things ~24 hours to show up on my statement and I don't have to enter a PIN when I checkout. Should I add this to the question? I know on other SE sites people generally don't like updates in the questions


I've just heard     your sister is waiting on you   with the meaning of wait for (as in wait for the bus).  Up to now I had only encountered wait on with the meaning of attend to / serve.   Is this use of wait on instead of wait for widely spread in the English speaking world or more specific to certain geographical areas? In the sentence I'm quoting above, and without further context, could there be any ambiguity as to the meaning?


How to transfer save data into a new ps3 when the old one is not working?

I am well aware of the PS3's built in backup system and the cloud backup for PS plus users (not my case). Unfortunately, that's not an option for me, as my old PS3 bricked beyond repair, and i don't see a lot of advantage in getting a new one if i can't have my old save files back. I'm told if i just try to slide in the old hard drive the console will prompt me to format the drive, due to the host console exclusive encryption. I'm not desperate to save the games since i can re-download them, but the save files are really important for me.  has led me to believe a custom firmware would be the solution for this, yet i'm not too knowledgeable on this stuff, it would be my first time doing that sort of thing, and as far as googling went, installing a hybrid firmware or anything like that would be just the start of the process? I would appreciate very much a more thorough explanation as to how i'll be able to back up my data to a new PS3 using whatever method that doesn't require two working consoles.


How do I access other installed apps' info.plist in iOS programmatically?

I want to check the versions of other installed apps on my iPad from within my app. I know this information is stored in their info.plist files.  How can I access the plist of other installed apps programmatically?  My apps are not published on the app store, so private methods are acceptable.


I assume that if we had two people named Ben and Jerry who made ice cream together, then it would be Ben's and Jerry's ice cream, yes? Now if "Ben and Jerry" were the name of a company, then it would be grammatically correct to call it Ben & Jerry's ice cream, but are there any problems here with the name of the company in its current form in terms of English grammar?


The 74HC4051 Mux (spec is here: )  has 8 input/output pins labelled Y, one output/input pin labelled Z, three digital selectors S0, S1, S2, and an active-low enable pin E (bar).  That all seems perfectly reasonable.  There is also Vee which is labelled "supply voltage"  To test the mux, we set S0 = S1 = S2 = E = 0V Then we set Y0 = 3.3V, then 0V  Taking The documenation at face value we set Vee = Vcc = 3.3V When Y0 = 3.3V, Z = 3.3V, which seems reasonable.  But then when Y0 = 0V, Z = 1.4V???    If we set Vee = 0V, this does not happen, but why is it labelled supply, and if it's ground, why is it needed at all?


What does the "p" in the first column of ls -la stand for?

I know about l (link) and d (directory) in the first column of the ls -la output. Very recently I have seen an p. What does it stand for? Example (I ommited some lines of the output as they have guid-like contents): user@user-ThinkPad-T440s:~/.zoom/data$ ls -latr [......] prw-r--r-- 1 user user      0 Mai  2  2020 com.zoom.ipc.assistantapp__res [......] drwx------ 2 user user   4096 Dez  7 19:49 ConfAvatar -rw------- 1 user user  35840 Dez  7 20:22 zoommeeting.enc.db prw-r--r-- 1 user user      0 Dez  7 20:23 com.zoom.ipc.confapp__req drwx------ 8 user user   4096 Dez  7 21:08 .. prw-r--r-- 1 user user      0 Dez  7 21:08 com.zoom.ipc.confapp__res -rw------- 1 user user 109568 Dez  7 21:08 zoomus.enc.db prw-r--r-- 1 user user      0 Dez  7 21:08 com.zoom.ipc.assistantapp__req drwxrwxr-x 4 user user  20480 Dez  7 21:08 . user@user-ThinkPad-T440s:~/.zoom/data$


I was asked to do a large banner with the size of 46in x 81in and the only other information I was given with this project is that it would be printed at 300dpi.    What size and resolution document should I produce and how did you calculate this?  What type of information should I request the next time I am designing for a large print? This image will include a collection of multiple smaller raster images, whats a good way to make them look good blown up?   Edit: I apologize for not being very clear. I guess my question is if I am producing an image that needs to fit on a 46x81 space should I be designing an image that is 46x81 or a smaller image that matches same aspect ratio?


If $ \lim_{x \to + \infty} f'(x) = + \infty $, then $ \lim_{x \to + \infty} f(x) = + \infty $

$ f $ is a differentiable function on the interval $ [a, + \infty) $ with $ a \in \mathbb{R} $  Prove that if $ \lim_{x \to + \infty} f'(x) = + \infty $, then $ \lim_{x \to + \infty} f(x) = + \infty $     $ f $ is a differentiable function on the interval $ [a, + \infty) $, so by the mean value theorem we have:   $ \exists c \in (a,x): f'(c) = \frac{f(x) - f(a)}{x-a}$  $\implies f(x) = f(a) + (x-a)f'(c)$  $\implies\lim_{x \to +\infty} f(x) = \lim_{x \to +\infty}(x-a)f'(c) + f(a) $  I don't know how to proceed to prove $ \lim_{x \to + \infty} f'(c) = + \infty $ because we have: $ a < c < x $. Thank you.


I recently moved all my music to a separate partion, moved ~/Music to ~/Music-bak and symlinked a new Music directory to the partition.   Nautilus updated the bookmarks to show "Music-Bak" under Computer. How do I tell it that "Music" is my real music folder?


Why does US Robotics destroy Lanning's house?

Shortly after the death of Dr. Lanning, Detective Spooner travels to the doctor's house to look for clues.  While he is searching the house a demolition bot (which had been programmed to demolish the house the next day) goes on a rampage and destroys the house with Detective Spooner in it.   The house is fully furnished and appears to be in good condition. Why would US Robotics want to destroy the house with everything in it? Why not sell the house and everything inside?


How do I copy a file larger than 4GB to a USB flash drive?

I am trying to copy a 6GB file to a USB flash drive but it won't copy.


How to write letter "K" as a full word correctly?

If I want to write for example "Mr. K". I don't want to use just a single letter. Should I write it like "Mr. Kei", "Mr. Kay" or "Mr. Key"?  Update:  Let us imagine there was somebody with name Mr. King given at birth. He doesn't like his surname, but he likes when others address him as "Mr. K". So, he wants to change his surname. But he doesn't want to use just a single letter - it is too short. So is "Mr. Kay" the right way for his purpose?


I'd like to use a smaller title. I'm using the scrartcl documentclass from the . I can change it's color font but not it's size.  \setkomafont{title}{\normalfont\bfseries\small}   Everything works exept the size.


I downloaded Landsat 8 imagery from Earth Explorer for a particular area.  I tried to get it with no cloud cover, but it did not show any results.  The least amount of cloud cover that I could get was 40%.  Is there a way that I can remove the cloud cover in ArcGIS for Desktop 10.5?  I have seen script on how to do it but I cannot figure out how to do it in ArcMap.  Does anyone know how you can remove cloud cover from Landsat imagery in ArcMap?


I'm getting a PCIE Bus Error: severity=Corrected, type=Physical Layout error on boot. I'm running Ubuntu 20.04 on an HP Pavilion laptop.  The steps outlined  didn't work. How can I fix this issue?


All-or-nothing placing of macro-generated text

Given a macro  % bold task titles \newcommand{\mypar}[1]{{\bf #1:}}  %task decription template \newcommand{\task}[3]{     \mypar{#1} #2 \\     \emph{Solution:} #3\\ }   I should like for the text generated by a task macro to be an atomic unit. I.e. it either fits entirely into the space left on a page or all of it (and everything following it) is pushed to the next page.  What can I do to this macro to enforce this?


At the end of Guardians of the Galaxy we see Rocket take a twig of Groot and propagate it as a cutting.  Why stop at one? Why not grow an entire  forest of Groots?


Let $X$ a space; and $Y$ is a dense subset of $X$. However there may be some subset $Z$ of $Y$ such that $Z$ is also dense in $X$. Now I want to delete some elements of $Y$ which seem needless, so that I can make the new dense subset $Z$ of $Y$ be the smallest. How can I get it?  My idea is this: If there exists $y \in \overline{Y\setminus \{y\}}$, then delete $y$, because $Y\setminus \{y\}$ is also dense in $X$. However what should I do next step?  Thanks ahead:)


Why did I get a Nice Answer badge when the score is only 8?

Is it possible that the downvoter accidentally upvoted at first, earning me the badge? (And then changed it to a downvote as intended?) I don't think badges are removed if the score drops down again? But I thought badges were only awarded after the vote was locked?        for convenience.


List the selectors an instance of a class responds to

Is it possible to get a list of all the selectors that an instance of a given class responds to?


Bash: Why does this Brace Expression work this way?

this is a bash 4 specific question. I am somewhat familiar with the bash Brace Expressions and I have read the  but I do not understand how it actually works.  I guess it has to do with the  but I am not used to searching the bash source code to confirm it so my question is this:  Why does this echo {G..a} expand to   G H I J K L M N O P Q R S T U V W X Y Z [  ] ^ _ ` a


What is wrong with this proof of chain rule?

Let $U$ and $V$ be open subsets of $\mathbb{R}$. Let $f:U\rightarrow V$ be differentiable at $x_0$ and $g:V\rightarrow\mathbb{R}$ be   differentiable at $f(x_0)$. Then $g\circ f$ is differentiable at   $x_0$.   What is wrong with the following "proof" of the above fact:  $$(g\circ f)'(x)=\lim_{x\rightarrow x_0} \Big(\frac{g(f(x))-g(f(x_0))}{f(x)-f(x_0)}\cdot \frac{f(x)-f(x_0)}{x-x_0}\Big)=$$ $$\lim_{x\rightarrow x_0} \frac{g(f(x))-g(f(x_0))}{f(x)-f(x_0)}\cdot \lim_{x\rightarrow x_0} \frac{f(x)-f(x_0)}{x-x_0}=g'(f(x_0))\cdot f'(x_0)$$


How to solve the problem of PostgreSQL service doesn't start?

This is about Metasploit Framework.   root@kali:~# service postgresql start [....] Starting PostgreSQL 9.1 database server: main[....] The PostgreSQL server failed to start. Please check the log output:  2015-05-23 19:07:58 EDT LOG: database system was interrupted;  last known up at 2015-05-23 16:52:00 EDT 2015-05-23 19:07:58  EDT FATAL: could not open file "/etc/ssl/certs/ssl-cert-snakeoil.pem":    Permission denied 2015-05-23 19:07:58 EDT LOG: startup process  (PID 3466) exited with exit code 1 2015-05-23 19:07:58 EDT LOG:  aborting startup due to startup [FAILss failure ... failed! failed!   My first question is, PostgreSQL was working perfectly. What things triggered this problem suddenly?  Secondly, how to fix this?


How to know the release date of my BIOS version?

It's pretty easy to check the release date of BIOS version directly from the terminal emulator using a simple single command. So how to do that?


Find a Borel subset satisfying the condition

Let $\alpha \in (0,1)$. Find a fixed Borel subset $E$ of $[-1,1]$ such that  $$ \lim_{r \rightarrow 0^+} \frac{m(E \cap [-r,r])}{2r} = \alpha $$    I think it is the trickiest problem for studying Lebesgue measure Differentiability. Firstly, I came up with setting $E = [-\alpha r, \alpha r]$, but it does not meet the condition of ''fixed'' subset. It is so tricky that even my TA said this problem is "hard as hell".   Anybody can suggest any idea?   Thanks in advance.


Short sci-fi story, involves an exotic drink made from the tears of tortured aliens

May have been part of a sci-fi war collection. The narrator is an alien itself, I think, and is part of a rebellion to overthrow  human oppressors, but then is horrified that his fellow aliens have developed a taste for the same drink.


Let f : [a, b] → R be continuous. Assume that there exist constants α and β such that ∀c ∈ [a, b], we have α$\int_a^c$f(x) dx + β$\int_c^b$f(x) dx = 0. Show that f = 0. I guess there is a mistake in the question since if α and β = 0 , then the condition is satisfied but the fuction need not be zero function. If α $\ne$ 0 and β $\ne$0, I think f = 0. But I can't prove it. Please give a hint


As many of you I rely on the bash autocomplete for speed; type in a few letters, tab, and you're ready. Recently I had to install some packages on a server and they screw up my workflow because the commands are similar to service which I use to autocomplete a lot. So now whenever I type ser + tab I get a ding and while it might seem a very minor issue, the annoyance is growing fast. Sadly I can't just remove said packages that interfere because, well, the application needs them to run. Is there anyway I can "skip" these in autocomplete?


QGIS 2.8 problem accessing GRASS commands

QGIS 2.8.1 Win7 64 bit installed with osgeo4w-setup.  I’m trying to run GRASS commands on a LIDAR raster layer but I get the following message:     Missing dependency.... GRASS not installed in your system` message each time.   GRASS appears in the processing tools pane and the “Processing options” for GRASS shows the Msys and GRASS folders locations correctly (which was a problem for a similar questioner). I note that GRASS has been 7.0 stable since mid February but osgeo4w-setup only shows GRASS 6. All manuals refer to a ‘GRASS plugin’ but none seem to be listed now.   Is there 'best-practice' way of installing GRASS functionality in QGIS 2.8 on Windows7 64 bit?  As a supplementary question is it possible to install a GRASS add-on that is not part of the core GRASS setup (I need  for LIDAR visualisation of archaeological features)?


Short story: alien disguised as human, can't fool job recruiter

The synopsis I remember is: there is a job recruiter (I believe) that is able to identify an alien that looks like a human and after talking with the alien for a bit the alien heads out to perfect his mannerisms and such and comes back a while later (a few months?) and is recognized again


When I use the \tableofcontents macro in a document where the etoc package is loaded, latex pauses and reports an error. If I let the compilation continue a well formed pdf is generated.  Minimal example that can reproduce the error on my machine.  \listfiles \documentclass{article} \usepackage{etoc}  \begin{document} \tableofcontents \end{document}   Output from pdflatex on the minimal example.  This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded format=pdflatex)  restricted \write18 enabled. entering extended mode (./mwe.tex LaTeX2e <2018-04-01> patch level 4 (/usr/local/texlive/2018/texmf-dist/tex/latex/base/article.cls Document Class: article 2014/09/29 v1.4h Standard LaTeX document class (/usr/local/texlive/2018/texmf-dist/tex/latex/base/size10.clo)) (/usr/local/texlive/2018/texmf-dist/tex/latex/etoc/etoc.sty (/usr/local/texlive/2018/texmf-dist/tex/latex/tools/multicol.sty)) (./mwe.aux)  ! Package inputenc Error: Unicode character  (U+200E) (inputenc)                not set up for use with LaTeX.  See the inputenc package documentation for explanation. Type  H <return>  for immediate help.  ...                                                l.6 \tableofcontents                         ? R OK, entering \nonstopmode...  ! Package inputenc Error: Unicode character  (U+200E) (inputenc)                not set up for use with LaTeX.  See the inputenc package documentation for explanation. Type  H <return>  for immediate help.  ...                                                l.6 \tableofcontents  [1{/usr/local/texlive/2018/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] (./mwe.aux)   *File List*  article.cls    2014/09/29 v1.4h Standard LaTeX document class   size10.clo    2014/09/29 v1.4h Standard LaTeX file (size option)     etoc.sty    2018/02/23 v1.08n Completely customisable TOCs (JFB) multicol.sty    2018/04/20 v1.8s multicolumn formatting (FMi)  ***********   ) (see the transcript file for additional information)</usr/local/texlive/2018/te xmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb></usr/local/texlive/2018/tex mf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb> Output written on mwe.pdf (1 page, 16281 bytes). SyncTeX written on mwe.synctex.gz. Transcript written on mwe.log.


This is a somewhat bizarre question. My objectives are to understand the language design decision and to identify the possibilities of reflection in C++.   Why C++ language committee did not go towards implementing reflection in the language? Is reflection too difficult in a language that does not run on a virtual machine (like java)? If one were to implement reflection for C++, what will be the challenges?   I guess the uses of reflection are well-known: editors can be more easily written, program code will be smaller, mocks can be generated for unit tests and so on. But it would be great if you could comment on uses of reflection too.


Will the batsman be dismissed as caught is each of the below scenario:   If the ball hits the arm pad of the batsman and is caught by the fielder. If the ball hits the leg pad first, then hits the bat and is finally caught by the fielder. If the ball hits the bat first, then hits the umpire and is finally caught by the fielder. If the ball hits the bat first, then hits the batting partner and is finally caught by the fielder.


I have couple files on my disk only however something is eating most of disk space, how can I check and remove this unnecessary files?  Filesystem      Size  Used Avail Use% Mounted on udev            7.8G     0  7.8G   0% /dev tmpfs           1.6G  2.1M  1.6G   1% /run /dev/sda7        79G   56G   19G  76% / tmpfs           7.8G  8.4M  7.8G   1% /dev/shm tmpfs           5.0M  4.0K  5.0M   1% /run/lock tmpfs           7.8G     0  7.8G   0% /sys/fs/cgroup /dev/loop1       55M   55M     0 100% /snap/core18/1650 /dev/loop0      145M  145M     0 100% /snap/slack/19 /dev/loop5      141M  141M     0 100% /snap/gnome-3-26-1604/97 /dev/loop7       90M   90M     0 100% /snap/core/8268 /dev/loop9      1.0M  1.0M     0 100% /snap/gnome-logs/61 /dev/loop10     4.3M  4.3M     0 100% /snap/gnome-calculator/544 /dev/loop6       15M   15M     0 100% /snap/gnome-characters/375 /dev/loop12     141M  141M     0 100% /snap/gnome-3-26-1604/98 /dev/loop4       15M   15M     0 100% /snap/gnome-characters/399 /dev/loop2       55M   55M     0 100% /snap/core18/1279 /dev/loop13      90M   90M     0 100% /snap/core/8213 /dev/loop11     157M  157M     0 100% /snap/gnome-3-28-1804/110 /dev/loop14     3.8M  3.8M     0 100% /snap/gnome-system-monitor/127 /dev/loop15     3.8M  3.8M     0 100% /snap/gnome-system-monitor/123 /dev/loop16      45M   45M     0 100% /snap/gtk-common-themes/1353 /dev/loop8      4.3M  4.3M     0 100% /snap/gnome-calculator/501 /dev/loop3      174M  174M     0 100% /snap/skype/109 /dev/loop17     185M  185M     0 100% /snap/eclipse/40 /dev/loop19     181M  181M     0 100% /snap/spotify/35 /dev/loop18     135M  135M     0 100% /snap/slack/20 /dev/loop20     161M  161M     0 100% /snap/gnome-3-28-1804/116 /dev/loop21      45M   45M     0 100% /snap/gtk-common-themes/1440 /dev/loop22     182M  182M     0 100% /snap/spotify/36 /dev/loop23     1.0M  1.0M     0 100% /snap/gnome-logs/81 /dev/loop24     173M  173M     0 100% /snap/skype/101 /dev/sda1       646M   62M  585M  10% /boot/efi tmpfs           1.6G   20K  1.6G   1% /run/user/120 tmpfs           1.6G   52K  1.6G   1% /run/user/1000


How do I download Minecraft for free? Not online, it's a free download, how do I download it for free? I know a few games do not cost money. I tried to search for it but I couldn't find it.


IF statement how can i input a word from the keyboread not just a char in java

always getting an error how to fix this ((  if (Choice == 'Borrow' || Choice == 'borrow')  ))


Loop through files from current directory and subdirectories

I'm trying to loop through each files from current directory and subdirectories. But the problem is file names with blank-space are getting treated as separate files. How do I prevent that. I want to use for loop, here is my current code. for file in $(find . -type f -print) do     echo "$file"; done;


So let me start off by saying that I'm a complete beginner at Linux in general. I wanted to install Ubuntu along Windows 10 to learn slowly. I did this by booting off of a flash drive, but I made the mistake of thinking when it said it would replace everything, that it meant just on the flashdrive. So after managing to remove my entire OS (thankfully there was nothing important on my hard drive), I need windows back so I can sucessfully install Ubuntu on the side.   Now I have a windows 10 iso on a flash drive, and when I go to install it apparently, I somehow have a FAT32 hard disk now, which in result I get a prompt stating that I can't install windows to fat32.  I can't seem to find many articles on what to do because I'm unsure whether I have to completely wipe my HDD or if there's an easy solution to this. Any guidance someone can help me out with will be greatly appreciated!


Deciding to use class itself or class method

I just wondering which way is the most efficient (or pythonic) for accessing statically defined methods inside a method. Let me clear my question. class ExampleClass:     @staticmethod     def do_something():         pass      @staticmethod     def do_anohter_thing():         pass  I want to call do_something inside of the do_anohter_thing. Should I use @classmethod or the class itself(ExampleClass)? class ExampleClass:     @staticmethod     def do_something():         pass      @classmethod     def do_anohter_thing(cls):         cls.do_something()  or class ExampleClass:     @staticmethod     def do_something():         pass      @staticmethod     def do_anohter_thing():         ExampleClass.do_something()


A question on the proof of 14 distinct sets can be formed by complementation and closure

In Munkres, problem 20 of Section 2-6, it says that 14 distinct sets can be formed by complementation and closure. I see only five so far. Let f be the function of closure mapping and g be the function of complementation mapping. It is clear, f,g, fg,gf, and gfg are the 5 of 15 distinct sets. What are the rests? Was there any topological argument associated with it? How can I understand this intuitively and pictorially?


I'm new to overleaf and having trouble with something seemingly quite basic . . . having 'single' quotation marks show up in my document.  I am copy and pasting from Microsoft Word.   (I've look at related posts, but i'm still having trouble)  Here's my MWE:  \documentclass[twocolumn]{article}         \usepackage{graphicx}  \newcommand{\rvec}{\mathrm {\mathbf {r}}}  \usepackage{graphicx} \usepackage{subfigure} \usepackage{amsmath} \usepackage{xcolor} \usepackage{color, soul} \usepackage[symbol]{footmisc} \usepackage{booktabs} \usepackage{caption} \usepackage{tabularx}  \begin{document}  'these' don't work  \end{document}   Any suggestions are appreciated!  Thanks   Edit: I tried implementing @Bernard 's code, but didn't have any luck. Here's what I tried:  \documentclass[twocolumn]{article}     \newcommand{\rvec}{\mathrm {\mathbf {r}}}  \usepackage{graphicx} \usepackage{subfigure} \usepackage{amsmath} \usepackage{xcolor} \usepackage{color, soul} \usepackage[symbol]{footmisc} \usepackage{tabularx} \usepackage{booktabs} \usepackage{caption} \usepackage{array} \usepackage[autostyle]{csquotes}  \newcolumntype{L}{>{\raggedright\arraybackslash}X}  \usepackage[utf8]{inputenc} \usepackage[british]{babel}   But it is giving me an error message: Any suggestions?


How to use ssh to transfer files from computer a to local computer

I am trying to get some files off of my school Linux account using ssh. I have got the connection to work using:  scp <school_server>: ~/folder I want ~/where I want to go.    But when it goes to transfer folder it gives me the message:  not a regular file    The file contains .java files, and I want the whole folder.


Why does scanf("%s") behave strangely with char*?

I was trying to solve   When i create a char * and pass it into scanf:  char* input = ""; scanf("%s", input);   It behaves . However, when i change the definition and initalize 1000 chars to \0:  char input[1000] = { '\0' };   It behaves properly. Why is it that way?


Getting the pattern back from a compiled re?

Assume I have created a compiled re:  x = re.compile('^\d+$')   Is there a way to extract the pattern string (^\d+$) back from the x?


Change cursor shape (or color) to indicate vi mode in bash

To clarify: I am not asking how to . I want the cursor to change when switching between input and command mode within Bash's vi-mode:  set -o vi <CR> type some text <ESC> (the cursor changes shape/color) i (cursor change back) etc...    I found  that makes changing color of the cursor on mode changes possible in zsh, but I don't want to change shells just for this one feature.  Is there a way to get the cursor to change shape, like in gvim, (or even just color) when switching between command and insert modes on the Bash command line?


I have it tamed, but it still doesn't follow me. It just walks away after I feed it.   I stayed away from it (about 10 or 5 blocks) and didn't move so it would come to me, I fed it fish and red hearts formed above, and after that, as soon as I started to leave it didn't follow me, or wear the collar or anything. Is that supposed to happen?


I have recently noticed a rather large amount of small worms in the fresh cod I am buying. I have tried to take them out as much as I can and of course have spoken to my fish supplier about them, but he assures me they are harmless. However, I don't believe my customers would be as assured. Is it okay to serve this fish, taking into account I might miss a worm or two?


Windows Update Still Hangs at Checking For Updates in Win 7

I have tried a number of these "solutions," yet I still have this issue. And I know this has been asked, but as I said, no suggested solution has worked. I have gone as far as running a Factory Restore on my system and STILL have issues.  The supposed work-arounds Microsoft has suggested don't even download.  Has MS actually ended Win7 support early? It's like getting a number nobody answers.  This is really frustrating.  (not that it matters, but SOMEONE will ask) Factory Shipped w/ Win 7 Pro SP1 Lenovo Thinkpad X1 Carbon Intel i7-3667U CPU @ 2GHz 8 G RAM 64-bit SSD  Tried running over WiFi and Gigabit Ethernet with the same results.  I can download and surf everywhere else. Ran Disk Cleanup from Safe Mode Tried downloading direct from MS, but nothing is downloaded. (I also find it crass they actually tell you to "run Windows Update" when that's what the issue is!) Even left my computer up with WU checking all night, nothing. Yes, I have run virus and malware scans. This is happening on a fresh "refresh," too. So...  Is this just Microsoft's chinsy way of forcing people to upgrade to 10?  Because it sure seems like it.  I've been working with this issue for over a week now, so you can understand my frustration.  EDIT:  This is marked as a duplicate but it is not.  I indicated I have tried all downloads from MS, none of which have worked.  The solutions suggested here have been tried too, so, posting this was a last-ditch effort.


Does Ramsay Snow actually do this to Theon Greyjoy?

In game of thrones, s03e07,      Theon is seen to be about to be sliced by Ramsay's men before the scene gets blurred.  In the succeeding episodes, there were no indications that Theon's manhood was really cut-off.  Is there any other parts in Game of Thrones that would prove that Theon's manhood was really cut off?


How to prevent Devel module to be installed on production environments

Using the new Drupal 8 Configuration manager, how can I prevent it from installing the Devel module on certain environments? As far as I know, installing it on my local means the next time I export the configuration and move it to my other environments (dev, test, prod), it will automatically be enabled.


I took a video from my Android phone (Sony Xperia P, if you need to know), and before I could stop recording it, the phone memory got full and the phone got hanged too. I rebooted the phone, the video was there, but I couldn't play it from any media player on Android. It's in mp4 format.    So I tried to open it on PC and Mac with different video player, like VLC, quick Time, Windows Media Player etc., but none of them can play it. I know that the video is corrupted, but I believe it's repairable, since it got more than a GB in size. Is there anything that I can try  to repair the video file? The video is really important.


The Play store link for the beta gives me a 404

I was invited to join the Stack Exchange Android App Alpha Testing group and accepted the invitation. I appear in the group members if I search but the link to the beta app in the Play store only gives me a 404.    Is there another step I'm missing?


By axiom of infinity, we have a set. By axiom of specification, we can create all of its subsets. By axiom of pairing and axiom of unions, we can create a set containing all of theses created subsets.   Example: Suppose a set $S$ has $a,b$ and $c$ as its only distinct subsets. (Well it isn’t possible, but for the time’s sake let it be. It is also applicable for correct number of subsets.) Now, by pairing we have $\{ a,b\}$ and $\{ c\}$. By pairing again, we have $\{ \{ a,b\} ,\{ c\} \}$. By union, we have $\{ a,b,c\}$.  We have thus constructed the power set of the given set.  Why then do we need axiom of powers?


Is there a way to enable the JavaScript Error/Debug Console for Safari within Android?

I'm developing a JavaScript application that needs to run on the Google Android Phone OS.  Is there a way to enable the JavaScript Error/Debug console within Safari on either the Android Emulator or an actual device?  If so any instructions on how to do so would be appreciated.


I was interested in studying whether or not if when we remove an arbitrary two edges from $K_5$, we get a planar graph. I understand that a planar graph has at most $3v-6$ edges, where $v$ is the number of vertices in the graph. Hence, given that $K_5$ has $\binom{5}{2} = 10$ and because it is apparent that $10 > 9 = 3(5)-6$, $K_5$ is obviously not planar. However, given the fact that this is not necessarily an "if-and-only-if" assumption on the bounds of the edges of a planar graph, I wasn't entirely sure if removing edges on a graph such that $E(G) \leq 9$ was going to be a simple solution. Is there an induced subgraph of $K_5$ that has $8$ edges and is not planar?


This is what I'm trying to do but my code is either not compiling or giving me an unexpected output "BC" instead of just "B".  #include <stdio.h>  void removeFirstAndLastChar(char** string) {     *string += 1; // Removes the first character     int i = 0;     for (; *string[i] != '\0'; i++);     *string[i - 1] = '\0'; }  int main(void) {     char* title = "ABC";     removeFirstAndLastChar(&title);     printf("%s", title);     // Expected output: B     return 0; }   I looked through a lot of answers here related to passing pointers by reference but none of them seemed to contain the operations that I want to do in my removeFirstAndLastChar() function.


Has sorting changed to show answer by asker at the bottom?

I have noticed lately that the answer sorting/ordering method has changed where if the user answered their own question that it now appears at the bottom of the answers rather than at the top.  I have found this rather annoying from a usability level as now what most likely is the most helpful answer is buried at the bottom when I am expecting it to be at the top. This has tripped me up recently when I thought the question didn't have an accepted answer and I was looking at "inferior" answers before I scrolled and noticed an accepted answer at the bottom of the page.  Doesn't making useful answers hard to find go against the sole purpose Stack Overflow was built?


Sometimes google passwords in chrome doesn't pop up to offer to fill a password or to save it. is there a shortcut?

Sometimes google passwords in chrome doesn't pop up to offer to fill a password or to save it. is there a shortcut or a way to make it come up?


Is there a video player for Linux that has thumbnail previews?

When watching videos on Youtube some of them display thumbnail previews when the mouse if hovered along them time line? The picture below shows the thumbnail of the video at 3:31.    Some Windows video players have them as seen in the answers for this question - , ie   Are there any Linux video players with this feature?


Are there rules of usage when using the ampersand "&" instead of "and"?  Are they completely interchangeable?   The ampersand seems more casual, but I'm not sure.


What are the other ways of tackling dementors?

In Half Blood Prince, we read      "Harry fully expected to receive low marks on his, because he had disagreed   with Snape on the best way to tackle dementors" - Chapter 21, The Unknowable Room.   Also in The Prisoner of Azkaban,     “There are — certain defenses one can use,” said Lupin.                               - Chapter 10, The Marauder's Map.   The only way that is specified in the books (7+3) for tackling dementors is to cast a Patronus.   Is there any mention (by Mrs. Rowling perhaps), of another way?  Or is there any piece of magic spelled out somewhere in the canon that we can infer, is effective at tackling dementors?


iOS 10.3.1 : can't add a Google account to iPhone ! (gmail + contacts)

I have an iPhone SE on old iOS 10.3.1 and I dont want to update it.  How do I add a Google account? This doesn't work:  There is a web popup (I can enter email + password, password is valid) but after that nothing happens.   No email account is added and I no longer have my contacts on my iPhone SE! Is Google blocking old version of iOS ?


How can I replace function of shutdown button with hibernate?

I want my PC to hibernate when I press shutdown (exactly shutdown button) but I don't know how can I modify something like registry or group policy to achieve my goal. Is there any way to do that?


What do imaginary numbers practically represent in the Schrödinger equation?

I know that the $i$ that appears in the Schrödinger equation, which is the imaginary unit, is used to solve problems that arise with roots of negative numbers. But what is the meaning of that negative root in that equation? Does it tell anything about the wave-function itself or is it something added just to make the LHS equal?


How does STAB work exactly, and how does it interact with the Technician ability?

A Pokemon which has the Technitian ability gets x1.5 boosted attack power for all moves used which have an attack power of 60 or less (so a move with 60 attack power will actually have 90 attack power). STAB (Same type attack bonus) gives a 50% boost to damage, assuming the attack has the same type as the Pokemon using it (so a Grass Pokemon using Razor Leaf will do 1.5 times the damage). However, I have seen contradicting information, so currently I do not know whether STAB boosts the actual damage or the move's attack power.  What I would like to know, first, is the precise manner in which a STAB is applied to an attack. Secondly, I would like to know what happens if an attack which would be affected by the Technician ability is also affected by STAB (though this answer might vary depending on the actual way that STABs work).  For example, my Scyther has the Technitian ability and attacks using the "Wing Attack" attack, which is a Flying-type attack with 60 attack power. Since Scyther is a Bug/Flying type pokemon he should also get a STAB for this attack, so just what is the eventual attack power/damage in this case?  (Please answer for 4th generation mechanics)


How to include the whole author name in IEEE bibliography?

In my bib library, the author is like "John, W.W.C", but when I make  bibliography with bibliographystyle IEEETrans, it comes out like "W. John". Could you help me out? Thank you.  The bib lirary is as follow:  @article{articletocite,  author={Jo, W.W.C. and Hu, J.},  journal={Journal} title={Title},  year={2014},   }   The tex file is as follow:  \documentclass[11pt, final, journal, letterpaper, doublecolumn]{IEEEtran} \usepackage{algorithm} \usepackage{algorithmic} \usepackage{graphicx} \usepackage{balance} \usepackage{caption} \usepackage{multirow} \usepackage{array} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsthm} \usepackage{subcaption} \usepackage{flushend} \usepackage{placeins} \title{Title} \author{Author} \begin{document} \maketitle \bibliographystyle{IEEEtran}  \bibliography{paper.bib} \end{document}


Microsoft has naming guidelines on their website (). Also I have the Framework Design Guidelines book.  What I could not find was a guideline about naming controls.  For example, a button, when dropped to a form, gets the typename + number, camel-cased as default name, such as "button1".  This is what I do: I delete the number and add a meaningful description after. For example "buttonDelete" or "buttonSave".  This way you do not have to maintain a big list of controls and their abbreviated names in a guideline somewhere.  Do you agree?


What is the equivalent of R's levels() function in C# (can be with linq-to-sql)?

I am performing a query in an database using linq-to-sql to retrieve a DataTable in C#. Now, in this DataTable, I want to find how many categories I have in a specific columns. Let's say the column's name is "Variable" and the values for the different rows would be for example:  ["a", "a", "a", "b", "b", "c", "c", "c", "c"]   I just want to know what categories this column contain. So in this case that would be the categories "a", "b", and "c".   This would be done easily in R using levels(DataTable$Variable).  But how to do that in C# ?  Thanks


Adapting a Vape box to run off a 12V car battery

Hello, I'm trying to adapt a vape mod so I can plug it in directly to my car cigarette lighter instead of using batteries. The device I'm using has a DNA 200 chip in it and according to the datasheet max input voltage is 12V and max amps is 23. According to a google search a car batter puts out around 48 amps. From my understanding the device will only draw as many amps as it needs or am I wrong? Could I connect the leads of my cigarette lighter adapter straight to the board or is there anything special I should do? Here is the full data sheet for reference.  Also I know it has a charge port on it. Problem is it charges to slow and I'm tired of messing around with batteries on long road trips.


Solve $\int_0^{+\infty} \Big(\frac{\sin t}{t}\Big)^2 \ dt$

$$\int_0^{+\infty} \Big(\frac{\sin t}{t}\Big)^2 \ dt=\frac{1}{2} \int_{-\infty}^{+\infty} \Big(\frac{\sin t}{t}\Big)^2 \ dt=\frac{1}{2} \Big\rvert \Big\rvert \frac{\sin t}{t} \Big\rvert \Big\rvert_2^2 $$    Plancherel theorem:  $$2 \pi \Big\rvert \Big\rvert f \Big\rvert\Big\rvert_2^2=\Big\rvert \Big\rvert  \mathscr{F}(f)  \Big\rvert\Big\rvert_2^2$$    $$p_2(x)=\begin{cases} 1 \qquad x \in [-1,1] \\ 0 \qquad x  \notin [-1,1]    \end{cases}$$  $$\frac{1}{2} \Big\rvert \Big\rvert \frac{\sin t}{t} \Big\rvert \Big\rvert_2^2=\frac{1}{2} 2\pi \Big\rvert \Big\rvert \frac{1}{2} \ p_2 \Big\rvert \Big\rvert_2^2=\frac{\pi}{2} $$    Is there any other method to calculate this integral?  Thanks!


How many lattice paths are there from $(0,0)$ to $(2n,2n)$ that avoids odd points

How many lattice paths are there from $(0,0)$ to $(2n,2n)$ that do not go through one of the points $(2i-1,2i-1)$ for $i=1,\dots,n$?   My idea is to count the number of total lattice paths one can take from $(0,0)$ to $(2n,2n)$. There are ${4n \choose 2n}$ such paths. Then subtract the number of paths that are not valid. In counting these, I reasoned that we must avoid the "odd points" inside the grid with height and width of $2n$. I counted the number of paths that take these of points to be ${4 \choose 2}^{n-1}{2 \choose 1}{2 \choose 1}$ with the reasoning that from $(0,0)$ to $(1,1)$, there are ${2 \choose 1}$ paths, similarly for $(2n-1,2n-1)$ to $(2n,2n)$. Now, there are a total of $n-1$ "odd points" we consider and the number of paths from say $(1,1)$ to $(3,3)$ is ${4 \choose 2}$, we consider $n-1$ such scenarios. But in comparing my result, it is wrong, I seem to be undercounting the number of invalid paths that I need to subtract from the total paths.    Edit: The result is expected to be the Catalan numbers of the form $C_{2n+1}$.  Edit 2: I've reworked the problem to make the first couple of terms match $C_{2n+1}$, by removing from the total number of lattice paths the invalid paths (a sum of all the possible cases by which we choose how many and which odd points our invalid path has gone through). It seems to be some recursive function, any ideas how to express this recursively?


Given that $X \sim \operatorname{Binomial}(n,p)$, Find $\mathbb{E}[X(X-1)(X-2)(X-3)]$.   It is suggested that I can transform it into  \begin{align} \mathbb{E}[X(X-1)(X-2)(X-3)]  &=\sum_{k=0}^n k(k-1)(k-2)\mathbb{P}\{X=k\}\\ &=\sum_{k=3}^{n+3} (k-3)(k-4)(k-5)\mathbb{P}\{X=k-3\}\\ &=\sum_{k=0}^n i(i-1)(i-2)\mathbb{P}\{X=i\} \end{align} But then I just have no idea about how can i do it. I suspect that it needs something similar to  but the steps are quite different from this one.  Please help.