Bart the Bard is fighting against three .  Bart casts  to protect himself from their attacks, which all three fail.  Bart then sends a lightning bolt through all three. Unfortunately, Black Puddings have the Split feature:     Split. When a pudding that is Medium or larger is subjected to lightning or slashing damage, it splits into two new puddings if it has at least 10 hit points. Each new pudding has hit points equal to half the original pudding's, rounded down. New puddings are one size smaller than the original pudding.   They split into 6 medium-sized Black Puddings.  Which (if any) of those 6 Black Puddings are affected by Bane?

I don't really see an area in the MM, PHB, or DMG that specifies what happens to effects that are active on a creature that then splits.  A case came up where my party was being attacked by an Ochre Jelly, our Hunter cast Hunter's Mark on it. I can't find anything specifying that Hunter's Mark isn't allowed on more than one creature, and I can't find anything stating that the Split reaction changes effects on a monster.   Is there a RAW solution to this issue, or a common way to handle this that is obvious?


Does the following series converge?  $$\sum \sin(100n) = \sin(100) + \sin(200) + \dots$$

I need to prove that $$\sum_{n=1}^{\infty} {\sin{100n}} \; \text{diverges}$$ I think the best way to do it is to show that $\lim_{n\to \infty}{\sin{100n}}\not=0$. But how do I prove it?


find $a$, if $$f(x)= \frac{x^2-ax+2}{x-2}$$ has no vertical asymptotes

How to find a if the function below doesn't have a vertical asymptotes.  $f(x)= \frac{x^2-ax+2}{x-2}$


I deleted /dev/sda3, and now my system won't boot. I tried to use boot repair; but, it shows me an error message that says   GPT detected. Please create a BIOS-Boot partition   I created one but it doesn't work.    The image above shows the /dev/sda3 partition before it was deleted  This is what it shows now (@Pilot6)

I installed Windows 7, which ate Ubuntu's boot file. When starting up the computer, it now goes straight to Windows, without giving me the option of booting Ubuntu.   How can I get Ubuntu back?


Is there any way to solve it without finding inverse of the function because finding I can't find inverse?

Let $y=g(x)$ be the inverse of a bijective mapping $f:R\to R f(x)=3x^3+2x.$Then what is the area bounded by the graph of $g(x),x-$ axis and the ordinate at $x=5$  I could not find the $f^{-1}$ from the equation for $f(x)$ and cannot solve the question.How should i attempt this question?


If the hyperbola $x^2+3xy+2y^2+2x+3y+2=0$ and $x^2+3xy+2y^2+2x+3y+c=0$ are conjugate of each other . Then $c$ equals  solution i try   Asymptotes of 1 st hyperbola is $x^2+3xy+2y^2+2x+3y+k=0$  and it represent $2$ pair of lines so its discriminant is zero .so i am getting $k=1$ How to solve it from that point

Assume we are given a general proper hyperbola $  a_{11}x^2 + 2 a_{12} x y + a_{22} y^2 + 2 a_{13}x +2 a_{23}y + a_{33} = 0$ with  $D =\det \begin{pmatrix}   a_{11} & a_{12} \\   a_{12} & a_{22} \end{pmatrix} < 0$ and $ A = \det \begin{pmatrix}   a_{11} & a_{12} & a_{13} \\   a_{12} & a_{22} & a_{23} \\   a_{13} & a_{23} & a_{33} \end{pmatrix} \neq 0$.  Is there an easy way to find the implicit description of the conjugate hyperbola?  I could translate and rotate the hyperbola and obtain a canonical representation of the form $\frac{x^2}{a^2} - \frac{y^2}{b^2} = \pm 1$, find the conjugate of the canonical one and the transform back. However, I'm looking for a more straightforward way to achieve this.


I just took a look at meta today and noticed something weird in the meta privileges. If you look at the meta privilege list, you can see that at . I know that there is no meta for meta, and the link they give you in the privilege page leads you to meta.stackexchange.com, right where you started. Why do they have this privilege? I have a feeling that this is a bad recursive joke. You must be  member of meta to get the privilege of being a member of meta! :)

What I am asking here is to please remove the privilege to participate in Meta for MSE.  This privilege is literally useless. You can't really have a meta site for a meta site. There's no Meta.Meta.SE here or any other SE site out there: Meta.SE covers for every site in SE, including itself.     When users find out that you don't really get anything new, it's kinda sad for those people. There is no use for it except just to be there and fill up the space between the first and third privilege. Privileges should be shown only if you earn something new, and this privilege to participate in the meta isn't new because it's where you report problems in all of SE, including Meta.SE.    So please remove the privilege to participate in meta just for Meta.SE.    This is not a dupe as this is a feature-request to remove it, not support on why it is there.


I'm working with TeXworks, and on my Windows machine I had a typesetting called something like "pdflatex+makeindex+bibtex". However, now that I'm working on my Mac that option is not available, so now when I build my tex-file the bibliography isn't working.  How can I fix this?  Thanks!

A lot of people write makefiles that say something like  paper.pdf: paper.tex         pdflatex paper         bibtex paper         pdflatex paper         pdflatex paper   To handle re-running TeX to get new/changed references and so forth. Is there a better way to do this?


I have reviewed a scientific paper and suggested a major revision. They corrected it but still, I think the language quality is not standard. In this case, can I ask the authors to hire a professional writer? Is it ok if I ask them now because this is the 2nd review? Or I just ask the editor if he can suggest the authors hire a professional writer?

I am reviewing a paper for possible publication in a respected journal. The English in the paper is very poor. The authors are clearly not native English speakers. I want to write something to the effect of the following in my review.   I advise the authors to find a native English speaker to proofread the manuscript.    My question: Is this appropriate in a review?  On one hand, I think it is good, constructive advice. The paper would be significantly clearer if someone spent a few hours helping them fix it up. I can try to help them through reviewer comments, but it would be much easier if someone could help them in person. The authors are located in a western English-speaking country, so they should be able to find someone.  On the other hand, I don't want to be "the mean reviewer." I understand that English can be difficult to master for immigrants. Perhaps there is a more diplomatic way of saying this.


$|(\sin{\frac{1}{n}})(\sinh{\frac{1}{n}})(\cos n)|\le|(\sin(\frac{1}{n}))(\sinh{\frac{1}{n}})|$  Since  $\lim_{x\rightarrow 0} \frac{\sin(x)}{x}=\lim_{x\rightarrow 0} \frac{\sinh(x)}{x}=1$  Thus $$\lim_{n\rightarrow \infty}\frac{\frac{|\sin(\frac{1}{n})\sinh(\frac{1}{n})|}{1}}{\frac{1}{n^2}}=1$$  We know that $\frac{1}{n^2}$ converges so $|\sin(\frac{1}{n})\sinh(\frac{1}{n})|$ converges. Then $$\sum_{n=0}^\infty (\sin{\frac{1}{n}})(\sinh{\frac{1}{n}})(\cos n)$$ converges absolutely. So it converges.  Is my solution correct?

$$\sum_{n=1}^\infty (\sin{\frac{1}{n}})(\sinh{\frac{1}{n}})(\cos n)$$  I tried this  $(\sin{\frac{1}{n}})(\sinh{\frac{1}{n}})(\cos n)\le \sinh{\frac{1}{n}}$ and then i want to prove that $\sinh{\frac{1}{n}}$ converges. I am kind of stuck at this point.


We know that Avada Kedavra is "unblockable"  Why doesn't everyone use Avada Kedavra then, Molly Weasley vs. Bellatrix for example?   Why didn't they both just cast Avada Kedavra to finish the duel instantly?

When the Death Eaters attacked Hogwarts, why did the Death Eaters not just use Avada Kedavra and kill everyone?


I opened Blender today and all of my objects on all of my files are this kind of invisible where I can still see the outline. When I make new files the issue persists and when I go into edit mode I can still see the vertices. I know the objects aren't hidden and I can't find anything about it anywhere.

I don't know why but now, when i go in material preview or rendered (in solid mode it works fine), my object is entirely gray, or invisible idk, because it has the same color of the background. I've been working for days on this project without having this issue, it suddenly showed up. I tried opening other old projects and suddenly they all do the same so i guess it is some blender program setting that applies for all the projects, but idk how it happened cuz i didn't change anything :/, anyone got any tips?


has horizontal and vertical lines flickering and then screen starts rolling nothing is displayed tried cmd opt rp still not working help!

My 15 inch MacBook Pro recently has horizontal stripes on the screen. It looks like this:  It happens randomly and sometimes it gets worse (flickering with horizontal lines,stripes)  Does anyone know what might cause this and how to fix it?  No such issue during the past year...it has just started happening since yesterday.


I have been assigned to get the data in required format from two tables. TableStaff : STaffID | Staff Name -------------------- 1      | John  2      | Jack  and TableLead LeadID | LeadValue | LeadStaus | StaffID ----------------------------------------   1    | 5000      | New       | 1   2    | 8000      | Qualified | 1   3    | 3000      | New       | 2  As you will notice StaffID is the foreign key to  TableStaff. I have to represent the data in following format StaffID | StaffName | NewLeadCount | QualifiedLeadCount  ------------------------------------------------------- 1       | John      |  1           |   1 2       | Jack      |  1           |   0  What I have tried: SELECT      count([LeadID ]) as LdCount ,      'New' as StageName   FROM      [dbo].[TableLead]  where      [LeadStaus] = 'New'  UNION  SELECT      count([LeadID ]) as LdCount ,      'Qualified' as StageName  FROM      [dbo].[TableLead]  where      [LeadStaus] = 'Qualified '   Any NULL spots should be replaced by 0. Can anyone show me the right direction to approach the problem? Without using pivot (because of its restrictive nature).

Table #01 Status:  StatusID    Status -----------------------  1          Opened  2          Closed  3          ReOpened  4          Pending   Table #02 Claims:  ClaimID     CompanyName StatusID -------------------------------------- 1               ABC     1 2               ABC     1 3               ABC     2 4               ABC     4 5               XYZ     1 6               XYZ     1   Expected Result:  CompanyName TotalOpenClaims TotalClosedClaims TotalReOpenedClaims TotalPendingClaims -------------------------------------------------------------------------------- ABC                 2           1                      0               1 XYZ                 2           0                      0               0   How do I need to write the query so that I could get the result as expected?


Is there a site where I can ask for recommendations for applications to meet a business need (such as scheduling, or web-based file shares, or just about anything else)?  I thought about webapps, but it doesn't have to be a web app; I thought about Super User, but that seems more for personal computer enthusiasts, not using IT to meet business needs; I thought about Server Fault, but that seems more for system and network administration in particular rather than IT in general.

I have a list of requirements for a program, but I don't know what program meets these criteria. That's about general-purpose software, for example, not a programming IDE or statistical workbench, questions about which would certainly go to respective sites.  Is this question appropriate on Stack Overflow? Where should I ask about it? On Super User or elsewhere?


I want to write a F# or C# function that removes Spanish accents from a string like so:   in: "a stríng withóut áccents" ->   out: "a string without accents"   I know how to achieve this in Python 3:   trans_table =  str.maketrans( "áéíóúñÁÉÍÓÚÑàèìòùäëïöü", "aeiounAEIOUNaeiouaeiuo" ) # trans_table now contains a dictionary: { "á" : "a", "é" : "e", ... } "A stríng withóut áccents".translate( trans_table ) # result is: A string without accents    Mimicking this solution would be rather straight forward if the characters to be translated where regular ascii characters (in the 0-127 range).  However, because of the way .NET encodes strings it doesn't seem straight forward to do it for actual unicode characters out of this range...  I would like a solution that does not imply doing a regex-replace for each one of the many accented characters but that hopefully loops over the string only once...  Any ideas?

I'm trying to convert some strings that are in French Canadian and basically, I'd like to be able to take out the French accent marks in the letters while keeping the letter. (E.g. convert é to e, so crème brûlée would become creme brulee)  What is the best method for achieving this?


I've noticed that in the registry some placeholders are used to replace text strings when calling OS sub-systems...  %1 is easy to understand...  My question is what %L means ? Are there more placeholders ? and what their meaning ? Why %* doesn't work in registry ?

When extending the Windows' shell context menu (e.g. for adding an 'Open command here' prompt on directories), a 'command' key needs to be created in the registry.  The value of this 'command' key apparently can be any valid command line.  I want to know which 'special variables' are available for use inside this command line.  For example, I use following command for opening a cmd window from within a directory's context menu (*):  cmd.exe /e:on /f:on /s /k pushd "%V"   I cannot find any reference to what %V actually means or what the full list of such variables is.    (*)    Following registry keys are created for this:  [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\cmdshell] @=Open Command Prompt Here"  HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\cmdshell\command] @="cmd.exe /e:on /f:on /s /k pushd \"%V\""


Ubuntu 16.04  I tried this:  for file in $source/*.zip do         echo $file done   and it works if the directory contains zip files. It prints out all them. But if it does not, it just print the $source/*.zip. I mean if source=/home/usrname/dir which does not contain any zips then it prints  /home/usrname/dir/*.zip   Is there a way to make it print nothing in that case?

I thought this would be simple - but it is proving more complex than I expected.  I want to iterate through all the files of a particular type in a directory, so I write this:  #!/bin/bash  for fname in *.zip ; do    echo current file is ${fname} done   This works as long as there is at least one matching file in the directory. However if there are no matching files, I get this:  current file is *.zip   I then tried:  #!/bin/bash  FILES=`ls *.zip` for fname in "${FILES}" ; do     echo current file is ${fname} done   While the body of the loop does not execute when there are no files, I get an error from ls:  ls: *.zip: No such file or directory   How do I write a loop which cleanly handles no matching files?


There is a static method with which I get a property attribute of a specific type: public static class TypeUtils {     public static TAttr GetAttribute<TAttr, TEntity>(             Expression<Func<TEntity, object>> argumentFunc)         where TAttr : Attribute     {         string propertyName = GetMemberInfo(argumentFunc).Member.Name;          return typeof(TEntity)             .GetProperty(propertyName,                 BindingFlags.Public | BindingFlags.Instance)             ?.GetCustomAttributes(typeof(TAttr), false)             .Cast<TAttr>().FirstOrDefault();     }      private static MemberExpression GetMemberInfo(Expression method)     {         if (method is not LambdaExpression lambda)         {             throw new ArgumentNullException(nameof(method));         }          MemberExpression memberExpr = null;          if (lambda.Body.NodeType == ExpressionType.Convert)         {             memberExpr = ((UnaryExpression)lambda.Body)                          .Operand as MemberExpression;         }         else if (lambda.Body.NodeType == ExpressionType.MemberAccess)         {             memberExpr = lambda.Body as MemberExpression;         }          return memberExpr                ?? throw new ArgumentException(null, nameof(method));     } }  // method is used like this var attr = TypeUtils.GetAttribute<DisplayNameAttribute, Person>(p => p.Id);  Is it possible to change this method to a type extension method? I would to use it like this: var attr = typeof(Person).GetAttribute<DisplayNameAttribute>(p => p.Id);   UPDATE Most likely, I poorly formulated my question. I know what extension methods are and how they are created. The question here is how to create an extension method for a type based on an existing method, but not pass it the Person type as a second generic type. At the moment, everything that I was able to implement on my own is shown in the listing below. As you can see, we are essentially repeating ourselves, since when implementing an extension, the type is implicitly passed as a parameter to the method, but we explicitly specify it again. In this case, I do not see the advantages of this approach and it is better to use the existing solution then. How to implement an extension so that you don't need to pass a type to it? public static TAttr GetAttribute<TAttr, TEntity>(this Type type, Expression<Func<TEntity, object>> argumentFunc)     where TAttr : Attribute {     MemberExpression memberExpression = getMemberInfo(argumentFunc);     string propertyName = memberExpression.Member.Name;      return type         .GetProperty(propertyName, BindingFlags.Public | BindingFlags.Instance)         ?.GetCustomAttributes(typeof(T), false)         .Cast<T>().ToList(); }  // then can i use this extensions like so typeof(Person).GetAttribute<DisplayNameAttribute, Person>(p => p.Id);

What are extension methods in .NET?    EDIT: I have posted a follow up question at


In Ubuntu version 12.10 in the file manager there were drop down folders What happened to them? Were they removed? if so how may I recreate them?  I just installed UbuntuStudio 14.041 on a Compaq (32bit installation)  UbuntuStudio uses Thunar and XCFE. THere must be a way to add this into THunar. It such a basic feature that has been part of Mac and Windows for over a decade. How can i add/correct this in Thunar.  Ubuntu claims Thunar is light and faster than Nautilus. I tried adding Nautilus, it made such a mess. I had to completely re-install UbuntuStudio 14.04. Right now, I am keeping all my data in an external HD (using Backup)

How to achieve List/Tree view in Nautilus like the following screenshot?    Cant find information about this. ps Im using Ubuntu Remix with pure Gnome 3, and last version of Nautilus.


I want to know whether this can be achieved using terminal. I have tried nmap, nslookup and netstat, and failed.

I want to get the hostname of a remote server using the IP address using my Ubuntu.  In Windows we can get using NBTSTAT but this doesn't work in Linux.  Does anyone know how to do that?


When we use "return 4,5" in c++ it does not give error but instead returns 5 (at least 4 would be understandable as it should return the first number it encounters) . Why does this happen and can we use this to return 2 values in any way?  Here is the code that i tried  #include<iostream> using namespace std; int something() {     return 4,5; } int main() {     int a=0,b=0;     a,b = something();     cout<<a<<b<<endl; }   also in the above code for some reason 5 is assigned to b instead of a

How does the comma operator work in C++?  For instance, if I do:  a = b, c;     Does a end up equaling b or c?   (Yes, I know this is easy to test - just documenting on here for someone to find the answer quickly.)  Update:  This question has exposed a nuance when using the comma operator.  Just to document this:  a = b, c;    // a is set to the value of b!  a = (b, c);  // a is set to the value of c!   This question was actually inspired by a typo in code.  What was intended to be  a = b; c = d;   Turned into  a = b,    //  <-  Note comma typo! c = d;


I want to make an interface so that I can control my python methods I have already made. So I am trying to make a pop-up of an operation I made (see code below). But I get an error in the last line where I test to call it: RuntimeError:  Operator 'MESH_OT_generate_mold' does not have register enabled, incorrect invoke function  import bpy  class GENERATEMOLD_OT_template(bpy.types.Operator):     """Generate Mold"""     bl_idname = "mesh.generate_mold"     bl_label = "Generate Mold"      z_height: bpy.props.FloatProperty(name = "Z height: ")      #@classmethod     #def poll(cls, context):     #    return context.active_object is not None      def execute(self, context):                  self.z_height = 3         bpy.ops.mesh.primitive_cylinder_add(vertices = 32, radius = 1, depth = self.z_height)                          return {'FINISHED'}      def invoke(self, context, event):         return context.window_manager.invoke_props_popup(self, event)   def register():     bpy.utils.register_class(GENERATEMOLD_OT_template)   def unregister():     bpy.utils.unregister_class(GENERATEMOLD_OT_template)   if __name__ == "__main__":     register()      # test call     bpy.ops.mesh.generate_mold('INVOKE_DEFAULT')  The name "MESH_OT_generate_mold" is not something I called it. Any ideas what's wrong?

I'm trying to get invoke_props_popup to work. But my code produces this error:   Error: Operator 'OBJECT_OT_keyframe_changer' does not have register enabled, incorrect invoke function  Traceback <most recet call last):     File "(Script-path)", line 63, in <module> ...  RuntimeError: Error: Operator 'OBJECT_OT_keyframe_changer' does not have register enabled, incorrect invoke function   Line 63 is bpy.ops.object.keyframe_changer('INVOKE_DEFAULT')  I haven't been able to find any documentation to help me with this. Why does it not run? Why does it give me an error?    This is the code I have so far:  class KeyframeChangerOperator(bpy.types.Operator):     """Let's you change keyframe position"""     bl_idname = "object.keyframe_changer"     bl_label = "Keyframe changer"     my_float = bpy.props.FloatProperty(name="Keyframe position")       def execute(self, context):         set_keyframe_position(self.my_float)         return {'FINISHED'}      def invoke(self, context, event):         wm = context.window_manager         return wm.invoke_props_popup(self, event)  def register():     bpy.utils.register_class(KeyframeChangerOperator)  def unregister():     bpy.utils.unregister_class(KeyframeChangerOperator)   if __name__ == "__main__":     register()      # test call     bpy.ops.object.keyframe_changer('INVOKE_DEFAULT')


In Star Wars, this design is the symbol of the Rebellion:  In Rebels, Sabine Wren has a signature Rebellion design she leaves graffitied.  It looks like a phoenix, as a tribute to her Phoenix Squadron.  Is this design the origin of the Rebellion symbol?  Or does it come from another source entirely?

This insignia is pretty common and recognizeable, but I'm not sure I have any idea what it represents. It looks sort of like the shape of a ship, but the Rebellion doesn't have any ships of this shape that I can recall.    So, what is it?


Can you please tell me when $P=\vec{F}\cdot\vec{v}$ is valid?  Let us consider $\vec{F}$ as to be a function of time $t$. We know that $P=\frac{dW}{dt}$, where $W$ stands for the work done.  $$P=\frac{d(F.x)}{dt}$$ and on should use the product rule for differentiation.  Is $P=\vec{F}\cdot\vec{v}$ not valid if the force is variable (i.e. a function of displacement or time)?

Mechanical power is normally defined as $P = \mathrm{d}W/\mathrm{d}t$, and work is normally defined as $W = \vec F \cdot \vec x$. Today an undergrad pointed out a confusion he had  from Griffiths' E&M book where he has the line $$P = \frac{\mathrm{d}W}{\mathrm{d}t} = \vec F \cdot \vec v$$ Which is a definition of power I had seen before. But the student was confused because it seems like, if you have a time dependent force $\vec F(t)$, the math should work out like: $$P = \frac{\mathrm{d}W}{\mathrm{d}t} = \frac{\mathrm{d}\vec F(t)}{\mathrm{d}t} \cdot \vec x +  \vec F \cdot \frac{\mathrm{d}\vec x(t)}{\mathrm{d}t}$$ (From the product rule.) However, I've never seen the above formula, so I'm guessing it's wrong. Also, it clashes with the $\vec F \cdot \vec v$ version that I'm pretty sure works completely fine with a time dependent force. I gave him a pretty weak answer and warned him that it's probably not correct: I told him that if you start with the differential form of work, $dW = \vec F \cdot d \vec x$, it seems to assume that the force stays the same in that tiny $d\vec x$, so it's constant there, and then dividing both by $dt$ gives you the equation we're looking for.  seems to say something similar, basically using the step of $d\vec x = \vec v \ dt$ to get $\vec F \cdot \vec v$, which also assumes that $\vec v$ is constant over $d \vec x$. So, assuming one of those are correct, I see how they get $\vec F \cdot \vec v$. But what's the flaw in the product rule thing?


Say I have a matrix $A$ of $r=rank(A)=1$  I know that in the characteristic polynomial the algebraic multiplicity of $(\lambda-0)$ is $n-r$ which in my case is $n-1$  Is there a rule about the algebraic multiplicity in the minimal polynomial in this case or in the general case?

I have come across a question about determining possible minimal polynomials for a rank one linear operator and I am wondering if I am using the correct proof method.  I think that the facts needed to solve this problem come from the section on Nilpotent operators from Hoffman and Kunze's "Linear Algebra".     Question: Let $V$ be a vector space of dimension $n$ over the field $F$ and consider a linear operator $T$ on $V$ such that $\mathrm{rank}(T) = 1$.  List all possible minimal polynomials for $T$.   Sketch of Proof:   If $T$ is nilpotent then the minimal polynomial of $T$ is $x^k$ for some $k\leq n$.  So suppose $T$ is not nilpotent, then we can argue that $T$ is diagonalizable based on the fact that $T$ must have one nonzero eigenvalue otherwise it would be nilpotent (I am leaving details of the proof of diagonalization but it is the observation that the characteristic space of the nonzero eigenvalue is the range of T and has dimension $1$).  Thus the minimal polynomial of $T$ is just a linear term $x-c$.    Did I make a mistake assuming that $T$ can have only one nonzero eigenvalue?  Thanks for your help


I've posted my first attempt at a linked list code below. The objective is to get a linked list of 10 integers and to traverse the list to double the odd numbers and half the even ones. As I'm new to linked lists I'm just currently working on the first part: Generating the list.  From the examples I've seen it looks ok to me. It compiles fine but when I go to run it I get the following error message: "Exception thrown: read access violation. B was 0xCDCDCDCD." This is on the line that says "C=B->next".   Does anyone know what this means and/or why it is occurring? Any input would be appreciated :)  #include<stdio.h> #include<stdlib.h> #include<time.h>  struct node {     int data;     struct node* next; };  void freeList(struct node* head);  int main(void) {     srand(time(NULL));       struct node * A = NULL;     A = malloc(sizeof(struct node));     struct node* B = malloc(sizeof(struct node));     struct node* C = malloc(sizeof(struct node));     struct node* D = malloc(sizeof(struct node));     struct node* E = malloc(sizeof(struct node));     struct node* F = malloc(sizeof(struct node));     struct node* G = malloc(sizeof(struct node));     struct node* H = malloc(sizeof(struct node));     struct node* I = malloc(sizeof(struct node));     struct node* J = malloc(sizeof(struct node));      A->data = (rand() % 10) + 1;     B->data = (rand() % 10) + 1;     C->data = (rand() % 10) + 1;     D->data = (rand() % 10) + 1;     E->data = (rand() % 10) + 1;     F->data = (rand() % 10) + 1;     G->data = (rand() % 10) + 1;     H->data = (rand() % 10) + 1;     I->data = (rand() % 10) + 1;     J->data = (rand() % 10) + 1;      B = A->next;     C = B->next;     D = C->next;     E = D->next;     F = E->next;     G = F->next;     H = G->next;     I = H->next;     J = I->next;     J->next = NULL;      struct node* current = A;     while (current != NULL)     {         printf("%d-->", current->data);         current = current->next;     }      freeList(A);      return 0;  }  void freeList(struct node* A) {      struct node* temp;      while (A != NULL)     {         temp = A;         A = A->next;         free(temp);     }  }

I know that the compiler will sometimes initialize memory with certain patterns such as 0xCD and 0xDD.  What I want to know is when and why this happens.  When  Is this specific to the compiler used?  Do malloc/new and free/delete work in the same way with regard to this?  Is it platform specific?  Will it occur on other operating systems, such as Linux or VxWorks?  Why  My understanding is this only occurs in Win32 debug configuration, and it is used to detect memory overruns and to help the compiler catch exceptions.  Can you give any practical examples as to how this initialization is useful?  I remember reading something (maybe in Code Complete 2) saying that it is good to initialize memory to a known pattern when allocating it, and certain patterns will trigger interrupts in Win32 which will result in exceptions showing in the debugger.  How portable is this?


I am having trouble getting subdirectories to update to commit so I can push them.  My main directory is projects and this is where I created my init to manage a few small projects into one git repo.  I created a directory and a virtualenv and put it into git.  so currently I have  -Project         ->flask-blog/                     fb/                       /bin                       /include                       /lib   I then added blog.py and a static and templates directories into my folder.  -Project         ->flask-blog/                     fb/                        /bin                        /include                        /lib                     static/                     templates/                     blog.py     I then added them to git from the project folder.  git add .   But that didn't work, well it added blog.py but not the new directories. So I tried.  git add -A   and  git add *   and   git add flask-blog/*   but none of these have worked how to I get git to notice my new directories?

How can I add an empty directory (that contains no files) to a Git repository?


I am new to Ajax and have a page that I am working on. I currently can use an ajax call to update my database. It works great. Also I am able to create a new listing.   I am trying to allow the user to update the page and stay on it as long as they are updating it.   If it is a new listing I want to create it in the database and redirect to a new page once it is saved.  Any help is greatly appreciated.  Here is what I am currently using. It works fine I just can't get it to go to a new page after the response from Ajax.  <script> function SaveTrip() {     var xhttp = new XMLHttpRequest();     xhttp.onreadystatechange = function() {         if (xhttp.readyState == 4 && xhttp.status == 200) {             document.getElementById("DEMO").value = xhttp.responseText;             var test = document.getElementById("DEMO").value;              if (test == "New Item Added!") {                 alert(test);                 window.open("http://www.pagename.com/program/Main.phpclienteditid=" + ClientID, "_self");             } else {                 alert("Existing Item Has Been Saved!");             }         }     };      xhttp.open("POST", "SaveItem.php", true);     xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");     var ST1 = document.getElementById("T1").value;     xhttp.send("T1=" + ST1); } </script>

How can I redirect the user from one page to another using jQuery or pure JavaScript?


In       it is claimed that silicon droplets bouncing on a vibrating surface show behaviour in analogy to particle/wave duality in Quantum Mechanics.   Is this true? Did they really reproduce the double slit experiment (the video doesn't show that)? And what happens to the silicon droplets on a single slit? What about Quantum tunneling? Which effects of Quantum Mechanic can be "emulated" with bouncing silicon droplets and which can't?

Bouncing droplets on a fluid surface show many weird behaviors of the quantum world. Look at this for example:    They can show tunneling, double-slit interference patterns, and even particle-antiparticle creation (when two solitary waves meet, according to the aforementioned reference). Some people take this as an approval of the pilot-wave interpretation.  What is the reason for this similarity of behavior between bouncing droplets and quantum particles? Is there any difference, where this analogy no longer works and droplets CANNOT mimic quantum particles? And, is this a hint that quantum behaviors might have a classical underlying reason, similar to what happens to the droplets?


I am looking for a query to list all users without a mapping to a database. I have over 500 users and I think that there are some SQL or Windows accounts that are not needed any longer.

In SQL Server 2005, is there a way to find users that either don't exist at the server level (an account that was deleted at server level but wasn't disassociated from databases before it was deleted) or accounts that aren't linked (an account may have been deleted at the server level but not db level, then readded but the db level was never cleaned up).  I've got a very messy server and it would be awesome if there was a query to run to find these.


I purchased "Reputation to the Max" and increased my reputation by 10x.    And like a good SE citizen, I immediately went to the review queues to do my part (for the day).  However, the review queues indicate that I don't have enough precious repz in order to perform any of the much needed reviews.    I believe this must be some sort of bug within purchasing the "Reputation to the Max" power and ought to be resolved.

I just bought "Reputation to the max". I bought this first, because I really want to help the cleanup of the vote-to-close queue, which, despite the efforts I've been hearing about, is still quite large. According to SO, my reputation is now 15,750, but that queue still says I need at least 3k rep to review! That is clearly a bug!


I'm writing a UTF-8-encoded English document that contains a substantial amount of text in Hungarian (and a few other languages).  When I try to load the Hungarian language patterns in babel using magyar (or its alias hungarian), I get the following compilation warning:  LaTeX Warning: Please use \usepackage[latin2]{inputenc} with                \usepackage[magyar]{babel}.   I prefer my documents to be encoded in UTF-8, since that's the default encoding on my system, and because it's convenient for me to directly enter symbols like ¶ and — that don't exist in ISO-8859-2.  Why is babel insisting that I use the obsolete ISO-8859-2 encoding?  Is something in particular likely to break if I don't use it?  (The babel manual is silent on the matter.)  FWIW, I have been ignoring the warning and so far everything seems to work fine.  MWE:  \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[hungarian,english]{babel} \begin{document} % Following line works fine in spite of the warning \foreignlanguage{hungarian}{Árvíztűrő tükörfúrógép} \end{document}

I'm using TeXLive 2014 on FreeBSD. Every LaTeX-files produce the following warning:   LaTeX Warning: Please use \usepackage[latin2]{inputenc} with            \usepackage[magyar]{babel}.   "Magyar" is the name of the hungarian in hungarian language :)  The relevant part of my documents:  \documentclass[a4paper]{article} \usepackage[magyar]{babel} \usepackage[utf8]{inputenc} \usepackage{t1enc} \begin{document} Árvíztűrő tükörfúrógép. \end{document}   Can I skip this warning or should do something to fix it? Or maybe it's a bug?  Before TeXLive 2014 this warning didn't appear.


I am unable to use Ubuntu 17.1. I have been using it for a long time now. Suddenly after booting one day, it froze and didn't respond anymore. The gui, the mouse, keyboard, nothing responds.  I am unable to do anything. I am not familiar with the structure of the operating system so any help would be appreciated. Thank you

All operating systems freeze sometimes, and Ubuntu is no exception. What should I do to regain control when...   just one program stops responding? nothing at all responds to mouse clicks or key presses? the mouse stops moving entirely? I have an    In what order should I try various solutions before deciding to pull the power plug?  What should I do when starting up Ubuntu fails?  Is there a diagnostic procedure I can follow?


I have been doing some research lately about numerical analysis textbooks, but I have not found anything successfully. I was wondering if there is like some sort of standard, for example, whenever someone mentions Calculus, I would think of Spivak or Stewart. I do not have any background nor experience on the subject, so readability counts, and I am a first year undergraduate student. Hopefully I made my point.

I'm in a numerical analysis course right now and it's pretty rigorous but I'm enjoying it a lot. I took a lower level course before that was more oriented towards implementation of numerical methods, so it's not my first time with the material.  Anyway, my professor wrote his own course notes and they're fantastic but I wanted some reference material since I'm currently outlining my own notes. Just wondering what the big ones out there are  edit: I would say I'm at an advanced undergraduate level


I am trying to edit the basic sequential numbers in a field script using Python in the Field Calculator.  I set the Parser to Python, and for my Pre-logic Script:  rec=0 name="manhole" def autoIncrement():   global rec   pStart = 1    pInterval = 1   if (rec == 0):     rec = pStart    else:     rec += pInterval    return name, rec   And for the box below:  autoIncrement()   Would this not be how to go about this?   Essentially I just want "manhole1" then "manhole2" then "manhole3", etc.

I am searching for a way to auto increment an ArcGIS field which begins with text and followed by numbers. Ex. SWCL0000. I have tried the auto increment code in the field calculator but once I added text and a starting number, I kept on getting errors.


One should not use SHA for MAC, because knowing SHA(key || message) and message you can construct SHA(key || message || forgery) without knowing the actual key. I read somewhere that one shouldn't use SHA(message || key) as MAC. Why? Here || means string concatenation.

Consider a common practically-collision-resistant hash function $\mathcal{H}$ (e.g. , , , ), perhaps based on the  as are the first three. We define a  $\mathcal{C}$ $$(k,m) \mapsto \mathcal{C}(k,m)=\mathcal{H}(m\mathbin\|k)$$ where $\mathbin\|$ denotes concatenation, $k$ is a secret key (constant, or at least of fixed size), and $m$ is a message (possibly of variable length). Assume that an adversary can (iteratively) submit queries with $m_j$ and obtain $C(k,m_j)$, and wants to obtain $k$ or otherwise compute $C(k,m)$ for some $m\ne m_j$.  That MAC $\mathcal{C}$ is not trivially bad. In particular, if $\mathcal{H}$ was indistinguishable from a random function in the , $\mathcal{C}$ would be secure. And even though $\mathcal{H}$ may have the , it does not turn into a devastating attack on $\mathcal{C}$.  The less impractical generic attack that I see is that if a collision was known for $\mathcal{H}$ with the colliding messages of moderate identical length, it could be deduced countless collisions for $\mathcal{C}$. Hence security is demonstrably not better than collision-resistance of $\mathcal{H}$ (for identical-length messages). We could assume that $k$ is half the size of the result of $\mathcal{H}$, and hope that the security is about  or  or , 280, 2128, 2256 hash rounds for SHA-1, RIPEMD-160, SHA-256, SHA-512.   What are the known attacks against $\mathcal{C}$ (better than the above), and their cost, for each of these common hashes?  Is there hope for an argument that an attack against $\mathcal{C}$ would turn into an attack of similar cost against $\mathcal{H}$, or hint of the contrary?  Update: this  is of interest, but I fail to find that it really answers the present question.  Update 2: I am aware that the construction considered is weaker than , and in particular is vulnerable to collision on $\mathcal H$; I stated that, and that it is thus pointless to have the key wider hopeless to target security against some attacks better than half the hash's size. I'm asking exactly what cryptanalytic attack better than finding a collision on $\mathcal H$ there are. There is room for such an attack only by exploiting a weakness in the structure or/and the round function of a concrete $\mathcal H$.


I have a calendar in an outlook server for work, and I'd like to sync that calendar to my Google account so that I can see my meetings on my phone.  I've found a few solutions for subscribing to my Google calendar in outlook, but I'm trying to do the opposite of that.  I really don't care about being able to manage the calendar at all.  I just want to be able to see my work schedule somewhere other than on my laptop.  Is there an app that makes this possible?

I use Microsoft Outlook 2013 for work and Google Calendar for everything else. I'd like to find an easy way to sync my work calendar to my personal calendar. Ideally, this would be a software application that sits in the background and automates the syncing.  Requirements   Syncing should be one-way only: Outlook to Google. Must support repeating calendar items. Must allow me to specify which calendar in Google to sync to. I will set up a separate calendar for work items. No intermediate server. Export is direct.   Nice to Haves   Automated. Syncs in real time or regularly (say, every fifteen minutes or so).


Let $\phi:\mathcal{F}\to\mathcal{G}$ be a morphism of sheaves of $R$-modules over a topological space $X$.  I'm aware of the fact that $\phi$ is an epimorphism $\Leftrightarrow \phi_x$ is surjective forall $x\in X$.  I'm trying to prove/disprove the following:     $\phi$ is an epimorphism $\Leftrightarrow $ every $x\in X$ has an open neighbourhood $U\subset X$ such that $\phi_U:\mathcal{F}(U)\to\mathcal{G}(U)$ is surjective.   The converse $(\Leftarrow)$ is easy, since if $\phi_U$ is surjective, clearly $\phi_x$ is surjective and by arbitrariness of $x$, $\phi$ is an epimorphism.  For $(\Rightarrow)$, I don't know if it's possible to find such $U$.  Any suggestions? Is this just false?

Let $\mathcal F$ and $\mathcal G$ be sheaves of groups of some topological space $X$ and let $\varphi : \mathcal F \to \mathcal G$ be a surjective morphism. That means that for each $x \in X$ the induced group morphism $\varphi_x : \mathcal F_x \to \mathcal G_x$ is surjective.  Does this imply that for each $x\in X$ there exists an open $U \subseteq X$ with $x \in U$ such that $\varphi_U : \mathcal F(U) \to \mathcal G(U)$ is surjective?  I don't think so but would be glad to see an easy counter example.


I just purchased a cellular iPad mini but I cant seem to find out if charging an iPad mini while using the device affects battery life, and does charging overnight affect battery life?

Is it OK to use an iPhone 4 that is fully charged while keeping it plugged to wall outlet?   I am worried about stressing battery too much since it is charging and discharging at the same time.  Any issues here?


(1) They love to walk in the woods.   (Angela Downing, English Grammar: A University Course)        (2) They love walking in the woods.   She says (1) will be interpreted as potential, while a gerund means actual or habitual. But, in fact, they seem to be very similar. How do I understand the difference in meaning?

I would like to know what the difference is between "I love doing something" and "I love to do something".  For example:        “I love singing.”      and,        “I love to sing.”      When I was young, I was told that "love doing something" is right, but one day, I found Jessie J wrote "I love to sing" on her Instagram.


I have an order details lightning component page that makes an api call in the init action call to get all the order details (a giant 2k line json object). Once that page loads, there's an "Item Details" button that navigates to a new tab. I know I can pass simple query string parameters in the page reference (state property) that gets passed into the component.navigate() call (see ). But my question is: Is there a way I can send the entire json object from the Order Details page to the Item Details page?

I have a list lwc component on page 1.. and details component on page 2 Page 1 has "list component" user decides to filter the list to show only records created the month of May. users find a line item on that list then selects the button to view details.  We use navigation mixing to navigate the user to page 2 that has the details "details component". When user hits the back button to return to page 1 ("list component").  Problem is that the component is re initialized and the user has lost the filters they had selected. Is there a build in way in LWC/Communities to store page previous page component state? or do we have to use something like js sessionStorage?


Many python tutorials show a two line example of using re.   match=re.search('aa?yushi','ayushi') match.group()   Is it recommended style to combine the two?  re.search('aa?yushi','ayushi').group()   I tried but it failed.  re.match('\d','a1b2c3d').group() Traceback (most recent call last):   File "<stdin>", line 1, in <module>   What's the trick?

What is the difference between the search() and match() functions in the ?  I've read the  (), but I never seem to remember it.  I keep having to look it up and re-learn it.  I'm hoping that someone will answer it clearly with examples so that (perhaps) it will stick in my head.  Or at least I'll have a better place to return with my question and it will take less time to re-learn it.


I imagine this either extremely simple or extremely complex. I am trying to understand the interpretation of the term 'parameter'.  A couple of quick online searches deliver an intuitive understanding of parameter, i.e. where a statistical model is a joint probability distribution over the variables of interest, parametric models denote a subset of such models (in the form of a set of probability distributions), and parameters are therefore unique finite-dimensional points that index a particular distribution.  All fine. I can see why means, variances, covariances, correlations, and any other such moments are parameters.  What I can't see is why numerous other features, such as regression coefficients, etc. (i.e. the Betas we try to estimate with a linear model) are called parameters.  Is is simply because things like regression coefficients are functions of parameters in the first sense? And when we estimate beta coefficients, we are really trying to estimate the ratio between parameters, or are the beta coefficients parameters in themselves?  (I assume it must be the latter, the OLS estimator, for example, is just a function of the sample that estimates a number called Beta; coverage of the OLS seems to imply that the OLS ratio of cov to var just happens to be a great estimator of that number, rather than of the cov to var ratio in the population...)

I'm relatively familiar with the distinction between the terms statistic and parameter. I see a statistic as the value obtained from applying a function to the sample data. However, most examples of parameters relate to defining a parametric distribution. A common example is the mean and standard deviation to parameterise the normal distribution or the coefficients and error variance to parameterise a linear regression.  However, there are many other values of the population distribution that are less prototypical (e.g., minimum, maximum, r-square in multiple regression, the .25 quantile, median, the number of predictors with non-zero coefficients, skewness, the number of correlations in a correlation matrix greater than .3, etc.).   Thus, my questions are:   Should any quantitative property of a population be labelled a "parameter"? If yes, then why? If no, what characteristics should not be labelled a parameter? What should they be labelled? And why?   Elaboration on confusion  The Wikipedia article on estimators states:     An "estimator" or "point estimate" is a statistic (that is, a function   of the data) that is used to infer the value of an unknown parameter   in a statistical model.   But I can define the unknown value as .25 quantile and I can develop an estimator for that unknown. I.e., not all quantitative properties of a population are parameters in the same way that say the mean and sd are parameters of a normal distribution, yet it is legitimate to seek to estimate any quantitative population property.


When I add image to a post, wordpress makes this html format in theme.

   How can I change the above format to get possible html output like this, using hook or function:

   Edit: Tried image_send_to_editor filter on same and 2016 theme, but alteration or so found.

In regards to image attachments inserted into a post, I would like to wrap the img tag inside a div tag for specific design purpose.  Is there a way to do this automatically after attaching the image file, like through hooks/filters maybe?  Thanks in advanced!!


I am a Romanian travelling from Istanbul Turkey to Mauritius island. I have a layover of 8 hours in Jeddah (Saudi Arabia). Do I need a transit visa in Jeddah

I am travelling to Rome along with five other members (all in a family) from Bengaluru via Jeddah. My layover in Jeddah is 13.5 hours before i catch a connecting Flight to Rome. I won't be moving out of airport in Jeddah. Do I still need a Transit visa in Saudi Arabia.


I am aware of figuring out the number of non-negative integers which sum to a certain number.     I’ve seen mentions of partitions, “stars and bars”, etc.   In the context of a survey:  Let’s say we have 5 questions with likert scales which range from 1 to 6 for possible values.   Then let’s say I want to know all of the permutations to get the sum score of 20. Order matters because each question is getting at a specific/useful piece of information even when they are being added together into a sum/composite score.   I am wondering if there is already a generalized solution to this where you can easily change the number of questions, the range of values for each question, and the sum score of interest.   If there isn’t one, I am hoping to find out what would help lead me to find one/if one has to create a specific solution for each specific set of parameters (ie it doesn’t generalize well).  I also saw that this kind of problem can be considered related to the knapsack problem.

The problem of counting the solutions $(a_1,a_2,\ldots,a_n)$ with integer $a_i\geq0$ for $i\in\{1,2,\ldots,n\}$ such that $$a_1+a_2+a_3+....a_n=N$$ can be solved with a stars-and-bars argument. What is the solution if one adds the constraint that $a_i\leq r_i$ for certain integers $r_1,\ldots,r_n$?  e.g. for $n=3$, $N=6$ and $(r_1,r_2,r_3)=(3,3,2)$, the tuple $(a_1,a_2,a_3)=(2,3,1)$ is a solution, but $(2,1,3)$ is not a solution because $a_3=3>2=r_3$.


I have an application that requires the use of PDFs with fonts completely embedded. The source is a simple TeX file:  % !TEX encoding = UTF-8 Unicode % !TEX TS-program = XeLaTeX  \documentclass[border=3pt]{standalone}  \usepackage{fontspec}  \setmainfont{Warnock Pro}  \begin{document}  \centering  \hbox to 7in{%     \$[Jobname]%     \hfill     \$[Sig]%     \hfill     \$[SL]%     \hfill     \$[Color]%     \hfill     \$[OutputComment]%     \hfill     \$[Date]% }  \end{document}   The fonts in the resulting PDF are have been subsetted. Based on a question () which received no answer, I tried fiddling with dvipdfmx.cfg to no effect by using:  D  "rungs -q -dNOPAUSE -dBATCH -dEPSCrop -sPAPERSIZE=a0      -sDEVICE=pdfwrite -dCompatibilityLevel=%v      -dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode      -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode          -dSubsetFonts=true -dEmbedAllFonts=true -dMaxSubsetPct=100     -dAutoRotatePages=/None -sOutputFile='%o' '%i' -c quit"   I made sure that I was editing the correct file with:  kpsewhich -progname=dvipdfmx -format='other text files' dvipdfmx.cfg   Can this be done?

Is it possible to make XELatex embed a full rather than a partial font?  The reason I ask is that I am trying to induce a fillable form to use the body font (a question asked before by several participants without satisfactory answer - e.g. related questions  or ). Acrobat forms can apparently only use embedded fonts if they are fully embedded rather than partially embedded - see ). At the moment I can create a form that uses my body font in the fillable fields, but this only works if the font is installed on the users machine.   Once I get a positive response to the above I'll extend my question to the actual use of this font in form.  Below a rather trivial MWE (in this case using libertine) for anyone who wants  a starting point to experiment.  \documentclass{article} \usepackage{fontspec} \usepackage{libertine} \begin{document} The quick brown fox jumps over the dog 0123456789. \end{document}   The below provides an extended MWE using the eforms package (somewhat unrelated to the question of font embedding). Not specifying any font uses the default helvetica for the field (which looks horrible) as does the underlying hyperref field. Using TiRo as the font at least gives a reasonably decent looking serif font (albeit not libertine) which seems to work in Acrobat reader, PDF-XChange viewer and the inbuilt Windows 8 reader. Specifying LinLibertineO as the font gives libertine in the field (only if this is installed, and only in Acrobat Reader, but not PDF-XChange viewer and the inbuilt Windows 8 reader).  \documentclass{article} \usepackage{fontspec} \usepackage{libertine} \usepackage{eforms} \begin{document}  \everyTextField{ \BC{1 0 0} % border color \BG{.941 1 .941} % background color \textColor{0 0 1} % is black \textFont{TiRo} % LinLibertineO/TiRo (options see commentary) \textSize{10} \Ff{\FfDoNotScroll} }  Your name: \textField{myText}{1.5in}{12bp}  \end{document}


Where are iCloud documents stored in the file system?    Under Finder you can find the iCloud directory, however 'Get Info' gives absolutely no clue as to where these files are located in the file system.  So if your in a terminal / commnad-line prompt, its not clear where to find these files.    Its useful to know if your trying to create soft links to files under iCloud OR have scripts that need to access those files.  As opposed to just finding them under Finder.

If I save files to iCloud in apps in Mountain Lion that support such saving, where on my drive can I find these files if I want to run command line utilities on them, edit them in other programs, etc?


I am going to begin work on a game and was curious to know if I had 6 meshes (limbs) on one armature(think armors and equippables)? like each has an animation and own texture but the material shared by all of the other meshes(limbs). Thanks.

I saw a video where the person copied a material from one object to another (Cycles).  How can I accomplish this?


I'm sure there's a simple answer to this... I have a basic mesh setup:    and would like to 'lean' this entire mesh so that the bottom faces remain intact, but everything else pitches, like so:    I figure I could instead build this from a flat plane that's been angled, then do my extrusions, just wanted to see if there was any way to do this after the fact.     Thanks in advance!!

With the default cube how can i skew. In the coreldraw with the rectangle we can skew like this or any addon available.    Is it possible how can i do with the default cube. Any suggestion. Thanks


I currently have a 20A breaker with 12/3 wire leading to a double gang box which contains two 15A receptacles, that leads into another double gang box with two more 15A receptacles. I'd like to replace the very last receptacle on the circuit with a switch which will be wired to a lamp socket. The lamp socket will have a 60W equivalent LED bulb. I only have 14/3 wire on hand, which I know is not rated for use with a 20A breaker. Is my assumption that I should not pigtail the 14/3 into the existing 12/3 wiring correct? Or is it okay because it is the last leg of the circuit or because the light will draw like half an amp? If it is not safe to use the 14/3 wiring, how would it be different if I wired a plug on on the end of the 14/3 wiring and just plugged it into the existing receptacle? This last part is really what I am hung up on.

I'm rewiring a a small part of a wall and I'm confused about a combination of the NEC and the products that I'm able to find.  I'm working on a 20 amp circuit (with 12g wire of course).  I'm connecting 4 receptacles each in their own box, 15 amp receptacles for normalcy.  But the terminals don't seem to accept 12g wire, even on the screws.  My first reaction was to make pigtails 14g pigtails, so that the 14g tap goes directly to the receptacle and is not used to feed the rest of the circuit.  12g in the box, 12g out of the box, and 14g inside the box only.    Is that type of splice allowed, or should I look harder for a 15 amp outlet that can more easily accept 12g wire?


I want a JTextField to appear when user select "Extra" in JComboBox list and hidden otherwise. But the JTextField is not appearing when user is selecting "Extra" but it is appearing if i shrink the window and enlarge it again. After doing like that it is working properly, only for the first time it is not appearing. Why it is behaving like that? any solution for this?  Here is my code:  getCmbJtocsv_C_8().addActionListener(new ActionListener() {     public void actionPerformed(ActionEvent e) {    {        input3 = (String)adaptor.getCmbJtocsv_C_8().getSelectedItem();       adaptor.getTxtJtocsv_C_8().setVisible(false);        if(input3.equals("extra")){           adaptor.getTxtJtocsv_C_8().setVisible(true);       } }   i have changed the string comparison and i'm still getting the same result.

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?


As the title states, I'm wondering why:  If $A$ is a bounded subset of $\mathbb{R}$ and $f:A\to \mathbb{R}$ is uniformly continuous on $A$, then $f$ must be bounded on $A$.  Proof:  Since it is uniformly continuous, the function is a Lipschitz function.  $|f(x)-f(y)| \leq L|x-y|$.  Since $A$ is bounded, $|x-y|$ does not get arbitrarily big and that too is bounded by a constant. Let $|x-y| \leq M$.  Then we have a Lipschitz condition where   $|f(x)-f(y)| \leq LM$.  The function is then bounded by the product of two constants, $LM$, which means that it is bounded. Can someone check this?

I need to prove that if $f: (0,1) \rightarrow \mathbb{R}$ is Uniformly continuous then it is  bounded.   Thank you.


What is the characterization of real  matrices $X \in \mathbb{R}^{n\times n}$ such that for any real matrix $Y \in \mathbb{R}^{n\times n}$: $$\det(X^2 + Y^2) \geq 0?$$

Let $A$ and $B$ be real square matrices of the same size. Is it true that $$\det(A^2+B^2)\geq0\,?$$  If $AB=BA$ then the answer is positive: $$\det(A^2+B^2)=\det(A+iB)\det(A-iB)=\det(A+iB)\overline{\det(A+iB)}\geq0.$$


The other day I locked my bike to a fence and upon my return about an hour later, I found the lock jammed. I am unable to insert my key fully into the keyhole. My friend suspects that while locking the bike, I might have removed the key too hastily, resulting in the lock pins being misaligned.   The lock is a Giant brand U-lock. The key goes in about half way and is unable to turn. I tried forcing the key to turn which resulted in me snapping the key (luckily, I have a spare). Any help in the matter is much appreciated.

I have a kryptonite U lock and lately it's been sticking a lot while trying to turn the key. Usually I can eventually get the key turned. It was getting worse though and a few days ago I (unable to find any lube/wd-40 etc) cleaned it out with soap and water which seemed to help a great deal. I also started being very careful to make sure the little key-hole guard engaged. Last night when I was totally unable to get my bicycle unlocked and had to leave it there and walk home. The key would fit into the lock and turn half way and then stop. I'm going to go try and pick it up now, but I don't know the best way to try and make sure this doesn't keep happening. It's winter here and I wonder if that might have something to do with it.  Edit: I ended up at the hardware store and the guy there (who had built his own bike in his garage, conveniently) recommended jig-a-loo. This made the lock move really well but I still couldn't get it open. This is when I noticed that my key was twisted (From trying to force the lock probably). I flattened the key back in a clamp and was able eventually to unlock it, but I can't seem to lock it again, so I ordered new keys. I'll have to wait till they come to see if that solves anything or it's actually a problem with the lock...  Edit again: Some graphite and new keys seemed to do the trick!


Python programmer here.   I don't know how to write this. I tried using 'if !in' and '!if in', but I don't know how. Tried to Google it but got no results.

What is the best way to find if an object is in an array?  This is the best way I know:    function include(arr, obj) {   for (var i = 0; i < arr.length; i++) {     if (arr[i] == obj) return true;   } }  console.log(include([1, 2, 3, 4], 3)); // true console.log(include([1, 2, 3, 4], 6)); // undefined


I have a distance matrix that I want to cluster. What methods can I use to cluster the elements just based on the distance matrix (beside hierarchical clustering)?

I have a (symmetric) matrix M that represents the distance between each pair of nodes. For example,       A   B   C   D   E   F   G   H   I   J   K   L A   0  20  20  20  40  60  60  60 100 120 120 120 B  20   0  20  20  60  80  80  80 120 140 140 140 C  20  20   0  20  60  80  80  80 120 140 140 140 D  20  20  20   0  60  80  80  80 120 140 140 140 E  40  60  60  60   0  20  20  20  60  80  80  80 F  60  80  80  80  20   0  20  20  40  60  60  60 G  60  80  80  80  20  20   0  20  60  80  80  80 H  60  80  80  80  20  20  20   0  60  80  80  80 I 100 120 120 120  60  40  60  60   0  20  20  20 J 120 140 140 140  80  60  80  80  20   0  20  20 K 120 140 140 140  80  60  80  80  20  20   0  20 L 120 140 140 140  80  60  80  80  20  20  20   0   Is there any method to extract clusters from M (if needed, the number of clusters can be fixed), such that each cluster contains nodes with small distances between them. In the example, the clusters would be (A, B, C, D), (E, F, G, H) and (I, J, K, L).  I've already tried UPGMA and k-means but the resulting clusters are very bad.  The distances are the average steps a random walker would take to go from node A to node B (!= A) and go back to node A. It's guaranteed that M^1/2 is a metric. To run k-means, I don't use the centroid. I define the distance between node n cluster c as the average distance between n and all nodes in c.  Thanks a lot :)


I read about the hyperfine interactions which cause the altering of the energy levels of the nuclues of an atom. Under the discussion about the electric monopole and quadrupole interactions, the term of the electric dipole moment interaction was determined to be zero. It was only stated that the nucleus has no electric dipole moment without giving any explicit reason.  My question is, what are the assumptions leading to this result?  It seems like the only assumption that was taken into account was the nucleus being a positive charge distibution and it does not supposed to cause the electric dipole moment of the nucleus to be zero considering the expression of the electric dipole moment.  I would have assumed that some sort of symmetry of the nucleus charge distribution need to be considered as well.

Until yesterday I thought they have. Googling a little bit around the measured values, I've found nothing.  As I've heard on the , the nuclei don't have an EDM. Although it would be possible by the symmetry violations of the weak interaction, it doesn't happen.  But I am asking not for the EDM due to weak asymmetry. I am asking for the lack of the EDM due to the asymmetric charge distribution in them.  Nuclei have a lot of elementary particles, interacting in quite complex ways (strong, EM and weakly). Why should the charges be distributed in them always to a 0 EDM? What is the mechanism, or what is the reason, to zero out any EDM in them?


I want to show that $\sum_{x\in \mathbb F_{q}}x^i=0$ if $q-1$ does not divide $i$. Can someone give me a hint?

Let $F$ be a finite field and $i$ an integer. Calculate the sum of all the elements of $F$, each raised to the $i$th power.                                                            My approach so far:  Let $F=(0,1,\alpha,\alpha^2,...,\alpha^{p^n-1})$, where $p$ is a prime number and let $\sigma=1+\sum_{k=1}^{p^n-1}(α^k)^i$ be the desired sum.  Since $F$ is a ring, each element has an additive inverse. Thus, the trivial case of $i=1$ results in $\sigma=1+[\alpha+(-\alpha)+\alpha^2+(-\alpha^2)+\cdots+\alpha^{p^n-1}+(-\alpha^{p^n-1})]=1$.   We can also calculate the trivial case of $i=0$, where $\sigma=1+p^n-1=p^n$   In the general case, let $i=t (\text{mod } p^n)$. Then: $i=t+mp^n$, where $t,m$ are integers. We take into account the fact that the order of the multiplicative group of the finite field is $p^n$, so each element raised to the $p^n$ equals $1$. Thus $σ=1+α^t+α^{2t}+\cdots+α^{t(p^n-1)}$. This is the sum of a geometric progression, plus $1$. Thus, $σ=1+α(α^{p^n-1})/α-1$ = $ 1$+($α^{p^n}-α$)/${\alpha-1}$. But according to Lagrange's theorem, for every $\alpha\in F$, the polynomial $x^{p^n}-x$ is zero. It follows that $\sigma=1$.  An important question is raised: Is it true that the characteristic of the finite field is $p$ if its order is $p^n$? If so, the case for $i=0$ leads to $σ=0≠1$ and all cases have been considered?


I am implementing my templates in a header file "ival.h". My problem is that this is causing some problem with a template specialization. Are template specializations implemented in .cpp rather than in headers as templates are?  I have the following code:  //In ival.h #ifndef IVAL_H #define IVAL_H  #include<string> #include<sstream>  template <typename T> bool is_type(std::string);  template<> bool is_type<int>(std::string);  template<typename T> T get_type(std::string);  bool yesNo(std::string);  //------------  template <typename T> bool is_type(std::string Input) {     std::stringstream ss(Input);     T test;     if (ss >> test)     {         std::string remainder;         ss >> remainder;         return (remainder.size() == 0);     }     else return false; }  template <> bool is_type<int>(std::string Input) {     std::stringstream ss(Input);     int test;     if (ss >> test)     {         std::string remainder;         ss >> remainder;         if (is_type<double>(Input) && remainder[0] == '.')         {             while (remainder[remainder.size() - 1] == '0') remainder.pop_back();             remainder.pop_back();         }         return (remainder.size() == 0);     }     else return false; }  template<typename T> T get_type(std::string prompt) {     T output;     std::cout << prompt;     std::string Input;     while (std::getline(std::cin, Input) && !is_type<T>(Input))     {         std::cout << "Invalid input type. Please try again:\n"             << prompt;     }     std::stringstream(Input) >> output;     return output; }  #endif /*IVAL_H*/   And:  //In ival.cpp #include "ival.h" #include <iostream> #include<sstream>  bool yesNo(std::string prompt) {     while (true)     {         char output{ get_type<char>(prompt + " [y/n]: ") };         if (output == 'y' || output == 'Y' || output == 'n' || output == 'N') return (output == 'y' || output == 'Y');         std::cout << "Invalid input. Please try again:\n";     } }    The bool yesNo(std::string prompt) function in .cpp attempts to use the templates with char but it fails as:  error LNK2005: ya se definió "bool __cdecl is_type(class std::basic_string,class std::allocator >)" (??$is_type@H@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) en ival.obj  The problem disappears if I remove the definition of the template function specialization from the header file and paste it into the .cpp file. Why is this happening, and how can I keep all the definitions in my header.   The problem also disappears if I remove all template definitions from header and include them in .cpp with explicit instantiation to all types I want to use the templates with i.e int, char, double, float, std::string.  Is this second approach acceptable? Instantiation to all the types seems as not the thing to do.

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


I am looking for the word to use in the following situation - suppose one is asked a grand question that could form the basis for a mini research project in a way that almost suggests it has a simple, one-word, one-number sort of answer. The response from the one being asked would be "that's a very [insert word here] question" - unfortunately the only thing which comes to mind is "loaded" but that is not correct, and has its own meaning.

Is there a word to describe the quality of something that is deeper, more substantial, or more compelling than what is obvious or originally thought?   I am thinking of something abstract, like a thought or something philosophical like Ursula K. Le Guin's definition of communication.


Assume I like to execute the command foo which expects a specific file as an argument. I like to execute that command for a temporary purpose only so I like to have mentioned file as a temporary file, too.  In my specific use case I'd create the file temporary, execute the command with the temporary file and delete the file afterwards. This works fine.  Is there a way to pass that file with some kind of stream handler (borrowed speech from programming languages), so I don't have to create that file as a real file just temporary?  What I'm thinking about is some sort of foo "$( echo some content mimicking a file )", which I know, in fact, won't work but describes what I like to achieve.    Edit: My actual use case  I have multiple ansible roles to provision my entire system from scratch. Sometimes I have the need to run run one specific role for update purposes only. So actually I'm writing a temporary playbook, executing it and deleting it afterwards.      cat > ~/path/to/provisioning/scripts/tmp.yml << EOF - name: Executing the tasks \`tmp\`   hosts: localhost   become: yes   roles:     - apt     - ${1} EOF     ansible-playbook ~/path/to/provisioning/scripts/tmp.yml     rm ~/path/to/provisioning/scripts/tmp.yml

I often want to feed relatively short string data (could be several lines though) to commandline programs which accept only input from files (e.g. wdiff) in a repeated fashion. Sure I can create one or more temporary files, save the string there and run the command with the file name as parameter. But it looks to me as if this procedure would be highly inefficient if data is actually written to the disk and also it could harm the disk more than necessary if I repeat this procedure many times, e.g. if I want to feed single lines of long text files to wdiff. Is there a recommended way to circumvent this, say by using pseudo files such as pipes to store the data temporarily without actually writing it to the disk (or writing it only if it exceeds a critical length). Note that wdiff takes two arguments and, as far as I understand it will not be possible to feed the data doing something like wdiff <"text".


I am very confused about the spamming on Stack Overflow in general.  Why? do users spam   What? does it even do for them besides create a bit of attention  Also what are we doing about this?   Also I've noticed trolling on Stack Overflow were users ask questions that seem legitimate but aren't I'm really just confused about why all this goes on and are we stopping it or anything!

Is something wrong with StackOverflow's spam filter? Recently there have been huge numbers of spam topics related to football streaming. They have all been spam flagged and deleted but there are more getting posted all the time, I just flagged another 6 or so a few minutes ago. This has been going on for around 3 days now with these topics getting constantly posted over and over again in the  tag.


There used to be a great set of options under keyboard that allowed me to choose stuff such as how the caps lock key behaves.  How do I do this in 14.04?

I'd like to remap my keys such that Ctrl behaves as the Caps Lock key and vice-versa. Also, if possible I'd like the settings to be available only within the currently logged-in user. How can I achieve this?  I'm a vim user, unlike the other people who use this machine, so I'd like those settings only for my account.


I installed Ubuntu 16.04 and want to install VLC media player on it but i don't know how to install that on my Ubuntu desktop. Could any one help me sort out this problem

I want to install VLC. When I ask it to download in Ubuntu, it tells me to 'Choose an Application'.  What does it mean, and what should I do? Clicking on 'choose' gives me a list of my own files and I'm no wiser.


Im working with QGIS. When dividing a map with a grid I set in the paramters X=0.1 and Y=0.1. Could someone please explain what does that mean? I mean would the map be divided into 100mx100m squares? How do I know the exact measure in meters of each side of the square? Maybe its a silly question but its not that clear to me. Any help would be appreciated!  Thanks!

I am working with QGIS 1.8.0 and Im making a vector grid on a map. Does someone know how big are the squares if the grid settings look like in the picture?


According to the Equipartition Theorem, $$E_{kin}= 3/2 k_B T$$ I read that when we are keeping the wave-nature of particles in mind, we can write $$E= \pi k_B T$$  But how we can write that?

In the derivation of the Thermal De Broglie Wavelength on Wikipedia, I come across the following:  "In the nonrelativistic case the effective kinetic energy of free particles is $E_K=\pi k_B T$    Provided this is correct, in what instances is the kinetic energy of a free particle $\pi k_B T$ and not $\frac 3 2 k_B T$?  Thanks for any comments on this.


I studied that objects can be passed by referece (I mean that the parameters of the function are references). But why one prefers them over simply passing objects. My motive is to just use that object and in no sense modify it, so I do not mean the trivial advantages. So, what are the advantages of passing a reference to an object?

Is it better in C++ to pass by value or pass by constant reference?  I am wondering which is better practice.  I realize that pass by constant reference should provide for better performance in the program because you are not making a copy of the variable.


What is answer for 8 / 4 (4-2) = ?    My answer is 4. But some says it's 1. And arguing each others. They even using some calculators for prove them. Even those calculators showing both 1 and 4 as result. What should I tell to those who saying 1? Or my answer is wrong?

What's the correct way to do division using a backslash? If I write $a/bc + d$, will that be equal to $(a/(bc))+d$?   Basically, if I place a slash, will I divide by what's directly behind the slash $(b)$, the term that's behind the slash $(bc)$, or everything after the slash $(bc+d)$?


Put another way, once you complete the destinations on your initial destination cards, do you have to draw a new destination card or can you play without having an uncompleted destination?

In TTR USA, does a player have to draw more Destination Tickets when they run out? (Meaning they've completed all the ones they started with.)    Or can they simply continue to play by extending their longest route or blocking other players?


I have one requirement in which when I create a directory I want to create it with 777 permission. I did all stuff but not able to do this, anybody knows how to do this? Then please share.  Suppose I have directory /home/sachin/dir.  Now I am creating one folder test under /home/sachin/dir.  mkdir /home/sachin/dir/test   It will create test folder with 775 permission which I do not want.  I don't want to use -m option with the mkdir command.

I believe that umask is something that controls , but do not fully understand it.  After running umask 0644 in a , I cannot read the files I create with the command-line text editor nano. I noticed that the permissions of that file are set to 0022 instead of the default 0755.  How does umask work? I thought I could just remove the each digit in the umask from 0777, 7 - 6 = 1 and 7 - 4 = 3, so I expect the permissions to be 0133, but apparently, this is not the case.   What is umask exactly? Explain it to me like I was a "Linux noob" How do I calculate with umask? What are use cases for umask?


I can't seem to position my camera properly so that my scene is in view all of a sudden. When I press Ctrl + Alt + Num0 a box with a blank screen is displayed and any attempt to position the camera moves it to a completely different position. My camera  is positioned as follows:     This is the view from the camera:    Any suggestions? This does not work in RENDERED/SOLID or Look Dev on BLENDER 2.8

When I go to camera perspective, there are parts of my object that I can't see. I tried adding and deleting my camera a lot of times and positioning it so that the objects I would like to see on my camera view will be seen but to no avail, I still get the same problem.    What could be wrong with my camera set-up?


My web server is currently under a DDOS attack I believe, the messages log is full of these kind of messages:  May 13 15:51:19  kernel: nf_conntrack: table full, dropping packet.   May 13 15:51:19  last message repeated 9 times   May 13 15:51:24  kernel: __ratelimit: 78 callbacks suppressed   May 13 15:51:24  kernel: nf_conntrack: table full, dropping packet.   May 13 15:52:06  kernel: possible SYN flooding on port 80. Sending cookies.     and a netstat has a huge amount of the following:  tcp        0      0 my.host.com:http     bb176da0.virtua.com.br:4998 SYN_RECV   tcp        0      0 my.host.com:http     187.0.43.109:2694           SYN_RECV   tcp        0      0 my.host.com:http     109.229.4.145:1722          SYN_RECV   tcp        0      0 my.host.com:http     189-84-163-244.sodobr:63267 SYN_RECV   tcp        0      0 my.host.com:http     bd66839d.virtua.com.br:3469 SYN_RECV   tcp        0      0 my.host.com:http     69.101.56.190.dsl.int:52552 SYN_RECV   tcp        0      0 my.host.com:http     pc-62-230-47-190.cm.vt:2262 SYN_RECV   tcp        0      0 my.host.com:http     189-84-163-244.sodobr:63418 SYN_RECV   tcp        0      0 my.host.com:http     pc-62-230-47-190.cm.vt:1741 SYN_RECV   tcp        0      0 my.host.com:http     zaq3d739320.zaq.ne.jp:2141  SYN_RECV   tcp        0      0 my.host.com:http     netacc-gpn-4-80-73.po:52676 SYN_RECV     tcpdump shows:  7:11:08.564510 IP 187-4-1xx-4.xxx.ipd.brasiltelecom.net.br.54821 > my.host.com.http: S 999692166:999692166(0) win 65535 <mss 1452,nop,nop,sackOK>   17:11:08.566347 IP 114-44-171-67.dynamic.hinet.net.1129 > my.host.com.http: S 605369055:605369055(0) win 65535 <mss 1440,nop,nop,sackOK>   17:11:08.570210 IP 200-101-13-130.pvoce300.ipd.brasiltelecom.net.br.5590 > my.host.com.http: S 2813379182:2813379182(0) win 16384 <mss 1460,nop,nop,sackOK>   17:11:08.571290 IP dsl-189-143-30-99-dyn.prod-infinitum.com.mx.1615 > my.host.com.http: S 281542700:281542700(0) win 65535 <mss 1452,nop,nop,sackOK>   17:11:08.583847 IP dsl-189-143-30-99-dyn.prod-infinitum.com.mx.1617 > my.host.com.http: S 499413892:499413892(0) win 65535 <mss 1452,nop,nop,sackOK>   17:11:08.588680 IP 170.51.229.112.2569 > my.host.com.http: S 2195084898:2195084898(0) win 65535 <mss 1460,nop,nop,sackOK>   17:11:08.588773 IP gw2-1.211.ru.3180 > my.host.com.http: F 2315901786:2315901786(0) ack 2620913033 win 64240   17:11:08.590656 IP 200-101-13-130.pvoce300.ipd.brasiltelecom.net.br.5614 > my.host.com.http: S 2813715032:2813715032(0) win 16384 <mss 1460,nop,nop,sackOK>   17:11:08.591212 IP 203.82.82.54.15848 > my.host.com.http: S 4070423507:4070423507(0) win 16384 <mss 1400,nop,nop,sackOK>   17:11:08.591254 IP 203.82.82.54.2545 > my.host.com.http: S 1790910784:1790910784(0) win 16384 <mss 1400,nop,nop,sackOK>   17:11:08.591289 IP 203.82.82.54.28306 > my.host.com.http: S 578615626:578615626(0) win 16384 <mss 1400,nop,nop,sackOK>   17:11:08.591591 IP gw2-1.211.ru.3191 > my.host.com.http: F 2316435991:2316435991(0) ack 2634205972 win 64240   17:11:08.591790 IP 200-101-13-130.pvoce300.ipd.brasiltelecom.net.br.5593 > my.host.com.http: S 2813659017:2813659017(0) win 16384 <mss 1460,nop,nop,sackOK>   17:11:08.593691 IP gw2-1.211.ru.3203 > my.host.com.http: F 2316834420:2316834420(0) ack 2629074987 win 64240     I'm not sure what I can do to limit/mitigate this, currently no webpages are being served, any help gratefully appreciated.

This is a  about DoS and DDoS mitigation.   I found a massive traffic spike on a website that I host today; I am getting thousands of connections a second and I see I'm using all 100Mbps of my available bandwidth.  Nobody can access my site because all the requests time out, and I can't even log into the server because SSH times out too!  This has happened a couple times before, and each time it's lasted a couple hours and gone away on its own.  Occasionally, my website has another distinct but related problem: my server's load average (which is usually around .25) rockets up to 20 or more and nobody can access my site just the same as the other case.  It also goes away after a few hours.  Restarting my server doesn't help; what can I do to make my site accessible again, and what is happening?  Relatedly, I found once that for a day or two, every time I started my service, it got a connection from a particular IP address and then crashed.  As soon as I started it up again, this happened again and it crashed again.  How is that similar, and what can I do about it?


I want to select all contents of a file and copy it to google chrome. I have tried shift-ctrl-c but it isn't working.

I need to copy text from vim to web browser since I'm not able to use gedit as I'm opening  an sql file. How do I get this done?


Is it possible somehow to revert back to the old browsing habits, i.e. no tabs in Chrome or Firefox?  I stumbled the web but I cannot find the answer to this question.

Tabbed Browsing may be nice for reading news sites in one sitting, but I still think they are a usability nightmare if you need to keep the page open for a long time, e.g., for testing it while developing or as a reference for something.  The nice thing about the Windows Taskbar (before Windows 7 ) is that it's easy and natural to remember where things are. I can have 30 tabs in it, but because I know what each one is, I know where I have to click to open something - it's the most efficient way of working I've encountered so far.  Sadly, Tabbed Browsing completely breaks this efficiency because it is not possible to specifically click on a tab in the taskbar, I have to click on the browser, search the tab and then click it, which means at least 2 clicks.  Long story, short question: Is there an extension or setting to completely disable tabbing on Firefox 3, Chrome 4 and Internet Explorer 8 and have one Window/Taskbar entry for each open page? I know that in Chrome I can just drag a tab out of a Window to create a new one, but if there is a general way, that would be easier.  Edit: IE8 conveniently offers an option for that: Tools - Options - Tabs - Enable Tabbed Browsing.


Restrictions:   No 2 tasks of type B can be adjacent in the arrangement. Same task can occur multiple times in the arrangement. One slot can have one task. No slot can be empty   Also, What would happen if the number of slots is greater than the number of Task A + number of Task B?  Edit 1:   Similar Question:   The question is different from this one in the sense that a tasks can be performed/placed in slot twice but a man/woman cannot sit on two seats.

The part where the number of seats are limited is causing a difficulty. Seating all of the men and women with this restriction is easy. But the restriction on number of seats mixed it all up.


I cannot run regedit or any other exe programs after I used by mistake the command open with windows media center by default. Everything is opening with wmc and I cannot repair anything. please help!

I somehow have set the default file type association for a file type in Windows 7. It doesn't appear to be possible to delete it from the "Change the file type associated with a file extension" options screen. Is it possible to remove it?


I' using Debian 9 Cannot install libgstreamer-0.10.so I tried   sudo apt-get install libgstreamer0.10-0  Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package libgstreamer0.10-0 E: Couldn't find any package by glob 'libgstreamer0.10-0' E: Couldn't find any package by regex 'libgstreamer0.10-0'   When I search   sudo apt-cache search libgstreamer libgstreamer-plugins-bad1.0-0 - GStreamer development files for libraries from the "bad" set libgstreamer-plugins-bad1.0-dev - GStreamer development files for libraries from the "bad" set libgstreamer-plugins-base1.0-0 - GStreamer libraries from the "base" set libgstreamer-plugins-base1.0-dev - GStreamer development files for libraries from the "base" set libgstreamer1.0-0 - Core GStreamer libraries and elements libgstreamer1.0-0-dbg - Core GStreamer libraries and elements libgstreamer1.0-dev - GStreamer core development files libgstreamermm-1.0-1 - C++ wrapper library for GStreamer (shared libraries) libgstreamermm-1.0-dev - C++ wrapper library for GStreamer (development files) libgstreamermm-1.0-doc - C++ wrapper library for GStreamer (documentation) libgstreamer-ocaml - OCaml interface to the gstreamer library -- runtime files libgstreamer-ocaml-dev - OCaml interface to the gstreamer library -- development files libgstreamerd-3-0 - GStreamer media framework - D bindings libgstreamerd-3-0-dbgsym - Debug symbols for libgstreamerd-3-0 libgstreamerd-3-dev - GStreamer media framework - development files for D   I created a /etc/apt/sources.list.d/unstable.list  deb http://ftp.nl.debian.org/debian/ unstable main deb-src http://ftp.nl.debian.org/debian/ unstable main   and  /etc/apt/preferences.d/unstable      Package: * Pin: release a=unstable Pin-Priority: 200   But when I run apt-cache policy libgstreamer0.10-0 I get same error   apt-cache policy libgstreamer0.10-0   After I typed apt-get update      sudo apt-get update Hit:1 http://security.debian.org/debian-security stretch/updates InRelease Hit:2 http://ftp.nl.debian.org/debian unstable InRelease                        Ign:3 http://mirrors.edge.kernel.org/debian stretch InRelease                   Hit:4 http://mirrors.edge.kernel.org/debian stretch-backports InRelease Hit:5 http://mirrors.edge.kernel.org/debian stretch-updates InRelease           Hit:6 http://mirrors.edge.kernel.org/debian stretch Release                     Reading package lists... Done

I have a computer that runs Debian Stretch which has Gstreamer 1.0 installed. I am trying to run a Processing sketch that uses the Processing video library which in turn relies on Gstreamer 0.10. This produces a runtime error because they removed a symbol gst_object_sink.  It seems a PITA to try to rebuild the Processing video library with different Java bindings for Gstreamer 1.0.  Thus the question: Is it possible to install on the same system a second version (0.10) of Gstreamer?    The problem seems to be that  appears in Wheezy, Jessie, SID, but not Stretch/Testing.... Why would that be, and how to fix it?


Show that a finite group of even order that has a cyclic Sylow $2-$ subgroup is not simple.   Attempt:  Since $G$ has a Sylow $2$ subgroup so $|G|=2^km$ .  I don't know how to use the fact that the  Sylow $2-$ subgroup is cyclic.  Please give some hints.

I want to prove the following:          Let $G$ be a group of order $2^nm$, where $m$ is odd, having a cyclic Sylow $2$-subgroup.     Then $G$ has a normal subgroup of order $m$.      ATTEMPT:  We will show that $G$ has a subgroup of order $m$. Let $\theta:G\to \text{Sym}(G)$ be the homomorphism which is defined as $$  \theta(g)=t_g,  \quad  \forall g\in G $$ where $t_g:G\to G$ is defined as: $$  t_g(x)=gx,  \quad  \forall x\in G. $$ Let $g$ be an element of order $2^n$ in $G$. (There exists such an element since $G$ has a cyclic Sylow $2$-subgroup.)  The cyclce representation of $t_g$ is a product of $m$ disjoint cycles each of length $2^n$. Therefore $t_g$ is an odd permutation.  Thus the homomorphism $\epsilon\circ \theta:G\to\{\pm 1\}$, where $\epsilon:\text{Sym}\to\{\pm 1\}$ is the sign homomorphism, is a surjection.  By the First Isomprphism Theorem, we conclude that the kernel $K$ of $\epsilon\circ \theta$ is of order $2^{n-1}m$.  If $n$ were equal to $1$ then we are done.  If $n>1$ then note that any Sylow $2$-subgroup of $K$ is also cyclic. This is because each Sylow $2$-subgroup of $K$ is contained in a Sylow $2$-subgroup of $G$, where the latter is cyclic.  Now we can inductively show that $K$ has a subgroup of order $m$.    What I am struggling with is showing the normality.  Can anybody please help me with this.  Thanks.


Why does  $$(1+1/k)^{k}\rightarrow e\hspace{0.5cm}\text{as}\hspace{0.5cm}k\rightarrow\infty$$  why does it not approach   $$(1+1/k)^{k}\rightarrow (1+0)^k=1\hspace{0.5cm}\text{as}\hspace{0.5cm}k\rightarrow\infty$$

Given $\lim \limits_{x\to\infty}(1+\frac{1}{x})^{x}$, why can't you reduce it to $\lim \limits_{x\to\infty}(1+0)^{x}$, making the result "$1$"?  Obviously, it's wrong, as the true value is $e$.  Is it because the $\frac{1}{x}$ is still something even though it's really small?  Then why is $$\lim_{x\to\infty}\left(\frac{1}{x}\right) = 0\text{?}$$  What is the proper way of calculating the limit in this case?


New users already have a reminder to accept an answer on their question. So I don't see the need in general for this post-answer badgering, even if it is intended to be genuine constructive help (which it almost always isn't). To me it seems like little more than rep greed, especially on a site like StackOverflow where such a reminder comes within 10-20 minutes of posting the answer, and when the comment is clearly intended for the OP to accept the commenter's answer. To me it feels like pressuring the OP to accept their answer before a better answer has a chance to come along (or, as others have put it, rep-whoring).  I know we've talked in the past about , but that deals with the behavior itself. I'm asking about how we should treat the comments after they've come - I'm not sure whether I should send the commenter to the meta question I just linked, flag the comment, or ignore it. Ignoring it doesn't feel right, but saying something in the open might not seem genuine in cases where I have a competing answer.  EDIT I'd like to add something to consider here: the case where a user makes it seem like further discussion or clarification of an answer hinges on an up-vote/accept first. A couple of examples I culled recently, but I don't want to call out the user here (they're both from the same user, on different posts, in response to questions trying to clarify their answer):     consider up-voting my answer if you found it useful first.      up-vote my answer if you found it helpful first.

Is it ok to tell the OP to accept an upvoted answer? I'm asking this because in my two last answers that where upvoted by the OPs I tell them to mark as accepted if the answer worked for them and I would like to know if my attitude was correct. I said that as they do this, their accept rate will be increased.


Why is a negative number multiplied by a negative number a positive number?  I'm trying to know what does multiplying by a negative number mean.   If you think of multiplication as a "groups of" ($3 \times 5$ meaning $3$ groups of $5$ then it's confusing what a "negative number of groupsof $X$" could mean.  A lot of mathematics can be and was done without reference to "negative" numbers—whatever that unfathomable silliness might mean! The first several chapters of Stillwell's Mathematics and its History cover rational points on the circle, irrational numbers, distance, conic sections, rational curves, Pell's equation, chords and tangents, prime numbers, Chinese remainder theorem all without reference to negative numbers. You could do Platonic solids or spiric sections as well without ever venturing in that direction.

Someone recently asked me why a negative $\times$ a negative is positive, and why a negative $\times$ a positive is negative, etc.  I went ahead and gave them a proof by contradiction like so:  Assume $(-x) \cdot (-y) = -xy$  Then divide both sides by $(-x)$ and you get $(-y) = y$  Since we have a contradiction, then our first assumption must be incorrect.  I'm guessing I did something wrong here. Since the conclusion of $(-x) \cdot (-y) = (xy)$ is hard to derive from what I wrote.  Is there a better way to explain this?  Is my proof incorrect?  Also, what would be an intuitive way to explain the negation concept, if there is one?


I don't know how but suddenly a new language was added to my keyboard settings. The problem is that I can't remove it because it's not in the settings.  I want only English and Hebrew, but somehow I get:    English Hebrew Hebrew US keyboard (this one I want to delete, it is just English)    here are the settings:    Clicking on options I don't have the "Hebrew US keyboard" option anywhere to disable.

I have 2 languages installed on my computer, both with a single input method.  I have 2 keyboards: CES-CSQ and ENG-US.    However lately (maybe after the last Win10 update) I started to see 2 additional keyboards in my systray  - namely CES-CS and ENG-CSQ.    Is there there a way to remove those 2 input options (CES-CS, ENG-CSQ) which I do not see in the Control panel's Language options?  Solution described at  question does not apply to my problem because I do not see input options that I want remove in Control panel's Language options.


I tried to install Ubuntu on a machine having Windows OS.While installing Ubuntu I was not able to see all the partitions and I had to format the hard drive. Now the result is that I am having the clean Hard Drive with no primary partition and I am not able to install Windows OS also.  Please suggest me some steps to how can I install Windows OS and Ubuntu on the same machine?Also suggest me steps to create primary partition.  I googled but while following the steps got messed up.Please suggest me some links.

I have Ubuntu on my laptop. Now I want install Windows 7 in a dual-boot. How can I do this? I can't lose my Ubuntu files, and I'm afraid that I might break . Go  for UEFI only!


I recently asked a question on SO to which the combination of two separate answers should be the accepted answer, however each answer by itself is not completely really correct.  I edited my original question to make it a little more specific to the scenario that was causing me a problem.  Once I did this and started testing out users suggestions I discovered that a combination of answers actually solves the issue at hand.  Is there any way that this is supposed to be handled to provide an accepted answer?

I just asked my first question on stackoverflow and I'm really impressed that my question seems to be answered sufficiently already! See:    The issue I have is that the last two answers combined would provide the most complete answer. What's the proper way to go about combining them, marking the question answered, and giving credit where credit is due?  Thanks big time guys for saving us all from experts exchange hell!  Edit: Wow, 5 responses in 5 minutes. I think what makes the most sense is that I create my own answer out of the two. I don't think the second part of my question was answered though.  What is the proper way to give credit to the 2 answers that I'm combining? Is an upvote for each sufficient?


I have my Windows Update set to "never check for updates" on Windows 8.1, but since I still want the Defender definitions update daily, I created a task to get them.  However, I have a question about choosing the appropriate trigger/setting. I want it to run when the computer goes online. Does anyone know how I can set this?

I have a wifi connection that requires to authenticate using a web form once the wireless link is established. I know how to automate the authentication with a script that uses curl/.  But how can I ask Windows to call my script every time I connect to a particular network connection?  I would be also interested in receiving the name of the wireless profile or the ESSID on the command-line of my script.


I'm following this >>  and am not understanding the 'Creating a Makefile' part. Should I make a new document file named 'Makefile' and paste this inside >>  KERNEL_PATH?=/usr/src/linux-headers-$(shell uname -r)  EXTRA_CFLAGS=-I$(shell pwd)  obj-m:=xpad.o  all:         $(MAKE) modules -C $(KERNEL_PATH) SUBDIRS=$(shell pwd)  install:         cp -f xpad.ko /lib/modules/$(shell uname -r)/kernel/drivers/input/joystick   cause if yes, when i use make command then this error shows >>  Makefile:11: *** missing separator (did you mean TAB instead of 8 spaces?).  Stop.   sorry for being a noob ;) what am I supposed to do now? OR am i doing it all wrong?

I have a Microsoft XBOX 360 gamepad with the wireless adapter and I was wondering what I would have to install to use them with Ubuntu I do know that when using this on Windows I have to manually install the drivers for the wireless receiver (if that is relevant.)