I'm trying to help out one of my players optimize his character. His desired path is the  but tweaked it a little according to his taste by going    Fighter 1 > Barb 1 > Barb 2 > Fighter 2 >Ranger 1> Ranger 2> Fighter maxed.    He is a Human variant Dual-wielder using 2 Rapiers with Str, Dex, and Con maxed out at 1st-level and he plans on a Strength-maxed build with his future ability score increases.   He is getting Barb 2 for Reckless Attack which states:       Reckless Attack      ... you can decide to attack recklessly. Doing so gives you advantage on melee weapon attack rolls using Strength during this turn...    During our discussion, we came up with a way for him to not need  the 2 ranger levels to get Hunter's Mark and the concentration needed by it (since he will be facing challenges in melee). That was to get 1 level of Rogue for Sneak Attack. We decided not to go for it but it still left a question in mind since Sneak Attack states:      Sneak Attack      ...Once per turn, you can deal an extra 1d6 damage to one creature you hit with an attack if you have advantage on the attack roll. The attack must use a finesse or ranged weapon...     Now, my question is, given that Reckless Attack only gives advantage if you use strength, and Sneak Attack requires only a finesse weapon or ranged, it doesn't say you have to use Dexterity:   Can Reckless Attack activate Sneak Attack?


In Python, how do I iterate over a dictionary in sorted key order?

There's an existing function that ends in the following, where d is a dictionary:  return d.iteritems()   that returns an unsorted iterator for a given dictionary. I would like to return an iterator that goes through the items sorted by key. How do I do that?


FloatProperty setter; default implementation

I'm trying to create a custom property and do some work as the property is set.  I previously used the update function; which worked great, except it never got called on updates resulting from drivers or the animation system.  set does appear to get called in all cases, but I can't figure out how to store to the underlying property. I obviously can't store to is directly as I get an infinite loop and the answers I've found on the internet are wrong e.g. they suggest you can just store it using a dictionary indexing and it will set the property - but that doesn't work. >>> def cb(self, value): ...     print(self, value) ...     self['param'] = value ... >>> bpy.types.Object.param = bpy.props.FloatProperty(set=cb) >>> bpy.context.scene.objects['Cube'] bpy.data.objects['Cube']  >>> bpy.context.scene.objects['Cube'].param 0.0  >>> bpy.context.scene.objects['Cube'].param = 1.0 <bpy_struct, Object("Cube")> 1.0  >>> bpy.context.scene.objects['Cube'].param  # I want this to reflect the new value 0.0  >>> bpy.context.scene.objects['Cube']['param']  # I don't want this to exist 1.0


How do I invert all screen colors on Win7, similar to on MacOS?

I've tried the "High Contrast" feature, it doesn't quite do what I want.  MacOS will inverse the color of every pixel -- I think their graphics card does some final rendering on the entire screen, treating it as one large image.  "High Contrast", in 'contrast' (har har), is changing font settings, font color settings, etc.


How do I prevent people from shutting down my samsung phone?

When I have the passcode enabled, you can still shut down my phone when you press the power button. Is there any way to prevent people from shutting down my phone?


Array list with integers, receiving an error

I'm running this on an xml file and when I click on that particular button relating to this code it gives me an error. I think it has something to do with the arraylist combined with integers.       public void doError(ActionEvent actionEvent) {     ArrayList<Integer> integers =null;      for (int i = 0; i < 100; i++) {         integers.add(i);     }


If there is only one subgroup of a certain order, it is normal

Problem: If $G$ has exactly one subgroup $H$ of order $k$, then $H$ is normal in $G$.  I can see the obvious low level solution, that $gHg^{-1}$ is also a subgroup of order $k$ and therefore $H$ is normal. What confuses me is that this problem was in the chapter titled "Homomorphisms". The author introduces the idea of a homomorphism, proves the isomorphism theorems, and then hands us this problem.   I was thinking to try to use the first isomorphism in an obvious way such that $H$ is the kernel of some homomorphism but I couldn't find it.   Can someone help me find the likely "intended" solution? Since the purpose of exercises should be to help me understand homomorphisms and ismorphisms better, my solution can't really be considered satisfactory.


Please help me understand the following concept. Let A be a matrix of constants and Y is a random vector. Var(AY) = AVar(Y)A', where A' is A transpose. I understand that AA' = A^2. What I don't understand is why A' goes in the end, instead of AA'Var(Y). Is there some kind of property in linear algebra that would help me understand the correct order? Thank you!


I have a 3 year old daughter who spends a bit of time playing with her male cousin who is 5 1/2.  I recently walked in to my daughter's room where they were playing to find my daughter completely naked and the pair of them in a sex-like position.  I understand kids being curious about their bodies and differences between boys and girls, but this was a bit out of my comfort zone.   This situation has brought up a few questions for me.  the older child is not a fiend and is clearly mimicking some behaviour that he probably shouldn't be witnessing. Is this normal roleplaying behaviour that some kids go through? Can it be harmful to my daughter?  I  am not in a situation where a can stop them playing together, how do I handle the situation with the other parent who is not as concerned as me?


Attach camera via USB, or remove the cards from the camera?

I've always removed the cards from the cameras and used a high-speed good quality card reader, and find it totally strange to connect the camera via USB instead.  A comment elsewhere prompted me to rethink this:  I've always done it that way, and years ago the cameras were slow (even pathetically slow, using USB 1.1 speed only!) and connection software was clunky and non-standard.  There are some answers here as recent as 2011 that still bring this up.  and also  addressed in 2010.  Now, cameras can use faster memory cards, but I expect card readers are available, along with even faster cards, that are even faster than the camera's USB connection will support.  So what's the current situation seen by people who do use the camera connection?  Also, the software connection thing has improved, with a standard USB protocol used in cameras (or are they?) and already known to desktop operating systems.  Before, it was noted that running the camera as a reader would drain its battery.  Do they charge the battery now, instead?  So how does the comparison weigh in now?  What are the pros and cons of attaching the camera via USB vs. taking the card out and using a dedicated card reader?


I would like to think that some of the software I'm writing today will be used in 30 years. But I am also aware that a lot of it is based upon the UNIX tradition of exposing time as the number of seconds since 1970.  #include <stdio.h> #include <time.h> #include <limits.h>  void print(time_t rt) {     struct tm * t = gmtime(&rt);     puts(asctime(t)); }  int main() {     print(0);     print(time(0));     print(LONG_MAX);     print(LONG_MAX+1); }   Execution results in:   Thu Jan  1 00:00:00 1970 Sat Aug 30 18:37:08 2008 Tue Jan 19 03:14:07 2038 Fri Dec 13 20:45:52 1901           The functions ctime(), gmtime(), and localtime() all take as an argument a time value representing the time in seconds since the Epoch (00:00:00 UTC, January 1, 1970; see time(3) ).      I wonder if there is anything proactive to do in this area as a programmer, or are we to trust that all software systems (aka Operating Systems) will some how be magically upgraded in the future?  Update It would seem that indeed 64-bit systems are safe from this:  import java.util.*;  class TimeTest {     public static void main(String[] args) {         print(0);         print(System.currentTimeMillis());         print(Long.MAX_VALUE);         print(Long.MAX_VALUE + 1);     }      static void print(long l) {         System.out.println(new Date(l));     } }    Wed Dec 31 16:00:00 PST 1969 Sat Aug 30 12:02:40 PDT 2008 Sat Aug 16 23:12:55 PST 292278994 Sun Dec 02 08:47:04 PST 292269055   But what about the year 292278994?


Using flair in secure enviroments (HTTPS)

It'd be nice if the different flair options could be hosted on HTTPS as well as HTTP, so that they could be used in — for example — HTTPS-secured intranet sites.


Order of a product of elements in a generic group

I'm dealing with the following question: having a group $G$ (of which nothing else is specified, doesn't have to be abelian), prove that $|ab|=|ba|$ for any $a$, $b$. Since $G$ is not abelian I'm not sure what to use here. I was thinking that except the case where $b=a^{-1}$, the order of those would be $lcm(m,n)$ where $m$ and $n$ are the orders of a and b. But looking it up it seems not to be so simple, even if all the info I could find was for abelian groups, so I would like some help with this specific case.


I found an elevated place in Minecraft and would like to expand its borders. However it seems I can't add a block adjacent to a surface without being able to see that surface, and on an elevated area this means I'll have to be off of the area in order to accomplish this. Is there a way to create a cantilever-like structure, specifically, a way to extend a 'floating island'?


During reflection does the emitted photon have same properties?

When light (photon) is reflected the the original photon is absorbed by an electron and then emitted again. Does this "new" photon have the same wavelength, frequency etc. as the original?


how to unparent objects without everything moving?

So I got this model of a robot and I had to rotate the whole model (which is made up of several non-joined meshes) so I parented every single part to the body and now when I unparent everything goes haywire. Anyone got any ideas on how I can unparent them without everything moving?  This is how it looks parented   And this is what happens when it gets unparented (I used alt+p clear parent)  I got another question. I need to rig this model and keep everything unjoined (because I dont want anything to bend since this is a robot made up of solid parts) any tips on that?  Here is a download link if anyone wants to have a closer look:


I am now reading  book and have noticed a couple of cases of weird (for non-native speaker) future tense usages.   The point of the kata is to train your fingers and your brain. I'll do a kata or two every day, often as part of settling to work. I might do it in Java, or in Ruby, or in Clojure, or in some other language for which I want to maintain my skills.`   The phrase about doing a kata or two every day looks perfect for Present Simple. Why does the authoer use Future Simple instead?   However, a professional also knows that there will be times when he will fail, his risk calculations will be wrong, his abilities will fall short; he'll look in the mirror and see an arrogant fool smiling back at him.   Shouldn't we use Present Simple after when/if in this kind of cases? I am especially curious about this case as sometimes I forget to switch to Present Simple after if/when and I thought it is a critical error (which I didn't expect to see in a book).


I am completely new to blender and I was practicing how to make clothing out of a base mesh. I am using a technique where you duplicate a portion of the base mesh and expand out on it, but the vertices are not exactly how I want them. How can I adjust the mesh so the arm, neck and body holes are circular? Thank you!


Do any queries exist that require RIGHT JOIN, or can they always be re-written with LEFT JOIN?  And more specifically, how do you re-write this one without the right join (and I guess implicitly without any subqueries or other fanciness):   SELECT * FROM t1 LEFT JOIN t2 ON t1.k2 = t2.k2 RIGHT JOIN t3 ON t3.k3 = t2.k3


Where to find the Windows 10 license key on the surface book?

Where can one find the key of the installed windows 10 operating system on the surface book?  I tried to find it on the case and asked google but couldn't find an answer.


How to rotate the direction of the curve extrusion by 90 degrees

I'm modeling a ribbon out of a curve to put on a present model.  I'm using the extrude feature to form the actual ribbon.    The issue, is that the curve is tilted the wrong way.    How can I rotate the direction of the curve extrusion by 90 degrees?


C# - Count a specific word in richTextBox1 and send the result to label1

I'm not sure, if this question is unique, but I couldn't find the answer that I was looking for.  I simply need a C# code that counts how many times a word appear in richTextBox1 and send the result to label1.  Example; label1.text = how many times the word "house" appears in richTextBox1.  I know that I should try first but believe me I tried and I failed. I am new to this so I hope someone can show me.  Regards


Question About Notation In Field Theory $F(x)$ vs. $F[x]$

I have a question about notation specifically square brackets $[$ and round brackets $($.  My textbook doesn't explain any of this and I cannot find a reliable source online to confirm the difference.  So my question is: What is the difference between round brackets and square brackets in terms of notation in Field Theory? For example, I see $F(x)$ and $F[x]$ in my textbook and I've always assumed they were the same thing. But apparently they're not. Is there ever a time they're the same?  I wanted to know the difference, it may be a silly question but it's something I want to make sure I understand.


Does Killing A Bash Process Affect Children Processes

The Scenario  I'm automating backups via a bash script. The script is executed via cron. The script archives directories recursively using tar, and then rsync's them to the remote host. Here is a sample:  ... for PATH in $DIRS do     ...     tar -cpvzf $FFILE $PATH --exclude-from /tmp/excludes     ...     rsync -az --partial --rsync-path="sudo rsync" $FFILE mybackupserver:$REMOTEFILES     ... done ...   Each time tar or rsync is invoked, a new process (and therefore PID) is spawned for each one, obviously.  My Question  If I kill the process that started the script, will the child tar and rsync processes also be killed off immediately? Or will they run until completion, and no further ones will be spawned thereafter?  I'm reluctant to interrupt the tar or rsync processes mid-stream.  Thanks.


the output of “column” is misaligned when the text is colored

I have a list of sentences in a tcsh script, which are separated by '\n' and may have white spaces inside. I want to show them in the style of ls, so I did "echo $list| column". it works fine when there is no color used. the result is as below   Then I need to highlight some items which are changed(latest 3 choices) each time to show up. I add the color sequences (\e[33m and \e[0m) around the items I want to highlight, and still put them into the $list.  When I show them with "echo $list | column", the color is ok, but the text are misaligned as following picture.  Note, I tried that if not use '| column', the strings showed correctly in one column, even though not the style I want.  Is there is some solution for the problem?  BTW, I did some search and it seems to be a bug of column. Is there any maintainer for column? Where should I report the issue?  NOTE: I've read  before the post. His format is fixed, while mine to be colored items are dynamic. So simply use printf or add color after column can not work


JQuery causing HTML to be format specific wrt closing tags?

I'm new to ASP.Net and, especially to JQuery. I've been trying to get my page to have JQuery tabs and, after a fashion, I have this working. However, it seems to me that the HTML in my aspx is now very sensitive to closing tags.  For example, it seems that this works (well, it doesn't cause errors)...  <head>     <title></title> </head>   ...but this doesn't work (ie. causes errors).  <head>     <title/> </head>   Are they (now) no longer equivalent ?  I noticed the same (but different errors) when I convert this...  <script src="scripts/jquery-1.10.2.js" type="text/javascript"></script>   to...  <script src="scripts/jquery-1.10.2.js" type="text/javascript" />   What's the difference in the way that the tags are closed ?


Can I invite my Facebook friends to Stack Overflow?

How can I invite my Facebook friends to Stack Overflow? Is it possible?


Do we know why the Night's Watch has diminished so much?

In S01E03 of Game of Thrones, Maester Aemon mentions to Tyrion that the Night's Watch is growing smaller in numbers, now to less than a thousand.   Since the Night's Watch consists mostly of bastards, criminals, rapists, etc., I'm finding it difficult to believe that these demographics of Westeros have plummeted to the point where the Night's Watch is nearly no more.   So, has there been any explanation as to why this has happened?   (Book-based responses equally welcome.)


What is this weird group when importing an FBX, and how do I remove

I imported this in as an FBX and all the objects seem to have this weird grouping. How do I remove it and how did I do this?


Let's say I traveled for 6 hours and 40 min. How should I write that?      6 hours and 40 min   or     6.40 hours   or     6.40 min   or     6h.40 min


I have a black tiny bug crawling all over the house

This bug is crawling all around the house it stays within the shadows and moves very very slow, i have never seen it jump or run, it just moves very slowly    P.S. those bugs as u can see are smaller than 1mm so it's hard to take better pictures but i will get better ones tomorrow  P.S. the hairs are not hairs they are wool from the carpets, i just got married in october 2014 and everything in the house is new, including the flat, it was built in january 2014.    it is very similar to what's in this picture, but i couldn't take a picture of it because it's tooo tiny  I really need to know what it is so I can deal with it :(  Edit: once i found a very little few under the carpet but it generally stays away from the carpets and stays on the tiles and I don't think it is a termite because I don't find any piles of eaten wood  EDIT 2: More pictures:  -- Stage 1 --       -- Stage 2 --       I don't know what it is but I know that there is ones young in age i call them stage 1 they are unable to move  and there are ones I call stage 2 older in age and bigger in size and they can move and I think they can bite too  -- Insect 2 -- 5mm by 5mm     I found this one across the hall from the others and I do't know if it's related, i found it dead but I haven't sprayed that side with insecticides i sprayed the other side so it's possible that it was with the others but ran and died far from them.  EDIT: More photos  P.S. I found those moving in daylight (now)    when i blew a little air i think i turned it


Getting "System program problem detected" pops up regularly after upgrade

This started to happen immediately after I had rebooted the first time after doing a system upgrade. It first starts with a dialogue that says "System program problem detected". Then when I try to hit 'report problem' not much happens. I am led through a dialogue that always ends up the problem cannot be solved.  I am aware this is not a lot of information, however I'm not sure which information I need to publish and how should I obtain it to debug this problem.  Here's a screenshot!


LaTeX tends to break words at the end of the line when that causes better typography. Great. I'd like to have some sort of influence on where the words are broken, though.  For example, LaTeX currently breaks cryptography into cryptog-raphy when it does not fit, while I would much rather break it into crypto-graphy.  I've tried putting an mbox around it (or around both parts of the word) but that just ends up overflowing the hspace.  Is there a way I can put a box around the word but still allow a break at designated points, i.e. after crypto and before graphy? I'm fine with doing this on a per-word basis manually.


How to change some key mapping on keyboard

I'm on italian keyboard, accessing ` and ~ is so frustrating (I have to enter alt 96 and alt 126), but I have also a useless § key (shift + ù). What I'd like to do is to "add a layer" to \ key so pressing altgr + \ will produce ~  and altgr + ' will make `  Another nice thing to add is support for "dead key", what I'd like is to have single pressure to behaving as usual and (altgr + shift) + pressure let it behave as dead key.   So to put e' I just enter e + ', to enter é I enter altgr + shift + '  then e.  Can someone please suggest me a solution?  NOTE: switching to IT-104 is not an option as it remaps ~ to ] so I'll gain the gliphs but at cost of losing another that was well memorized.


how do I solve this integral ?  $$\int_{0}^{\infty} \frac{\sin{x}}{x}\,dx$$  how to start ?


Maybe it's a stupid question, so I will delete it if it will receive too many down votes but..  I was wondering about the Universe, and the fact that    We know it's expanding; We don't know if it has an edge, maybe yes maybe no;   But.. does the Universe spin? If we should describe the entire observable Universe as a "body", we should take into account its expansion but would it be also described as a rotating body or as a non-rotating one?


What's the purpose of adding a prefix on both sides of a shell variable comparison to a string literal?

I have encountered comparisions of variables to string literals multiple times over the years which had one character prefixing the variable and the literal, e.g.  if [ "x$A" = "xtrue" ]; then   in order to check whether $A is "true".  I assume this is done to achieve shell compatibility or to work around a longterm bug, an unintuitive behavior, etc. Nothing obvious comes to mind.  Today I figured I want to know the reason, but my research didn't turn up anything. Or maybe it's just me making something out of a rather frequent exposure to rare occurances.  Is this practice still useful, maybe even best?


Firefox shows numbers and symbols as emoji, how to disable this?

I've been digging and searching the web for an answer to this, but to no avail. What is causing this:  As you can see, it makes it hard to read numbers. Setting Firefox to safe mode does not fix it. A bit more info, though this is clearly not a fix. Disabling the font for the top bar made things normal again:


How to load classes from jar file at runtime?

I am designing a web application with plug able component architecture (plugins). My requirement is to add new plugin jar (classes) into application without restarting the application, it should be dropped in web application's lib or plugin directory and application should able to pick it up.  I tried this with tomcat server but it can not load the jar file dropped into its lib directory once its started.  Can anyone suggest a best way to do this ?


Using Routing without MVC: authentication form

Now I'm trying to work with System.Web.Routing. All is just fine, but I can't understand how to make form authentication  work with url routing (return url, redirection, etc). Google says nothing. Help! :)  UPD: I forgot - I don't use MVC. That's the problem. How to use rounig and form authentication  without MVC  UPD2: more about my problem  What I want to get: urls such “mysite.com/content/123”, “mysite.com/login/”, etc using Routes. It’s important to make login page works like “regular” ASP.NET login form (redirects to login from secure area when not login on, and redirect back to secure area when loggined). That’s what I’m doing. In global.asax on Application_Start, register routes like this:  routes.Add("LoginPageRoute", new Route("login/", new CustomRouteHandler("~/login.aspx"))); routes.Add("ContentRoute", new Route("content/{id}", new ContentRoute("~/content.aspx")) {     Constraints = new RouteValueDictionary {{ "id", @"\d+" }} });   Where CustomRouteHandler and ContentRoute – simple IRouteHandler classes, just like: ...  public IHttpHandler GetHttpHandler(RequestContext requestContext) {     var page = BuildManager.CreateInstanceFromVirtualPath(VirtualPath, typeof(Page)) as IHttpHandler;     return page; }   ...  All seems to be perfect: I’m getting content.aspx when go to “/content/10” and login.aspx when go to “/login/”. But… When I make content secured (in web.config, with deny=”?”), login form doesn’t work like expected.  Now I can’t reach the “/content/10” page:  0. I’m typing “/content/10” in my browser. 1. Site redirects to “/login/?ReturnUrl=%2fcontent%2f10”. (Hm… seems like all problems starts here, right? :) 2. I’m trying to log in. No matter what credentials I’m entered… 3. …site redirects me to “login?ReturnUrl=%2fContent%2f10” (yellow screen of error - Access is denied. Description: An error occurred while accessing the resources required to serve this request. The server may not be configured for access to the requested URL.) So, the problem is how to get ASP.NET understand real ReturnUrl and provide redirection after login.


Method to shade or overlay a raster map to reflect time of day and ambient light

I have a daytime raster of my study area. I have 20+ counters in the study area that count "stuff" with a timestamp. Using  I determined the type of ambient light for each collected data point.   What I'd like to do:   Add a grey/semi transparent overlay to reflect the ambient light (Dusk, Sunrise, day, sunset, and dark). The end goal: produce a time-based visualization of the data collection that highlights the time of the day. Or be able to produce a snapshot at a certain time with the proper shaded overlay. Think of this as this the image:


So I am trying to prove  $$\sum_{i=0}^n{nCi×F_i} = F_{2n}$$ Such that $$nCi = \frac {n!}{i!×(n-i)!}$$ And $F_i$ is the ith value of the fibonacci sequence such that $F_0 = 1$ and $F_1 = 1$  I have stared at this problem maybe 3 hours so far and I have found so far $$\sum_{i=0}^{n/2}{(n-i)Ci} = F_{n+1}$$   and that   $$F_{2n} = F_{n+1} × F_n + F_n × F_{n-1}$$   but so far I haven't quite found a way to use these patters for a proof. Am I on the right track? If not could anyone spare a student a hint? :).  Thank you  Also I apologize for the poor format of my math expressions, I am still new to the site and I couldn't get any syntax I personallu knew to format.


The density of the primitive Pythagorean triples.

The formula of Pythagorean triples is $(a^2+b^2)^2=(2ab)^2+(a^2-b^2)^2$ and a list can be build up with $a^2+b^2$ monotonically increasing. The Pythagorean triples should be primitive here which means $\gcd(a,b)=1$.  The list is $5^2=4^2+3^2$,  $13^2=12^2+5^2$,  $17^2=15^2+8^2$, … and so on.   Be $\#(n)$ the number of primitive Pythagorean triples with $n:=a^2+b^2$.   If $\#(n)$ has several values, e.g. $\#(85)\in\{13;14\}$, than choose the minimum, here $\#(85)=13$. To get $\#(n)$ one counts in the list all triples with $a^2+b^2\leq n$.    How can be proofed $$\lim\limits_{n\to\infty}\frac{n}{\#(n)}=2\pi$$ ?  It was proofed by Derrick Norman Lehmer, but I cannot find his proof.


Awkward phrasing of badge description with suggested update

It was suggested that I post this here, so I'm creating a copy here:  This is replacing (deleted, so 10K only) on the :     First to answer and accepted with score of 10 or more. This badge can be awarded multiple times.   The phrasing of this explanation is incredibly awkward without punctuation.  A suggested alternate, clear wording from Daniel Fischer's comment in the previous question:     First to answer, and the answer was accepted and has a score of at least ten. This badge can be awarded multiple times.


How can I know if a user plugged an external storage device into a Mac (such as an external hard drive) and moved/copied any data to and from it?

How can I know if a user plugged an external storage device (such as an external hard drive) and moved/copied any data to and from it?  Is this recorded in any system logs?.  Any article or resource explaining this?


Remove / hide the "All Apps" shortcut from the Start Menu --- or uninstall them totally

This question has two parts:   I've Googled but cannot find anything about this. Is there a way to make that "All Apps" section disappear completely from the Start Menu? (The section to which I refer is labelled as #2 .) I kept coming across posts that addressed how to remove individual apps from that grouping - but that's not what I'm trying to do... Also, I'd honestly rather uninstall all of those "Metro" apps altogether. I found it quite surprising when I'd right-click on an app shortcut and "uninstall", it was only for that user. I found help online how to use PowerShell to remove them. But that wasn't too effective - in particular I remember the XBox just wouldn't go away. I ended up taking ownership of the folder that contains all of those "lovely" apps and renaming some of them with some prefix like "REMOVED___"... Is there a way to actually blow all of these away completely?


Why Are Congruence Relations Written as $”a\equiv b \pmod m”$

Why when writing a congruence relation, do we have to add $\pmod{m}$ at the end. I understand it's notation, but $b$ does not have to be equal to $a\bmod b$ if I understand correctly. The definition states that "$a$ and $b$ are said to be congruent modulo $m$, if their difference $a − b$ is an integer multiple of $m$." If that is true, then one can write $a\equiv b \pmod{m}$  So, for example, if we let $a=10$ and $m = 2$, then the set $b_n$, where $b_n$ contains all the integers that satisfy $a\equiv b\pmod{m}$ contains $2,4,6,8\dots$ But $10\bmod 2 = 0$. So why do we write $a\equiv b\pmod{m}$ to indicate a congruence relation? Thanks, any help is greatly appreciated.


Why does $p^2+8$ prime imply $p^3+4$ prime

How do I prove that $p^2+8$ prime implies that $p^3+4$ is prime? What is the general pattern of thought for these problems?


when I play minecraft it runs super well no lag at all, but when I use ubuntu with minecraft on it seems to be that ubuntu gets super slow it takes 5 seconds to get to my home folder it has never done that before I also try to run a bukkit server it works well but the I use a plugin and I get a timeout error ever since ubuntu got slow bukkit always crashed. can anyone help? i have 2.9 GB RAM. Thank You


Set $A$ is countably infinite if and only if there exists a bijection $f: \mathbb{N} \rightarrow A$

Using the fact that for any $A$, $A$ is countably infinite if there exists a bijection $f: A \rightarrow \mathbb{N}$, how do I prove the statement:  $A$ is countably infinite if and only if $\exists$ bijection $f: \mathbb{N} \rightarrow A$?


Question is:      "Show that $\Phi_{2n}(x)=\Phi_n(-x)$ for all odd numbers $n>1$"   I try to prove this as follow,   $\prod_{d \mid 2n} \Phi_d(x) =x^{2n}-1 = (x^n-1)(x^n+1) = -(x^n-1)((-x)^n-1) = -\prod_{d \mid n} \Phi_d(x)\Phi_d(-x)$  Then I write,  $ \Phi_n(x)\Phi_{2n}(x)\prod_{d \mid n; d\neq n}\Phi_d(x)\Phi_{2d}(x)  = - \Phi_n(x)\Phi_{n}(-x)\prod_{d \mid n;d\neq n} \Phi_d(x)\Phi_d(-x)$  Then  $ \Phi_{2n}(x)\prod_{d \mid n; d\neq n}\Phi_{2d}(x)  = - \Phi_{n}(-x)\prod_{d \mid n; d\neq n} \Phi_d(-x)$  My claim is $ \prod_{d \mid n; d\neq n}\Phi_{2d}(x)  = - \prod_{d \mid n; d\neq n} \Phi_d(-x)$  But I did not prove this claim.. Any idea?   or dou you have another proof?


Tips for creating background motion blur images?

I've recently came across an image similar to this: (Source: )    And was really impressed, the picture I found before that one (sadly can't find it again) looking even better, with a really beautiful linear motion blurred background and a crystal clear subject on a bike in the foreground.  Having no idea at all how this could've been produced I looked around and found the site linked in the image source above, however it doesn't say much other than that one has to pan the camera.  Looking a bit around on this site revealed that "second-rear curtain flash" is also used a lot for these kind of images, as per  Q&A. However, in bright daylight I don't think the flash method will have much effect, but panning the camera seems like a really hard task to me.  I have yet to try it out but given the picture above, wouldn't one have to move the camera at the exact same speed as the bike is going? Or is there post-editing in play too? What I specifically don't understand is how there can be no blur on the biker at all, not even the tiniest bit.  If someone could enlighten me on how to do shots like this and what tips and tricks there are to make it easier and better that'd be amazing.


How to remove kubuntu-desktop completely?

I was using Ubuntu 15.10 and decided to try KDE. I installed kubuntu-desktop. I did not like it and now want to remove it completely. But the problem is, running this command  $ sudo apt-get purge kubuntu-desktop The following packages will be REMOVED:   kubuntu-desktop* 0 upgraded, 0 newly installed, 1 to remove and 7 not upgraded. After this operation, 41.0 kB disk space will be freed.   which means it still is not removing it completely. How do I remove it completely.


I can display a shapefile in openlayers but I need to add some attribute data.    I can open the dbf file in excel but there is no save as option in excel to the updated file as a dbf.    What is the best way (or software to use) to add attribute data to my shapefile?


Proving that $\dim(\mathrm{span}({I_n,A,A^2,...})) \leq n$

Let $A$ be an $n\times n$ matrix. Prove that $\dim(\mathrm{span}({I_n,A,A^2,...})) ≤ n$  I'm at a total loss here... Can someone help me get started?


In computing, what is the plural of 'child' in terms of inheritance?

For example: when using inheritance with classes in Java, I have a parent and two classes which inherit from that parent. Do I refer to these as 'children' or as 'childs'? In other words, what is the plural of 'child' in terms of class?


implication of differences in the location of the square brackets when declaring arrays in java

New to java and would like to understand what is different (if any) between these two declarations/instantiations:  Double[] aRRAY = new Double[] {1.2, 1.3};  and  Double aRRAY [] = new Double[] {1.2, 1.3};  Note the different positions of the square brackets on the left side in code snippets 1 and 2. Is there any difference ultimately? If so what is it?


Find and Replace several several different values all at once

I have a file with multiple instances of Text_1 and Text1 and I need to replace both those strings with Text_A and TextB respectively.    Currently I'm doing two Find and Replace functions on each file one that finds Text_1 and replaces it with Text_A and the other that finds Text1 and replaces it with TextB.    Is there any way to do this all at once instead of having to run "Find and Replace" twice?  I am using Dreamweaver CS3, but I also have Notepad++, regular Notepad, OO Writer, MS Word if those will be easier.  Ideally I could do this in Dreamweaver or Notepad++ but I'm open to downloading something else to get the job done.  I'd prefer not to have to do any command line stuff or create a batch file (while I'm aware of it, I don't understand it really).  In case the above description isn't clear, let me explain it this way...  I want to run Find & Replace 1 time in 1 document and I want it to do ALL of the following during that one Find & Replace instance:   Find Text_1 and Replace with Text_A Find Text1 and Replace with TextB   I am not trying to do a Find and Replace across several documents.


Iterating over un-initialized array in C

So I came across this question sometime ago and couldn't figure out the question for it, but it left me wondering as to why it works. I don't have the question in front of me, but I'll try my best to repeat it from memory.  Why are the outputs of these two pieces of code the exact same in C? One of them is obviously wrong.  Code 1:  int main() {    int a;    int b[] = {1,2,3,4};    for(a = 0; a<4; a++)       printf("%i\n",b[a]);    return; }   Code 2:  int main() {    int a;    int b[] = {1,2,3,4};    for(a = 0; a<4; a++)       printf("%i\n",a[b]);    return; }   The output of both pieces of code is:  1 2 3 4   Someone told me it has something to do with a stack and memory locations, but the explanation wasn't clear enough. Can anyone help explain this more clearly?


What application launchers are available for Ubuntu?

What are some alternative launchers that can be used to launch programs in Ubuntu's default Unity desktop?


How can I tell whether a fan is going or a hard drive?

I have one of those compact mini computers that is just a small box, about 6 inches wide. Lately, it has been making a whirring sound. How can I find out if it is the fan that is going bad, or the hard drive?


How to find unused/dead code in java projects

What tools do you use to find unused/dead code in large java projects? Our product has been in development for some years, and it is getting very hard to manually detect code that is no longer in use. We do however try to delete as much unused code as possible.  Suggestions for general strategies/techniques (other than specific tools) are also appreciated.  Edit: Note that we already use code coverage tools (Clover, IntelliJ), but these are of little help. Dead code still has unit tests, and shows up as covered. I guess an ideal tool would identify clusters of code which have very little other code depending on it, allowing for docues manual inspection.


I am doing an experimental project on NTFS and I just discovered every time I create a new partition there seems to be a (nearly 1MB) partition gap created just before the new partition.    I searched in google and no specific answer could be found why these gaps occur. And what information does this gaps contain? I found most of my partition gaps empty.  As these gaps are only visible to the forensic tools (not by disk management of windows), if I want to use these  gaps (might require formatting) and create small partitions will it cause any damage to my system or boot sectors (MBR and VBRs)?  Thanks in advance.


Let $f:[0,\frac{1}{2}] \rightarrow\mathbb{R}$ be a differentiable function such that $|f^\ {'}(x)|\leq |f(x)|$ and $f(0)=0.$  Prove: $f(x)=0, \forall x\in [0,\frac{1}{2}]$.   So I tried to work by the definition of the derivative at $0$ and somehow squeeze it, but got stuck.  Any help appreciated.


I have lived in Germany since 2011 and I have had refugee status since 2017. My mother died in 2013. I want to visit her grave. How can I do that? I need only 10 days to go back to my country Pakistan.


How can I test an iOS app with just a Macbook?

I have a MacBook Pro and need to test my apps integration with another developer's iOS app. They have provided an installation link (itms-services://), but I don't have an iOS mobile device.  Is it possible to install and test their app on my MacBook with some sort of emulator?


I am using Ubuntu 14.04.  I ran in terminal sudo apt-get update. Then I rebooted the system. And now I see:   ALERT! /dev/disk/by-uuid/xxxxxxxxx does not exist. Dropping to a shell initramfs:_   I can't boot up LIVE Ubuntu from USB flash drive. Yes, I double checked BIOS setup and the USB flash drive is OK and runs on another machine. Right now I am going to buy a  DVD and burn a Live DVD from another laptop.  sudo blkid gives me:   /dev/loop0: TYPE="squashfs"   /dev/sda1: UUID="xxxx" TYPE="ext4"    /dev/sr0: LABEL="Ubuntu 14.04.1 LTS i386" TYPE="iso960"      /etc/fstab has the same UUID="xxxx" and there is a line with:   errors=remount-ro 0      I tried using boot-repair but I still can't log in to Ubuntu.  I don't want to reinstall Ubuntu, because I have a lot of data there.  Do you have any advice how this can be solved?


Shouldn't we use a Hamiltonian that doesn't give special treatment to time?

If we have a Lagrangian $\mathcal L$ that depends on some scalar field $\phi$, we define the momentum as $\pi \doteqdot {\partial \mathcal L \over \partial \dot \phi}$. The Hamiltonian then is $\mathcal H \doteqdot \pi \dot \phi - \mathcal L$.  This rubs me the wrong way. It seems weird to be defining a quantity that puts special emphasis on time if you want a relativistic field theory. I would expect something like defining various momenta as $\pi^\mu \doteqdot {\partial \mathcal L \over \partial (\partial_\mu \phi)}$ and the Hamiltonian as $\mathcal H \doteqdot \pi^\mu \partial_\mu \phi - \mathcal L$, but I've never seen anyone use this.  I get that the Hamiltonian is the generator of time translations, but why should I care about it in the context of a relativistic field theory?


So my SSL is using SNI, Bing doesn't want to index my site because of that and also some other sites are having problems. Such as reddit.  Is it possible to detect if client supports SNI?  I was thinking something like:  if (sni_support)  - force https  else  - http   I'm using latest Apache2 on Ubuntu.


Calculate impact force when time is not mentioned

I've found the following statement in       A 7 g object (shown in centre) shot at 7 km/s (23,000 ft/s), the   orbital velocity of the ISS, made a 15 cm (5.9 in) crater in a solid   block of aluminium.   We can clearly see that there is no mention of time difference.I know that we can calculate Force(F) from change in momentum.  Here   initial v = 7 km/s  Final v = 0 Km/s  m = 7 g  My question is, is there any way to calculate the impact force when time is not present in description.


$\operatorname{Hom}(-,A) \cong \operatorname{Hom}(-,A') \Rightarrow A \cong A'$, proof verification

This is from  .      Let $\mathcal{A}$ be a locally small category, and let $A,A' \in \mathcal{A}$ with $\operatorname{Hom}(-,A) \cong \operatorname{Hom}(-,A')$. Prove directly that $A \cong A'$.     My thoughts:      Let $\eta$ denote the natural isomoprhism between the two functors.    We have    $$H(A,A) \xrightarrow{ \eta_A} H(A,A')$$   So $\eta_A(id_A): A \rightarrow A'$ is a candidate. Now I want to construct inverse.    $$ H(A',A') \xrightarrow{\eta_{A'}} H(A',A)$$   Then the map $\eta^{-1}_{A'} (id_{A'}):A' \rightarrow A$.    So I'd like to show that the composition is identity. By the naturality condition of $\eta$, from $H_A(A) \rightarrow H_{A'}(A')$ (and similarly on other direction)    $$ \eta_A(id_A) \circ \eta^{-1}_{A'}(id_{A'}) = \eta_{A'}(\eta_{A'}^{-1}(id_{A'}))= id_{A'} $$   We deduce these two maps are inverses. Hence $A' \cong A$.    Is this correct? Or is there a neat way to see this?


I have an 8-year-old dual boot laptop, but it won't start Ubuntu or Windows. When selecting Ubuntu, I get a BusyBox, that mostly says:  failed command: READ FPDMA QUEUED blk_update_request: I/O error, dev sda, sector 552058008     Are there any software solutions or is this machine doomed?  I tried for example:  dd if=/dev/sda of=/dev/sda   but it didn't have any effect.  I don't care if I lose all my data, I just want it to be alive again.    I did the smart check via a live CD, and when I first visited the Disks, the /dev/sda was OK, with 57 bad sectors. After running a short and a conveyance, the test failed:    Does that mean that me disk is dead?   All the attributes have an OK assessment in the smart test, so there might be hope. Moreover, if I choose "Check disc for defects" from the live CD, it completes, with no errors found.


Why we won't extract heat from air temperature?

There is a lot of energy in air's temperature? Why don't you harvest it? There is always difference that creates flow which can be piped into something converting it to mechanical energy...


I'm writing a simple code to test the value that was inputted to my constant value.  I declared this code as my constant value.  String LetMeThrough = "drunk"; String GotAnID = "drunk";   This is the whole code.  import java.util.Scanner;  public class Main {  public static void main(String[] args) {     Scanner DrunkTest = new Scanner(System.in);      String InputDrunk;     String InputDrunkAgain;      String LetMeThrough = "drunk";     String GotAnID = "drunk";        System.out.print("Type drunk: ");     InputDrunk= DrunkTest.next();     System.out.print("Re Type drunk: ");     InputDrunkAgain = DrunkTest.next();      if(InputDrunk == LetMeThrough & InputDrunkAgain == GotAnID){         System.out.print("You're not DRUNK");     }     else         System.out.print("You're F***** DRUNK");  }}   The problem is that if I type "drunk" on both. I will get "You're F****** DRUNK" instead of the "You're not DRUNK". When the inputted values is the same as my constant values.


How to cite a paragraph that is copy and pasted from another source?

I’m writing the master thesis, and I’d like to know if the following text would be appropriate or not. Consider the middle paragraph is copy-pasted from the source      In this section, I will briefly overview the Lipsum dummy texts and full details can   be found in the source [1].      Lorem Ipsum is simply dummy text of the printing and typesetting   industry. Lorem Ipsum has been the industry's standard dummy text ever   since the 1500s, when an unknown printer took a galley of type and   scrambled it to make a type specimen book. It has survived not only   five centuries, but also the leap into electronic typesetting,   remaining essentially unchanged. It was popularised in the 1960s with   the release of Letraset sheets containing Lorem Ipsum passages, and   more recently with desktop publishing software like Aldus PageMaker   including versions of Lorem Ipsum.      Bibliography: [1] Source, formatted in APA, IEEE, …


Are there dialects where "would have" is used to describe a factual event long in the past?

I've recently noticed that a few people I know, all native American English speakers in their 50s-70s and originally from the Midwest, use "would have" and related forms when talking about factual events that happened relatively long ago.  Here's a made-up example of what I mean:  Upon seeing George Washington's house, one might say "This is where Washington would have lived." instead of "This is where Washington lived."  Another example: "I would've been born in that hospital." as equivalent to "I was born in that hospital."  This sentence, however, isn't an example: "I would have had lunch with her every day last week." It doesn't work because it's insufficiently far in the past.  As @Cascabel notes, it's better to have real examples than made-up ones. So, I hopped on the phone and asked one of the "would have" users a history question (he's a baseball historian) without mentioning my goal. Sure enough, here are a few non-made-up examples:   "He would've been there from 1941-1963, excluding a brief period he took off for the war." "My father would've taken me to see him for my tenth and eleventh birthdays." "It wouldn't have been uncommon for baseball players to have had second jobs back then - it certainly wasn't like today."   Is this a regionalism? A generationally-related usage? Or is it some other phenomenon I don't know the name of? I've only seen a handful of people do this, so, for all I know, they're the only ones.  Is there a name for this sort of usage? I'm not quite sure what to call it, which has made searching for it somewhat difficult, and it's very possible that I've missed an already existing answer.


Difference between char *argv[] and char **argv for the second argument to main()

CODE 1  #include<stdio.h>  int main(int argc, char *argv[]) { int j; printf("%d", argv[1][0]); return 0; }   CODE 2  #include<stdio.h>  int main(int argc, char **argv) { int j; printf("%d", argv[1][0]); return 0; }   CODE 1 and CODE 2 both give same output. but argument 2 of main function in CODE 1 and CODE 2 are different. Array of pointers are created above data section at compile time. argv is array of pointers. Then we should declare argument in main function as pointer to pointer to character i.e., **argv. How it is correct to declare as in CODE 1?


Be $G$ a group with subgroups $U$ and $V$ and be $UV := \left\{uv \mid u \in U, v \in V \right\}$  I want to prove the following:      $UV$ is in general no subgroup of $G$.   Proof. Be $U \nsubseteq V$ and $V \nsubseteq U$. Be $x \in U \setminus V$ and $y \in V \setminus U$.  Hence $xy \in UV$ but $xy \notin U \cup V$. This implies $\left(xy \right)\left(xy\right) \notin UV$ per definition of $UV$, hence $UV$ is no subgroup of $G \quad \square$  But I also want to give an explicit counterexample beside this proof. Could you give me a hint in which group I should look for the easiest counterexample?


My professor used the word authentification in a lecture. I have always used authentication. Is it a real word or is authentication the correct term?


Are there any drawbacks to selling stocks in a low net income year and then rebuying stocks to reach a larger cost basis?

My current income would place me in the 0% long-term capital gains bracket currently, while I anticipate them to be 15% within my working years that commence in 2018.   My stocks (an index fund) have appreciated about 50% since I bought them (most of these should be capital gains).   Wash sale rules would probably prevent me from investing in the stocks for 30 days, which means I'm expected to lose out on <1% growth.    If I anticipate liquidating the stocks before retirement (in my working years), shouldn't I go ahead and do a sell-rebuy in order to make the next cost basis larger (which reduces the next long-term capital gains on the next sale)?


"Ignore this user (everywhere)" doesn't affect star board

Using "ignore this user (everywhere)" option in chat hides all messages from selected user in the feed.        But it doesn't affect star board. I.e. if ignored user has starred message it's visible anyway.   Is it normal behaviour for such option?


Is infinity a number? Why or why not?  Some commentary: I've found that this is an incredibly simple question to ask — where I grew up, it was a popular argument starter in elementary school — but a difficult one to answer in an intelligent manner. I'm hoping to see a combination of strong citations and solid reasoning in the answers.


Movie about a space station and an evil baby from a rock?

It's from the late 60's or early 70's... It's a sci fi. All I remember is a space station with a bunch of people on it, one of the scientists was a woman. They were doing research of some kind on a rock... And they managed to beam an evil baby out of the rock. The scientists wanted to kill it... All except the woman scientist. She tried to save it and feed it... Damn thing had sharp teeth. In the end the baby was uncontrollable and the woman decided to beam her and the baby back into the rock... She went with the baby so it would have a mother  that's all I can remember.  Up to the challenge??


Need help in the longtable with the figure

Can u please help me in this table. The problem in this table that is not move to the next page in a proper way and kindly mention the size of the figure as well as the place of the figure. \begin{longtable}[c]{@{}|c|c|c|c|c|c|c|c|c|@{}} \caption{Bacteria isolates on different media} \label{tab:my-table}\\ \toprule \textbf{Sr.No} &   \textbf{Reference Code} &   \textbf{Sample Location} &   \textbf{Colony Color} &   \textbf{Colony Morphology} &   \textbf{Pigmentation} &   \textbf{Media} &   \textbf{Predicted Name Of Strain} &   \textbf{Figures} \\* \midrule \endhead % 1 &   EMB(P)1 &   Islamabad &   Green sheen &   Circular &   Green Sheen &   \begin{tabular}[c]{@{}c@{}}Eosin methylene\\    \\ blue agar\end{tabular} &   \textit{\textbf{E.coil}} &    \\* \midrule 2 &   MSA(P)1 &   Islamabad &   Yellow &   Punctiform &   Yellow &   Mannitol salt agar &   \textit{\textbf{\begin{tabular}[c]{@{}c@{}}Staphylococcus\\    \\ Epidermidis\end{tabular}}} &    \\* \midrule 3  & MACC(P)1 & Islamabad & Off white       & Circular  & Off white       & MacConkey agar     & \textit{\textbf{Salmonella}}              &  \\* \midrule 4  & MSA(P)2  & Islamabad & White           & Circular  & White           & Mannitol salt agar & \textit{\textbf{Staphylococcus   aureus}} &  \\* \midrule 5 &   B.A(P)1 &   Islamabad &   White &   Smooth &   White &   \begin{tabular}[c]{@{}c@{}}Blood \\    \\ Agar\end{tabular} &   \textit{\textbf{Pseudomonas   aeruginosa}} &    \\* \midrule 6  & B.A(P)2  & Islamabad & White           & Circular  & White           & Blood agar         & \textit{\textbf{Lactobacilli}}            &  \\* \midrule 7  & MACC(P)2 & Islamabad & Pink            & Circular  & Pink            & MacConkey agar     & \textit{\textbf{Klebsiella}}              &  \\* \midrule 8  & MACC(P)3 & Islamabad & Purple          & Irregular & Purple          & MacConkey agar     & \textit{\textbf{pseudomonas}}             &  \\* \midrule 9  & MSA(P)3  & Islamabad & Crystal White   & spherical & Crystal White   & Mannitol salt agar & \textit{\textbf{Salmonella}}              &  \\* \midrule 10 & B.A(P)3  & Islamabad & White           & Puntiform & White           & Blood agar         & \textit{\textbf{Staphylococcus}}          &  \\* \midrule 11 & MACC(P)4 & Islamabad & Orange to amber & Circular  & Orange to amber & MacConkey agar     & \textit{\textbf{Shigella}}                &  \\* \midrule 12 & MSA(P)4  & Islamabad & Yellow          & Circular  & Yellow          & Mannitol salt agar & \textit{\textbf{S. aureus}}               &  \\* \midrule 13 & MACC(P)5 & Islamabad & Pink to purple  & Circular  & Pink to purple  & MacConkey          & \textit{\textbf{Klebisella}}              &  \\* \bottomrule \end{longtable}


Get name of variable in extension Method

I wrote an extension method for strings which I'm using for logging the name, the value and the "source" of the string which calls the method. Source meens from which class or methods comes the string. For example Program.Main() or ClasXY.ToString() ... It looks like this  public static void LogMe(this string str, string memberName, string methodName) {     WriteToLog(DateTime.Now, memberName, methodName, str); }   Is it possible to get the name and the source of the string directly from the string object in my extension method? Something like this  public static void LogMe(this string str) {     string memberName = str.myName;     string methodName = str. mySource;     WriteToLog(DateTime.Now, memberName, methodName, str); }


How do I find the right ubuntu kernel for an i686 CPU?

I burned a copy of Ubuntu to dvd, I went to install it on an Acer Aspire 5610z which had vista. I removed vista and put xp on it about 3 or 4 years ago. My problem is that I now have a black screen with the following two lines of text at the top:  This kernel requires an x86-64 CPU, but only detected an i686 CPU. Unable to boot - please use a kernel appropriate for your CPU  My question is how and where do I find a version of Ubuntu that will work with my CPU?


I came across a theorem that involves inequality in a normal distribution: For $z> 0$, the function $\Phi \left ( z \right )$ satisfies the inequality  $$\left ( \frac{1}{z}-\frac{1}{z^{3}} \right )\phi \left ( z \right )\leq 1-\Phi \left ( z \right )\leq \frac{1}{z}\phi \left ( z \right ) $$ Notes: $\phi \left ( z \right )= \frac{1}{\sqrt{2\pi }}e^{\frac{-z^{2}}{2}}$ is the density and $\Phi \left ( z \right )= \frac{1}{\sqrt{2\pi }}\int_{-\infty }^{z}e^{\frac{-z^{2}}{2}}dz$ is the cdf.  So how to prove this? Efforts have been made to search for answers to similar questions but those are not quite relevant to what I am looking for. Thanks in advance!


How do I extract specific URLs from an HTML file

I have an HTML file, without any formatting. I want to extract URLs of the form */ending and only those URLs.  What is the best way to go about doing this?  This question is NOT a duplicate. The other question is asking about pulling the contents of a specific named DIV. This is asking how to pull a list of URLs, fitting a specific format.


Volume of a solid created by an extended tetrahedron

Every edge of a tetrahedron with length $p$ is extended through the vertices by $p$. Now all 12 points create a new solid $J$ of which I seek the volume dependent on the volume of the tetrahedron in the centre.  With some help the solution becomes clear: The whole Volume of all pyramids is: $$V_P=4\cdot\frac{1}{6}\cdot\left(\frac{a}{\sqrt{2}}\right)^3 +4\cdot\frac{1}{6}\cdot\left(\sqrt{2}a\right)^3 =\frac{3}{\sqrt{2}}a^3 \tag{1}$$ The side of the large cube is $$s=\frac{3}{\sqrt{2}}a\tag{2}$$ and the Volume is respectively $$V_C=\left(\frac{3}{\sqrt{2}}a\right)^3=\frac{27\sqrt{2}}{4}\cdot a^3 \tag{3}$$ The last step is subtracting the Volume of the pyramids. $$V_J=V_C-V_P= \frac{27\sqrt{2}a^3}{4}-\frac{3}{\sqrt{2}}a^3=\frac{21\sqrt{2}a^3}{4} \tag{4}$$ Thx for the help.


I try to import an obj file and make a rendered image, by a python script. How to center the view to the mesh?  I've tried bpy.ops.view3d.view_selected() but i get this error:  Traceback (most recent call last):   File "<string>", line 1, in <module>   File "<string>", line 43, in <module>   File "J:\Programmi\blender-2.75a-windows32\2.75\scripts\modules\bpy\ops.py", l ine 189, in __call__     ret = op_call(self.idname_py(), None, kw) RuntimeError: Operator bpy.ops.action.view_selected.poll() failed, context is in correct


Defining sMAPE as $$sMAPE=\frac{2}{h}\Sigma_{t=n+1}^{n+h}\frac{\left\lvert Y_t-\hat{Y_t}\right\rvert}{\left\lvert Y_t\right\rvert+\left\lvert\hat{Y_t}\right\rvert}*100$$ where $Y_t$ is the value of the time series at point $t$, $\hat{Y_t}$ the estimated forecast, $h$ the forecasting horizon and $n$ is the number of the data points available in-sample. My question is regarding what is the value/range of sMAPE where the developed model would be acceptable. I know for MAPE it is said to be proper model when the measure is less than 20%. Is 20% the threshold for sMPAE as well? Thank you in advance.


I have tried to look at many answers to this question, since it is a rather common one, but with no satisfactory answer up until now. The truth of the story is: Hermione was crying in the girls bathroom because of Ron's comments and didn't know about the loose troll, which is why Ron and Harry came to warn her. The story Hermione tells: She read about trolls and thought she could take it on by herself. Harry and Ron probably saved her life. What seems to be the ideal story: Simply leave out the part about crying because of Ron's comments, there are other obvious reasons why one might be in a bathroom. Possible answers that could make sense:  The bathroom she was in wasn't the closest one to the great hall, so she would have had to explain why she was in that particular bathroom. Apparently she has been there "all afternoon", so perhaps that's why she needed to make sure not to reveal that she has been crying because of Ron and instead say she went looking for the troll. But this would raise the question of why she assumes the teachers would know for how long she was already in the bathroom. Hermione assumed that Ron and Harry wanted to fight the troll. She didn't know they came to save her so she decided to take the blame instead.  Do any of these answers make sense? If not, I don't see any reason why she would lie. A common answer to this question is "She wanted to shift the blame onto herself" but she wouldn't really accomplish that since Harry and Ron still disobeyed teachers orders in order to save Hermione regardless of her motives.


Trying to find a story about an unborn telepathic baby who can save a spaceship from doom

There's a spaceship, nearing the end of its journey. Everybody on board is in cryosleep. For some reason the wake-up system malfunctions, and the ship will fly on indefinitely. The people at the space port realise this, and try to wake someone up. Their last resort is finding someone on board who is telepathic, and wake this person up. They find one, but it turns out to be an unborn baby.


Avoid redundancy in formula in Google Sheet

Say I have a long expression (i.e. with a lot of characters) expr. I want to give a cell the formula =if(expr>10,expr,0) (this is an example, the condition could also be =if(iserror(expr),expr,0)). Although the syntax is very simple, the expression can be very long and tedious to debug.   Would there be a way to "map" a function to expr, something like =map(if(#>10,#,0),expr)  (but of course # is not a appropriate) so that expr appears only once?  Edit Just to make the answer clear: it is not possible to map functions in such a way, using only Google Sheet's functions.


Remove duplicates ArrayList custom object

I have an ArrayList which contains element of a class Event. Event has two properties, Name and Timestamp. The list now shows ALL events. I want to remove the duplicates with the same name, but different timestamp, and put them in another list. This way the user can click on an event with that name, then select a date.  I am already overriding the function equals (that compares name AND timestamp) for some other functionalities in my application.  How can I solve this?


Revoke Google Login Credential in Favor of Something Else

For professional reasons, I am abandoning my google account, possibly deleting it, and switching to a SE id or other account. If possible, I would like to keep my reputation that I have built up over time.   The existing related questions seem to suggest one does not change the log in account but "add" a new one. I am not sure if that applies to my situation. I would appreciate it if someone could give some brief advise for this matter.  Question: Is there a way to keep my reputation while revoking my google account that I used to set up the log in the beginning or would I have to start from scratch?


Examining the practical, impactful, real-life benefits of getting a degree in philosophy It is often asked, "What is the practical use of philosophy?" or "How will learning about philosophy impact real-life?" It is easy to see why there is such mystery surrounding the topic. Most schools up through high school may only offer 1 or 2 courses on it, if any. It is also often talked about in general conversation as a "wishy-washy" subject, often negatively, as though it contains no answers but only raises an endless series of questions. To add to this, those who hear of the subject but know very little of it may be surprised to see it offered at their university as a major. It is clear to most why some people would want to major in Computer science, Mathematics, or Physics. But what would a degree in philosophy get you?


I want to download backup archives from one server to another. The server has a script that delivers the latest backup archive, the file has specific name for each date. I want wget to preserve that name.  When I run:  wget -q --content-disposition 'http://server.example.com/get/latest'   it does just what I want. I can also download the file with a browser.  However, when I put this in a shell script and try running it as cron job nothing happens. I don't see any errors in /var/log/syslog.  Here's the whole shell script:  #!/bin/sh wget -q --content-disposition 'http://bkp.www1.linux.local/get/latest'   I also tried #!/bin/bash, same result.  What am I doing wrong?


GSON throwing null pointer exception when a field is missing in json  ReviewClass:  public class ReviewClass { private String name;  private List<Review> reviews;  public String getName() {     return name; }  public void setName(String name) {     this.name = name; }  public List<Review> getReviews() {     return reviews; }  public void setReviews(List<Review> reviews) {     this.reviews = reviews; } }  class Review { private String name;  public String getName() {     return name; }  public void setName(String name) {     this.name = name; }  }   Main code:  ReviewClass reviewResults = gson.fromJson(reader, ReviewClass.class); System.out.println(reviewResults.getReviews().get(0).getName());   JSON(no review field):   {"itemId":978998,"name":"Palet","salePrice":15.88,"upc":"708431191570","categoryPath":"Toys}   So, the GSON throwing null pointer exception when there is no "reviews" field in json. PLEASE HELP ME.


Add Button listener with delegate to stop updating method argument

Suppose I have a canvas in Unity and I want to create 5 buttons in it. Every time I press a button, it will state This is button n.i, where i goes from 0 to 4. This is the code I've been using so far: public Button buttonPrefab; //set from inspector void SetButtons() {     Button newObj;     for (int i = 0; i < 5; i++)     { //loop 5 times, creates a button using buttonPrefab and assign ButtonNumber() method to it         newObj = Instantiate(buttonPrefab, transform);         newObj.onClick.AddListener(delegate { ButtonNumber(i); });     } } void ButtonNumber(int nButton) {     Debug.Log($"This is button n.{nButton}"); }  I use onClick.AddListener to assign a Method to the button, and since the Method requires argument I've been passing them using delegate. The problem is that, for every button I press, the result is always This is button n.5. All buttons always seem to be updating according to the latest value of i, even though I'd want the Methods to save the i value at the time it was assigned. I could make the script work by using this script: public Button buttonPrefab; //set from inspector void SetButtons() {     Button newObj;     for (int i = 0; i < 5; i++)     {         newObj = Instantiate(buttonPrefab, transform);         switch (i)         {             case 0:                 newObj.onClick.AddListener(delegate { ButtonNumber(0); });                 break;             case 1:                 newObj.onClick.AddListener(delegate { ButtonNumber(1); });                 break;             case 2:                 newObj.onClick.AddListener(delegate { ButtonNumber(2); });                 break;             case 3:                 newObj.onClick.AddListener(delegate { ButtonNumber(3); });                 break;             case 4:                 newObj.onClick.AddListener(delegate { ButtonNumber(4); });                 break;         }     } } void ButtonNumber(int nButton) {     Debug.Log($"This is buton n.{nButton}"); }  But I wouldn't call it a "smart" solution. Is there anything I can do to make the buttons work in the first script?


How can I find a post I believe was deleted?

I posted, possibly on softwareengineering.stackexchange.com, a question saying that a couple of recent bits of breakage on my Mac made me wonder if Apple was still being warm and fuzzy to the Unix community. (One was problematically frequent Terminal.app crashes; I don't remember the other one.) I believe the question was closed and possibly deleted as out of scope.  I would like to have what I wrote available for a blog post not intended to be under the Stack Exchange umbrella, but I'm having difficulty locating it; egosearches under apple.stackexchange.com and softwareengineering.stackexchange.com do not seem to show this post, and Google egosearches (site:stackexchange.com JonathanHayward Terminal.app) do not appear to show my post.  Am I correct in guessing that the post is not turning in searches because it was deemed off-topic? Is there any way any of the moderators here could fish it up?


I wanted to use the parallel hint that would give the best performance in my query which is a equi-join query where the two tables are in a cluster and the join column is a cluster index. I wasn't sure if I should use the parallel option on one of the tables PARALLEL(table1, 4), both of the tables PARALLEL(4) or on the clusters index PARALLEL_INDEX(index_name, 4)? Here was my query:  SELECT /*+ USE_HASH(a, b)  */ a.NAME     ,b.price     , FROM Customer a     ,Sales b WHERE b.Cust_id < 2000     AND b.Cust_id = a.Cust_id;   Here is the execution plan for this query:


Redirect to new page using Lightning Quick Action

I am having a quick action with lightning component . The component checks for some condition and redirect to the new page of case object.  So now when the user click on quick action a modal window is opened which is the default behaviour of quick action lightning component and then the page is redirected to the case new pagge based on certain conditions .  My question here is , is there any possibility to hide this modal pop up from displaying to the user ??  Coz now the user See an empty modal Pop up and then gets redirected to the new case page .


I am new to Linux and currently need to upgrade the httpd on RHEL7 from 2.4.6 to 2.4.41, to fix CVE-2018-1312. Can someone help me with the command to do this? Do I also need to take any backups before I upgrade?


In what order should I watch the various Stargate TV Series?

I am unfamiliar with the (multiple) Stargate shows and films, other than the movie which I saw a while ago. I want to try watching the series to see if it is something that I like.   What are the non-subjective facts about the series (without spoilers) that I should be aware of when figuring out which series to start with, for example the original airing order of the series, chronological order of the series, frequency of references to a series other than the one that I'm watching, etc.


Prove that the ideal of $\mathbb{R}[x]$ generated by $x^3-x^2+x-1$ and $x^4+3x^2+2$ is a prime ideal

Prove that the ideal of $\mathbb{R}[x]$ generated by $f(x)=x^3-x^2+x-1$ and $g(x)=x^4+3x^2+2$ is a prime ideal.  Also, prove that  the ideal generated by $r(x)=x^3-x^2-x+1$ and $s(x)=x^4+x^2-2$  Call the ideal generated by these two polynomials $P$. For $P$ to be prime we need that if $a(x)b(x) \in P$ then $a(x) \in P$ or $b(x) \in P$.   So i didn't make too much progress on this yet, hah, as of right now i'm trying to figure out a mistake I must have made in my algebra somewhere finding the roots of $g(x)$... So the roots of $g(x)$ are $(+/-)i,(+/-)\sqrt{2}$ but when i multiply the corresponding factors $(x-i)(x+i)(x+i\sqrt{2})(x-i\sqrt{2}$) I get $(x^2+1)(x^2+2)=x^4+4x^2+2$... so I don't know why the three keeps turning into a four.. Man i think i need a break.  Anyway if anyone can help me resolve the smaller problem which I have dug myself and the actual problem I asked that would be very helpful. Thank you!


Is there any good reason that an empty set of round brackets (parentheses) isn't valid for calling the default constructor in C++?  MyObject  object;  // ok - default ctor MyObject  object(blah); // ok  MyObject  object();  // error   I seem to type "()" automatically everytime. Is there a good reason this isn't allowed?


Anime: boy spawns down monsters, including a floating eyeball, is saved by an adult from drowning when diving to look for a boat

When I was younger like 6-7, I used to watch an anime.  There was a guy, he looked more realistic than other animes. I remember something that he could spawn down monsters (I remember one monster which was like a floating eye something like that). I also remember in later episodes that they would bunch up as a group, the guy, a girl kinda the same age as him with both an older guy and a woman.  I remember tiny parts of some episodes like one they would be running from the bad guys on roof tops or something like that.  I also remember that in one episode, the two guy were going on a dive to a boat wreck, the younger one passes out and is about to drown but the older one saves him and gets him back up.  I used to watch the anime on a French channel on TV, it was dubbed in French.


How can I make a bevel, like in the "Gibson," for my personal inscription? Is there an automatic method to do so?


Take $x_1, x_2,...,x_{10}$ such that $\sum_{i=1}^{10} \sin^2(x_i) = 1$ with $x_1, x_2,...,x_{10}$ on $\left[0,\frac{\pi}{2}\right]$, prove that $3 \sum_{i=1}^{10} \sin(x_i) \leq \sum_{i=1}^{10} \cos(x_i)$.   I tried to do this: $$\sum_{i=1}^{10} \sin^2(x_i) = \frac{ n-\sum_{i=1}^{10} \cos(2 x_i)}{2} = 1 \rightarrow \sum_{i=1}^{10} \cos(2x_i) = 8$$ So i said $\sum_{i=1}^{10} \cos(2x_i) = A$ and $\sum_{i=1}^{10} \sin(2x_i) = B$. Therefore: $$A + Bi = \sum_{i=1}^{10} \operatorname{cis}(2x_i) = \sum_{i=1}^{10} \operatorname{cis}^2(x_i)$$ But I make no idea about how I will get the inequality. Anybody can help me?


Why an acceleration vector which is perpendicular to the velocity vector does not change the magnitude of the velocity vector?

In uniform circular motion I studied that centripetal force acts on a body which goes in a circle. This centripetal force is required because the body is continuously changing its velocity vector as it goes around the circle. We know that rate of change of velocity vector is acceleration. Thus there is some acceleration which causes the velocity vector of the body to change with time and this acceleration also means that there must be a force by Newton's second law. But my question is when a acceleration vector is perpendicular to the velocity vector why doesn't the acceleration vector change the magnitude of the velocity vector and why does it only change the direction of the velocity vector? Even in uniform circular motion in my book it is written that the centripetal acceleration which is acting on the body on changes the direction of the velocity vector as it is perpendicular to the velocity vector of the body and it does not change the magnitude of the velocity vector. An acceleration vector can always change the magnitude of the velocity vector if it is at an angle to the velocity vector other than $90°$. But why when acceleration vector is perpendicular to the velocity vector it only changes the direction of the velocity vector and not the magnitude of the velocity vector? Can someone please explain why?


IntelliSense not working but it is enabled

This problem is really proving to be a tricky one (and quite annoying).  In SQL Server Management Studio 2008, up until a few days ago my IntelliSense was working great.  Then all of a sudden it stopped.  The icon as it as enabled on the toolbar menu, and under Tools -> Options -> Text Editor -> T-SQL -> IntelliSense it says it is enabled there.  I have tried refeshing the IntelliSense cache with Ctrl-Shft-R but that doesn't work either.  Any ideas what happened to my IntelliSense and what I need to do to get it back?


Improve my palindromic substring program performance and what is O(n) O(n2)

Here I wrote a program that will print longest palindromic substring in a given string.. Here can you suggest me how to improve performance of this program..  void longestPalindrome(){      String str = "malayalam";     String pal = "";     int c = 0;     String arr[] = new String[100];     for(int i=0;i<str.length();i++){         for(int j=i;j<str.length();j++){             if(str.charAt(i)==str.charAt(j)){                 pal = str.substring(i,j+1);                 if(pal.length()>2 && checkPalindrome(pal)){                     System.out.println(pal);                     arr[c] = pal;                     c=c+1;                 }                 pal = "";             }         }     }     String newArray[] = new String[c];     System.out.print("The Palindromes are!!-->>>");     for(int k=0;k<c;k++){         newArray[k] = arr[k];         System.out.print(newArray[k]+",");     }     System.out.println();     if(newArray.length>1){     for(int i=0;i<newArray.length;i++){         for(int j=i+1;j<newArray.length;j++)             if(newArray[i].length() < newArray[j].length()){                 String temp = newArray[i];                 newArray[i] = newArray[j];                 newArray[j] = temp;             }     }     }     if(newArray.length>0)         System.out.println("The LONGEST PALINDROME --- "+newArray[0]);


Lost Lydia, i think she fell off a cliff

I seem to have lost my companion Lydia, i noticed she was gone after a big battle but i couldn't find her corpse anywhere, so i assume she fell of the bridges into the canyons at the sorcerer academy place.  Is there anyway to get her back? the save has already been overwritten


Answer posted after question was put on hold?

was put on hold as "Primarily opinion-based" by user-voting on 2016-11-13 12:02:08. Yet, an answer was posted 55 minutes later on 2016-11-13 12:57:34.  How is that possible?


What would happen to the Sun if you reflect all its emitted e.m. radiation back?

What would happen to the Sun if you would reflect, in whatever way, all the outgoing electromagnetic radiation (Solar winds can be neglected)?


What is the chance that at least two people were born on the same day   of the week if there are 3 people in the room?   I'm wondering if my solution is accurate, as my answer was different than the solution I found:  Probability that there are at least 2 people in the room born on the same day = 1 - (No one was born on the same day) - (Exactly one person was born on the same day)  There are (3 choose 2) different pairs of couples. Each couple has the same birthday as another couple with the chances of 1/7 and different with chances 6/7. Thus:  $$1 – (6/7)^3 – 3(1/7)(6/7)^2 = 0.0553$$  Thanks for any help!


How to log processes throughout workday?

Basically, I want to track which processes are running and their cpu % throughout the day to pinpoint random freezing and slowness. I would like to go in to a text file and see a log of the previous days processes, or something to that effect.


What software/package can be used to draw something like this?

I refer to Allen Hatcher's famous book on Algebraic Topology:   What software or LaTeX package can be used to draw those figures? Or are those best hand drawn?  Thanks for any help!


How do you tell if your fermentation is stuck?

How long do you wait before taking corrective action if your fermentation doesn't start?  Are there any other good ways to tell if it's just taking a while to get going?


Fitting known size polygons into irregular polygons using ArcGIS Desktop?

I have a task that sounds simple, but I just can't get through the last step. I need to find suitable areas where wind farms that have a size of 500x150 meters, could be placed. The restrictions are slope - best areas are form 0-2 degrees and 2-3 degrees are worth considered - and a 3 km buffer from the selected location. Data used here was SRTM as this is preliminary study. My workflow was to buffer the locations, clip the DEM, create slope, reclass into 3 categories and convert to shapefile.  My categories of reclass are as follows:   First category - 1 = 0-2 degrees - green; Second category - 2 = 2-3 degrees - orange; Third category - 3 = all other data - red.   The issue that I am facing is that I would like know many 500x150 meters polygons can I fit in the green area, without overlapping the orange and red areas and without overlapping the polygon itself. The end result should be a shp with the possible positions for the aforementioned 500x150 meters polygon.   I should also specify that the 500x150 meters polygon can have any position/orientation and that I have access to ArcGIS Desktop 10.6/ArcGIS Pro 2.2/Global Mapper 19 and QGIS and my coding skill relate to very simple tasks that I replicate from other users.  I had a look at  where a similar things is described, but with circles and using ETGeowizard, also an older version of Arcmap.  Also,  is almost what I need, but the answers are just to above my level.  EDIT: the purple area is an existing possible location drawn by hand. I am  trying to figure out the maximum number of 500x150m polygons that can be mosaic-ed into the green area. They don't necessarily have to touch each other.


javascript stopping a repeating setTimeout function

I have a function that functions as a countdown timer for a simple pomodoro clock I'm building. Now I want to stop this function when the user clicks a reset function. I though I'd pass it a simple if statement that returns something and therefore terminates the function before the countdown iterates again but the function keeps on going. Any idea what's going on here is appreciated. Code below, can also check the whole thing on .    function countdown(blocker) {     if (blocker === true) {       return true;     }      else {       setTimeout(function() {         time -= 1;         updateTimer();         if (time > 0) {           countdown();         }       }, 1000);     }   }   calling the function like this doesn't stop it once it gets going:  countdown(true);


Finding $\int_0^{\infty}xe^{-\lambda x} \, dx$

How to integrate:  $$\int_0^\infty x \, \lambda e^{-\lambda x} \, dx$$    I tried using integration by parts:  Let $u = x$ and $dv = \lambda e^{-\lambda x} \, dx$  Then $du = dx$  And $v = - \lambda e ^{-\lambda x}$  Correct so far?   Then   $$\begin{aligned} uv - \int v \, du &= -\lambda x e^{-\lambda x} - \int (- \lambda e^{- \lambda x}) dx \\ &= -\lambda x e^{-\lambda x} - \lambda e^{-\lambda x} \end{aligned}$$    The correct answer from lecture notes      UPDATE 2  Let $u=\lambda x$ and $dv = e^{-\lambda x} dx$  Then $du = \lambda \, dx$  $$dv = e^{-\lambda x} \, dx$$  Let $y = -\lambda x$  Then $dy = -\lambda \, dx$  So $dx = -\frac{1}{\lambda} dy$  $$\begin{aligned} v &= \int e^u \cdot - \frac{1}{\lambda} du \\ &= - \frac{1}{\lambda} e^{-\lambda x} \end{aligned}$$  But here I seem to have an extra $- \frac{1}{\lambda}$ in $v$?  If I continue using integration by parts, I get:   $$-x e^{-\lambda x} + \color{red}{\frac{1}{\lambda}} \int e^{-\lambda x} \, dx$$


Show that if U is a principal ultrafilter then the canonical inmersion is an isomorphism between $\mathcal A$ and $Ult_{U}\mathcal A$

Show that:  If $U$ is a principal ultrafilter, then the canonical inmersion $j$ is an isomorphism between $\mathcal A$ and $Ult_{U}\mathcal A$


Can I pass through a USB Port via qemu Command Line?

I'm launching a VM using qemu-system-x86_64. I know two ways to pass through a USB device.  Say for example, I had a mouse that showed up in lsusb like  Bus 003 Device 011: ID 6ade:9582 Amazing Mouse Maker   I could pass it through using  -device usb-host,vendorid=0x6ade,productid=0x9582   or  -device usb-host,hostbus=3,hostaddr=11   Neither of these I really like. If I grab it by Vendor/Product ID then I will never be able to reclaim that mouse until the VM is turned off.  If I grab it by BUS and Device number, then I will have to tell Qemu to reacquire it if I unplug it.  Is it possible for me to send it by Port (the actual physical slot)? Say it's plugged in to Bus 3 Port 2. Can I pass it by that?


How does the utility "sort" work? (why does it not work the way I think it should?)

I have 2 text files:  $ cat /tmp/test1 "AAP" bar "AEM" bar "AA" bar "AEO" bar "A" bar  $ cat /tmp/test2 "AEM" foo "AAP" foo "A" foo "AEO" foo "AA" foo   I want to sort them  $ sort /tmp/test1 "AA" bar "AAP" bar "A" bar              <-- "A" is in position 3 "AEM" bar "AEO" bar  $ sort /tmp/test2 "AA" foo "AAP" foo "AEM" foo "AEO" foo "A" foo              <-- "A" is in position 5   Why does "A" end up in position 3 in /tmp/test1 and in position 5 in /tmp/test2?  My expectation is that each character per column will be compared.   As such, when comparing column 3, 'A', 'E' and '"' will be compared against each other, and this would be the ultimate determinant in the final sort order of this test data.  Clearly my expectation is wrong, so how does sort work, if not in the way I expected?  Is there command line option to sort or some other utility I can use to get the sort order I desire?


"Guess What am I cooking" vs "Guess What I am cooking"

I'm really confused between these two. Please help.


True or false statement: For all $a \in \mathbb{Z}$ and $p$ prime we have that $a^p \equiv a \mod{p}$

True or false statement: For all $a \in \mathbb{Z}$ and $p$ prime we   have that $a^p \equiv a \pmod{p}$   I formed it to $$a^p \bmod p = a \bmod p$$ and then inserted several different numbers and I always got the same result. Statement must be true but I don't really have a proof (not required because only a "yes" or "no" is needed). Anyway, I would be interested in knowing if I'm right and especially how this could be shown.


I created Rest post method for inserting new lead record but in lead Sobject there is Campaign Lookup filed name is 'Campaign' but when i save this method i got the error "Error: Compile Error: Invalid field Campaign for SObject Lead at line 53 column 5"  @HttpPost  global static void CreateRecord()  {      RestRequest req = RestContext.request;     Blob body = req.requestBody;     String bodyString = body.toString();      //Deserializing the data sent into concrete SFDC objects     LeadUtils jsonwrap =(LeadUtils)JSON.deserialize(bodyString,LeadUtils.class);      //Initlize the lead object     Lead ledID = new Lead();     Campaign camp =new Campaign();     camp =[select Name from Campaign where Name =:'SmartQuote'];     //Get requested parameter one by one     ledID.SQ_Account_ID__c = jsonwrap.AccountID;     ledID.FirstName = jsonwrap.First_nm;         ledID.LastName = jsonwrap.Last_nm;     ledID.Phone = jsonwrap.Phone;     ledID.Interest_Type__c='Other';     ledID.Rating='Hot';     ledID.LeadSource='SmartQuote';     ledID.Campaign =camp.Name;     ledID.Industry='Other';     ledID.Email = jsonwrap.Email_id;     ledID.Company= jsonwrap.Company;      // insert lead record in salesforce      insert ledID;     RestContext.response.addHeader('Content-Type', 'application/json');      // Return a single Lead as an example      RestContext.response.responseBody =       Blob.valueOf(JSON.serialize((Lead)[Select ID from Lead where ID=:ledID.ID]));  }  }


Unintuitive equalities between floating numbers

For example, 2.0**53 == 2.0**53 + 1 returns True. I understand it's something related to floating numbers representation, but can someone explain?


NullPointerException- I don't know where

sorry for expanding NullPointerException flood :D  I have read tons of questions about NullPointerException but I can't figure out where is problem in my code.  problematic line:  if(userAgent.doc.innerHTML().contains("haha")   I tried String x = userAgent.doc.innerHTML(); and to use condition on the next line but is there is still:  Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.jaunt.Document.innerHTML()' on a null object reference  Please any idea what I did wrong?  Surrounding code:  private class AT extends AsyncTask<Void, Void, Void> {         @Override         protected Void doInBackground(Void... voids) {             UserAgent userAgent = new UserAgent();             toSearch += 50;             while (visited.size() < toSearch) {                 try {                     userAgent.visit(currentUrl);                     Elements elements = userAgent.doc.findEvery("<a href>");                     for (Element e : elements) {                         String url = e.getAt("href");                         if (!toVisit.contains(url) && !visited.contains(url) && url.contains(stayAt))                             toVisit.add(url);                     }                 } catch (Exception e) {                     e.printStackTrace();                 }                 visited.add(currentUrl);                 if(userAgent.doc.innerHTML().contains(key))                     recipes.add(currentUrl);                 toVisit.remove(0);                 currentUrl = toVisit.get(0);             }             return null;         }     }   Thanks a lot for advice! :)


Can anyone explain why a semi-simple finite dimensional Lie algebra $\mathfrak{g}$ has to be perfect ?   The natural way to prove something like that would be to look to the algebra generated by the Lie brackets, which when $\mathfrak{g}$ is not perfect would be expected to be solvable. But it doesn't seem to work.


this is my first time here, and I have this question:  I'm writing my thesis, that includes many tables and figures in a float environment, with the caption at the end of it. I defined the space between the end of float's caption and the next paragraph. This works fine, but when I forced to stay when I tiped (with [h]), this space (between caption and next paragraph) is bigger. Of course, one of the items that will be evaluated, is the spaces (they all must be the same).  So, my question is: How can I solve this?  There is an example of the code I'm using: (TexShop —Mac Os 10.6.8)  \documentclass[letterpaper,12pt,oneside]{book} \usepackage[spanish,es-lcroman]{babel} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage[font=small,format=hang,parskip=1pt]{caption} \usepackage{ctable} \usepackage{float} \raggedbottom \begin{document} \setlength{\textfloatsep}{10pt}  \setlength{\abovecaptionskip}{10pt} \setlength{\belowcaptionskip}{5pt} ... \end{document}


Ive been watching some tutorials on how to do fancy shaders and stuff and ive been finding them very hard to follow as their UI is very different to mine. This is what i want my UI to look like, however i cannot find anything on the internet that suggests there are different UI settings in blender.     This second image is what my UI looks like at the moment I am also using blender 2.79


AppleID can I transfer data without using the same one?

I don't want to use the same Apple ID on my new phone as on my old phone because it got messed up, however I don't want to have to buy each app twice. Is there a way I can without using the same Apple ID? Same goes for music.


Convert 64GB USB flash drive from exFAT to FAT32

I used a C400 64GB USB2 Flash Drive EMTEC green to record digital MP4 using a converter of VHS tapes and transferred them to a PC. This has worked very well. But a moment after I deleted one by one all the processed files, I found that by viewing the properties, approximately 2GB of the space remained occupied when no files were reported.   That had already been the case with key 8 or 32GB, because recording ended badly, and in this case I proceeded to reformat to recover all available space.   So I reformatted the default key with exFAT 64B and 32 kilobytes. But since then I can no longer use the key on the converter. As I do not know what the characteristics of this key were before reformatting, I sent a request for information to EMTEC to be able to reproduce the initial format that worked correctly.   But I received no response. I tried to format in FAT32 but can not do it because I have such options as exFAT or NTFS for reformatting the key. Who can help me find my intitial formatting Flash Drive


Check template type and perform respective computation

I am trying to create a Generic class to handle float and doubles. I need to perform computation according to the type of the variable (float or double), but I am not sure whether the following implementation is the right way to do it. Need some suggestions on it.  // computeFloat is a method of some other class which actually computes and returns a float value float computeFloat() {    float a;    ....     return a;  }  // setFloat is a method of some other class which actually sets a float value void setFloat(float val) {   ..... }  TestClass<T> : IDisposable {  public void getValue(ref T val) {    if(val is float)    {       object retVal = computeFloat();       val = (float)retVal;    }    else    {         throw new Exception(" Not implemented");    } }  public void setValue(T val) {    if(val is float)    {       object obj = val as object;       float retVal = (float)obj;         setFloat(retVal);    }    else    {         throw new Exception(" Not implemented");    }  }     }


How to find out the date the OS was installed?

Is there a way that I can get the date that the current OS (for example, Windows 7) was installed?


Showing there is no triplet of positive integers $(a,b,c)$ satisfying $a^7+b^7=7^c$

Show that $$a^7+b^7=7^c$$ has no positive integer solutions $(a,b,c)$.   I've posted a general and way too long approach as an answer. How may one prove the claim more briefly and specifically?


Is ${\bf Z} \times {\bf Z}$ elementarily equivalent to ${\bf Z}$?

Consider ${\bf Z}$ as a first-order structure in the language $\{0,+,-\}$ of abelian groups.  Is ${\bf Z} \times {\bf Z}$ elementarily equivalent to ${\bf Z}$ and why?  I think they are not elementarily equivalent.


Alternative to deprecated Suspend method for threads?

I have general exception handling in my Winforms app like this:  static void Main() {     Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);     AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);      Application.EnableVisualStyles();     Application.SetCompatibleTextRenderingDefault(false);     Application.Run(new CustomApplicationContext());      Environment.Exit(-1); }  static void Application_ThreadException(object sender, ThreadExceptionEventArgs e) {     ShowException(e.Exception); }  static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) {     ShowException(e.ExceptionObject as Exception);     Thread.CurrentThread.Suspend(); }   What is the alternative to the Suspend method and what is the correct to use it in the above scenario?


I have recently taken a look into bounties, yet one thing has started to ponder me.  I see an awful lot of users with very low reputation with 50+ bounty questions, am I missing something?  I have looked into  and this has simply confused the matter further.   How can users with >50 bounty or even >75 for that matter be able to set bounties? Especially when they do not have enough reputation to even cover that bounty.  An example of this would be:


Require the "Other" off-topic close reason to be specified

It appears that it's possible to select the "Other" off-topic close reason, and vote to close without actually providing a close reason. This results in a custom close reason and comment which read:     This question appears to be off-topic because it is about     It should be required that someone actually alter the comment text before being able to submit the "Other" close reason.


Import looks fine in texture preview but not material preview--why?

I'm new to Blender. I've imported an OBJ scene and am using Blender Internal to render. The preview looks fine in "texture" mode. But a single object (the door) becomes the default color in "material" mode and when rendered. I've compared the settings between the objects and they look the same to me but obviously are not. What should I be looking for and why would this happen with an OBJ & MTL file?  Thank you, d. vyd


Is food contaminated with swarf due to polishing metal plates or sharpening knives safe for our body?

Swarf is a word for metal particles or debris produced in polishing metal with abrasive tools. For example, swarf can be produced when polishing teppanyaki grill or sharpening knives.  I often see Kebab sellers who don't wipe their knives after sharpening and cut cooked meat.  Teppanyaki grills are often polished but without washing them thoroughly. Without any doubt many people still consume such contaminated food as if it is safe.  Is it safe to eat food contaminated with swarf? Is there any scientific article that support the conclusion?


Punctuating a sentence which is a question followed by statement

Which is best?  Do we need to walk to the supermarket, as we have a car?  OR  Do we need to walk to the supermarket, as we have a car.


Resolving skew and determining the back transformation function

I have a skew variable and I want to use box-cox transformation (log) but around 50 observation out of 200 are between 0 and 1.  My initial thought was to add a constant to all observations before taking the log. Is it a good idea?  If I do add this constant, how can I determine the back transformation function?


tl/dr : Is it/will it be possible to fill out our Careers CV with localized information ?  Is it/will it possible to have different versions of the CV posted at careers (not totally different but just translated)?  Being in non English oriented country, this can be very helpful if I send local companies a link to my Careers CV and they could read it in a language other than English. LinkedIn has an implementation of this feature where you can create your profile in another language and it's up to the user to fill in the information in that language (first and last name, past experiences, etc)  The reason for this is primarily because my CV on careers contains more than just a list of bullet points, it reveals who I really am as a software developer (top tags, top answers, links to github projects, etc).


Ubuntu 16.04 on my Lenovo doesn't see my network card, neither Wifi/ethernet connections

I've bought a lenovo thinkpad t470p and I've installed Ubuntu 16.04 but I cannot connect to internet. It seems that Ubuntu doesn't recognize the network card.


What is the difference between redirection 2>&1 1>file.txt and >a.txt 2>&1?

What is the difference between redirection ./prog 2>&1 1>file.txt and ./prog >a.txt 2>&1? It looks that ./prog 2>&1 1>file.txt doesn't save stderr to file but this ./prog >a.txt 2>&1 does.


Why is channel capacity a factor of bandwidth instead of frequency?

I'm trying to understand the concept of capacity for a wireless channel.  Some help would be appreciated.  For a AWGN channel capacity is calculated as:  $$C=B \cdot log_2(1 + S/N)\text{ bits/sec}$$  B = bandwidth.  This is what I don't understand.  Why isn't it a factor of frequency? To me considering bandwidth only makes sense in cases where the system changes frequency.   Bandwidth is the difference between an upper and lower frequency range.  Well, what if I'm using a fixed-frequency signal?  Fupper and Flower would be the same value, right?  So does that mean B=0?  So a fixed frequency signal can't carry any data?  We know that's not true, AM radio does it.  So what am I missing? According to this formula, a fixed-frequency signal would have the same performance regardless of whether it's at high or low frequency.  This makes no sense to me.  For example say my bandwidth is 1Hz at a fixed frequency of 1Hz.  Compare this with a bandwidth of 1Hz at a frequency of 2.4GHz.  It's plainly obvious that I can cram way more bits into 2.4 x 109 cycles/second than I can with just 1/sec.  But according to this formula I can't.  Please help. What about fractional differences?  Waveforms are analog in nature, so we could have a 1Hz signal and a 1.5Hz signal.  Likewise at the high frequency range.  Say 2.4GHz minus 0.5Hz.  There is an infinite amount of space between 1 and 1.5.  Could not 1Hz and 1.001Hz serve as two separate channels?  In terms of practicality I realize this would be difficult, nearly impossible to measure this difference with modern electronics, especially with noise added, but in pure theory you could have two channels.  So in that sense, shouldn't there be an infinite amount of bandwidth between two frequencies?  Or do we only count in 1Hz whole number increments?