If I am not wrong Generic collection stores the objects of specific types. For example, List&lt;String&gt; stores objects of only String types. Also String[] arr = new String[size] stores the objects of String types. Both also support IEnumerable interface. So I want to know the differences between Generic Collection and Arrays of Specific types.
MyClass[] array; List&lt;MyClass&gt; list;   What are the scenarios when one is preferable over the other? And why?
I'd like to be able to easily transfer large files wirelessly, fast, between Android devices - preferably without requiring root.  As a secondary objetive, it wouldn't hurt if the same solution could be used, to transfer files between the Android devices and a Windows PC.   Specifically, I'm trying to exchange files between my Nexus 7 (Android 4.2.2) and Samsung Galaxy S2 (Android 4.0.4).   Bluetooth is simply too slow, so that's out of the question Transfer via the Internet is also not an option, hence so is cloud-based solutions Only Nexus 7 supports NFC, so that's out too  looked promising and very simple, but does not work on "Devices that don't have WiFi Tethering setting, such as the Nexus 7"   Wi-Fi direct ( and up) seems to be a decent lowest common denominator between my two devices, however...  Galaxys S2's native Send via Wi-Fi Direct sees the Nexus, but seems to get stuck in the "Connecting..." most times. When there finally seems to be breakthrough, I get "Waiting..." and a spinning circle. Even if it worked, it would only allow me to send from the Galaxy S2 to the Nexus 7, as a similar option os not present on the Nexus 7.  J4velin's  is no longer available in the Play Store, with the following explanation:     WiFi Direct drivers are broken on many devices, which led to users leaving negative reviews for this app. As I don't see any sense in keeping a free app published when only getting 1-star-ratings (for an issue which only your device manufacturer can fix), the app is no longer available at the Play Store.   Nick Adams'  seems flaky at best. Invations from Nexus 7 to Galaxy S2 are never received. Invitations from Galaxy S2 are mostly received, but even when accepting promptly, the peers doesn't always show as connected. When they finally do, usually after quite a long wait, I can select a file to send but it's never transferred -  "Transfer failed" it says almost immediately in the notification bar.  budius inc's  is working slightly better, but still very unreliable. I actually managed to (occasionally) send files both ways, but never when attempting connection from the Nexus 7. To send from the Nexus 7 to the Galaxy S2, I had to go through this akward manoeuvre:   Share the file on the Nexus 7 via the WiFi Shoot intent Start the Receive WiFi Shoot app on the Galaxy S2 Invite the Nexus 7 from the Galaxy S2 (never the other way around!) Accept the invitation on the Nexus 7 Press the Shoot button on the Galaxy S2   Take the whole switching back and forth between devices, and garnish with random delays or failures in any step of the process...  Is there really no easy, reliable, fast way to transfer files directly between different Android devices?  Generally, my experience with Wi-Fi Direct is all but positive...   A device often won't even see a device lying next to it Sometimes, it will see the other device, only to have it disappear from the list, before I have the chance to connect When I do have a chance, invations are not realiably received (from Galaxy S2 to Nexus 7 mostly reliable, but never worked the other way around) When invitations are received (and accepted), a partnership rarely manages to be setup ("invited" or "connecting") And even when that happens, some apps can't seem to transfer files through it...   *Sigh*  Maybe J4velin's explanation pretty much sums up the sad state of Wi-Fi Direct on Android, which otherwise seemed as the best solution to my quest? A group $G$ with $G'$ abelian and every abelian normal subgroup finite Let $G$ be a group such that  $G'$ abelian  and any abelian normal subgroup of $G$ is  finite. Show that $G$ is finite. What is Skynet's ultimate goal after defeating the resistance? Is it stated in any expanded universe what Skynet's plans were after wiping out the Human race (assuming that was its plan)?  Maybe space travel to colonise different planets or something else entirely? I'm trying to prove that the following set ($B$) defined by an ellipse is convex, but I am getting stuck.  $$B = \left\{(x_1,x_2):3(x_1-3)^2+2(x_2-3)^2 \leq 1 \right\} $$  My sad attempt:  $$ \textrm{Let }x,y \: \in \: B \:, \: \lambda \: \in \: [0,1]$$  $$ \lambda x+(1-\lambda)y=(\lambda x_1+(1-\lambda)y_1,\: \lambda x_2 +(1-\lambda)y_2  )$$ $$3(\lambda x_1 + (1-\lambda)y_1 -3)^2+2(\lambda x_2+(1-\lambda)y_2-3)^2=3(\lambda ^2x_1^2 +(1-\lambda)^2y_1^2+9+2\lambda x_1(1-\lambda)y_1-6\lambda x_1 -6(1-\lambda)y_1)+2(\lambda ^2x_2^2 +(1-\lambda)^2y_2^2+9+2\lambda x_2(1-\lambda)y_2-6\lambda x_2 -6(1-\lambda)y_2)$$  and this is where I have lost all confidence in proving it. I was able to factor some of the terms into the form $(\lambda x_1 -3)^2$, $((1-\lambda) y_1 -3)^2$, $(\lambda x_2 -3)^2$, and $((1-\lambda) x_2 -3)^2$, but I don't think that helps the situation any. [Probability]need help to understand the following expression So assume $Y$ and $X$ are exponentially distributed with parameters $y_1$, and $x_1$ respecitively.  assume c is a constant.  I am having huge trouble to understand the integration of the following expression.  $P(Y&lt;c/u(X))$  $=\int_{t}^{\infty}f_X(x)\int_{0}^{c/u(x)}f_Y(y)dydx +\int_{0}^{t}f_X(x)\int_{c/u(x)}^{\infty}f_Y(y)dydx$  where t is the cross-point that $u(x)$ change sign    here $c/u(x)$ is given by the plot below, t is the point crossing the zero:   Confusion:   I don't understand the second integration of the second term "$\int_{c/u(x)}^{\infty}f_Y(y)dydx$", this isn't right because Y an X only defined for y>0, and x>0. So it's the first quadrant in this plot. Possible to get type of an aliased type in c#? Type.GetType("System.String")   Is there a lookup for the aliases available somewhere?  Type.GetType("string")   returns null. Windows 10 100% Disk Usage after Startup After startup for 5 minutes my system is very slow. The Task Manager shows that the disk usage is at 100%. (Later this number is around 2-4 %, but sometimes for 1-2 minutes go up again at 100%.)  I searched a lot on Google. For example I read , and also other pages. I opened two topic on Microsoft answer.  and one in Hungarian.  But I didn't found the solution yet. So I would like to ask Community's help. :)  Here the steps I already done:   I disabled everything at startups (including services) and the issue is the same.  I disabled Prefetch and Superfetch, the Baground Intellingent Transmission, Windows Search and Windows Defender but the issue is still persists. I made a health check on HDD, I made defrag and file system error check, but there are no errors. Also I tried to reinstall the HDD's driver. I made a full hardware check up, with no errors. The Windows and all the drivers are up-to-date. I tried a clean start. The issue is the same. I deleted Dropbox and all antivirus. I turned of the MSI mode.      I using also Linux, where this error is not occurs. Good to know, that Windows had 4 partitions, but I deleted 2 of them for the Linux. I don't know what partitions was these but both was only 10 - 20 MB.  I using a Dell Inspiron 15R SE 7520 with Windows 10 Home.  Personally I think it can be the Intel Rapid Store Technology "driver", because the problem started around when I installed it. (However I'm not sure.) And my hardware not supported yet by Intel, so I have no the newest driver. However I deleted Intel's software and driver and the issue is the same.    Thank you in advance for your assistance! Can't run a shell script So I have this script:  #!/bin/bash # Flips the screen (hopefully)  syntax_error=0 orientation=0  current_orientation="$(xrandr -q --verbose | grep 'connected' | egrep -o  '\) (normal|left|inverted|right) \(' | egrep -o '(normal|left|inverted|right)')" case $current_orientation in         normal)                 current_orientation=0         ;;         left)                 current_orientation=1         ;;         inverted)                 current_orientation=2         ;;         right)                 current_orientation=3         ;; esac  if [ $current_orientation -eq 0 ]; then         orientation=2 fi  if [ $current_orientation -eq 2 ]; then         orientation=0 fi method=evdev  # LENOVO S10-3t CHANGE ==&gt; Hard Coded my device number to 11!!!!!!!!  device=11  swap=0 invert_x=0 invert_y=0 real_topx=0 real_topy=0 real_bottomx=4020 real_bottomy=4020  case $orientation in         0)                 swap=0                 invert_x=0                 invert_y=0                 topx=$real_topx                 topy=$real_topy                 bottomx=$real_bottomx                 bottomy=$real_bottomy         ;;         1)                 swap=1                 invert_x=1                 invert_y=0                 topx=$real_topx                 topy=$real_topy                 bottomx=$real_bottomy                 bottomy=$real_bottomx         ;;         2 )                 swap=0                 invert_x=1                 invert_y=1                 topx=$real_topx                 topy=$real_topy                 bottomx=$real_bottomx                 bottomy=$real_bottomy         ;;         3 )                 swap=1                 invert_x=0                 invert_y=1                 topx=$real_topx                 topy=$real_topy                 bottomx=$real_bottomy                 bottomy=$real_bottomx         ;; esac  if [ $method = "evdev" ]; then         xinput set-prop "$device" "Evdev Axes Swap" $swap         xinput set-prop "$device" "Evdev Axes Swap" $swap         xinput set-prop "$device" "Evdev Axis Inversion" $invert_x $invert_y         xinput set-prop "$device" "Evdev Axis Calibration" $topx $bottomx $topy $bottomy         if [ $orientation = 2 ]; then                            xrandr -o inverted         fi         if [ $orientation = 0 ]; then                 xrandr -o normal         fi fi  #   It's for flipping screen in my Lenovo S10-3t. I copied it from the netbook's wiki page, and added the #!/bin/bash at the top. The filename is flipscreen.sh. How can I make it work? The series had three books.  A universe of Greek gods/goddesses, set in modern time.    The gods steal Titans and force them to assume the form of infants/children, and raise them as mundanes in a boarding school type situation.  The protagonist is a young woman who discovers she can travel through the fourth and fifth dimensions as her power.  Her companions: a fey, can travel by unseen ways to various locations; a boy-shaman raised under the traditions of science, can cause anything he wants to happen simply by wishing it and tries to recreate the Michelson–Morley experiment. She ultimately discovers the true nature of the universe she is in and that the deities all follow some sort of rock-papers-scissors system where each deity has a corresponding type which he is weak to, and strong against.  What is the name of this series? I am trying to install php curl like so:  sudo apt-get update sudo apt-get install php5-curl   But I keep getting an error.  Reading package lists... Done Building dependency tree        Reading state information... Done php5-curl is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. 2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] Y Setting up runit (2.1.2-3ubuntu1) ... start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused dpkg: error processing package runit (--configure):  subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of git-daemon-run:  git-daemon-run depends on runit; however:   Package runit is not configured yet.  dpkg: error processing package git-daemon-run (--configure):  dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure.                           Errors were encountered while processing:  runit  git-daemon-run E: Sub-process /usr/bin/dpkg returned an error code (1)   when I try sudo dpkg --configure -a I get:  dpkg: dependency problems prevent configuration of git-daemon-run:  git-daemon-run depends on runit; however:   Package runit is not configured yet.  dpkg: error processing package git-daemon-run (--configure):  dependency problems - leaving unconfigured Errors were encountered while processing:  git-daemon-run   when I try sudo apt-get install --reinstall runit I get:  Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 8 not upgraded. 2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. E: Internal Error, No file name for runit:amd64   when I try sudo apt-get install runit I get:  Reading package lists... Done Building dependency tree        Reading state information... Done runit is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded. 2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] Y Setting up runit (2.1.2-3ubuntu1) ... start: Job is already running: runsvdir dpkg: error processing package runit (--configure):  subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of git-daemon-run:  git-daemon-run depends on runit; however:   Package runit is not configured yet.  dpkg: error processing package git-daemon-run (--configure):  dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure.                                                                                                           Errors were encountered while processing:  runit  git-daemon-run E: Sub-process /usr/bin/dpkg returned an error code (1)   when I try sudo apt-get install --reinstall git-daemon-run I get:  Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 8 not upgraded. 2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. E: Internal Error, No file name for git-daemon-run:amd64   How can I fix this?  System Specs:  Processor: Intel® Core™ i7-3630QM CPU @ 2.40GHz × 8 Graphics: Gallium 0.4 on AMD TURKS (DRM 2.43.0, LLVM 3.6.2) OS Type: Ubuntu 15.10 64-bit dpkg -V , What does the output mean? I ran DPKG Verify on all packges and got this output and I don't know what it means :  ??5?????? c /etc/lightdm/lightdm-gtk-greeter.conf ??5?????? c /etc/default/chromium-browser ??5??????   /usr/local/etc/no-ip2.conf ??5??????   /var/lib/dokuwiki/data/cache/_dummy ??5?????? c /etc/xdg/menus/mate-settings.menu ??5?????? c /etc/apache2/apache2.conf ??5?????? c /etc/apt/apt.conf.d/10periodic ??5?????? c /etc/sysctl.conf ??5??????   /var/lib/xine/xine.desktop ??5??????   /boot/vmlinuz-4.4.0-21-generic ??5??????   /usr/lib/python3/dist-packages/cupshelpers/__pycache__/cupshelpers.cpython-35.pyc ??5??????   /usr/lib/python3/dist-packages/cupshelpers/__pycache__/xmldriverprefs.cpython-35.pyc ??5??????   /usr/lib/python3/dist-packages/cupshelpers/__pycache__/config.cpython-35.pyc ??5??????   /usr/lib/python3/dist-packages/cupshelpers/__pycache__/openprinting.cpython-35.pyc ??5??????   /usr/lib/python3/dist-packages/cupshelpers/__pycache__/__init__.cpython-35.pyc ??5??????   /usr/lib/python3/dist-packages/cupshelpers/__pycache__/ppds.cpython-35.pyc ??5??????   /usr/lib/python3/dist-packages/cupshelpers/__pycache__/installdriver.cpython-35.pyc ??5?????? c /etc/xdg/autostart/mate-volume-control-applet.desktop ??5?????? c /etc/libvirt/qemu/networks/default.xml So I have an old unlocked phone and I'd like to load up my own OS.  I've seen some mods out there.  CyanogenMod seems to be the most popular.  However, I was curious if I could just install a pure untouched version of the OS -- as distributed by Google. I seem to remember being able to download a clean compiled version of the Android OS.    Does Google distribute any binaries like this, and if not, is there someone out there that does?    Additionally, is this even worth trying?  These days is it necessary for Android to be packaged with special drivers and such for all of the different hardware out there? Is the following equivalent to the axiom of choice? Iterate a list as pair (current, next) in Python Determine if Type is a pointer in a template function How to remove the left part of a string? I have some simple python code that searches files for a string e.g. path=c:\path, where the c:\path part may vary. The current code is:  def find_path(i_file):     lines = open(i_file).readlines()     for line in lines:         if line.startswith("Path="):             return # what to do here in order to get line content after "Path=" ?   What is a simple way to get the text after Path=? Earning a PhD help you learn tools and techniques in your field, and lets you become an expert in a very specific field of science. However, once you get your degree and try to enter the labor market, you're competing against people who are younger than you (i.e. recently graduated non-phd engineers) and may have actual work experience (i.e. non-phd engineers with a few years in the market).  There are, of course, some positions in which they cannot compete, including research and teaching position. Those are the minority, though... in most other fields it seems that holding a PhD is not as important as (for example) work experience.  So, I would like to know:   Is work experience more important than having a PhD in the many work environments? What skills can I acquire/demonstrate during my PhD to become more "valuable" than a non-PhD candidate for the same job? (How) Can I use existing stapled electrical wire to fish new wire? I nicked an electrical cable while doing a plumbing repair and so need to fix it. I previously  about repairing the damage in place, but there are receptacles 6-10 feet away on either side of the damaged wire, so it may not be too difficult to just pull new wire. Most of the wire is run horizontally through the studs, which is great, but it will at least be stapled at both boxes (and possibly more). The horizontal run is ~18" up from the floor, while the receptacles are ~6". There is also an inside corner the wire is run through. Wire is 12/2.  Is it possible to use the existing wire to fish the new wire, even though the existing wire is stapled? Would I need to open up the wall to remove the staples?  I found a , but that pertains to telephone wires which sometimes use different staples than electrical wires. Password protect folder without disk images? Is this possible? I know you can protect a .dmg file, but is there a more convenient solution, by using a third party application? Improve the editing flow with predefined options for "Edit Summary"