I am using Python to open the physical disk in the computer to read the first sector.  disk = r"\\.\PhysicalDrive0" with open(disk, 'r') as f:         f.seek(0)         partdata = f.read(512) len(partdata)   In windows XP len(partdata) will return 512 and have the correct content. In windows 7 len(partdata) returns 230 and the data is correct until it breaks off.  Also, trying to seek farther into the disk doesn't work and it only returns the first 230 bytes.  Python versions 2.7.1 and 2.7.2 32bit and 64bit  On Windows 7, one 32bit machine one 64bit.
I have the following file:  abcde kwakwa &lt;0x1A&gt; line3 linllll   Where &lt;0x1A&gt; represents a byte with the hex value of 0x1A. When attempting to read this file in Python as:  for line in open('t.txt'):     print line,   It only reads the first two lines, and exits the loop.  The solution seems to be to open the file in binary (or universal newline mode) - 'rb' or 'rU'. Can you explain this behavior ?
adding @2x to src above certain resolution on none retina devices Range of values of skewness and kurtosis for normal distribution I want to know that what is the range of the values of skewness and kurtosis for which the data is considered to be normally distributed.   I have read many arguments and mostly I got mixed up answers. Some says for skewness $(-1,1)$ and $(-2,2)$ for kurtosis is an acceptable range for being normally distributed. Some says $(-1.96,1.96)$ for skewness is an acceptable range. I found a detailed discussion here:  regarding this issue. But I couldn't find any decisive statement.   What is the basis for deciding such an interval? Is this a subjective choice? Or is there any mathematical explanation behind these intervals? This post has been locked; locked posts can't be voted on Most efficient way to append arrays in C#? I am pulling data out of an old-school ActiveX in the form of arrays of doubles. I don't initially know the final number of samples I will actually retrieve.  What is the most efficient way to concatenate these arrays together in C# as I pull them  out of the system? Which IP address do I use to access my server? I'm running a Samba server on my MacBook and I've also set up port forwarding to said server from my router.  My public IP is 106.51.x.x (according to google and a few other services) and my Mac's local IP is 192.168.x.x, but when I head to my router's configuration page, it says my external IP is 10.242.x.x.  This is what I don't understand, when connected to my home WiFi, using the 10.242.x.x address works just fine. But if I try to access the same over 4G, the connection times out.  As for the public address, neither WiFi nor 4G works.  Is there some setting on my Mac (I'm running MacOS Sierra) that I must alter to make it visible to the public? Its a .vbproj and looks like this  &lt;Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt;     &lt;PropertyGroup&gt;         &lt;ProjectGuid&gt;15a7ee82-9020-4fda-a7fb-85a61664692d&lt;/ProjectGuid&gt;   all i want to get is the ProjectGuid but it does not work when a namespace is there...   Dim xmlDoc As New XmlDocument()  Dim filePath As String = Path.Combine(mDirectory, name + "\" + name + ".vbproj")  xmlDoc.Load(filePath)  Dim value As Object = xmlDoc.SelectNodes("/Project/PropertyGroup/ProjectGuid")   what can i do to fix this? In The Force Awakens, we see Rey pouring some flour-like polystarch rations into water so that the flour amazingly transforms into something that looks like bread. What are these rations? Is there any documentation of the fictional chemistry and biology that makes the starch rations behave as they do? Prove that $\mathbb{Q}$ belongs to the Borel $\sigma$-algebra of $\mathbb{R}$ Prove that the set of rational numbers $\mathbb{Q}$ belongs to the Borel $\sigma$-algebra of $\mathbb{R}$. I'm unsure about how to prove this. I'm also unsure about the difference between a σ-algebra and a Borel σ-algebra. Auto confirm when running bash scripts? In transformers, the ratio of the voltages equals the ratio of the turns - so double the output coil's turns and the output voltage doubles. Then, in order to conserve energy, current halves.  This makes perfect sense in terms of $\mathrm{P=VI}$, but what happened to $\mathrm{V=IR}$? Doubling voltage and halving the current seems to completely contradict this basic law. That is, of course, unless the resistance in the output circuit changes, with R proportional to $\mathrm{V^2}$ - but I don't see how this is possible.  So how can a transformer obey both laws? Can resistance change or am I missing something else? Evaluate $\lim\limits_{x\to 1}\frac{\sqrt x-x^2 }{1-\sqrt x}$ Getting command-not-found working under zsh Calculate $\sum_{k=1}^n (-1)^{k+1} \binom{n}{k}\frac{1}{k}$ See all shared items in Google Drive In Dropbox there is a place you can see all the shared items in your account (i.e., all the items you have granted others access to).  Is there a similar feature in Google Drive?  I'm not only trying to find items that are shared with other "named people", but also documents that are shared on a "anyone with link can view / edit" or "public on the internet" basis.   Franck's  seemed to work back in 2013, but Google Drive's interface has changed quite a bit since, and I'm struggling to be able to perform the same task with the new interface. I wonder if anyone knows how to do it in the new interface. Why do I need an extended partition? What is an extended partition? Why do I need to use it to install Ubuntu if I already have four partitions that are factory installed? How do I backup a LVM partition to an image for recovery purposes?  I am trying to run dd on /dev/sda2, but it crashes after ca 8 hours, at around 380G   sudo lvmdiskscan   /dev/centos/swap [       3.89 GiB]    /dev/sda1        [     500.00 MiB]    /dev/centos/root [      50.00 GiB]    /dev/sda2        [     465.27 GiB] LVM physical volume   /dev/centos/home [     411.38 GiB]    /dev/sdb1        [     931.51 GiB]    3 disks   2 partitions   0 LVM physical volume whole disks   1 LVM physical volume   Anyway, could running from a stick make any difference? Do the same camera settings lead to the same exposure across different sensor sizes? Let's say I have a micro-4/3rd camera and a full frame camera, both set to 1/60 at f/2.8, taking a picture of the same scene in the same lighting. Will the exposure be the same across both cameras despite the different sensor sizes?  The reason why I'm asking is because of the difference in depth of field between micro-4/3 and full frame sensors. I'm finding that, in order to take a picture of certain scenes with the full frame camera at the same depth of field as the micro-4/3rd camera, I have to increase the aperture, which in turn forces me to crank up the ISO. I've asked several questions about 4th Edition D&amp;D because I may be able to start a game. However, I'd need to purchase (some) materials. I am aware of the 4 book set (core) and the expected Essentials Red Box.  So now I need to know: presumably buying either the 4 book set or essentials will be enough to get my game on. Would there be something 'lacking' though? Would I be missing character types, for instance, as I've seen that the splatbook strategy is still in effect?  I'm an experienced player and GM and plenty creative, so many holes I'd be able to fill in myself. I just don't want to get sucked into too much financial impact. "Unable to install GRUB in /dev/sda" when installing GRUB I recently bought a shiny new Lenovo Yoga 2 Pro and I want to dual boot it with Ubuntu for studying purposes. Its built-in OS is Windows 8.1 and it has a 256GB SSD.  I've made a separate 90GB partition just for Ubuntu and a live USB to install it.  The first time everything seemed to work great, I solved the wifi issued by blacklisting ideapad_laptop, the installation went flawlessly and Ubuntu worked fine.  When I got up the next morning and turned on my laptop it booted into Windows right away without ever showing the GRUB menu. So I tried to reset, and checked my partitions with the Disk Manager and everything looked fine. Since I couldn't find a solution online I went ahead and formatted the partition to try and install again. This time and every time since, the installation was aborted and I got a fatal error saying:  Unable to install GRUB in /dev/sda Executing `grub-install /dev/sda` failed. This is a fatal error.   Can anyone please suggest a solution to this problem? If any further information is needed I would be happy to provide it. Thanks.  When installing I get the following in details:  ubuntu kernel: [ 1946.372741] FAT-fs (sda2): error, fat_get_cluster: invalid cluster chain (i_pos 0). ubuntu grub-installer: error: Running 'grub-install --force failed. For one of the clients, I have spin up a modern communication site collection and on the landing page of the same, I am seeing 'Get the mobile app' showing up, I was able to hide the 'feedback' button using css but no luck with Get the mobile app button.  Can someone please share css to hide 'get mobile app' button, appreciate the help.