I dual boot Windows 10 and Ubuntu 18.04. Every time after switching between the two systems the clock time seems to be off. Can somebody please tell me how to fix this issue?

Dual boot system Windows XP Pro and Ubuntu 12.04.  I have the bios set for the correct time and Ubuntu set for US Eastern time.  Ubuntu will boot up and the time will be off by -4 hours.  If I correct the time in Ubuntu then when I boot up in Windows XP the time will be off by + 4 hours.  This is a fresh install of 12.04. I did not have this problem before reinstalling Ubuntu.


I am creating generic decorator-pattern classes and in one decorator implementation I am trying to access a nested class of the class which I use as a template argument, like this: class A { public:     class Nested     {     }; };  template<class GenericClass> class SomeDecoratorImplementation  {     void doSomethingWithNestedClass(GenericClass::Nested& nested) {} };  Why does this work: class A { public:     class Nested     {     };          class Listener     {     public:         virtual void somethingChanged() = 0;     }; };  template<class GenericClass> class SomeDecoratorImplementation : GenericClass::Listener {     void somethingChanged() override {} };  int main() {     SomeDecoratorImplementation<A> test; }  but not this? class A { public:     class Nested     {     };          class Listener     {     public:         virtual void createdNestedClass(Nested& nested) = 0;     }; };  template<class GenericClass> class SomeDecoratorImplementation : GenericClass::Listener {     void createdNestedClass(GenericClass::Nested& nested) override {} };  int main() {     SomeDecoratorImplementation<A> test; }  This results in the following error:  To further simplify the question, why does this not compile? Shouldn't the type GenericClass::Listener be logically the same as GenericClass::Nested for the compiler? Why is inheritance here possible, but composition not? template<class GenericClass> class SomeDecoratorImplementation : GenericClass::Listener {     void createdNestedClass(GenericClass::Nested& nested) {} };

In templates, where and why do I have to put typename and template on dependent names? What exactly are dependent names anyway?    I have the following code:  template <typename T, typename Tail> // Tail will be a UnionNode too. struct UnionNode : public Tail {     // ...     template<typename U> struct inUnion {         // Q: where to add typename/template here?         typedef Tail::inUnion<U> dummy;      };     template< > struct inUnion<T> {     }; }; template <typename T> // For the last node Tn. struct UnionNode<T, void> {     // ...     template<typename U> struct inUnion {         char fail[ -2 + (sizeof(U)%2) ]; // Cannot be instantiated for any U     };     template< > struct inUnion<T> {     }; };   The problem I have is in the typedef Tail::inUnion<U> dummy line. I'm fairly certain that inUnion is a dependent name, and VC++ is quite right in choking on it. I also know that I should be able to add template somewhere to tell the compiler that inUnion is a template-id. But where exactly? And should it then assume that inUnion is a class template, i.e. inUnion<U> names a type and not a function?


I am trying to scp the files from machineB to machineA. I need to run the scp command from machineA to copy files from machineB to machineA.  The file that I need to copy from machineB is -   /bat/data/snapshot/5.data   And where I need to copy the file into machineA is -   /data01/primary   in which I have root access as well and /data01/primary has only root credentials.  Below is the ls -lt on machineA  david@machineA:/$ ls -lt  drwxr-xr-x   3 root root  4096 Nov  7 17:43 data02 drwxr-xr-x   3 root root  4096 Nov  7 17:42 data01 drwxr-xr-x   4 root root  4096 Nov  7 17:26 opt   So I was trying the below scp command on machineA to copy the files -   scp david@machineB:/bat/data/snapshot/5.data root@machineA:/data01/primary   but I am always getting -   Host key verification failed.   I do have root access to machineA but not root access to machineB. And I can ping machineB from machineA as well. And both machines are in production domain as well.

I can connect to another Ubuntu machine in my LAN via SSH. On both of then PC's I installed   but from another Ubuntu computer I can not connect to my PC via SSH and I got this error:     Host key verification failed...


In the beginning of "Quantum Field Theory for the Gifted Amateur," there is the statement:     Every particle and every wave in the Universe is simply an excitation of a quantum field that is defined over all space and time.   To an naive (not gifted) self-studier, this came as quit an eye-opener. Over the course of a non-physics education, one tends to get so used to the existence of atoms, protons, electrons,etc., even subatomic particles, that it is easy to overlook where they came from.  So the above remark is a nice resolution. Then my question is, where do these quantum fields come from.   Further, with a subsequent assertion that, e.g., all protons are perfectly alike, as mentioned on pdf page 9 of Prof. Tong's notes:    in that "there is a sea of proton stuff filling the universe," if this sea fills the universe, then where do the seas of other particles fit in - and how do they keep things straight amongst themselves.  Maybe this is too broad a question, or, more likely, I am inadequately versed in these matters. But I would appreciate any help or reference suggestions.  Thanks

There was a reason why I constantly failed physics at school and university, and that reason was, apart from the fact I was immensely lazy, that I mentally refused to "believe" more advanced stuff until I understand the fundamentals (which I, eventually, never did). As such, one of the most fundamental things in physics that I still don't understand (a year after dropping out from the university) is the concept of . No one cared to explain what a field actually is, they just used to throw in a bunch of formulas and everyone was content. The school textbook definition for a field (electromagnetic in this particular case, but they were similar), as I remember it, goes like:  An electromagnetic field is a special kind of substance by which charged moving particles or physical bodies with a magnetic moment interact.  A special kind of substance, are they for real? This sounds like the authors themselves didn't quite understand what a field is so they decided to throw in a bunch of buzzwords to make it sounds right. I'm fine with the second half but a special kind of substance really bugs me, so I'd like to focus on that. Is a field material? Apparently, it isn't. It doesn't consist of particles like my laptop or even the light. If it isn't material, is it real or is it just a concept that helps to explain our observations? While this is prone to speculations, I think we can agree that in scope of this discussion particles actually do exist and laws of physics don't (the latter are nothing but human ideas so I suspect Universe doesn't "know" a thing about them, at least if we're talking raw matter and don't take it on metalevel where human knowledge, being a part of the Universe, makes the Universe contain laws of physics). Any laws are only a product of human thinking while the stars are likely to exist without us homo sapiens messing around. Or am I wrong here too? I hope you already see why I hate physics. Is a field not material but still real? Can something "not touchable" by definition be considered part of our Universe by physicists? I used to imagine that a "snapshot" of our Universe in time would contain information about each particle and its position, and this would've been enough to "de" it but I guess my programmer metaphors are largely off the track. (Oh, and I know that the uncertainty principle makes such (de)serialization impossible — I only mean that I thought the Universe can be "defined" as the set of all material objects in it). Is such assumption false? At this point, if fields indeed are not material but are part of the Universe, I don't really see how they are different from  except for perhaps a more geeky flavor. When I talked about this with the teacher who helped me to prepare for the exams (which I did pass, by the way, it was before I dropped out), she said to me that, if I wanted hardcore definitions,  a field is a function that returns a value for a point in space.  Now this finally makes a hell lot of sense to me but I still don't understand how mathematical functions can be a part of the Universe and shape the reality.


On my laptop, about every half hour, a window pops up and closes again very quickly.  I think it is a program that starts and stops really fast. I want to know which program that is.  Is there a way to find out which program is starting and stopping?  Already looked in the task scheduler, registry run and run once but did not find anything.  Also looked in the event viewer, but cannot find anything or I'm searching in the wrong place.

I have windows 10 home and from time to time I see a command line window popping up for less than a second. I want to find out which process is causing that. It's not very often that this window pops up so I need some tool that can run for a long time.  Does anyone have a good idea?  Regards Tobias


As I am doing revision, I stumble upon a proof in one of my computer science books (sparse with proofs). At one point they mention that to compute the equality of bit strings, then they check if  $$a \bmod p = b \bmod p$$ and states that this is only true if $p$ divides $|a-b|$, which they denote as $$p \uparrow |a - b|.$$  Note that $p$ is a prime.  Why is this?

I was reading through a proof of the following proposition:  $$a\equiv b\!\!\pmod{m}\iff (a\bmod m) = (b\bmod m)$$  i.e. $\ a \equiv b \pmod{\!m} $ if and only if a and b leave the same remainder when divided by m   I came across a statement that I didn't quite understand. I boxed my area of confusion below:   I am confused because I expected the inequality to be $ 0 \leq r_1 - r_2 < m$. How did they come to the conclusion that $ -m < r_1 - r_2 < m$  Any input is appreciated.


so I try to use a string variable in the if statement but it seems it doesn't work like int and double and other primitive data types, why? Pls help my code: import java.util.Scanner; public class Something{    static void Some(){       Scanner input = new Scanner(System.in);       String answer;              System.out.println("Hello Sir, what can I do for you?");       answer = input.nextLine();              String i = "2";              if(answer == i){          System.out.println("Sure Sir ");       }              else{          System.out.println("Sir, anything?");       }    }      public static void main(String [] args){       Some();    } }  input:2 output: Sir, anything?

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


I need a good monk mini, no weapons, ideally female elf. Where can I find one?  Material (lead vs plastic) and painted vs. unpainted is useful to know but are all doable.

Is there somewhere you can get minis corresponding to the class, race and sex of adventurers, be it singles or a giant collection of minis?  For example: I might be looking for a male elf druid and a female half-orc fighter.


I'm trying to install Ubuntu 18.04 on my Win10 notebook. I have alredy booted my stick and did everything right. When Im booting I try to run the version 18.04 and it appears the black screen of ubuntu loading, but after a few seconds its appears the message of the title: "Booting kernel failed: Invalid Argument". I tried other suggestions that I searched but no one has fixed my problem. My stick is formatted with FAT and has the 18.04 ubuntu. Please, could someone help me?

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


I have this piece of code below and it's working fine, the issues is that when it goes up if I use bulgarian characters everything comes out like Ð¡Ñ‚Ñ€Ð°Ð½Ð°Ñ‚Ð° Ð½Ð° Ñ‡ÑƒÐ´ÐµÑÐ°Ñ‚Ð  But when I add bulgarian stuff from the admin menu (Opencart) display in Bulgarian.   The Database table 'name' is in utf8_general_ci.     <?php include 'config.php'; $servername = DB_HOSTNAME; $username = DB_USERNAME; $password = DB_PASSWORD; $dbname = DB_DATABASE; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) {     die("Connection failed: " . $conn->connect_error); }   $sql = "UPDATE product_description SET name = REPLACE(name, 'The amazing spiderman Phone', 'Страната на чудесата')";  if ($conn->query($sql) === TRUE) {     echo "Record updated successfully"; } else {     echo "Error updating record: " . $conn->error; }  $conn->close(); ?>

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


Is there a function or class in PHP that I can pass a MySQL recordset and I get a JSON string returned that can be passed back to a JavaScript function in an Ajax request?  something like this:  function recordSetToJson($recordset) {  while($rs1 = mysql_fetch_row($recordset)) {   for($count = 0; $count < count($rs1); $count++) {    //  read and add field to JSON   }   $count++;  }   return $jasonstring }

How do I use the json_encode() function with MySQL query results? Do I need to iterate through the rows or can I just apply it to the entire results object?


I want to know how to share wireless connection and create a wireless hotspot.  On Windows i use "netsh wlan set hostednetwork mode=allow ssid=myssid pass=mypass". And then "netsh wlan start hostednetwork".  ubuntu 14.04 64-bit dual-booted with windows 7.  Thanks.

How can I set up my WiFi to be used as wireless access point on Ubuntu Server?  I have a local Ubuntu Server, it has a wireless card in it (802.11a/b/g/n) and I really want to set it up as an 802.11n access point since my normal access point does not support N.  It needs to work as a switch as well so I can connect and get DHPC through.  Edit: I don't see Network Manager as a good solution since it depends on a lot of X11 packages, and i don't want that on a server.


On my Math.SE account, it says "user was removed" and 5 reputation was deducted. What does this mean?

Message appearing when a user was removed.     It seems I lost 1765 reputation points on Stack Overflow yesterday. The reason given in my history is "removed", with the description of "User was removed ()". I don't understand what that means. What caused this?


I'm creating a web application that retrieves data from the database based on the criteria entered. The problem is that I have 10 different search fields and only one of them is required to be filled, the rest can be null.  So what I have is:  Textbox1 Textbox2 .. .. Textbox10   My current query is:  checked = false; if (Textbox1.Text != null) {    result = //query here    checked = true; }  if (Textbox2.Text != null) {     if(checked==false)     {        result = //new query here        checked = true;     }      else     {          result = results.Where(...new query to filter Textbox2 from previous          query)     } }   and so on.  How can I build this in one query and ignore the textboxes that don't have values?  Thanks

We're working on a Log Viewer. The use will have the option to filter by user, severity, etc. In the Sql days I'd add to the query string, but I want to do it with Linq. How can I conditionally add where-clauses?


in QGIS I have a polygon layer with overlapping features. While this is not ideal (and I am currently changing this), I am wondering whether I can in any way affect the order of the features displayed. My smaller feature is in the background, so I can´t see it (and have a harder time editing it, though I am solving this by making the overlapping layer transparent).   I have tried sorting the attribute table differently, this does not affect the order of display of the features in my layer.   Any ideas?

Probably a very basic question here, I want to change the draw order of a shapefile in QGIS, how can this be done?  As you can see in the picture below, only the "10" layer is shown, the others are below it... However, since this is a depth map of Skagerrak, I would like the other layers to show up on top of it.


first of all my specs: I'm using Ubuntu 16.04, my lens is a Tamron 18-270mm F/3,5-6,3 Di II VC PZD and I'm using Darktable 2.0.6. I updated my lensfun library using the .  My problem: in the lenscorrection module the name of my lens is shown correctly, but all other options are 'greyed' out (see picture below) although the tamron lens is listed correctly in the lensfun .xml file (slr-tamron.xml) under /usr/share/lensfun.   How can I get it to work again? Am I missing something?

I took some raw (CR2) photos and want to edit them in darktable. The focal length is quite low and the distortion high.  Usually I correct the distortion by using darktable's lens correction module which automatically chooses the right values based on the exif information. It works for DSLRs but for this very camera the values are not known.    My question:   What's the way to correct the distortion in darktable, if I cannot choose the right objective from the drop down menu in the lens correction module? How do I determine the values? Which values should I choose?


Can I perform 'sudo' actions with different password other than my login password?  Is there any way to achieve this?

When installing Ubuntu I can create a user with an encrypted folder, what I always do. Now after the installation the login password for this user is also the sudo password. Is that how it should be? I actually would like to have a different user login and sudo password, does is make sense? Should I do that, how?


I tried this code that I found in the net in order to print the location of the camera in each frame of the animation.  import bpy  camera=bpy.data.objects['Camera'] sce = bpy.context.scene  for f in range(sce.frame_start, sce.frame_end+1):     sce.frame_set(f)     print("Frame %i" % f)     print(camera.location)   After execution I get a fix location while the animation is fine.   I get like this:   <Vector (-35.4940, -2.9554, 5.3437)> Frame 41 <Vector (-35.4940, -2.9554, 5.3437)> Frame 42 <Vector (-35.4940, -2.9554, 5.3437)> Frame 43 <Vector (-35.4940, -2.9554, 5.3437)> Frame 44 <Vector (-35.4940, -2.9554, 5.3437)> Frame 45 <Vector (-35.4940, -2.9554, 5.3437)> Frame 46 <Vector (-35.4940, -2.9554, 5.3437)> Frame 47 <Vector (-35.4940, -2.9554, 5.3437)> Frame 48 <Vector (-35.4940, -2.9554, 5.3437)> Frame 49 <Vector (-35.4940, -2.9554, 5.3437)> Frame 50 <Vector (-35.4940, -2.9554, 5.3437)>`   How can I rectify the code ?  I have tried also the code given in this discussion :     but it doesn't work. I get the following error :   AttributeError: 'NoneType' object has no attribute 'action'   What is the problem?  Thank you

I'm trying to track the (x,y,z) location of an animated object. For a small test, I translated the default cube ('Cube') along the x axis and baked keyframes. The animation plays fine.  I adapted the suggestion for  to try and print the location at each keyframe.  import bpy cube=bpy.data.objects['Cube'] for f in cube.animation_data.action.fcurves:     for k in f.keyframe_points:         pos=cube.location         print(pos)   Run from the shell, the output is  <Vector (0.0000, 0.0000, 0.0000)> <Vector (0.0000, 0.0000, 0.0000)> <Vector (0.0000, 0.0000, 0.0000)> ... <Vector (0.0000, 0.0000, 0.0000)>   If I go to the last keyframe and execute cube.location, it correctly returns  Vector((6.924227714538574, 0.0, 0.0))    How can I get the location at each keyframe?


I want to find the value of  and want to mask the first 4th of the text field to another character when the length of the text field is 4 or greater.   but I don't know well asp.net skill. help me plz.  here is some html in body tag  <body>     <form id="form1" runat="server">         <div>             <input type="text" runat="server" id="input1" name="input1" value="TestText" />             <input type="button" runat="server" class="btnCnvt" name="btnCnvt" id="btnCnvt" value="convert" onclick="GetValue()" />         </div>     </form> </body>   here is javascript :(  <script type="text/javascript">         function GetValue()         {               // Don't Work!!!(not fount 'value' attribute)               var str = document.getElementById("input1").value;         } </script>

I have this label control in my web page  <asp:Label ID="Label1" runat="server" Text="test"></asp:Label>   And when the page rendered the id of the control changes to something like this    test   How can I stop asp.net from changing IDs in order to perform a jQuery operation like this  $('#label1').html(xml);


Can someone explain why this has the unexpected result:  ["1", "2", "3"].map(parseInt);   which returns [1, NaN, NaN] instead of [1, 2, 3]？  I can make it work by forcing a single-argument function:  ["1", "2", "3"].map(function(s) {return parseInt(s);});   but I don't know what exactly went wrong in the first way.

From the :  [1,4,9].map(Math.sqrt)   will yield:  [1,2,3]   Why then does this:  ['1','2','3'].map(parseInt)   yield this:  [1, NaN, NaN]   I have tested in Firefox 3.0.1 and Chrome 0.3 and just as a disclaimer, I know this is not cross-browser functionality (no IE).  I found out that the following will accomplish the desired effect. However, it still doesn’t explain the errant behavior of parseInt.  ['1','2','3'].map(function(i){return +i;}) // returns [1,2,3]


How do I set conditions in QGIS (ie. temperature map, show only areas that meet certain condition (avg temp 9-21 celsius) ?  basically, I want my map to show only areas that meet the condition (certain temperature, certain hours of sunlight per years...) stuff like that. Would also be cool if I could overlap those.

I have downloaded Globcover data in GeoTIFF format. I want to create a new grid which only has values where the Globcover data (the only band in the TIF file) has one certain value (==190).  Can I do this with GDAL?  If not, which way should I go? The procedure should be callable from a Shell script (Linux). I have QGIS installed (but no clue how to use it).


Assume you have the War Caster feat and can cast single-target spells instead of making an attack of opportunity.  The  feat says:     When a hostile creature’s movement provokes an opportunity attack from you, you can use your reaction to cast a spell at the creature, rather than making an opportunity attack. The spell must have a casting time of 1 action and must target only that creature.   The description of the  spell says:     Make a melee attack with a weapon. On hit, the target suffers the attack's normal effects and fire leaps to a different creature you can see within 5 feet of the original target.   If there were no adjacent target, would you allow a player to use this spell instead of an opportunity attack?  If you said yes and there is an adjacent creature, would the player be allowed to forego the secondary damage to use it?

The War Caster feat allows a single-target spell ("must target only that creature") to be cast instead of a melee strike for an opportunity attack.  Green-Flame Blade appears to have a single target, and then some damage "leaps" onto a creature 5 feet away. The other creature is never referred to as the target, or even "a target".  I'm pretty sure this is solid from the RAW perspective. Is this legit from a RAI perspective?


It was my friend who asked me this question first. Suppose we have an ideal cell and a wire of resistance zero.Suppose we short circuit the cell using the wire(although we know ideal cells and zero resistance wires are not practically possible). Would there be a potential difference across the wire . I think it ought to be there ; but my friend points to me that no potential difference exist across a zero resistance wire. Please help me.

When a wire with no resistance is connected to the terminals of an ideal battery, will a current exist in the circuit? If a capacitor is added to the circuit, will it be charged by the battery or will it remain uncharged?  In all cases there is absolutely no resistance through the circuits.


Whenever I try to transform any edges, all of the surrounding edges will raise up even if they are not connected.   Does anyone know why this happens and/or know how to turn it off?

My problem is that I sometimes lose the ability to independently translate or otherwise transform any parts of a single mesh. If I try, for example, to just translate several faces, edges, or vertices, then the entire mesh will stretch and displace itself in order to follow the translation. Or, alternatively, if I try to translate just one face then the whole mesh will move as if I'm translating in Object Mode.  I'm not really sure I know how to describe this problem properly. I don't even know how to reliably reproduce it. It seems to happen to any given mesh at random, and it doesn't stop happening to that mesh unless I delete and remake it.  I assume that I must be doing something wrong to cause this to happen. Does anyone have any ideas? Thanks.


When I upgraded from Ubuntu 16.04 to 17.04 I got 2 desktop shells, a default one and Unity 8. Which is the newer one, and how can I get rid of one of them?

Since , how do I uninstall it from my desktop system?  (Please note: This question is not about Unity 7, which is still supported at the time of this writing and should remain installed if present.)


I know that unresolved external symbol means that compiler can't find definition.  I got this error     Severity  Code    Description Project File    Line   Error   LNK2001 unresolved external symbol "private: static class std::set,class std::allocator > VirtualWorld::vWords" (?vWords@VirtualWorld@@0V?$set@HU?$less@H@std@@V?$allocator@H@2@@std@@A) ConsoleApplication11    c:\Users\Laptop\documents\visual studio 2015\Projects\ConsoleApplication11\ConsoleApplication11\Source.obj  1   with this code below (this code is fragments, but it's still generates this error)  #include <set>   #ifndef _TYPE_ID #define _TYPE_ID typedef unsigned int Id; #endif  #ifndef _CLASS_VIRTUALWORLD #define _CLASS_VIRTUALWORLD  class VirtualWorld { private:     static Id freeCounter;     static std::set<Id> vWorlds;     bool holding;     Id virtualWorldId;      static Id hold();     static void release(const Id & i); public:     VirtualWorld();     ~VirtualWorld();      Id getInstance();     void forceRelease(); }; #endif   int main() {      VirtualWorld virWorld;     return 0; }  Id VirtualWorld::freeCounter = 1;  Id VirtualWorld::hold() {     std::set<Id>::iterator iter = vWorlds.lower_bound(freeCounter);     while (iter != vWorlds.end() && *iter == freeCounter)     {         ++iter;         ++freeCounter;     }     return freeCounter++; }  void VirtualWorld::release(const Id & i) {     vWorlds.erase(i);     freeCounter = 1; }  VirtualWorld::VirtualWorld() : holding(false) { }  VirtualWorld::~VirtualWorld() {     if (holding) {         release(virtualWorldId);     } }  Id VirtualWorld::getInstance() {     if (!holding) {         virtualWorldId = hold();         holding = true;     }     return virtualWorldId; }  void VirtualWorld::forceRelease() {     if (holding) {         release(virtualWorldId);         holding = false;     } }   I researched that I'm getting this error then trying to access vWorlds in hold() and release(int) functions. Why I'm getting this error and what should I change ?

What is the best way to initialize a private, static data member in C++?  I tried this in my header file, but it gives me weird linker errors:  class foo {     private:         static int i; };  int foo::i = 0;   I'm guessing this is because I can't initialize a private member from outside the class.  So what's the best way to do this?


My goal is to plot a cartesian plane with a circle centered around the origin, a right triangle touching the origin inscribed in the circle, which has an angle named theta and sides named x and y, the axes shall not be named. Possibly in every single quadrant. I want to make such a plot in order to sort of "explain" the polar coordinates and show how to get the formulae. I know a lot of mathematical LaTeX, but nothing about plotting such graphs whatsoever and would greatly appreciate your help. EDIT: Okay, I'm terribly sorry, that my text was apparently a bit unclear. I added a picture.  I also want to do a similar picture for three dimensional spherical coordinates. I found  and changed it a little bit up. As follows \tdplotsetmaincoords{60}{110} \pgfmathsetmacro{\rvec}{.8} \pgfmathsetmacro{\thetavec}{30} \pgfmathsetmacro{\phivec}{60} \begin{center} \begin{tikzpicture}[scale=5,tdplot_main_coords]  \coordinate (O) at (0,0,0); \tdplotsetcoord{P}{\rvec}{\thetavec}{\phivec} \draw[thick,->] (0,0,0) -- (1,0,0) node[anchor=north east]{$x$}; \draw[thick,->] (0,0,0) -- (0,1,0) node[anchor=north west]{$y$}; \draw[thick,->] (0,0,0) -- (0,0,1) node[anchor=south]{$z$}; \draw[-stealth,color=red] (O) -- (P); \draw[dashed, color=red] (O) -- (Pxy); \draw[dashed, color=red] (P) -- (Pxy); \tdplotdrawarc{(O)}{0.2}{0}{\phivec}{anchor=north}{$\phi$} \tdplotsetthetaplanecoords{\phivec} \tdplotdrawarc[tdplot_rotated_coords]{(0,0,0)}{0.5}{0}{\thetavec}{anchor=south west}{$\theta$} \draw[dashed,tdplot_rotated_coords] (\rvec,0,0) arc (0:90:\rvec); \draw[dashed] (\rvec,0,0) arc (0:90:\rvec); \tdplotsetrotatedcoords{\phivec}{\thetavec}{0}  \end{tikzpicture} \end{center}  But now, I still want to have dotted lines going from the projetion of the point P to the xy-axis Pxy to the x and y axes.

I'm drawing this circle in tikz and as you can see the appearance of the $v_m$ on the xaxis and the yaxis are not visible and also the $V_me^{j\theta}$ is not aligned with the line. Note also that thought the arc have an angle of 50 just like the line's orientation but its not showing the right angle  Those are the commands that I'm using \documentclass[12pt]{article} \usepackage{tikz} \usepackage{xcolor} \definecolor{lava}{rgb}{0.81, 0.06, 0.13} \definecolor{myblue}{rgb}{0.0, 0.30, 0.60} \usepackage{gensymb}  \begin{document}     \begin{tikzpicture}                  % Axis         \draw[thick,->,black] (-3,0)--(3,0) node[below] {$\Re$}; % x axis         \draw[thick,->,black] (0,-2.5)--(0,3) node[left] {$\Im$}; % y axis         %circle         \draw[black,thick] (0,0) circle (2.5cm);         %defining radius points         \node[black,below] at (2.6,0) {$V_m$};         \filldraw[black] (2.5,0) circle (2pt);         \node[black,below] at (0,2.6) {$V_m$};         \filldraw[black] (0,2.5) circle (2pt);                     \draw[ultra thick,->,lava] (0,0) -- (0,0 |- 45:2.5cm)node [black,midway,sloped,above](b1){$V_m\sin(\phi)$}; % UpOn x axis         \draw[ultra thick,->,myblue] (0,0) -- (45:2.5cm |- 0,0)node [black,midway,sloped,below](b){$V_m \cos (\phi)$}; % UpOn y axis         \draw[ultra thick,black,->,rotate=45] (0,0) -- (2.5,0)node [black,midway,sloped,above](b5){$V_me^{j\theta}$};          \draw[thick,black](50:2cm |- 0,0) arc (0:50:2);         \node[] at (20:1.25cm |-20:1.25cm ) {$\phi$};      \end{tikzpicture} \end{document}


According to Newton's 3rd law, when an object moves upward, the Earth moves by a very tiny factor in the opposite of the direction of the object. And when the object falls back, the earth moves back to its original position.  This lead me to think about rockets. When they leave the Earth, many of them don't come back. So, if we were to launch too many rockets with 1000x more speed from the position from which the earth would move towards the Sun (just an arbitrary direction); will it then be possible to move the Earth into the sun considering that none of the rockets which were launched came back?

It's said the earth is approaching the sun. Can we push it away little by little?  Although we can emit rocket towards the sun, but it's too expensive to make a rocket:    So I think maybe we can recycle the rocket, at first, the rocket is send out with a very fast speed, so give back a big force to the earth. And then, we let the rocket slowly comes back to the earth, and re-send it again:    Well, this solution sounds a little inefficient. Still I don't know if it works. Better ideas?  EDIT  Umm.. It seems the earth is leaving the sun. That's ok. Then, the question is how can we push the earth towards the sun, i.e., correct the orbit by human force? Even if the sun turns into a red giant someday, we may finally find a way to put the earth at a safe position far enough from heat.


The new Samsung Gear watch won't charge from my 1amp nor 2.1amp USB charger brick ports.  I'm assuming this is because its own power charger is rated at 5v .14amp?  So the watch dock has some kind of protection circuit.  I am VERY rusty on my electronics (been almost 30 years!), and Current was always my weakest area to begin with...  I'm planning to build a current limiting circuit:   My question is:  Based on the formula on the circuit design I=.7/R2, to limit to .14amp I would need an R2 value of 5ohm 1watt.  Since I'm having a tough time finding that, I'm assuming that I can use two 10ohm 1watt resisters in parallel?  EDIT Not sure why this was tagged as a "duplicate" of a power supply question, when my question was specifically related to parallel resisters.  I prefaced my question, (which was good because I learned a few things) but I call out my specific question in bold, and tagged an answer that was specific to that question.

Power supplies are available in a wide range of voltage and current ratings.  If I have a device that has specific voltage and current ratings, how do those relate to the power ratings I need to specify?  What if I don't know the device's specs, but am replacing a previous power supply with particular ratings?  Is it OK to go lower voltage, or should it always be higher?  What about current?  I don't want a 10 A supply to damage my 1 A device.


Whenever I apply UV textures to a mesh, the texture looks flat after I rendered it. How to give it normal or bump maps? im doing animations cinematics not a game.

i dont know what's it called in the CG world so here's a screenshot from payday 2 AK-47. it's really just a texture, not an actual holes and bolts.    how do you make those in blender ?


I bought a samsung 370R, it has BIOS version P07RAN, I followed the instruction to install 13.04, it created partition all good and then   whenever I restart computer, and hit on "ubuntu" as one of the options to load, it gives me this error "Windows failed to start....  File: \ubuntu\winboot\wubildr.mbr  Status: 0xc000007b  Info: The application or operating system could not be loaded because required file is missing or contains error   Big thanks for any help in advance.

I want to install 13.04 (or higher) using wubi, is that possible?


I have lg android phone with the following error msg popping up: LTE: ESM-O EMM-19 MIP: 67 CAN ANYONE TELL ME WHAT IT MEANS AND HOW TO GET RID OF IT.

I have an LG G2, and recently got a cell phone provided for by my place of work, so I cancelled my Sprint service.  I want to use the phone as a gaming device for my kids, but I keep getting error messages popping up regarding the fact that it cannot connect to the sprint network.      LTE : ESM-0 EMM-19   EHRPD : 5   MIP : 67   They pop up very frequently, and I cannot find a way to disable them.  TL;DR: Is there a way to disable the popup error messages related to no service on a Sprint LG G2?


I wonder what the correct question form of the following sentence is:     Diet Coke has been made since 1982.   Is it correct to say "How long has Diet Coke been made for?" And should we use the preposition "for" or not? Or is there a better way to form a question?

I want to know if this is grammatically correct " How long would the conference be for?".


After some tests I have found that the BIOS is broken.  I have tried to make sure it is the BIOS that's broken. And after unplugging everything unnecessary the same result remains.  And now I would like to replace the broken motherboard with a new one without a direct reinstallation of the operative system. Is this possible?  On the hard drive windows 8.1 is installed and on the motherboard a AMD chip is found.  Is the installation on the hard drive possible to use again? Can the motherboard be upgraded without a reinstallation beeing necessarily?

I am upgrading my PC, but I'm sticking to my old HDD and gfx card. I would like to avoid reinstalling Win 8. Is this possible? Or, at least, is it possible to use Windows 8's refresh pc option?  UPDATE  It worked like a charm. Windows acted as if it was the first boot and displayed the "Getting devices ready %  " progress bar. I am not sure if this proves you can do it in every scenario, but my new gear is relatively modern (some gigabyte board with two PCIe 3.0 slots and USB 3.0 support + i5), so I guess we can agree the reinstall is unnecessary in most cases.


In the original “Birthday Problem”, the year is divided into 365 discrete days, and a “collision” is defined as being born on the same calendar day. Using this definition, two people can be born two minutes apart, but this will not be called a collision because one was born before midnight and the other after midnight. My question is: If we define a collision as being born less than 24 hours apart (possibly in different years), what is the probability of no collisions in a group of m people? I am assuming that the time of birth T (measured in days) is a continuous random variable with a uniform distribution between 0 and 366 (366 is actually 0 for the next year). Clearly an upper limit on this probability is the classic solution for the birthday problem. Can a lower limit be found? Maybe an approximation? Of course I can try simulation, but an analytic solution is better since it can be applied to several engineering problems such as the occurrence of defects on a camera sensor, which cause the picture to be blurred if they happen to be too close together (this is actually the problem I am interested in solving – if there are m randomly distributed defects, what is the probability that no two are close together).

Suppose I get in an elevator every morning and am in it for exactly one minute. A continuous loop of music plays in the elevator and is 10 minutes long.   If my daily arrival time is uniform in the time frame from 8:00 to 8:10, what is the expected number of days until I have heard the entire 10 minutes of the loop? Assume I take the stairs down at the end of the day and so am only in the elevator for one minute per day.


I have a HTML page which is structured in two parts (div), a header and a container part in which some text is displayed. The text in the container part is large, and it is scrollable. I need to get the exact same text displayed on the window and to perform some actions on the displayed text, such as highlight an element. I have found something about getting the scroll position, but what I need is the actual content starting at that position. It is possible to obtain that? Thanks.

I basically need to highlight a particular word in a block of text. For example, pretend I wanted to highlight the word "dolor" in this text:
     Lorem ipsum dolor sit amet, consectetuer adipiscing elit.

     Quisque bibendum sem ut lacus. Integer dolor ullamcorper libero.     Aliquam rhoncus eros at augue. Suspendisse vitae mauris.
  How do I convert the above to something like this:
     Lorem ipsum dolor sit amet, consectetuer adipiscing elit.

     Quisque bibendum sem ut lacus. Integer dolor ullamcorper     libero. Aliquam rhoncus eros at augue. Suspendisse vitae mauris.
  Is this possible with jQuery? Edit: As  , this is quite possible without jQuery - but I was hoping there might be a special method of jQuery which would let you do selectors on the text itself. I'm already using jQuery heavily on this site, so keeping everything wrapped up in jQuery would make things perhaps a bit more tidy.


We already know Euler's candy division problem as follows. How many ways are there to divide n of the same candies among k people so that everyone has at least 1 candy with n≥k. But how many ways are there to divide n different balls into k same boxes so that each box has at least 1 ball with n≥k. for example,  4 balls, 3 boxes: 6 ways  4 balls, 2 boxes: 7 ways  I have read , but I can't get the correct answer.

There are 'n' candies and 't' boxes. Find the number of ways to place the candies in the boxes for each of the conditions (all the candies must be spread out) : (a) candies and boxes are different; (b) candies of the same diiferent boxes should not be empty cartons: (c) candies equally new, boxes are different; Edit :(d) candies are different, the boxes are the same, there should be no empty boxes; (e) candies of different boxes alike.(Edit : candies are different, boxes are equal) Specify the display type that matches the placement, if possible. My Answers : (a) Each layout is encoded with a word of $n$ letters from the alphabet of 't' letters $\implies$ possible $n^t$ variants. (b) Write, $n$ candies in the form of balls ina line, we need to put $(t-1)$ partition in $(n-1)$ place, but we can't put two partitions on one place, so we get : $^{t-1}C_{n-1}$. (c) First we need to choose a candy in a box (in the first box $n$ ways, in the second box $(n-1)$, $\cdots$ in the $t-th$ : $(n-t+1)$ ways $\implies$ total $n!/(n-t)!$ methods, and then we distribute the remaining $(n-t)$ candies into $t$ boxes, this is encoded with owrds from the alphabets (for each candy $t$ variants) $\implies$ $t^{n-t}$. The Answer is : $\frac {n!}{(n-t)!}*t^(n-t)$ Are my answers (a), (b) & (c) are correct? For (d) & (e) I don't know how to proceed? Please help me.


I've been searching through SE-Meta and,from what I can gather, the general consensus is that questions that ask for API & Framework recommendations that can help solve a particular problem are typically marked as "Too Localized" or "Off Topic".  I can understand this reasoning because posting answers to these questions can be problematic.  One of the big reasons (which I do agree with) is that as time progresses, an API can lose support or better APIs could come along and initial answers may become invalid.  Yet, as a developer, I need to find an API or Framework for a specific need in which I'm not to familiar with and having a good recommendation from an expert is invaluable.  Of course, in such a case I start by Googling associated keywords and I tack on "API" to the end of my search.  This usually helps but it doesn't always provide useful results.  For specific needs, it can be difficult to even get a result for an API or framework.    Even worse, there have been occasions where I have found an API, started to use it, and after a month or two of getting my bearings with the API, I'd find out that another API exists, which almost all other developers use and is a considerably better API choice!  Have an expert  or two recommend an API could have saved me weeks (or possibly months) of work if I had started out with the best tool for the job.  With that stated, within the Stack Exchange community is there any away that a user can ask for API recommendations?  It doesn't have to be on Stack Overflow.  If such questions are acceptable on Stack Overflow, what guidelines dictate which API recommendation requests are acceptable and which are not?  I'm a bit confused but I'd imagine there is a way within SE that I can get these types of questions answered by those who are quite familiar within the area of my new development needs.

There is . Is the site appropriate for stuff related to requesting frameworks and libraries? Or should we have another site for that (e.g. name it Frameworks Recommendations or stuff alike)?  I can ask stuff there like: I need a software satisfying W, X, Y, and Z, but I'd like -some day- ask like: I need a Python library satisfying W, X, Y, and Z. The audience may be (and perhaps will be) different.    Is that website on-topic for stuff like that? Or should we open another proposal for that?  No: It's not about asking for a giga-dump for subjectivish questions. The linked-to-dupe question was written and answered with an old mindset and without Software Recommendations in mind. Also it does not consider this specific kind of questions but all the crap in one place. So, no,  is not an appropriate dupe mark for this question.


Given a monic polynomial $f(x)$ of degree $n$ over $Z$ and $k, p \in N$ , prove that if none of the numbers $f(k), f(k + 1),..., f(k + p)$ is divisible by $p + 1$, then $f(x) = 0$ has no rational solution.   Question from 'Problem solving Strategies'.  Here is the solution    Can anyone please explain why the polynomial $g(x)$ should have integral coefficients (2nd line of solution)?

I read "Algebra: Chapter 0" by P.Aluffi. I encountered a topic where it says you can divide any polynomial in $R[x]$($R$ is any ring) by a monic polynomial(that is, a polynomial of the form $x^d + \sum\limits_{i=0}^{d-1} a_i x^{i}$).   It says if $g(x)$ is any polynomial and $f(x)$ is a monic polynomial. Then $\exists \ \ \ q(x), r(x) \in R[x],\: \deg r(x) < \deg f(x): g(x) = f(x)q(x) + r(x).$  I have two questions regarding this:  1) Why $f(x)$ needs to be monic?   2) How can we prove it? The book talk about induction and that if $\deg  g(x) = n > d = deg \ f(x)$, then $\forall a \in R$ we have $ax^n = ax^{n-d}f(x) + h(x)$ for some $h(x): \deg \ h(x) < n$. It's true, but how do I take it from here?


I'm trying to manipulate files in a directory whose filepath includes a directory that starts with "$", for instance:  git rm path/to/file/$dollarsigndirectory/anotherdirectory/file.format   I'm getting the following error:  fatal: pathspec 'path/to/file//anotherdirectory/file.format' did not match any files   EDIT: I've already tried using \$dollarsigndirectory and it simply says there isn't a directory called '\$dollarsigndirectory'  I've tried to troubleshoot but can't figure out why the '$' would make the directory invisible. Thanks!

I was working on a shell script and I accidentally created a file with the variable as its name. Now I have $file in my ls output, and cannot remove it.  What can I do?


I want to know that in PCA analysis or FAMD the lengths of arrows in correlation circle plot(which can be plotted by bellow code) is equal to which parameter(coefficient estimates,cos2,contribution,...) while their coordinates represent their loadings?   fviz_pca_var(res.pca)   res.pca is the result of fitting PCA analysis on our data.  Any help would be greatly appreciated.

I am looking to implement a biplot for principal component analysis (PCA) in JavaScript. My question is, how do I determine the coordinates of the arrows from the $U,V,D$ output of the singular vector decomposition (SVD) of the data matrix?  Here is an example biplot produced by R:  biplot(prcomp(iris[,1:4]))     I tried looking it up in the  but it's not very useful. Or correct. Not sure which.


public class Test {      public static void main(String[] args)      {          String s1 = "HELLO";         String s2 = "HELLO";          System.out.println(s1 == s2);  // true     }   }    But when I use :  public class Test {      public static void main(String[] args)      {          String s1 = new String("HELLO");         String s2 = new String("HELLO");          System.out.println(s1 == s2); // false     }  }    Can anybody please explain the difference here? Thankyou!

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


A $5\times 5$ matrix $A$ satisfies the equation $(A-2I)^3(A+2I)^2=0$. Assuming there are at least $2$ linearly independent eigenvectors for $2$, write all possible Jordan canonical forms.   My Question:  The eigenvalues of $A$ are $2$ and $-2$. If we know the number of linearly independent eigenvectors for $2$, can we determine the number of linearly independent eigenvectors for $-2$?

Here is the exercise:     Let $A$ be a $5\times5$ complex matrix such that $(A-2)^3(A+2)^2=0$, where we define $A-\mu:=A-\mu I$ for scalar $\mu$. Assume that $\lambda=2$ is an eigenvalue of $A$ and its geometric multiplicity is at least $2$. What are the possibilities for the Jordan canonical form (JCF)?   What I know so far from the assumption is that    the minimal polynomial of $A$ is of the form $f(x)=(x-2)^i(x+2)^j$ where $1\leq i\leq 3$ and $0\leq j\leq 2$.  The number of blocks in the Jordan segment $J(2)$ is at least $2$.    One can write the possible minimal polynomial one by one, which gives the information of the size of the largest block in each Jordan segment, and use the possible geometric multiplicity of $\lambda=2$ to find JCF.   Here are my questions:   Is there an alternative approach?  Can we use the characteristic polynomial of $A$ here?


Login form  hi upon clicking the link label on the form an automated mail is sent to ONLY 1 specific email address Email subject : Reset password for [username] Email body : Please reset password for user [username]

I need to send email via my C# app. I come from a VB 6 background and had a lot of bad experiences with the MAPI control. First of all, MAPI did not support HTML emails and second, all the emails were sent to my default mail outbox. So I still needed to click on send receive. If I needed to send bulk html bodied emails (100 - 200), what would be the best way to do this in C#?


I got stuck when proving $\ln x = o\left( {{x^\varepsilon }} \right)$ ($\varepsilon>0$).  Any ideas without L'Hospital's rule? $$\mathop{\lim}\limits_{x\to+\infty} \dfrac{\ln x}{x^\varepsilon}, \varepsilon>0$$ Thanks in advance.

What is the limit of   $$\lim_{n \to \infty} \frac{\log n}{n^\delta}$$  where $\delta > 0$?


Can we say "guys" to a group of people, that group possibly including women?  Example sentence: I am looking forward to see you guys then!

The plural "guys" definitely is, at least here in San Francisco — I'm often hearing all-girl companies here being greeted with 'Hi guys, how are you doing?'.  How about the singular guy? Is it universally assumed that 'the guy who will be doing this' can be either guy or gal?


I have some strange behavior I don't understand.  I'm just trying to list some files in a directory: sudo find /home/vsts/work/_temp/tmp.Q8K2bSeNVV/root/home/root produces: /home/vsts/work/_temp/tmp.Q8K2bSeNVV/root/home/root/ /home/vsts/work/_temp/tmp.Q8K2bSeNVV/root/home/root/.gnupg /home/vsts/work/_temp/tmp.Q8K2bSeNVV/root/home/root/.gnupg/trustdb.gpg /home/vsts/work/_temp/tmp.Q8K2bSeNVV/root/home/root/.gnupg/private-keys-v1.d /home/vsts/work/_temp/tmp.Q8K2bSeNVV/root/home/root/.gnupg/S.gpg-agent /home/vsts/work/_temp/tmp.Q8K2bSeNVV/root/home/root/.gnupg/S.gpg-agent.extra /home/vsts/work/_temp/tmp.Q8K2bSeNVV/root/home/root/.gnupg/pubring.kbx~ /home/vsts/work/_temp/tmp.Q8K2bSeNVV/root/home/root/.gnupg/S.gpg-agent.browser /home/vsts/work/_temp/tmp.Q8K2bSeNVV/root/home/root/.gnupg/pubring.kbx /home/vsts/work/_temp/tmp.Q8K2bSeNVV/root/home/root/.gnupg/S.gpg-agent.ssh  So I know the .gnupg directory exists, and has files in it. sudo ls -la /home/vsts/work/_temp/tmp.Q8K2bSeNVV/root/home/root produces: total 12 drwx------ 3 root root 4096 Sep 21 14:54 . drwxr-xr-x 3 root root 4096 Aug 24 18:30 .. drwxr-xr-x 3 root root 4096 Sep 21 14:54 .gnupg  So the directory itself has rwx permissions. But the command sudo ls -la /home/vsts/work/_temp/tmp.Q8K2bSeNVV/root/home/root/.gnupg/* gives: ls: cannot access '/home/vsts/work/_temp/tmp.Q8K2bSeNVV/root/home/root/.gnupg/*': No such file or directory  I've checked the path over and over and can't see anything wrong.  I have rwx permissions and root level access.  What else could stop me from listing this directory? My ultimate goal is to do a chmod 600 /home/vsts/work/_temp/tmp.Q8K2bSeNVV/root/home/root/.gnupg/*, which also fails.  But for now I'd settle for ls. Edit: It just hit me.  Does this have to do with the file globbing.  Does the * expand before sudo, and therefor without root access?

I am trying to take out all the contents of folder1 and drop it into the images_temp folder that folder1 is in:  jeatonhomes@jeatonhomes.com [~/images_temp]# sudo mv folder1/* . mv: cannot stat `folder1/*': No such file or directory   Yet I am getting that error above, I tried to look up the answer here but there are answers that I do not believe apply to my situation. Please help.  jeatonhomes@jeatonhomes.com [~]# pwd && ls -l /home/jeatonhomes total 108 drwx--x--x  18 jeatonhomes jeatonhomes 4096 Apr  3 13:25 ./ drwx--x--x 106 root        root        4096 Mar 30 16:19 ../ lrwxrwxrwx   1 jeatonhomes jeatonhomes   37 Dec 18  2015 access-logs -> /usr/local/apache/domlogs/jeatonhomes/ -rw-------   1 jeatonhomes jeatonhomes  628 Apr  3 13:25 .bash_history -rw-r--r--   1 jeatonhomes jeatonhomes   18 Sep 22  2015 .bash_logout -rw-r--r--   1 jeatonhomes jeatonhomes  176 Sep 22  2015 .bash_profile -rw-r--r--   1 jeatonhomes jeatonhomes  124 Sep 22  2015 .bashrc drwxr-xr-x   2 jeatonhomes jeatonhomes 4096 Aug  4  2016 cache/ -rw-r-----   1 jeatonhomes jeatonhomes   20 Jan  4 14:10 .contactemail drwx------   5 jeatonhomes jeatonhomes 4096 Mar 20 22:39 .cpanel/ drwx------   4 jeatonhomes jeatonhomes 4096 Aug  4  2016 .cphorde/ -rw-rw-r--   1 jeatonhomes jeatonhomes   15 Apr  3 13:26 .dns drwxr-x---   2 jeatonhomes mail        4096 Jul 22  2016 etc/ -rw-------   1 jeatonhomes jeatonhomes   17 Mar  8 22:39 .ftpquota drwxr-x---   2 jeatonhomes nobody      4096 Dec 18  2015 .htpasswds/ drwxr-xr-x   2 root        root        4096 Apr  3 13:45 images_temp/ -rw-------   1 jeatonhomes jeatonhomes  211 Jan  4 14:09 .lastlogin drwx------   2 jeatonhomes jeatonhomes 4096 Apr  1 08:16 logs/ drwxr-x--x   8 jeatonhomes jeatonhomes 4096 Dec 18  2015 mail/ drwxrwxr-x   4 jeatonhomes jeatonhomes 4096 Jan  4 14:27 perl5/ drwxr-x---   3 jeatonhomes jeatonhomes 4096 Dec 18  2015 public_ftp/ drwxr-x---   7 jeatonhomes nobody      4096 Apr  3 06:06 public_html/ drwx------   2 jeatonhomes jeatonhomes 4096 Jan  4 14:10 .ssh/ drwxr-xr-x   5 jeatonhomes jeatonhomes 4096 Feb 15 06:34 ssl/ drwx------   2 jeatonhomes jeatonhomes 4096 Nov  3 22:55 .subaccounts/ drwxr-xr-x   7 jeatonhomes jeatonhomes 4096 Jul  6  2016 tmp/ drwx------   2 jeatonhomes jeatonhomes 4096 Dec 18  2015 .trash/ lrwxrwxrwx   1 jeatonhomes jeatonhomes   11 Dec 18  2015 www -> public_html/ -rw-r--r--   1 jeatonhomes jeatonhomes  658 Nov 10  2015 .zshrc   Also, I got this error:  jeatonhomes@jeatonhomes.com [~/public_html]# wp media import  /home/jeatonhomes/images_temp/* --title="Images for East 46th West 59th and Sycamore Road" --alt="New Images  for April" Warning: copy(/home/jeatonhomes/images_temp/62262529_0.jpg): failed to open stream: Permission denied in phar:///usr/local/bin/wp/php/commands/media.php on line 292 Error: Could not create temporary file for /home/jeatonhomes/images_temp/62262529_0.jpg. jeatonhomes@jeatonhomes.com [~/public_html]# sudo wp media import /home/jeatonhomes/images_temp/* --title="Images for East 46th West 59th and Sycamore Road" --alt="New Images  for April" [sudo] password for jeatonhomes: sudo: wp: command not found


I"m tryting to do sudo apt install youtube-dl but im getting the below error during installation.    E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/universe/t/tbb/libtbb2_4.4~20151115-0ubuntu3_amd64.deb  Temporary failure resolving 'in.archive.ubuntu.com'   also, as per suggestion  i do apt-get update --fix-missing  but not helping much

Err http://archive.canonical.com natty InRelease     Err http://security.ubuntu.com oneiric-security InRelease                Err http://extras.ubuntu.com natty InRelease                             Err http://security.ubuntu.com oneiric-security Release.gpg   Temporary failure resolving ‘security.ubuntu.com’ Err http://archive.canonical.com natty Release.gpg   Temporary failure resolving ‘archive.canonical.com’ Err http://extras.ubuntu.com natty Release.gpg   Temporary failure resolving ‘extras.ubuntu.com’ Err http://gb.archive.ubuntu.com oneiric InRelease Err http://gb.archive.ubuntu.com oneiric-updates InRelease Err http://gb.archive.ubuntu.com natty-backports InRelease Err http://gb.archive.ubuntu.com oneiric Release.gpg   Temporary failure resolving ‘gb.archive.ubuntu.com’ Err http://gb.archive.ubuntu.com oneiric-updates Release.gpg   Temporary failure resolving ‘gb.archive.ubuntu.com’ Err http://gb.archive.ubuntu.com natty-backports Release.gpg   Temporary failure resolving ‘gb.archive.ubuntu.com’  Reading package lists... Done W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/oneiric/InRelease       W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/oneiric-updates/InRelease   W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/natty-backports/InRelease   W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/oneiric-security/InRelease   W: Failed to fetch http://archive.canonical.com/ubuntu/dists/natty/InRelease   W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/natty/InRelease   W: Failed to fetch http://archive.canonical.com/ubuntu/dists/natty/Release.gpg  Temporary failure resolving ‘archive.canonical.com’ W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/oneiric-security/Release.gpg  Temporary failure resolving ‘security.ubuntu.com’ W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/natty/Release.gpg  Temporary failure resolving ‘extras.ubuntu.com’ W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/oneiric/Release.gpg  Temporary failure resolving ‘gb.archive.ubuntu.com’ W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/oneiric-updates/Release.gpg  Temporary failure resolving ‘gb.archive.ubuntu.com’ W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/natty-backports/Release.gpg  Temporary failure resolving ‘gb.archive.ubuntu.com’ W: Some index files failed to download. They have been ignored, or old ones used instead.   This is what I'm seeing when I try to run sudo apt-get update. I did an update on my instance yesterday and am now experiencing this.


Can anyone create a .htaccess hotlinking rule for me allowing Google all domains (.com, co.uk, co.in, .au etc.) + bing.com + yahoo.com + facebook.com  I would do it using online hotlink htaccess generators, but in this case I have to individually add all google domains which is very time consuming. If there is any way rule in which any domain containing .google. are allowed to hotlinking, that might be better.

I'm being heavily spammed by image scraper sites. There are more than 150+ domains targeting my images & sending spammed links to my site. I just want to prevent hotlinking from them. I just want to block only those specific sites.  Is there any htaccess rule for preventing hotlinking in specific sites only and allow others which is not included in list?


I started resolving this limit:  $$\lim_{x \to 0} \dfrac{\tan 3x}{\tan 5x}$$  so:  $$\begin{align}\lim_{x \to 0} \dfrac{\tan 3x}{ \tan 5x} & = \lim_{x \to 0} \dfrac{\frac{\sin 3x}{\cos 3x }}{\frac{\sin 5x}{\cos 5x}} \\ \\ & = \lim_{x \to 0} \dfrac{ \sin (3x) \cdot \cos (5x)}{ \sin(5x) \cdot \cos (3x)}\\ \\ & = \quad?\end{align}$$  Could someone help me please

I am asked to find the following limit:  $$ \lim_{x \to 0} \frac{\tan 3x}{\tan 5x}$$  My problem is in simplifying the function. I followed two different approaches to solve  the problem. But both seems incorrect.  Apprach 1) Since $\tan \theta = \frac{sin \theta}{cos \theta}$ and $\cot \theta = \frac{\cos \theta}{\sin \theta}$, we have:  $$\frac{\tan 3x}{\tan 5x} = \frac{\sin 3x \times \cos 5x}{\sin 5x \times \cos 3x}$$  This approach does not work well, because I cannot simplify more.   Approach 2) Since $\tan(x+y) = \frac{\tan x + \tan y}{1 - \tan x \times \tan y)}$, we have:  $$\frac{\tan 3x}{\tan 5x} = \frac{\tan 3x}{\tan 3x + \tan 2x} = \frac{\tan 3x}{\frac{\tan 2 + \tan3}{1 - \tan 2 \times \tan 3}}$$  What am I doing wrong?


I am bit confused when to use this keyword. I know usually we use them to set parameters in constructors or if we have multiple constructors, however, which approach below is correct?   public class ResultsPage {      private WebDriver driver;     private JavascriptExecutor jsx;         private Selector selector;     private WaitFor waitFor;     private WebElementUtilities webElementUtilities;      public ResultsPage(WebDriver driver) {         this.driver = driver;         this.webElementUtilities = new WebElementUtilities(driver);         this.selector = new ReactSearchResultsPageSelector();         this.waitFor = new WaitFor();                     this.jsx = (JavascriptExecutor) driver;     }  }   or   public class ResultsPage {      private WebDriver driver;     private JavascriptExecutor jsx;         private Selector selector;     private WaitFor waitFor;     private WebElementUtilities webElementUtilities;      public ResultsPage(WebDriver driver) {         // I used this here since the parameter has the same name.         this.driver = driver;          // I did not use this here but should I?         webElementUtilities = new WebElementUtilities(driver);         selector = new ReactSearchResultsPageSelector();         waitFor = new WaitFor();                     jsx = (JavascriptExecutor) driver;     }  }

I was curious about how other people use the this keyword. I tend to use it in constructors, but I may also use it throughout the class in other methods. Some examples:  In a constructor:  public Light(Vector v) {     this.dir = new Vector(v); }   Elsewhere  public void SomeMethod() {     Vector vec = new Vector();     double d = (vec * vec) - (this.radius * this.radius); }


One often hears the term "AAA" thrown around , but where does the term come from? How was it coined and popularized?

I tried to find a precise definition. I found clues on  and , but I cannot find more than an approximation like:     Equivalent of blockbuster movie in cinema, an AAA game is a game with highest development budgets and levels of promotion.   The definition seems imprecise. How can I be sure a game is AAA?   Let's imagine a small indie studio making games and growing up. They hire more and more people through the years and invest more and more money in their game. At which milestone would their game be considered as AAA?


Find the primes $p$ such that $\frac{2^{p-1}-1}{p}$ is a square number.    Attempt:  $p=2$ does not satisfy, $p=3$ satisfy. Now check for $p > 3$ (odd), and assume that  $$ 2^{p-1}-1 = k^{2} p $$  Notice that $2 \equiv (-1) \bmod (3) \implies 2^{p-1} - 1\equiv (-1)^{p-1} - 1 \bmod (3) $. So $k^{2}$ must be divisible by $3$, and this implies $9 | k^{2}$. $$ 2^{p-1}-1 = k^{2} p \implies 9 | 2^{p-1} - 1$$ $2^{p-1} \equiv 1 \bmod(9)$.  By Euler's: $2^{6} \equiv 1 \bmod(9)$. Then let us check the primes $$ p \equiv 1 \bmod(6) $$  Also notice that $4 | 2^{p-1} \implies 2^{p-1} - 1 \equiv 3 \bmod (4)$, and $k^{2}$ is not divisible by $2$ which means $k^{2} \equiv 1 \bmod(4)$, $pk^{2} \equiv p \bmod(4)$. So  $$ p \equiv 3 \bmod (4)$$  $p=7$ satisfy.

Find all primes $p$ such that $(2^{p-1}-1)/p$ is a perfect square. I tried brute-force method and tried to find some pattern. I got $p=3,7$ as solutions. Apart from these I have tried for many other primes but couldn't find any other such prime. Are these the only primes that satisfy the condition? If yes, how to prove it theoretically and if not, how to find others? Thanks in advance!


QGIS 2.18.12 - When I use the Clip or Merge Shapefile tools in QGIS, the set of Shapefiles is created with my chosen name and in the folder I have designated. However, in the Layers Panel, the layer is shown as 'Clipped' or 'Merged'.  Is there a good reason for this?  Wouldn't it be clearer if the Shapefile name was shown instead?  It can be confusing if I have more than one clipped or merged layer.

In QGIS 2.18, new vector layers resulting from QGIS tools have a default name related to the corresponding tool. For example, when I perform the "Lines to polygons" operation (under QGIS Vector menu), the resulting layer is always named Polygons from lines in the Layers Panel -- even if I ask for the shapefile to be saved under a specific name. When I compute a buffer, the new layer is called Buffer, and so on.  If I recall correctly, this was not the case in QGIS 2.14 (and previous versions): the default name of a layer was the name of its shapefile.  I find the new behaviour annoying since it leads to confusion between my layers; every time I use a QGIS tool, I have to uncheck the "Open output file after running algorithm" option, then manually open the newly created layer in order to display its "real" name. I can also change its name in the layer properties, but this is still irritating.  Is there a way to go back to the traditional behaviour? E.g. display by default the shapefile name (when specified) in the Layers Panel instead of some generic name?


I have been trying to convert a hexadecimal string into a hexadecimal value in Python just as you can convert a string containing an integer into an integer value. I have tried the following   >>> a = '0x25' >>> b = hex(a) Traceback (most recent call last):   File "<pyshell#47>", line 1, in <module>     b=hex(a) TypeError: hex() argument can't be converted to hex   and   >>> b = '20'  >>> int(b)  20   but I haven't reached any viable solution.

How do I convert a hex string to an int in Python?   I may have it as "0xffff" or just "ffff".


The Men of the West lived in the West of Middle Earth (duh), especially the descendants of Numenor who came from further West across the sea. The remaining Elves lived in the West where it is nearest to Valinor, from which they came so many ages ago. The Dwarves were drawn to the West following the other Children of Illuvatar into the events of earlier ages, then stayed to live in their great mountain homes of Moria and Erebor.  All that is good live in the West. Why are there none in the East? Why do all in the East serve Morgoth and then Sauron? I have heard the Eastern Kingdoms have their own chieftains and kings, though they owe ultimate allegiance to the dark lords. So Mordor doesn't extend that far east to encompass over half of Middle Earth, or those Easterlings wouldn't get to enjoy having their own dominions.

In Tolkien's The Lord of the Rings series, there are generally two groups of Men. The good ones are coming from the West (Dúnedain, Men of the West), and the bad ones, the Easterlings, mostly fight under Morgoth and Sauron.  Why was this so?


Let $\alpha,\beta\in S_6$ be given by:  $$\alpha = \begin{pmatrix}1&2&3&4&5&6\\3&5&1&2&6&4\end{pmatrix},\beta = \begin{pmatrix}1&2&3&4&5&6\\6&1&5&3&4&2\end{pmatrix}$$  (a)  Find $\alpha^{-1}$ and $\beta^{-1}$  (b)  Find permutations $\gamma,\delta\in S_6$ such that $\gamma\circ \alpha = \beta$ and $\alpha \circ \delta = \beta$  (c)  Find the least positive integer $m$ such that $\alpha^m = \iota$, where $\iota$ denotes the identity permutation of $X_6$.  (d)  Find a permutation $\pi\in S_6$ such that $\pi^2 = \beta$  (e)  Does there exist a permutation $\pi\in S_6$ such that $\pi^2 = \alpha$?  Either find $\pi$ or explain why such a permutation does not exist.    although I found a permutation (d)but it is not a good way to find a such permutation and  how to explain (e) it can't be found above my way

Observe that  $$\begin{pmatrix} 1 & 2 & 3 & 4 & 5 \\  2 & 4 & 1 & 5 & 3 \end{pmatrix} \begin{pmatrix} 1 & 2 & 3 & 4 & 5 \\  2 & 4 & 1 & 5 & 3 \end{pmatrix} =  \begin{pmatrix} 1 & 2 & 3 & 4 & 5 \\  4 & 5 & 2 & 3 & 1 \end{pmatrix},$$  so $\begin{pmatrix} 1 & 2 & 3 & 4 & 5 \\  4 & 5 & 2 & 3 & 1 \end{pmatrix}$ is the square of a permutation. More generally, how do I check if a permutation is square and how can I find its root?


It's very common to use L_{1} as norm symbol. But it doesn't look like as nice as "ℓ 1". I'm wondering how can I get "ℓ1" using Latex.

What is the easiest way to make a cursive, lowercase ell in LaTeX math mode?


Recently, I'm studying linear regression. I've heard that errors always follow normal distribution because they are supposed to do (in the point of they are noises). But suddenly I just wonders what if residuals of a linear regression follow other distribution rather than a normal distribution. I think I can interpret that there's a potential to approving the performance of the model because it implies that there are some data that I've didn't collect. It means irreducible errors can be reduced actually. But I'm not good at math, so I don't know it is right or not.  Once again, how can we interpret residuals of a linear regression doesn't follow other distribution and how can we utilize if they do?

I was wondering what to do with the following non-normal distribution of residuals of my multiple regression.        Normality test of standardized residual                      Shapiro-Wilk                    Statistic: ,955 df: 131 Sig: ,000   According to the Shapiro-wilk test the normality test fails. However, after excluding the outlier located at the left bottom of the graph, I get these test results:  Normality test of standardized residual                      Shapiro-Wilk                    Statistic: ,980 df: 130 Sig: ,055   What are my options when the residuals don't have a normal distribution? Is it for example alright to remove outliers in order to achieve a normal distribution?


So I accidentally spilled milk on my resistor and I have no idea how to clean it. I wrapped the resistors with a towel but they still smell really bad :/.  Is it okay to put them in water and dry them with a towel?

I found  where a technician with a lot of experience seems to clean his PCBs using water, and then he just puts it in the sun so it can dry. I was just amazed to see the circuit keeps working as intended, he says he keeps doing this all the time and several times, however I doubt this is normal.  Which leave me some questions:   What are the recommended methods to clean huge PCBs like the one in the video? What happens to charged capacitors when water shorts them out? Solder joints do not get any kind of corrosion? Is the antisolder mask waterproof?


I've only just started using a spreadsheet and I'm wondering how to take all the data from cells of a certain color, then place that data in a single cell?

I have seen  and altough I face the same problem, the answer to that question is not helpful to my case.   I have large spreadsheets which are changed frequently. So, according to the solution accepted to that question, it is hard to duplicate all populated columns and it is cumbersome to edit one more cell everytime I wish to make a change on cells background colors.  Isn't there a way to sum data based on a condition regarding cell background color in Google Spreadsheets?


i am using the regex below to validate email const regex = /[a-z0-9!#$%&'*+/=?^_{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/;  i am trying to validate all the emails in the wiki here  the above regex works for all except the below valid emails are invalid and invalid emails are tested valid. valid strings "john..doe"@example.org " "@example.org admin@mailserver1     invalid strings A@b@c@example.com a"b(c)d,e:f;g<h>i[j\k]l@example.com just"not"right@example.com  how can i fix the regex to work for these too. could someone help me fix this regex? thanks. EDIT what i have tried based on answer provided const regex = (?:[a-z0-9!#$%&'+/=?^_{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_{|}~-]+)|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\[\x01-\x09\x0b\x0c\x0e-\x7f])")@(?:(?:a-z0-9?.)+a-z0-9?|[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])).){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-][a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\[\x01-\x09\x0b\x0c\x0e-\x7f])+)]); but gives me error expression expected at here (? starting of expression

Over the years I have slowly developed a  that validates MOST email addresses correctly, assuming they don't use an IP address as the server part.  I use it in several PHP programs, and it works most of the time.  However, from time to time I get contacted by someone that is having trouble with a site that uses it, and I end up having to make some adjustment (most recently I realized that I wasn't allowing 4-character TLDs).  What is the best regular expression you have or have seen for validating emails?  I've seen several solutions that use functions that use several shorter expressions, but I'd rather have one long complex expression in a simple function instead of several short expression in a more complex function.


After minimizing the Google Chrome window, clicking on the chrome icon in the unity sidebar doesn't restore the window. Additionally, the the icon seems to behave more like a launcher: no white indicators showing whether a window is open or not, and clicking on the icon just opens another instance of chrome. No other icon does this.  Can anyone help me here?

Chrome, for the life of me won't minimize into the launcher. Every time I minimize it it goes away never to be seen again. This is a pain to have to deal with.   How can I fix it?  I was using the latest dev edition of Chrome.


NASA and other space programs primarily use radio waves to transfer information from spacecraft back to earth. Why don't they use gamma rays, which are more powerful?  Since radio waves have less energy than gamma rays, isn't it more likely for radio waves to get blocked by clouds, whereas gamma rays can pass through clouds?

The greater the frequency range of a transmission medium, the greater the number of bits per second it can transmit. In other words, the bigger the bandwidth in hertz available, the bigger the bandwidth in bits per second that can be transmitted.  Given that, why we don't use gamma rays, x-rays or ultraviolet to transmit data instead of e.g. visible(light) in optical fiber or microwaves(cell phones)?


I have tried compiling c programs and it fails  I tried gcc-0 hello hello.c it said gcc-0 command found I also tried sudo gcc-0 hello hello.c and it said gcc command not found  I have installed all developer tools I have ran the commands sudo apt-get build-essential and the result is that i have installed latest version

I've been having a problem with compiling.   I used the following test C code below and saved it as test.c in Home folder.  #include <stdio.h> int main() {   printf("Bruh!");   return 0; }   When I run in terminal the code   gcc test.c -o test   I get  nothing.  Thank you


look at these two sentences:  neither the coach nor the players are going to the beach.   neither the players nor the coach is going to the beach.  why does one sentence use "are" while the other has "is"?  does it have something to do with the arrangement of subjects or is there any other reason?

I was watching the film A Game of Shadows starring Robert Downey Junior and Jude Law when this line came up, "...neither you nor I is in control..." (I can’t remember the exact words that ended the phrase; if anyone can supply them, it would be much appreciated.)   It immediately struck me as being odd. When I mentioned this to my boyfriend; an English native speaker, with a PhD in something sciency, he told me it was correct. When I asked why, he couldn't explain but put forward the following sentence as an example. "Neither of us is in control..." However, I disagreed with the wording and said the sentence should have been: "Neither one of us is in control..." The genderless third person, one, is singular, and hence, so too the verb that follows. And we say, "one is" NOT "one are".      "Neither you nor I are in control over ..."    I believe the above sounds better, but it is more logical to say:     "Neither you nor I am in control..."    because the verb agrees with the subject closest to it; however, I'm not sure if I have ever read or heard this solution. So, I tried inverting the subject and auxiliary verb order and the resulting phrase was:    "Neither you nor am I in control..."    which sounds very formal, pompous, and ... odd. Am I imagining things?  The two subjects you and I are two separate individuals who are not joined together, I agree the verb should be in the singular; but why should we use "is"? We don't say, "you is" or "I is". Before anyone rushes off to claim my question is a duplicate of a previous Stackexchange one:  I want to explain why the answer to that question fails to explain why my boyfriend and the film makers consider the  sentence below correct:     Neither you nor I is in control...   As I see it, Michael and Albert are two separate individuals, it therefore stands to reason that the verb should be singular, and "is" agrees with the subject. If I rephrase the neither and nor construction, I would get:          Michael is not correct but neither is Albert   OR          Michael is not correct and Albert isn't either.      Which have the same meaning, (either being the negative equivalent of neither) the sentences are grammatical which leads me to conclude that the verb must be singular and hence         Neither Michael nor Albert is correct      However, when I rephrase the "neither you nor I" sentence following the same procedure I have to say this:        You are not in control but neither am I (‘I am’ is ungrammatical)   OR              You are not in control and I’m not either.      which leads me to surmise that the sentence below must be grammatically correct        Neither you nor I am in control"      So, why does my boyfriend insist that the sentence ought to be:     Neither you nor I is in control   Which one of us is right and why?


The game, if you follow the Atlas, pushes you forward.  I jumped from system 1 to system 2.  I can not find System 1 again.  I search for an hour.  I tried using a green star as a fixed point so I know I always start in the same orientation.  I have since moved on and I was not able to find system 2 from system 3 but I was able to find system 3 from system 4, so it is possible.  My question: is there an ingame mechanic to make finding previous visited systems easier?

Long story short, I rushed a few jumps early in the game to finish a story mission. I then wanted to go back to a planet that was very rich in resources and whatnot, but I was unable. I didn't find a way to set a waypoint or anything similar from the discoveries page, and trying to point and click in the star map is almost impossible.  Is there an easy way to go back to a system that you've already discovered?


Just wondering if there is a cycles alternative for the 'halo' material effect only found in Blender Internal? This halo effect turns an object into small glowing orbs instead of one solid object. I am looking for this effect to include in a cycles animation, however the halo option is not available for cycles at all.  I've attached the .blend file to show the halo effect I'm trying to achieve in cycles.  Cheers!

I have a problem with particles. I can see them in the viewport, but no matter what I do I can't see them in my render. Could anyone of you please help me? I really want to create a snowy scene.   Here's my scene:


We need to grant a couple of users access to run only specific SQL jobs that runs SSIS packages. Is there a solution that can be used to accomplish this?

What permissions should I use for Active Directory groups to be able to deploy and then run/schedule their own jobs only? For example, I have 3 folders in the Integration Services catalog. Dept_A, Dept_B, and Dept_C. Each AD group should be able to DEPLOY to their own department's folder, and also create/schedule/run jobs that call these packages. I can control the permissions for deployment to those 3 folders by folder/project permissions. However, when it comes to the SQL Server Agent, things don't seem fine-grained enough. There are database roles in msdb: SQLAgentOperatorRole, SQLAgentReaderRole, and SQLAgentUserRole. However, I'm not seeing how I can limit security to keep each AD group only able to run their own packages from a job.


I'm writing a essay and I haven't really studied or have had to use proper grammar in years now. For the following sentence:  We are now in a era of intelligent machines where Amazon has drones and Google has driverless cars....  Is the where correct? Or is it "when"? I think it is where, the where sounds much better. But technically era is a time, not a place? Should there be a comma after the where?

Now that I think about it, it was from   that moment where I started to have   doubts about him.   Would it be better to use the word "when" instead of "where," or are they both equally valid word choices? Is there any difference at all?


Let $f:\mathbb{R}\rightarrow\mathbb{R}$ be a continuous and differentiable function in all $\mathbb{R}$. If $f(0)=0$ and $|f'(x)|\leq |f(x)|$ for all  $x\in\mathbb{R}$, then $f\equiv 0$.  I've been trying to prove this using the Mean Value Theorem, but I can't get to the result. Can someone help?

mathematicians! I want to ask to all wise people about a problem I met at the quiz to obtain some ideas. The problem is following. It may not be accurate since the problem is dependent on my memory   Let $f : [0, \infty) \rightarrow \mathbb{R}$ and $f$ is differentiable. $|f'(x) |\; \leq\  |f(x)|$ for all $x \in [0, \infty)$. $f(0) = 0$. Then prove that $f(x) = 0$ for all $x \in [0,\infty)$.  At the quiz, I applied the Mean Value Theorem and the Cauchy-Schwarz inequality.   For any $x$, $|f(x)| = |\{f(x) - f(0)\}(x-0)| = |f'(c_{1})(x)|$ for some $c_{1} \in (0,x)$, and then  $$|f'(c_{1})(x)| \leq |f'(c_{1})||x| \leq |f(c_{1})||x|$$ by Cauchy-Schwarz and given assumption. By doing so consecutively, we can obtain the inequality that  $$ |f(x)| \leq |f(c_{n})||x||c_{1}|\ldots |c_{n-1}| $$ for any $x \in [0,\infty)$. As $\{c_{i}\}, \; i\in \mathbb{N}$ is decreasing sequence and $f$ is continuous, $|f(c_{n})|$ can be arbitrary close to $0$ when $c_{n} \rightarrow 0$. Thus the inequality above can be bounded by $\epsilon$.  I think my answer is right, but a bit uncertain. Could you give me a certainty? Thank you very much.


It is given that $(\cos\theta + i\sin\theta)^n = \cos n\theta + i\sin n\theta$ where $n\in Z^+$.  I can show it works for $n=1$ but I am stuck in showing it inductively. I have got as far as below but are stuck in the rearranging:  $$(\cos\theta + i\sin\theta)^{k+1}= (\cos k\theta + i\sin k \theta)(\cos\theta + i\sin\theta)$$  How can I rearrange the left to look like the right?

The following is a rigorous proof of De Moivre's theorem by means of mathematical induction. The theorem put simply is that:  Any complex number, $z = a+bi$, on a cartesian plane can be expressed in polar form, where $a=r\cos\theta$ and $b=r\sin\theta$ and $r$ is the absolute distance from the origin to the point $z$. In light of this, the expression for the complex number $z$ in polar form is $z=r(\cos\theta+i\sin\theta)$ In order to find the $n^{th}$ power of $z$, the following rule applies: $$\displaystyle z^n=(r(\cos\theta+i\sin\theta))^n=r^n(\cos n\theta+i\sin n\theta)$$ where $n\in\mathbb N$ (I have confined $n$ to the natural numbers given that I intend on using mathematical induction to prove the theorem.  Base step: We must prove that what is stated is true for $n=1$, hence $$z^1=r^1(\cos 1\cdot\theta+i\sin1\cdot \theta)$$ $$=r(\cos\theta+i\sin\theta)$$ which is true. Next we assume it is true for $n=k$, and therefore proceed to the inductive step. Inductive step: When calculating $z^{n+1}$, it's the same as calculating $z^nz$, hence $$z^{n+1}=(r^n(\cos n\theta + i\sin n\theta))(r(\cos \theta+i\sin \theta))$$ $$=r^nr(\cos n\theta+i\sin n\theta)(\cos\theta +i\sin \theta)$$ $$=r^{n+1}(\cos n\theta\cdot\cos\theta+\cos n\theta \cdot i\sin\theta+i\sin n\theta\cdot\cos\theta+i^2\sin n\theta\cdot\sin\theta)$$ from here, $i^2=-1$, and therefore $+i^2\sin n\theta\cdot\sin\theta$ becomes $-\sin n\theta\cdot\sin\theta$. In addition to this, the following trigonometric identities will be used: $$\sin(n\theta + \theta) = \sin n\theta\cdot\cos\theta+\cos n\theta\cdot\sin\theta$$ $$or$$ $$k\sin(n \theta+\theta)=k\sin n \theta\cdot\cos \theta + \cos n\theta\cdot k\sin\theta$$ $$and$$ $$\cos(n \theta + \theta)=\cos n\theta\cdot\cos\theta-\sin n\theta\cdot\sin\theta$$ by using these, the original equation has now become $$=r^{n+1}(\cos(n \theta + \theta) + i\sin(n \theta + \theta))$$ then, after factoring out $\theta$, the theorem becomes $$=r^{n+1}(\cos((n+1)\theta)+i\sin((n+1)\theta))$$ which completes the proof. Question: is this proof correct all the way through? Or have I missed any conditions? If all is well in the case of this proof, could somebody aid me in proving it for $\{n|n\in\mathbb R,n\geq1\}$


Im completely new to image editing, so excuse my immaturity... I have the following image:   I want to remove the writing on the blackboard and replace it with something different, keeping the original texture/smudges of the blackboard. What is the most efficient way for this in Gimp. I've tried for the last two hours and am becoming very angry because I can't get anything to work. Thanks for your help in advance.

I have the following image with written text over it. The image is a flat .jpeg, so I don't have access to the layers:  Click image for full resolution As you can see, the written text ("SPACE") is quite big. My question is: are there any effects/anything I can do in order to remove the text and still keep the background? Or at least hide it a little bit more?


I calculated this area to be: $$\int_{0}^{\pi/2} \int_{a(1- \cos\theta)}^{a \sin\theta} r \  \mathrm dr\ \mathrm d \theta=a^2\int_{0}^{\pi/2} \cos\theta - \cos^2\theta \  \mathrm d \theta= a^2(1-\frac{\pi}{4}).$$ Just want to verify that my formulation and answer are correct since I do not have the correct answer myself.

I am learning multiple integrals (Double and Triple Integral) and need help understanding a solution given in the book.  In first question, it is asked to find the area lying inside the circle $r=a\sin\theta$ and outside the cardioid $r=a(1-\cos\theta)$. using double integrals. In this question how do i find the range for $r$ for integration ?


I'm writing a cover letter and I need to know if I should say: I would like to be part of the Publix family vs Publix's family.  Please help!!

In the following is it better to use a possessive noun with an apostrophe or an attributive noun without an apostrophe?     The following list details the assumptions that have been made in   conjunction with the Dell Company’s staff.   Or      The following list details the assumptions that have been made in   conjunction with the Dell Company staff.   Assume Company is the name of a company, such as Dell.


I am an Indian and have multiple entry pass valid for the next 2 years. Suppose if I enter Singapore on a tourist visa on 23rd December and stayed for the next 30 days, i.e. till 23rd January. Now I leave or exit from Singapore on 22nd January to travel either to Malaysia or Indonesia for a 2-3 days trip, can I return to Singapore and then again stay for 30 days?

I have multiple entry visit pass of Singapore valid for 2 year and normally they allow to stay for 30 days in a single visit. How many times I can do this if go out to my home country and come back again after 7 days? Is there any limitation on this ? Because it seems holder of the visit pass can stay in Singapore for more than 1.5 year if he/she use visit pass in this way.If we go by words it is multiple entry visa but, is it legal to do this or is it considered illegal?


I was wondering: is it possible to assign two bevels instead of one to the geometry of a curve, and maybe "warp" through them using weights?  Basically I have a loop curve that has a circular bevel (above curve, left), but at certain points it should gradually become an oval shape (above curve, right, selected) (or whatever shape i decide to bevel it with).  Thanks for the wisdom, peace

I'm wondering if it's possible to define multiple bevel objects along a curve and have Blender interpolate between the bevels like keyframes.


What is the appropriate mathematical background someone must attain in order to enroll in a quantum physics course for beginners?

What math should I study if I want to get a basic understanding of quantum mechanics and especially to be able to use the Schrodinger's equation.


I've only seen The Force Awakens but what I know is that Darth Vader is Luke's father, giving rise to the famous "I am your father" quote.      So is Darth Vader really Ren's grandfather or is he just calling him that?

If       Han Solo   is Kylo Ren's father, then how is      Darth Vader Kylo Ren's grandfather?


I have several hosts that need to have a one-off RPM installed as well as packages belonging to the CentOS-Debuginfo.repo.  These machines currently have the repo disabled and gpgcheck enabled.  After everything has been installed, I need rpm --nodeps -e some packages, all the while echo'ing out the hostname of each machine that this has all been done to.    So far, I have this:  #!/bin/bash # SSH to hosts, then grab the GTS RPM and install it.  Yum install required debugging packages, then rpm to erase unnneeded ones.  cmds="echo $HOSTNAME; cd /tmp && wget http://download.sipxcom.org/pub/epel.bak/6/x86_64/gts-0.7.6-19.20111025.el6.x86_64.rpm /tmp; rpm -i /tmp/gts-0.7.6-19.20111025.el6.x86_64.rpm; yum --enablerepo debug --nogpg install -y db4-debuginfo.x86_64 expat-debuginfo.x86_64 glibc-debuginfo.x86_64 kernel-devel.x86_64 nss-softokn-debuginfo.x86_64 openssl-debuginfo.x86_64 python-debuginfo.x86_64 readline-debuginfo.x86_64 zlib-debuginfo.x86_64; for i in $(cat /tmp/testing/rpms_to_erase.txt); do rpm -e $i; done" hostlist=/tmp/testing/hostlist.txt  for i in $HOSTLIST   do     ssh -qn $i "bash $CMDS" && "rpm -e gdm-plugin-fingerprint.x86_64 gdm-user-switch-applet.x86_64 gnome-applets.x86_64"   done   As you can see, this is quite ugly.  Wondering if anyone may have a more elegant solution.

There is a list of IP addresses in a .txt file, ex.:  1.1.1.1 2.2.2.2 3.3.3.3   Behind every IP address there is a server, and on every server there is an sshd running on port 22. Not every server is in the known_hosts list (on my PC, Ubuntu 10.04 LTS/bash).  How can I run commands on these servers, and collect the output?  Ideally, I'd like to run the commands in parallel on all the servers.  I'll be using public key authentication on all the servers.  Here are some potential pitfalls:   The ssh prompts me to put the given servers ssh key to my known_hosts file. The given commands might return a nonzero exit code, indicating that the output is potentially invalid. I need to recognize that. A connection might fail to be established to a given server, for example because of a network error. There should be a timeout, in case the command runs for longer than expected or the server goes down while running the command.   The servers are AIX/ksh (but I think that doesn't really matter.


I used Sound Juicer to rip a CD of audio for a language learning book so that I could listen to them on my Android. However, Sound Juicer seems to only have the option of numbering files without leading zeros. Like this:  track_1.mp3 track_10.mp3 track_11.mp3   This leads to some confused ordering on my music player. So, I want to add some zeros to the name, so that they're ordered properly, like this:  track_01.mp3 track_02.mp3 track_03.mp3   How do I accomplish this? I tried using GPRename, but while it has the ability to add numbers, it doesn't seem to have any options for adding leading zeros.  Is there a better program or something I can do at the command line?

I have a ton of files, all named stuff like 1.jpg, 2.jpg, 3.jpg, and so on up to 1439.jpg, however, I have a problem with one of my projects and alphabetizing. It will usually go in the order 1.jpg, 10.jpg, 11.jpg and so on.  What I need is some way to name the files so they are in the format such as 00001.jpg all the way up to 01439.jpg.  How would I be able to do this quickly and efficiently?


Is there any difference between someone saying they're "down for" something as opposed to being "up for" something?  For example:     I'm totally up for ice cream tonight!   vs.     I'm totally down for ice cream tonight!

I was wondering about the meaning of:      I am down with something.   Also, I was wondering whether people say:     I am up with something.   If so, what does it mean?


Allowing a user to submit and find errors is likely optimal compared to the cognitive load of searching a form to see why the button's disabled. However, this could be avoided by providing real-time validation feedback.  So then, which scenario is more user-friendly and prone to less fuss and errors?   Disable submit button until all the fields are filled out and valid. Shoe inline validation in real-time.  Don’t ever disable the submit button and only show validation errors after the user hits submit.    The forms are short in length - usually no more than 6-8 fields.

We have a few different forms as part of a web-based medical application. These forms have quite a few fields - 10-20 depending on the form. Each has at least 5 or so required fields. We currently disable the save button until those required fields are all completed.  We've been debating whether it's a better user experience to make the submit button enabled by default and then display an error message (and highlight missing required fields) if the submit button is clicked before all required fields are filled out.  Any research or sound opinions on what might be better? We're leaning towards the latter approach since our forms are pretty long -- allowing them to submit then find errors might be more efficient than the cognitive load of searching through the form to see why the button isn't enabled.


I have a list with a person field. I need users to fill in the field with their names but I need to get the following properties below from that field using rest API:   Email Address Name(Full Name) Department Job Title Phone Number   Is this possible?  Thanks in Advance.

I'm looking for some help with a REST call I'm attempting to make in SharePoint Online.  I'm doing an add-in that gives me the name, birhday and photo property of all user in user profiles    I tried with this code   var siteUrl = _spPageContextInfo.siteAbsoluteUrl;     Console.log(siteUrl);     $.ajax({         url: siteUrl + "/_api/SP.UserProfiles.PeopleManager/GetMyProperties",         method: "GET",         headers: { "Accept": "application/json; odata=verbose" },         success: function (data) {             console.log(data);         },         error: function(error) {             console.log(error);         }     });   but I only get current user profile properties, what I need is all user profiles properties for all users, how can i achieve that?  Thanks in advance!


I was making a Ubuntu/Gnome theme just for changing wallpapers putting  transition between wallpapers that got lost since Ubuntu 14.04 and some config files for changing the theme, now I'm running Ubuntu 16.04 and I wanted to know how to add an entry to that display menu in the Settings app.  I'm aware of unity-tweak-tool and that other third party software, I don't want to change my wallpapers I want to code that in my theme file. I know these entries are located somewhere because I have been able to change another system things just by writing some code in a XML file, please help.

I've downloaded some nice themes, icon packages, and pointers from sites like gnome-look.  Now, what do I do to use this theme? Do I have to save it in /usr/share/themes?


I have approximately 30 variadic functions. Each one accepts a path as the final argument, e.g.:  bool do_foo(struct *f, int q, const char *fmt, ...)   In each function, I have to check that the expanded format is less then or equal to a certain size. So, I find myself copy / pasting the same chunk of code to check for how many characters vsnprintf() didn't print, set errno accordingly and bail out of the write.  What I would like to do is write a function to do this, which would return a statically allocated (expanded) string that is known to be a safe size, or newly initialized string on failure, which could be checked against NULL. The checks also have to determine if the string is an absolute or relative path, which influences the safe size of the string. It's a lot of duplicate code and it's starting to smell.  Is there a way that I can pass the contents of the elipsis from my function's entry to another function? Or do I have to call va_start() first, and then pass the va_list to the helper function?  Edit:  I am not at all opposed to passing the va_list to the helper, I just wanted to make sure that nothing else existed. It seems to me the compiler understands where the variadic arguments begin, so I was just curious if I could tell it to pass them along.

In C, is it possible to forward the invocation of a variadic function? As in,  int my_printf(char *fmt, ...) {     fprintf(stderr, "Calling printf with fmt %s", fmt);     return SOMEHOW_INVOKE_LIBC_PRINTF; }   Forwarding the invocation in the manner above obviously isn't strictly necessary in this case (since you could log invocations in other ways, or use vfprintf), but the codebase I'm working on requires the wrapper to do some actual work, and doesn't have (and can't have added) a helper function akin to vfprintf.  [Update: there seems to be some confusion based on the answers that have been supplied so far. To phrase the question another way: in general, can you wrap some arbitrary variadic function without modifying that function's definition.]