We are using O365/Sharepoint Online 2013.  We have the Site Feed on our intranet homepage but we thinkg it shows too many items as default. We would like for it to show only 5 items and then more when clicking the link at the bottom of the feed.  How can this be done? I've tried to search the internet for days and haven't found anything to help me solve this.  EDIT: Benny this is not a duplicate question as the answer in the other question doesn't really have an actual answer to this problem. I feel like the solution/answer can be accepted if it tells me a way I could somehow modify the site feed's visible item limit to 5 items or so with keeping the feed functionality and user experience the same. Now I already know it is not possible OOTB but that's why I'm asking for help in here if someone might know some other way to achieve the solution. ;-)  I'm very grateful for any solutions regarding this problem! Thanks! :-)

Newsfeed (within a site, as a microfeed) works really nicely on Sharepoint, except for the fact that I can't limit the Newsfeed webpart to a certain height (or number of posts). It looks like it is stuck at 10 and there's no way to change this from the interface/webpart editor. In some instances, the webpart can be so tall and not very wieldly.  So, granted there's no way to tweak it from the Sharepoint UI, is there a way to do it using another tool/via programming method, so we can set the initial post number to, say, 5 posts only?  Many thanks!


I am warned from my VPS provider that my server sends a lot of SSH SYN Attack to other servers, but I have no idea how to deal with it.  Here's the detail my provider sent me:     Where can I find the logs that record all of these attack in my server? How do I deal with this (find the script that send these request) step by step ?

This is a  about Server Security - Responding to Breach Events (Hacking)   See Also:                  Canonical Version I suspect that one or more of my servers is compromised by a hacker, virus, or other mechanism:   What are my first steps? When I arrive on site should I disconnect the server, preserve "evidence", are there other initial considerations? How do I go about getting services back online? How do I prevent the same thing from happening immediately again? Are there best practices or methodologies for learning from this incident? If I wanted to put a Incident Response Plan together, where would I start? Should this be part of my Disaster Recovery or Business Continuity Planning?   Original Version       2011.01.02 - I'm on my way into work at 9.30 p.m. on a Sunday because our server has been compromised somehow and was resulting in a    attack on our provider. The servers access to the Internet   has been shut down which means over 5-600 of our clients sites are now   down. Now this could be an FTP hack, or some weakness in code   somewhere. I'm not sure till I get there.      How can I track this down quickly? We're in for a whole lot of   litigation if I don't get the server back up ASAP. Any help is   appreciated. We are running Open SUSE 11.0.            2011.01.03 - Thanks to everyone for your help. Luckily I WASN'T the only person responsible for this server, just the nearest. We managed   to resolve this problem, although it may not apply to many others in a   different situation. I'll detail what we did.      We unplugged the server from the net. It was performing (attempting to   perform) a Denial Of Service attack on another server in Indonesia,   and the guilty party was also based there.      We firstly tried to identify where on the server this was coming from,   considering we have over 500 sites on the server, we expected to be   moonlighting for some time. However, with SSH access still, we ran a   command to find all files edited or created in the time the attacks   started. Luckily, the offending file was created over the winter   holidays which meant that not many other files were created on the   server at that time.      We were then able to identify the offending file which was inside the   uploaded images folder within a  website.      After a short cigarette break we concluded that, due to the files   location, it must have been uploaded via a file upload facility that   was inadequetly secured. After some googling, we found that there was   a security vulnerability that allowed files to be uploaded, within the   ZenCart admin panel, for a picture for a record company. (The section   that it never really even used), posting this form just uploaded any   file, it did not check the extension of the file, and didn't even   check to see if the user was logged in.      This meant that any files could be uploaded, including a PHP file for   the attack. We secured the vulnerability with ZenCart on the infected   site, and removed the offending files.      The job was done, and I was home for 2 a.m.            The Moral   - Always apply security patches for ZenCart, or any other CMS system for that matter. As when security updates are released, the whole   world is made aware of the vulnerability.   - Always do backups, and backup your backups.   - Employ or arrange for someone that will be there in times like these. To prevent anyone from relying on a panicy post on Server   Fault.


I have a simple class hierarchy:  class Node { }; class InternalNode : public Node { }; class Leaf : public Node { };  void f(unordered_map<unsigned, unique_ptr<Node>>& node_table) {     auto it_node = node_table.find(index);     unique_ptr<InternalNode> node;     if (it_node != node_table.end())     {         node = std::move(it_node->second.get()); // no viable overloaded '='         node = dynamic_cast<InternalNode*>(it_node->second.get()); // no viable conversion from 'InternalNode *' to 'unique_ptr<InternalNode>'         node = dynamic_cast<InternalNode&>(it_node->second.get()); // dynamic_cast from rvalue to reference type 'InternalNode &'         // ...         // dynamic_cast from rvalue to reference type 'InternalNode &'     } else {         node = make_unique<InternalNode>(values.at(index), colors.at(index), depth);     } }   So I want dynamically insert and retrieve values into and from the node_table, which maps on the superclass "Node". Unfortunately no way worked so far to assign the retrieved value and cast it from "Node" to "InternalNode". At this point it is for sure an "InternalNode" and not a "Leaf". There are a few examples what I tried, there should be a more or less simple solution.

I've been writing C and C++ code for almost twenty years, but there's one aspect of these languages that I've never really understood. I've obviously used regular casts i.e.  MyClass *m = (MyClass *)ptr;   all over the place, but there seem to be two other types of casts, and I don't know the difference. What's the difference between the following lines of code?  MyClass *m = (MyClass *)ptr; MyClass *m = static_cast<MyClass *>(ptr); MyClass *m = dynamic_cast<MyClass *>(ptr);


I was working in LibreOffice Writer with an .odt document yesterday, was saving it regularly, but today it looks like I did nothing! I think, the reason is in me accidantally saving it in /tmp all the time (according to Recently opened documents in LO). I recovered all files from /tmp using testdisk, but couldn't find anything, that would look like an edited file, only the old version. Automatic backup was off :( Turned it on now.  Any ideas, what other options I might have to recover the file?  I use Ubuntu 13.04 x64 (russian locale), LO 4.0.2.2.  PS  Initially posted it on ask.libreoffice.org (), but it seems less active, than StackExchange community.

I'm using ubuntu 9.10 and accidently deleted a specific file within a directory on my system. I checked in the Trash bin and could not locate the file. I deleted it 10mins ago, are there any tools available that I can recovery this file? It's a really important file.  Any help would be highly appreciated  My partition is ext4


please could you help me with this exercise.  Prove or a counterexample to the following statement:  $f:\mathbb{R} \to \mathbb{R} $ such that $\forall \alpha  \in \mathbb{R}$ the set $\{ x  \in \mathbb{R} : f(x)=\alpha \} $ is measurable. then $f$ is measurable.   thank you very much in advance.

Suppose $f$ is a real-valued function on $\mathbb R$ such that $f^{−1}(c)$ is measurable for each number $c$.  Is $f$ necessarily measurable?


I use the package listings to add code snippet in my document. my problem is for the character ~. It's placed at the top of the line, like if it was above a letter, while I want it at the middle of the line.  Here is an example:  \documentclass{report}  \usepackage{xcolor}  %%% % For source code %%% \definecolor{mgreen}{rgb}{0.0, 0.4, 0.0} \definecolor{mauve}{rgb}{0.58,0,0.82} \usepackage{listings} \lstset{frame=tblr,   language=c++,   basicstyle=\scriptsize,   aboveskip=3mm,   belowskip=3mm,   captionpos=b,   showstringspaces=false,   % Numbering   numbers=left,   numberstyle=\tiny\color{gray},   keywordstyle=\color{blue},   commentstyle=\color{mgreen},   stringstyle=\color{mauve},   breaklines=true,   breakatwhitespace=true, }  \begin{document}    \begin{lstlisting} class Foo { public:    // Constructor   Foo();    // Destructor   ~Foo(); };   \end{lstlisting}  \end{document}

How do I insert a nice tilde that is centered in the middle in a lstlisting? I found another thread about  but I can't apply it because the method described there only works outside of lstlisting as lstlisting displays all the text literally. Any ideas?  Here is how the tilde looks in my document at the moment - it's at the very top of the font and I would like it to be in the middle (like ~ this).    Here is the LaTeX for this fragment:  \section{Remove duplicate, consecutive lines (emulate "uniq")}  \begin{lstlisting} awk 'a !~ $0; { a = $0 }' \end{lstlisting}  Variables in Awk don't need to be initialized or declared before they are being used.


I have obtained a multiple-entry  Schengen visa for Italy from 9 August to 22 September, 30 day-stay. I'm going on a holiday to Rome from 10-16 August and returning back to Dubai.  Can I use the same visa to travel to Portugal from 12 to 16 September?  Total duration for both trips is less than 15 days.

My wife was just issued a multiple entry visa by France, which is good for one year.  Our first trip will be to France, the issuing country.  My question is: after we leave the EU and return, must future trips also start in France? Or may we go directly to (say) Greece from the US on a later visit?


please, I have got elipse which is definied $4x^2+9y^2=36$ and I should determine the sizes of $a,b$ so that the rectangle placed into elipse has maximum area. Thanks for help.

The actual problem reads:      Find the area of the largest rectangle that can be inscribed in the ellipse    $$\frac{x^2}{a^2} + \frac{y^2}{b^2} = 1.$$   I got as far as coming up with the equation for the area to be $A=4xy$ but then when trying to find the derivative I don't think I'm doing it right.


I know ArcGIS provides maps for me to use off of their server for the price of their services.   I want to share my map with other clients without requiring them to buy a license or anything.  Is it possible for me to use my own map hosted on my own server, maybe something like google maps for free?  The closest option I have seen is OpenStreetMap . I want to add all the same layers as ArcGIS such as legend, shapes and editing.

I want to start working on a web map at work to map some of our statistics by city.    I have an idea, but I'm not exactly sure where to start.   Are there any definitive resources that provide step by step guidance on how to do this?


I would like to have a decoration for math symbols that is a \bar - only with parenthesis around it. Consider this example:  \documentclass{standalone} \usepackage{amsmath} \begin{document} \newcommand\barparen[1]{\overset{(-)}{#1}} $p\bar{p}\barparen{p}$ \end{document}   Here's how it looks:    Clearly, this is not very nice - the spacing is very different to the standard \bar command. Of course, I can try to fiddle with \raisebox and \scalebox until it looks about right, but isn't there some nicer way to do this?

I would like to produce a particular symbol represented by a capital letter with an uppercase index and an overline bar between small parenthesis. By looking on the web I found  \documentclass{article}  \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{amsmath,amssymb} \usepackage{mathtools}  \begin{document} \newcommand\brabar{\scalebox{.3}{(}\raisebox{-1.7pt}{$-$}\scalebox{.3}{)}} \[ \overset{\brabar}{D}\phantom{}^{0} \] \end{document}   which produce something close to what I am looking for (not in a very elegant way). I would simply like to have the (-) overset symbol closer to the D capital letter. Is it possible to do that? Thank you very much in advance.


I have a .dat file with 10 lines, each line has a word.  How would I randomly select a line so I could bring the word from the line into my function?

What's the best way to return a random line in a text file using C? It has to use the standard I/O library (<stdio.h>) because it's for Nintendo DS homebrew.  Clarifications:   Using a header in the file to store the number of lines won't work for what I want to do. I want it to be as random as possible (the best being if each line has an equal probability of being chosen as every other line.) The file will never change while the program is being run. (It's the DS, so no multi-tasking.)


I have test.csv,test1.csv,test2.csv...etc files. These files i am loading into custom table test through sql loader. in table test i have columns named seq_no,process_id apart from columns coimng from flat file mentioned above. i had created two sequence as mentioned below for the above mnetioned two columns.    CREATE SEQUENCE  test   MINVALUE 1   INCREMENT BY 1    START WITH 1   NOCACHE   NOORDER    NOCYCLE ;     and     CREATE SEQUENCE  test1    MINVALUE 1   INCREMENT BY 1   START WITH 1   NOCACHE          NOORDER    NOCYCLE ;     Now, seq_no will get populated depends on the no.of files getting loaded  E.G: if v have 5 files then seq_no would be 1,2,3,4,5 And process_id would be inside file how many "FDETL" records are ther that many E.G if v have file 1, FDETL=2 then seq_no=1,process_id=1,2     if v have file 2,FDETL=3 then seq_no=2,process_id=1,2,3. It is some thing like process_id should repeat/file. Now i am using test1.nextval So how can i reset the sequence test1 so that for every file process_id will repeat from 1 to count(FDETL) records?

In , I can do something like this:  ALTER SEQUENCE serial RESTART WITH 0;   Is there an Oracle equivalent?


Is there any way to change the default C# comment snippet that typing /// gets you?  For example, can I replace this default comment snippet  /// <summary> /// /// </summary> /// <param name="arg1"></param> /// <param name="arg2"></param> public void MyFunction(int arg1, int arg2) { }   With this one  /// <summary> /// /// </summary> /// <param name="arg1"> /// /// </param> /// <param name="arg2"> /// /// </param> public void MyFunction(int arg1, int arg2) { }

When I hit /// in Visual Studio, is it possible to change the resulting snippet from this:  /// <summary> ///  /// </summary>   to this?:  /// <summary></summary>


In monster statblocks that include resistance to bludgeoning, piercing, and slashing it is stated that you can overcome that resistance with magical weapons or sometimes silvered weapons.   In the Barbarian rage description, nothing like that is mentioned. But I always thought that magic weapons always ignore that resistance and I am wondering why some monsters including something like Demogorgon:     Magic Weapons. Demogorgon's weapon attacks are magical.   Maybe that's just flavor so Demogorgon is just better against other monsters or those attacks also ignore the resistance that the barbarian has while raging.  Do raging barbarians have resistance against attacks made with a magic weapon or a weapon that counts as magical to overcome resistance?

As someone who typically GMs, I'm accustomed to seeing resistances specified in monster stat blocks as "resistant to bludgeoning, piercing and slashing damage from non-magical weapons".  However the barbarian class feature Rage states that a benefit of raging is "You have resistance to bludgeoning, piercing, and slashing damage," neglecting any mention of magical weapons.   Though PCs encountering magical weapons may be rare, are there any other rules which stipulate that the basic rage resistances don't apply towards magical weapons?


I was wondering if anyone knows good resources for Topological Field Theories aimed at physicists. In particular, I am looking for references which are full of examples, starting with simple toy models and building up to more complicated TFTs. I am also looking for references aimed at explaining the subject at someone with a physics background and motivation. For example, a reference with explicit examples building from a Lagrangian that help motivate the more mathematical definitions of TFT. Also, seeing explicitly how one can build explicit examples of these more mathematical definitions from an explicit description of the fields of the theory and an action would be great! A good example of what I am looking for is this lecture , which treats free TFTs. Everything can be done explicitely and a lot of important ideas are already present! Having something like this in written form (which would allow to discuss the details) would be great!

I'm interested in learning about topological QFT including Chern Simons theory, Jones polynomial, Donaldson theory and Floer homology - basically the kind of things Witten worked on in the 80s. I'm looking for pedagogical reviews rather than original articles. Though these things sit at the interface of mathematics and physics I'm interested in them more as a physics student. I remember someone asking for a suggested . The suggested papers were almost uniformly rigorous mathematics written by mathematicians. I am not looking for something like that.


Prove that: $$x^x \cdot y^y \geq \left(\frac{x+y}{2} \right)^{x+y} $$ for every $x, y > 0$ Where I got stuck: $$x^x \cdot y^y \geq \left(\frac{x+y}{2} \right)^{x+y} \iff \ln(x^x \cdot y^y) \geq \ln \left[\left(\frac{x+y}{2} \right)^{x+y} \right] $$ $$x\ln(x) + y\ln (y) \geq (x+y) \ln \left(\frac{x+y}{2} \right) $$

Prove that for all $x,y>0$ the following inequality $x^xy^y \geq (\frac{x+y}{2})^{x+y}$ is true.  It smells like Jensen inequality, but all I can get is that $\frac{x+y}{2}ln(x) + \frac{x+y}{2} ln(y) \geq xln(\frac{x+y}{2})+yln(\frac{x+y}{2})$


checkBox=(CheckBox) findViewById(checkbox);    checkBox.setVisibility(View.GONE);      db = new Db(Listdata.this,"register2",null,2);     list2 = db.listdata();     Log.d("list", String.valueOf(list2));     listAdapter adapter = new listAdapter(Listdata.this,list2);     listView.setAdapter(adapter);     a= list2.size();     Log.d("teb", String.valueOf(a));      listView.setLongClickable(true);     listView.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {         public boolean onItemLongClick(AdapterView<?> arg0, View arg1, int pos, long id) {             for(int i = 0; i!=a; i++) {                 checkBox = (CheckBox) listView.getChildAt(i).findViewById(R.id.checkbox);                 checkBox.setVisibility(View.VISIBLE);             }             return true;         }     });   FATAL EXCEPTION: main                                                                                Process: com.example.developer.register, PID: 21571  java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.View.findViewById(int)' on a null object reference                                                                                at com.example.developer.register.Listdata$1.onItemLongClick(Listdata.java:52)                                                                                at android.widget.AbsListView.performLongPress(AbsListView.java:3112)                                                                                at android.widget.AbsListView$CheckForLongPress.run(AbsListView.java:3061)                                                                                at android.os.Handler.handleCallback(Handler.java:739)                                                                                at android.os.Handler.dispatchMessage(Handler.java:95)                                                                                at android.os.Looper.loop(Looper.java:135)                                                                                at android.app.ActivityThread.main(ActivityThread.java:5221)                                                                                at java.lang.reflect.Method.invoke(Native Method)                                                                                at java.lang.reflect.Method.invoke(Method.java:372)                                                                                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)                                                                                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I am trying to compare two string in my application but it fails to compare. I don't know why it fails.      public void processFinish(String output) {             // TODO Auto-generated method stub             //Toast.makeText(getApplicationContext(), output,Toast.LENGTH_LONG).show();              String check="false";             if(output==check){                      //doing something here                 }else{                     //something here                 }    }   the string object output has the value "false" but always the else block is executed why? I Tried by changing the output=="false" to   output.equals(check) output.equalsIgnoreCase(check) output.contentEquals(check)   nothings works...

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


This is my setup  [root@ ~]# mkdir /sticky01 [root@ ~]# chown user01:user01 /sticky01 [root@ ~]# chmod a+rwx /sticky01 [root@ ~]# chmod +t /sticky01 [root@ ~]# ls -ld /sticky01 drwxrwxrwt. 3 user01 user01 22 Apr  8 06:10 /sticky01   I have a directory with sticky bit and it is world readable, world writable.  user02 writes to the directory:  [user02@ sticky01]$ ls [user02@ sticky01]$ mkdir no-sub [user02@ sticky01]$ mkdir with-sub [user02@ sticky01]$ mkdir with-sub/sub-01 [user02@ sticky01]$ date > content.txt [user02@ sticky01]$ ls -l total 4 -rw-rw-r--. 1 user02 user02 30 Apr  8 06:09 content.txt drwxrwxr-x. 2 user02 user02  6 Apr  8 06:09 no-sub drwxrwxr-x. 3 user02 user02 20 Apr  8 06:09 with-sub   One file One directory with no content One directory with a sub-directory  Now here is the problem:  [user01@ sticky01]$ rm content.txt  rm: remove write-protected regular file ‘content.txt’? y [user01@ sticky01]$ ls -l total 0 drwxrwxr-x. 2 user02 user02  6 Apr  8 06:09 no-sub drwxrwxr-x. 3 user02 user02 20 Apr  8 06:09 with-sub [user01@ sticky01]$ rm -rf no-sub/ [user01@ sticky01]$ ls -l total 0 drwxrwxr-x. 3 user02 user02 20 Apr  8 06:09 with-sub [user01@ sticky01]$ rm -rf with-sub/ rm: cannot remove ‘with-sub/sub-01’: Permission denied [user01@ sticky01]$ ls -l total 0 drwxrwxr-x. 3 user02 user02 20 Apr  8 06:09 with-sub   How can user01 delete the directory?  A sticky bit on a directory allows the owner of the directory to delete the files in the directory. However if the other user creates a subdirectory, then this permission seems to be lost.  Is not not open to abuse for anybody just to create a subdirectory and put files in that subdirectory so that the owner of the sticky bit can't delete it?

I'm using Debian 7 and have created a new user (website) with an htdocs directory like this:  $ sudo adduser website $ sudo mkdir -p /home/website/htdocs $ sudo chown -R website /home/website   Now I'd like users of another group (developers) to have access to the user's directory. I have tried:  $ sudo chown -R :developers /home/website   I can see that the group is assigned (with ls -la or stat) and that the users are in the group, but they don't have access right?  drwxr-xr-x     3     website     developers     4096 May 3 09:09     website   I also want to:   Allow another group, 'contractors' access to website files  Restrict access of website users to their home directories only Ensure new website files inherit these permissions    Do you have to use access control lists - or is there a better way to do this (like not using a separate user for each site)?


I have read many posts about maximum RAM with 32 and 64 machine systems/machine and still not clear on the answer. It is not clear if systems mean hardware or windows itself. Soooo... Can i use more than 4 gig of RAM on a 64 bit architecture computer that is running 32 bit Windows 10 ?

I recently upgraded my computer's RAM to 4 GB. My 32-bit Windows installation shows only 3574 MB of the memory. How can I make Windows use the full amount of RAM?


I've been thinking about the  since I asked my  on this site, which was different because here I ask for showing me the mechanism for the "how". I even gave one (the first) answer as a favorite. Though many answers were given (many of which contained critical phenomena, which aren't the same as chaos: sure, if you change the direction of a little ball, which is aimed at the detonation device of a thermonuclear bomb, and the ball will miss the device because of this, the difference will be enormous: a bomb blast or not! If this ain't a very different response to a small change of initial conditions...But it ain't chaotic behavior). it's still not clear to me how clapping my hands can cause a hurricane far away. The weather system will the same after clapping my hands already at a little distance from my clapping due to the dissipation of my clapping energy into the surrounding air, and maybe a solution can be given in terms of energy.  If I'm standing in a heavy hurricane, I just can't imagine the storm could not have developed if someone far away didn't clap her hands  The best way to explain this is to give the chain of causes and effects that will lead to this hurricane if I clap my hands instead of not clapping at all. The weather system, for sure, contains no criticalities. The answer can also be given in the causes and effects of larger chunks of air (from little vortices to the similar behavior at larger scales, which are different only in their time-scale), rather than on the atomic level.   In a double pendulum, you don't vary the places in phase space by a small (and non-random) way for just a few atoms to show the dp shows chaotic behavior. You vary both arms of the dp by a tiny amount and see what happens, which, contrary to the weather can easily be done in an experiment.  The same reasoning can be given for a weather system.   Is there someone who can show this chain which causes the faraway hurricane by just clapping my hands and leave everything else the same?  Please don't think I ask this for collecting votes because it did in my first question ever here. You can see the contrary is happening, but I just want to see an argument that shows that you can't say the weather system is chaotic by varying a very tiny small part of it.

Is the  real? It is a well-known statement that a butterfly, by flapping her wings in a slightly different way, can cause a hurricane somewhere else in the world that wouldn't occur if the butterfly had moved her wings in a slightly different way. Now, this can be interpreted as a figure of speech, but I think it's actually meant to be true. I can't imagine though that this is true. I mean, the difference in energy (between the two slightly different wing flaps), which actually can be zero (the only difference being the motion of the air surrounding the close neighborhood of the two slightly different flapping pairs of wings), is simply too small to cause the hurricane 10 000 miles away. So how can this in heavens name be true? By asking I'm making the implicit and realistic assumption that in the atmosphere no potential energies can be released when a small difference in the air conditions occurs (like, for example, the release of energy contained in the water of a dam when the water has reached a critical level and a small perturbation can cause the dam to break, with catastrophic consequences).


I have been proved that the Frattini subgroup of a finite group is nilpotent. Now I am wondering: is the converse true? I mean, if $G$ is a finite nilpotent group, is there always a finite group $H:\operatorname{Frat}(H)\cong G$?

The Frattini subgroup of a finite group is the intersection of its maximal subgroups.  It is well-known that the Frattini subgroup of a finite group is nilpotent.  My question is whether a kind of converse is true:  Does every finite nilpotent group occur (up to isomorphism, of course) as the Frattini subgroup of some finite group?  The problem reduces immediately to the case of non-abelian groups of prime power order, since the Frattini subgroup of a direct product of finite groups is the direct product of the Frattini subgroups of the factors, and it is not hard to show that any finite abelian group is the Frattini subgroup of a finite (abelian) group.  I had hoped this might kick off an induction, but I've not been able to do anything with it. The first interesting case seems to be the non-abelian groups of order eight.  A computer search of groups up to order $2000$ (not including groups whose order is a multiple of $512$, however, which could not complete on  hardware available to me), turned up nothing for these two groups.  I am not certain what I would expect the answer to this question to be!


On my iMac, when one pushes certain character keys after about 1 second a menu appears with the selected character with diacritic marks (accents) - i.e. when one presses S, one is presented with a menu showing ß ś š. You can then choose to insert one of these characters using the numerical keys (i.e. pressing S ... short wait ... press 1 results in a ß).    (I'm not sure if this is the default macOS behaviour, or a setting for my Mac. The keyboard in System Preferences implies that holding a key should repeat that key because it has "Key Repeat" and "Delay Until Repeat" settings.)  Is it possible to decrease this wait time? I've been typing in German a lot recently, and ending up with a4 in my text when I intend to write ä.

Does anyone know how to make the character picker appear more quickly?   I use it enough now in my German language studies that it has become second nature for the critical marks and much faster than using the alt+keypress shortcuts.   Only problem is that it's so second nature that sometimes it doesn't pop up quickly enough so I end up typing the character and the number shortcut sometimes (IE u2 instead of ü). Anyone know how to make it appear with less delay? Ideally, I'd love if I could just hold the character and press the number but it appears that OSX insists on waiting for the menu to pop up.


Suppose I have applied for a 6-month J-1 internship Visa and suppose it is successfully granted. Suppose that, due to force majeure or other circumstances beyond my control, I am forced to cancel my travel to the US and that, therefore, I never validate and use my Visa. Will this have negative consequences on my status/record for possible future Visa applications?  Thanks for your support.

I've been granted a 3-month B1/B2 visa for the US and now I can't go. Will having an unused visa in my travel passport have any consequences like future visas refusal? Do I need to do anything special?


When I specify root-folders in my tar command-line I deliberately prefix with "/" to tell tar it is root-folders and not sub-folders of current folder.  E.g.   tar --create --file="/tmp/test.tar" "/tmp/Folder 1/" tar: Removing leading `/' from member names   Why is the leading "/" removed?  In regards to the -f / --file= option: If you want to output to stdout you use -f - but it seems you cannot use --file= -. I thought -f and --file were aliases to each other?  Beside I cannot find the -f - option in the manual (man tar)...shouldn't it be there? or have I just overlooked it.

root@server # tar fcz bkup.tar.gz /home/foo/ tar: Removing leading `/' from member names   How can I solve this problem and keep the / on file names ?


I got some potatoes. Some are partially budded, some are partially green. Are they safe to eat?

I'm talking about potatoes that have gone somewhat soft and put out shoots about 10cm long.   Other online discussions suggest it's reasonably safe and the majority of us have been peeling and eating soft sprouty spuds for years. Is this correct?


I'm mainly interested in the swimming capabilities of the T-800, T-1000, and  T-X, though it's fine to speak of the other terminators as well.

Is there any canon information regarding how much of a deterrent deep and wide water would be to the infiltration units depicted in the Terminator Universe?


I recently tried to update Ubuntu 12.04 on my computer, but I am unable to do this because a red circle with a white line at the top of my screen. When I run the update in the terminal, I get this error message:  E: Type '<!DOCTYPE' is not known on line 1 in source list /etc/apt/sources.list.d/playonlinux.list E: The list of sources could not be read.   What to do?

Every once in a while I see users having issues to update due to errors like this:  E:Type 'ain' is not known on line 1 in source list /etc/apt/sources.list.d/some-ppa.list'   with varying types/line numbers/source list files (often after removing a PPA).  How can such an error be fixed?


I am an Australian, and we can travel in the Schengen Area for 3 months in 6 month period using the Schengen Visa Waiver program.  Can I arrive in the Germany on the Schengen Visa Waiver program two weeks before my National D Visa is valid?

I would like to travel to France before the starting date of my long sejour visa. I thought it will be no problem since I can travel to the Schengen only with my passport without asking any permission for three months as tourist, but now I was told I have to enter France exactly the date that my long sejour visa says. Is it true?  I have read  but I am not sure I found the answer.  Note: I have been calling the French consulate in my country since last Thursday but no one is answering the phone. I suppose they are  in holidays, but my flight is very soon so I have to know what to do as soon as possible.


I am completely new to Ubuntu.   There are 4 user groups in my Ubuntu 13.04 (32bit).   In user group ceo, there is only one user chief.    There is a folder in Home (default Personal folder) which is named ITSM Lab1.   There are subfolders with files inside ITSM Lab1.   I want to give user chief or group ceo Full permissions for the folder ITSM Lab1 and everything inside it (and Full permissions will also be given to future subfolders and files).   What is the command to do these?

I have a folder which permission is set to 777 but when I add any files or folder unziping in that folder. Extracted files or folder permission never change. Destination folder permission is 777 and I want what I will add in that folder will automatically get permission of 777.   When I add any files or folder by extracting .zip in that folder, extracted folder/files permission won't change automatically. I always have to chmod for newly add file/folder!


I need to know the proper way to propagate the search-box in the Google search result page. I tried searching the Google for the procedure, but no luck. Any idea how to make appear the search-box ?

Observe the following results for searching the text "dictionary" on Google:    Notice that there is a custom search box at the bottom of the listing for dictionary.reference.com. Is there any documentation floating around that explains the criterion by which Google decides to display such a search box?


I made a new world called "Fun With Redstone".   I had a "genius" idea to make a zombie killing mini-game, so I put in the super fast redstone clock /kill @e[Type=Zombie] and shortly after, realized my blunder.   My world is now stuck in a death loop where every time I respawn I just get killed again.   Can anyone help me to get out of that loop? Maybe there are hidden files or something? I don't wanna reset my whole world, since there are other projects there.

I set a command block to /tp. It was supposed to activate only if you had 0 time left, and to activate the command block with a hopper clock to keep giving it power.   But it is not checking if you have 0 time left, so it keeps teleporting me. I can't get close enough to the command block to break it, so I'm stuck in a neverending teleport loop.  Any ideas?


If we have two lines given by the equations:   $$ax+by+c=0$$  $$px+qy+r=0$$  We know that the two angle bisectors are represented by the equations  $$\frac{ax+by+c}{\sqrt{a^2+b^2}}=\pm\frac{px+qy+r}{\sqrt{p^2+q^2}}$$  Is there any simple way to distinguish between the two angle bisectors? That is, can we tell which sign will give the acute angle bisector and which the obtuse? I tried using the fact that the angle between the acute angle bisector and one of the lines will be less than 45 degrees,but the formula for that is too hairy.  I remember reading somewhere that if $c, r$ are of the same sign and $ap +bq$ is negative then the positive sign gives the acute cangle bisector. I tried it out for some values in a graphing programme and it does seem to work. But I was not able to come up with a proof.

The formula for finding the angular bisectors of two lines $ax+by+c=0$ and $px+qy+r=0$ is $$\frac{ax+by+c}{\sqrt{a^2+b^2}} = \pm\frac{px+qy+r}{\sqrt{p^2+q^2}}$$ I understand the proof of this formula but I do not understand how to determine which sign is for acute bisector and which one for obtuse. I can find the angle between a bisector and a line, and if it comes less than $45^\circ$ then it is acute bisector. But that is a lengthy method and involves calculation. My book says, if $ap+bq$ is positive then the negative sign in the formula is for acute bisector. I want a proof of this method. Edit: Using the method for finding the position of two points with respect to a line is okay for the proof.


I'm working on a CB3-532 Chromebook with GalliumOS and my google-drive-ocamlfuse is  working fine, but what I was wondering is if there's a way to mount/unmount my google drive with a key binding while I'm in the Gallium GUI without having to open a terminal.   I've opened the keyboard app and tried a few things with Application Shortcuts but nothing seems to work. Every command I've attached to my desired keybinding does nothing at all. Maybe I'm not using the correct command? Any thoughts or suggestions would be greatly appreciated.

I want to mount/unmount my google drive using with a key binding without having to open a terminal. How can I set this up?


Visual Studio 2005 is very slow with a solution with 21 projects.  Any ideas how to speed it up?

We are getting very slow compile times, which can take upwards of 20+ minutes on dual core   2GHz, 2G Ram machines.  A lot of this is due to the size of our solution which has grown to 70+ projects, as well as VSS which is a bottle neck in itself when you have a lot of files. (swapping out VSS is not an option unfortunately, so I don't want this to descend into a VSS bash)  We are looking at merging projects.  We are also looking at having multiple solutions to achieve greater separation of concerns and quicker compile times for each element of the application. This I can see will become a DLL hell as we try to keep things in synch.  I am interested to know how other teams have dealt with this scaling issue, what do you do when your code base reaches a critical mass that you are wasting half the day watching the status bar deliver compile messages.  UPDATE I neglected to mention this is a C# solution. Thanks for all the C++ suggestions, but it's been a few years since I've had to worry about headers.  EDIT:  Nice suggestions that have helped so far (not saying there aren't other nice suggestions below, just what has helped)   New 3GHz laptop - the power of lost utilization works wonders when whinging to management Disable Anti Virus during compile 'Disconnecting' from VSS (actually the network) during compile - I may get us to remove VS-VSS integration altogether and stick to using the VSS UI   Still not rip-snorting through a compile, but every bit helps.  Orion did mention in a comment that generics may have a play also. From my tests there does appear to be a minimal performance hit, but not high enough to sure - compile times can be inconsistent due to disc activity. Due to time limitations, my tests didn't include as many Generics, or as much code, as would appear in live system, so that may accumulate. I wouldn't avoid using generics where they are supposed to be used, just for compile time performance  WORKAROUND  We are testing the practice of building new areas of the application in new solutions, importing in the latest dlls as required, them integrating them into the larger solution when we are happy with them.  We may also do them same to existing code by creating temporary solutions that just encapsulate the areas we need to work on, and throwing them away after reintegrating the code. We need to weigh up the time it will take to reintegrate this code against the time we gain by not having Rip Van Winkle like experiences with rapid recompiling during development.


I dont get any of the bonus stuff on battlelog. For example, it says I got 200 something kills with the regular knife but most of them were on the ACB 90 knife. I bought this premium edition the one with the code and game. This was a long time ago but it still doesn't say that I'm premium. I tried contacting tech support but all they say is that im not a member. I get all the in game stuff like assignments and expansion packs though. When people kill me it says im premium, proof from friends. Whenever I try to look at premium stuff, it tells me to buy premium first. It only says I have b2k.

I bought Battlefield 3 Premium Edition about a year ago, and it hasn't said that I'm premium on Battlelog. It doesn't say I have all the content like the ACB-90 knife. When I try to get to use the strategy guides it tells me to buy premium first. I don't get all the content on the premium list but I do have the in game items like expansion packs and weapons. I have this on Xbox 360.


I have this PHP old legacy code that I have inherited. There is hardcode references to /home/project everywhere I can not change them. I am on MacOS/Sierra and it will not let me create a folder in /home  sudo mkdir /home/myproj mkdir: /home/myproj: Operation not supported  I am not new to Linux but new to MacOS I tried sudo as well and still will not let me. I also thought maybe a symlink but still not allowed.  $ csrutil status System Integrity Protection status: disabled.  I still get the same error mkdir: /home/foo: Operation not supported

Apple has introduced , also known as "rootless", with OS X 10.11, El Capitan. I understand this is a step for general protection against malware but as a developer I need write access to some of the files it locks away.  How do I disable this protection?


I would like to make all pages before my introduction (TOC,LOF,LOT,abstract), excluding first 3/4 pages (title page, blank page) to be roman numerals with the first page of my introduction =page 1. How can I do this?  I have tried methods posted on here but with no luck.  here is my code:     \documentclass[11pt]{report} \usepackage{graphicx} \usepackage{geometry} \usepackage{fixltx2e} \usepackage{grffile} \usepackage[font=small,labelfont=bf]{caption} %\usepackage{floatrow} \usepackage{amsmath} \usepackage{longtable} \usepackage[notlof,notlot]{tocbibind} \usepackage{fancyhdr} \usepackage{titlesec} \usepackage{epstopdf} \usepackage{booktabs} \usepackage{multirow} \usepackage{tabularx} \usepackage{tabu} \usepackage{ragged2e} %\usepackage[justification=centering]{caption} \usepackage[titles]{tocloft} \usepackage{rotating} \usepackage{adjustbox}    \newcolumntype{L}{>{\RaggedRight\arraybackslash}X}  \titleformat{\section}   {\normalfont\fontsize{14}{12}\bfseries}{\thesection}{1em}{} \makeatletter \renewcommand{\paragraph}{%   \@startsection{paragraph}{4}%   {\z@}{1.2ex \@plus 1ex \@minus .2ex}{-1em}%   {\normalfont\normalsize\bfseries}% } \renewcommand{\baselinestretch}{1.5} \makeatother \setcounter{secnumdepth}{3}   \begin{document} \sloppy \begin{titlepage} \begin{center}   \textsc{\Large title}\\[1.5cm]   \newpage\  \thispagestyle{empty}\textsc{\large text}\\[0.5cm]  \vspace{15cm}   \textsc{\large text}\\[0.5cm] \textsc{\large even more text}\\[0.5cm]  \end{center} \end{titlepage}   \newpage\null\thispagestyle{empty}\newpage \newpage\null\thispagestyle{empty}\newpage  \thispagestyle{empty}\abstract  \newpage\null\thispagestyle{empty}\newpage  {\newgeometry{left=0.98in,right=0.98in,top=0.98in,bottom=1.5in} %\addtocontents{toc}{~\hfill\textbf{Page}\par} \setcounter{tocdepth}{2} \tableofcontents\thispagestyle{empty}\setlength{\cftbeforechapskip}{2ex}\setlength{\cftbeforesecskip}{0.5ex}    \listoffigures\thispagestyle{empty}\setlength{\cftbeforechapskip}{2ex}\setlength{\cftbeforesecskip}{0.5ex}  \listoftables\thispagestyle{empty}\setlength{\cftbeforechapskip}{2ex}\setlength{\cftbeforesecskip}{0.5ex}  \setcounter{page}{1} %\renewcommand{\thesection}{\arabic{section}}  \renewcommand{\thesection}{\arabic{chapter}.\arabic{section}} \pagestyle{fancy}\fancyhead[R]{Introduction}\fancyhead[L]{Chapter 1}  \newpage\null\thispagestyle{empty}\newpage   \chapter{Introduction}   thanks, Michael

In my Master thesis, I would like to have the title page without any page number and an acknowledgments section and the table of contents with roman numbers. The rest of the document should be numbered arabic.  I have tried this, to have roman numbers for the Table of contents and normal numbers for the rest.  \documentclass[12pt,ngerman,openany]{report} \usepackage{titlesec} \usepackage{titletoc} \usepackage{cite} \usepackage[a4paper]{geometry} %\usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} %\usepackage{ngerman}{babel} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{float} \selectlanguage{ngerman} \usepackage{amssymb} \usepackage{amsmath} \usepackage{url} \usepackage{epstopdf} \usepackage{scrhack} \usepackage{listings} \usepackage{caption} \titleformat{\chapter}{\rmfamily\huge}{\textbf\thechapter.}{25pt}{\huge\textbf} \defcaptionname{ngerman}{\lstlistingname}{Code} \defcaptionname{ngerman}{\lstlistlistingname }{Codeverzeichnis}  \lstloadlanguages{R}  \lstset{% general command to set parameter(s)    basicstyle=\sffamily\footnotesize, % print whole listing small    keywordstyle=\sffamily\footnotesize\bfseries, % ubold black keywords    identifierstyle=, % nothing happens    commentstyle=\sffamily\footnotesize\slshape, % green comments    stringstyle=\sffamily\footnotesize, % typewriter type for strings    showstringspaces=false, % no special string spaces    numbers=left,    numberstyle=\sffamily\footnotesize,    stepnumber=1,    numbersep=10pt,    showspaces=false,    showtabs=false,    frame=lines,    morecomment=[l]{\%},    float=htbp,    numberbychapter=true  }   \begin{document} \let\cleardoublepage\clearpage   \pagenumbering{roman}  \tableofcontents  \clearpage  \vspace*{75mm} \chapter{Einleitung} \section{Motivation} bla bla bla \section{Ziel}  bla bla \chapter{Stand der Technik zur Mustererkennung} \section{Die Zeitreihen} bla bla \subsection{Beschreibung} bla bla \subsection{Erklärung}  bla bla  \subsection{Vorhersage} bla bla \subsection{Kontrolle} bla bla \section{Feature Extraktion} bla bla \subsection{Autokorrelation} \subsection{Was ist Autokorrelation?} bla bla   \subsection{Autokorrelation und Zeitreihen} bla bla  \subsubsection{Zeitreihe-Diagramm}  bla bla \subsubsection{Lagged Streudiagramm} bla bla  \subsubsection{Autocorrelation-Function (Korrelogramm)} bla bla \subsection{Spektralanalyse} \subsection{Was ist Spektral-Analyse} bla bla \end{document}


I've came across a question that IMO doesn't have the minimum requirements to stay open. The OP didn't show any efforts to solve the problem and it's also unclear and broad. I've tried to vote close but it seems that questions with a bounty cannot be closed.  Why not?

I just encountered , which is very cute and funny and has nothing to do with programming.  I tried voting to close, but was informed by the system that I can't do that when there's a bounty on the question.  So, since there's a seven-day bounty, this will remain open for at least a week.  I really don't care what happens to the bounty rep, I just want to be able to close questions that are thoroughly inappropriate although not offensive.


My \cite{key} usage referring to bibliographies started to do this;    Not only I get a clickable numbered link (which is fine) I get the cite key on top of the reference. How can I turn this off?  I am using pdfTeX 3.1415926-2.5-1.40.14 through TeXLive on Debian.

I am trying to use cross reference in an article, here is a sample of my code.  \documentclass[11pt]{amsart} \usepackage[margin=1in]{geometry}   % set the margins to 1in on all sides \usepackage{graphicx}              % to include figures \usepackage{amsmath}               % great math stuff \usepackage{amsfonts}              % for blackboard bold, etc \usepackage{amsthm}                % better theorem environments \usepackage{epsfig}         % For postscript \usepackage{epic,eepic}       % For epic and eepic output from xfig \usepackage{showkeys} \usepackage{pdfsync} \usepackage{mathdots} \usepackage{lmodern}       \newtheoremstyle{break}% name   {}%         Space above, empty = `usual value'   {}%         Space below   {\itshape}% Body font   {}%         Indent amount (empty = no indent, \parindent = para indent)   {\bfseries}% Thm head font   {.}%        Punctuation after thm head   {\newline}% Space after thm head: \newline = linebreak   {}%         Thm head spec  \theoremstyle{break} \newtheorem{thm}{Theorem}[section] \newtheorem{cor}[thm]{Corollary} \newtheorem{prop}[thm]{Proposition} \newtheorem{lemma}[thm]{Lemma} \newtheorem{conj}[thm]{Conjecture} \newtheorem{quest}[thm]{Question}  \theoremstyle{break} \newtheorem{defn}[thm]{Definition} \newtheorem{defns}[thm]{Definitions} \newtheorem{con}[thm]{Construction} \newtheorem{exmp}[thm]{Example} \newtheorem{exmps}[thm]{Examples} \newtheorem{notn}[thm]{Notation} \newtheorem{notns}[thm]{Notations} \newtheorem{addm}[thm]{Addendum} \newtheorem{exer}[thm]{Exercise}  \theoremstyle{remark} \newtheorem{rk}[thm]{Remark} \newtheorem{rks}[thm]{Remarks} \newtheorem{warn}[thm]{Warning} \newtheorem{sch}[thm]{Scholium}  \newenvironment{sketchpf}{\noindent{\it Sketch of Proof}\hspace*{1em}}{\qed\bigskip\\} \newenvironment{proof-idea}{\noindent{\bf Proof Idea}\hspace*{1em}}{\qed\bigskip\\} \newenvironment{proof-of-lemma}[1]{\noindent{\bf Proof of Lemma #1}\hspace*{1em}}{\qed\bigskip\\} \newenvironment{proof-attempt}{\noindent{\bf Proof Attempt}\hspace*{1em}}{\qed\bigskip\\} \newenvironment{proofof}[1]{\noindent{\bf Proof} of #1:\hspace*{1em}}{\qed\bigskip\\} \newenvironment{remark}{\noindent{\bf Remark}\hspace*{1em}}{\bigskip}  \begin{document} \begin{prop}\label{2}    This is just an sample. \end{prop} By Proposition \ref{2}, we can see the problem. \end{document}   But when I compile my file, there is a "1" in a square box besides Proposition (the number of above proposition), and at the reference part, there is a small "1" in a square box lying above Proposition.  Is there a way to get rid of these square boxes?  Thanks.


I am doing my homework now and want to make python recognize both lower and uppercase for the input. Here is the script:  print("Welcome to the student checker!")  student_lists={"Mary A","Tony Z","Sophie L","Zoe J","Joey M","Connie O","Olivia L","Mark Z","Donny M"}  while True:      name=input("Please give me the name of a student (enter 'q' to quit):")      if name in student_lists:         print("Yes, that student is enrolled in the class!")      else:         print("No, that student is not in the class.")      if name=="q":         break  print("Goodbye!")   Please let me know how to fix it. Much appreciated!!

How can I do case insensitive string comparison in Python?  I would like to encapsulate comparison of a regular strings to a repository string using in a very simple and Pythonic way. I also would like to have ability to look up values in a dict hashed by strings using regular python strings.


On my grammar book, it says;     many organisations have names with 'the'. ex. the European Union, the BBC   How do you know when you add the with organisations names? Do most organisations names have the in front?

Possible Duplicate:             When I listen to major news programs, often I notice that they seem to intentionally omit "the" before the name of the government organizations. For example:     We contacted E.P.A. for comment but they refused our requests.   or     Others consider the actions of treasury to be detrimental to the economy.   These just sound wrong to me. I think it should be "the E.P.A" or "the treasury". However I most often hear this on very credible news programs (The PBS News Hour and Frontline come to mind) so I am sure they know what they're doing...  Is it proper to use "the" before the name of a government organization, or is it optional?


I am trying to add to my Windows 10 a new folder to my existing PATH system variable. But I'd like to add it as a nested variable.  So what I did was:    Create a variable for my folder as a system varaible:  bla=c:\dev Added the folder I created as a param to my existing path:  PATH={current path};%bla%   But, after restarting,  when trying to use it the path didn't recognize the new variable. When I tried to view the PATH from command line I saw the varaible unrecognized. meaning when I typed: c:>set path  I got: {path};%bla%  What should I do in order to use variable as part of my path. Should it be located in another place and not a a system varaible?

My colleague and I have identical Dell workstations with Windows XP Professional x64 edition installed.  My Path environment variable starts with:  %JAVA_HOME%\bin;...   My colleague's Path variable includes the same directory, specified using the same environment variable, but it is not the first item in his Path.  If I access system properties -> environment variables and change the value of my JAVA_HOME variable, the version of java found from the command-line changes as I expect. This is starting a brand new console window, to be sure to pick up the changes.  But on my colleague's machine, it does not.  He continues to find his previous version of Java until he brings up his Path variable and saves it (even if he makes no changes to it).  (Again, this is when starting a brand new console window.)  I have been observing this inconsistency on Windows for about 6 months now and very curious about it.  We have way too many versions of Windows in our office, so rarely have I had a chance to see this happening on two machines running the exact same OS version, until now.  What is causing this?  Why does his machine not re-evaluate Path, using the new JAVA_HOME, when mine does?  (Is it because it's not the first thing in the Path?  If so, how could that be, and why?  I'd do more tests to check, but I think he's now fed up with it and would like to get back to work.)


The rules for exhaustion from starvation are given in the  (and PHB) as:     A character needs one pound of food per day and can make food last   longer by subsisting on half rations. Eating half a pound of food in a   day counts as half a day without food.      A character can go without food for a number of days equal to 3 + his   or her Constitution modifier (minimum 1). At the end of each day   beyond that limit, a character automatically suffers one level of   exhaustion. A normal day of eating resets the count of days without   food to zero.   The second paragraph strikes me as odd, because it seems to imply that a creature with a reasonable Constitution modifier can make their rations last longer by alternately starving themselves for several days and then eating a full day's rations.1 Perhaps there are more elaborate strategies that might last even longer.   So, given the above rules and assuming I have a Constitution modifier of +0, what is the longest I can go on 10 days' rations without taking a level of exhaustion from lack of food, and what is the rationing strategy to achieve this? Assume that I have no other food source besides these rations, but my other needs (e.g. thirst) are taken care of, so making these rations last is my only concern.    1 On the other hand, maybe this isn't so odd, given that in real life, humans are evolved for survival in conditions of alternating feast and famine.

According to the food rules,     A character can go without food for a number of days   equal to 3 + his or her Constitution modifier (minimum   1). At the end of each day beyond that limit, a character   automatically suffers one level of exhaustion.   A normal day of eating resets the count of days   without food to zero.   According to this, a character with a Constitution modifier of 0 can eat normally every 4th day*, and get no penalties from hunger despite only eating twice a week. This seems a tad ridiculous, and I'm wondering if there are other rules that I'm missing that make it a bad idea to eat less often like this, or if eating every 4th day is a totally fine thing to do, by the rules.  * They can get away with four days, because they'll only get the exhaustion penalty if they don't eat by the end of the fourth. This is even assuming the 'minimum 1' doesn't apply to the con mod portion.


I am studying one time pad and find it hard to understand. What happens if the key is one bit or 100 bits shorter than the message?

I understand the basics of OTP: $|\text{key space}| = |\text{plaintext space}|$ implies perfect security, key reuse destroys this.  Cryptanalysis on the $N$-Time Pad for $N > 1$ involves finding patterns in the ciphertext; this, however, all seems based on the premise that patterns exist in the plaintext (e.g. English language).  My question is: if $m_1$ and $m_2$ are two truly random strings, and they are both encrypted with the same OTP key to yield $c_1$ and $c_2$, is it possible to recover $m_1$ and $m_2$ from $c_1$ and $c_2$?  In other words: while "perfect security" (aka perfect indistinguishability) is obviously lost (constructing a distinguisher for two messages is trivial), is the plaintext still safe?


I got a full drawer of second hand wall warts which I'm planning to use for powering arduino projects (mostly 5V "pro mini" or "nano").  I'm using a voltmeter to check that they are still working, however most of them seem to output a far greater voltage than what is printed on the case.  For example the Arduino pro mini accept up to 12V so I've been looking at 9V wall warts, but they often give more than 12V.  Example (but typical reading):   written specification: 9 V 300 mA Measured voltage: 12.37 V Measured voltage while powering a led (through a 300 ohms resistor): 11.2 V   I tried to add a led because I've read that measuring a voltage with no load may give a wrong result, but perhaps that's not enough to get a proper reading...  My questions are:    Is there a way to measure the correct voltage that will be issued in "normal usage conditions"? Can I safely use a "9V wall wart" to power a "12V max" device if I measure more than 12V?   PS: So far I've use 6V wall warts which are giving about 10V, but I don't have any left so I'm trying to use 9V ones

When I measure a 9V DC wall adapter power supply with a multimeter it shows 11.8V. When connected to my board this voltage lowers to 10V. Is this normal? Should I be afraid of toasting my  supplied board when using this adapter?  Edit: This regulator accepts up to 12V inputs. So that will be no problem. A second "9V" adapter yields 15V to the multimeter. Will this one burn my circuit?


In a multiple choice exercise I had to choose between:  .................... is banned in all pubs in Ireland.  A/ To smoke  B/ Smoking  I'm pretty sure the solution is B (Smoking) but I don't really know the rule behind. Could somebody please explain why it is B (if so)?

As a native speaker of English, the gerund version of this sentence sounds better:  infinitive:     When used together in chains,   extension methods are an unprecedented   tool to produce extremely concise   code.   gerund:     When used together in chains,   extension methods are an unprecedented   tool for producing extremely concise   code.   But how can I explain to someone learning English how to decide in situations like these whether to use the infinitive or the gerund?


I am flagging spam posts detected by , and I want to see the network wide impact on flagging the spam.  Spam content is getting deleted immediately from the sites like MSE, SO. Response from other Stack Exchange sites is very slow. Sometimes, it takes hours to remove the spam content.  It's very difficult to remember on which site I have flagged posts.  How do I track down my flags status? How about having an "impact" tab in the network profile page which shows the flag status from all SE sites ?

This morning I flagged something on one of the sites where I have fairly low rep. Now I can't remember which site it was. I've checked my flag history on about half of them, even editing the URL for the site where I have no helpful flags, and I can't find this flag. I've been to my network profile and looked at the Activity tab, but it only shows public things like asking, answering, commenting, editing, and reviewing.  Is there a way to see my flagging history across sites? Can we have such a feature, if it's not possible?


When I click on lightning:button(Create), I am able to dynamically create lightning:input element from js controller but When I click on lightning:button(Set Value), I am not able to set value for the lightning:input by accessing its aura:id. I am getting error as " [Cannot read property 'set' of undefined]"...Even I tried the answer posted in() but there they have used ui:button but here I am using lightning:input.  <aura:component>      <lightning:button label="Create" onclick="{!c.createElements}" variant="brand"/>

      <lightning:button label="Set Value" onclick="{!c.setValue}" variant="brand"/>
 </aura:component>   js controller  createElements : function(component, event, helper){          $A.createComponent(                 "lightning:input",                 {                     "aura:id":"objectField",                     "label": "User Name",                     "type": "text"                 },                 function(msgBox){                                     if (component.isValid()) {                         var targetCmp = component.find('createdynamicInputText');                         var body = targetCmp.get("v.body");                         body.push(msgBox);                         targetCmp.set("v.body", body);                      }                }            );      },     setValue : function(component, event, helper){         component.find("objectField").set("v.value","Testing");     }   I have also tried the below code but not working for my thing,  setValue : function(component, event, helper){         //component.find("objectField").set("v.value","Testing");         var input = component.find({ instancesOf : "lightning:input" })[0];         input.set("v.value", "Testing");     }    can anyone please help me here to solve this issue, thanks in advance

Below is my code to create the component dynamically - The component is "ui:inputselect"  $A.createComponent(             RecoveryLineItem.Attributes[i].name,{                 "class" : "slds-input ",                 "aura:id" : 'ExampleId',                 "label" : RecoveryLineItem.Attributes[i].label,                 "multiple" : RecoveryLineItem.Attributes[i].multiple             }, ....   ..  console.log(component.find('ExampleId').get("v.value"))    Or console.log(component.find('ExampleId'))  is Giving as 'Undefined"  How to access the aura:id of the dynamically created components?


Wizards has posted . I read through some of the changes, but I'm not good at reading stuff side by side to understand all of the nuances that have changed and why the changes are considered better. What all has changed, and why is this considered to be better?

As a new player to D&D, I don't really know what significant changes have been made to the Ranger through Unearthed Arcana. What makes the class different from the PHB version and how does this help make the ranger more viable?


The master method - why can't it solve $T(n) = 2T(\frac{n}{2}) + \frac{n}{\log n}.$ What's the issue with the master theorem? Why is there like different concepts on different channels? What formula applies? what is "polynomial check"? when does the k method apply? There are so many questions in which some say master theorem cannot be applied but some give out the answers. I m pretty confused right now - what to follow?

Apparently recurrences like this cannot be solved with the Master Theorem:  $T(n) = 2T\left(\frac{n}{2}\right) + \frac{n}{\log(n)}$  Because $n^{\log_b(a)} = n^1$ is not a polynomial multiple of $f(n) = \frac{n}{\log(n)}$ since $\frac{n}{\frac{n}{\log(n)}} = \log(n)$, which is less than $n^\epsilon$ for any positive $\epsilon$.  But when is this really even an issue?   For example why wouldn't the time complexity be $n \log n$ using case 2 of the Master Theorem? Unrolling the recursion:  $$T(n) = n\sum_{k=1}^{\log_2(n)} \frac{1}{\log_2(2^k)}$$  $$T(n) = n\sum_{k=1}^{\log_2(n)} \frac{1}{k}$$  Doesn't this suggest $\Theta(n \log n)$ even though it supposedly cannot be done with Master Theorem?


Let's say I have a function int myfun (int arg1, int arg2, int arg3, int arg4) {     /* function body */ }  and I would like to write a function pass_last_elements() that has signature int (*)(int, int) pass_last_elements(int (*myfun)(int, int, int, int), int x3, int x4);  and returns a function of two arguments, let's call it fun_out, such that fun_out(x1, x2) computes the same result as myfun(x1, x2, x3, x4). Is it possible to do this purely in C? If not, would it be possible to do it using some compiler extensions?

I am just now learning about function pointers and, as I was reading the K&R chapter on the subject, the first thing that hit me was, "Hey, this is kinda like a closure." I knew this assumption is fundamentally wrong somehow and after a search online I didn't find really any analysis of this comparison.  So why are C-style function pointers fundamentally different from closures or lambdas? As far as I can tell it has to do with the fact that the function pointer still points to a defined (named) function as opposed to the practice of anonymously defining the function.  Why is passing a function to a function seen as more powerful in the second case, where it is unnamed, than the first where it is just a normal, everyday function that is being passed?  Please tell me how and why I am wrong to compare the two so closely.  Thanks.


Whenever I import new layers or adjust older layers in my geoserver, I have to do  a lot of manual work, for example "compute from native bounds", "reload feature types" etc. This is very annoying when it comes to > 10 layers and I am looking for a method to automate that.

I have a system built on PostGIS/GeoServer/OpenLayers. Data (a ship's voyage track) is inserted into the database in real-time - a bunch of variables and point geometry type. This is served up via (primarily) WFS to OpenLayers.  I dynamically publish the layer for a new voyage using REST. When done this way, the bounding box (according to the config page) is set to 0,0,-1,-1 for both native and lat/long.  What I'd like to do is set this to a reasonable value programmatically - effectively automating going in and using the 'Compute from Data'/'Compute from Native Bounds' links on the layer config page.  My preference is to do this via a RESTful call, however this doesn't seem to be supported in the current version of the standard API. Any other alternative solutions are more than welcome.


In some distribution installers like Artix Linux Base or Manjaro Linux Architecture installers print a message before the login message. I want to do the same thing. How can I do the same for Linux and TTY? Please don't mark as duplicate and don't answer as comment...

I'm wondering if there's a way to customize the Ubuntu server login prompt. Currently it shows the following:  Ubuntu 13.10 fw tty1 fw login: _   I know there's /etc/motd for the message of the day, also .bashrc for bash customization for each user, but how do I change the login prompt post?  Thanks


if $a,b,c$ are positive prove that $$a^2+b^2+c^2+2abc+3\ge (1+a)(1+b)(1+c)$$  I have tried to use the  p-q-r method. let $p=a+b+c,q=ab+bc+ca,r=abc$ we have to prove $$p^2-3q+r+2-p\ge 0$$ as $p^2\ge 3q$ we have to prove $$r+2-p\ge 0$$. but i don't think this is true. Also i know the following inequalities but i can't figure out how to use them.  $pq\ge 9r$ $2p^3+9r\ge 7pq$ $q^3\ge 27r^2$ etc. etc.  Please note that i am looking for a solution only using pqr.I would be grateful if anyone can explain their logic behind the proof as it is the first time i am using 'pqr' method.

let $a,b,c>0$. Show that   $$a^2+b^2+c^2+2abc+3\ge (1+a)(1+b)(1+c)$$   By the $$(1+a)(1+b)(1+c)=1+a+b+c+ab+bc+ac+abc$$ it is suffient to show  $$a^2+b^2+c^2+abc+2\ge a+b+c+ab+bc+ac$$ How?


I cannot get my links to center on my divs. I understand that you could use line-height, but I dont not have fixed widths or heights on my divs they are all created based on the size of the screen. I have tried to vertical align with no success I'm sure I am just overlooking something my code is here in this fiddle for the example of the problem.

Item 1

Item 2

Item 3

Item 4

Item 5

Item 6

I have a div with two images and an h1. All of them need to be vertically aligned within the div, next to each other. One of the images needs to be absolute positioned within the div. What is the CSS needed for this to work on all common browsers?

testing...


I am studying masters in the UK and living with my 2 children and husband for only since this September, 2018. In my home country we lived with my mom as well and now she lives in our house with my brother and his family. As my mom has lived with us for the last 4 years i wanted to invite to visit us more often until our visas are expired, Jan, 2020.   She applied for 2 year visa, 3 months for the first visit, 1.5 months for the second during school break and 2 weeks for my graduation ceremony. But her visa has been rejected based on UK visa immigration rule of V 4.2 a, c and e. Pls see  the full refusal letter. Basically she was rejected because she doesn't have her own source of fund although we provided the evidence of her monthly pension which is very small (200$) and i will fund her. She lived in another city before moving to our house and she had a property which she has a copy of certificate but very old from 2013. She didn't include it as it is now on my cousin's name and she doesn't live at that address.   This large deposit made is because i sold my car to support her application which is additional fund to my family expense in the UK. I am a full Scholarship holder for myself only from the UK government and provided evidence of my fund as some portion of savings, the income from selling our garage, for my husband and children's visa.   My mom now lives in our house with my brother and his family during our absence. He supports her in addition to her monthly pension. He has has also 2 children and wife who is not working. So i didn't include anything about themselves. My mom will definitely go back to the country but i don't know how to demonstrate that strongly.  Should i now try again but for 6 month visa for 2 months as 3 months seems to be long for a visit. My mom looked after my children most of the time as me and my husband are busy with work so they are very close. I would like my mom to visit my family and spend time with my children as they miss her.   Please advise how i should demonstrate strong evidence against the refused grounds and any solicitor who is affordable please recommend.   Thanks

I have applied recently for a general visitor visa to the UK to spend 10 days during Christmas with my British unmarried partner and it has been turned down.   The Entry Clearance Officer stated on his refusal notice the following:     I note that you have never previously travelled to the UK or any country with similar immigration requirements and you therefore do not have a history of travel and compliance to consider.      You have submitted an employment letter to confirm your occupation in KSA but I am required to also assess your personal, domestic and economic circumstances in determining whether you are genuine visitor travelling to the UK for the period and purpose you state.      You claim an income of SAR ........ per month which equal ........ GBP and from the evidence submitted this appears to be your sole source of income.   I note that this monthly income is reflected on your bank statements. However, the bank statement you have presented show a recent large deposit that are in excess of your stated income and inconsistent with the account history. You haven't provided evidence toward the origin of this recent deposit and in the absence of reasonable evidence I am not satisfied that these bank statements accurately reflect your personal circumstances.      In view of the above, I am not satisfied you have demonstrated that your circumstances are as you claim and therefore I am not satisfied that you're travelling to the UK for the period and purpose you stated. 41(i)and(ii).   Its true that I have deposited that sum of money right before I apply and it was a commission I received from work earlier this month.   So, could you please give me your advice on the above as I am planning to apply again soon. and how to avoid my application being refused again?


Let $R$ be a graded ring, for example with nonnegative grading such that   $$R=R_0 \oplus R_1 \oplus \dots$$  Is then  $R^n= R \times \cdots \times R$ a graded ring (not with a trivial grading) ? If so, with what grading?

This question is related to .      Probably it's obvious but could you tell me what is the grading on the graded direct product?    I was thinking about $^*\Pi M^i=\oplus_j(\Pi_i M^i_j)$ where $M^i_j$ is the degree $j$-part of $M^i$, but I couldn't prove it and I'm not sure I'm correct, especially because if $R=M^i=k[x]$, then $(1,x,x^2,x^3,\ldots)$ seems to belong to the graded direct product but I don't think it belongs to $\oplus_j(\Pi_i M^i_j)$.


Can anyone tell me the application of module . I know they are used in representation theory . What are there other places where the modules are used ???

Kind of a simple question, but what exactly are R-modules used for? Do they have any engineering applications?  EDIT:  If it helps, I'll give some more context to the question...  I am a graduate student researcher in computer architecture, a subfield of computer engineering. Specifically, I do research on the best way to build future general purpose processors (stuff like the Intel i7).   One thing I am looking into is if it is possible to apply mathematics to improve the design of CPUs. That is, can we use concepts from mathematics to improve the execution of general purpose programs on hardware. CPUs are a massive engineering design problem, and where exactly we could improve the design by applying math isn't entirely clear.   What I don't have is a very deep mathematical background. I have taken an introductory abstract algebra course and one in coding theory. I've also read a number of coding theory papers...  I know that other electrical engineering subfields like communications and compressed sensing have successfully applied elements of linear algebra and abstract algebra and have gotten very good results.  The fact that this particular question spans both engineering and mathematics makes it both hard to formulate and to discuss with people. I'd be happy to talk about it in more detail, but I'm not entirely sure what the best forum would be for that.  At least for now, I figured a good place to start would be to see if other people have successfully used some of the more abstract math concepts in engineering systems. One of the few I am aware of are R-modules, so I figured I'd ask if anyone knows of some engineering uses of them...


I have some doubt regarding what the size of a self referential structure in C is. I ran the following code and it gave me a output of 24  #include<stdio.h>  int main() {      struct hello {               int a;         char ch[10];         struct hello *p;     } dhiraj;      printf("%d",sizeof(struct hello));     return 0; }   Now next I modified the index of ch and made it 20 the next time and after running it gave on output of 32  The other weird behavior which I noted was that after the execution of the following code -   #include<stdio.h>  int main() {      struct hello {         int a;         // int b; Statement 1          // int c; Statement 2         struct hello *p;     } dhiraj;      printf("%d",sizeof(struct hello));     return 0; }   I got an output of 16. After activating statement 1 the output was still 16 but after activating both statement 1 and statement 2 the output became 24. What is actually happening here ?

Why does the sizeof operator return a size larger for a structure than the total sizes of the structure's members?


Which is the best way in order to reproduce something like that?

I am interested in outputting  this graph in  latex using tikz:    So far I got this:    and my tikz code is   \begin{tikzpicture}     \node[shape=circle,draw=black] (A) at (0,0) {A};     \node[shape=circle,draw=black] (B) at (0,3) {B};     \node[shape=circle,draw=black] (C) at (2.5,4) {C};     \node[shape=circle,draw=black] (D) at (2.5,1) {D};     \node[shape=circle,draw=black] (E) at (2.5,-3) {E};     \node[shape=circle,draw=black] (F) at (5,3) {F} ;      \path [->] (A) edge node[left] {$5$} (B);     \path [->](B) edge node[left] {$3$} (C);     \path [->](A) edge node[left] {$4$} (D);     \path [->](D) edge node[left] {$3$} (C);     \path [->](A) edge node[right] {$3$} (E);     \path [->](D) edge node[left] {$3$} (E);     \path [->](D) edge node[top] {$3$} (F);     \path [->](C) edge node[top] {$5$} (F);     \path [->](E) edge node[right] {$8$} (F);    \end{tikzpicture}   I want to know how to draw the arc between nodes B and E and also thicker  arcs with their lengths in center. Any help is appreciated


I know each part of this command.  sudo mv home/* *    sudo: super-user do, execute with root privileges. mv: move a file or directory. home/*: argument of mv command. It indicates the content of home directory. The asterisk * is a wildcard that expands to the list of files in the current directory in lexicographic order.   The next argument is the destiny folder. However, I specify an asterisk as destiny directory, and if I execute the command the folder disappear completely. So, what does the * in this case?

I accidentally forgot to specify destination before hitting the Return key. Where does mv ./* without specifying destination move the files and directories under current directory to?


I am trying to make a vertical column of various moon phases using a macro that generates circles, but when I add a node label to a circle (to designates that it is a full moon) it shifts the circle that contains the label slightly to the right.  \documentclass[leqno,12pt]{article} \usepackage{tikz} \usetikzlibrary{calendar,fpu}  \newcommand{\moon}[2][]{%     \def\lunarage{#2}%     \pgfmathsetmacro\textF{ifthenelse(\lunarage==15,"F","")}     \tikz []{         \draw (0,0) circle [radius=1ex];         \node[color=black] (0,0) {\textF};         %     }% } \begin{document}\noindent%     \foreach \d in {0,1,...,30}{%     \moon[]{\d}  \\   } \end{document}   THANKS for any help!

I am trying to make a vertical column of various moon phases using a macro that generates circles, but when I add a node label to a circle (to designate that it is a full moon) it shifts the circle that contains the label slightly up and to the right.  \documentclass[leqno,12pt]{article} \usepackage{tikz} \usetikzlibrary{calendar,fpu}  \newcommand{\moon}[2][]{% \def\lunarage{#2}% \pgfmathsetmacro\textF{ifthenelse(\lunarage==15,"F","")} \tikz []{     \draw (0,0) circle [radius=1ex];     \node[color=black] (0,0) {\textF};     %     }% } \begin{document}\noindent%     \foreach \d in {0,1,...,30}{%     \moon[]{\d}  \\   } \end{document}   THANKS for any help!


Okay so I have two tables, with many columns, but for illustration purposes I have a and b:   a:           b:    +---+-----+  +---+------+-----+ |id |name |  |id | a_id |size | +---+-----+  +---+------+-----+   What I want is to SELECT * FROM a and then for each a' in a I want to SELECT id FROM b WHERE a_id = a'.id. But can I create a single curery such that the results becomes:   ab: +---+-----+--------------------------------+  |id |name | b_idx_1, b_idx_2, ... b_idx_n  | +---+-----+--------------------------------+    I tried:  SELECT id, name, (SELECT id FROM b WHERE b.a_id = a.id) FROM a WHERE a.name LIKE 'Random Name' But then I get an error, with the sub-query returning more than one row.

Using MySQL, I can do something like:  SELECT hobbies FROM peoples_hobbies WHERE person_id = 5;   My Output:  shopping fishing coding   but instead I just want 1 row, 1 col:  Expected Output:  shopping, fishing, coding   The reason is that I'm selecting multiple values from multiple tables, and after all the joins I've got a lot more rows than I'd like.  I've looked for a function on  and it doesn't look like the CONCAT or CONCAT_WS functions accept result sets.  So does anyone here know how to do this?


I'm using MATLAB to plot the Weibull distribution function. But the y-axis, obviously, is not probability. Also, the plot on Wikipedia ()has same y-axis as mine, so my question is: is there something wrong here? I'm pretty sure that my code is correct. So Why the y-axis is not probability ?

On the , there is this line:      $p(\mathrm{height}|\mathrm{male}) = 1.5789$ (A probability distribution over 1 is OK. It is the area under the bell curve that is equal to 1.)    How can a value $>1$ be OK? I thought all probability values were expressed in the range $0 \leq p \leq 1$. Furthermore, given that it is possible to have such a value, how is that value obtained in the example shown on the page?


If I pause after a list, I get an extra unnecessary slide. Consider the following code \begin{frame} \begin{itemize}[<+->]   \item Item 1   \item Item 2 \end{itemize} \pause \[   f(x) = x \] \end{frame}  If I compile this, I will get 4 slides. The first one shows item 1, the second one shows item 2, then the third slide shows the same as slide 2, then the equation appears on slide 4. Why does this happen? I know I could use uncover but I don't want to specify the slide number each time I do this.

I've come across some strange interaction between overlay specification and \pause. Basically I have an itemize and after some text(or block). I want to step through the itemize and after that show the text/block.  I've tried to put a simple \pause between the itemize and the text, but in this way two slides are created, both with the full itemize and no text.  If I don't put the \pause the text is visible from the start(which I don't want).  I've already found a simple work-around: instead of using itemize[<+->] I can specify the slides on the items(e.g item<1->, ...item<2->,... \pause), but I don't like this solution for some reasons:   I have to type more than before I have to hard-code the slide numbers This is solution is not robust. Modification on the item order, removal or addition of new items would break it. I think there has to be some better solution.   So, how should I do?  By the way, a minimal example:  \documentclass{beamer}  \usepackage[utf8]{inputenc} \usepackage{default}  \begin{document}  \begin{frame}     \begin{itemize}[<+->]         \item A         \item B         \item C     \end{itemize}      \pause  % double pause here      Some text. \end{frame}  \end{document}


When writing javascript or PHP for that matter I use two ways to write if statements.  Return as soon as possible  Below I try to end the function as soon as possible. If the value is not what I expect, return it. The benefit I see here is that I don't need {} and I don't need to nest anything.  function hello(value = null) {   if(!value) return;    console.log("I'm still here!");   console.log("End of function"); }   Do something on match  In this case I don't return at all. Instead I do something if I get a "match". The upside here is that I don't need to return anything.  function hello(value = null) {   if(value) {     console.log("I'm still here!");     console.log("End of function");   } }   So which is better? One of them or equally good?

Myself and a colleague have a dispute about which of the following is more elegant. I won't say who's who, so it is impartial. Which is more elegant?  public function set hitZone(target:DisplayObject):void         {             if(_hitZone != target)             {                 _hitZone.removeEventListener(MouseEvent.ROLL_OVER, onBtOver);                 _hitZone.removeEventListener(MouseEvent.ROLL_OUT, onBtOut);                 _hitZone.removeEventListener(MouseEvent.MOUSE_DOWN, onBtDown);                  _hitZone = target;                  _hitZone.addEventListener(MouseEvent.ROLL_OVER, onBtOver, false, 0, true);                 _hitZone.addEventListener(MouseEvent.ROLL_OUT, onBtOut, false, 0, true);                 _hitZone.addEventListener(MouseEvent.MOUSE_DOWN, onBtDown, false, 0, true);             }         }   ...or...  public function set hitZone(target:DisplayObject):void         {             if(_hitZone == target)return;              _hitZone.removeEventListener(MouseEvent.ROLL_OVER, onBtOver);             _hitZone.removeEventListener(MouseEvent.ROLL_OUT, onBtOut);             _hitZone.removeEventListener(MouseEvent.MOUSE_DOWN, onBtDown);              _hitZone = target;              _hitZone.addEventListener(MouseEvent.ROLL_OVER, onBtOver, false, 0, true);             _hitZone.addEventListener(MouseEvent.ROLL_OUT, onBtOut, false, 0, true);             _hitZone.addEventListener(MouseEvent.MOUSE_DOWN, onBtDown, false, 0, true);          }


There is a pattern that I frequently see with new users: the user posts a question, someone leaves a comment requesting clarification, and the user posts the clarification in a comment.  I anticipate this is likely because new users might not be familiar with our mission of building up an archive of high-quality questions that will be useful to others, and so it doesn't occur to them that we'd prefer them to respond by revising their question to improve it. I think we could help users by providing guidance in this situation.  In particular, I am imagining that a brief message could be shown, under the following conditions:  A user ("the asker") posts a question The asker has reputation below some threshold (say, below 30) There is a comment under their question from someone else The asker has not posted a comment under this question yet The asker moves the focus into the comment field  Then perhaps we could have a message that provides guidance on when to comment vs when to edit their question.  For example: "Edit your question if you are adding more details." (though this probably needs revising and improvement) I am thinking this might help teach newcomers about how to use the site, and in a way that is fairly unobtrusive for experienced folks.  I am also hoping it will lead to higher-quality questions, by avoiding a situation where there is critical information buried in the comments, and make life easier for experienced users, as they won't need to repeatedly guide new users on this.

It's very common to ask for additional information on a question.  This is perhaps most common with new users who are a little unfamiliar with the need to put all relevant information in their question to start with.  To be blunt, I'm a little tired of explaining to new users that an edit is better than a comment, particularly where we ask "please add the output of..." I note that some users have taken to explicitly asking OPs to edit their question and adding an edit link in their comment.  But still this is missed.  More recently, adding a comment to a new user's question displays a little note saying:     ... is a new contributor. Be nice, and check out our Code of Conduct.   Could there be a similarly formatted note to new contributors commenting on their own question or answer:     If you need to add more information please  your [question][answer] instead of adding a comment.


I have no idea why this is happening, but using very similar code to try to focus two different <textarea> elements only works on one.   On my page I have a textarea into which users may type a reply, but users may also edit their replies via a textarea that is loaded onto the page with AJAX; I've been successful at giving this "edit" textarea focus once it is loaded.   However, both textareas have formatting buttons (bold, italic, etc.) associated with them, and I would like these buttons to focus the appropriate textarea upon being clicked.   The problem is that this only works with the normal textarea, not the one loaded in with AJAX, even though the HTML for both input areas is the same (except for the IDs of course).  Why would this happen? This is the only problem I seem to be having with focusing elements on my website.  //Loads in the edit textarea with AJAX function editComment() {     var edited = false;      $("#content").on("click", ".edit-button", function(event){          event.preventDefault();          var commentID = this.id.match(/\d+/);                     var container = "#comment-" + commentID;          if (!edited)         {                  $(container).data("old-state", $(container).html());             $(container).load("/php/_edit.area.php", {                  id: commentID              }, function(){$("#edit-text-area").focus();}); //this works              edited = true;         }          else if (edited)         {                    edited = false;             $(container).html($(container).data("old-state"));         }     });  }  //Inserts formatting on the default textarea function handleFormatting() {     $('#format-button').on("click", function(event)      {         event.preventDefault();         //do formatting          $("#default-text-area").focus(); //this works           });  //Inserts formatting on the edit/AJAX textarea function handleEditFormatting() {     $('#edit-format-button').on("click", function(event)      {         event.preventDefault();         //do formatting          $("#edit-text-area").focus(); //this does not work             });  $(document).ready(function(){      editComment();     handleFormatting();     handleEditFormatting();  });   [EDIT] To clarify, while I have been able to give the edit textarea focus once it is loaded in, I would like users to be able to click out of this textarea (perhaps to move around the page for whatever reason) and then have the buttons give focus again once they are pressed.

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


I've successfully installed and run the QB64 IDE on Ubuntu 18.04 LTS, but I still need to drag the script file run_qb64.sh into the terminal to make it run.  There has to be a way to do it w/o the terminal....right?  Thanks.

Possible Duplicate:             I want to add some shell scripts in my launcher as shortcuts..  They are located deep inside and i have to navigate to it every time to execute them...  I tried  link where the 2nd answers seems to solvee it but as said in comments neither can i find any option to add a launcher..  I guess it existed in 11.04 with a "+" button on launcher but i use 12.04.  So how do i get this working?? And i need those commands everytime for sure..!


Every once in a while I stumble upon a scientific book or article with a «motto», that is, a brief aphorism or short humorous stanza at the beginning, usually separated by its layout from the body of the text. In a book, this can also be in front of each chapter.  But is it generally considered appropriate for scientific texts or rather not advisable? In particular, does it come across as pretentious (aphorism) or frivolous (humor)? Clearly, I am unsure how to evaluate it.

I am wondering if there is a general consensus as to the suitability of epigraphs in a thesis, either a single one at the start of the document, or an appropriate quote to begin every chapter.  For example, at the start of a technical chapter describing some code, I could write     Beware of bugs in the above code; I have only proved it correct, not tried it. - Donald E. Knuth   I am lucky to have complete freedom over how I choose to typeset my thesis (Master's thesis in astronomy) and I like the idea of a thematic quote to begin a chapter. However, I am wary of seeming unprofessional or tacky so I am curious to get some more thoughts on the matter.


So, I'm an American.  I'm right-handed and I drive on the right side of the road :)    My clutch is the pedal furthest to the left, followed (from left to right) by the brake and the gas.  I use my right hand to change gears, and my right foot to control the brake and the gas. People differ in regards to whether one should use the left or the right foot to control the clutch brake.  If I rent a car in the UK, obviously I'm going to be driving on the left hand side, but is the arrangement of the pedals and clutch different?  It would seem to be awkward to use my non-dominant (i.e. my left) hand to shift gears and to use my left foot to control the brake and gas.    But, is this the case when I drive in the UK?  The spatial relationship is eluding me right now.

I have driven all my trucks on the right side of the road in the US. I will be traveling to a countries where cars are driven on the left side of the road.   Other than getting driving lessons, what would be an inexpensive way to comfortably acquire this skill?


to my  included the following information from Sage Advice:           Any damage dice delivered by a critical hit—as opposed to a saving   throw—are rolled twice.   This has reminded me of another situation that happened recently; if an Imp were to attack with it's stinger with an attack roll of 20, it clearly doubles the piercing damage die, but what about the poison damage die (assuming the target fails their save against it)?   I previously assumed to double the poison damage die too, but this quote might imply that it isn't, if I'm reading the "as opposed to a saving throw" bit right.   Is that right? The poison damage die shouldn't be doubled in this case? Or is the part about the saving throw just describing spells like acid splash or fireball, where no attack roll exists so there cannot be a critical hit?    To clear that up a bit, does the part reading "as opposed to a saving throw" mean:  1) The poison damage from the Imp would be unaffected because there's a saving throw to determine the amount of damage;  2) The poison damage from the Imp would be affected because this part of the quote is just describing attacks without attack rolls;  Which is the correct interpretation?

I'm a bit confused on how extra damage works for critical hits. Let's take the following example: A thief with sneak attack rolls a crit. I'm under the impression he rolls double his normal attack damage dice AND double his Sneak Attack damage dice. Is this accurate? Another example, I finished DM-ing my first campaign recently. The Giant Spider enemy monster has an melee attack that causes a constitution saving throw. If the player fails, the enemy rolls an additional 2D8 of damage. In this situation, if there was a critical hit, and the player failed their saving throw, would I also roll double dice on the additional damage? Or is that considered a separate attack?


I have tried to find a duplicate of the question but not able to. so please excuse me if there is a duplicate of this.  This is my suggestion that we should reduce reputation cap require to review "Close Votes" from 3k to 2k.  This is primarily because there are 97k close votes are there which is quiet a huge number(and situation will get worst).  If we reduce reputation cap require to review "Close Votes"  then it might be possible more user will be able to review it and which will eventually reduce the number of "Close Votes".

Today, the size of the close-votes queue is 55k questions and growing. Is that a problem?   Which action could be taken to clean it up? It seems to be growing faster than Stack Overflow members are capable to handle it.


I'm encountering a problem when I am trying to fill in this textbox. It just doesn't works.  This is the code of the textbox:

   And this is what I have tried:  document.getElementsByClassName("input-field")[0].value = 'lmao';

I need to set the text within a DIV element dynamically. What is the best, browser safe approach? I have prototypejs and scriptaculous available.

TEXT GOES HERE

   Here's what the function will look like:  function showPanel(fieldName) {   var fieldNameElement = document.getElementById('field_name');   //Make replacement here }