what's different between each and collect method in Ruby
Array#each vs. Array#map
Rewriting Triple Integral in different order How can I rewrite, say: $$\int^1_0\int^{z^2}_0\int^y_0{f}dxdydz$$ In the orders $dzdxdy$ and $dydzdx$?  Would I have to solve this triple integral all the way or is there a simple way to do this? How to fix AppArmor `could not open` error when installing php+mysql? Can I use Divine Intervention or Wish to regain Wish? After reading this question on , I started wondering if there are ways for them to regain that ability.  I figured a Divine Intervention is probably strong enough as that is a god's power, as well as a second caster casting wish to undo the first wish (and thereby undoing its effects).  Are these valid ways of regaining the ability to cast wish? Which one is correct?     There is an apple and an orange..   or     There are an apple and an orange?" Converting from DMS to DD using Python in Field Calculator? I need to convert lat/long that is expressed as degrees, minutes, and seconds in the data into decimal degrees. For example, in the data, they are listed as N335042.06 in the Latitude column, and W86031.04 in the Longitude column. I have done this problem before where I created a script which converted DMS to DD, and vice-versa, so I guess I could use bits from that. But the problem I'm having is how to ignore (for lack of a better word) the 'N' and 'W' in the data? Can I skip them? And DMS are listed all together without any symbols or spaces.  Can I use len(), range(), split() to specify what part to read from the value? For example, can do the following?  N335042.06 where, 33 = degrees 50 = minutes 42.06 = seconds ...?  I came across  ESRI article, but it's in VB. Will probably use it as a reference but some of the terminology/syntax is different from Python.  Final code that works!   # Pre-logic def latDD(x):   D = int(x[1:3])   M = int(x[3:5])   S = float(x[5:])   DD = D + float(M)/60 + float(S)/3600   return DD  # Expression latDD(!Latitude!) mod_security: another rule with same ID I have installed httpd 2.2.15 on CentOS 6.5 (minimal installation with no cPanel) with modsecurity 2.8. When I am starting httpd I am getting this error:  Starting httpd: Syntax error on line 23  of /etc/httpd/conf.d/modsecurity.conf:  ModSecurity: Found another rule with the same id   The line 23 is:  "id:'200000',phase:1,t:none,t:lowercase,pass,nolog,ctl:requestBodyProcessor=XML" Can someone please explain the difference between the protected and protected internal modifiers in C#? It looks like their behavior is identical. iPhone screen randomly turns on After installing iOS 10, I found that the screen on my iPhone 6s turned on at seemingly random times, and it slightly annoyed me. I now know that this feature does what it is supposed to (turn the screen on when the phone enters certain positions), but I want to disable it.  Is there a setting can I use to do so? ctrl + a doesn't work in browsers The combination for select all (Ctrl+A) doesn't work in a browser (either if we speak about firefox or chromium). It doesn't work if I try to clik in to the adress bar nor if I try to use it to select what I've written in google search bar at google.com. When I press Ctrl+A it simply takes the cursor before the first letter.  This doesn't happen when I use a text editor software like Libre Office. There the shortcut does what's supposed to do, selecting all the text.  What could be the problem? Add new JDBC Driver to connect Mathematica to SQL database Explicit vs implicit SQL joins Getting CalloutException when testing Batchable class with Callouts and HttpCalloutMock Why are NginX and Lighttpd not affected by Slowloris? I am investigating the vulnerability to  and I think I understand how and why this sort of attack works.  What I don't understand is why Lighttpd and NginX are not affected (according to the same article as linked above). What do they make so different? Book for proof writing Calculating p-values for two tail test for population variance A sporting goods manufacturer claims that the variance of string tensions for any decent tennis racquet should be about 9 pounds. The string tensions of 18 randomly selected tennis racquets produced a variance of 8.13 pounds. Find the p-value to test the manufacturer's claim (assume the population is normally distributed).  I tried attempting the question as follows: ${H_o}: {\sigma ^2} = 9$ ${H_1}: {\sigma ^2} \ne 9$ We are also given the following: $n=18$ $s^2 = 8.13$ Test Statistics: $\chi^2 = {{(n-1)S^2}\over{\sigma^2}}$ Calculating Test Statistics under $H_o$ gives us: $\chi^2 = {{(18-1)8.13}\over 9} = 15.35667$  For calculating the p-value I proceeded as follows: $p-value = 2\min\{P[\chi^2&gt;15.35667],\ P[\chi^2&lt;15.35667]\}\ =2\times 0.430192 = 0.860384$  I am not certain if my method for calculating the p-value is correct or not. Can someone please tell if the above process is valid?  Thanks in advance! Eclipse not working in 16.04 I continue to find it amazing that something as “bulky” and macroscopic as a static magnetic or electric field is actually a manifestation of virtual photons.  So putting on your QFT spectacles, look closely at the space near the pole of a powerful magnet – virtual photons! Now look between the plates of a charged capacitor – virtual photons again!   But if it’s all virtual photons, how do we get the difference between a magnetic and electric field?  [This question needs the tag "magnetostatics" as well]. I've used Ubuntu before, but I'm still very new. I just installed 16.10 on a new computer yesterday, and the Wi-Fi has been considerably slower than my Windows laptop. I put the computer together mainly to play Dota 2, and I experience decent ping but constant 5%-10% packet loss while playing. Occasionally, after the computer has been left on for a while, the Wi-Fi connection will drop completely- I can still see networks in the drop down menu, including my home network, but my computer will not reconnect without a reboot. I've looked all over for a solution, but my inexperience has prevented me from getting anything to work. My Wi-Fi card is a Ralink RT2561/RT61, here's some info  The output of sudo lshw -C network   *-network                          description: Wireless interface         product: RT2561/RT61 802.11g PCI         vendor: Ralink corp.         physical id: 6         bus info: pci@0000:01:06.0         logical name: wlp1s6         version: 00         serial: 00:0e:2e:de:df:c0         width: 32 bits         clock: 33MHz         capabilities: pm bus_master cap_list ethernet physical wireless         configuration: broadcast=yes driver=rt61pci driverversion=4.8.0-22-generic firmware=0.8 ip=192.168.1.107  latency=64 link=yes multicast=yes wireless=IEEE 802.11         resources: irq:17 memory:dfef8000-dfefffff   Here is the output of sudo iwconfig:   *-network                          description: Wireless interface         product: RT2561/RT61 802.11g PCI         vendor: Ralink corp.         physical id: 6         bus info: pci@0000:01:06.0         logical name: wlp1s6         version: 00         serial: 00:0e:2e:de:df:c0         width: 32 bits         clock: 33MHz         capabilities: pm bus_master cap_list ethernet physical wireless         configuration: broadcast=yes driver=rt61pci driverversion=4.8.0-22-generic firmware=0.8 ip=192.168.1.107  latency=64 link=yes multicast=yes wireless=IEEE 802.11         resources: irq:17 memory:dfef8000-dfefffff   I'm at a loss, I'm very bad at this. If any additional info is needed I can provide it (Why) Has Kohonen-style SOM fallen out of favor? only display df lines that have more fs usage than 80% root@SERVER ~$ df Filesystem  512-blocks  Free    %Used   Iused   %Iused  Mounted on /dev/YXCV   655360      365632  45% 6322    13% / /dev/ASDF   3801088     670648  83% 41759   32% /usr /dev/ASR    1048576     500496  53% 5555    9%  /var   How can I pipe the df command's output to only display lines that have more usage than 80%?  e.g.: it would only display:  /dev/ASDF   3801088     670648  83% 41759   32% /usr