How to differentiate landing on top of an object from falling down the side?

I am looking for a conceptual solution to my problem. It's a simple platformer-alike game where player can move horizontally during free-fall.  Consider those two cases:   In the first case, from game experience point of view, the player should land on top of the box; and in the other case he hit the left edge, hence the player should fall down.  However, from my code point of view ("real behaviour"), both those collision detection cases are identical. I am not sure how to separate them.   In both cases the vertical velocity is positive (falling down) and the user is moving with some fixed positive horizontal velocity. (moving right)  From a collision-standpoint the two cases are identical, I think. How can I tell whether I should put the player on top of it or let him fall?


Difference between printf and echo in bash

What is the difference between the printf function in bash and the echo function?  Specifically, running:  echo "blah" >/dev/udp/localhost/8125   did not send the "blah" command to the server listening on 8125, whereas  printf "blah" >/dev/udp/localhost/8125   sent the data. Does printf send an extra EOF at the end of its output?


Post Title : Top 10 WordPress Custom Post Type Tutorials  I am going to link 10 WordPress custom post type tutorials blog posts which I found from the internet in to the above post.  Should I make those links no follow or do follow?


This code  \documentclass[]{scrbook}  \usepackage{mdframed} % \usepackage{boxedminipage}  \begin{document}  \noindent \begin{boxedminipage}{1.0\textwidth} Box of 100 \% width \end{boxedminipage}  \begin{mdframed}[   linecolor=black,%   leftmargin =-1cm,   rightmargin=+1cm, ] Sample Text to fill the line. Sample Text to fill the line. Sample Text to fill the line. Sample Text to fill the line. Sample Text to fill the line. Sample Text to fill the line. \end{mdframed} \end{document}   does not show any margin on the left or right side.  Am I doing something wrong, or is this a bug in the package ?  Version of mdframed is 2012/01/09 v1.2a


manipulating strings and use commands with the result in bash

I have the following script, which manipulates a string.      #!/bin/bash  diry=$( find . -iname "cassandra.yaml" -exec dirname {} + )  dirgo=${diry:2}  echo $dirgo  cd $dirgo   this is the result:  cassandra@server:~$ pwd /opt/cassandra cassandra@server:~$ ./yaml.sh  conf cassandra@cads2001:~$ pwd /opt/cassandra   Prints the directory, But it does not go into the directory.  Maybe i need another kind of variable.  regards.


Last night I wiped and rooted my HTC One Mini and lost a few photos. Is there any way to get them back?


When I clicked on the Questions button, it showed a new tab named interesting with a list of questions. But I then couldn't locate it again.  Is it possible to get the list of interesting questions?


Sci-fi book about a male entering a competition that he wins and gets recruited by millitary

Sci-fi book in the future about a city that had 2 levels.    The top level was for the rich people. A game center with a space flight game is added. The main character (male) plays with friends and wins a competition. He ends up in huge competition and does well. He finds his sister (twin I believe) and joins the military as the competition was just a recruitment game. He flies into "destroyed land" and finds out that rich barons are living on private islands.  The destroyed lands were caused by some plague.  I read this book in 2010.


Has Wonder Woman ever killed a mortal in anger?

Regularly in ,  appears to lose her temper and comes very close to killing someoine in anger. AFAIK she never follows through in the show.   But anywhere in canon, does she ever kill a mortal?  She decapitates  in a baseball court, but she's not really a mortal anymore:     The fight takes place in a baseball court and is by Ares transmitted to the world. The fight is brutal, as Diana fights blind, first by a piece of cloth, then by snake venom she pours into her own eyes. But Diana is victorious in the end as once again, Medusa is .   Some examples of WW almost killing mortals:     Once when she believes Superman has been killed:                                      And once when some bank robbers interrupt her day off:


How does the telepathy supernatural ability work?

According to the MM books, telepathy is described as:     A creature with this ability (supernatural) can communicate telepathically with any other creature within a certain range (specified in the creature's entry, usually 100 feet) that has a language. It is possible to address multiple creatures at once telepathically, although maintaining a telepathic conversation with more than one creature at a time is just as difficult as simultaneously speaking and listening to multiple people at the same time.   Source: MM, MM3   My questions:   If a creature with telepathy knows that someone is within 100ft, can the creature communicate with that person, even if there is no line of effect or sight?  My answer would be yes, because no book says that telepathy is blocked by walls, etc. Normally, a supernatural ability is a standard action to start. If the creature wanted to communicate for more than one round using telepathy, does the creature need to use up a standard action every round they are communicating or only in the first round?  My answer is only in the first round, since the description says that maintaining telepathy is hard as speaking and listening normally. If a person the creature is communicating with moves out of the 100ft range, and then moves back into the range. Does the telepathic link need to be established again?  My answer is yes, another standard action is needed to establish the telepathy between the two creatures.   I should add the telepathy is supernatural, and a character is looking at getting it from the Mindbender class (from Complete Arcane). And also get the Mindsight feat (Lords of Madness). I couldn't find anywhere to rule whether a supernatural ability should take a standard action every round it is on.


Villagers staring in the same spot and not breeding when given food, why is that happening?

I was able to breed with two villagers before and it was all going fine. However, now they do not want to breed at all and just stare into the floor at a specific spot instead (both of them). What is causing this, or is this just a bug?


What is the best way to emulate an HTML input "maxlength" attribute on an HTML textarea?

An HTML text input has an attribute called "maxlength", implemented by browsers, which if set blocks user input after a certain number of characters.  An HTML textarea element, on the other hand, does not have this attribute. My goal is to emulate the behavior of maxlength on an HTML textarea. Requirements:   At a minimum, show (CSS change) that the user typed in too many characters. Ideally, block the user from typing more characters, as happens on an HTML input.   It is understood that server-side validation should check the length again. Here I am focusing on the client-side part only.  My question is: what is the cleanest client-side way of emulating maxlength on an HTML textarea? Ideally, point to a proven, open source, piece of JavaScript that you have used.


How can I stop the symbolic x coords to be plotted twice?

I have created a bar diagram similar to:   But at a certain width the symbolic x coords are plotted twice. How can I manage the x axis correctly?  Here is my mini example:  \documentclass[12pt,a4paper,]{scrartcl} \usepackage{a4wide} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[ngerman]{babel} \usepackage{graphicx} \usepackage{tikz} \usepackage[miktex]{gnuplottex}  \usepackage{pgfplots}    \begin{document}     \begin{figure}         \begin{tikzpicture}         \begin{axis}[%         width=1\linewidth,         height=0.5\linewidth,         axis x line=center,         axis y line=left,         symbolic x coords={CP-Schelle,Mistel-Schelle V2,Mistel-Schelle V4,Mistel-Schelle V4.2D,Gewickelt nach Inspire},         enlargelimits=true,         ymin=0,         nodes near coords,         x tick label style={         font=\small,         text width=1cm,         align=center         },         ybar]         \addplot[color=gray, fill] coordinates {(CP-Schelle,1.000)};         \addplot[color=blue, fill] coordinates {(Mistel-Schelle V2,2.459)(Mistel-Schelle V4,3.318)(Mistel-Schelle V4.2D,2.243)(Gewickelt nach Inspire,1.782)};         \end{axis}         \end{tikzpicture}     \end{figure}      \begin{figure}         \begin{tikzpicture}         \begin{axis}[%         width=0.6\linewidth,         height=0.5\linewidth,         axis x line=center,         axis y line=left,         symbolic x coords={CP-Schelle,Mistel-Schelle V2,Mistel-Schelle V4,Mistel-Schelle V4.2D,Gewickelt nach Inspire},         enlargelimits=true,         ymin=0,         nodes near coords,         x tick label style={             font=\small,             text width=1cm,             align=center         },         ybar]         \addplot[color=gray, fill] coordinates {(CP-Schelle,1.000)};         \addplot[color=blue, fill] coordinates {(Mistel-Schelle V2,2.459)(Mistel-Schelle V4,3.318)(Mistel-Schelle V4.2D,2.243)(Gewickelt nach Inspire,1.782)};         \end{axis}         \end{tikzpicture}     \end{figure}  \end{document}


which is the best books for ordinary differential equation for beginner?

which is the  best books for ordinary differential equation for beginner ?


When I try to use the define projection tool to change the projection of a layer it will not work for some reason. I am not sure what to do about this. I am trying to change it do GCS_WGS_84    Removing the dash in the layer name did not help, here is the full error message:  Executing: DefineProjection CULT_ARE GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',6378137.0,298.257223563]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]]


What exactly do the Malfoys do for a living?

Given how old some of those blue blood wizarding families are, I'd expect many of them to run out of money unless they have income sources (ala Gaunts).  Since there seem to be no feudal sources of income, Lucius Malfoy must have had some income source.  What exactly was it? Did he hold a job? Selling Dark Artifacts to B&B doesn't seem like an income stream :)


Ubuntu 16.04.3 - R9 380X Black screen at install

I have a Sapphire R9 380X and i tried to install Ubuntu 16.04.3 but when i press Install Ubuntu on GRUB the screen turns off and the fans spin at maximum speed and i cant get into the installer. In Ubuntu 16.04.2 and Kernel 4.8 it was working fine. I saw at AMD  that they have released a new driver for Kernel 4.10 but i was using the out of the box driver that ubuntu used "amdgpu". Why it isnt working now?


How to render an animation at a higher framerate?

Is there an easy way to render an animation at a higher framerate?  I'd like the playback speed to remain the same, but to have more in-between frames.    As far as I can tell, the framerate dropdown in the render settings only changes the playback speed.


How to add a description to the user name input field in the registration form?

I want a description under the user name input field in the Wordpress registration form like in the next example. How can I do this?  //create an extra field in login page for invitation code add_action( 'register_form', 'add_invitation_code_field' );  function add_invitation_code_field() {    ?>
                       Invitation code             <input id="invitation_code" class="input" type="text" size="20" value="" name="invitation_code"/>             <?php _e("Description text"); ?>
    <?php }


How to generate new log files with every new run

I have the following appender in my logback configuration file:  <configuration> <appender name="SIFT" class="ch.qos.logback.classic.sift.SiftingAppender">     <discriminator>         <key>classname</key>         <defaultValue>unknown</defaultValue>     </discriminator>     <sift>         <appender name="FILE-${classname}" class="ch.qos.logback.core.FileAppender">             <file>target/logs/${classname}.log</file>             <append>false</append>             <layout class="ch.qos.logback.classic.PatternLayout">                 <pattern>[%thread] %level %logger{35} - %msg%n</pattern>             </layout>         </appender>     </sift> </appender> <root level="DEBUG">     <appender-ref ref="SIFT" /> </root> </configuration>   How can I configure logback to do the following:   On startup always generate a new files and delete existing Clear the file when it is over than 50 mb   Thank you


Is it a fixed order that all global variables are initialized prior to main()?

(Beginner Question:) I initialized some global variables via user defined functions, and compared their execution sequence with main(). Result shows that these global variables' initialization come first.    I am not sure whether there is any execution sequence outside main function. May I confirm this is always the case (that global declarative region comes before main())?    It is confusing to see that c being declared after main() but executed earlier.  Below is the code I used:  int foo(string);  int a = foo("a");       /* global var init */  int main(int argc, char **argv) {   cout << "main() is now executed" << endl;   return 0; }  int b = foo("b");       /* global var init */  int foo(string s){   cout << "foo() is now executed for : " << s << endl;   return 42; }  int c = foo("c");       /* global var init */   Result:  foo() is now executed for : a foo() is now executed for : b foo() is now executed for : c main() is now executed   Answer:    No it is not fixed order.  See n3797, 3.6.2/5: It is implementation-defined whether the dynamic initialization of a non-local variable with static or thread storage duration is done before the first statement of the initial function of the thread.


How can I create a directory and change my working directory to the new directory?

I'm seeking a way to create directory and change my present working directory to newly created directory just by using a single command. How can I do this?  i.e Instead of doing  user@Computer:~$ mkdir NewDirectory user@Computer:~$ cd NewDirectory user@Computer:~/NewDirectory$    I want to do  user@computer:~$ **command** NewDirectory user@Computer:~/NewDirectory$   What can the command be?


Are any security/browser compatibility issues with posting a form to an iframe?

I am building a plain IOT web interface in python with a simple HTML form. When a user would submit this form there is no need for a response. I would like to simplify and use a very old technique from the times before ajax:    <form target="hiddeniframe" method="post"> <input type="text" name="somevalue"> <input type=submit> </form>  <iframe name="hiddeniframe" style="display:none;"></iframe>     The POST request would go into the hidden iframe. The user would see the result live from the connected device, so no need to show a response.  I would like to know if there are any security/browser compatibility issues with using this old technique?


Showing that a sequence is monotone and thus convergent

Here's the original question:     Let $(a_n)$ be bounded. Assume that $a_{n+1} \ge a_{n} - 2^{-n}$. Show   that $(a_n)$ is convergent.   Okay, I know that if I can show that if the sequence is monotone, I can conclude that it is convergent. But I am not sure how to show that it is monotone.  I know that  $$a_n \le a_{n+1} + \frac{1}{2^n} < a_{n+1} + \frac{1}{n}$$  It looks to me as if it is monotonically increasing but I'm quite not sure how to prove my claim. Any hints would be appreciated.


If $G$ is a group whereby $(a\cdot b)^{i} =a^i\cdot b^i$ for three consecutive integers $i$ for all $a, b \in G$, show $G$ is abelian.

If $G$ is a group in which $(a\cdot b)^{i} =a^i\cdot b^i$ for three consecutive integers $i$ for all $a, b \in G$, show that $G$ is abelian.  Proof: Let $x$ be the smallest of the 3 consecutive integers. Then, we have   $(1)(a\cdot b)^{x} =a^x\cdot b^x$, $(2)(a\cdot b)^{x+1} =a^{x+1}\cdot b^{x+1}$ and $(3)(a\cdot b)^{x+2} =a^{x+2}\cdot b^{x+2}$.  Using $(2)$ and multiplying $a^{-1}$ on the left and $b^{-1}$ on the right, we get $baba...ba = a^{x}b^{x}(4)$ whereby there are $x$ number of $a$ and $x$ number of $b$ on both sides.  Using $(1)$ and multiplying both sides on the right by $ab$, we have $\overbrace{abab...ab}^{(x+1)ab} = (a^{x}b^{x})ab (5)$.  Substitute $(4)$ into $(5)$, we get $\overbrace{ab...ab}^{(x+1)ab} =\overbrace{ba...ba}^{(x)ba}ab(6)$.  Using $(3)$ and multiplying $a^{-1}$ on the left and $b^{-1}$ on the right, we get $\overbrace{ba...ba}^{(x+1)ba} = a^{x+1}b^{x+1} = \overbrace{abab...ab}^{(x+1)ab}(7)$.  Combining $(6)$ and $(7)$, and multiply $a^{-1}b^{-1}...a^{-1}b^{-1}$ on the left, we get $ab = ba$. Hence $G$ is abelian.


Create object-like macro from concatenation of token and macro

I want create an object-like macro from the concatenation of token and macro. I have this code:  #define alfa vita /* Code below is broken. */ #define gamma delta##alfa gamma   The gamma is replaced with deltaalfa. I want it replaced with deltavita. How can I do this?  I don't want the gamma to be a function-like macro.     This question is very broad. It isn't focused on my problem and the first answer doesn't address it either.


I recently installed Ubuntu 14.04 (First time linux user) on my HP Envy and have been trying to get the dual boot to work. I've looked around and have tried running the boot repair (here are the ) but it still says the boot files are far from the start of the disk. I also ran the efibootmgr and have this:  BootCurrent: 0000  Timeout: 0 seconds BootOrder: 3002,3000,3001,2001,2002,2003 Boot0000* ubuntu    HD(2,c8800,82000,a0d91f49-899b-46ac-8863-35f2d16774c4)File(\EFI\ubuntu\shimx64.efi) Boot0001* Ubuntu    HD(2,c8800,82000,a0d91f49-899b-46ac-8863-35f2d16774c4)File(\EFI\ubuntu\grubx64.efi)RC Boot0002* Windows Boot Manager  HD(2,c8800,82000,a0d91f49-899b-46ac-8863-35f2d16774c4)File(\EFI\Microsoft\Boot\bootmgfw.efi)RC Boot2001* USB Drive (UEFI)  RC Boot2002* Internal CD/DVD ROM Drive (UEFI)  RC Boot3000* Internal Hard Disk or Solid State Disk    RC Boot3001* Internal Hard Disk or Solid State Disk    RC Boot3002* Internal Hard Disk or Solid State Disk    RC Boot3003* Internal Hard Disk or Solid State Disk    RC Boot3004* Internal Hard Disk or Solid State Disk    RC Boot3005* Internal Hard Disk or Solid State Disk    RC Boot3006* Internal Hard Disk or Solid State Disk    RC Boot3007* Internal Hard Disk or Solid State Disk    RC Boot3008* Internal Hard Disk or Solid State Disk    RC Boot3009* Internal Hard Disk or Solid State Disk    RC Boot300A* Internal Hard Disk or Solid State Disk    RC   Which by the looks of it looks very messy and is not putting the efi files at the start.  Any suggestions as to how I should go about this issue?   Thanks.


How to preserve detail when downscaling scanned photos?

I'm mixing analog with digital photography — I tend to take better photos when I can't look at a small digital screen, unconsciously forcing me to take the picture before I shoot instead of checking afterwards if it succeeded. I also like the grain film gives me.  However, most shots aren't worth spending much time in the darkroom, and scanning them is a lot faster. I'm wondering how best to convert the film to digital.  Scanning at lower than maximum (non-interpolated) resolution of my image scanner tends to exaggerate the contrast of the grain and screw up the mid-tones because of that.1 On the other hand, the resulting size of the scans are major overkill in most cases (I don't print them at A0 size), so I want to downscale the pictures. However, the grain confuses most methods and results in loss of detail and/or loss of the characteristic grain. For example, bicubic sharper tends to result in a "bigger" grain than the original. Now, the best compromise I've found so far is simply using bilinear interpolation, but I doubt that this is the best method to preserve both overall details and the look of the grain.  In short: when processing the scanned negative, how do I "best" preserve both image quality and the characteristic look of the grain?   As Stan Rogers pointed out below, there's a difference between truly scanning the grain of the film, and scanning the "grainy" character of film at lower resolutions. This question is about the latter; Stan Rogers explains how to do the first.  I'm looking for alternatives to the standard Photoshop options to try out, and reasons for each. Is the fact that every film has a different grain characteristic a problem? Are customized advanced noise reduction methods perhaps an option?  1. I'm using a Minolta DiMAGE Scan Elite 5400, using the software provided by Minolta.  As requested, here is a scanned picture with different resize methods. Just scanned this, scanning a B&W negative to get better tonality range. I turned off grain dissolver, automatic dust and scratch removal, etc, for obvious reasons. On the right the pictures are upscaled again with Nearest Neighbor. I set the 8 bit scan to 16 bits before downscaling, assuming it reduces risks of banding if I choose to mess with curves, channel mixers, etc. No other modifications (usually I first retouch dust & scratches, and in the end channel mix the picture to B&W, then switch to 8 bits again).


Cancel a vote so that the tally goes back to zero and not minus

If I vote up a post, the vote score will increase from 0 to 1. But then I might change my mind or repent  my actions and wish to take back that vote.  If I vote it down, the score will be minus instead of zero.  How do I undo my vote so that the score will come back down to zero instead of showing the minus 1?


Let $p=4k+1$ be a prime number such that $p=a^2+b^2$ , with $a$ an odd integer. Prove that the equation $$x^2-py^2=a$$ has at least a solution in $\mathbb{Z}$.  Only a little progress (maybe useless): for any prime divisor $q$ of $a$, we get $(\frac{q}{p})=1$ through Guass' quadratic reciprocity law, which suggests $(\frac{a}{p})=1$.


Is it safe to measure AAA battery current with a multimeter directly?

Just bought a consumer grade multimeter, read carefully the instructions and tried some things. I know some very basic things about electricity, but I am unsure whether what I did was safe and didn't damage my multimeter or make it not work properly whatsoever.  After reading many forums I know it is relatively safe to measure voltage. As for current, I know you must be cautious.  What I did was this:   connect the red probe to the 10A plug (2) put the dial switch of the multimeter to 200m (3) turn it on touch the red probe to the positive and black - to the negative of the AAA battery  Nothing blew up. :)   So, here are my questions:   Is it safe what i did for the multimeter? What does the reading 54.0 on the display mean? The red probe is in the 10A plug (2), so how am I supposed to interpret the scale to the switch? I mean, there is a position that says 20m/10A (4), so I assume that is 10A. But what about the next position 200m (3)? Is it 20A? Because, you know, they say when you don't know what you're measuring it's best to start with the largest scale and work your way down. So, what is the largest scale? Is it 20m/10A (4) or 200m (3)? What about the measurement when the dial switch is in position (4)?  After all, I can't seem to understand how many miliamps is the current that my battery gives. Is it safe to measure if the probe is in port (1)? I know the multimeter didn't blow any fuse, but my OCD wants to know whether the tool suffers from these measurements.   EDIT:   If that measurement is so bad for the battery and the multimeter, as many people say, then is it also bad (for the battery and for the tester) to measure batteries with this battery tester that I bought for a couple of bucks:    EDIT 2:   This concrete meter has a function "Battery test". See in the photos - the dial switch has a "BATT" section for 1.5V and 9V and the red probe must be in plug (1). However, when I test this same battery, it shows 1.27 - just the same as when I measure its voltage. The manual says (copy/paste): "In the measuring ranges BATT 1.5V and BATT 9V, the battery to be measured is charged by an internal resistance, thus you obtain practical information on the condition and functionality of the tested battery". I don't know if the translation of the manual to English is correct, but that's what it says. I still wonder if it does anything different, though. May be it just doubles the voltage meter for people who couldn't figure it out.  That being said, I wonder why don't all multimeters costing more than a few dollars have the same features that the Battery Tester  (costing $5) has.


I want to understand how to prove results regarding the relationship between the standard and nonstandard normal distributions. In other words, I want to prove the results regarding how to use z tables with nonstandard normal distributions, and finding its p'th percentiles.  What books or articles should I get through to do that? I have taken courses on calculus, real analysis and complex analysis. Do I need anything else to prove the results?


Is the statement ending with "for" considered proper?

What would be a better and more formal way out of the two below:  The capability was not catered for.   or   We did not cater for this capability.   Or perhaps these are fully interchangeable?


Dash, top panel and title bars of windows are not being displayed

After logging in to my system, the dash, top panel and title bars of windows are not being displayed. I tried opening dash by pressing the window key but it was of no use.  On my desktop, I had two shortcuts to some folders I use regularly. Using it I was able to open the nautilus explorer which let me realize that also the title bars are not being displayed.  Despite the comment at the start of  answer, I tried it never the less. Surprisingly, it seems compizconfig-settings-manager was already installed on my system and the Ubuntu Unity Plugin and Enable OpenGL checkboxes were already checked. I may have installed it when this system used to be an older version of Ubuntu but I don't remember doing it.  I also tried the following (again expecting it to work against all odds).  unity --replace   But the issue persists.  I thought of trying to get a screenshot but it would just have been my wallpaper with the two icons or maybe the title bar less window of nautilus. I don't think it would have helped anyway.  This system used to be 14.04 which I had then upgraded to 16.04. It used to work fine up until yesterday. I don't know what happened now.  Really need help with this :(    Update #1  As I mentioned, I've already tried most of the solutions given against  question; None helped.


Metadata Navigation and Filtering showed up for one time only

I have created main Enterprise Wiki site collection and I have enabled the  “Metadata Navigation and Filtering”. Then I have created a subsite also based on the enterprise Wiki. and I have defined that the metadata Navigation will be based on a predefined term set. Same as the steps mentioned in this link but the only difference is that I am using SharePoint 2013 and not 2010:-    Then when I navigate back to the sub site the term store showed up in the left side of the page, but after navigating through the term set it disappeared and I cannot re-showed it again?? Any idea what might cause this behavior?  BR  -:::EDITED:::-  After working on it I did the following:-   I modify the EnterpriseWiki.aspx page using SP designer , then i added the following at the beginning of the page:-  <%@ Register TagPrefix="wssuc" TagName="MetadataNavTree" src="~/_controltemplates/MetadataNavTree.ascx" %> and put this code in the end of page’s code.  <asp:Content id="Content1" runat="server" contentplaceholderid="PlaceHolderLeftActions"> <wssuc:MetadataNavTree id="mdnt" runat="server" /> </asp:Content> but the problem now is that  the navigation tree showed up, but currently if i click on a term it will always redirect to the home page , instead of displaying the wiki articles under this term as shown below:-      the second problem is that the term tree will be shown to site collection administrator only . the readers and contributors will not be able to see the term tree !!!!.


Why didn't Isildur's Heir come forward sooner?

In Appendix A: Annals of the Kings and Rulers, we learn some things about Aragorn's family tree. There are basically two facts that together are confusing me:   The Kingdom of Arnor comes to an end in TA 1975 after the Dúnedain are basically wiped out battling the forces of Angmar. But the line survives in Aranarth, Aragorn's great-to-the-power-of-thirteen-grandfather.   The line of the Kings of Gondor comes to an end in TA 2050, when Eärnur dies with no sons and they can't find a pure-blooded Dúnedain to rule after him.   However, Aranarth is alive at this time (He doesn't die until 2106, meaning he's as good a candidate as any to take the throne of Gondor. So why doesn't he?  Showing my work a bit, the Appendix does give a partial answer. In 1944 the King and both his sons are killed in battle, and history tells us:     On the death of kind Ondoher and his sons, Arvedui of the North-kingdom claimed the crown of Gondor, as the direct descendant of Isildur, and as the husband of Fíriel, only surviving child of Ondoher. The claim was rejected. In this Pelendur, the Steward of Kind Ondoher, player the chief part.   [Arvedui objects to this on the grounds that he's still descended in direct line from Elendil]   To this Gondor made no answer. The crown was claimed by Eärnil, the victorious captain; and it was granted to him with the approval of all the Dúnedain in Gondor [...] Arvedui did not press his claim; for he had neither the power nor the will to oppose the choice of the Dúnedain of Gondor; yet the claim was never forgotten by his descendants even when their kingship had passed away.   So, okay. Maybe Aranarth (The son of Arvedui) doesn't come forward because he holds a bit of a grudge, or because he figures they'll reject him again. Fair enough.  But there are nine hundred years between when Eärnur dies and Aragorn takes the throne. For all of that time, we know that Gondor expects a King to return, and not just Eärnur himself:     Each new Steward indeed took office with the oath 'to hold rod and rule in the name of the king, until he shall return'. But these soon became words of ritual little heeded, for the Stewards exercised all the power of the kings. Yet many in Gondor still believed that a king would indeed return in some time to come; and some remembered the ancient line of the North, which it was rumoured still lived on in the shadows.   So everybody knows that Gondor is waiting for a King, and apparently the only people who don't know that the Northern Line is still alive and kicking is Gondor herself. So why, in those (again) nine hundred years, did one of them not come forward to claim the throne?


Ubuntu swappiness parameter does not working

This is my Ubuntu version. # uname -a Linux psh-VirtualBox 5.3.0-42-generic #34~18.04.1-Ubuntu SMP Fri Feb 28 13:42:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux  I did the same experiment after setting the swappiness values 1 and 100. The test is to fill the cache area and then allocate more than free memory in the new process. However, none of them used the SWAP area. Even if the swappiness value is 100, isn't the SWAP area used? When swappiness = 1 # sysctl -w vm.swappiness=1 vm.swappiness = 1  swapoff -a swapon -a echo 1 > /proc/sys/vm/drop_caches echo 2 > /proc/sys/vm/drop_caches echo 3 > /proc/sys/vm/drop_caches  # free               total        used        free      shared  buff/cache   available Mem:        8152876      995524     7036300       20760      121052     6951560 Swap:       3067108           0     3067108  # dd if=/dev/zero of=./file_1 bs=1024 count=6500000  # free               total        used        free      shared  buff/cache   available Mem:        8152876      994732      356972       20760     6801172     6833516 Swap:       3067108           0     3067108  # ./memory_allocate_2G   # Another Session  # free               total        used        free      shared  buff/cache   available Mem:        8152876     3055936      129096       20760     4967844     4775416 Swap:       3067108           0     3067108  When swappiness = 100 # sysctl -w vm.swappiness=100 vm.swappiness = 100  swapoff -a swapon -a echo 1 > /proc/sys/vm/drop_caches echo 2 > /proc/sys/vm/drop_caches echo 3 > /proc/sys/vm/drop_caches     # free               total        used        free      shared  buff/cache   available Mem:        8152876      995892     7049160       20760      107824     6957692 Swap:       3067108           0     3067108  # dd if=/dev/zero of=./file_1 bs=1024 count=6500000  # free               total        used        free      shared  buff/cache   available Mem:        8152876      995236      366380       20760     6791260     6832984 Swap:       3067108           0     3067108   # ./memory_allocate_2G   # Another Session  # free               total        used        free      shared  buff/cache   available Mem:        8152876     3055936      129096       20760     4967844     4775416 Swap:       3067108           0     3067108  Would my test be wrong? thank you. And Our Live Server free info ( Why use swap when there is enough free space? ) swappiness is 10. Linux Server 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux  $ free              total       used       free     shared    buffers     cached Mem:      32901680   29978376    2923304          0     193676    9317964 -/+ buffers/cache:   20466736   12434944 Swap:      7812092    6379492    1432600


I have a system unit that was working perfectly fine last week. I put it into my small internet cafe and days later it wont turn on. The beeps are short continuous beeps which only stops after it restarts on its own. Here is the  I tried: Reseating rams reset cmos tried only 1 ram in first slot tried only 1 ram in second slot tried no ram(still the same beep) reseating cpu specs: pentium g620 gigabyte ga-h61m-ds2 8gb ram(4x2) Any help will be much appreciated


Why List.contains() takes Object as an argument in Collections Java

The java.util.List.contains(Object o) method takes Object as an argument and internally uses Object.equals(Object o) as described .  If I do the following code in Netbeans:   List<String> listStr = new ArrayList<>();  listStr.contains(34); //warning   it gives the obvious warning, that is:  Given object can not contain instances of int (expected String)   Since it visible to all, that String never be equal to int then why shouldn't it take Element type E (in my case String) as an argument instead of Object?


Unable to deploy SiteDotCom: target org is running on an earlier version of Salesforce and can't accept the current file

I am trying to deploy a Salesforce Lightning Community from a Sandbox to Production.  I've included the Network and SiteDotCom in the change set, but I am getting this error:     Sorry, your target org is running on an earlier version of Salesforce and can't accept the current file. Please wait for your target org to be updated and try again.   Is there anything I can do to get around this? (apart from setting up the community manually)  Or do I need to wait until the Production Org has been updated to the same version as the Sandbox?


How to find in java in this statement line number?

I want to find the line number of a code dynamically. How can this be done?  public static void main(String[] args) {          System.out.println("This Line Number is : ????");  }


Why is asking for application recommendations considered Off-topic?

This is the motivation "Questions asking us to find or recommend an app, device, ROM, accessory or off-site resource are off-topic as they tend to attract opinionated answers and spam and become obsolete quickly."  Why are "opinionated answers" a problem? If I ask for a recommendation and five people argue for their favourite solution pointing out advantages with their tool and disadvantages with other tools that's very useful information for me before a decision. If you buy something expensive or important in the real world you usually visit several providers and ask them to argue for their product/against competing products to get a good idea of the market before you make a decision.  And this site is not a safe space for people who can't handle an argument. If you don't like what people are discussing, shut down your computer and watch some Disney channel.  Finally, do you have any source for the claim that these answers become "obsolete quickly"? And what is quickly? If you ask questions about Javascript frameworks or web browser capacity/compatibility I am pretty sure these answers too become obsolete quite "quickly". Are we not allowed to ask that types of questions?  Grow up, ignore threads you don't care about but let other people who care discuss if they like. The live and let live-principle (Yes, I am aware that this principle is no longer practised on American and British universities but that is not a good reason to stop practising it in the rest of the world).


Converting a similarity to a dissimilarity

I am working on a clustering problem for which I have to manually choose the number of clusters. I have a visualization tool that helps me decide whether the clusters are good. In order to automatically select the number of clusters, I tried the following: compute the silhouette associated to several clusterings and choose the configuration giving the best score. My clustering algorithm uses a correlation $p \in [0,1]$ to regroup the elements. Since silhouette requires a dissimilarity, I converted my similarity into a dissimilarity. I tried different formulas for this conversion: $1-p$, $1/(1+p)$, or $1/(1+\exp(1+p^2))$.  Every time, the clustering seems nice (visually), but the silhouette is poor (around 0).   I think the reason might be because the conversion formula I am using is not appropriate, but I don't have any idea of what a good similarity to dissimilarity conversion could be. Any idea?


How to use custom LWC lightning component in lightning-datatable

If we want to have custom lightning component in LWC lightning-datatable, for example Upload file for each of the records, how can we do that?


Character not developing with DM's story

I haven't RPed much, only 2-3 games; most of them are never completed due to events happening and the RP can't be continued.  In the current game I have made a Chaotic Neutral character, whose main goal is to search for treasure and likes to plan his steps. My DM is currently expecting all characters to go along with the quest for the fact that is the right thing to do, or heroic act. My character does not see a reason to follow with the quest, making the DM provide exp to the members following this quest while I'm left with nothing. I am not sure what the best choice to make with this. Should I break out of character and just follow with the story or make a new character that aligns with the DM's purpose?


I am trying to use my pc wireless card as an AP, while being connected to my wifi network thru the very same card, but I have a problem. What I am trying to achieve is the equivalent of Windows' Virtual Wi-fi technology. In line of principle, it's very simple:  service network-manager stop iw dev wlan0 del iw phy phy0 interface add new0 type station service network-manager start iw phy phy0 interface add new1 type __ap hostapd -B /etc/hostapd.conf   with a suitable configuration for hostapd:  cat /etc/hostapd/hostapd.conf  interface=new1 driver=nl80211 logger_syslog=-1 logger_syslog_level=2 logger_stdout=-1 logger_stdout_level=2 ssid=XXXX country_code=us hw_mode=g channel=1 macaddr_acl=0 auth_algs=3 ignore_broadcast_ssid=0 eap_server=0 wpa=2 wpa_passphrase=XXXX wpa_pairwise=TKIP CCMP rsn_pairwise=TKIP CCMP   However, the driver nl80211 refuses to put the virtual IF new1 into AP mode. Here comes the interesting bit: the output of iw list contains  Supported interface modes:          * IBSS          * managed          * AP          * AP/VLAN          * monitor software interface modes (can always be added):          * AP/VLAN          * monitor valid interface combinations:          * #{ managed } <= 1, #{ AP } <= 1,            total <= 2, #channels <= 1, STA/AP BI must match          * #{ managed } <= 2,            total <= 2, #channels <= 1   It is obvious my wifi card (an Intel Centrino Advanced-N 6235 [8086:088e] under iwlwifi) supports AP mode (I have tested it), and I had interpreted the "valid interface combinations" to mean that I could have at most 1 managed and 1 AP vifs on this card at the same time. But then I noticed the mysterious-looking constraint, STA/AP BI must match.  Does anyone know what this means, and whether this is what is thwarting my attempts at using two vifs on my card, one in station the other in AP mode? Cheers


$$2 = 5-3 \\ 4 = 7-3 \\ 6 = 11-5 \\ 8 = 19-11 \\ 10 = 13-3 \\ \vdots$$  For every positive even number $n$, does there always exist a pair of prime $(p,q)$ such that $p-q =n$?


Does rolling a critical hit on a spell attack do double damage? Specifically, do you double the number of damage dice if the spell attack roll is a natural 20?  This came up in a game with the Guiding Bolt spell, which seemed really powerful with twice the damage dice.  (I saw the Q&A , but wanted to clarify the damage vs the attack hit chance.)


How to compare data between staging and operational tables?

I just want to ask how to compare two database tables, staging vs. operational tables.   After we did the transformation and convert it to correct datatype like convert flag column (Y/N) nvarchar to bit or to int, how to compare data between the two tables?


How can the speed and the mechanics of light be similar to the speed and the mechanics of gravity?  Most say that light cannot escape a black hole. Then gravity cannot escape a black hole either, so there would be no effects of gravity felt outside of this black hole.


Will a Nikon AF-S Nikkor 50mm 1: 1.8 G lens work on my Nikon D3100 series camera?

Will an AF-S Nikkor 50mm 1:1.8G work well with my with Nikon D3100?


The sequence $T_n(f)=\int_0^\infty \frac{x^n}{n!}e^{-x}f(x)dx$ in ${L^\infty}^*$ is not weak-$*$ seq. compact

The following problem is from the spring $2020$ analysis qualifying exam given at UCLA: Define $T_n\in L^{\infty}(\mathbb{R})^*$ as $$T_n(f)=\int_0^\infty \frac{x^n}{n!}e^{-x}f(x)dx$$  Prove that no subsequence of this sequence converges weak-∗. Explain why this does not contradict the Banach–Alaoglu Theorem.  The second point is not too hard: $||T_n||=1$ and it does not contradict Banach-Alaoglu because Banach-Alaoglu gives compactness of the unit ball, not sequential compactness, in general. We have sequential compactness if the banach space is separable, and $L^\infty(\mathbb{R})$ is not so there's no contradiction. However, I am stumped by the first point: my first idea was to try and find, given a sequence $T_{n_k}$, a function $f$ such that $T_{n_k}(f)$ does not converge (perhaps by some diagonalization process) but I was not able to construct such a function. Any hint is appreciated


I have tried installing fspy in blender 2.81, however it says it is 'installed' (as can be seen in attached image) but then doesn't appear in add-ons list, and hence cannot be enabled.


How is an icon for a site created or added to that site?

If I created an icon for a site on SE, how could it become the official one? (Instead of the light-blue speech bubble with initials in it)


Grouping points with distance using ArcGIS Desktop?

I have a point layer and I want to create polygons arround points which are in distance of 10 meters.  I did create a grid vector of 10m but it doesn't group as well as they have to be.  I did create a buffer arround my points in arcgis, as you know arcgis buffer tool gives you the posiibility to choose a dissolve type yet in the merged buffers I can have also a point which is in a distance of 20m.  I'm wondering if there is a possibility, using ArcGIS Desktop, to select from the same layer the features within a distance of  10m  and create a polygon around.


How to apply standardization/normalization to train- and testset if prediction is the goal?

Do I transform all my data or folds (if CV is applied) at the same time? e.g.  (allData - mean(allData)) / sd(allData) Do I transform trainset and testset separately? e.g.  (trainData - mean(trainData)) / sd(trainData)  (testData - mean(testData)) / sd(testData) Or do I transform trainset and use calculations on the testset? e.g.  (trainData - mean(trainData)) / sd(trainData)  (testData - mean(trainData)) / sd(trainData)   I believe 3 is the right way. If 3 is correct do I have to worry about the mean not being 0 or the range not being between [0; 1] or [-1; 1] (normalization) of the testset?


No matter what desktop environment, how do I get a permanent global application menu?

Permanent global application menu somehow? Doesn’t have to be Unity, but should work in 12.04 or newer.  Permanent means: one which doesn’t disappear after two seconds. Global application menu means: the application menu is not in it’s window but in a (top-)panel. – Eats less space if a permanent panel exists and is not full yet (so the menu fits in there).


Option to remove the @username references in the replies from your history, when you change your name

Regarding  and taking into account the issues raised. Rather than suggest a change, I suggest a reference removal from every comment that is traced from your specific inbox.* *( The other question wanted to alter every reference in the entire database )  Hence,  @anon The quick brown fox jumps over the lazy dog.  Becomes either:  @ The quick brown fox jumps over the lazy dog.  or  The quick brown fox jumps over the lazy dog.  The first Preserves the fact that it was pointed, however it does imply that you changed your name. The latter helps disguise the fact that you changed your name, however it obfuscates the intended flow of the conversation. The thrust of this suggestion is motivated by greater user security and privacy. For example, I recently changed my name on SE. Suppose it was a very ethnic name, as well as my real name. I may not want users to easily doxx myself by merely sifting through comments on my questions and answers, and finding the @username, and using that information to abuse or discriminate against me based upon my background. And that's that.


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?


evaluating the limit $ \lim_{(x,y) \rightarrow (0,0) } \frac{x^2y^2}{x^2 + y^2} $

I was trying to evaluate $$ \lim_{(x,y) \rightarrow (0,0) } \frac{x^2y^2}{x^2 + y^2} $$ but only partially managed to do so through implying $y=kx$ but didn't find any other appropriate functions for this.


Sed to replace string of 10 characters with 'XXXX '

I have file which looks like  ACCINTCCADVANCESC ACCINTCCADVANCESE ACCINTCCADVANCESW   I want to replace INTCCADVAN with XXXX␣␣␣␣␣␣, the ␣s are spaces. Specifically I want to replace a column with more than 150 characters with xxxx and white spaces till the end of 150 characters.


I'm currently dual booting Ubuntu and Windows 8. Ubuntu is pretty much broken, and everywhere I've looked doesn't have a solution, so I wish to uninstall it. I read that it's possible to uninstall Ubuntu by deleting its partition on Windows. I checked to see what partitions I have, and there are 7 unused partitions, and I'm not sure which one to delete.     Is there any way to know which partition is Ubuntu so I don't delete the wrong one? Can I just delete Disk 0? Disk 1 is full of files that have names (like OEM, EFI, Recovery, etc).


Suggested edit system is causing grief, needs to be rethought

Over the past few weeks, there have been a number of complaints about users making suggested edits en masse whose quality was at least questionable.  Let an example of a low-quality edit be the addition of the web-frameworks tag to dozens of questions about the PHP web framework Laravel. No one is ever going to use it in a search, but Laravel is a framework, right?  (If you disagree about this being a low-quality edit, please  bear with me anyway - my point here is that the system through which such conflicts could be settled is broken.)   Examples          This is a toxic situation guaranteed to create strife because -   The new user is happy to have found a way to participate and earn some rep; they may be genuinely feeling that they are improving the site. The reviewers greenlighting most of their suggestions confirms them in their belief.   The reviewers usually see only one edit - and it's easy to see how they might go, "meh, this isn't a terribly useful edit, but hey, maybe it helps someone, and it's a new user. No point discouraging them."   The veteran users who check out the editor see dozens of what they perceive as low-quality edits, usually ignoring anything else that should be fixed in the post. To the veterans, the new user is systematically looking for excuses to make their pointless edits, creating a giant mess in order to  gain some rep - a mess they have to clean up, while there are no consequences for the editor, who gets to keep their ill-gotten points. While a bad question or answer can be downvoted - usually leading to a change of behaviour eventually - the edit system looks like it's wide open for gaming.   So tensions are high, and when there's dialog it can be angry. I'm not saying either side is completely right. I'm completely prepared to believe that many of these edits are in good faith, etc. But it's a mess because it's frustrating people. As said, there are no consequences for bad-faith mass editing; apart from commenting on some random post, there is no way to communicate with an editor. The outcome of a moderator flag is very much uncertain.  The absence of a clear set of rules means there's plenty of room for heated arguments.    Something needs to change here.  Either   We need super clear rules on what makes a good tag edit Tag-only edits should be allowed only for 2k+ users, or they should not gain 2 reputation points for <2k users The possible 1000 rep gain for suggested edits needs to be rate-limited (say, 200 per month) (this is my favourite!) The possible 1000 rep gain for suggested edits needs to be lowered, say to 500 or 250 Rollbacks of suggested edits should result in annulment of the 2 points gained (this is terrible) There should be a system to vote on edits (yes, that's been suggested before) There should be a defined and officially sanctioned pathway, and ruleset, for moderator flags cast about these users    ... or something else. But something needs to give.


Is this true: any matrix after a random perturbation, it is diagonalizable with probability 1?

As someone points out, we could change the matrix as arbitrary small as possible to make it diagnolizable,   but for any random perturbation, say $$A+E$$, E is random matrix, is the summation must be diagozable with probability 1?


Keeping a Bakers and Chefs stainless steel10 skillet from burning foods

I have a 6 inch and a 10 inch skillet that I can't keep from burning foods. High heat low heat. NOTHING. I am trying to use the 6 inch pan for eggs, and they stick. Using butter or Chefs Secret spray... HELP


Why are iptables rules to redirect incoming traffic blocking other ports/service?

I have followed some posts in order to redirect all incoming traffic public IP to an internal IP address using iptables. I set sudo sysctl net.ipv4.ip_forward=1 and used the following rules: iptables -t nat -A PREROUTING -p tcp --dport 9080 -j DNAT --to-destination 192.168.178.1:80 iptables -t nat -A POSTROUTING -j MASQUERADE  The idea is that I have a remote server (Ubuntu 20.04.1 LTS) which I can always reach using a reverse SSH tunnel. In that network I would like to access some devices like gateway and other devices. With the iptables I would like to be able to access, for example, the GUI of the gateway. On the local network the rules work! The problem is that on the server I cannot set up the tunnel to redirect 9080 to 192.168.178.1:80. When I try other things on the server, for example ping I get the following: $ ping google.com ping: google.com: Temporary failure in name resolution  And when I set the tunnel: $ ssh user@remoteserverfortunnel.com ssh: Could not resolve hostname remoteserverfortunnel.com: Temporary failure in name resolution  When I set up the tunnel before the rules (removing then with -D), and adding the rules again a get this when requesting the remoteserverfortunnel.com:9080 ssh -N -R 9080:localhost:9080 user@remoteserverfortunnel.com user@remoteserverfortunnel.com's password:  connect_to localhost port 9080: failed.  I can still login the server using the normal port 22 SSH. My question is, why are the rules blocking the tunnel? Is there an extra rule I have to add? EDIT: I added the interface option: iptables -t nat -A PREROUTING -i enp2s0 -p tcp --dport 9080 -j DNAT --to 192.168.1.103:80 iptables -t nat -A POSTROUTING -o enp2s0 -j MASQUERADE  The failure in name resolution is solved. Unfortunately the idea using the tunnel still does not work, I get connect_to localhost port 9080: failed. I did found out that I could also tunnel direct to the device, for example using ssh -N -R 9080:192.168.178.1:80 user@remoteserverfortunnel.com. Using this avoids using the iptables, I would still want to the IP tables option to learn. Some devices also do not work as expect through the tunnel.


In C# What's the difference between Int64 and long?

In C#, what is the difference between Int64 and long?  Example:  long x = 123; Int64 x = 123;


I deleted the Ubuntu partition from Windows 7, now I can't access Windows

I deleted the partition containing Ubuntu from my computer -- manage -- disk management  and now my laptop is showing:  error: no such partition. grub rescue> 3   Please tell me how can I open my regular Windows 7 now.


I forgot to get my mince beef out of the freezer to cook tonight, so it's still frozen...Can I cook it straight from frozen or does it need to fully defrost?


How to to secure WordPress file and folder permissions

I've read articles about protecting wp-config.php using .htaccess as well as setting the correct file permissions but I want it all in one place. What should my .htaccess file look like and what folders is it safe to have 777 vs 755 permissions?


Waiting for one more reviewer due to being unresponsive - what to expect?

I have submitted a paper to an Economics journal in September 2019. It was assigned to reviewers in October of the same year. When being assigned, I was told by the journal office, that the review process might take between three to four months. I have sent an email to the journal office to which they have replied to me today saying that, one of the reviewers has already given his/her reviews, but the journal is still waiting for the second reviewer to submit his/her reviews? They told me that the concerned reviewer has become unresponsice and they will help to expediate the process. Furthermore, journal office mentioned that they will keep monitoring the situation nd the editor will proceed to a decision as quickly as possible once sufficient reviews have been received. Does the fact that one of the reviewers who has already provided his/her reviews bears any significance in terms of revision, acceptance or rejection? And what is the significance that one of the reviewers have been unresponsive? Thanks.


animate object shaped with curves modifier by moving curve vertex

So I created this beaded bracelet and want to know if it possible to animate the path so it looks like it is "wiggling" (ideally grab two opposite vertices and move them around.)  Since it is a nurbspath I cannot parent, and using a curves modifier and then changing the path  doesn't seem to do anything.  The string and beads are a joined object with a curves modifier already applied for this initial shape.


What does it mean to prove statements or solve problems "from first principles"?

When asked to solve or prove something from first principles, what do they mean by that? They expect you to use only axioms or basic properties or both or it can be a bit more subjective understanding of the term?


Help finding the limit of this series $\frac{1}{4} + \frac{1}{8} + \frac{1}{16} + \frac{1}{32} + \cdots$

How can I go about finding the limit of $$\frac{1}{4} + \frac{1}{8} + \frac{1}{16} + \frac{1}{32} + \cdots = \sum_{k = 1}^{\infty} \frac{1}{2^{k+1}}?$$ Could I use the absolute value theorem? I have a feeling it converges to $0$ but I am not sure.


I'm running Ubuntu 14.04 and have installed cmake, but the version included is only 2.8. Minimum version that I require is 3.0.2 for my project ,so how can I use 'apt-get' to install a newer version? Or do I have to install it manually, which kind of eliminates the purpose of having a package manager.  Same goes for eclipse v3.8 and I need v4.4 (or at least v4.x).


No room for a new \dimen despite of loading etex

After upgrading to TeX Live 2013 one of my books does not compile any longer. I do load etex, but still have not enough room. What can I do? Back in 1994 I had a colleague who hacked the LaTeX source code and increased the number of registers there, but this is probably not the way to go. Is there anything I can do? Loading eetex or even eeetex? =:-) I can compile the document when I do not load soul, but I need \st.  Edit: This is the error message  ! No room for a new \dimen . \ch@ck ...\else \errmessage {No room for a new #3}                                                   \fi  l.322 \newinsert\@indexbox  ? x  Here is how much of TeX's memory you used:  22107 strings out of 493316  370083 string characters out of 6137929  515169 words of memory out of 5000000  25110 multiletter control sequences out of 15000+600000  10432 words of font info for 28 fonts, out of 8000000 for 9000  957 hyphenation exceptions out of 8191  75i,1n,77p,581b,275s stack positions out of 5000i,500n,10000p,200000b,80000s No pages of output.   This is an example:  \documentclass{scrbook}  \usepackage{etex}   \usepackage{ifthen} \provideboolean{draft} \setboolean{draft}{false}  \usepackage[latin1,utf8x]{inputenc}  \usepackage[T1]{fontenc} \usepackage{times}  \usepackage[T1]{tipa}  \usepackage{amssymb}  \usepackage{eurosym}  \usepackage{jambox}  \usepackage[paperwidth=170mm,paperheight=240mm,textwidth=126mm,textheight=196mm,tmargin=25mm,driver=dvips]{geometry} \usepackage{natbib} \usepackage{scrpage2}  \usepackage{ngerman}\selectlanguage{german} \usepackage[german]{varioref}  \usepackage{graphicx}  \usepackage{subfig} \usepackage{tikz-qtree}  \usepackage[figuresright]{rotating}   \newdimen\widelabel \widelabel=0.0pt   \usepackage{tree-dvips,pstricks,pst-node,lastpage,float,comment,soul}   \usepackage{ogonek}    \usepackage{authorindex} \usepackage[bookmarks=true,hyperindex=true,% breaklinks=true, draft=false,plainpages=false,hyperfootnotes=false,% pdfauthor={Stefan Müller},% pdftitle={Grammatiktheorie},% pdfkeywords={PSG, GB, GPSG, HPSG, LFG, TAG, LTAG, Syntax, Deutsch}, ps2pdf=true  %ohne diesen Treiber geht der Zeilenumbruch in URLs ]{hyperref}% for pdf files  \usepackage{breakurl}  \usepackage{array} \usepackage{calc} \usepackage{varioref,ifthen} \usepackage{xspace}  \usepackage{index}  \begin{document}  Unfortunately there was no room left for the book.  \end{document}   I think it is this one call to \newdim, which I extracted from a non-CTAN stylefile that I use, that makes the difference ...


How do I create and restore full Ubuntu partition backup?

is the a tool for Ubuntu, either bootable from an external USB or in-OS, that would allow creating full-partition backup of the system, and restore it if needed to bring the system and all the files in exact same state.  Ideally I'd like it to be in-OS, or if bootable it should back up to the same USB as itself (the install in question is very small). For reference, I am using Paragon Backup and Recovery on Windows for smth similar, it supports both bootable and in OS (using shadow copy) mode.


Functions Give Priority to Variables Within Its Scope Than A Variable Declared Outside of Its Scope?

Well I am trying to access a variable declared outside of a function. Then whenever I am changing the variable value inside of the function I see an error message...      UnboundLocalError: Local variable 'x' referenced before assignment   Here is the module...  x = 5  def fun():     print 'x is', x     x = 10     print 'x is now changed to', x  fun()   It seems Python assuming the x declared inside of function is different than the x declared outside of the function. Also when I comment out line 5 the program runs without error.  Is this anything relevant to any rule like Python functions will give priority to the variables declared inside of it and if I want to do something like this program then I have to use global statement to achieve the goal?   Answer: Ok I think I sort out the point. Thanks to @unixer for providing me the link - . Actually when we declare a variable in any scope the variable becomes local to that particular scope and it shadows any similarly named variable outside of its scope unless the variable gets another new assignment to it in local or outer scope. In my case...   When I first assigned value to x outside of the function, x became local variable to that particular scope. And then when I fetched value of x inside of the function fun compiler printed value of x as declared in outer scope of the function. And again when I assigned new value to x(on line 5) compiler assigned new value to x. BUT this time it thought I did a mistake as I am trying to print x (on line 4) before assigning a value to it.   Point 3 is same as...  print 'x is', x x = 5   Compiler will raise same error as it sees I am trying to print value of x before assigning any value to it.


For the Binomial Distribution  ${\displaystyle{n \choose k}p^{k}(1-p)^{n-k}}$  I'm trying to understand the intuition of the factors.  I understand that the probability of $k$ successes is $p^k$, and the probability of the remaining $(n-k)$ being non-successes is $(1-p)^{n-k}.$  I also understand that ${n \choose k}$ is the number of ways $k$ successes can appear across $n$ samples.  The thing I am having trouble with, however, is that the last two factors are probabilities, and the first factor is a number of combinations, but yet the result of multiplying them all together is a probability.  How does a number of combinations * a probability * a probability = a probability?  Am I thinking about this wrong?


Hide/Show columns in Custom List based on dropdown selection

I am trying to hide a column on page load and when a value is selected from a drop-down list, have the hidden dropdown appear. I am able to hide the column but when I choose the value in the drop-down, nothing happens.   This is the code I'm using:    $(document).ready(function(){   //Define which columns to show/hide by default  $("h3.ms-standardheader:contains('Project Subtype')").closest("tr").hide();  //Show/hide columns based on Drop Down Selection   $("select[title='Project Type']").change(function() { if ($("select[title='Project Type']").val() === "Photo")  {      $("h3.ms-standardheader:contains('Project Subtype')").closest("tr").show(); }  else {       $("h3.ms-standardheader:contains('Project Subtype')").closest("tr").hide(); }     }); });       I've also tried to use this one with the same results:  $('nobr:contains("Project Subtype")').closest('tr').hide();    UPDATE: I've added alerts to try and filter out the issue and it seems like   $("select[title='Project Type']").change(function() {   seems to be the issue. But I have no idea why it's not being read.  Thank in advance for any ideas on this one!


What are the "best practices" when writing a thesis in Latex?

I am starting to write my master thesis in latex. So far I have only written article-like texts, so this is my first big document.  I would like to start with some good general good practices. Specially since I might go into academia and pursue a PhD.  What are good principles to keep in mind?. For example, do you have one single huge tex file, or do you have several smaller files for each chapter?


A continuous function on a closed subset of real line can be continuously extended

I need help with this question as I'm not sure Let $f$ be a continuous function on $K$ which is closed in the real line. Show that there exists a continuous $F$ on all of $R$ such that $F(x)=f(x)$ on $K$.  So I'm not sure which theorem to use in Folland to prove this. If anyone can hint on what to do, I'd be grateful.


$G$ solvable $\implies$ composition factors of $G$ are of prime order.

I'm trying to prove the equivalency of the following definitions for a finite group, $G$:  (i) $G$ is solvable, i.e. there exists a chain of subgroups $1 = G_0  \trianglelefteq G_1 \trianglelefteq \cdots \trianglelefteq G_s = G $ such that $G_{i+1}/ \ G_i$ is abelian for all $0 \leq i \leq s-1$  (ii) $G$ has a chain of subgroups $1 = H_0  \trianglelefteq H_1 \trianglelefteq \cdots \trianglelefteq H_s = G $ such that $H_{i+1} /\  H_i$ is cyclic for all $0 \leq i \leq s-1$.  (iii) All composition factors of $G$ are of prime order.  (iv) G has a chain of subgroups $1 = N_0  \trianglelefteq N_1 \trianglelefteq \cdots \trianglelefteq N_t = G $ such that each $N_i$ is a normal subgroup of $G$, and $N_{i+1}/ \ N_i$ is abelian for all $0 \leq i \leq t-1$.  It was simple to show that (iii) $\implies$ (ii) and (ii) $\implies$ (i). Now, I'm trying to prove that (i) $\implies$ (iii), and I'm getting stuck.   I know that If $G$ is an abelian simple group, then $|G|$ is prime, so all I need to show is that each $G_{i+1}/ \ G_i$ in the definition of solvable is simple.  If I knew that $1 = G_0  \trianglelefteq G_1 \trianglelefteq \cdots \trianglelefteq G_s = G $ were a composition series, then each $G_{i+1}/ \ G_i$ would be simple by definition. But the definition of solvable doesn't assume a composition series. I know every group has a unique composition series, but I'm not sure how to connect that to the subgroups in the definition of solvable.   More generally, I guess I just don't understand how being abelian connects to being of simple or of prime order.  Any pushes in the right direction would be appreciated!


$\lim_{x \to 0}\frac{\sin x}{x}$ intuition

I am looking for some basic intuition for  $$\lim_{x \to 0}\frac{\sin x}{x}$$ If we look at it as $f(x)=\sin x\cdot\frac{1}{x}$ so as ${x \to 0}$ $\sin x \to 1$ and $\frac{1}{x} \to \infty $ so it is $0 \cdot \infty$ so why is it equals 1?


Strange biblatex behaviour (on sharelatex.com)

The compilation of this tex code  \documentclass{article}  \usepackage[utf8]{inputenc}  \usepackage[natbib, maxcitenames=3, style=authoryear]{biblatex}  \usepackage{filecontents} \begin{filecontents}{bib.bib} @ARTICLE{G2000,   author = {{Gondek-Rosi{\'n}ska}, D. and {Bulik}, T. and {Zdunik}, L. and      {Gourgoulhon}, E.},   year = 2000 } @ARTICLE{G2007,   author = {{Gondek-Rosi{\'n}ska}, D. and {Bejger}, M. and {Bulik}, T. and      {Gourgoulhon}, E.},   year = 2007 } \end{filecontents} \addbibresource{bib.bib}  \begin{document} \citep{G2000}\\ \citep{G2007}\\ \end{document}   gives the output of:  (Gondek-Rosińska, Bulik, et al., 2000)  (Gondek-Rosińska, Bejger, et al., 2007)  But when I change the first author's surname to Gandek-Rosi{\'n}ska i get the following (desired) output:  (Gandek-Rosińska et al., 2000)  (Gondek-Rosińska et al., 2007)  Actually, changing the name to Kondek-Rosi{\'n}ska or any other name works as expected, i.e. gives only the first author name followed by et al.. Why such strange behaviour? I compile the code on the .


How to remove the functions displayed by set command?

When set command is used without any options, it displays the names and values of all shell variables and functions.  We want to display only the variables and avoid the functions from the output.


Stack Overflow should have a column named User Tagged that would show questions only from your Favorite Tags.   For example, say, I am interested in answering only questions related to PHP, C++ and HTML.   I should be able to access a page that has only questions related to these favorite tags of mine. So that way I won't have to go through questions of other languages I don't know.  What do you people think?


After a client buys a serial key, he receives an e-mail containing a key. With that token key he can access a page where he can see the serial he wanted. I wonder how I can do this being safe to brute force attacks?  I thought that an idea is to have at least 12 characters long alpha-number sensitive strings. To be faster, in the e-mail they have the string attached to a link ex:     www.foo.com/get_serial.php?token=23As4s74dsFDs412s   To improve security I thought it would be a good idea to have a captcha verification but with logical answers like: "A man has twenty : (fingers)" or something. I need suggestions to make this safe and fast as possible.


If hot air rises, why is it colder at higher altitudes?

I read some of the answers on    But then I thought of places like Mount Everest and its summit. Why is it freezing and cold? If hot air rises shouldn't it be like a desert up there?


When we are travelling from an African country to Schengen Area, USA  or Canada, Do 'immigration officer at the departure point' check visa validity(real or fake) electronically?


Display Custom Fields in a SharePoint 2010 Content Query Web Part

Using SharePoint 2010, Having Custom List With 4 Columns, Now I am Using Content Query Web-part To Display List Data ,But Currently It Display Only First Column, SO How to Display Custom Fields in a SharePoint 2010 Content By Query Web Part


How to overcome Acrobat Reader error 131 with a pdfLaTeX doc?

I'm generating a PDF document with pdflatex (more precisely, latexmk invoked from TexMaker 3.4. My LaTeX install is TeXLive 20120719). I can read the document fine in Okular and Gmail's attachment preview, but a colleague that runs Acrobat Reader on Windows reports: "There was a problem reading this document (131)".  EDIT: The error disappears when using \usepackage[demo]{graphicx}, which puts black boxes instead of the real images. They are all PDFs, PNGs and JPGs. Instead of using demo, I added the code for a \demoincludegraphics command, which makes the file work in Reader when using it to replace the logo in the headers, as shown below. But enabling it (using \includegraphics instead of \demoincludegraphics) and removing everything else also works in Reader! There is some strange global interaction that makes the file appear broken to Reader when enabling all the graphics...  My code compiles fine, reason why I only attach the preamble and a simple text for a Minimal Working Example:  \documentclass[12pt,lettersize,twoside]{article}  \usepackage[utf8]{inputenc} \usepackage[spanish,es-tabla]{babel}   \usepackage[fixlanguage]{babelbib} \usepackage{amssymb,amsmath} \usepackage{graphicx}    \usepackage{array}    \usepackage{caption} \usepackage{subfig} \usepackage{rotating} \usepackage{booktabs} \usepackage{multirow} \usepackage{calc} \usepackage{stfloats} \usepackage{fixltx2e} \usepackage{url} \usepackage[colorlinks=true,linkcolor=blue,citecolor=red]{hyperref} \usepackage[all]{hypcap}  % Margins \usepackage[top=2cm, bottom=2cm, left=3cm, right=2cm]{geometry}  % Make header show up in the first page \makeatletter \renewcommand\maketitle{\par \begingroup     \renewcommand\thefootnote{\@fnsymbol\c@footnote}%     \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%     \long\def\@makefntext##1{\parindent 1em\noindent             \hb@xt@1.8em{%                 \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%     \if@twocolumn     \ifnum \col@number=\@ne         \@maketitle     \else         \twocolumn[\@maketitle]%     \fi     \else     \newpage     \global\@topnum\z@   % Prevents figures from going at top of page.     \@maketitle     \fi     \thispagestyle{fancy}\@thanks % was {empty} \endgroup \setcounter{footnote}{0}% \global\let\thanks\relax \global\let\maketitle\relax \global\let\@maketitle\relax \global\let\@thanks\@empty \global\let\@author\@empty \global\let\@date\@empty \global\let\@title\@empty \global\let\title\relax \global\let\author\relax \global\let\date\relax \global\let\and\relax } \makeatother  % Remove date field in title; Remove preceding vertical space \makeatletter \renewcommand{\@maketitle}{ \vspace{-3cm} \begin{center}% {\LARGE \@title}\\ \vspace{2mm}% {\@author} \end{center}% \par} \makeatother \makeatletter  % Demo includegraphic boxes \newcommand{\demoincludegraphics}[2][]{%   \setlength{\fboxsep}{-\fboxrule}% Remove frame separator/gap   \framebox{\rule{0pt}{100pt}\rule{150pt}{0pt}}% Framed box of 150pt x 100pt }  % Headers Config  \usepackage{fancyhdr} \pagestyle{fancy} \fancyhead{} \renewcommand{\headrulewidth}{0.4pt} \setlength{\headheight}{2.2cm}  \addtolength{\textheight}{-1.62cm} \fancyhead[LO,RE]{\demoincludegraphics[height=1.6cm]{logo-slogan}} \fancyhead[LE,RO]{}  % Footers Config \fancyfoot{} \renewcommand{\footrulewidth}{0pt} \fancyfoot[C]{\thepage}  % Notas al pie etiquetadas por simbolos   \renewcommand{\thefootnote}{\fnsymbol{footnote}}  \title{Doc Title} \author{My name}  \begin{document}  \maketitle  This is a test. It includes graphics and other floats.   \end{document}   EDIT: I found a workaround: Processing the generated pdf file through Ghostscript, as follows:   gs -dSAFER -dBATCH -dNOPAUSE  -sDEVICE=pdfwrite -sOutputFile=output.pdf input.pdf   where input.pdf is the file generated by pdfLaTeX, and output.pdf the one that will be readable by Adobe Reader and the rest of the PDF readers.


Is there any rule that regulates the word order in the negative infinitive form? If the infinitive follows certain verbs in a sentence, it's clear that it should be 'not+to+inf'. For example, We decided not to go to Paris. But in some dictionary explanations we can see a different word order: to + not+inf. Are these patterns interchangeable?


Non-english Characters in cql filter in GeoServer

I have a shapefile loaded in GeoServer 2.8 and accessed by OpenLayers 2.13. This layer is in UTF-8 encoding and has some english and non-english records. When i use english fields in cql-filter - as follows, but no differnce between WMS and WFS request- GeoServer filters data very well  and returns the result.    layer1 = new ol.layer.Image({             title: 'Ostan',             source: new ol.source.ImageWMS({                 url: 'http://localhost:8080/geoserver/wms',                 params: {                     LAYERS: 'ws:layer1',                     VERSION: '1.1.1',                     CQL_FILTER: "NAME_ENG = 'sommy'"                 }             })         });   But if i try to use a field which contains non-english data in cql-filter, GeoServer returns no data. My webpage has following meta, as well:   <meta content="text/html; charset=utf-8" http-equiv="content-type" />   When i check geoserver log, i see some messy characters instead of my non-english string in cql-filter.


Find the Mean for Non-Negative Integer-Valued Random Variable

Let $X$ be a non-negative integer-valued random variable with finite mean. Show that $$E(X)=\sum^\infty_{n=0}P(X>n)$$  This is the hint from my lecturer.  "Start with the definition $E(X)=\sum^\infty_{x=1}xP(X=x)$. Rewrite the series as double sum."  For my opinion. I think the double sum have the form of $\sum\sum f(x)$, but how to get this form? And how to continue?


I am trying to use the value of a String obtained through JOptionPane. However, there is a problem with reading the String. What am I doing wrong here?   import javax.swing.JOptionPane; public class convertNumber123 {         public static void main(String[] args){             String numsystem1;             numsystem1 = JOptionPane.showInputDialog("Please enter the numeral system that you want to convert from: binary, octal, decimal or hexadecimal.");              if (numsystem1 == "Binary" || numsystem1 == "Octal" || numsystem1 == "Decimal" || numsystem1 == "Hexadecimal")                 System.out.println (numsystem1 + "it is!");             else                  System.out.println ("Please, enter the correct system name.");         } }


Family Link: how to set daily limits for a child regardless of which devices he/she uses

I can't find a way to set a daily limit to my daughter regardless of her devices. I want her to spend 2h max on screen no matter which device she uses on that day.  Yet she's getting 2h on her tablet and 2h on her smartphone.  Am I missing something? Does Family Link only allow to set device-specific limits?


Why is integration the inverse of differentiation, I mean why do I get the same function when I integrate and then differentiate the result?


How can I permanently enable line numbers in IntelliJ?

How can I permanently enable line numbers in IntelliJ IDEA?


Why did the machines need Neo's help at the end of the third movie?

Title says it all, really. Just rewatched the trilogy and I really don't understand why they needed Neo's help to deal with Smith.


which software is suitable for remote-desktop management?

which software is suitable in ubuntu for remote desktop management using internet. not home network (LAN).


I use an .eps image file in my customized letterhead.  Is there a place in my (Windows XP) file structure that I can place the file so that all of my letters inherit the image?  I tried putting it in my localtexmf letterhead.sty folder, but that didn't work.


Sci-fi novel or novella where "Eliza Tertia" was one of the main characters

There's a book I borrowed from my grade 8 teacher's lending shelf (in Ontario, Canada) that I've been trying to identify for years. The main character was a man in a futuristic setting who... I think... had the secret to an improved version of the lifespan-extension serum everyone used. If I remember correctly, the flawed version caused people's skin to turn clear over the course of their extended lives. I think he was revived from some sort of stasis, but I can't be sure of that. I just vaguely remember a "stranger in a strange land" sort of cultural disconnect, him being cared for in some kind of hospital-like setting, and a sense that maybe the formula they want from him was invented by a now-dead family member of his. The most distinctive detail I remember was the love interest, a cloned nurse named "Eliza Tertia" who he encourages to break out of her role. (All the cloned nurses were named Eliza, and I remember "Eliza Duodecima" being the name of another one who is briefly seen.) I also remember the secret eventually being gotten out of him, only for it to be discovered that it's flawed, in that, while it does replenish the compounds that go missing in extended old age, it doesn't moderate their production. I don't remember if it was long enough to be a novel or if it was just a novella. My vague memories of the cover design and material suggest it was a 1970s printing or earlier, which would also fit with what I remember of the story's atmosphere.


How many times in the novels is the narrator not focused on Harry Potter?

99% of Harry Potter is focused on Harry Potter in his mind. For instance, you never hear the thoughts of Ron or Dumbledore.   Occasionally, such as the first chapter of the first book, you are not seeing the world through Harry's eyes. He is an infant and he is delivered to the Dursley's via Hagrid.   How many scenes throughout the seven novels are not inside Harry's head (or being told through him, such as other people's memories he views, or the Deathly Hallows story)?  This would be a definitive list of all the chapters in the 7 Harry Potter books which are not from Harry's perspective (ie not open ended).


When I select the walls and assign them as a vertex group and then select this vertex group it selects the wall but the floor too. How can I make it select only the walls ?


Find expectation of a probablity distribution

There're k balls in a bag, each one with a different colour. Draw one ball from the bag randomly each time, then put the ball back.  Let random variable X = the number of balls to draw until all k colours have been seen. Find E(X).  Please help me with this question, thanks!


This is my script:  #!/bin/bash hd='pwd' cd $hd   When I try to run it, it fails with:  line 3: cd: $'pwd\r\r': No such file or directory   What is going on?


I apologize if this question has been asked before; I couldn't find it in a site search.  I have this sentence about teaching children safety rules:  The rules are different when you are together with your adults or when you are on your own.  My question is about the use of or. Is the sentence correct as it is, or does a different preposition need to be used? and? from? than?   My inclination is to use than because the rules are being compared.


What is the fixed point attribute of DES (when used with weak-keys)

I've heard in some lecture that the weak  implies the existence of $2^{32}$ fixed points in the algorithm, i.e. that $DES_k(x)=x$ for $2^{32}$  such $x$'s.  I couldn't find anything about that issue, can you give some reference or explain it here?


I have a div with two function attached, one is click and other one is hover function. In javascript is there any way to find which events attached with that element. If we attach function to some element then where it store in dom. can we find it by using developer tool  Edit: How the browser / DOM knows that which event is register with which element
test
   script  document.getElementById('test').addEventListener('click',function(){},false)  document.getElementById('test').addEventListener('hover',function(){},false)


Minimal sufficient statistic of $\operatorname{Uniform}(-\theta,\theta)$

I am seeking clarification on why both the vector $(X_{(1)},X_{(n)})^T$ and $\max\{-X_{(1)},X_{(n)}\}$ are sufficient for $\operatorname{Unif}(-\theta,\theta)$, but only $\max\{-X_{(1)},X_{(n)}\}$ is minimal sufficient, as stated .   Can this be explained by the fact that while both can describe the data adequately, $\max\{-X_{(1)},X_{(n)}\}$ is of lesser dimension and is thus minimal sufficient?    Using the definition of minimal sufficiency ($T(X)$ is minimal sufficient if $T(x)=T(y) \iff \frac{\mathcal{L}(x;\theta)}{\mathcal{L}(y;\theta)}$ does not depend on $\theta$), I run into issues as with either choice of statistic, I need to analyze $$\frac{\mathbb{1}_{[\max\{-X_{(1)},X_{(n)}\}<\theta]}}{\mathbb{1}_{[\max\{-Y_{(1)},Y_{(n)}\}<\theta]}}$$ or $$\frac{\mathbb{1}_{[-\theta<X_{(1)}]}\mathbb{1}_{[X_{(n)}<\theta]}}{\mathbb{1}_{[-\theta<Y_{(1)}]}\mathbb{1}_{[Y_{(n)}<\theta]}}$$ which may be $\frac{0}{0}$.  Even when not $\frac{0}{0}$, I'm having trouble seeing why the former is not dependent on $\theta$, but the latter is dependent on $\theta$ if $T(X)=T(Y)$.


How to resolve NullPointerException in SharedPreference?

I have set shared preferences in Activity:  SharedPreferences sp = getSharedPreferences("your_prefs", Activity.MODE_PRIVATE);             SharedPreferences.Editor editor = sp.edit();             editor.putInt("your_int_key", 14);             editor.commit();   and in get preferences in Fragment    if (getActivity().getSharedPreferences("your_prefs", Activity.MODE_PRIVATE) != null) {                 SharedPreferences sp = getActivity().getSharedPreferences("your_prefs", Activity.MODE_PRIVATE);                 myIntValue = sp.getInt("your_int_key", -1);             }             textTv[i] = (TextView) v.findViewById(nizTekstaID[i]);             textTv[i].setVisibility(View.VISIBLE);             textTv[i].setText(result.get(i));             textTv[i].setTextSize(myIntValue);   but i get  NullPointerException, here is Logcat:  05-01 04:46:01.298 10968-10968/com.example.bolt.automagazin E/AndroidRuntime: FATAL EXCEPTION: main                                                                           Process: com.example.bolt.automagazin, PID: 10968                                                                           java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.SharedPreferences android.support.v4.app.FragmentActivity.getSharedPreferences(java.lang.String, int)' on a null object reference                                                                               at com.example.bolt.automagazin.FragmentGdeSeUcitavajuVestiScroll1$asyncTekstovi.onPostExecute(FragmentGdeSeUcitavajuVestiScroll1.java:988)                                                                               at com.example.bolt.automagazin.FragmentGdeSeUcitavajuVestiScroll1$asyncTekstovi.onPostExecute(FragmentGdeSeUcitavajuVestiScroll1.java:829)                                                                               at android.os.AsyncTask.finish(AsyncTask.java:651)                                                                               at android.os.AsyncTask.-wrap1(AsyncTask.java)                                                                               at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:668)                                                                               at android.os.Handler.dispatchMessage(Handler.java:102)                                                                               at android.os.Looper.loop(Looper.java:148)                                                                               at android.app.ActivityThread.main(ActivityThread.java:5417)                                                                               at java.lang.reflect.Method.invoke(Native Method)                                                                               at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)                                                                               at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)   in this line:   if (getActivity().getSharedPreferences("your_prefs", Activity.MODE_PRIVATE)   != null) {


Google thinks my domain doesn't exist or is misspelled when users search for it

I created a website for ecommerce, but am having problems with the Google search. My site link is "banilla.com.br" or "www.banilla.com.br", but Google thinks they are both misspellings (on either google.com and google.com.br since I'm from Brazil).  The worst is that when I type "www.banilla.com.br" (with www) it shows only "Showing results for balilla.com.br", it doesn't even show the "Search instead for banilla.com.br", so there is no way it would go to the correct link! =(


Assessing approximate distribution of data based on a histogram

Suppose I want to see whether my data is exponential based on a histogram (i.e. skewed to the right).   Depending on how I group or bin the data, I can get wildly different histograms.   One set of histograms will make is seem that the data is exponential. Another set will make it seem that data are not exponential. How do I make determining distributions from histograms well defined?


I checked out this novel, probably young adult, from my hometown library sometime in the late 80s or early 90s.    The plot follows a human looking race of aliens that come to earth to investigate why our race "only" lives 70-80 years (the aliens have a lifespan of several centuries, and have to use personal journals to remember the details of their lives).   Someone decides the moon is involved in determining our lifespan since no other humanoid race lives on a planet with such a massive satellite so close.  The climax involves one of the aliens going crazy and deciding to destroy the moon to "save the humans".  Another member of the research team thinks destroying the moon will horribly damage the earth and also envies humans for savoring our short lives so s/he attempts to stop the first.


So I accidentally run in terminal command export PATH="/usr/bin/php/bin" which override my defaults and none of the commands aren't responding.  MacBook-Pro-Kil:home $ sudo -bash: sudo: command not found   Is it possible somehow restore it? My system is 10.9.5


Is this true: any bipartite graph with unbalanced vertex parity is not Hamiltonian?

Source is in , but it has no proof. Also, I am not completely sure what "unbalanced" means here. Non-equal number of even and uneven degrees?  What I am interested in, are there some universal properties of (connected) graphs that prevent hamiltonicity? Something to do with number of vertices versus edges, or average degrees or such? Something that is easy to demonstrate?  I will (hopefully) be using them as counterexamples of hamiltonian graphs in my thesis.


Is there any way to use a nether portal to travel to y = 250?

I have recently build a platform above my house at y=250. As my house is at ground level, I would prefer not to have to build a tower every time I wish to get up there, and ideally I would like to not have a tower visible between the platform and my house.  With this in mind, I decided that nether portals would be the way to go. I have a nether portal in my house at y=57 and one on my platform at y=250, I also have portals in the same places at y=70 and y=115 in the nether.  Unfortunately, the portal at y=155 in the nether sends me back to the portal in my house. I understand that this is because the house portal is closer. Is there any possible way for me to travel to my platform using nether portals? Or failing that, any way to travel there without building something between my house and the platform?


I use a very custom style (not mine) and very frequently I get a heading  on the bottom of a page and the next paragraph on the top of the next page. Sometimes this paragraph may be a list or similar. The same is true for listings and the listing description.   Is there a general way how I can adjust the "badness" of these events? Or can I adjust when a section heading would be on the last, say, 3cm of a page it should go to the next page? Or can I say, if a *listing description" is on the top 3cm of a page pull 5 more listing lines from the last page onto this page?   The style I use does not use standard structure tags and environments. But lets call them section, subsection, listing and I will try to migrate them to my lingo.


Efficient way to print lines from a massive file using awk, sed, or something else?

If I had a plain-text file containing 8 million lines and I want to print out lines 4,000,010 to 4,000,000 to the screen, which would be more efficient: awk or sed?  There is no pattern to the text, and unfortunately, a database isn't an option. I know this isn't ideal, I'm just curious on which one would complete the task quicker.  Or maybe there is even a better alternative to sed or awk?


Force 'openany' half way through document

I am using a double sided document for my report, which always have new chapters starting on a page to the right, which sometimes means leaving a page blank. However, for my appendix I would like to not leave any pages blank. Is it possible to force the 'openany' command after the conclusion? Or in some other way remove the blank pages?  I could perhaps also separate my appendix using a different command than \chapter, but I like the table of contents as shown below:


Can I size an image so it can be printed at 5×7" but looks bad at sizes above that?

I generally try to print all images for clients and require that they purchase a print prior to the release of any "small sized file" for holiday cards, web-use, but a faux-pas in my new (app-based) contract has a client requesting an image she didn't "buy" for the above listed use.    I need to create a size that will work well for a holiday card and web, but not for reproducing to a print. What should my LR output be to achieve this, assuming the card would be no larger than a 5x7?   Is there a formula that one can use to determine this on varied sizes? ,Say, 8x10 looks good, but at 11x14, pixelation occurs?  5 x 7 looks good, 8x10 does not?   I've posted in FB forums, however, the response was, "Trust that your client won't print large!" Um, right.  This is the key image in the group and the only one that she selected yet didn't buy in 11 x 14.


My two month old have acid reflux and is on meds, but she still spit up a lot. Is that normal? I'm breastfeeding and was told breastfed babies don't spit up as much. My three year old was breastfed as well and didn't stip up at all.


Why should I flag a question as a duplicate, instead of answering it?

Background: I have recently begun answering more questions on Stack Overflow. I have already learned new things about programming languages I use on a daily basis and have had an overall excellent experience with answering questions. That being said, the more questions I answer, the more I see duplicate questions, which upon some research have already been very thoroughly answered. As I become better at answering questions, I see that for the good of the website, and to assist users, I should flag more questions as duplicates. Issue: However, here in lies the crux, as I get better at answering questions and identifying duplicates, I answer fewer questions, and flag more questions as duplicates. Therefore I answer fewer easy questions, receive less reputation, and get no thanks from the original poster. In other words, to play the devil's advocate, why should I flag a question as a duplicate? And as a direct consequence, do we need a mechanism to encourage flagging questions as duplicates? Extra details: I want to stress that the only factor isn't reputation. When I answer a question in a way that helps someone out and they respond with 'thanks', or accept my answer, I can't deny I feel some sense of accomplishment. I don't see many people saying 'thanks' if I vote to close their question as duplicates. I also don't feel like finding a duplicate question is a non-trivial task. Recently I saw an obvious duplicate about the JavaScript File API. It took me a few minutes to read the question, a minute to find the MDN reference page, and then 15 minutes to find a good Stack Overflow answer that describes the answer.


Is it poor form to start too many sentences with I?

I often find myself writing  of comments to blog posts and responses on forums, and have noticed a tendency to start a lot of sentences with 'I'. 'I think...', 'I had no idea', 'I used to...' etc. Is there a general style guideline about avoiding this, or is is acceptable when you're writing opinionated pieces?  Repetition in general is poor style in my book, but when I start to shift around my sentences to avoid starting them with 'I', they tend to sound too stilted.


I have a trouble. I hope someone can do it.     How to prove that   $\left\{a + b\sqrt{2} + c\sqrt{3} + d\sqrt{6} \mid (a,b,c,d)\in \mathbb{Q}^4\right\}$ is a field?   I can't prove the existence of multiplicative inverse. Thanks.


Given that: $$F = \langle yz-2xy^2, axz-2x^2y+z, xy+y \rangle$$ in which $a$ is some constant.  Now, for what $a$ would make the vector field of $F$ conservative? Why is there only one, or are there many? How can we find an $f$ with $\nabla f=F$? Also for what $a$ would $F$ be the curl of another vector field?  For to find for which $a$ the vector field is conservative, do we have to go through the process of finding partial derivative, or is there a much shorter approach. I don't know how to approach my other questions either.


I have two instances of SQL server namely Adventure and instance 2. Now  I cannot start SQL server from services for Adventure but the instance2 is fine. Once i go through the log file it showed SQL evaluation is expired.   Does SQL licence expire for a single instance?


Is a way to quickly set screen refresh rate

Is a way to quickly set refresh rate instead of right-click on Desktop  Screen Resolution -> Advanced Settings -> Monitor   and in center Monitor Settings screen refresh rate with dropdown  Or just only to show Advanced Settings with Monitor tab  And is it possible to do it in .bat?


I need some help on a simulation of an Artillery like this one   .  I cant figure out how to make the "tomato" to get to the selected spot.  Where can I get solutions for this kind of questions in the future? Physics programming books? I am using LibGDX (Java).


JavaScript, regular expression to validate phone numbers

I want to validate phone Number in the format X-XXX-XXX-XXXX      var phone= prompt("Enter phonenumber in the format X-XXX-XXX-XXXX");     var regEx= /\d-[\ddd\-]{2}\d{4}/;      if(regEx.test(phone))     {document.write("Is valid PhoneNumber "+phone);}     else{      var msg= "Chaphert 6 exmaple 2a says <br/>" +phone +" is invalid";      alert(msg);     }   I could have used regEx=/\d-\d{3}-\d{3}-\d{4},which will solve my problem but since I have to repeat this xxx-xxx-,ie I don't wish to repeat \d{3}- twice in the regex, expecting something to replace for \d{3}-\d{3}- with something like, [\d{3}-]{2}. I would appreciate any help.


No cycle containing edges $e$ and $g$ implies there is a vertex $u$ so that every path sharing one end with $e$ and another with $g$ contains $u$

There is a proof in my textbook for the following claim, which doesn't make a whole lot of sense to me.  My annotations are in bold.  Could someone perhaps elaborate on what's going on?  Claim.  If there does not exist a cycle containing edges $e$ and $g$ then there exists a vertex $u \in V (G)$ such that every path in $G$ sharing one end with e and another with $g$ contains $u$.  Proof: The claim trivially holds if $e$ or $g$ is a loop OK, so we assume that neither is. Let $P$ with vertex set $v_1, v_2, . . . , v_k,$ in order, be a path with $e$ joining $v_1$ to $v_2$ and $g$ joining $v_{k−1}$ and $v_k$. Let $f_i \in E(P_i)$ be the edge with ends $v_i$ and $v_{i+1}$. Let $j$ be chosen minimum so that no cycle in $G$ contains $e$ and $f_j$ We can do this because we know that at least the edge $g$ will not create a cycle by assumption, right?. We will show that $u = v_j$ satisfies the claim.  Suppose not. Let $C$ be a cycle containing $e$ and $f_{j−1}$ What if $f_j = e$?  then what cycle? a single vertex? and let $P′$ be a path from an end of $e$ to an end of $f$ Not sure what the book meant by $f$ here, any guesses? avoiding $u$. Choose a subpath $Q$ of $P′$ with one end in $V (C)$ and another in ${v_{j+1}, v_{j+2}, . . . , v_k}$ as short as possible. Then $C \cup Q \cup P$ contains a cycle containing both $e$ and $f_j$, a contradiction. (The last statement requires some case checking.) This ending seems a bit abrupt and non-obvious to me  Thanks for the help