Coordinate points not lining up with a preexisting map on QGIS

I asked this question once before, but I did not receive any feedback on solving on the issue and I am still confused as to what I am doing wrong.  I found a public domain map of Florida counties on Google. All I want to do is add coordinate points from a cvs file to the map. It should be simple, right? Apparently not. I made a cvs file with latitude/ longitude and x,y coordinates, but the points do not line up with the map. Yes, I DID have the same projection for both layers. The counties map had a projection of EPSG 2237, NAD 83/ Florida West (ftUS), so I changed the cvs file to have that same exact projection. I also made negative values for the longitude coordinates for United States. I tried this with various Florida maps to see if the counties map I found was just wrong, but every map I tried had the same issue. I tried various types of x and y coordinates for the points, and nothing was better. This really should be a simple thing to do, so I really would like to know what I'm doing wrong.


What's the most resource efficient way to count how many files are in a directory?

CentOS 5.9   I came across an issue the other day where a directory had a lot of files.  To count it, I ran ls -l /foo/foo2/ | wc -l  Turns out that there were over 1 million files in a single directory (long story -- the root cause is getting fixed).   My question is: is there a faster way to do the count?  What would be the most efficient way to get the count?


For some reason, whenever I do a test render with Shift + Z, all I get is my character and the world is black. In the World properties, I have a Sky Texture with a strength of four, but it still shows as black. The only thing it effects is my character. Also, I'm wondering if this is related to why I can't get my character's shadows to render/show on a separate Render Layer...? I do have some Nodes set up, but deleting all of those hasn't fixed the issue, so I'm not sure if they're to blame.  Any advice?


Windows 10 keeps changing default browser to Edge at reboot

In Windows 10 (Ent, 1803), default web browser keeps being reset from Internet Explorer to Edge at each reboot (settings > system > default). No matter which other browser is set there, as admin, after reboot default browser is Edge again.  Is there a way to prevent that?


I learn Symfony2 and i have:   http://localhost/Symfony/web/app.php/demo/hello/Fabien      And if you use Apache with mod_rewrite enabled, you can even omit the   app.php part of the URL:   http://localhost/Symfony/web/demo/hello/Fabien      Last but not least, on the production servers, you should point your   web root directory to the web/ directory to secure your installation   and have an even better looking URL:   http://localhost/demo/hello/Fabien   how can i make this in WAMP Server?


Possible new close reason: "Overt request for code"

This seems to be related to other meta questions, but I think there is a qualitative difference.  While this is obviously a site where specific questions are asked and specific answers are given (where possible), very often including example code, a line is crossed when the question's ideal answer is solely a snippet of example code that solves the problem behind the question asked, without any solicited explanation, and could just "drop in" to the questioner's codebase with minimal editing. Such a question is little more than a request for free development work on the part of the community, contrary to the spirit of the site where users seek to increase their knowledge by asking questions.  The usual response is to close such posts as "not a real question"; however, I think that's misleading based on the text of that reason; it is not, in fact, difficult to tell what is being asked in the question. Quite the contrary, the problem is that it's so glaringly obvious what the questioner wants that it's insulting.  Another possible response is to close the question as "too localized"; the exact code snippet would be unlikely to help anyone else even as a guide. However, that too can be misleading; it's very rare that the requested solution is so specialized that nobody else would ever be able to apply any part of it in their own work.  I propose the following close reason:   Overt request for code - While StackOverflow welcomes questions that require answers with example code to illustrate the solution, this question does not demonstrate any effort made towards solving the problem, and instead simply solicits answers consisting primarily of original working code that could be copied and pasted into a program.


Given the definition of Big-O, prove that $f(n) = n^2 - n$ is $O(n^2)$.  When I use the given definition, I get $n^2 - n \leq n^2 - n^2$ which means that $n^2 -n \leq 0$, which is not true. Is there some step I'm missing?


Window function vs group by method: find value for MAX ID

I'm trying to understand the performance issue with Window function when i select value for MAX ID  --Old group By method SELECT       tj.MainProcedure ,     tj.StartTime ,     tj.EndTime ,     tj.Threshold,     tj.LastStatus ,     tj.rc     ErrorMessage FROM dbo.tbl_TraceJobExecutions tj WITH (NOLOCK) INNER JOIN      (         SELECT b.MainProcedure,         ErrorMessage         FROM             (             SELECT MainProcedure, MAX(RowID) AS MaxRowID             FROM tbl_TraceJobExecutions_ErrorHandling WITH (NOLOCK)             GROUP BY MainProcedure             )a         INNER JOIN tbl_TraceJobExecutions_ErrorHandling b WITH (NOLOCK)         ON b.MainProcedure = a.MainProcedure         AND b.RowID = a.MaxRowID         ) eh ON eh.MainProcedure = tj.MainProcedure  ORDER by tj.MainProcedure, tj.EndTime DESC  --VS Window Function SELECT tbl_TraceJobExecutions.*,MaxVal.ErrorMessage FROM tbl_TraceJobExecutions INNER JOIN (     SELECT          MAX(tbl_TraceJobExecutions_ErrorHandling.RowID) OVER (PARTITION BY tbl_TraceJobExecutions_ErrorHandling.MainProcedure) AS MaxID,         tbl_TraceJobExecutions_ErrorHandling.MainProcedure,         RowID,         ErrorMessage     FROM tbl_TraceJobExecutions_ErrorHandling ) AS MaxVal ON MaxVal.MainProcedure = tbl_TraceJobExecutions.MainProcedure AND   MaxVal.RowID = MaxVal.MaxID  ORDER by tbl_TraceJobExecutions.MainProcedure, tbl_TraceJobExecutions.EndTime DESC   The IO statistic:      (10 row(s) affected)   Table 'tbl_TraceJobExecutions'. Scan count 0, logical reads 46, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.   Table 'tbl_TraceJobExecutions_ErrorHandling'. Scan count 1, logical reads 8, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.      (1 row(s) affected)      (10 row(s) affected)   Table 'Worktable'. Scan count 3, logical reads 1776, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.   Table 'tbl_TraceJobExecutions_ErrorHandling'. Scan count 1, logical reads 23, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.   Table 'tbl_TraceJobExecutions'. Scan count 1, logical reads 79, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.      (1 row(s) affected)   What is wrong with my code? Thank you


Dell R730xd - Best way to configure storage for simultaneous use with ZFS & Hardware RAID

I recently purchased a Dell R730xd that came with an H730 RAID card. I would like to bring an existing 6 disk ZFS pool to this server as well as create an additional 6 disk hardware RAID.   Is it possible to configure an H730 RAID card to operate in both HBA and RAID mode simultaneously? And then only manage 6 of the disks in a hardware RAID and allow the OS to manage the remaining 6 disks in a software RAID?  If not, can a Dell R730xd use both an H730 RAID card and an LSI 9207-8i HBA card simultaneously? Would you simply plug one SAS cable from each card into each part of the Backplane? Will I need to purchase any new cables to connect the LSI 9207-8i to the backplane in my R730xd?  Is there a better card to use for ZFS in an R730xd using spinning disks than the LSI 9207-8i?


I have to call a program in this way via the terminal:  ./program < input.txt > output.txt   What purpose do < and > serve in this case?


I just got the Local Leader perk, it says I can establish supply lines between workshop settlements.  How do I do this?


QGIS dissolves all different shapes into one feature instead of multiple features

I'm pretty new to QGIS and geoprocessing. I have a layer of points representing traffic lights - where each point is a different feature:   I wish to create a layer with traffic light junctions based on this layer. My approach is to create buffer around each point - which I've done using QGIS:   But then, when I try yo dissolve them into single shapes, QGIS creates one feature for all the shapes instead of a feature per junction:   How can I tell QGIS to create a feature per junction?


$$\int_{-\infty}^{\infty} \frac{x \sin(x)}{x^2 +4} dx$$ I do not understand how to evaluate integrals  by using a closed contour and passing to a limit, can someone show me using this example


Can I mount /data/data/(app_name)/ on external sd card?

Can I mount /data/data/com.termux/ folder on external sd card? My phone is rooted Android 10 and running low of internal storage. As I read from  mounting to /sdcard requires permission to mount because /sdcard is emulated from /data/media/0 and /data/data/ is not. And from  it can mount /data/data/com.termux/ using ln -s because ext4 support links while fat doesn't. I don't know how /data/data/ directory works but is it possible to mount /data/data/com.termux/files/home/ directory to external sd card without formatting it as adoptable storage or making ext4 partition?


How to setup wireless in a dell latitude D430?

I am trying to get wireless Internet on this dell latitude D430.  What can I do?


What is the minimal capacitor (capitor type/size/capacity) needed to fool a capacitive touch screen?

Say I want to provide a device (completely batteryless of course, and detached from any human touch) the capability to immitate a touch on a capacitive screen (Galaxy S6 here). I know I just need some kind of a capacitor to touch the screen. I managed to register a touch by folding a piece of metal snack wrap (an inch square of it), put it on a piece of plastic, to escape my body's capacitiveness, and touch the screen with it.  So, would I be able to do the same by connecting, let's say, an copper/aluminum foil to a capacitor, then touch the other side of that foil (or wires?) on the screen to register a touch?  I am asking about a capacitor, because I guess this would be the best/smallest solution to mimic our body's (connected to the finger) capcitiy. If I am totally wrong, and you have any other idea, welcome to suggest ;)  To make the question more clear: I want to mimic a finger (or multi touch) press, with the smallest/flattest possible (electrical?) device. I asked about a capacitor because it is small, and from my tiny knowledge in electronics, it "should do". So, this is not a general question like been asked before. I want to try and get to the specifics of how to mimic.  Thanks


Blender 2.78 with Windows 10 lags when interacting with the UI

Update  This has been confirmed resolved in a later version 376.33 and possibly the update prior.     Okay, I recently did a computer update. I used to run Blender 2.77 on a Dell desktop (5 GB RAM, 2.7 GHZ, Windows 8, build in graphics card). Since that computer wasn't fast enough for my preference, I saved up and got a new gaming laptop - the Asus ROG GL552 (Windows 10, 16 GB DDR4 RAM, Nvidia GeForce GTX 960M with 4 GB DDR5 RAM, 2.6-3.5 Ghz, and quad-core intel processor). That laptop has been known to have outdated drivers, so when I got it, I updated it to up to date Windows 10 drivers.  As soon as I started Blender, I immediately noticed its speed. Even doing simple things, like clicking buttons, or rotating the view with the middle mouse button, took too long to register in the program. I tried changing some User Preference System settings, but that didn't really help much. And the hardware seems to be fine - the render is lightning fast (renders the startup scene in under .1 second; it's just laggy when loading the uv screen), so I don't know why it's like this, or what to do. Also, I ran Blender 2.77 on this computer, and it was also slow (although it was fine on my previous computer).  It could be an issue with drivers perhaps (or maybe OpenGL?), but I ran Unreal Engine 4, and had none of the same issues - the speed was pretty decent on that; so I'm not sure why Blender would be so slow. Any help is appreciated - thanks guys!


Security equivalence proofs for breaking RSA

It is my understanding that while a practical solution to the factoring problem will definitely break RSA, it has never been proven that the security of RSA is equivalent to factoring.  In otherwords, theoretically, someone could mathematically break RSA without breaking the factoring problem.  Are there any problems for which breaking RSA would be equivalent to (besides the obvious )?


I have been refused UK visa twice, reasons being;  1.I have no sufficient funds to fund my trip Even though my sponsor who is my long time friend and who had invited me had indicated in the invitation letter that she Will cater for my transport,accomodation etc for the two weeks I was to be there.  2.My income is modest.  3.I didn't demonstrate any significant strong personal ties to my home country.  Last I applied was in August 2017.I want to apply again this year,what do I need to do especially about reason number 3? someone kindly advise me. I'm single lady aged 37 yes old.I have been thinking of doing a nice cover letter,what and how should I write the cover letter if that is the case? Thanks so much.


Learning JavaScript and doing some questions. I am trying to reverse a given string and I don't know why my logic is wrong as running through the debugger it looks like it's doing the swapping as intended.  Any help is really appreciated, I know it's simple but that means I'm missing something important.     function reverse(s) {   let i = 0;   let j = s.length - 1;    while (i < j) {     let temp = s[j];     s[j] = s[i];     s[i] = temp;     i++;     j--;   }   return s; }  console.log(reverse("hello"));


Show that $\lnot\exists x\in A P(x) \equiv\forall x\in A\lnot P(x)$

I need to show that: $$\lnot\exists x\in A P(x) \equiv\forall x\in A\lnot P(x)$$  when I start from LHS, should I write(1): $$\lnot\exists x (x\in A \to P(x))$$  or(2): $$\lnot\exists x (x\in A \land P(x))$$  because after simplification in first case I get: $$\forall x(x\in A \land\lnot P(x))$$  whereas in the second case I get: $$\forall x(x\in A \to\lnot P(x))$$  I'm confused, because I know that in general: $$(p\to q) \equiv \lnot(p\land\lnot q)$$ therefore I don't know whether assuming (1) or (2) is right.   Could you please clarify that for me?


As I understand \n means a new line and endl means end of the line.I have read somewhere that using endl(stream manipulator) is advantageous.Which one should be preferred and when?


Will one flawed grade outside of my major from my freshman year affect graduate school?

I'm an English major and planning to apply to graduate schools. My freshman year I originally planned to be a bio major due to pressures from my family. I had to take chemistry and biology, which soon enough turned into a disaster. I dropped chem, but since I needed enough credits to be considered full time, I was forced to keep with bio. I ended up with a D- in the course. If it wasn't my freshman year, I honestly would have probably done better, but I was having a rough time settling into college with homesickness and depression. Aside from that one hiccup, however, the rest of my grades are As with a couple B+. So what I'm wondering is would that badly affect my application or even receiving scholarships?


Does an Egyptian student resident in the EU need a visa for a short stay in Switzerland?

I am an Egyptian student and willing to visit Switzerland for less than 90 days. I hold a Portuguese residence permit (due to being a student, which I renew every year). I usually have no problems traveling to Schengen area countries. My question is, if I intend to visit Switzerland for less than 90 days, would I need any kind of authorization?


Should I upvote questions I'm answering?

Sometimes I answer questions that are kind of OK, neither bad enough to downvote, nor good enough to upvote (although they probably could become good ones with edits).  Per answers to  seems that I'm doing the right thing. But on the other hand comments to my recent question here  suggest, that I shouldn't expect answers to be accepted or upvoted if I "don't participate" by upvoting the question.   Should I really upvote the question just because I think it's worth my time to answer it?


Is tap water drinkable in Massachusetts (and elsewhere in USA)?

I have been offered a position with a US-based company. This role is initially located in Massachusetts, but the company says I can live anywhere in US, as long as I am not too far from an airport.  My question is about whether public drinking water in Massachusetts is safe to use for coffee, tea, to drink straight from the tap and things like that, or should I buy bottled water from grocery store or invest in some kind of a filter?  Also, since I do not yet know where in USA I will settle permanently, it would be great to know this detail about other states, such as Florida.


If time standard clocks and any memories about the time standard are destroyed, can we recover the time standard again?

Assume the time standard clocks and any memories about the time standard are destroyed. Can we recover the time standard again exactly?  Recovering the time standard again means we can determine the date  and time that are exactly the same as the destroyed time standard clocks will show (if they are not destroyed).


Does xinetd comes pre-installed with Kubuntu 12.04? If so, where is the xinet.d directory?  And if not - how do the network processes, that should be awaken by xinetd, work without it?


I have this abstact algebra problem: considering $ A=\frac{\mathbb Z_2[X] }{(X^2+X-1)}$ and I have to prove that it is a domain. In order to be a domain I thought that it is supposed to be a commutative ring, to have a unit and to have no zero-divisors but i don't know how to start considering it is a ring of polynomials . thanks for the help !


I'm fighting the 'too small /boot partition' problem, and it looks like I'm going to have to either re-partition or install a larger drive (AND re-partition?). I keep seeing warnings that I should be sure to "back up important files," but excuse my ignorance -- what are "important files"? Incidentally, I have about $200 worth of Ubuntu books that don't explain this, or even what to back up when you back up. Sigh.  Specifically:   Back up the /home directory. However, without using sudo, this fails to backup about five files (for example, a 'lock' file). Am I ok, or do I need to use sudo? I suspect I should back up /etc. With sudo? Where are the files for things like games and apps? Do I need to back them up? If I'm doing a "clean install," is there any point to backing up the whole frickin' drive? If I'm going to repartition /boot, what should I back up before I do that? If I back up the drive, repartition, and then restore the backup, will it "restore" the old /boot partition?   Inquiring minds are flummoxed.


Java thread program exits before for loop (server side of program) (Eclipse using Mac Terminal/command line arguments)

I trying to create a program that is supposed to send and receive text messages (UTF-8 strings).   For this error, I am working on the server side  The command line arguments for the server would be something like  java DirectMessengerServer -l 6021     The problem with this screenshot is that "Try block begins" is not being printed out (which is the line being ignored later in the code).  Code of DirectMessengerServer.java:  import java.io.*; import java.net.*; import java.util.*; import static java.nio.charset.StandardCharsets.*; public class DirectMessengerServer {     public static void main(String args[]) throws IOException     {         Thread Server = new Thread ()          {               public void run ()               {                        System.out.println("Server thread is now running");                     ServerSocket server_socket = null;                     Socket client_socket;                     String message1;                      for(int i = 0; i < args.length; i++)                     {                         if(args[0] == "-l")                         {                             try                             {                                 System.out.println("Try block begins..");                                 int port_number1= Integer.valueOf(args[1]);                                 ServerSocket listener = new ServerSocket(port_number1);                                 System.out.println("Listening for connections..");                                 Socket socket = listener.accept();                                 client_socket= server_socket.accept();                                 BufferedReader reader= new BufferedReader(new InputStreamReader(client_socket.getInputStream(), "UTF8"));                                 PrintWriter output= new PrintWriter( client_socket.getOutputStream(), true );                                 String input_line= reader.readLine();                                 System.out.println( "Received from client: " );                                 System.out.println( input_line );                                 output.println( input_line );                             }                             catch ( Exception e )                             {                                 System.out.println( e.getMessage() );                             }                             //server.close();                         }                     }               }         };         Server.start();     } }   My question is why does the program stop without executing the try block and/or why is the "Try block begins" not being executed?


How to drive a 20mA LED From a 4mA max GPIO Pin

I have an IC that has an GPIO with which I would like to drive a LED.   Since the device will be running off battery, keeping the power use low (Zero maybe) while the LED is off as a priority.  The GPIO supplies 3.3V when turned on and 0.0V votes when turned off.   It also has a limit of a maximum of 4mA.  The LED has a forward current of 20mA and a desired forward voltage of 2.0V.  When the LED is turned on it will most likely be blinking (using PWM) in the low kilohertz range.  After poking around I believe this may be the type of circuit I need.    Question 1: Am I even close to being on the right track.  Question 2: What is the correct component to use for item (5), (Transistor or  Mosfet), and how do I go about finding one (at the local Frys, RadioShack, Online) and how are they identified(specified)?  Question 3: Will the choice of item (5) have any effect on the ohm value of the resistor item (3)?  Apart from the normal Ohms law for the 3.0V power source and the 2.0V LED.  Question 4: What would be the ohm value of the resistor item (2), if any is required.


I have $23k in student loans and pay $400/mo on them. I have about $2500 left over after my bills each month. I have a 401k and am already contributing the maximum on it.  Does it make sense to spend my excess income to reduce my student loan debt to $0 to free up my $400 each month, or should I find some kind of investment to put it in? My wife also has similar student loan debt and I was thinking of tackling hers after mine.  From my little understanding of the stock market it doesn't seem like it had been performing too well lately.  Looking for advice on how to proceed to utilize my excess income and maximize my returns.  Thanks in advance.


I can't post a "+1 this is awesome" comment on an awesome post

This is not a duplicate of  because I don't want feedback about when to post a +1 comment; it's about the system not letting me post a +1 comment.  : Upvotes are not a reason to comment, it seems... only if this ever got deleted, since I can't vandalize (so the content is below).  Look at this thumbnail for example:    I really don't believe my comment was +1, I upvoted yeah!. It says the reason I've up-voted the post, but, that reason contains the word  upvoted. It's this post:    If I'm not clear, here is the summary: I have specified a reason for my up-vote, and that should go to the comments, since there is no "upvote with a reason" option yet (wish I had it). Instead, when I downvote, the voting system encourages me to comment:     Please consider adding a comment if you think this post can be improved.   If this is not a reason, I will delete the question, but, if it is, please improve the comment system.


How to run Application with multiple parameters?

public static void RunProcess(string FileName, string Arguments, ProcessWindowStyle WindowStyle, bool WaitforExit) {     MessageBox.Show("Runnig the process :- File name- " + FileName.ToString() + "argumetns- " + Arguments.ToString() + "windowStyle- " + WindowStyle.ToString() + "WaitForExit- " + WaitforExit.ToString());     Process MyProcess = new Process();     MyProcess.StartInfo.FileName = FileName;     MyProcess.StartInfo.Arguments = Arguments;     MyProcess.StartInfo.WindowStyle = WindowStyle;     MyProcess.Start();     if (WaitforExit)         MyProcess.WaitForExit(); }   Here Arguments are having some spaces too.!!


I know there is quite few discussions already on this topic, but since English isn't my first language, I though it better to get some more information about this.  I have used oscilloscopes to troubleshoot electronics problems and measure AC engine current spikes at startup, but I have no experience using them to measure high voltage levels and my experience is with old analog scopes.  So now I have this new DSO and the input rating is 400V peak to peak AC, so it can handle about 140V AC RMS? Not that I'm going to input that much there.  Since I live in Europe the mains here are 230 V @ 50 Hz I can't measure them directly.  If I set the attenuation from the scope and probe to 10X, the voltage is 23 RMS and it is safe to measure? And yes the probes are rated for 1kV.  If that is true, it's also safe to measure voltage between two main lines (400V RMS), since the peak-to-peak would be about 112 volts?  SAFETY: When I am measuring AC, I will be using the scope from its internal battery or with a isolating transformer (1:1) so that it is floating, meaning that there is no connection to earth ground. Are there any other safety issues I have not realized?


How many real roots does $(x-a)^3+(x-b)^3+(x-c)^3$ have?

Let $a,b,c$ be distinct real numbers. What is the number of distinct real roots of the equation $(x-a)^3+(x-b)^3+(x-c)^3=0$?   $1$, $2$, $3$, Depends on the value of $a,b,c$.   How can I solve this?


What should I do with an account that has mixed personal and professional content?

UPDATE (and my vote to close)  After posting, some more searches finally yielded some related questions.  Question making this a duplicate:      Related questions, expressing similar sentiments as mine:            I have an old account that I never use any more. My display name used to be "FirstName LastName," and I felt that the content from non-professional sites (e.g., Islam, Mi Yodeya, Workplace, Health, Politics, etc.) were best not tied to my real-world identity. A specific example of such a question that I'd be concerned about: .  I renamed the display name, but this has two problems:   The , so I created an entirely new anonymous account (since then, a few, which I've now linked), and I'm reluctant to link the old account. As a result, any comments or new answers I receive on the old account are effectively ignored save for the occasional check-in. This is a nuisance, and I feel bad about it, which is part of why I'm asking this question! StackOverflow Careers runs on the idea that I can use the site as a platform to display my work, communication skills, etc. The fact that I had to anonymize all of my content to separate work and personal seems against the spirit (and business interests) of the site.   What's the recommended way to handle this? Am I missing or misunderstanding some feature of SE?


Adding method to delegate changes iteration in "for" loop - C# issue?

I've faced some issue with C# code. Adding method to delegate in "for" loop increments "i" by one., so "for(int i = 0, i < x ; i++)" must be change to "for(int i = -1, i < x-1; i++)" to work correctly. Why is that?  Code below throws an IndexOutOfRangeException  string[] names = new string[] { "John", "Madeline", "Jack", "Gabby" }; Action showNameDelegate = null; for (int i = 0; i < names.Length; i++) {     showNameDelegate += () => global::System.Console.WriteLine(names[i]); } foreach (Action showName in showNameDelegate.GetInvocationList()) {     showName(); }   Right code is (look at iterator "i" which starts from -1 but "names[-1]" does not exist):  string[] names = new string[] { "John", "Madeline", "Jack", "Gabby" }; Action showNameDelegate = null; for (int i = -1; i < names.Length - 1; i++) {     showNameDelegate += () => global::System.Console.WriteLine(names[i]); } foreach (Action showName in showNameDelegate.GetInvocationList()) {     showName(); }   This answer is correct (by Ed Plunkett): Each delegate references the variable i. They all reference the variable, so when they execute, they'll get whatever value it has right then. The delegates are executed after the for loop completes. At that point, i is equal to names.Length. Make a local copy of i in the body of the loop -- or use a foreach loop, which automatically fixes this issue.


How to parse an string of words containing quotation marks

I have a string like this, as you can see it consists of property/value pairs separated by space. For example: GRID "GLOBAL" or COORD 0    GRID "GLOBAL"  LABEL "A"  DIR "X"  COORD 0  GRIDTYPE  " "   The TEXT values are inside quotation marks but the NUMERICAL ones are not.  What is the best and fastest method to split it into an array of strings like this:    [GRID ,"GLOBAL", LABEL, "A", DIR, "X", COORD, 0, GRIDTYPE, " "]    The below solution does not work, because there is also space between " " in the value after GRIDTYPE.  var tokens = str.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);


How to make the dollar sign appear right next to the sum in python?

I am doing a simple program in python for my class, and I basically have it down except I can't figure out how to make the dollar sign appear right next to the sum without leaving a space. This is my code:  item1 = input("Enter price of first item: $"); item2 = input("Enter price of second item:$"); item3 = input("Enter price of third item: $"); total = (item1 + item2 + item3); print("The total of the three items is:$", total);


SQL Select a rolling count of total transactions over time

I need to get a set of total transactions over time on a weekly interval. Essentially I need a total-transactions-to-date column.   When I group by WEEK(Date) I get the amount of transactions for that week, but need to also get the transactions from any time before that week as well.  So let's say I have a table like this:  TransactionID  | Date ---------------|-----------              1 | 8-04-2014              2 | 8-05-2014              3 | 8-18-2014              4 | 8-18-2014              5 | 8-20-2014   I want to have a select statement that would provide me with something like  TotalTransactionsToDate | Week | Year ------------------------|------|------                       2 |    1 | 2014                       5 |    3 | 2014   If I could somehow also get the row 2 |   2 | 2014 meaning 2 Total, on Week 2 of 2014 that would be a nice bonus, but I don't require it.  I am using MySql 5.5.38


During an interview of Antonin Scalia by Charlie Rose, Scalia criticized the grammar he heard on a commercial flight:      "It's required that your luggage is under the seat in front of you"   Would it be more correct to say:     "It's required that your luggage be under the seat in front of you"?   Why or why not? Thanks.


Could Vader Have Become Strong Enough In The Force To Leave The Suit?

I know Vader needed the life support system in his suit to live, and he was already partially depending on the force to survive. But with the masking technique that the Sith Lords sometimes use. Was there canon indication (based on Vader himself as well as other Sith powers known) that he could  have left the suit and restored himself?


A closed form for a triple integral with sines and cosines

$$\small\int^\infty_0 \int^\infty_0 \int^\infty_0 \frac{\sin(x)\sin(y)\sin(z)}{xyz(x+y+z)}(\sin(x)\cos(y)\cos(z) + \sin(y)\cos(z)\cos(x) + \sin(z)\cos(x)\cos(y))\,dx\,dy\,dz$$  I saw this integral $I$ posted on a page on Facebook . The author claims that there is a closed form for it.     My Attempt  This can be rewritten as   $$3\small\int^\infty_0 \int^\infty_0 \int^\infty_0 \frac{\sin^2(x)\sin(y)\cos(y)\sin(z)\cos(z)}{xyz(x+y+z)}\,dx\,dy\,dz$$  Now consider   $$F(a) = 3\int^\infty_0 \int^\infty_0 \int^\infty_0\frac{\sin^2(x)\sin(y)\cos(y)\sin(z)\cos(z) e^{-a(x+y+z)}}{xyz(x+y+z)}\,dx\,dy\,dz$$  Taking the derivative   $$F'(a) = -3\int^\infty_0 \int^\infty_0 \int^\infty_0\frac{\sin^2(x)\sin(y)\cos(y)\sin(z)\cos(z) e^{-a(x+y+z)}}{xyz}\,dx\,dy\,dz$$  By symmetry we have  $$F'(a) = -3\left(\int^\infty_0 \frac{\sin^2(x)e^{-ax}}{x}\,dx \right)\left( \int^\infty_0 \frac{\sin(x)\cos(x)e^{-ax}}{x}\,dx\right)^2$$  Using W|A I got   $$F'(a) = -\frac{3}{16} \log\left(\frac{4}{a^2}+1 \right)\arctan^2\left(\frac{2}{a}\right)$$  By integeration we have   $$F(0) = \frac{3}{16} \int^\infty_0\log\left(\frac{4}{a^2}+1 \right)\arctan^2\left(\frac{2}{a}\right)\,da$$  Let $x = 2/a$  $$\tag{1}I = \frac{3}{8} \int^\infty_0\frac{\log\left(x^2+1 \right)\arctan^2\left(x\right)}{x^2}\,dx$$  Question  I seem not be able to verify (1) is correct nor find a closed form for it, any ideas ?


i have Ubuntu 13.10 , but now i want Windows Xp.   1.I insert cd press F12 (my computer dell n5050) use CD-DRIVE and press enter. When come boot CD I press enter and see black screen.  So how install Windows Xp?  Thank you for your Advice


Interpretation of values contained in a confidence interval

Are the values within a confidence interval those that do not significantly differ from the point estimate? Or, put differently, how do we interpret the values contained in a CI given that the CI is just about the coverage rate? EDIT: Notice that this question is not about the formal equivalence of the t-statistic and the CI (i.e., CI's as significance tests) but how to interpret the values contained in an observed interval.


I've been editing some wiki entries on the new Expatriates site, and started to get the following error:    When I go to a normal post, I see what is presumably the proper explanation:    Can the Wiki Tag edit error be updated to show a more meaningful error message?


I'm a student of 10th std. Recently our teacher asked a Question that   "Is 4.999...equal to 5 or not?" Everyone said that is isn't equal or it is approximately equal. Teacher too agreed to that. But I did't agree. I opposed the teacher as I think it is precisely equal to 5. I also prove but then too she isn't satisfied. Can you please explain what is right and what is wrong in this case?Please Justify.     Proof that I showed : let x=4.999...  (a)                            therefore, 10x = 49.999...                                       10x -x = 49.999... -4.999...                                       9x     =  45                                       x = 45%9                                       X= 5     (b)                          hence (a) =(b).                                     And therefore, ***4.999... = 5***


The part of the True Strike spell I am concerned with reads:     Your magic grants you a brief insight into the target’s defenses.   I'd always considered this to be flavor text. But a friend of mine disagreed. He argued that this meant that the DM should give the player some insight into the target's defenses.  For example, the DM might say "You sense that the dragon is fortified against fire."  The thing is, I'm not sure he is wrong. Is this interpretation correct?


Downgrading from Safari 12 (beta) to Safari 11

Installing Safari beta version is apparently only possible by replacing the builtin Safari version. In this case version 11.1.2 with 12. If beta version does not work, gives too much trouble or is just unpleasant:  How do we downgrade to an official stable version, currently Safari 11.1.2 for 10.12.6 Sierra?  I tried to restore everything relating to 11.1.2 from a backup (going by what is found that is in the installer package), I located and re-applied the 11.1.2_Sierra.pkg. Yet Safari now refuses to work entirely.   Crashed Thread:        3  Dispatch queue: com.apple.SafariCore.RemotePlistController.internalQueue  Exception Type:        EXC_CRASH (SIGABRT) Exception Codes:       0x0000000000000000, 0x0000000000000000 Exception Note:        EXC_CORPSE_NOTIFY  Application Specific Information: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[_NSPlaceholderData initWithContentsOfURL:options:error:]: nil URL argument' terminating with uncaught exception of type NSException abort() called   Is there any way around re-installing the entire system?


Certain words are often used in a fixed combination. As an example consider the phrase - 'hardly......when' as used in the sentence - "Hardly had I entered the room when the light went out."  For clarity consider another example - "No sooner did the teacher go out than the pupils started playing."  What should be the combination for - 1) Rarely... 2) Never before...  Also, can anyone provide me any links where I can find more of such combinations?


How do I auto-correct words ON-THE-FLY in TexStudio like in Microsoft Word?

For example, I use 'the' frequently, but mistype it as 'teh' and MS word automatically corrects such words without me having to right-click the incorrect word and select the correct spelling. Similar examples are 'completoin' for 'completion', 'nad' for 'and', etc. MS Word automatically corrects the spelling of such common mistakes on-the-fly, but TexStudio just gives a red wiggly line without correcting it on-the-fly.  I have checked the below link and it hasn't helped me. The link below contains information on how to create Macros for the usage of abbreviations, which isn't what I want. Also, it contains information on auto-correct multiple capital letters and auto-completion of technical words, which again is not what I want.   NOTE: This is NOT a duplicate of the below question.


Upload form and input:file selector not working?

I making an upload form for *.pdf  HTML:
    Upload File:

                              Browse <input type="file" name="file_sm[]" id="file_sm" name="file_sm" accept="application/pdf"/>                          <input type="text" class="form-control" readonly>

   and using JQuery for $_POST the data to sm.input.php  $("#save-sm").bind("click", function(event) {   var url = "sm.input.php";    var v_file_sm = $('input:file[name=file_sm]').val();    // sending for process   $.post(url, {file_sm: v_file_sm, id: id_sm} ,function() {      // show data

     $("#data-sm").load(main);      // hide modal dialog     $('#dialog-sm').modal('hide');    }); });   and inside sm.input.php file:  if(isset($_POST['save_sm'])){  foreach($_FILES['file_sm']['name'] as $key => $val){   $name = $_FILES['file_sm']['name'][$key];   $tmp  = $_FILES['file_sm']['tmp_name'][$key];   $file_size    = $_FILES['file_sm']['size'][$key];    if($file_size < 50000){              if(trim($name)!=''){           $new_name = date('YmdHis').'_'.$name; //rename file            if(move_uploaded_file($tmp,'/upload/'.$new_name)){                $file_sm = $new_name;           }       }   } else {       echo "MAX 50KB";   }  } }   why input:file selector JQuery is not working for me? the file didn't uploading and the php server can't get the file name.. whats wrong with my code?    I read about AJAX file uploading, but I still cant understand how to implement on my code :(


Help on proof of convergent sequence without limit point

Please kindly help with this problem on converging sequence.  Question Determine whether the sequence $\bigl(\sqrt{4n^2+n}-2n\bigr)_{n\in\mathbb N}$ converges and if it converges, guess its limits and prove your guess.  Now what I don't really understand is to proof the convergence of the sequence, because it has no limit point, so how do we prove it is convergent, and show me your guess.


How to suddenly stop DC gear motor, after certain revolutions?

If a DC motor is moving at 100-200 RPM and if I wanna stop it suddenly.  IS there any way to stop it quickly ?  I'm using H-bridge to provide current to the motor? I tried to reverse it for a while and then ground both the terminals. In this way motor suddenly stops and then moves forward. If I'm increasing reverse time then moves backward?  I tried to use reverse-forward, reverse-forward then grounding both the controlling bits ( of micro-controller) but still prob not solved ...


I have a long table with the explanation of 50 items (the MWE displays only 9). I believe this is hard to read. How do I make it easy to read?  \documentclass[10pt,cleardoublepage=empty,twoside]{book} \usepackage[a5paper]{geometry} \usepackage{longtable} \usepackage[T1]{fontenc}  \usepackage{booktabs}  \begin{document} \begin{longtable}{p{4.8cm} p{4.8cm}} \caption{Lorem ipsum dolor sit amet, orci vivamus ac neque augue cras, pellentesque libero integer.}\\ \textsc{Lorem ipsum dolor sit amet}&\textsc{Lorem ipsum}\\ \midrule \endfirsthead \caption[]{(continued)}\\ \endhead \endlastfoot  aenean ipsum enim egestas dui amet, ut condimentum ipsum vel arcu ullamcorper, nec et quis dolor mi, nunc id laoreet velit elit sit orci. Pede vestibulum ac amet &\textit{enean}\slash \textit{egestas}\\  pede vestibulum ac amet &\textit{egestas}\slash \textit{condimentum}\\  aenean ipsum enim egestas dui amet, ut condimentum ipsum vel arcu ullamcorper, ante voluptatem, suspendisse sed euismod leo &\textit{hasellus}\slash \textit{egestas}\\  pede vestibulum ac amet. &\textit{egestas}\slash \textit{condimentum}\\  aenean ipsum enim egestas dui amet, ut condimentum ipsum vel arcu ullamcorper &\textit{laoreet}\slash \textit{velit}\\  aenean ipsum enim egestas dui amet, ut condimentum ipsum vel arcu ullamcorper, ante voluptatem, suspendisse &\textit{enean}\slash \textit{egestas}\\  mauris lectus vel nulla neque lectus vel nulla eget cras luctus enim pharetra, curabitur sed curabitur sed vitae, lectus vel nulla neque &\textit{egestas}\slash \textit{condimentum}\\  mauris eget cras luctus enim pharetra, curabitur sed vitae, lectus vel nulla neque &\textit{cras}\slash \textit{enim}\\  sapien in sed. Sit lectus sed nullam, condimentum elit quae, morbi lacus nullam dictum libero convallis  &\textit{convallis}\slash \textit{Sit}\\ \end{longtable} \end{document}   Output (extract):    I also have this other table. Do you think it could look better than this?  \documentclass[10pt,cleardoublepage=empty,twoside]{book} \usepackage[a5paper]{geometry} \usepackage[english]{babel} \usepackage{longtable} \usepackage{multirow} \usepackage[T1]{fontenc}  \usepackage{booktabs}  \begin{document}  \begin{longtable}{l l} \caption{Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh}\\ \textsc{Lorem Ipsum}&\textsc{Ament}\\ \midrule \endfirsthead \caption[]{(continued)}\\ \textsc{Semantic Category}&\textsc{Variable}\\ \midrule \endhead \endlastfoot \multirow{3}{*}{consectetur eiusmod tempor}&\textit{dolor}/\textit{sit}\\ &\textit{ament}/\textit{sit}\\ &\textit{laboris}/\textit{explicabo}\\ \\ \multirow{3}{*}{consectetur adipisicing elit, sed do eiusmod}&\textit{exercitationem}/\textit{voluptatem}\\ &\textit{incidunt}/\textit{laboris}\\ &\textit{aliquid}/\textit{explicabo}\\ \\ \multirow{2}{*}{consectetur adipisicing elit, sed do}& \textit{holiday}/\textit{exercitationem}\\ &\textit{sundown}/\textit{laboris}\\ \\ \multirow{2}{*}{consectetur adipisicing, sed do eiusmod}&\textit{laboris}/\textit{incidunt}\\ &\textit{exercitationem}/\textit{voluptatem}\\ \\ consectetur adipisicing elit, sed&\textit{aliquid}/\textit{incidunt}\\ \\ consectetur elit, sed do eiusmod&\textit{explicabo}/\textit{laboris}\\ \end{longtable}  \end{document}


What race (species?) is Star Lord's dad?

At the end of the new Guardians of the Galaxy Vol. 2 Trailer we meet Star Lord's father:                                  Dad appears to be human. But Peter Quill's mother said in the first film that his father was a      "being made of pure light".    What race (species?) is Star Lord's father in the MCU?


Would an English site's rank increase if you added other languages?

My question is similar to this question:   However, I know that the obvious statement of multiple languages increases the number of impressions your website will recieve due to the large target audience. But is there any evidence that it will increase the number of impressions received on a particular language?   For instance, if I have an English website and I then introduce Spanish, German, and French, is there any evidence that your rank would increase in the UK? In other words, is this a ranking factor, and if so, is it an important factor?


Can we find element of order $q^2-1$ in $\text{GL}_2(\mathbb{F}_q)$?

How to find element of order $q^2-1$ in $\text{GL}_2(\mathbb{F}_q)$? I am hoping to find field $\mathbb F_{q^2}$ as subalgebra of $2\times 2$ matrices over field $\mathbb F_q$ where $q$ is power of prime number. I was trying with element $\pmatrix {n&1 \\ 1&0}$ but it works only for $q=2,3,4,8,16$.   It is suggested that this is duplicate of question    But I don't know how to find $\mathbb F_{q^2}$ in $M_2(\mathbb F_q)$.  Here is test in GAP for above matrix - $n$ is generator of the field multiplicative group.  gap> List([2,3,4,5,7,8,9,11,13,16,17,19,23,25,27,29,31,32,37,41], >         k->Order([[Z(k),1],[1,0]]*Z(k)^0)); [ 3, 8, 5, 12, 16, 9, 20, 24, 28, 17, 16, 40, 22, 52, 56, 20, 64, 31, 76, 40 ]   To give my motivation - I want to prove that algebra  $M_2(\mathbb F_q)$ can be represented as ${a+bj}$ for $a,b$ belonging to $\mathbb F_{q^2}$ and multiplication given by Cayley-Dickson $$(a+bj)(c+dj)=ac+\bar db + (da+b\bar c)j,$$  where $j$ is matrix satisfying $\bar j=-j$.


According to the  I'm in 11th place with 759 total reputation and 709 quarter reputation. But in reality I have . This could be due to a delayed update of the league (it was correct until 3 hours ago), but it also says that my quarter reputation is 709, which I can't understand. If it counts the last 3*30 days or so, it's way off, so I assume that it counts from 1st of July until 30th of September. But in this time my reputation went up 725 points, not 709. Even with the delayed update, it's still not correct, then it should be 705, not 709. So: Is there a bug or am I missing something? ()


How do I tell why it takes so long to boot up/login?

I'm running ubuntu 14.04 on a pretty new laptop, but it takes longer than I think it should (since the laptop is quite new) to start up and log in for the first time after booting. If I log out and log in again, it works in seconds, but starting up (before the splash screen displays) and logging in for the first time (after it displays the desktop but before the UI and the desktop items appear) take over 15 seconds each. It may or may not be important that I still use lightdm, but have swapped out Gnome 3 instead of Unity. Below are links to my /var/log/dmesg and /var/log/boot.log. Thanks for your help! Thomas


How can I go back to a prior screen layout?

If I have a screen that looks like this.  and I eventually end up with a screen that looks like this.  How can I get back to the screen first shown above with out starting all over?  Thanks


Proof that f : G → H is a monomorphism if and only if ker(f)={e}.

Is this proof rigorous enough? (monomorphism: injective homomorphism) Since f is a homomorphism, recall that for any a,b ∈ f(ab), f(ab)=f(a)f(b). Forward direction (injective homomorphism implies kernel is trivial): let a ∈ ker(f). Then we want to show that a = e (identity of G). f(ab) = f(a)f(b) ⇒ f(ab) = e f(b) ⇒ f(ab) = f(b) ⇒ ab = b ⇒ a = e as required. For the backwards direction: want to show that if ker(f)={e}, then we have a monomorphism. f(a) = f(b) ⇒ (f(a))(f(b))^-1 = e ⇒ f(ab^-1) = e ⇒ ab^-1 ∈ ker(f) ⇒ ab^-1 = e ⇒ a = b. Thus, f is injective.


GParted allocation trouble on Win10/Ubuntu dual boot

I have a dual-boot laptop with both Windows 10 and Ubuntu 16.04.  Currently, the Windows side has too much disk space, and I want to resize things so that the Ubuntu side has more.  Here are my partitions:    Any clue for expanding sda7 with unallocated space?  Any help gratefully received.


I'm specifically interested in estimating the growth of the coefficients $(a_n)_{n\in\mathbb{N}}$ of the Taylor series of $$\exp(1/(1-z))$$ centered in $0$: knowing that $\limsup_{n\rightarrow+\infty}|a_n|^{1/n}=1$, what I'm trying to figure out is whether the growth of $(a_n)_{n\in\mathbb{N}}$ is at most polynomial or super-polynomial... I tried to calculate explicitly the coefficients in order to find some regularity in the sequence of the coefficients, but I quickly got lost in the process.  Thanks in advance for any answer or suggestion.


I've made a basic latex document and the different sections of my content page are framed by a red rectangle:  I have tried on different reader and it's still the same result.  Here is my code :  \documentclass[10pt]{article} \usepackage[left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm]{geometry} \usepackage[utf8]{inputenc} \usepackage{hyperref} \usepackage[utf8]{inputenc} % Required for including letters with accents \usepackage[T1]{fontenc} \begin{document} \begin{titlepage} asd \end{titlepage} \clearpage \tableofcontents \clearpage \section{Test} \section{section2} % (fold) \label{sec:section2} \end{document}   Thx for the help


So I upgraded to Mojave recently and I got some app permission popups requesting access to system events, etc.  I didn't recognise some of these the apps and didn't allow access.  Now it turns out that this is being used by xcodebuild and it is failing.  How can I reset all these app permissions. So that I get the popup again and I can allow this time.  PS: I'm not asking about file permissions.


What is the order-less rendering technique that allows partial transparency?

I've seen somewhere rendering technique that allows order-less rendering of partially transparent sprites/objects.  Though I can't remember what the technique is called, so I'm having trouble Googling it.


apt-get upgrade fails with "failed to fetch - hash sum mismatch" on Ubuntu 14.04

I am trying to update software for my 14.04 version using   apt-get update  apt-get upgrade    But I get this error   E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/e/eglibc/libc6-dbg_2.19-0ubuntu6.13_amd64.deb Hash Sum mismatch   So, I manually downloaded this file   libc6-dbg_2.19-0ubuntu6.13_amd64.deb   And tried to install but could not install due to bad quality.  Following the questions below didn't help.


Let $α$ be an ordinal and $A$ be a set of ordinals. Then $\sup\limits_{β∈A} (α+β) = α+\sup\limits_{β∈A}(β)$

My idea is to prove that $\alpha+ \sup\limits_{β∈A}(β)$ is the supremum of $\{α+β\mid β∈A\}$. While I'm able to prove that $\alpha+ \sup\limits_{β∈A}(β)$ is a upper bound of $\{α+β\mid β∈A\}$, I failed to show that $\alpha+ \sup\limits_{β∈A}(β)\le\gamma$ where $\gamma$ is an upper bound of $\{α+β\mid β∈A\}$. The addition of ordinals is defined as follows $\alpha+0=\alpha$, $\alpha+(\beta+1)=(\alpha+\beta)+1$, and $\alpha+\beta=\sup\limits_{\gamma<\beta}(\alpha+\gamma)$ if $\beta$ is limit. My attempt: For all $\beta\in A,\beta\le\sup\limits_{β∈A}(β)$, then $\alpha+\beta\le\alpha+ \sup\limits_{β∈A}(β)$ and thus $\alpha+ \sup\limits_{β∈A}(β)$ is a upper bound of $\{α+β\mid β∈A\}$. Assume that $\gamma$ is an upper bound of $\{α+β\mid β∈A\}$, then $α+β\le\gamma$ for all $β∈A$. My questions:  Please leave me some hints to complete my proof!  I meet another proof of this theorem on the Internet:    Could you please elaborate on the sentence Since set inclusion is the ordering, the two are equal. I'm unable to understand what this sentence means. Thank you so much for your help!   For an ordinal $α$ and a set $A$ of ordinals:  $\sup\limits_{β∈A} (α+β) = α+\sup\limits_{β∈A}(β)$  $\sup\limits_{β∈A} (α\cdot β)=α\cdot \sup\limits_{β∈A}(β)$


Calculate $\lim_{x\to \infty} \left(\frac {\sqrt[n] 2 + \sqrt[n] 3} 2\right)^n$

Can someone help me calculate the following limit:      $$\lim_{n\to \infty} \left(\frac {\sqrt[n] 2 + \sqrt[n] 3} 2\right)^n$$


Prove the opposite angles of a quadrilateral are supplementary implies it is cyclic.

There is a well-known theorem that a cyclic quadrilateral (its vertices all lie on the same circle) has supplementary opposite angles.  I have a feeling the converse is true, but I don't know how to prove it. The converse states:     If a quadrilateral's opposite angles are supplementary then it is cyclic.   Should I approach this proof by contradiction? Or is it possible to prove by construction?


How to cut holes in an object using another object?

I'm trying to model a M16 but I have a problem with cutting the holes on top of the handguard of the weapon.     As you can see in the picture above, I have tried to cut holes into the handguard (The marked mesh in edit mode) with the object above it (The multiple cylinder one). But I simply can't. I have tried the Boolean modifier but the handguard just disappears and doesn't make any holes. Same with the Knife Project thing. Nothing works, it won't make a hole in it. I also installed the BoolTool 0.2 but that didn't work either...The multiple cylinder object goes invisible and doesn't make any cuts.    In the picture above you can see how I want the cuts to be made. I want the holes of the multiple cylinder object to be there on the handguard when I take it away. Nothing works. The 3 methods I tried with worked on other parts of this model but not on the handguard. It should be the handguards mesh's fault but I can do nothing about it. Is there any solution?


Which of the above forms is "better" for running bash, python etc. scripts? Why can't I just do #!$(which foo)? Is it neccecery to specify full path to env? I gather from  answer, that the path /usr/bin/env is set in stone for all *nix-es, much more than /usr/bin/python3 for example. Is that so?


How do I put /home in a different partition?

Yeah, so I have 2 hard drives, on with 2 partitions(backups and windows), and I have another that also has 2 partitions with only one used. I have Ubuntu on hard drive 2:partition one, but I have come to a point when the /home folder can't hold any more files, but the partition is only about 15% filled up. So I did some researching and figured out that you can put it on a separate partition, but most of the guides were vague on what I needed to do. Could someone give me step-by-step instructions on what I need to do, or even tell me a, easier or different way to fix this /home folder capacity problem?


My Quantum Mechanics' teacher said today on the class that photons don't have mass. I was puzzled because I knew that photons have momentum. If a particle hasn't mass then its momentum sould be $0$ because $p=mv$.   So, how is this possible? Is $p=mv$ only true for Classical Mechanics?


I have the following problem:  int a[2][2]={{1,2},{3,4}}; cout<<a[1]; //the output is 0x29ff18 , which is an address -------------------------------------------------------------------- char b[][6]={"hello","there","now"}; cout<<b[1]; //the output is there, which is value of b[1]   I am wondering why b[1] will not give an address like a[1]...   thanks!


Procedure if a football player, when sent off, refuses to leave the pitch

What would happen when a player, after being shown the red card, refuses to leave the pitch?


How can I add a new tag on stackoverflow?

Stackoverflow give badges for adding new tag. Now I wonder, How can I add a new tag?


How to test the mean difference of two Gamma distributions

If I don't have the data, but only have the estimates of mean and variance of two independent Gamma distributions. What type of test I can use to test the null hypothesis μ1=μ2?


Why is phase space important? As far as I'm concerned, you're just rewriting the dynamic law using momentum instead of velocity and mass. $$m \space \frac {d \ \vec v}{d\ t}=\vec F \\ \frac{d \ \vec r}{d \ t} = \vec v$$ Changed to $$ \frac {d \ \vec p} {d \ t} = \vec F \\ \frac {d \ \vec r}{d \ t} = \frac  {\vec p}{m}$$


The value of the limit  $$ \lim _{n\rightarrow \infty} \sum _{j=n} ^{4n}  {4n \choose j} \left(\frac{1}{4}\right)^j \left(\frac{3}{4}\right)^{4n-j} $$


How to level up fast with the 2015 Compendium c.q. is there any connection between coins and leveling?

I've bought the "The International Five Compendium" for my friends and me, as there is a special thing where you will get more coins if there are five compendium owners in your team as well as a greater chance to level up. However, I'm not getting any points to level up; it feels ultra rare to get points. Are there any other ways how to level up?   Especially, is there any way that we can level up faster with a team?


Compute a fine-grained list of points on a UIBezierCurve

So I've encountered a rather interesting, and likely highly math related problem to do with apple's implementation of the Bezier Curve.  So to cut to the chase, I've got a UIBezierCurve.  I've plotted 3 points to generate an curve.  A left point, the control point and the right point.  Here is an example:  UIBezierPath *bezierCurve = [UIBezierPath bezierPath]; [bezierCurve moveToPoint:leftCorner]; [bezierCurve addQuadCurveToPoint:rightCorner controlPoint:controlPoint];   Where leftCorner, rightCorner and controlPoint are all CGPoints.  Its pretty much an upside down parabola (with the values I am using usually, although this likely doesn't matter, its a parabola in some fashion that would pass the vertical line test).  Like this:    Now what I want to do is gather a list of points along this bezierCurve.  Not just the 3 points I used to create it.  For example, I would like to have, lets say a fine-grained list of probably hundreds of points along the curve that are all evenly spaced.  How I approached solving this:  Hill-climb algorithm.  My implementation of it was basically to start at the left of the curve (left corner) and walk along the curve until I got to the right corner.  While walking 1 unit to the right each time I would try to hug the curve using:  - (BOOL)containsPoint:(CGPoint)point   This worked reasonably well, I got a list of a few hundred points along the curve.  The problem however is they are certainly not equally spaced (equidistant is likely the term I am looking for here).  Where the slope of the curve is relatively flat I get many points, and they are reasonably evenly spaced.  When the slope is large however I get very few points compared to the length of the line in those areas.  Sometimes only a point or two in very steep areas (when there should be many).  How I think I should solve this problem is to go with my hill climb algorithm (doing a pass horizontally, by walking along the x-axis hugging the curve) and add a second pass vertically (walking along the y-axis, hugging the curve).  And then merge those 2 sets of points by sorting by x-value, and then within each x-value I sort by y-value.  However I am thinking there must be an easier, trivial way to do this.  On Android all you have to do on the similar class to UIBezierCurve (android's "Path" class) is:  for (int i = 0; i < pathMeasure.getLength(); i++)  {     float[] point = new float[2];     float[] tangent = new float[2];      boolean success = pathMeasure.getPosTan(i, point, tangent);      if (success)      {             curvePoints.add(new Point((int)point[0], (int)point[1]));     } }   In the end of that I basically have a list of points (curvePoints) that are all equidistant.  PathMeasure is the class that works on android's Path (they are both built-in Android classes).  I was hoping there was something similar to PathMeasure to easily get a list of equidistant points (of fine-grained granularity) on a UIBezierCurve and to avoid having to get heavy into the math of doing this all by hand.  Is there something I'm missing?  Thanks!


Passing an array into another method in java

I have a class called Player that defines the characteristics of a Player. I have a method called readPlayer in another class:   void readPlayer(String playerInfo) {     int j = 0;     int playerNumber = 0;     int playerCount = 0;     String splitPipe = "\\|"; // split by pipe     String splitColon = "\\:"; // split by colon     String splitInput[] = playerInfo.split(splitPipe + "|" + splitColon);     for (int i = 0; i < splitInput.length; i += 5) {         playerCount++; // keeps track of how many players there are     }     players = new Player[playerCount];// initializes array to amount of players     while (playerNumber < playerCount) {         players[playerNumber] = new Player(Integer.parseInt(splitInput[j]), splitInput[j + 1], splitInput[j + 2],                 splitInput[j + 3], splitInput[j + 4]);         j += 5;         playerNumber++;     }     pR.printPlayers(players); //ERROR: NullPointerException thrown here }   But when I try to pass the players array to printPlayers in another class it gives me and NullPointerException error  Details of error:   Exception in thread "main" java.lang.NullPointerException     at ca.bcit.comp2613.PlayerReader.readPlayer(PlayerReader.java:30)     at ca.bcit.comp2613.Lab2.main(Lab2.java:16)   This is my main method:   static PlayerReader p = new PlayerReader();  public static void main(String[] args) {     if(args.length == 0) {          System.out.println("Usage java -jar project.jar <input String>");         System.exit(-1);     } else {          p.readPlayer(args[0]);     } } }   This is my printPlayer method - Nothing special not doing anything with it right now   public class PlayerReport {      public void printPlayers(Player players[]) {      } }


Xrandr custom refresh rate unstable in games and with various applications

I am running ubuntu 14.04 on my Notebook with Nvidia optimus. Default intel drivers, nvidia 340.24  + bumblebee. (Those problems are indipendent from nvidia, they persist with either nouveau and various nvidia drivers and either with bumblebee and nvidia prime) When I connect my CRT to the notebook through VGA port, the CRT tells the notebook the max refresh rate for every resolution is 85 hertz. This is not real. With 1024x768 i can go 90 hz and with 800x600 I can go 110 hz. This also happened on windows, but the solution was simple: i just set the custom resolution in intel panel. Then if i open, for example, quake live, i can set the refresh rate to 90. But there is a difference between the windows driver and Xrandr. In windows, the 90 hz custom res is considered as an extension of the standard 1024x768. In fact, if I choose 1024x768 than, in the refresh slider, I get 60,75,85 and 90 hz. In Xrandr the custom resolution you add with --addmode is considered an entirely different res. So if the standard 1024 can only go 85 hz, and i add 90 hz, all the inferior refresh rates for 1024 are called "1024x768" and you can just make:  xrandr --output VGA1 --mode 1024x768 -r 85   but if you do    xrandr --output VGA1 --mode 1024x768 -r 90   It doesn't work. You have to make:    xrandr --output VGA1 --mode 1024x768_90.00   where 1024x768_90.00 is the name of the resolution you added. This leads to problems. For example, various games try to pick the highest refresh possible. So if it's 110, they still pick 85. And even if you force it through the game it still is 85. Isn't there a way to just add a refresh rate to an already existing mode? Also, Xrandr is having some strange behaviours.  For instance: I do   xrandr --output VGA1 --mode "1024x768_90.00"   And the refresh is set to 90 hz. But, if I open TeamSpeak, Warsow or Ubuntu SDK (and probably other apps i don't know about) the resolution is set back to 85 and LOCKED. This means that while those apps are running I can't have a custom rate. When I close them, i can again. This also happen when you start steam, but steam doesn't lock the framerate. Also, if I happen to use any xrandr command after having set new resolution, it returns 85 hz. To pick 90 hz again, I have to re-use the command for custom res THREE times. Exatly three times. AT the first twos both monitors turn black for a second and then back to 85 hz. The third time, only the crt turns black and goes 90 hz. This also happens with 800x600_110.00, but not three times. (I haven't counted but i'm sure it isn't three)  All this happens both in lightdm and gdm.  Has someone got any clues?  Also, isn't there any proprietary intel driver?  EDIT: I did some research, I would also like a way to disable EDID since all I've found didn't work.


How to install Ubuntu 15 with Windows 8.1

How do I have to make the partitions with Ubuntu 15.0 thus I can choose from the Boot Sector when I turn on the pc. I want to install ubuntu 15.0 with windows 8.1. I have a notebook with a hard disk with 3 partitions: C: with windows 8.1, D: with my personal information with windows and E: only for Ubuntu. Thanks.


Is there a way to add 1 to a variable using "+="?

I am trying to add a value to a variable using the += function. This is the code I am using:  function getAnswer() {     var num1 = Number(document.getElementById('numone').value);     var num2 = Number(document.getElementById('numtwo').value);     var oper = document.getElementById('oper').value;     var numberOfEquation = 0;     numberOfEquation += 1;     if (oper == '+') {         var p = document.createElement('p');         var txt = document.createTextNode(num1+num2 + ' - Equation ' + numberOfEquation);         p.appendChild(txt);         document.body.appendChild(p);     } else if (oper == '-') {         var p2 = document.createElement('p');         var txt2 = document.createTextNode(num1-num2 + ' - Equation ' + numberOfEquation);         p2.appendChild(txt2);         document.body.appendChild(p2);     }     console.log('You did an equation!'); }   I don't know what went wrong.


How can you tell if a given reference frame is inertial?

An inertial reference frame is one in which a particle has constant velocity if and only if has a zero net force acting on it.  How can one determine if a given reference frame is inertial? For example, consider an elevator falling on earth, uniformly accelerating towards the ground. There is a man inside and can see only the interior of the elevator. If he throws a ball horizontaly w.r.t to the floor of the elevator, he will observe the ball moving in a straight line, as the ball has the same vertical acceleration w.r.t to the Earth as the elevator.   If we now place this elevator in the far reaches of the solar system sufficiently far from any planets and we repeat the experiment, the man again observes the ball moving in a straight line.  The problem is, in the first situation, the frame of reference of the man is accelerating with respect to the earth, and there is a real force acting on the ball. In the second situation there is no force acting on ball, but the behavior is the same.  The man has no way of knowing if there is a real force acting on the ball, so he can't determine whether his frame of reference is inertial, right?


Why doesn't Superman lose his powers at night?

I'm sure there are storylines in the comics and/or Smallville TV series where Clark's powers are grossly affected - sometimes weaker, sometimes stronger - due to events such as eclipses, sunspots, solar flares, etc. There's one Smallville episode where after being weakened (I can't remember how) sunlight coming through a window or crack in a wall falls on his skin and has an immediate effect.  If the light of the yellow sun has this effect, sometimes in a such a direct way, how does Clark retain his powers at night time or inside a room without windows?


How can i register domain, with no personal info provided

I want to register a domain for my hosted website and hosted e-mail. I am concerned that if i provide personal info my data will be used by spammers, identity thieves. or other attackers.  I don't want to disclose personal info even to domain registrant. What should i do? Should I just provide fake info into registration form? Or what else?


How to get a string representation of hex?

I tried this:    for(var i = 0x00; i <= 0x88; i++){     i = i.toString();     if (i.length === 1) {          i = "0" + i;     }     // console.log(i.length);     console.log(i);     // console.log(decodeURIComponent("%" + i)); }   but toString() will give the decimal representation.  So the above code is broken.


I created rest resource plugin in a custom module and need to send some JSON data with the request, and access it in the post function. At the moment my post function does not do anything but return some dummy JSON data so I know it is working.  It seems that whenever I try to pass JSON data with the request, it will give me this error: "Could not denormalize object of type , no supporting normalizer found."  If I then try to get this data using file_get_contents('php://input'), it will give me a 403 forbidden error. But if I try to return the same data that I get from file_get_contents('php://input') from the post function, I get the normalizer error again.  I wasn't able to find much information on even making this REST resource and even less on this issue now, so if anyone has any input I would greatly appreciate it, thanks!


Example of a primary ideal that it's not prime

in the course of Algebra I studied the primary ideals, an ideals $I$ of a commutative ring with identy is called primary if $ab \in I$ and $a\notin I$ implies that $ \exists n \in \mathbb{Z}$ such that $b^n \in I$. It is evident that prime implies primary, I'm looking for an example that shows that the opposite is not true.


Is there any way to find out when a table was created in PostgreSQL or Greenplum, other than finding the underlying table and looking at the OS creation timestamp?


When do I use 'to' and 'ing'? For example, the verb is read

Which is the correct form?    Try to read a book this holiday, you might find it interesting. Try reading a book this holiday, you might find it interesting.    So try reading or try to read?   Next question same verb:    I tried reading a book this weekend, but it was too long. I tried to read a book this weekend, but it was too long.


How to test whether $R^2 \geq c$ where $c \neq 0$?

In the following linear regression  $y_{t} = \beta_0 + \beta_1 x_{t} + \epsilon_t,$  I want to test whether $R^2 \geq 0.5$. In R, you can make use the CI.Rsq() function in the psychometric package. The formula it applies is:  $SE_{R^{2}} = \sqrt{\frac{4R^{2}(1-R^{2})^{2}(n-k-1)^{2}}{(n^2 - 1)(n+3)}}$  Then, the 95% CI is $R^{2} \pm 2 \cdot SE_{R^{2}}$.  Does this CI work for time series data?


Let's consider two number $a$ and $b$ such as $gcd(a,b)=1$. Can you explain me intuitively why there exist $n>0$ such as $a^{n} \equiv 1 \space (mod \space b)$  ?


How to filter based on tags in Stack Overflow?

I am quite new to Stack Overflow and I want to help others by answering their questions. Of course, I want to search for questions that I could answer and 'tag' seems to be a good way. However, I cannot find how to filter questions based on multiple tags. The only thing I find is only to select one tag. As I learn rather widely but not deeply, I need to search multiple times in order to find a questions that i could contribute.   Is there a way to have a set of tags such that questions have either one of these tag will appear?   For example, for me, I would want to look into questions with tags (C/C++/Python/Linux/Objective-C/Android/iOS ... )


How can I prove that every group of $N = 255$ elements is commutative?

There was previous task was same but with $N = 185$. And I prove it by showing that number of Sylow subgroups is 1 for every prime $p\mid N$. But there I have some options $N_5 \in \{1, 51\}$, $N_{17} = 1$, $N_3 \in \{1, 85\}$.  I've tried to get contradiction from $N_5 = 51$ or $N_3=85$, but I didn't manage to do it  I understand that it's impossible to have $N_5 = 51$ and $N_3=85$ at the same time.


Questions about books that are helpful in practicing for math olympiads!

I would like you to tell me some books that are very good for math practicing for senior olympiads ( one or two for geometry, one or two books for number theory... or books for every of these) . Also I want to know what you think about these books:  Problems and Solutions in Euclidean Geometry By: M. N. Aref, William Wernick  Challenging Problems in Geometry  by Alfred S. Posamentier  (Author), Charles T. Salkind (Author)  Challenging Problems in Algebra  By: Alfred S. Posamentier, Charles T. Salkind  Combinatorial Geometry in the Plane By: Victor Klee, Hugo Hadwiger, Hans Debrunner  One Hundred Problems in Elementary Mathematics By: Hugo Steinhaus, Martin Gardner  100 Great Problems of Elementary Mathematics By: Heinrich Dörrie  Thank you very much ! And please tell me the best books I can find on Dover or Amazon !


Number of bins when computing mutual information

I want to quantify the relationship between two variables, A and B, using mutual information. The way to compute it is by binning the observations (see example Python code below). However, what factors determines what number of bins is reasonable? I need the computation to be fast so I cannot simply use a lot of bins to be on the safe side.  from sklearn.metrics import mutual_info_score  def calc_MI(x, y, bins):     c_xy = np.histogram2d(x, y, bins)[0]     mi = mutual_info_score(None, None, contingency=c_xy)     return mi


How to download MacTeX 2011 now that MacTex 2012 is available

Is there a way to download the older MacTeX-2011? I am transitioning to a new mac and would prefer to have both MacTeX2011 and the 2012 version available.  I thought I was in luck when I found the the page: , but sadly the link does not work and neither do the mirrors.


How should we deal with flags for chat messages for rooms that are in a different language?

I've posted an answer touching on this before at :     Here's the problem: I am mostly in The Bridge, the gaming chat. I see   chat flags from the Russian, Chinese, Spanish, French, Ukrainian,   Latin, Korean, Italian, Esperanto, Japanese and Portuguese stacks. I   don't speak any of these languages and don't want to learn them   either, yet I am still asked to review chat flags from these stacks.      I don't know what they are saying. It could be a dumb joke, it could   be insults thrown at each other, or they could be conspiring to end   democracy. I just don't know. I am just not qualified to review these   messages, and I'm fairly sure that the vast majority of the other chat   users are in the same situation, simply because they don't know what   is being said.      I don't want to press valid or invalid, because of the chance of false   positives. and if enough people press "Not Sure", the flag gets   invalidated as well, so I don't really see how that's an option   either.   Note that some of these languages only rarely throw me chat flags, and some of them I only speculate they might be thrown. I don't think I've seen an Esperanto or Latin flag yet, but I regularly see Russian flags.  Since that didn't get any real interactions, I wanted to specifically ask this question manually: How should I deal with chat flags for languages I don't speak?


Proof of normal equation in regression using tensor notation

I'm struggling with a proof of the normal equation, so I posted a  which hopefully will get resolved soon. However, I mentioned there that I'm uncomfortable with the proofs dealing with , particularly when it comes to derivatives of product of vectors or product of matrices and vectors.  Furthermore, there are a couple of "layout conventions" which are not even used consistently. Because of this, I thought I could get rid of all that insanity by using tensor notation instead.   In relation to the normal equation question, I would be very interested in looking at a proof of this equation (here you can see the ):  $$\beta = (X^{T}X)^{-1}X^{T}{\bf{y}}$$  using tensor notation.  And as a more general request, I'd like to get an advice on the issue of dealing with matrix calculus and derivatives. Particularly, I want to hear about your approach when you have to calculate something of this kind given the inconsistencies in notations and non-intuitive nature of some identities. Do you consult Wikipedia or some handbook every time you want to calculate a derivative of some product of vectors or matrices? Do you memorize some recurrent identities? Do you know an alternative procedure?


I am 27 years old I get along with my 28 year old brother /  28 years old brother.   When should I use " year old" and "years old"?


Last year I purchased a car with a cosigner. I've made all payments on said car. Now that his sister inlaw and I are broken up he has taken the car. He's made no payments and has hidden the car from me. Is that legal?


How can I overwrite the hosts file in Windows 7?

I can't overwrite my hosts file in Windows 7.  I open Notepad as an administrator and open the hosts file (C:\Windows\System32\drivers\etc) as an administrator.  96.44.181.245 www.Google.com   has been put in there along with a host of others. Whenever I remove it and try to overwrite the file, it will not let me. It says access denied even though I am doing it as an administrator.  Any ideas?


I'm using Ubuntu 18.04.2.  I cannot find Ubuntu Software (or Software center) in my dash. I have tried to install it with the following commands:  sudo apt-get update sudo apt-get upgrade   then   sudo apt-get install software-center*   After all the processes have run I get the following message:  $ sudo apt-get install software-center Reading package lists... Done Building dependency tree        Reading state information... Done Package software-center is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'software-center' has no installation candidate   I think the problem might be related to my earlier attempt to install the MATE desktop environment. Since it failed I purged the installed packages. I assume that when I purged MATE packages I also deleted the software center and something that is needed its re-installation.


Do I need a transit visa for 1 hour transit at San Francisco airport?

I hold a Malaysian passport and am going to Mexico from Singapore for a work event. I was sent there for a few days and all the tickets have been purchased by the company. Including the one-way ticket back from Mexico to Singapore. BUT, the return ticket from Mexico to Singapore has a transit, which is at San Francisco. The transit is only 1 hour 25 mins and the luggage has been checked in. There is no need to take luggage or anything since everything has been done.    Do I need the visa for the short transit time?    The company did not say anything and does not know about it. I have read about C-1 transit visa, but there is not much time left before I have to go.


A random variable that induces a $\sigma$-algebra the same as the one in the sample space

Consider a probability space $(\Omega, \mathcal{F}, P)$ where $\Omega$ is the sample space, $\mathcal{F}$ is the $\sigma$-algebra of $\Omega$, and $P$ is the probability measure. Let $X:\Omega\to\mathbb{R}$ be a random variable, inducing a $\sigma$-algebra $\mathcal{F}_X=\{X^{-1}(B)\mid B\in\mathcal{B}\}$ where $\mathcal{B}$ is the Borel algebra on $\mathbb{R}$.   Suppose we have another random variable $Y$ as well as the induced $\sigma$-algebra $\mathcal{F}_Y$, the conditional expectation can be defined as $E[Y|X]\stackrel{\text{a.s.}}{=}g$ where $g$ is determined by $E[YI_A]=\int_A g(s)P(s)\,\mathrm{d}s, \forall A\in \mathcal{F}_X$ according to Radon–Nikodym theorem.  I wonder what will happen if $\mathcal{F}_X=\mathcal{F}$ already? It looks like $E[Y|X]=Y$ so $X$ is kind of independent of any arbitrary random variable but I am not sure. Or, can anybody give an example of this kind of $X$? Thank you.  Some references:  by Mark J. Schervish.


Solidification by the application of heat

When you add heat to a liquid (or a fluid), can it be solidified? If not, why in the world does an egg's stuffs become solid (or at least no more a liquid) when you 'boil' it in water?


Why is User Meta not updated automatically

I've been doing some WordPress development for the past few years and never really used the User Meta API within WordPress.   Now with one of my projects requiring to store data unique to a user, I needed to look into it.   One thing I've noticed when I looked at the database is that add_user_meta just creates duplicates when there is already an existing one.   My question is, why does this not override any existing key? And we should check first if the Meta Key already exists and then use update_user_meta? Therefore creating an extra custom function if you would like to overwrite this by default.


I just had a tag wiki edit approved here:    But only one person approved it. I thought two people were meant to approve edits?


Sudden proliferation of 'Too many open files in system' errors. Can't do backup

My computer is showing signs of impending hard drive disaster. Time Machine recently killed all my backups and has not cooperated since. I tried backing up with Super Duper, but it quit after about a minute. The Super Duper log reported 'Too many open files'. I attempted a backup with Rsync and it hummed along fine for about an hour until it too started spitting out 'too many open files' errors and not copying anything. Carbon Copy Cloner worked longer but skipped a bunch of files.   Based on other posts here, I have maxed the open file limit and am running rsync again.  Though this process has not completed yet, I am posting here because I do not feel optimistic. I am seeing this 'Too many open files' error all over the place suddenly, so I fear that maxing the file limit is a workaround at best. (assuming it even works)  The first time I saw the 'Too many open files' error, I was running a shell script that involved uploading an archive to a remote server and unzipping it. I had done this numerous times before without incident. The number of files hadn't changed. I got this error again while running a Python script to build files using Jinja2. This was also a script I had run previously without any problems.   The sudden proliferation of errors of this kind coincides with a general degradation in the performance of my computer, which most frequently takes the form of app and system freezes that can only be resolved with forced restarts. At the very same time rsync choked this evening, Safari was hanging also. As ever, Force Quit was not available and so I had to force a shutdown. There are also more crashes than usual. A recent Apple update that crashed my computer on restart seems to have made everything much worse.    Carbon Copy Clone's Disk Center said my Hard Drive seemed to have Read/Write errors, though the Apple Hardware Test and Disk Utility have reported nothing out of the ordinary. Activity Monitor also does not show anything unusual, though I am not an expert in interpreting its output. I think there may be more disk activity than usual. CPU and Memory stats all seem fine.  Any ideas on what's going wrong here? Is it appropriate to assume the hard drive is the problem? It came with the computer, which is now four years old. Any other possibilities? Any recommendations on how to get everything backed up before the drive -- or whatever -- dies altogether?  I am running Snow Leopard on a mid 2010 15" MacBook Pro. I am attempting to back up to a brand new portable USB-connected portable drive which seems to work fine.


For some hours now, I am trying to accomplish the following scenario:  I have a views_slideshow that uses the cycle plugin, it shows 3 slides at a time that each contain a title, body, image and read more button. Read more button shows a modal window (twitter bootstrap) popup.  Since views_slideshow is not responsive out of the box, I am trying to create an AJAX mechanism that loads the correct view display, based on the width of the screen.  I have created 2 views displays in my slideshow view.   One showing 3 slides One showing just 1 slide.   I created a small block that contains an AJAX wrapper (div) that I will fill with the correct view, based on the width.  My block:  function _topics_block_render() {   drupal_add_js(drupal_get_path('module', 'my_module').'/js/topics_block.js'); return '

'; }   My JS file:  (function ($) {   var checked = false;   Drupal.behaviors.topics_block = {     attach: function (context, settings) {       var width = $(window).width();       if (width <= 768) {        var size = '1_by_1';       }       else {         var size = 'default';       }       var url = Drupal.settings.basePath + '/get-topics/' + size;       $.get(url, function (data) {         $('#topic-ajax').html(data);     });     if (checked == false) {       checked = true;       Drupal.attachBehaviors();     }   }  }; })(jQuery);   My AJAX page callback  function topics_get_topics($size='default') {   $view = views_embed_view('topics', $size); return print render($view); }   As soon as I load the view into my page manager page without AJAX all is working perfectly fine.  Anyone ever tried to accomplish anything like this?  As a sidenote, I am not using owl carousel because of a JS conflict with the Bootstrap modal window popups...  Many thanks in advance  EDIT  The questions does not appear to be a duplicate of    I have tried the proposed solution there, but the result is exactly the same. The view is shown properly, but the slideshow does not work.  Some additional hours of debugging have led me to figure out that the Drupal behaviors are actually being reattached properly, but Drupal.settings.viewsSlideshowCycle[fullId]; is not being called properly. When you investigate Drupal.settings.viewsSlideshowCycle, you will see that it contains all the view id's from slideshows on the page. That is not being updated properly after the ajax event.  The only extra thing that is worth mentioning, is that somehow the Quicktabs module seems to manage to load the views_slideshow view via AJAX.


Bash: Set variable equal to a string substitution

I'm trying to replace a substring in $1 with another, AND set it to a variable.  (saved as testStringReplacement file)  #!/bin/bash secondString="Sara" myString= "${1/Suzi/$secondString}" echo "myString = $myString"   Then when I run this:  bash testStringReplacement Suzi   I get this:  testStringReplacement: line 3: Sara: command not found myString =    Can anyone see what I'm doing wrong? I want myString to be a string equal to the value of the string substitution (in this case, it should get set to "Sara"). It looks like it's doing the replacement, but trying to then execute it as a command.


Where can I find a list of English paronyms?

Can anyone point me to a (more or less) complete list of English paronyms (affect/effect, farther/further, alternately/alternatively, interested/interesting, corrupted/corrupt, adopt/adapt, continuous/contiguous...)?  Wikipedia has a list for everything, but . Google is not exceptionally helpful, either. After trying out half a dozen different search strings, I have learned quite a lot about French, German, and even Russian paronyms, but close to nothing about English ones.  Any pointers?


Give a warning instead of silently deleting

I just wrote an answer which contained the sentence        You need an IQueriable<TypeA>, but you have an IQueriable<TypeB>   Upon posting, the "invalid markdown tags" where silently deleted, so the actual post contained     You need an IQueriable, but you have an IQueriable   which sounds like a madman talking.  Sometime later I discovered the error, and added backticks, which is probably the correct way to format it ( You need an IQueriable<TypeA>, but you have an IQueriable<TypeB> )  Not too sure whether it adds to readability if every variable and type name in a paragraph has a different font and shading than the surrounding text, but I digress. Escaping each bracket with &lt; and &gt; is of course possible too.  But could we please have a warning when an invalid markdown tag is detected, instead of silently removing part of the answer?    This obviously will not help if the answer contains only valid markdown tags, which are not intended as markdown tags, but it would not hurt in that case either.


Comma after quotation mark in middle of sentence

Do I need a comma after "Go!" in the following sentence?     When I said, "Go!" all the children ran up to a card and picked it up.   Does the sentence look right (with a lowercase a) or should I reword it and use the following sentence instead?     All the children ran up to a card and picked it up when I said, "Go!"


Text in Hide Communities page is misleading

The 'Hide Communities' page in 'Edit Profile and Settings' says:  Choose which communities will appear in the Communities and Top Network Posts sections of your profile. Hiding a community means other users will not see it in your Communities list or Top Network Posts. It does not, however, mean your activity is private.  Although this explicitly states posts from hidden communities will not be visible in your top network posts, the top posts tab on your network profile still shows posts from hidden communities. While technically this may not be incorrect, since the network profile doesn't list them as Top Network Posts, instead it calls them Top Answers and Top Questions, this is still misleading. IMHO the text should either be changed to make clear that this settings does not affect the network profile, or (as I'd prefer) the network profile should be changed to not include posts from hidden communities. (Before anyone starts pointing out, yes, I do understand my activity is not private. But that doesn't make the text on that page any less misleading.)


Do I need a DSL splitter if my connection is internet only?

We've signed up for a internet connection that doesn't include a phone package.  Can I get away with not using a splitter?


biblatex: displaying all authors of multi-author works in the bibliography

I'm using the  package to add citations and a bibliography to my LaTeX document. I've noticed that only the first author plus "et al." is displayed for works with more than three authors. That's fine with me for in-text-citations, but I'd rather have the complete author information in the bibliography. How can I do that?


The purpose of the final xor in Davies–Meyer scheme

In Davies–Meyer hash construction scheme each block is xor'ed with the previous block cipher text. Why? The only obvious flaw I see in a scheme without this xor is the possibility to reconstruct a hash for a head of a message if the tail is known. Is it the only flaw or it also prevents other attacks?


Intersection of powers of an ideal in a Noetherian ring

Given a Noetherian ring $R$ and a proper ideal $I$ of it.  Is it true that $$\bigcap_{n\ge 1} I^n=0$$ as $n$ varies over all natural numbers? If not, is it true if $I$ is a maximal ideal? If not, is it true if $I$ is the maximal ideal of a local ring $R$? If not, is it true under additional assumptions on $R$ (like $R$ is regular)?


Why does a circle of light appear when I shine a laser pointer at a wire?

When I point a laser at a wire , a circle of light appears on a wall behind it . why this happens.  What is the circle of light and why does it appear?  Could anyone give some tips on what I should search for or any references?   wire have diameter 3.17 mm   PS.I don't good at English,,, sorry   Wire perpendicular to the projection screen   Laser under on the wire Then born circle of light


Why is moonlight less colourful than yellow light?

Just what the title states; and this isn't an original question:  On full-moon, moonlight is almost as bright as mid-dawn; yet there is hardly any colour visible. This is not the case with sunlight.   I'm curious to know why this is the case.


What are the requirements for a (beta) site logo?

Someone on Sustainable Living SE  to hold a 'new logo' contest so we can make the beta site a bit more distinct and recognizable. From this  I understood that Stack Exchange sites can propose a new logo, although that post doesn't say if this only applies to mature sites or also beta sites. In any case I'd like to know what exactly the requirements are for a site logo? Are there specific dimensions for example? Minimum of padding?  From a look at  I noticed that all logo's there are 48x48 pixels (favicon.ico is 32x32). Also most logos have several pixels padding, although the exact amount seems to vary.  Furthermore I see that the dimensions of a logo on a site itself varies; the logo on Biology SE is 139 x 50 pixels, Network Engineering has 218 x 51 and World Building has 238 x 37 pixels for example. Is it correct to say that logo dimensions should be roughly 240 x 51 as a maximum?


apt-get update throwing "are you root" error

When I execute apt-get update I get the following error:  E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) E: Unable to lock directory /var/lib/apt/lists/ E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?   How do I resolve this?


Should Stack Exchange have a spam filter? (Does it already and I’m not aware?)

Of course spam posts should be flagged, and if they come up in review, rejected.  Over on Mi Yodeya during the past 24 hours I’ve helped delete and reject four spam posts through the review queue, and I can only imagine that others were posted over the course of the night. To clarify, I’m referring to edits and answers that were about 99.274% words that I don’t think any decent person would use in everyday discussions, even if someone got them really angry.   Thing is, if the only thing we can do as a community is delete his posts/reject his edits, and as moderators to ban his account, can’t he just create a new account? Further, some of these posts . Maybe the mods can ban his IP address? I’m not one, so I have no idea what kind of power they wield in that respect. But he can always just get a new computer.   I don’t have the numbers to see what this is like on other sites, but I know this doesn’t happen often on Mi Yodeya. I wonder, then, whether this is the optimal solution, or whether an automatic spam filter be put into place - say, a new review queue that automatically deletes posts or rejects edits that can then be voted on whether to be reposted if it’s a false alarm. Perhaps it can be automatically triggered by certain keywords (like ****, %$#^, or @$+^).   Now, all of these posts that I voted to delete/reject came up in Suggested Edits and First Posts. Maybe such edits would show up in Low Quality in general, and that just wasn’t the case here because of precedence rules. I don’t know. But perhaps the above would be a better solution, if this is even as big of a problem as I’m making it out to be.


how to verify that new user was added to group?  example  by this syntax I will add the user dog to group - white_house_group   usermod -a -G white_house_group dog   after that , how to verify that user dog is really in white_house_group group?


I created a Connected App in a dev environment and now I need to duplicate it in a test environment. Can this be done via a changeset, VS Code, or does it need to be done manually? Thanks,


I am new to Ubuntu and I just started learning bash. How can I open bash files through terminal?


Excute external program directly without temp file

Is there any way to execute a program and have it directly insert it's stdout in to the tex stream without having to output to a temp file and then input that file? [I've tried some of the code in the link but it does not work, specifically the 2019 update code).  If not, is there an easy way to generate a random file name that won't collide and then input it and delete it? Ideally though this is not the method I'd like.  I can use the write18 method and input but it is not desirable.


If Wolverine regenerated a limb, would it be covered in adamantium?

We've discussed Wolverine regenerating his body after nuclear explosions, but his adamantium-laced skeleton was left in tact afterwards.  After Magneto ripped the adamantium from his body, Wolverine has had his bone claws broken and they grew back due to his healing factor.   In , Cyclops was able to break adamantium with his optic blasts.   Assuming his adamantium covered skeleton was broken by something other than  (which inflicts wounds which do not heal), would his body regenerate the adamantium covering as well?


How to redefine a csc function to display cosec?

I need help to define the csc function to display as cosec. I've tried \textrm{cosec} \theta, but this does not give the same output as \sin \theta, because the space between the theta and the function is closer for cosec.  Any other better solution?  Thanks in advance.  Regards, James


Should "Edits must be at least 6 characters" apply to edits that affect only code?

Often code mistakes are only 1-3 characters but completely invalidate the code if uncorrected.  Are the reasons for this restriction in regular edits documented and well known?  Do these reasons apply to coding corrections (esp. by original author)?  Is there a reason we have this unfiltered restriction on code primary stacks like Stack Overflow?  Is this feasible to change?