Windows waking from Sleep/Hibernation after 15-25 minutes
Laptop randomly waking up = Hibernate / Low Battery?
Finding the Public IP address in a shell script I can find my IP address using ifconfig or hostname -i command.  But how do I find my Public IP?  (I have a static public IP but I want to find it out using unix command) How might the weight of a falling object affect the damage it causes? Fall damage is 1d6 per 10 feet. What adjustments if any should I make for objects falling on a player character? (e.g. a bear)  Assuming the objects are meaningful threats but not instant character death, should the weight of an object change the calculation, e.g. more then 1d6 per 10 feet.  Or is this more in the spirit of improvising damage chart? i.e. the setback (cat to face) dangerous (orc fell on me), and deadly (the large bear).  If this is house-rule territory does any one have any experience or advice beyond  relevant to 5e. How do I change "Show Applications" button on GNOME 3 dash? I'm using Ubuntu with GNOME desktop.   I was wondering how to change the "Show Applications" button icon on the dash? C++ Struct Pointer Segfault How do I split a string so I can access item x? Using SQL Server, how do I split a string so I can access item x?  Take a string "Hello John Smith". How can I split the string by space and access the item at index 1 which should return "John"? Seeking documentation for {z}/{x}/{y} syntax in tilesource urls? Speaking of tilesource urls such as   http://{s}.tile.stamen.com/watercolor/{z}/{x}/{y}.png  is there any technical documentation or canonical reference for the curly braces syntax?  I'd specifically like to know what other things can be used in curly braces, and in which places, and how they work. Topical example:  'There was a scuffle outside the local pub. There appears to be no connection with religious extremists.'  ...but now you're wondering if there was. It's a nasty tactic used to raise fear and doubt - deliberately calling attention to something by explicitly denying it.  What's the term for this? I have a device with a web-based control panel, and accidentally set it to redirect all http pages to https, even though some don't work over https. Although I've since corrected this, Safari seems to have memorised the redirect and is refusing to forget it, instead constantly attempting to redirect me to the invalid https address.  I've already closed Safari, cleared ~/Library/Caches/com.apple.Safari/ and ~/Library/Cookies/HSTS.plist but it still seems to be remembering the redirect when I re-open it.  Where else could Safari be storing this information? I can access the correct page via Firefox or Chrome, so it may not be a system wide service, or if it is it's not one that the other browsers use.  Unfortunately because the web-panel is provided by a device I don't believe I can adjust headers or setup a redirect back to the correct URL, which seem to be options offered in other similar questions, so I really need to find out where this data is being stored so I can destroy it with fire. Auto confirm when running bash scripts? When an object is moving in a circle, won't the frictional force oppose it's motion? And if the velocity is always tangential to the path, there is no component of it towards the center, so there is no component of friction towards the center (since the frictional force is antiparallel). So how can friction be a centripetal force, like in the case of a car rounding a corner? Proving with induction $(1-x)^n<\frac 1 {1+nx}$ Prove using induction that $\forall n\in\mathbb N, \forall x\in \mathbb R: 0&lt;x&lt;1: (1-x)^n&lt;\frac 1 {1+nx}$   My attempt:   Base: for $n=1: 1-x&lt;\frac 1 {1+x}\iff 1-x^2&lt;1$, true since $0&lt;x&lt;1$.  Suppose the statement is true for $n$, prove for $n+1$:  $(1-x)^{n+1}=(1-x)(1-x)^{n}\overset{i.h}&lt;\frac{(1-x)}{1+nx}$  Now I got stuck, maybe another induction to show that $1+nx+x&lt;1+nx$? Is there another way?  Moreover, I was told it's wrong to begin with $(1-x)^{n+1}$ and reach to $\frac 1 {1+(n+1)x}$ but why? Is it assuming what I need to prove? Generic solution to prevent a long cron job from running in parallel? I am looking for a simple and generic solution that would allow you to execute any script or application in crontab and prevent it from running twice.  The solution should be independent on the executed command.  I assume it should look like lock &amp;&amp; (command ; unlock) where lock will return false if there was another lock.  The second part would be like if it acquired the lock, run command and unlock after command is executed, even if it returns error. Check if email exist php I cannot mount Windows 8 partition disk on Ubuntu 12.10.  My Windows 8 is installed on "C" partition, and I have another "D" partition.  I can easily mount "D" partition, see files and make changes on them. Actually I also have a problem with this: when I copy a file from ubuntu to "D", I cannot see this file on Windows 8.  My main problem is when I try to mount "C" partition I get this:     Unable to mount 121 GB Volume   Error mounting /dev/sda3 at /media/furkan/06DEC78FDEC77589: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda3" "/media/furkan/06DEC78FDEC77589"' exited with non-zero exit status 14: Windows is hibernated, refused to mount.   Failed to mount '/dev/sda3': Operation not permitted   The NTFS partition is hibernated. Please resume and shutdown Windows   properly, or mount the volume read-only with the 'ro' mount option, or   mount the volume read-write with the 'remove_hiberfile' mount option.   For example type on the command line:           mount -t ntfs-3g -o remove_hiberfile /dev/sda3 /media/furkan/06DEC78FDEC77589 Batch convert 4 PDF pages to one PDF page The junction has a stop sign on each of the four entrances.   The junction has a stop sign on each of the 4 entrances.   The first is preferred, for some reason, by many English texts. Why? I haven't seen this phenomenon in other languages. How do I list the default installed packages? I am developing an offline installer for all versions of Ubuntu, and I need Ubuntu's default installed packages list. Is there a way to get this information from any server (web server)? Any script to fetch any Ubuntu version's default installed packages list.  I will give the Ubuntu version, and the script will fetch the packages list.  Note: I need at least a server address. I can write a script for this. The specified DSN contains an architecture mismatch Error Consider the sequence defined as  $x_1 = 1$  $x_{n+1} = \sin x_n$  I think I was able to show that the sequence $\sqrt{n} x_{n}$ converges to $\sqrt{3}$ by a tedious elementary method which I wasn't too happy about.  (I think I did this by showing that $\sqrt{\frac{3}{n+1}} &lt; x_{n} &lt; \sqrt{\frac{3}{n}}$, don't remember exactly)  This looks like it should be a standard problem.   Does anyone know a simple (and preferably elementary) proof for the fact that the sequence $\sqrt{n}x_{n}$ converges to $\sqrt{3}$? $\operatorname{Hom}(X \times Z, Y) \cong \operatorname{Hom}(X, \operatorname{Map}(Z, Y))$ is not true in $\textbf{Top}$ I read that in the category of topological space it is not true that $\operatorname{Hom}(X \times Z, Y) \cong \operatorname{Hom}(X, \operatorname{Map}(Z, Y))$ for every $X, Y, Z$ topological spaces. In particular, I read that this does not work when $Z = \mathbb{R} \setminus \{ 1/n \mid n \in \mathbb{N}\}$. This was not explained, i.e. there was no example.   I am looking for an example or – maybe better – just a hint.  EDIT   $\operatorname{Map}(Z, Y)$ is endowed with the compact-open topology $\cong$ means just bijection; i.e. there is already an obvious bijection as sets, but the claim is that (I think) sometimes the "output function" is not continuous