I'm connected to a wifi spot with my android, but i'd like to connect with my laptop aswell. I don't want to root my phone (warranty and stuffs) nor reset the router, as it has complex settings on it. I tried recovering the password from /data/misc/wifi/wpa_supplicant.conf using adb, but i get an error, which sent me on a rabbithole of solutions until i met a dead end. I'll post the steps i followed bellow, i would like someone to tell me if i goofed on any step.  (I wanted to post images, but i need 10 reputation, sorry)  So i enter on adb and i check if my device is recognized using     >adb devices    Everything seems fine, i proceed to try to pull out the config file with     >adb pull /data/misc/wifi/wpa_supplicant.conf c:/wpa_supplicant.conf   At this step i get this message:      failed to copy from "...." to "..." : permission denied.   So i searched for a solution for this and i found that i have to use "adb root" to restart adb with root permissions. I try it, but i get this message.     adb can't run as root on production builds.   So again, i went down the rabbit hole, and i found someone else with the same problem, who says that solved it using ">adb shell" and then "$ su". I'm getting tired, but i try it, i go to shell, and everything seems fine i get into shell@android with no problem, now i only need to access as su, but as i try i get this message:     system/bin/sh: su: not found   Now this may or may not have to do with this (i'm a noob), but if i used "adb devices" while on shell, or right after exiting it, no devices would appear listed, even if i checked before doing all the above.  I'm very noob at this and i'm sure i'm messing up somewhere, but i can't find where and its getting late. I've spent 2 hours aready looking for solutions and every step deeper i get, less results i get because any of the above solutions worked for other people. Does anybody have any idea on how to access that damned file without rooting my phone?  (I can use my phone as router usb while i'm connected to the wifi, but i'd rather have the freedom of knowing the password, as i'm going to stay here for the whole summer)
I have an Android phone which is connected to a secured Wi-Fi hotspot.  How can I find out the password of the hotspot from the phone?
I know there is a ton of questions and answers about this topic, but none answers my question sufficiently.  Let's say I have a viewport view that I want to render in Cycles. Pressing ALT CTRL Numpad 0 aligns the camera to this view, but it does not solve the whole problem. The thing is, I want PRECISELY this view on the render, preferably in one click, without manually moving the camera back-and-forth, changing sensor sizes etc. fiddling that will remove the unwanted border that appears and blocks the viewport partially. This whole activity wastes a lot of precious time especially if you do this 10 times a day.  What this dream action should do:   match the render resolution (proportions) to the resolution of the current view (can the resolution of current view be read by a Python script?) make the entire view the camera view, without any borders, passe-partout etc. by automatically maneuvering sensor sizes etc. whatever is necessary to make it exactly the same view, the same camera lens angle.   Is it possible to write such a script that would do it all in one click? One way function existence Let $x = (x_1, x_2,...,x_n)\in\{0,1\}^n$ for $n\in\mathbb{N}$. Prove that if one-way functions (OWFs) exist, then there exists a one-way function $f$ such that for every bit $i\in[1,n]$ there exists an algorithm $A_i$ such that: $$\Pr[A_i(f(x)) = x_i] \geq \frac{1}{2} + \frac{1}{2n}$$ I'm having trouble understanding this. What changes when an Alienist becomes an outsider? How to inject keystrokes via a shell script? I'm trying to inject keystrokes into the input daemon so as to simulate typing from a Bash script. Is this possible, and if so, how can I make it happen? How can I use an align environment flush left? Is there a way possible to imitate the align environment for math mode commands, without having all writing being placed toward the center on the output page?  MWE:  \documentclass{article} \usepackage{mathtools}  \begin{document} \begin{align*} \cos\theta_1 \cos\theta_2-\sin\theta_1\sin\theta_2 &amp;= \cos(\theta_1 +\theta_2) \\ \sin\theta_1 \cos\theta_2 + \cos\theta_1 \sin\theta_2 &amp;= \sin(\theta_1+\theta_2) \end{align*}  \end{document} How do you plot time on the X axis in excel? I need to plot the decay of my phone's battery against time over night. My starting time is 23:17:47 and my ending one is 07:05:49. I don't have any issue in changing the time format in the current one, selecting an XY chart and plotting time on the X axis.   The problem arises because Excel doesn't start the X axis at 23:17:47, but instead at 00:00:00, so my first value is drawn from the end of the graph and the goes back at the beginning when time values are over 00:00:00.   In other words, how do I set up the min time value to 23:17:47 and the max to 07:05:49 in excel? What would be the best approach to get the recordtype id I know of two approaches to get the recordtype id of a particular record type   Use SOQL   RecordType RecType = [Select Id From RecordType  Where SobjectType = 'Account' and DeveloperName = 'Business'];    Benifit here is if the admin changes the name of the record type, the code still works as we can use developer name   Using Describe  Map&lt;String,Schema.RecordTypeInfo&gt; rtMapByName = d.getRecordTypeInfosByName(); Schema.RecordTypeInfo rtByName =  rtMapByName.get('Business');    Saves on SOQL limits but uses a describe call.  What would be your choice and why   EDIT : Usage is for setting up recordtype while inserting records in apex or trigger What would I prefer - an over-fitted model or a less accurate model? Let's say we have two models trained. And let's say we are looking for good accuracy.  The first has an accuracy of 100% on training set and 84% on test set. Clearly over-fitted. The second has an accuracy of 83% on training set and 83% on test set.   On the one hand, model #1 is over-fitted but on the other hand it still yields better performance on an unseen test set than the good general model in #2.   Which model would you choose to use in production? The First or the Second and why? Calculating conditional entropy given two random variables I have been reading a bit about conditional entropy, joint entropy, etc but I found this: $H(X|Y,Z)$ which seems to imply the entropy associated to $X$ given $Y$ and $Z$ (although I'm not sure how to describe it). Is it the amount of uncertainty of $X$  given that I know $Y$ and $Z$? Anyway, I'd like to know how to calculate it. I thought this expression means the following:  $$H(X|Y,Z) = -\sum p(x,y,z)log_{2}p(x|y,z)$$  and assuming that $p(x|y,z)$ means $\displaystyle \frac{p(x,y,z)}{p(y)p(z)}$, then  \begin{align} p(x|y,z)&amp;=\displaystyle \frac{p(x,y,z)}{p(x,y)p(z)}\frac{p(x,y)}{p(y)}\\&amp;=\displaystyle \frac{p(x,y,z)}{p(x,y)p(z)}p(x|y) \\&amp;=\displaystyle \frac{p(x,y,z)}{p(x,y)p(x,z)}\frac{p(x,z)}{p(z)}p(x|y)\\&amp;=\displaystyle \frac{p(x,y,z)}{p(x,y)p(x,z)}p(x|z)p(x|y) \end{align} but that doesn't really help.  Basically I wanted to get a nice identity such as $H(X|Y)=H(X,Y)-H(Y)$ for the case of two random variables.  Any help?  Thanks How do I create a Java string from the contents of a file? I've been using the idiom below for some time now. And it seems to be the most wide-spread, at least on the sites I've visited.  Is there a better/different way to read a file into a string in Java?  private String readFile(String file) throws IOException {     BufferedReader reader = new BufferedReader(new FileReader (file));     String         line = null;     StringBuilder  stringBuilder = new StringBuilder();     String         ls = System.getProperty("line.separator");      try {         while((line = reader.readLine()) != null) {             stringBuilder.append(line);             stringBuilder.append(ls);         }          return stringBuilder.toString();     } finally {         reader.close();     } } What does "$$" mean in the shell? Placing point over pixel with maximum value falling in grid overlay using QGIS Is there a way to avoid SSH typing delay? Maximize the product of the partitions of an integer Does light induce an electric current in a conductor? I know that electromagnetic waves induce electric currents in conductors and that's the basis for radio, wi-fi etc.  I also know that light is also an electromagnetic wave. So, can light induce a current in a conductor (like a metal wire? or a coil?). And, if the answer is yes, is the same visible for other high-frequency waves (X-rays, gamma)?  I heard about the photoelectric effect, but it seems related to the particle theory of light (photons transferring their energy to electrons).  So, do high-frequency electromagnetic waves generate electric currents? Is it possible to measure them? Is the skin effect relevant here? Hovering over featured moves the questions down a bit When I hover over featured tab, both on the front page and in questions, the questions move down by one pixel. Here's a small screen capture demonstrating the issue:        I see it in Chrome 34 and Opera 20, but I don't see it on IE11 or Firefox 28. Entity Framework and SQL Server View I have just started learning Japanese Mahjong and I am a bit lost as to why this hand failed.  I did several pons and chis over the course of a hand, having a total of three open melds (one set and two sequences).  Apart from these I had an incomplete bamboo sequence of II and III as well as a pair of dragons, therefore I was on a single wait for I or IV bamboo stick tile. When the IV tile appeared in one of the discards of other players, I was given a choice to do another chi and declare another open meld, but I couldn't win with a ron. Why was that?  Am I wrong that winning by ron guarantees a single needed yaku to win a hand, just like Closed Tsumo does?  After declaring the chi I was offered with, my hand was left with a single pair of tiles, one of which I had to discard.  Eventually the round finished with a draw.  Why couldn't I win this hand with a ron on the IV bamboo tile, and why was I given only the choice of chi instead? Difference between deportation and removal As I understand it, there are two mechanisms for throwing somebody out of the UK: deportation and removal. Informally, people seem to call both of these "deportation".  What are the differences between them? Who do they apply to? Do they have different effects on the person's ability to return to the UK later? Chromium on Ubuntu 12.04. Youtube says:     This video is currently unavailable   I don't know why but this is the case for some videos, but not all. Well, most videos. And I don't know what's wrong.  Anyone help?