How to hold SMD parts in place while soldering?

I go through this every time I have PCBs I need to populate with SMD parts, and this has become more an issue as pin spacings have gotten tighter, and my hands have become less steady with age.   So far I've modified some curved tweezers with a rubber band for grip tension, to help hold a component in place until 1 or 2 pins can be soldered. It works but it can be cumbersome. The clamping force needs to be very light, and it seems one slight tap with a sharp iron tip will still move it. I've also tried various glues, placing a pin drop of glue in the center of where a component would go.   That sometimes works, but all the glues I've tried either waste my time waiting for it to dry, or dry (skin over) too quickly when grabbing some more. Worse, too often even a pin drop of glue will spread onto the pads, and then I have to waste more time cleaning things up.   If I had my druthers, all SMD pars would come with peel off self stick backing. But anyway, suggestions would be welcome. It will be a long time and many test markets before anything I'm doing will be populated for me with pro pick and place machines.


Why do all my custom post types return a 404, even after resetting the permalink?

I have two custom post types setup like this:  add_action( 'init', 'create_post_type_News' ); function create_post_type_News() {     register_post_type( 'news',         array(             'labels' => array(                 'name' => __( 'News' ),                 'singular_name' => __( 'News' )             ),         'public' => true,         'has_archive' => true,         'supports' => array(             'title',              'editor',              'author',              'thumbnail'         )         )     ); }   when I try to view the page (/%postname%/ is used as permalink) I get the standard 404 message "Not Found Apologies, but the page you requested could not be found. Perhaps searching will help."  I've tried the standard fix:   set permalink back to default and save set permalink back to desired style and save   The page will show with permalinks as default but not customized.


From what I can gather, .desktop files are shortcuts that allow application's settings to be customized. For instance, I have lots of them in my /usr/share/applications/ folder.   If I open that folder in nautilus, I can run these applications just by double clicking its associated file, e.g. double-clicking firefox.desktop runs Firefox. However, I can't find a way to do the same thing via terminal.   If I do gnome-open foo.desktop it simply opens foo.desktop as a text file. If I make it executable and then run it in bash it simply fails (which is expected, it's clearly not bash script). EDIT: Doing exec /fullpath/foo.desktop gives me a Permission denied message, even if I change ownership to myself. If I make executable and do the same command, the terminal tab I'm using simply closes (I'm guessing it crashes). Finally, if I do sudo exec /fullpath/foo.desktop, I get an error reporting sudo: exec: command not found.  That's my question, how can I run a foo.desktop file from the terminal?


Atwood's machines: acceleration of massless pulley

I have a question regarding Atwood's machines. Consider the following machine and text accompanying it:       The tension in the short string connected to $m_1$ is $2T$ because there must be zero net force on the massless left pulley, because otherwise it would have infinite acceleration.    My problem is that I don't see why the net force on the left pulley must be zero, since it means that the acceleration of the left pulley must be zero, although it clearly is moving upwards (and thus accelerating) when the mass $m_2$ is accelerating downwards.


How can I reproduce the same mesh many times 9000 (seriously)

So, I'm working on a project where I have to create a front panel of an LED light. The front layer is made up of little diamond shaped surface, the light passes through this, and these tiny diamond shaped front panel helps illuminate and spread light evenly across. Anyway, the problem I'm having is that I tried the easiest way i know to create this panel, which is to make it using a plane mesh, and duplicating it. However for the size I needed, I ended up with over 9000, yes over 9000 (9435) separate duplicates put together. It has the look I want, but its impossible to edit or render it out because there is obviously too many of them and blender keeps freezing. So I'm stuck. How can I fix this without blowing up my PC. If anyone knows an alternate way to create this, please help me! :> I would really appreciate it.


Can't upgrade using a liveUSB, through the newer version is recognized

I run a 13.04 on one of my laptops, now someone brought me the 13.10 iso image (I work in rural Africa), yet upgrading to 13.10 didn't work:   I created a liveUSB I rebooted from it Chose "Install 13.10" I could see the option "upgrade from 13.04 to 13.10", but couldn't select it.   Parallel-installation is not an option, to be frank. Any ideas?


Does a PhD thesis have to be theoretical?

I already asked  in the past about the requirement to join a PhD program, but I am now wondering what makes a PhD thesis what it is. As seen on a lot of different websites and for example on , one of the goals of a research thesis is to contribute to human knowledge by researching and documenting said research.  My personal goal is to contribute to human knowledge, and I feel like some researches in computer science (from different offers and thesis I saw) don't create knowledge, but are rather focused on creating a product that could as well be developed by any company with a research and development field. Because of this, I have trouble visualizing if there is really a knowledge creation in those PhDs, as I feel like those are not in a "science" related field but rather in a technical field (even though it's in the name "computer science").  Just to be clear, I'm not in any case questioning the benefit those research made, I think I am misunderstanding something in what a PhD is, and want clarifications to make sure I'm joining a PhD program with the right state of mind.   Does a PhD thesis have to be theoretical ? If not, what is the benefit of developing a technical product in a academic environment rather than in a private environment ? (for both the doctorate and the academic world)


How far back in time could I travel and still be understood?

I have seen several times on TV documentaries where the presenter is taken to something like a library archive, and shown a book which they proceed to read an excerpt from.  On a couple of occasions the camera has shown the text they were reading and generally I have thought that I would struggle to read the words because of how the letters were formed (e.g. , or ).  This got me to wondering about how pronunciation and sentence formation may have changed over time as well, and how far back in time could I travel and still be understood while speaking my "modern" English in England (while obviously not talking about modern concepts like mobile phones or space travel)?


getting blank page after submiting form PHP MYSQL

I am currenlty making a forum website for my uni assignment and trying to insert topics into a subcategory. It keeps bring me to a blank page after pressing submit. the url is  for the blank page, it also doesnt end up importing the data into my database     <?php             if (isset($_SESSION['username']))             {                 echo "<form action='/addnewtopic.php?cid=".$_GET['cid']."&scid=".$_GET['scid']."' method='POST'>
Title:
                 <input type='text' id='topic' name='topic' size='100' />
Content:
                 <textarea id='content' name='content'></textarea>
                 <input type='submit' value='add new post' /><form>";             }             else             {                 echo "
Please login first or click here to register.
";             }         ?>       <?php     session_start();     include('db_connection.php');      $topic = addslashes($_POST['topic']);     $content = nl2br(addslashes($_POST['content']));     $cid = $_GET['cid'];     $scid = $_GET['scid'];      $insert = mysqli_query($conn, "INSERT INTO topics (category_id, subcategory_id, author, title, content, date_posted)                    VALUES ('".$cid."', '".$scid."', '".$_SESSION['username']."', '".$topic."', '".$content."', NOW());");      if ($insert)     {         header("Location: topics.php?cid=".$cid."&scid=".$scid."");     } ?>


Why can't I flag a comment that I upvoted but that has outlived its purpose?

I upvoted this comment (of necessity, one made by someone else):      because at the time, it applied usefully to a comment by another user.  The other user took a hint and deleted their comment, making this comment obsolete.  However, I can't flag it as obsolete (or anything else) because I upvoted it.  Isn't that a bug of sorts?  Comments can need flagging when circumstances change, even if you upvoted them before the circumstances changed?    I observe that the  FAQ specifically states that you can't flag comments that you've upvoted or upvote comments that you've flagged (indeed, it says so twice), but there is no justification given for that design decision.  And the proposal put forth by this question is 'that design decision should be revisited for the scenario where you first upvote and later need to flag a specific comment'.  (The reverse direction — flag then upvote — doesn't give me cause for concern at the moment.)


I was about to vote to close as "too localized", but the changes in today's blog post just took effect. What do I do now? Here is the question:    This is clearly too localized, isn't it? This link won't be around forever, and if I have to go to an external page for the question to make sense, what good will this do anyone in the future?  Should these types of questions still be closed (or put "on hold"), and if so, as what?    For now, I voted "unclear what you're asking" since I think the OP should "add additional details to highlight exactly what you need", i.e. some code. I also left this comment:     Please post the relevant code so this will be useful in the future.   Is this the right approach?


Solvable and nilpotent groups, normal series and intuition

I'm reading Hungerford's algebra and I'm on Nilpotent and solvable groups chapter. Hungerford starts with:     Consider the following conditions on a finite group G:      i)   G is the direct product of its Sylow subgroups      ii)  If m divides |G|, then G has a subgroup of order m      iii) If |G| = mn with (m,n) = 1, then G has a subgroup of order m   This chapter comes after Sylow theorems, where we have seen that if $|G| = p_1^{\alpha_1}p_2^{\alpha_2} \dotsm p_n^{\alpha_n}$ there is a subgroup of order $p_i^k$ for $k \in \{0, 1, ..., \alpha_i\}$, but we can't guarantee more (take for an example $A_4$, it has subgroups of order 3 and 4, but there is no subgroup of order 6). So the question What kind of groups have nice subgroup structure? isn't that unexpected.   What was unexpected?     We shall first define nilpotent and solvable groups in terms of certain       ''normal series''of subgroups. In case of finite groups, nilpotent groups are   characterized by condition i) and solvable ones by condition iii).   Hungerford first gives definition of nilpotent groups in terms of ascending central series and definition of solvable groups in terms of commutator subgroups and then proves equivalences with i) and iii).  Conceptual jump between i), ii), iii) and definitions involving normal series is a little too big for me. I can't really see how someone could start thinking about i), ii), iii) and come out with normal series. I don't have a nice way to think about them and I would really be thankful if someone has a nice conceptual view about them, or several eye-opening exercises.


Order of $SL_2(\mathbb{Z}/ n\mathbb{Z})$

I've just left an exam of algebraic structures, and one of the questions asked to compute the order of $SL_2(\mathbb{Z}/ 5\mathbb{Z})$ (the 2x2 matrices with determinant $1$ over the field $\mathbb{Z}/ 5\mathbb{Z}$). The answer should be $120$, and a friend of mine could achieve that, but by methods of raw counting. My question is: Is there a way to compute the order of $SL_2(\mathbb{Z}/ n\mathbb{Z})$ for all $n$?  OBS: Although $120=5!$, I believe this is purely a coincidence.


Why is the edit link grayed out and retag link missing?

I was going to retag a question but it didn't have the link. Also the edit link was grayed out. It is 31 minutes old and I have they are there on other questions. What situations does this happen in?


How to completely reset Ubuntu and all installed applications to its original setting?

I have been using Ubuntu 14.04 LTS for some time now. I need to reset it to original state without reinstalling my Ubuntu. Is it possible??


Total number of solutions of an equation

What is the total number of solutions of an equation of the form $x_1 + x_2 + \cdots + x_r = m$ such that $1 \le x_1 < x_2 < \cdots < x_r < N$ where $N$ is some natural number and $x_1, x_2, \cdots, x_r, m$ are integers?  Also, what would be the solution in the relaxed case where $x_1, x_2, x_3, \dots, x_r$ could be equal?


I am coming from java, and I cannot figure this out. I am trying to concatenate strings to run a command with parameters using the system function, this is what I am doing, but it is not working:   system("command "+param1+" other stuff "+param3);


Why do some LED bulbs stay on when my dimmer is off?

The front room of our rented house has 8 down-lighter spotlights on one of those dimmers that you use a silver disc to turn on and off and supposedly dim. Beside the switch is another separate dimmer Switch, same type, that powers two dimmable other wall lights. Since being in, the lights seem to have their own mind, and on occasion, the main 8 will turn themselves fully on, then dim, then go off. We noticed that all the bulbs were 50w halogen. Even the TV remote with at times turn them all on. We changed all bulbs for 5w led bulbs. Now, we can turn them on, but turning off, a different bulb will stay on. Changes bulb each time we turn on or off. The bulbs are dimmable. Checked wiring and have attached how the two dimmers are wired. Any ideas please? House built in 80s. Oh, and the lights in question also have a remote (for varilight?) which seems to do bugger all.


How to remove blank lines from a file (including tab and spaces)?

I want to remove all empty lines from a file. Even if the line contains spaces or tabs it should also be removed.


Upgrade from Ubuntu 10.04 to Ubuntu 16.04.1 LTS

I have a laptop on which a friend installed Ubuntu 10.04, but I never really used it. Now I want to install the latest version and start using Ubuntu.   The update manager says that it is not supported at all. So, is it easier to uninstall Ubuntu 10.04 and then install 16.04.1 from scratch? I have no files of importance to save.    Any tips what is the best and quickest way of doing this? I am totally new to Ubuntu.


Can you help me proving this equality? $$|x|-|y|\leq |x-y|$$  I think that it's possible to give a too short proof if the things are written correctly.


Understanding the concept of Java being pass by value?

One of the most popular answers to one of the most popular questions in Java here reads:      Java is always pass-by-value. The difficult thing to understand is that Java passes objects as references and those references are passed by value.   So what does "Java passes objects as references and those references are passed by value." mean?   Does it mean that:  The memory location to which the original variable points is copied as the value of the new temporary variable? (if this is the case, all the changes made inside the function will be reflected in the original, right?)  If not, what does it mean?


Cannot add or update software in software center,

Having trouble with software center. it says Canceling but does nothing.  I get  E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/lib/apt/lists/ E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?   I tried a hard reboot and the problem still exists.   Thanks for your help


"...my passion for teaching and my knowledge of the English language makes me" or "...make me..."?

I am working on my resume. I don’t  know if I should use make instead of makes in this sentence.      I believe that my passion for teaching and my knowledge of the English   language makes me an ideal candidate for a teaching position at your   school


How do I uninstall Windows XP from my NTFS if I have Ubuntu installed there as well

Hello I installed Ubuntu 13.10 alongside Windows XP, Now that I never use Windows XP and I have almost no space for Ubuntu (I literally only have 136mb left) I would like to uninstall it from my NTFS and reallocate the remaining space on my NTFS drive to Ubuntu without damaging my Ubuntu installation.


Computing convex hull of points using shapely

I have a points shapefile and I want to compute the convex hull of the points using shapely, and output the result as a shapefile using Fiona.  Does anyone know how I can do that?  This is what I have tried:  from shapely.geometry import MultiPoint from fiona.crs import from_epsg shape = fiona.open('.cache/town_points/ny_points.shp') with fiona.open('.cache/mew.shp', 'w', 'ESRI Shapefile', shape.schema.copy(), shape.crs) as output:     for feat in shape:         ch_area = MultiPoint(shape).convex_hull         output.write(feat)


What is the relationship between the Target Framework and the Language Version?

In Visual Studio, when looking at the properties of a project, there are two things that seem similar.   One is the , and one is the .   I've read about it on the above links and understand that the language version dictates which C# language features can be used. However, I don't know how the target framework relates to this. If I can use all the new language features, what does the target framework actually do or change?  Other questions are about what features are associated with different language versions of C#, this one is about how the target framework and the language version are related. The duplicate questions are not the same as this one.


Show that there exists a sequence $\phi_n \in C_c^{\infty}(\mathbb{R}^n)$ such that $\lim_{n \to \infty}||\phi_n - f||_p = 0$

I would like to show that if $f \in L^p(\mathbb{R}^n), p \in [1, \infty)$ there exists a sequence $\phi_n \in C_c^{\infty}(\mathbb{R}^n)$ such that $\lim_{n \to \infty}||\phi_n - f||_p = 0$. I thought I would use the fact that $C_c(\mathbb{R}^n)$ is dense in $L^p(\mathbb{R}^n)$ but I don't know how to use it. Any helps would be appreciated!


For $E \subset \mathbb{R}$ and $\epsilon >0$, $\exists$ $(a,b)$ s.t. $\theta(E \cap (a,b)) \geq (1-\epsilon)|b-a|$ ($\theta$ Lesbegue Outer Measure)

In my notes this statement is left unproven. I want to show that for any measurable set $E \subset \mathbb{R}$ with $\theta(E)>0$, there exists an interval $(a,b)$ that covers $E$ arbitrarily closely. From the definition of the Lebesgue Outer Measure:  $$ \exists \bigcup_i(a_i,b_i) \supseteq E : \sum_i(b_i-a_i) \leq \frac{1}{1-\epsilon}\theta(E) $$  And then $\theta(E)=\theta(\cup_i E\cap(a_i,b_i))$, but I'm not sure this helps. Can anyone show me how to finish this off?


Let $A$ and $B$ be sets of positive real numbers. Let $A*B = [ab$ | $a \in A$ and $b \in B]$. Then $lub(A*B)=lub(A)*lub(B)$  I think this is true, but I'm not sure how to prove it, and have been trying it for a while now. Any hints or help would be appreciated.


Merge unallocated partition with ubuntu partition

This question has been asked multiple times, but I've tried this for three hours now and could not find a way that works for me. I have 68 GB of unallocated space on my disc and want to merge it with my Ubuntu partition (/dev/nvme0n1p7). I have dual boot Ubuntu 20.04/Windows 10. In Gparted, it looks like this:  However, the option for resizing the partition is greyed out in Gparted. I have read a few times that I had to boot a "live version" of Ubuntu and open Gparted there. But I don't have a CD or USB stick etc., which have been recommended all the time. I also don't want to delete partitions or things like that. Is there a simple way of doing this on Ubuntu or Windows?


Awesome WM can't seem to be able to find some programs in the right-click menu

Basically I can't find Skype or Spotify in the right click menu, where I can find all other applications I've installed.  I am looking for some way to be able to start them (even if it is through a search).   Note: I know I can start them from the console, but I am wondering if there is another way


How to use dice to randomly select from 10 choices?

Today I wanted to randomly select a number (0 to 9) using a six-faced dice.  Because a single dice roll would not be sufficient (7, 8, 9, 0 would be missed), I determined that more than one dice roll would be necessary:          First roll         1 2 3 4 5 6       +------------ S   1 | 1 2 3 4 5 6  e r 2 | 7 8 9 0 1 2 c o 3 | 3 4 5 6 7 8 o l 4 | 9 0 1 2 3 4 n l 5 | 5 6 7 8 9 0 d   6 | 1 2 3 4 5 6   The first dice roll determines the column, the second dice roll determines the row from which the random number would be taken.   Unfortunately, I encountered the same problem i.e. 7, 8, 9, 0 appear less frequently in the table. The number of dice rolls could be increased further, but the same problem would be encountered.  My question: what is the easiest way to select 1 item from 10 choices if I only have a six-sided dice?


Please help a complete noob with deniable encryption!

I am completely new to cryptography and am interested in encrypting two basic text strings into one encrypted text that can be accessed separately with two different keys (preferably using something easily accessible like 256bit AES). For example:  Text1= I like peanut butter  Key1= Password1  Text2= I'm allergic to peanut butter  Key2= Password2  Output: 5UniWN0MjkPvUbLImrQUP68W4tpwOBMp2nrDqV73xeY  This output is just Text1+Key1, but is there a way that I can get both to work simultaneously so if Key1 is used, Text1 is returned, but if Key2 is used, Text2 is returned?  From my understanding, this is called deniable encryption and I was wondering where I could find a generator.  Thanks so much in advance!


dpkg: error: reading package info file '/var/lib/dpkg/available': Is a directory E: Sub-process dpkg --set-selections returned an error code (2) E: Couldn't record the approved state changes as dpkg selection states A package failed to install.  Trying to recover: Setting up openjdk-11-jre-headless:amd64 (11.0.4+11-1ubuntu2~19.04) ... update-alternatives: error: alternative path /usr/lib/jvm/java-11-openjdk-amd64/bin/rmid doesn't exist dpkg: error processing package openjdk-11-jre-headless:amd64 (--configure):  installed openjdk-11-jre-headless:amd64 package post-installation script subprocess returned error exit status 2 dpkg: dependency problems prevent configuration of openjdk-11-jre:amd64:  openjdk-11-jre:amd64 depends on openjdk-11-jre-headless (= 11.0.4+11-1ubuntu2~19.04); however:   Package openjdk-11-jre-headless:amd64 is not configured yet.  dpkg: error processing package openjdk-11-jre:amd64 (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of openjdk-11-jdk-headless:amd64:  openjdk-11-jdk-headless:amd64 depends on openjdk-11-jre-headless (= 11.0.4+11-1ubuntu2~19.04); however:   Package openjdk-11-jre-headless:amd64 is not configured yet.  dpkg: error processing package openjdk-11-jdk-headless:amd64 (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of default-jre:  default-jre depends on openjdk-11-jre; however:   Package openjdk-11-jre:amd64 is not configured yet.  dpkg: error processing package default-jre (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of default-jdk-headless:  default-jdk-headless depends on openjdk-11-jdk-headless; however:   Package openjdk-11-jdk-headless:amd64 is not configured yet.  dpkg: error processing package default-jdk-headless (--configure):  dependency problems - leaving unconfigured Setting up openjdk-8-jre-headless:amd64 (8u222-b10-1ubuntu1~19.04.1) ... update-alternatives: error: alternative path /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/rmid doesn't exist dpkg: error processing package openjdk-8-jre-headless:amd64 (--configure):  installed openjdk-8-jre-headless:amd64 package post-installation script subprocess returned error exit status 2 dpkg: dependency problems prevent configuration of openjdk-11-jdk:amd64:  openjdk-11-jdk:amd64 depends on openjdk-11-jre (= 11.0.4+11-1ubuntu2~19.04); however:   Package openjdk-11-jre:amd64 is not configured yet.  openjdk-11-jdk:amd64 depends on openjdk-11-jdk-headless (= 11.0.4+11-1ubuntu2~19.04); however:   Package openjdk-11-jdk-headless:amd64 is not configured yet.  dpkg: error processing package openjdk-11-jdk:amd64 (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of default-jdk:  default-jdk depends on default-jre (= 2:1.11-71); however:   Package default-jre is not configured yet.   Version of default-jre on system, provided by oracle-java8-installer:all, is <none>.  default-jdk depends on default-jdk-headless (= 2:1.11-71); however:   Package default-jdk-headless is not configured yet.  default-jdk depends on openjdk-11-jdk; however:   Package openjdk-11-jdk:amd64 is not configured yet.  dpkg: error processing package default-jdk (--configure):  dependency problems - leaving unconfigured Errors were encountered while processing:  openjdk-11-jre-headless:amd64  openjdk-11-jre:amd64  openjdk-11-jdk-headless:amd64  default-jre  default-jdk-headless  openjdk-8-jre-headless:amd64  openjdk-11-jdk:amd64  default-jdk


I have a true/false question:  Every n × n-matrix A with real entries has at least one real eigenvalue.   I am thinking that this is true but I would like to hear other opinions.  Thanks


A word to describe a negative event that may take place in the future

I am looking for a word ( a compound word or phrase would be acceptable) that describes a negative event that may take place in the future. However, I was unable to find such a word in the prominent online thesaurus or dictionary. For instance, this year a number of countries the world over were forced to impose lock downs to stop the spread of the ongoing corona virus pandemic.  What word can be used to describe a negative event like the corona virus pandemic that may occur in the future? Sample Sentence: A _ like the 2020 corona virus pandemic might occur in the future. So I can fill that blank with the words negative event. A negative event like the 2020 corona virus pandemic might occur in the future. In place of the words negative event I am looking for a word that describes such an event that might occur in the future.


Javascript: Subtracting a whole integer from a integer with a decimal alters the decimal value?

The goal is to isolate the decimal value (with simply turning the integer into a string and splitting it).  To that affect I have:  var x = 1001.1; var roundedDown = Math.floor(x); // Produces 1001 var decimal = x - roundedDown;   The expected value of decimal should be 0.1 (1001.1 - 1001). But instead I get 0.0999999 recurring.  I have tried with Math.trunc as well but get the same results.  Would anyone know why this is?


I was thinking about this issue from time to time but I didn't know whether it really exists or just an speculation on my side until today when I woke up [!], I saw  downvoted (in the meantime I'll leave that answer unedited for the sake of discussion; note that this is just a sample. I'm not asking "how to deal with this specific answer." The question is completely general as it's nearly impossible to keep track of all of your answers to see whether they require updating or not). While the downvoter didn't explain a thing, I suspect the reason is that the answer is no longer applicable (It's one of the new features in iPhone OS 3.0). As we go to celebrate a long sequence of birthdays for Stack Overflow (hopefully!), we're going to see lots of answers become obsolete. How we're going to deal with this issue?


Why does my memory usage have high percentage in task manager but the memory shown being used by each program doesn't add up to anything high?

When I use Task Manager to see how much memory is being used, it says 76% memory. I have 8GB of ram. However when I add up all the memory being used by all the different processes, it doesn't add up to 8GB.  As seen in the gif above, the memory usage shown by each program in Task Manager does not add up to 6GB of the memory I have out of 8GB. If around 75% of memory is used, then the memory usage of all the processes, should add up to 6GB, right? What is going on and how do I fix it? I see that similar questions have been asked, but the questions do not fit my use case as they are asking different things to what my question is asking and their answers are not helpful.


How can I cd to an alias directory in the Mac OSX terminal without creating symbolic link

I used to be able to cd into aliases with my Mac. Today I was messing around with ~/.bashrc and ~/.bash_profile to make PostgreSQL work. After I restarted my computer it stopped cd'ing to aliases and after some research I figured I was not supposed to be able to do that from the beginning.   So I do not know how I was able to cd into aliases before or how I broke it (maybe a system update became valid after restart, I wasn't restarting for a while). I have only found the following answer on couple places .   I am looking for an explanation to what happened and a simple way of fixing it rather than modifying cd function itself. I do not prefer creating a symbolic link because it would be broken when I make a change in the actual file & I have many aliases to replace so it seems like a redundant work.   Note: Im still not able to cd into aliases when I undo the changes I made in ~/.bashrc and ~/.bash_profile, so this seems to be caused by something else or my changes triggered something once and it was enough for a permanent change.


Which noise reduction software has the best results?

Have you tried different software, compared the results and reached a conclusion?  I only used Nikon's DFine and Lightroom's noise reduction tool and found the results very similar. Lightroom's has the advantage of being just another retouch step, i.e. another step to the XML file and not a separated *-Edit file.


Why is "statistically significant" not enough?

I have completed my data analysis and got "statistically significant results" which is consistent with my hypothesis. However, a student in statistics told me this is a premature conclusion. Why? Is there anything else needed to be included in my report?


I recently got a new laptop, but when i downloaded and tried playing minecraft, it kept on crashing after trying to launch. It gave me his error report:  The game crashed whilst initializing game Error: java.lang.IllegalStateException: GLFW error 65542: WGL: The driver does not appear to support OpenGL  If required, I can post the full crash report and any other information you guys need.


Problem calculating sum of convergent series of $\sum_{n=2}^{\infty} \frac{1}{n^{2}-1}$

I was solving an exercise where I had to show that some series were convergent and then show that their result is the value in front of the equal sign.  $$\sum_{n=2}^{\infty} \frac{1}{n^{2}-1} = \frac{3}{4}$$  Proving it's convergent I did the following way  By "moving" the n to 1, $\sum_{n=1}^{\infty} \frac{1}{(n+1)^{2}-1} = \sum_{n=1}^{\infty} \frac{1}{n^{2}-2n}$, then applying the comparison criterion, since ${n^{2}+2n} \ge n^2$ for any n bigger or equal to 1 then $\frac{1}{n^{2}+2n} \le \frac{1}{n^2}$ for any n bigger or equal to 1. Since $\frac{1}{n^2}$ is a convergent p series(n's  exponent is bigger than one) then $\frac{1}{n^2+2n}$ is convergent too.  Now I'm unable to calculte its result. Any tip or solving this?


Difference between "." and "./" while setting the environment variables using export?

Please excuse me if I am not clear while asking questions. I will try my best to be very clear while asking questions.   While learning Embedded Linux, we are setting an environment for our project. We wrote a shell script to set the environment which is similar to this:  export PROJECT=example-sys export PRJROOT=/home/karim/${PROJECT} export TARGET=powerpc-linux export PREFIX=${PRJROOT}/tools export TARGET_PREFIX=${PREFIX}/${TARGET} export PATH=${PREFIX}/bin:${PATH} cd $PRJROOT   Saved the script as prjenv.sh. As I practiced running the scripts or any executable using ./xyz.sh or ./abc, I ran ./prjenv.sh and the shell did not complain but when I gave export -p to see if the variables were exported or not, I could not find them in the list.  Later I noticed, I was expected to use . prjenv.sh, after I ran the script, it set the environment variables.  May I know what is the difference between . and ./ and when to use which one?  Please let me know if you need more information.  PS: This is my first time working with Linux so I apologize if some of the technical terms I used are wrong.


Where should I post a question about finding free-to-use OS icons?

I have a question about where to find free-to-use OS desktop icons, and I am unsure what would be the correct Stack Exchange site to post it on.  On Software Recommendations it was OT. It's currently on Open Data () but likely to be closed soon.  Is there a Stack Exchange site for this kind of question? Perhaps Super User?


I am working on a simple shell script to change a file one.PDF to one.pdf. I have this file stored in a folder called Task1.   My script is in the same directory as Task1. Called Shell1.sh When I run it Task1 becomes Task1.pdf but the file inside one.PDF doesn't change. I need it the other way around but nothing I try seems to work I keep alternating between a syntax error, mv not being able to move because a resource is busy or just renaming the directory.   Can anyone tell me what I'm doing wrong?   #!/bin/bash #shebang for bourne shell execution echo "Hello this is task 1"  #Initial prompt used for testing to see if script ran #/rename .* .pdf *.pdf // doesnt work  #loop to iterate through each file in current directory and rename for file in Task1; do         mv "$file" "${file%.PDF}.pdf" done


Is it possible to load some package from a .sty file only if some option is selected?  (Naive approach \DeclareOption{something}{\RequirePackage{something}} doesn't work.)


Strict warning: Only variables should be passed by reference (node.tpl)

Hello im getting this error message and its relating to this code in my node.tpl. Could anyone advise me on how i can clean it up a bit to suit. thanks?   <?php print render(field_view_field('node', $node, 'body', array (  'label'=>'hidden',   'type' => 'text_summary_or_trimmed',   'settings'=>array('trim_length' => 150),   )));     ?>


Problem with URL path when I applied SEO friendly URL

I was working on PHP project and making SEO friendly URL Like, OLD : http://example.com/list_product?q=men-top-wear New : http://example.com/list_product/men-top-wear Here is my .htaccess file: RewriteEngine on Options -MultiViews  RewriteCond %{ENV:REDIRECT_STATUS} ^$ RewriteCond %{QUERY_STRING} ^q=(.*)$ RewriteRule ^list_product$ /list_product/%1? [R=301,L]   RewriteRule ^list_product/(.*)$ list_product.php?q=$1 [L]   RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^(.*?)/?$ /$1.php [NC,L]  It's working well but my link path has been changed to: http://example.com/list_product/images/logo.png But I need this to be: http://example.com/images/logo.png It adds list_product, but it's not working. Does anyone know why this is happening?


When flagging a question on mobile view, the pop-up becomes unusable. After choosing the first option and the content changes you can't see the rest of the options or submit.   Happens when there are no answers/few comments and the answer textarea is visible. The pop-up is forced behind the textarea.


Why does aptitude give me intel-microcode upgrades when I have an AMD processor?

I have a Supermicro AS-2022G-URF (H8DGU motherboard) with 2 AMD Opteron 6272 16C/16T 2.1GHz and an LSI MegaRAID SAS 2108 RAID controller currently running Ubuntu Server 14.04 LTS (scheduled to be upgraded to 16.04 this summer). Several times over the last year, when I have done aptitude update/upgrade, the intel-microcode package has shown up as one of the packages that will be installed. Since this server has AMD processors, not Intel, Why does aptitude offer this package? Is it in any way necessary for other reasons? Any ill effects from going along with aptitude on this?


How to invoke a function on an object dynamically by name?

In Python, say I have a string that contains the name of a class function that I know a particular object will have, how can I invoke it?  That is:  obj = MyClass() # this class has a method doStuff() func = "doStuff" # how to call obj.doStuff() using the func variable?


Determine useful predictors for logistic model

I have dataset at my disposal and I am suppose to run a logistic regression. What is the best way to determine which explanatory variables are useful and which are totally off? Is there any general rule or procedure to help me? Could you please share some guide for this? Is there any graphical way to determine this?  Thanks for help.  EDIT: I am looking for general and user-friendly way to do this, like some indications in plot of 2 variables. I am not looking for "technical" solution.


How can I set a dark theme in TeXstudio?

After perusing , I'm considering switching from TeXmaker (in which I use the preset "dark theme") to its fork, TeXstudio.  What I mean by "dark theme" is a dark background with suitable text colours, which, in my experience, is easier on the eyes than a bright background is. Here is an example:    TeXstudio doesn't seem to offer any preset dark theme, though, which means I have to customise all the colours/syntax-highlighting settings from scratch to get a dark theme even remotely usable. This can prove very time-consuming.   I'm aware this might sound a bit cheeky but,   if you are a long-time TeXstudio user, and you have fine-tuned the editor colours to get a visually pleasant dark theme,   please consider posting the relevant lines from your settings (.txsprofile or .tmxprofile) file as an answer below.  TeXstudio users who would like to use a dark theme could then build on your settings to fine-tune their own.


CentOS 6.4 does not seem to have patches for OpenSSL

Just wondering if anyone knows why CentOS hasn't released an update to OpenSSL? I have a 6.4 machine and updated openSSL but when I issue the "openssl version -a" it's showing 1.0.1e-30. However, if you run "rpm -q openssl | grep CVE-2015" or CVE-2014 it does not show the latest things that were discovered on the OpenSSL website like CVE-2015-0206 or CVE-2014-3571 (and there are many others).   Why has CentOS not issued a patched version for these things in OpenSSL in this case?  This is not looking for Heartbleed, but the latest issues with OpenSSL that have come out as of 01/08/2015 which are not in the changelog of CentOS's OpenSSL


why beamer requires multiple compilation to get slide numbers correct?

I don't actually have a real problem, but I'd like to understand why beamer requires multiple compilations to get the slide count right.  I'm writing a presentation, so I often add a new frame, write something, and then compile the presentation to see how it looks. But every time a new frame is added the total number of slides isn't updated, so the last slide shows a n+1/n label instead of n+1/n+1 as I'd expect(where n is the previous number of slides).  I've tried to search a bit but I couldn't find anything mentioning this behaviour.  Is this supposed to be the normal behaviour?  edit: I can reproduce this by doing the following steps:   Create a random beamer presentation(using a style that shows the slide count e.g. AnnArbor) with one frame Compile it Add a new frame Compile again and the last slide will show the described behaviour.


Recently I've bought Prison Architect, and I'm making a prison. I've built a canteen and kitchen and assigned prisoners to the canteen. The problem is, my prisoners won't go to the canteen to eat, even when the regime says it's time for them to eat. I don't know what to do anymore because they're all starving to death and starting riots.


what if matrix multiplications were commutative

Would that make things easier in any science if matrix multiplication were commutative? I mean are researchers working to find more exceptions to the general rule of matrix multiplication being not commutative? If not why?  Thank you for clearing my doubts


Blender 2.83.1 Most objects missing / incorrectly arranged in viewport but visable in render view

I believe that I was in the shading tab. I entered into editing mode to resize the plane. When I was done, I noticed that the plane was in a completely different location in the viewport mode and cut off in the corner. Also, most of the objects were not visible. However everything is still visible in render mode. The only things that I can get to show in the viewport are: the reference image, a piece of the camera, and the plane, but it's in the wrong position and also missing a corner. Copy of the project file:


How can you check if you are in a particular page in the WP Admin section? For example how can I check if I am in the Users > Your Profile page?

I'm building a plugin and I want to add bits of javascript in the admin head but only for certain admin pages. I don't mean pages as in a WordPress page that you create yourself but rather existing admin section pages like 'Your Profile', 'Users', etc. Is there a wp function specifically for this task? I've been looking and I can only find the boolean function is_admin and action hooks but not a boolean function that just checks.


Process a latex command if the current date is between two specified absolute dates

I need to process a latex command if and only if the current date is between certain months, say between april 15  and june 15 of any given year. I imagine it's possible with datetime.sty but all the examples on the web seem to involve relative dates (i.e., the date relative to the current day)  rather than absolute dates.   Also I want the conditioning event to depend only on the day and month and not on the year.      Is this possible?    Thanks very much.  I've added my own answer, which is not elegant, but works.   I didn't want to put it into a comment for obvious reasons.  \documentclass{minimal} \usepackage{datenumber} %#1-#2 is start month-day %#3-#4 is end   month-day %#5: do this if within the range %#6  do this if outside the range \newcounter{doIt} \newcommand{\doInDateRange}[6]{     \setcounter{doIt}{0}     \ifnum\thedatemonth>#1         \ifnum\thedateday>#2             \setcounter{doIt}{1}         \fi     \fi     \ifnum\thedatemonth<#3         \ifnum\thedateday<#4             \addtocounter{doIt}{1}         \fi     \fi     \ifnum\value{doIt}=2         #5     \else         #6     \fi } \begin{document} \doInDateRange{3}{20}{5}{22}{Your are within the date range}{You are outside the date range}\\ \doInDateRange{3}{22}{12}{31}{Your are within the date range}{You are outside the date range}\\ \doInDateRange{1}{1}{5}{22}{Your are within the date range}{You are outside the date range} \end{document}


How does Ubuntu flavor iso differ from a desktop package?

TL;DR: how does an Ubuntu flavor iso installation ( for example Lubuntu ) differ from installing a desktop package via apt-get ? (for instance sudo apt-get install lubuntu-desktop)  Context for the question:   Some time ago I answered a question on AskUbuntu , where I tested in virtual machine removing unity-desktop and installing ubuntu-gnome-desktop. That makes the boot logo ( plymouth ) change, desktop changes, different packages get installed (gnome-network-manager instead of network-manager , if I am not mistaken). It appeared that in effect I've switched to different Ubuntu flavor, even though I started out with the standard Ubuntu system. Hence the question: what differentiates the pre-made Ubuntu flavor iso from installing a package ? Is it all the same base underneath the hood or does installation from iso have specific configurations ? If it's possible to install a flavor via package manager, why then separate flavor iso's exist ? (obvious answer is user convenience, but I think there has to exist other reasons. Canonical is a business , and it makes not a lot of sense for a business to provide additional flavor iso , if a sysadmin or end-user can get the same thing via package manager by themselves).


I am getting a new Nikon D5100 (with 18-55mm VR Lens Kit). This is going to be my first DSLR. I wanted to get some tips from you guys on how to maintain it in the long term. I am getting a 52mm UV Protector Filter, as I read that it would do well to keep the lens clean.  Are there any precautions I need to take?  I would also appreciate if someone can suggest some reading material (paperback or online).


Integrated webcam not detected after update to 14.04

Yesterday I updated my Thinkpad T530 from Ubuntu 13.10 to 14.04 (both x64). Since then the integrated webcam is not working anymore. I tried to use it with Skype and Google Hangouts, but it says that no video device is found. I found some solutions but they did not work.  First thing I did was to check if the integrated webcam is activated in bios settings. Then I found this "" but I don't have any /dev/video* device.   Can anybody tell me what to do? Thanks.


Can "where" ever be used as the subject of a relative/adjective clause?

Here's the sentence that was confusing:  He went back to Santa Monica which was his hometown.   Why can't "which" be replaced with "where"?   "Where" can be used as a relative pronoun, but it's doesn't work here, despite Santa Monica being the noun described by the relative/adjective  clause. Why is this?   My theory is that this is because "where" cannot be the subject of the relative clause, that it can only the object, as in the case of:  He went back to Santa Monica where he was born.


Taking a specific character in the string for a list of strings in python

I have a list of 22000 strings like abc.wav . I want to take out a specific character from it in python like a character which is before .wav from all the files. How to do that in python ?


Python : Need help in installing it in ubuntu 12.04

Initially i installed python3.3 from source but then i removed and deleted the directory /usr/lib/python3.3. When I am installing using aptitude I am getting this error:  Unpacking python3.3 (from .../python3.3_3.3.1-1ubuntu5_i386.deb) ...  Processing triggers for man-db ...  Processing triggers for bamfdaemon ...  Rebuilding /usr/share/applications/bamf-2.index...  Processing triggers for desktop-file-utils ...  Setting up python3.3 (3.3.1-1ubuntu5) ...  python3.3: can't open file '/usr/lib/python3.3/py_compile.py': [Errno 2] No such file or directory dpkg: error processing python3.3 (--configure): subprocess installed post-installation script returned error exit status 2 Errors were encountered while processing: python3.3 E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: Setting up python3.3 (3.3.1-1ubuntu5) ...  python3.3: can't open file '/usr/lib/python3.3/py_compile.py': [Errno 2] No such file or directory dpkg: error processing python3.3 (--configure): subprocess installed post-installation script returned error exit status 2 Errors were encountered while processing:


SQL used memory exceed to its max memory

I have 32GB server running a SQL Server instance and  I have  set the max server memory to 22 GB which is 75% of the total memory. What is the reason for SQL Server to exceed its allocated max server memory setting? Here is the screenshot of of top 5 allocation list.  When I add all of this up it seems it is almost near to 22 GB. That is why I am wondering: What is the reason my SQL Server is utilising 81% of the server memory, instead of just 75% as per my configuration?


What is Starfleet protocol for disposing of an unclaimed body?

In the ST:TNG episode "Heart of Glory", an Enterprise away team rescues three Klingons from a battle-damaged, derelict freighter.  One of the Klingons soon dies from his injuries, prompting the two other Klingons and Worf to howl heaven-ward in the Klingon Death Ritual.  This exchange then happens:     Crusher: "Is there any special arrangement you'd like for the body?"      Klingon: "It is only an empty shell now.  Please treat it as such."      Crusher nods in agreement and understanding   What would she do with the body?


first off, please know I am not using this as a real world login it is purely for practice.  I am using PHP/MySQLi and I have attempted to implement prepared statements but I'm not doing it correctly.  Here is my working code with just mysqli_escape_string:  $host="localhost"; $username="login"; $password="password"; $db_name="database";   $link=mysqli_connect("$host", "$username", "$password", "$db_name")or die("cannot connect to server");   $tbl_name=temp_members;  // Random confirmation code to be sent in email $confirm_code=md5(uniqid(rand()));   //from signup.php $name=$_POST['name']; $email=$_POST['email']; $pwd=$_POST['password'];  $name = mysqli_real_escape_string($link, $name); $email = mysqli_real_escape_string($link, $email); $pwd = mysqli_real_escape_string($link, $pwd);  $pwd = password_hash($pwd, PASSWORD_DEFAULT);  // Insert data into temp_members $sql="INSERT INTO $tbl_name(confirm_code, name, email, password)VALUES('$confirm_code', '$name', '$email', '$pwd')"; $result=mysqli_query($link, $sql);   if($result){      //email     $to=$email;     $subject="(no reply)";     $header="from: Ben Pappas <mrbenpappas@gmail.com>";      // message      $message="Hello ".$name.", Thanks for signing up! \r\n";     $message.="Click on this link to activate your account: \r\n";     $message.="http://www.monger.us/verify/confirmation.php?       passkey=$confirm_code";      // send email     $sentmail = mail($to,$subject,$message,$header); }   Here is my (poor) attempt at PDO/ prepared statements:  $host="localhost"; $username="login"; $password="password"; $db_name="database";   $link = new PDO("mysql:host=$host;dbname=$db_name",$username,$password) or die("cannot connect to server");  $tbl_name=temp_members;  // Random confirmation code to be sent in email $confirm_code=md5(uniqid(rand()));   //from signup.php $name=$_POST['name']; $email=$_POST['email']; $pwd=$_POST['password'];  $name = mysqli_real_escape_string($link, $name); $email = mysqli_real_escape_string($link, $email); $pwd = mysqli_real_escape_string($link, $pwd);  $pwd = password_hash($pwd, PASSWORD_DEFAULT);  // Insert data into temp_members  $statement = $link->prepare("INSERT INTO $tbl_name(confirm_code, name, email, password)VALUES('$confirm_code', '$name', '$email', '$pwd')"; $statement->execute(array(     $confirm_code => 'confirm_code',     $email => 'email',     $name => 'name' )); $result = ($link, $statement);   if($result){  //email $to=$email; $subject="(no reply)"; $header="from: Ben Pappas <mrbenpappas@gmail.com>";  // message $message="Hello ".$name.", Thanks for signing up! \r\n"; $message.="Click on this link to activate your account: \r\n"; $message.="http://www.monger.us/verify/confirmation.php?    passkey=$confirm_code";  // send email $sentmail = mail($to,$subject,$message,$header); }   I am getting an error on the line the statement variable is being called with a message saying unexpected ";"  please forgive any obvious mistakes I am a padawan


LaTeX error in the LaTeX compilation while making pdf

I am using Winedt for my latex related work. Till compilation its good, but when I click on acrobat reader of dvi2pdf, it opens the pdf file but also show the following thing :    whats the problem. can anybody help me in fixing it. thanks for help


Can Ubuntu really run all Windows programs?

I recently stumbled over the Ubuntu for Tablets video, where Mark Shuttleworth presents how Ubuntu is going to look on tablets.  However, he said one thing that struck me at: . He said that Ubuntu could run "all Windows apps".  How does this work? Was he talking about Wine (which definitely can't run every Windows program) or did he mean something else?


I want draw     Here is my MWE using the code from      \documentclass{standalone} \usepackage{tikz}   \begin{document}  \begin{tikzpicture} \coordinate (p1) at (0.7,3); \coordinate (p2) at (1,3.3); \coordinate (p3) at (2,2.5); \coordinate (p4) at (3,2.5); \coordinate (p5) at (4,3.5); \coordinate (p6) at (5,4.1); \coordinate (p7) at (6,3.4); \coordinate (p8) at (7,4.1); \coordinate (p9) at (8,4.6); \coordinate (p10) at (9,4); \coordinate (p11) at (9.5,4.7);  % The cyan background \fill[cyan!10]   (p2|-0,0) -- (p2) -- (p3) -- (p4) -- (p5) -- (p6) -- (p7) -- (p8) -- (p9) -- (p10) -- (p10|-0,0) -- cycle; % the dark cyan stripe \fill[cyan!30] (p6|-0,0) -- (p6) -- (p7) -- (p7|-0,0) -- cycle; % the curve \draw[thick,cyan]   (p1) to[out=70,in=180] (p2) to[out=0,in=150]   (p3) to[out=-50,in=230] (p4) to[out=30,in=220]   (p5) to[out=50,in=150] (p6) to[out=-30,in=180]   (p7) to[out=0,in=230] (p8) to[out=40,in=180]   (p9) to[out=-30,in=180] (p10) to[out=0,in=260] (p11); % the broken line connecting points on the curve \draw (p2) parabola (p3) parabola (p4) parabola (p5) parabola (p6) parabola (p7) parabola (p8) parabola (p9) parabola (p10);%Changed % vertical lines and labels \foreach \n/\texto in {2/{a=x_0},3/{x_1},4/{},5/{},6/{x_{k-1}},7/{x_k},8/{},9/{x_{n-1}},10/{b=x_n}} {   \draw (p\n|-0,0) -- (p\n);   \node[below,text height=1.5ex,text depth=1ex,font=\small] at (p\n|-0,0) {$\texto$}; } % The axes \draw[->] (-0.5,0) -- (10,0) coordinate (x axis); \draw[->] (0,-0.5) -- (0,6) coordinate (y axis); % labels for the axes \node[below] at (x axis) {$x$}; \node[left] at (y axis) {$y$}; % label for the function \node[above,text=cyan] at (p11) {$y=f(x)$}; \end{tikzpicture}  \end{document}    I was trying to draw an illustration for Simpson's Rule, even if I changed -- to parabola here is what I got   Edited: From the diagram, it looks as if the (approximating)parabolas are determined by two points. How can I draw a parabola through three points.


Why does the reflected light have a specific direction?

If a light incident on a smooth surface ,then light reflects. Why does the reflected light goes in a direction such that angle of incidence and angle of reflection  to be equal and reflected ray be in the plane of incidence?  In short , why does the law of reflection hold true?  (I mean the plane of incidence here as the plane containing the incident ray and perpendicular to the surface of incidence)


Java How to return a boolean array without getting a weird output like [Z@4517d9a3?

All I'm trying to do is print the elements in a boolean array. But instead of getting the values of the elements which are either true or false, I get a weird output like this [Z@4517d9a3. I have read about the toString but this applies to string arrays. Here is my code : public class Class{       public static void main(String[] args) {                  boolean a[] =  {true, false, true, false};         boolean[] x = show(a);         System.out.println(x);      }          public static boolean[] show(boolean a[]) {                  return a;     } }


$\mathbb Z\times\mathbb Z$ is principal but is not a PID

I need to find an example of a ring that is not a PID but every ideal is principal. I know that $\mathbb Z\times\mathbb Z$ is not an integral domain, so certainly is not a PID, but here every ideal is principal. I already proved that if R and S are ring every ideal in R x S is I x J with ideals in the original ring. But I cant follow from that that $\mathbb Z\times\mathbb Z$ has only principal ideals.      Explicitly, if $I$ is an ideal $(a)\times(b)$ which would be its generator $(c,d)$ in $\mathbb Z\times\mathbb Z$?    Thanks.


How to bulk export MobileConnect SMS subscriptions?

Is it possible to automate a bulk export of MobileConnect subscriptions? I don't see much documentation on the matter.   Thank you.


To show that this matrix is a multiple of 4

8. Let $n\ge3$. Let $A=((a_{ij}))_{1\le i,j\le n}$ be an $n×n$ matrix such that $a_{ij}\in\{1,-1\}$ for all $1\le i,j\le n$. Suppose that $$a_{k1}=1\quad \forall1\le k\le n$$ $$\sum_{k=1}^na_{ki}a_{kj}=0\quad\forall i\ne j.$$ Show that $n$ is a multiple of $4$. Yesterday this question was asked in an examination. I could not solve this problem but intuitively this is correct. A proof is needed.


Windows 7 explorer doesn't use details view in folders with media

I use details as my default folder view, which works fine except for folders that only contain media files like photos or mp3. In these cases the view changes in order to show thumbnails etc. (which I also disabled).  How can I prevent this view switch and tell the explorer to stick to details view.


Where to find moderator replies related to declined flag?

A moderator contacted me today via a Comment on an Answer to say that I seemed not to have seen his reply to a flag of mine that he had declined.  Apparently, he had declined several similar ones from me.  I've looked into trying to find and read these moderator replies, now that my attention has been drawn to them, but have had no success.  The closest Meta posting that I could find was  which seems to suggest that a year or so ago they were not able to reply to flags.  If I want to see moderator replies to any of my flags where can I find them?


All I am trying to include a pdf image in my tex file, but when I compiled the tex file, the console pop up the following error msg:     ! LaTeX Error: Cannot determine size of graphic in time_elapsed.pdf (no Boundin       gBox).   This is my code:  \begin{figure} \centering \includegraphics[scale=0.5]{time_elapsed.pdf} \label{fig5} \end{figure}   So how to solve the problem?


Just wanted to get some other opinions.  I am currently having a discussion on how to go on a web environment.  We want to virtualize our web layer for a very active site.  However, there is a debate going on as to which is better.  More servers or more worker processes on the site.  Here are the two opinions.  I want to turn our 6 physical servers into 6 virtual hosts.  Run 10 VMs per host with 8 GB of RAM, 4 proc cores, and 2 worker processes on 1 application pool.  My coworker wants to run 2 VMs per host with 32 GB of RAM, 4 proc cores, and 10 worker processes on 1 application pool.  My thought has always been run fewer worker processes and more servers to increase performance because worker processes (in my experience) are not incredibly reliable.  Any thoughts would be great.  Thank you.


Windows 10 V1511 - Mounting External Encrypted Drive Error "The parameter is incorrect"

I don't normally use encrypted volumes on my Windows 10 Professional machine but needed to do so today.  I normally use the drive on another system that runs Windows 7 Enterprise.  I discovered this problem when I initially connected the drive and missed the Windows 10 toast notification to unlocked the drive.  On Windows 7 when you right-click on the drive, you get an option to "Unlock Drive..." which then displays a password prompt.  When I did this same action on my Windows 10 machine I got the following context menu:    When I attempted to Open the drive, I got the following error message:    This PC:    At this point, I disconnected the drive, connected the drive again, and unlocked the drive through the toast notification.  At this point, I want to know the reason I could not unlock the drive through Windows Explorer.  Why can I only unlock the drive through the toast notification?


I am a newbie to Java and I'm creating a chat client which can send and receive text. But I'm stuck here:   exception-at Netr$IncomingReader.run(Netr.java:88) at java.lang.Thread.run(Thread.java:745) java.lang.NullPointerException  The application terminates with a java.lang.NullPointerException when it's getting executed. Please help. Thanks in advance.  import java.io.*; import java.net.*; import java.awt.*; import java.awt.event.*; import java.util.*;  import javax.swing.*; public class Netr { JTextArea incoming; JTextField outgoing; BufferedReader reader; PrintWriter writer; Socket sock; JScrollPane qscroller; public static void main(String[]args) { Netr ab=new Netr(); ab.go(); } public void go() { JFrame frame=new JFrame("my first client baby"); JPanel panel=new JPanel(); incoming=new JTextArea(); incoming.setLineWrap(true); incoming.setWrapStyleWord(true); incoming.setEditable(false); qscroller=new JScrollPane(incoming); qscroller.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); qscroller.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); outgoing=new JTextField(20); JButton sendbutton=new JButton("Send"); sendbutton.addActionListener(new SendButtonListener()); panel.add(qscroller); panel.add(sendbutton); panel.add(outgoing); setupnetworking(); IncomingReader thef=new IncomingReader(); Thread abc=new Thread(thef); abc.start(); frame.getContentPane().add(BorderLayout.CENTER,panel); frame.setSize(400,500); frame.setVisible(true);}   private void setupnetworking() { try {     ServerSocket serversock=new ServerSocket(3311);     sock =new Socket("100.68.56.116",3311);     Socket sock1=serversock.accept();     InputStreamReader reader=new InputStreamReader(sock.getInputStream());     BufferedReader streamreader=new BufferedReader(reader);     writer=new PrintWriter(sock.getOutputStream());     System.out.println("newtorking established"); } catch(IOException ex) {     ex.printStackTrace(); } } public class SendButtonListener implements ActionListener {public void actionPerformed(ActionEvent ev) { try {     writer.println(outgoing.getText());     writer.flush(); } catch(Exception ex) {     ex.printStackTrace(); } outgoing.setText(""); outgoing.requestFocus(); } } public class IncomingReader implements Runnable { private BufferedReader streamreader;  public void run() {     String message;     try     {         while((message= streamreader.readLine())!=null)         {             System.out.println("read"+message);             incoming.append(message+"\n");          } }catch(Exception ex)     {     ex.printStackTrace();     }     } }  }


I was given the following problem.  In a conference where n representatives attend, if 1 of any 4 of the attendants shake hands with the other 3, prove that 1 of any 4 of the attendants shake hand with the rest of the n − 1 attendants.  I'm familiar with the handshaking theorem and most of its applications but I'm not sure how to show in every random group of four, one must shake hands with everybody else.  Thanks.


Which of the following sentences is/are incorrect? ("Permit" vs. "allow" vs. "let")

Which of the following sentences is/are incorrect? Why?   The visa permits you to study for two months. My father would never allow me to study English Let me to go. You're hurting me.   This is question from an English learning book. All the sentences seem right to me. Do you know which one is incorrect and why?


From: Philip Johnson-Laird , Stuart Professor of Psychology Emeritus at Princeton.    (Author isn't  a logician.)    . p. 44.       For premises that have several models, a single model consistent with   them—an example—establishes a conclusion about what is possible; but   all the models must be examples to establish a conclusion about what is   necessary. The opposite is the case for refutations: a single counterexample   refutes a conclusion about what is necessary, whereas all models must be   counterexamples to refute a conclusion about what is possible. And so we   should draw a conclusion about what’s possible faster than a conclusion about   what’s necessary, but we should draw a conclusion about what’s not necessary   faster than a conclusion about what’s not possible. This prediction is crucial for   a theory that takes possibilities as fundamental, and several experiments have   p. 45     corroborated it. One caveat, learned the hard way, is that it’s no use asking   adults whether something is possible if it's [Author's bungle. This ought be "its".] necessity is obvious. They baulk   at saying, “yes”, in these circumstances; and so inferences have to be hard   enough that when an event is possible its necessity isn’t obvious too. Here is   a typical trial from an experiment. The premises are about a game of one-on-one basketball in which two players take part:           [1.] If Allan is in [the game] then Betsy is in.     [2.] If Carla is in then David is out.            The participants were more accurate and faster to infer that Betsy could be in   the game than to infer that she must be in the game. If you list the possible   games compatible with the premises, you’ll discover that there are three games   and that Betsy is in all of them: Allan versus Betsy, Betsy versus Carla, Betsy   versus David.      I refer to the players by only their initials.    Why are A vs. C and A vs. D impossible?  How can you efficiently deduce the emboldened sentence, without applying 1 and 2 to each person separately in order (1st: Alan v. B, C, D. 2nd: B v. C, D. 3rd: C v. D)?


The font on a gold tag badge alert thing is not the correct font

I don't think that Times New Roman is the intended font, but if it is, then  I guess. I'm running Chrome 55.0.2883.87, Windows 10, and my JavaScript is V8 5.5.372.32.


Cannot add click event to dynamically appended list item in jquery

I tried what  question's answer says. This is my code:    $("document").ready(function() {   $("#add-receiver").on("click", function() {     $("#userlist").append("
user 1
");   });   $("#userlist li").on("click", '.userlist-item', function() {     alert($(this).text());   }); }); .top-heading {   font-family: 'Lobster', cursive;   font-size: 50px;   text-align: center; }  .input-boxes {   position: relative;   left: 35%;   top: 20px; }  .button {   position: relative;   left: 30px;   background-color: #4CAF50;   border: none;   color: white;   padding: 12px 20px;   text-align: center;   text-decoration: none;   display: inline-block;   font-size: 15px; }  input[type=text] {   width: 20%;   padding: 12px 20px;   margin: 8px 0;   box-sizing: border-box;   border: 3px solid #ccc;   -webkit-transition: 0.5s;   transition: 0.5s;   outline: none; }  input[type=text]:focus {   border: 3px solid #555; }  #userlist {   list-style-type: none;   width: 30%;   padding: 0;   margin: 0; }  #userlist li {   border: 1px solid #ddd;   margin-top: -1px;   background-color: #f6f6f6;   padding: 8px;   text-decoration: none;   font-size: 14px;   color: black;   display: block; }  #userlist li:hover:not(.header) {   background-color: #eee; } <!DOCTYPE html>      <title>Dashboard</title>   <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">         <link href="https://fonts.googleapis.com/css2?family=Lobster&display=swap" rel="stylesheet">

Welcome       <%= data.username%>

<input type="text" name="names" id="names" placeholder="Enter Receiver Name"><button class="button" id="add-receiver">Add Receiver</button>

<input type="text" name="names" id="message" placeholder="Enter Message"><button class="button" id="send">Send</button>

        First click on add receiver button. An item will be appended to userlist. As you click on this item, an alert should apper with the text of clicked item.  But my code doesn't work as expected. I couldn't spot any error. Please help me to get this thing working. Thank you!


Evaluating $\int_{0}^{\frac{\pi}{2}} \frac{\mathrm{d}x}{\sin^m x+\cos^m x}$

I evaluated the following integral: $$I=\int_{0}^{\frac{\pi}{2}} \frac{\mathrm{d}x}{\sin^8x+\cos^8x}$$ My Method: Divide up and down by $\cos^8x$ and substitute $t=\tan x$, so the integral converts to $$I=\int_{0}^{\infty}\frac{(1+t^2)^3}{1+t^8}\mathrm{d}t$$ I evaluated this integral by substituting $t^8=u$ and using the general result $\displaystyle \int_{0}^{\infty}\frac{u^{n-1}}{1+u}\mathrm{d}u=\frac{\pi}{\sin n\pi}$ this can be evaluated easily. However, I wanted to generalise this integral $$I(m)=\int_{0}^{\frac{\pi}{2}}\frac{\mathrm{d}x}{\sin^mx+\cos^mx}$$But the above method doesn't apply to any value of $m$. So what should be the approach for the above integral? We also know that $I(0)=\dfrac{\pi}{4}$, so maybe we could make a recurrence relation or perhaps, feynmann's technique...


How do I install Filmora video editing software on Ubuntu?

I want to install Filmora video editing software on my Ubuntu GNOME 17.04. How can I do that?


I have a output variable and 1 categorical predictor and 3 continuous predictors.  dat=data.frame(IV = rnorm(9), group=c("A","A","A","B","B","B","C","C","C"),pred1=rnorm(9),pred2=rnorm(9),pred3=rnorm(9))   What is the recommended way to add the dummy variable and how does the interpretation of the output change with these 2 setups?  If I do this and include a single column for the dummy variable     lm(IV~factor(group)+pred1+pred2+pred3, data = dat)  lm(formula = IV ~ factor(group) + pred1 + pred2 + pred3, data = dat)  Coefficients:    (Intercept)  factor(group)B  factor(group)C           pred1           pred2           pred3          -0.3143          0.9496         -0.3502          0.1839         -0.5349         -0.4710     In the case above the results the groupB and groupC coefficients are RELATIVE to groupA.  OR if I don't want the results to be relative I can include groupA like this:  dat2 = cbind(dat[,c("IV","pred1","pred2","pred3")], model.matrix(~ factor(dat$group) - 1) ) lm(IV~., data = dat2)  Call: lm(formula = IV ~ ., data = dat2)  Coefficients:          (Intercept)                 pred1                 pred2                 pred3  `factor(dat$group)A`  `factor(dat$group)B`  `factor(dat$group)C`                -0.6645                0.1839               -0.5349               -0.4710                0.3502                1.2998                    NA     I have a few questions:   How does the interpretation of the intercept change between the 2 models? Why in the last model is the GROUP C coefficient "NA"?


Is there already equipment that works like a modern lighter?

One of my players is trying to invent a lighter and I was wondering if anything like that existed.    I'm aware that in D&D 5E there are many different ways to make fire, the main groups I can think of are:   Magical Racial/Class abilities Mundane equipment   I am specifically interest in how to make fire mundanely. From reading through the PHB the only real fire starter I can find is the Tinderbox.  So what equipment is there in D&D 5e to light fires, or is that it?


Is there any way to configure the "feed" to report only certain specified tags?


(python regex) how to capture string between tags

python 2.7.6  sample document

               This is just simple sentence

   this html has many whitespace.  I want capture just "This is just simple sentence"  my regex

(.*)	   not working.  how to ignore whitespace and tabs?  please help me


I remove and add a lot of controls dynamically to a form. How can I redraw the GUI only once?   After each removing or adding of a control it is redrawn.


Conditional probability with Bayes' Rule

On a practice exam from statistics I encountered a very difficult exercise I couldn't manage to solve:    In the tent next to you there is a family with two children. Early in the morning you see a boy coming out of the tent. What is the probability that the other child is a girl?   Use Bayes' Rule    My approach to the solution was the following:   We assume $P(GIRL)$ = 0.5 and similarly $P(BOY)$ = 0.5.  We have to compute the following conditional probability: $P($One child is a girl| One child is a boy).  By applying Bayes' rule we should be able to compute this probability.  Bayes Rule: $P(A|B)$ $=$ $\frac{P(B|A)*P(A)}{P(B|A)*P(A) + P(B|A^c)*P(A^c)}$  Could anyone please help me with this, I tried many things but nothing worked out..


From this , I am certain that it is possible to view the past.   But then this interesting question came to me.  Is it possible to hear the past?  Ok, you might say, "Well, we are hearing the past, aren't we?" and go onto immense details about the speed of sound against the difference and stuff.  But what if I wanted to hear the sound of a place extremely close by days, weeks, months or even years back?  Would that be possible?


Here is my JUnit code for a test case of the cube root method I created that implements Newton's method:  @Test public void standardCase_negative64e9() {   double n = -64E9;   double result = csc143.newton.Roots.cbrt(n);   double delta = n * 1E-8;   assertEquals("Standard cube root -64E9", -4.0E3, result, delta); }   When I do the tests for all my test cases (using DrJave IDE) I only get a failure for this test case, and it reads:  Failure: java.lang.AssertionError: Standard cube root -64E9 expected:<-4000.0> but was:<-4000.0000000003124>   I feel this has something to do with my "delta" value (which is -640 in this case) because when I replace "delta" with 640 (instead of -640) in the assertEquals() method, I do not get a failure...


If integral of square of modulus of $f$ over $\mathbb C$ is finite, then $f \equiv 0$

Assume $f$ is entire and $\int \int |f(x+iy)|^2 dx dy < \infty$ , then show that $f \equiv 0$.  My approach was to notice that $|f|^2$ is a subharmonic function and then we can use the mean value inequality. Note that $$\int \int |f(x+iy)|^2  dxdy =  \int_0^{\infty} \int_{0} ^{2\pi} |f(re^{i\theta})|^2 rd\theta dr$$Now we know from subharmonicity $|f(0)|^2 \leq \frac{1}{2\pi} \int_0^{2\pi} |f(Re^{i\theta})|^2d\theta = \frac {1}{\pi R^2}\int_0^{R} \int_{0} ^{2\pi} |f(re^{i\theta})|^2 rd\theta dr$   As $R \rightarrow \infty$ , the rightmost term tends to  $0$ as we know $\int_0^{\infty} \int_{0} ^{2\pi} |f(re^{i\theta})|^2 rd\theta dr < \infty$, thus we have |f(0)| = 0. We could have chosen any $z$ in place of 0 and the argument would follow the same and thus we see $f \equiv 0$.   I was wondering if there is any way to get this result without the subharmonicity, I was trying to apply Liouville's but couldn't, if there is a simpler solution please let me know.


How to install scipy and numpy on Ubuntu 16.04?

I'm trying to install scipy and numpy on Ubuntu 16.04 but I keep getting the following error. Can anyone tell me how to install the dependencies?  Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  python-numpy : Depends: python:any (>= 2.7.5-5~)  E: Unable to correct problems, you have held broken packages.


I followed  to create a soccer ball.  Now I want to texture it in a way that every pentagon has an image inside itself and the exagons are white, but I also want everything to be a little glossy. I managed to successfully UV Map the ball and paint the texture in photoshop but now I am having big problems in applying the texture material to the mesh.    I've created a new material in Blender Render mode with Diffuse and the texture applied to it. I also set the Texture mapping to UV. I've gone in edit mode, selected all the mesh and applied the material. Unfortunately in Texture View Mode I see just a white ball and while rendering I see everything's black.      If I try to do this in Cycles Render and use a Mix Shader with the FAC set to the texture image I get what I want in the Texture View Mode but while rendering I just see everything black and white of my colored images.        I hope I've been clear enough and that someone will help me in this easy/difficult task! Thank you in advance


Proof that the gamma function is an extension of the factorial function

I've already proved that $$\Gamma (n)= (n-1)!$$  but I don´t really know what else to do to verify that $\Gamma$ is an extension of the factorial function for real numbers (positive) Thank you! And I´m sorry for my language, I am Spanish, so thank you again for trying to understand me.


Can I wear more than one enchanted piece of armor?

For example; a +5 chest piece, +5 gloves, etc. I don't have a 5e book to use anymore, I do have a 3.5 but I don't know if the rules have changed.


Should "Title Says It All" questions be edited or closed?

I see many questions with really long titles and bodies with nothing more than:     "Title says it all"   "See title. ~thanks~"   "In PHP. thanks!"   Examples (a couple I already edited):        I assume the "thanks" variants at the end are to get around a minimum length. Should these be edited or voted to close? If edited, how? Should I just repeat the title in the body?  It seems like a question that can fit entirely in the title is inherently low quality.  UPDATE: There's over 700 of just the "title says it all" pattern for anyone that wants to have fun editing these:


Is there a way to export query editor query results to a file?

Is there a way to export query results from the query editor in the developer console to a file?


Installing Teamspeak and creating TeamSpeak3 .desktop file

I am very new to Ubuntu and I want to create desktop launcher.  I have this in my TeamSpeak3.desktop in   [Desktop Entry] Name=TeamSpeak 3 Comment=TeamSpeak 3 VoIP Communicator Exec=/opt/TeamSpeak3-Client-linux_amd64/ts3client_runscript.sh Terminal=false Type=Application Categories=Network;Application; Icon=/opt/TeamSpeak3-Client-linux_amd64/styles/default/logo-128x128.png   in my ~/.local/share/applications/TeamSpeak3.desktop But I dont see it in my launcher and when I double click on it files, it just opens the text file. I even made it executable with     chmod +x TeamSpeak3.desktop  drwx------ 15 hung hung     4096 srp 16 12:29 . drwxr-xr-x  3 root root     4096 pro  9 19:22 .. -rw-------  1 hung hung   174627 srp 16 12:29 CHANGELOG -rwx------  1 hung hung   227136 srp 16 12:29 error_report drwx------  2 hung hung     4096 srp 16 12:29 gfx drwx------  3 hung hung     4096 srp 16 12:29 html drwx------  2 hung hung     4096 srp 16 12:29 iconengines drwx------  2 hung hung     4096 srp 16 12:29 imageformats -rwx------  1 hung hung   334520 srp 16 12:29 libc++abi.so.1 -rwx------  1 hung hung  1934744 srp 16 12:29 libcrypto.so.1.0.0 -rwx------  1 hung hung   746960 srp 16 12:29 libc++.so.1 -rwx------  1 hung hung  5842312 srp 16 12:29 libQt5Core.so.5 -rwx------  1 hung hung   484832 srp 16 12:29 libQt5DBus.so.5 -rwx------  1 hung hung  5683224 srp 16 12:29 libQt5Gui.so.5 -rwx------  1 hung hung  1335584 srp 16 12:29 libQt5Network.so.5 -rwx------  1 hung hung   290008 srp 16 12:29 libQt5Positioning.so.5 -rwx------  1 hung hung  3829280 srp 16 12:29 libQt5Qml.so.5 -rwx------  1 hung hung  3831288 srp 16 12:29 libQt5Quick.so.5 -rwx------  1 hung hung   234552 srp 16 12:29 libQt5Sql.so.5 -rwx------  1 hung hung   331232 srp 16 12:29 libQt5Svg.so.5 -rwx------  1 hung hung   117104 srp 16 12:29 libQt5WebChannel.so.5 -rwx------  1 hung hung 67570152 srp 16 12:29 libQt5WebEngineCore.so.5 -rwx------  1 hung hung   208344 srp 16 12:29 libQt5WebEngineWidgets.so.5 -rwx------  1 hung hung  6439120 srp 16 12:29 libQt5Widgets.so.5 -rwx------  1 hung hung  1334528 srp 16 12:29 libQt5XcbQpa.so.5 -rwx------  1 hung hung   180248 srp 16 12:29 libquazip.so -rwx------  1 hung hung    22936 srp 16 12:29 libsnappy.so.1 -rwx------  1 hung hung   111888 srp 16 12:29 libsrtp.so.0 -rwx------  1 hung hung   383072 srp 16 12:29 libssl.so.1.0.0 -rwx------  1 hung hung    51080 srp 16 12:29 libudev.so.0 -rw-------  1 hung hung     4340 srp 16 12:29 openglblacklist.json -rwx------  1 hung hung   260232 srp 16 12:29 package_inst drwx------  2 hung hung     4096 srp 16 12:29 platforms -rw-------  1 hung hung       26 srp 16 12:29 qt.conf drwx------  2 hung hung     4096 srp 16 12:29 qtwebengine_locales -rwx------  1 hung hung    19720 srp 16 12:29 QtWebEngineProcess drwx------  2 hung hung     4096 srp 16 12:29 resources drwx------  6 hung hung     4096 srp 16 12:29 sound drwx------  2 hung hung     4096 srp 16 12:29 soundbackends drwx------  2 hung hung     4096 srp 16 12:29 sqldrivers drwx------  3 hung hung     4096 srp 16 12:29 styles drwx------  2 hung hung     4096 srp 16 12:29 translations -rwx------  1 hung hung 18987008 srp 16 12:29 ts3client_linux_amd64 -rwx------  1 hung hung     1364 srp 16 12:29 ts3client_runscript.sh -rwx------  1 hung hung  2206064 srp 16 12:29 update drwx------  2 hung hung     4096 srp 16 12:29 xcbglintegrations


How to format/repair a write-protected USB drive with I/O errors?

I ordered a bunch of 1GB usb drives from a . Most of them work just fine, but a couple of them won't let me format them because they are "write-protected." There is no write protection switch on the device. I have exhaustively tried the following:   Windows format: "The disk is write protected" HP USB Disk Storage Format Tool: "Device media is write-protected" Changing registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies to 0 diskpart clear attributes readonly diskpart clean: "Diskpart has encountered an error: The request could not be performed because of an I/O device error. See the System Event Log for more information." (The System Event Log only contains the error: The IO operation at logical block address 0 for Disk 1 was retried.) : "Format Error occurred at offset 985,595,904:   1117 - Device I/O error" and hundreds of similar errors Sacrificing a lamb to the USB gods Starting in safe mode with command prompt and running format, diskpart, and chkdsk   So do all these I/O device errors mean that these USB drives are just totally screwed? Is there any way to get more information about the problem?


I have the true model set as $y = b_0+b_1 x+u$. Now supposing that I'm running the model without the intercept term,  Under what circumstances would the coefficient term in the model (without the intercept term) be an unbiased estimator?  Personally, I like this model choice because the conditional variance of my estimator is the most efficient (between the two model choices). Would this be a correct evaluation on my part?


Does something like  exist for topological (eg. braided) circuits?   Alternatively, any ideas on how @ is getting  (or something similar)?


What is the correct method to write measurements in English?

Should it be:  1KG or 1 KG?  1M or 1 M?  1PM or 1 PM?  1GB or 1 GB?  1Kmph or 1 Kmph?  1Kbps or 1 Kbps?  or anything else?


A committee of three boys and three girls is to be selected from a class of $14$ boys and $17$ girls. In how many ways can the committee be selected if the girls must include either Roberta or Priya but not both?  I did $(14 C 3) \times (15 C 2) \times 2 = 76,440$  However, the correct answer is $65,520$.   Any help is much appreciated, thanks in advance.


How to remove Wine program entries from the "Open With" list?

I have a seemingly simple problem that's been bugging me for a while now. I have installed wine at some previous point, and I am offered to choose from shortlist, when I right click a suitable program, to run it by Wine. However, there are newer versions available from the one that I am offered. I would like to uninstall this version, and instead use a new one. However, it is NOT installed as software package, which impedes solution. Where do I go from here?


I need to add a column to my table with the count of every occurrence of. So if the value is unique the column value should be 1, but if there is multiple copy i need a differente value for every row (1,2...) The database is postgres for example     id value count     1 a 1   2 a 2   3 b 1   4 b 2   5 b 3   6 c 1     database example


amsmath: When to use `equation` environment instead of `align`?

If one has only one equation in the align environment, that has basically the same effect as if one had used the equation environment. So, why should we ever use equation, given the greater flexibility of align in terms of handling multiple lines and alignment of equations?


What's the name of the "=>" operator in linq (e.g .Select(x=>x.Prop1) )

What's the name of the "=>" operator  (e.g in C# linq .Select(x=>x.Prop1) )  It might not even be an operator.  Does it have a different name in different languages (C# vs JavaScript)  Tagging as operator / C# / javascript - Not sure where this fits in...


Microcontroller is being restarted on function return

I have 8051 MCU and I use keil to program it with C. But in some functions when the function ends and it gets to the return line the MCU is restated. For example a piece of my code is   while(!ctsWentHigh)     {         radio_comm_PollCTS();     }   while returning  radio_comm_PollCTS()  the MCU is restarted. If I change the code to    while(!ctsWentHigh)     {         cstvals = radio_comm_PollCTS();     }   it works and the MCU is not restarted. But this solution does not work in all cases and some other functions return and reset the MCU. (not all of them)  I have a doubt that the problem might be for the tool chain integration   Linker settings  CODE REMOVEUNUSED CLASSES(BIT(0x20.0-0x2F.7), DATA(D:0-D:0x7F), IDATA(I:0-I:0xFF), XDATA(X:0-X:0xFFF), CODE(C:0-C:0xFBFF), CONST(C:0-C:0xFBFF))  compiler settings   DB OE BR Small OPTIMIZE(11, SIZE) DEFINE(SILABS_PLATFORM_WMB912) DEFINE(SILABS_WMCU_SI106x)  Assembler settings   XR GEN DB EP NOMOD51  Kindly help if you know the answer I am in urgent situation.  Thanks


How can I capture the movement of a bullet?

Just beginning with photography.    Consider this image:     (This photo was taken by Harold "Doc" Edgerton in 1964 using his Rapatronic camera.)  I am looking for a  camera that can capture such an image. I am not looking for more fps. less fps is fine, but it must be able to capture such an instance.   What features should I look in such a camera?  How fast should be the shutter speed? What other things I should look for?


Identify Click on browser close button for pop up message

I am trying to implement the functionality to confirm whether "Leaving the page" whenever the user tries to close the browser. As of now i have implemented,  function closeIt(e) {     // For IE and Firefox prior to version 4 if (e) {     e.returnValue = 'Sure?'; }   } window.onbeforeunload = closeIt;  This works fine for closing the browser, but instead works for all the links in the page aswell, as there is condition to identify what is causing the onbeforeunload event. Can anyone help me identify them.  Thanks in advance.


Google Search Results: sub-page description

I have a Wordpress site that successfully has 6 sub-pages listed below the main result in Google. However a page content snippet is showing up or each instead of the sub-page meta descriptions.  I have verified in the page source that the meta descriptions are being successfully inserted by my SEO plugin.  How can I define the sub-page descriptions?


Loading NetCDF file into QGIS, file is flipped upside down

I have a georeferenced NetCDF file that I am trying to load into QGIS (3.14). I can open the file and load it but the file always renders upside down. I am not sure if this is a problem with my NetCDF file (incorrect georeference) or if this is a bug with QGIS and the GDAL NetCDF driver. I have been able to successfully plot the NetCDF file with a few other programs (ncview, python+matplotlib+basemap) and it renders correctly, so I am thinking this is an issue with QGIS. Is there a way to tell QGIS how to treat the file? I have tried processing my file with gdal_translate and experimenting with -co WRITE_BOTTOMUP=YES and -co WRITE_BOTTOMUP=NO, as follows: gdal_translate -of netcdf -co WRITE_BOTTOMUP=NO NETCDF:"vegetation.nc":veg_class /tmp/OUTPUT_bu_no.nc  But in both cases the resulting file still loads upside down (and interestingly in both cases ncview then renders the file upside-down as well). I also discovered another option for the GDAL netcdf driver (), GDAL_NETCDF_BOTTOMUP=[YES/NO], but I am unsure how to send this option to QGIS when it opens the file? Here is the metadata for the netcdf file I am trying to load, perhaps someone can tell if the georeference info is incorrect: ncdump -h /<path to my file>/vegetation.nc netcdf vegetation { dimensions:     Y = 50 ;     X = 135 ; variables:     int veg_class(Y, X) ;         veg_class:grid_mapping = "albers_conical_equal_area" ;     float lat(Y, X) ;     float lon(Y, X) ;     int y(Y) ;         y:standard_name = "projection_y_coordinate" ;         y:long_name = "y coordinate of projection" ;         y:units = "m" ;     int x(X) ;         x:standard_name = "projection_x_coordinate" ;         x:long_name = "x coordinate of projection" ;         x:units = "m" ;     char albers_conical_equal_area ;         albers_conical_equal_area:grid_mapping_name = "albers_conical_equal_area" ;         albers_conical_equal_area:false_easting = 0. ;         albers_conical_equal_area:false_northing = 0. ;         albers_conical_equal_area:latitude_of_projection_origin = 50. ;         albers_conical_equal_area:longitude_of_central_meridian = -154. ;         albers_conical_equal_area:standard_parallel = 55., 65. ;         albers_conical_equal_area:longitude_of_prime_meridian = 0. ;         albers_conical_equal_area:semi_major_axis = 6378137. ;         albers_conical_equal_area:inverse_flattening = 298.257222101 ;         albers_conical_equal_area:spatial_ref = "PROJCS[\"NAD83 / Alaska Albers\",GEOGCS[\"NAD83\",DATUM[\"North_American_Datum_1983\",SPHEROID[\"GRS 1980\",6378137,298.2572221010002,AUTHORITY[\"EPSG\",\"7019\"]],AUTHORITY[\"EPSG\",\"6269\"]],PRIMEM[\"Greenwich\",0],UNIT[\"degree\",0.0174532925199433],AUTHORITY[\"EPSG\",\"4269\"]],PROJECTION[\"Albers_Conic_Equal_Area\"],PARAMETER[\"standard_parallel_1\",55],PARAMETER[\"standard_parallel_2\",65],PARAMETER[\"latitude_of_center\",50],PARAMETER[\"longitude_of_center\",-154],PARAMETER[\"false_easting\",0],PARAMETER[\"false_northing\",0],UNIT[\"metre\",1,AUTHORITY[\"EPSG\",\"9001\"]],AUTHORITY[\"EPSG\",\"3338\"]]" ;         albers_conical_equal_area:GeoTransform = "-137256.2642264267 1000.050170338725 0 2372459.286491414 0 -999.7969847651308 " ;  // global attributes:         :Conventions = "CF-1.5" ;         :source = "/home/UA/tcarman2/dvm-dos-tem/./scripts/create_region_input.py::fill_veg_file --xoff -137256.290295 --yoff 2321969.51702" ; }


How to make low poly water with foam effect?

There is a very cool foam effect rising on the shore in this low poly water asset made in Unity:   And here:   Is it possible to create a similar effect in Blender?  I have the water material down, I just want a cool foam effect!


Several unicode characters are not displaying on many big sites (like this: )

There are several Unicode charactes I'm just seeing as boxes. This happens in Chrome only. The Character Encoding is set to UTF-8, but Autodetection doesn't help.   Example: []  You will only see two square brackets, but actually there is the Unicode Character  in between. It's a zero-width non-breaking space.  I also put together a little . I can't see the World Joiner character, but I can see the Hair Space. (And by seeing it I actually mean I don't see it. You see?)  This also happens when people post some new style emoticons etc.  How can I fix this?  Update:  This happens everywhere (Twitter, Facebook, you name it). I'm not using special fonts or have changed something font-related on my system (Windows 7, 64 bit). Am I wrong assuming this should just work?  Update 2:  This drives me insane. There are still so many characters that are not displaying.  Example (wrapped gift): 🎁    As you can see, Chrome is not displaying the character by default. Only when I explicitly set the font to Segoe UI Symbol, it does. Why is Chrome not using the font as a fallback automatically?  How can I make Chrome recognize the Segoe UI Symbol font?


How to delete the other Windows Operating System when I have two

I have two Windows 7, one in drive C and other in drive D. I use the one in drive D. I want to remove the one present in drive C, to find more free disk space.   But I cannot delete the Windows folder present in drive C. It says you need permission something. Also when my computer starts it asks me which OS I want to use, the two OS names are the same "Windows 7". I chose the upper one, this is the one present in Drive D. However when  I choose the other one that does not run, computer restarts after sometime before logging in. This is because I have deleted everything associated with the previous Windows, except the Windows folder. Because I can not delete it.   How can I delete this Windows folder present in drive C, which I cannot use ( and I don't want to use). Please tell me the simple way, ASAP.


Create cron jobs to repeat every X units of time starting on an arbitary unit

I have a cron job on CentOS that I want to execute every 3 minutes but I have many other cronjobs that run at every 3 minutes starting from 0, 3, 6, 9...  So, to avoid my server getting too overloaded, I wanted some of my crons to run at every 3 minutes but starting at 1 minute and so on: 1, 4, 7...  My crons are usually like this:  */3 * * * *    How can I do this?


Blind, compulsive adherence to the rules, regardless of circumstance

I'm looking for a word, term, or phrase that refers to a type of behaviour; somewhat similar to what's commonly known as "Malicious Compliance"; but without the necessary implication of malice aforethought.  That is to say; the behaviour in question is characterised by a strict, blind adherence to the rules. Regardless of (or ignorant to) the potentially negative impact it may have or the damage it could cause without considering any unique, individual, or extenuating circumstances. Possibly even to the detriment of the system that the rules are intended to protect.


What is the MLE of $\boldsymbol{\theta}=(\theta_1,\theta_2)$ for the random sample from $f(x|\boldsymbol{\theta})$?

Let there be a random sample $X_1,\cdots,X_n \sim f(x|\boldsymbol{\theta})=\frac{1}{\theta_2}exp[\frac{-(x-\theta_1)}{\theta_2}], x > \theta_1, -\infty<\theta_1<\infty,0<\theta_2<\infty$. How can I find the MLE of $\boldsymbol{\theta}=(\theta_1,\theta_2)$?  My work:  $L(\boldsymbol{\theta})=\frac{1}{\theta_2^n}exp[\frac{-1}{\theta_2}\sum(x_i-\theta_1)]1_{\{\theta_1,\infty\}}(x_{(1)})$  $log(L(\boldsymbol{\theta}))=l(\boldsymbol{\theta})=-nlog(\theta_2)-\frac{1}{\theta_2}(\sum (x_i)-n\theta_1)+log(1_{\{\theta_1,\infty\}}(x_{(1)}))$  $\frac{\partial l(\boldsymbol{\theta})}{\partial \theta_2}=\frac{-n}{\theta_2}-\frac{\sum(x_i)-n\theta_1}{\theta_2^2}=0$ implies that $\hat{\theta_1}=-\frac{(n+\sum x_i)}{n}$  $\frac{\partial l(\boldsymbol{\theta})}{\partial \theta_1}=\frac{n}{\theta_2}+\frac{1}{1_{\{\theta_1,\infty\}}(x_{(1)})}=0$  Where do I go from here? I do not think that I did the second partial derivative correctly for $\theta_1$.  Updated work based on provided link to show $lnL(\hat{\mu},\hat{\sigma}) > lnL(\mu,\sigma), \forall (\mu,\sigma)$:  So, $\hat{\theta_1}=X_{(1)}$ and $\hat{\theta_2}=\frac{1}{n}\sum(x_i-x_{(1)})$  $lnL(\hat{\mu},\hat{\sigma}) > lnL(\mu,\sigma)$  $(\frac{n}{\sum(x_i-x_{(1)})})^nexp[\frac{-n}{\sum(x_i-x_{(1)})}\sum(x_i-x_{(1)})]>\frac{1}{\theta_2^n}exp[\frac{-1}{\theta_2}\sum(x_i-\theta_1)]$  $(\frac{n\theta_2}{\sum(x_i-x_{(1)})})^nexp[\frac{-n}{\sum(x_i-x_{(1)})}\sum(x_i-x_{(1)})+\frac{1}{\theta_2}\sum(x_i-\theta_1)]>1$


What is the role of rollbacks for badges on Stack Exchange?  Anyone told me it's used for badges; then, how do I get this?


Accidentally deleted all partitions, how can I restore the operating systems?

Hi guys I installed ubuntu 12.04 (x32) on my system and then side by side I had my windows7 ultimate(x64) running aswell (dual boot).  Last week for some reason I started getting a blue screen crash after running an update on ubuntu. Blue screen said it has a crash with code bCC:0000145, I didnt know what to make of it hence I thought just erase the whole HDD and start over with a fresh copy of windows.  And this where (I feel a major disaster struck, as i'm a noob i've no clue what i did was WRONG!!!) I got into a huge problem, when I put in the Windows OEM cd and set the comp to boot from cd it was going all fine untill I deleted all my partitions into unallocated space and then wanted to make new partions and start fresh - BAMM another blue screen of death.  And this time after the blue screen it's stopped booting from Cd, and directly gave me an error message saying "no such partition; grub rescue"  I've tried everything in my capacity to get it to work but I dont know clearly what to do further please help.


Punctuating a quoted question within a quoted statement

I'm working on a story, and I find myself faced with something of a quandary.  Specifically, I need to know the proper style for the following:     “I have thousands of them,” the commissioner answered, “but I’ll start with ‘What do you need?’.”   Is it proper form to have both the question mark and period, or should one of them be dropped?


Help is Depressed, It's Been Looking a Bit Down

The new topbar is decidedly awesome. It is like a top hat, only in bar form.  But it's got its hidden issues. The 'help' link looks a bit down because it is horribly misaligned:    The review seems to be aligned with your rep/badge numbers and the Stack Exchange logo in the top left. help and search seem to be on a different level, aligned against the rest of the top bar.  I'm all for standing out, but these several pixels are just taking it too far.


What is the license for Consolas font? Can it be used for commercial applications and/or embedded?  I tried to find it but couldn't find any. There's a "request quote" on the Microsoft website and that's all I could find, nowhere that says "you need to pay to use it"


grub rescue error: file '/grub/i386-pc/normal.mod' not found

I get the following error:    My system specs are:   HP 245 G6 Notebook PC OS: Ubuntu 18.04 + Kali Linux   The error happened after I tried to edit the partitions for Kali Linux. Both partitions have an ext2 file system.