Shuffling an array of integers for making secure key pad
Most efficient way to randomly "sort" (Shuffle) a list of integers in C#
Lightning Change Event Is there a way to catch the change event of a particular field/component? I saw on the AuraDocs that there is a valueChange event but trying to handle it makes the app throw an error on load. I was wondering if I could build some automatic field validation / search suggestions without relying on other js libraries. I am looking for a clean and fast method to force GNOME in Ubuntu 14.04 to switch between active apps only on the current workspace when pressing the shortcut alt + tab. At the end of every day you will be required to write a review.   At the end of each day you will be required to write a review.   Which one of those sentences is better if this action will repeat itself every day for longer period of time, several weeks for example, maybe even months? 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? Why does energy have to be emitted in quanta? I was reading some popular science book and there was this sentence. It says that energy has to be emitted in discrete portions called quanta. Otherwise the whole energy in the universe would be converted into  high frequency waves.  I'm not a physicist, so this conclusion seems to me like a huge leap.  First, we assume that energy is emitted in a continuous way (not in quanta).  And how do we get to the statement "the whole energy in the universe would be converted into  high frequency waves"? In the definition of a field one of the required properties is that  every element other than zero has a multiplicative inverse.  It's vague whether the zero is forced not to have an inverse or not, as in is the property  every element other than zero has a multiplicative inverse and zero does not  or  every element other than zero has a multiplicative inverse and zero may or may not?  Regardless, what differences would occur if we adopted one definition as opposed to the other? Google Chrome is not starting I've just installed Ubuntu 16.04 LTS on dual boot. I've looked for many solutions and tried them all but Chrome never starts; the logo appears on the left but no window opens.  I downloaded the deb file on google chrome website and installed it through Ubuntu Software, but it doesn't start.   I have tried installing it through the command line with   sudo dpkg -i --force-depends google-chrome-stable_current_amd64.deb sudo apt-get install -f   I have checked with uname -a and my system is 64 bit. I have also tried gdebi with the same result.   My repository universe is up to date.  I only have one display in settings>displays> so I can't turn off built-in display nor check the mirror display (I read it could be the problem as I also have a graphic card but it seems it is not in my case).  Here is what I get in the command line when I try to run Chrome from it ( the message is the same, whatever the method I used to install Chrome):  ~$ google-chrome [11831:11831:1122/114854.195473:ERROR:process_singleton_posix.cc(433)] readlink failed: Permission denied (13) [11831:11831:1122/114854.195493:ERROR:process_singleton_posix.cc(256)] readlink(/home/basil/.config/google-chrome/SingletonLock) failed: Permission denied (13) [11831:11831:1122/114854.195508:ERROR:process_singleton_posix.cc(256)] readlink(/home/basil/.config/google-chrome/SingletonLock) failed: Permission denied (13) [11831:11831:1122/114854.195515:ERROR:process_singleton_posix.cc(280)] Failed to create /home/basil/.config/google-chrome/SingletonLock: Permission denied (13) [11831:11831:1122/114854.195538:ERROR:process_singleton_posix.cc(433)] readlink failed: Permission denied (13) [11831:11831:1122/114854.195564:ERROR:process_singleton_posix.cc(256)] readlink(/home/basil/.config/google-chrome/SingletonLock) failed: Permission denied (13) [11831:11831:1122/114854.195622:ERROR:chrome_browser_main.cc(1498)] Failed to create a ProcessSingleton for your profile directory. This means that running multiple instances would start multiple browser processes rather than opening a new window in the existing process. Aborting now to avoid profile corruption. [11831:11868:1122/114854.209297:ERROR:browser_gpu_channel_host_factory.cc(108)] Failed to launch GPU process.   Any new approach will be much appreciated Does each season of Game of Thrones roughly equal a book? Does each current Game of Thrones season roughly equal one A Song of Ice and Fire book? And do we know which future seasons will cover which books?  I am planning to read the first book after the TV show has finished depicting the events in the first book. I would like to know if after each TV season ends I can expect to be able to read a book covering the events depicted on screen? Identify GoogleTv from Android app Is it supposed to be a HTML or an HTML I've seen many people who say:     This is a HTML page.   Yet I've also seen many people who say:     This is an HTML page.   Are both usages equally correct?  Or, which is the grammatically correct one?       Possible Duplicates: Lighter in CPU/Memory Usage: Lubuntu or Xubuntu I am looking for an Ubuntu version that consumes less Memory and CPU. I have read both Lubuntu and Xubuntu (The homepages, wikipedia, phoronix and other sites comparing both). But from experience, which one uses less memory and is less CPU intensive. I need to install them in very old hardware and want to persuade the owner of the hardware of the benefits of Ubuntu.  in this case I want to install 11.10 or 12.04 when it comes out. How are each behaving in those versions?  The 2 PCs I will be installing either Xubuntu or Lubuntu are:  Granpa PC:  CPU - Pentium 2 450Mhz RAM - 64MB DIMM Video - 16MB Used for - Documents and Internet. No listening to music, no looking at videos. Just using it for document writing.  The other old meat:  CPU - Pentium 3 550Mhz RAM - 128MB DIMM Video - 16MB Used for - Documents and Internet also but they want.. or maybe they are wishing for it to use it to see movies and listen to music. This one has internet. The other one does not.  UPDATE  Wanted to update this question with the test results for over 8 months worth of using Lubuntu and Xubuntu. When it comes to very old hardware, am talking about 64 MB, 128 MB or even 256 MB of RAM computers, Lubuntu is better than Xubuntu when comparing Memory usage. When it comes to CPU usage, both are the same.  This will not improve I/O Disk performance which will be the bottleneck for old computers. Also the difference in performance between Xubuntu and Lubuntu is about 10% to 20% percent in memory usage. Again, CPU usage is the same.  Now, when it comes to how responsive the Desktop is, LXDE (Lubuntu) has a much better response time than XFCE (Xubuntu). I would say about 50% or just simply noticeable to the eye. Lubuntu is similar to how Windows XP looks while Xubuntu is more like how Gnome 2 looked.  The computers (The old ones mentioned here) and 2 more are still working in excellent conditions thanks to the Ubuntu family. I also want to add I am using 13.10 for both distros. How do i find nichrome temperature "Is there" versus "Are there" Are there any questions I should be asking?   Is there any articles available on the subject?   My instinct is that in the two questions above, it should be 'are' as the subjects of the sentences (questions/articles) are plural.  However I also recall being told that the singular 'is' is valid here too, and of course see it very often in usage online, and this has left me a bit unsure.  Update: I have stumbled upon the reason for the confusion.     Is there any water?   Are there any questions?   The sentence structure is the same but of course water is not plural, although it is not singular either. The velocity of the flowing coming out of the balloons? Last day , when i was working on two interconnected balloons , a question was kicking my brains !!! This is the explanation of the question:  First , suppose a system that composed of two spherical membranes filled with air (two balloons have different initial volumes {means that the pressure inside which balloons are different} and the air pressure is 1 a.t.m) . We connect them with hollow tube and a valve. When we open the valve , one of them shrinks and the other one expands (It depends on their pressure) .  So how can we get the velocity of the flowing air between two balloons? (Consider everything but if you have reasons for not considering one of them -for example the ratio of friction in the tube- Don't consider them and just tell me the reason)  Thanks What was the galaxy formation Rust saw before confronting Erol Childress? What was the galaxy formation Rust saw before confronting Erol Childress in  S01E08?  It was weird like out of the series. I guess it was some sort of hallucination, a product of Rust's madness or addiction. I have to determine how many six-integer subsets of $\{1, 2, 3, \ldots, 20\}$ are possible if no two consecutive integers are in a set. I tried to install Ubuntu 18.10 on my XPS 15 9570 earlier. Everything was working fine until I got to the partition selection part of the installation. That's when the installer crashed and I had to shut down my machine. I think it's because I had my SATA configuration set to RAID ON instead of AHCI, which is now fixed.  Now when I try to run the installer from my bootable USB I get the following error  Failed to open \EFI\BOOT\mmx64.efi - Not Found Failed to load image \EFI\BOOT\mmx64.efi: Not Found Failed to start MokManager: Not Fond Something has gone seriously wrong: import_mok_state() failed   Hoping someone might have some idea as to what is going on To use Windows and Ubuntu on one computer, which should I install first? How were bullets able to dent Captain America's Shield? Just after Captain America's shield was introduced in Captain America: The First Avenger, Peggy Carter shot few bullets at it which created few minor distortions on it.                                  From  page of Marvel.Wikia,     Proto-Adamantium   This is the original Adamantium created by Dr. MacLain. Proto-Adamantium is the official name for the metal that makes up Captain America's Shield. It has never been recreated and is the absolute most invulnerable item in all of existence.    From  page of Marvel.Wikia:     The true shield was once slightly dented by an enraged Odinforce empowered Thor, using Mjolnir, but he later reconciled and pounded out the small dent.    How were few bullets able to dent Captain America's shield then? Prove that if the function $f$ is defined on the set of positive real numbers, its values are real, and $f$ satisfies the equation $$f\left( \frac{x+y}{2}\right) + f\left(\frac{2xy}{x+y} \right) =f(x)+f(y)$$ for all positive $x,y$, then $$2f(\sqrt{xy})=f(x)+f(y)$$ for every pair $x,y$ of positive numbers.    Source: Miklos Schweitzer Memorial Competition 2001    I can see how the repeated application of the functional equation condition upon itself forms a bound, but how can I formally prove this?