I have a button in my menu named "New File" as shown:    and I want when I click on the "New File" button to imitate what the Blender File->New does, where a check message box appear first confirming that you want to reload the Start-up File and if pressed then the startup file is loaded as shown below.    This is my script, when I press on new it opens the startup file without checking:  class NewFile(bpy.types.Operator):     """New File"""     bl_idname = "wm.newfile"       bl_label = "New File"     bl_options = {'REGISTER', 'UNDO'}      def execute(self, context):         bpy.ops.wm.read_homefile()         return {"FINISHED"}


Why is the derivative of a sine function a cosine function?

I am having a hard time coming up with WORDS to explain why is the derivative of a sine function a cosine function? Why? How do I write a few sentences saying why this happens? I follow example after example solving similar problems but still don't understand enough to put into words.  I would appreciate some help.  Thanks, Tony.


How to change NSProgressIndicator color from gray to white?

The default color for NSProgressIndicator is gray but I want it to be white.  Is there anyone who knows how to do it ? Please let me know.   Many thanks.


he partially explained that it was light illuminating the flakes, but it seems that the flakes are also greatly out of focus with a high shutter speed?   i'd guess that simply zooming far ahead would normally make the flakes invisible.


Why does my aperture setting change as I zoom on my DSLR kit lens?

I am new to the photography field, there are few things which I am not able to understand. I am playing around with my Nikon D90 along with its kit lens (18-105mm).  While reading about Depth of preview, the author asks to do some basic exercise to better understand DOF, like this:   set your aperture to smallest number f/2.8, f/3.5, f/4 with 70mm or longer lens.   When I tried to set aperture to f/3.5, and tried to change focal length, my camera is setting aperture automatically in every possible mode (which I know of). It is changing aperture in the following fashion:  1. 18-24 ----> 3.4 to 4 2. 18-35 ----> 4.5 3. 18-50 ----> 5 4. 18-105 ---> 5.6   But if i set my aperture to 5.6 or higher, it does not change when I change the focal length of my camera. I know I am not doing some basic thing right, but I'm still not sure why this is happening. Can some one help me to understand this?


Why does shell Command Substitution gobble up a trailing newline char?

As per the following example, and as in  In bash, where has the trailing newline char gone?, I want to know "why" it happens    x="$(echo -ne "a\nb\n")" ; echo -n "$x" | xxd -p  # Output is: 610a62  # The trailing newline from the 'echo' command #   has been "deleted" by Command Substitution   I assume there must be some very significant reason for a shell action, namely Command Substitution, to actually delete some data from the command output it is substituting... but I can't get my head around this one, as it seems to be the antithesis of what it is supposed to do.. ie. to pass the output of a command back into the script process... Holding back one character seems weird to me, but I suppose there is a sensible reason for it...  I'm keen to find out what that reason is...


How do i say bye bye to looking like steve on minecraft pc

On mine craft i'm tired of looking Steve. How do i change this


TeamViewer installed but not running on CentOS

I followed these http://www.tecmint.com/how-to-install-teamviewer-8-on-linux-distributions/ steps and installed TeamViewer on my CentOS5 server without any errors in SSH but when I try to start TeamViewer I am just getting the following output but I can't find my TeamViewer username and password to try to connect to my server.  root@vps [~]# teamviewer      Init...     Checking setup...     Launching TeamViewer...     root@vps [~]# teamviwer -info     -bash: teamviwer: command not found     root@vps [~]# /usr/bin/teamviewer -info  Init... Checking setup...  Launching TeamViewer... root@vps [~]# whereis teamviewer teamviewer: /usr/bin/teamviewer /etc/teamviewer root@vps [~]# /usr/bin/teamviewer -help  Init... Checking setup... Launching TeamViewer... root@vps [~]#    Can anyone help me finding my TeamViwer id and password to connect to my Server. Thanks.


If G is a group of order $pq$, where $p$ and $q$ are primes. How do I prove that any nontrivial subgroup of $G$ must be cyclic?

This makes sense since $p$ and $q$ are primes but I'm not sure how I can prove that the subgroup will be cyclic?   Will the generator of the subgroup be $pq$?


kill -9 cannot kill process with parent PID = 1

I have a process with parent PID = 1.  The command kill -9 382 doesn't work. I am root.  What can I do?  root       382     1  0 07:29 ?        00:00:00 dsmrecall /ptstv/HVideo/2014/2014761/G201476100010007.mxf


There's a line in my project that I don't want. I dont know how it got there, and I don't know how to remove it. It just sits there. If I right-click on it, it says that it belongs to an object on the opposite side of where this line is!   If I enter edit mode, (which is what I did when I tried to remove it,) it disappears!  Does anybody know what this might be, or even better, how to fix it?


What (if ever) is the context at which I should use the term "various and sundries?

My neighbor uses the term/phrase "various and sundries" all the time, but first off, it seems like he just means the word "various" alone, but adds "and sundries" to it for some reason. And then once in a while I'll hear someone else say it. But what context is it supposed to properly be used in, if I should even try to use it at all?


Functional equations leading to sine and cosine

This question is a possibly harder version of: .  Question.  Let $f,g :\mathbb R\to\mathbb R$, such that \begin{align} f(x-y)=f(x)\, g(y)-f(y)\, g(x), \tag{1}\\ g(x-y)=g(x)\, g(y)+f(x)\, f(y), \tag{2} \end{align} for all $x,y \in \mathbb{R} $. If $g$ is continuous at $x=0$ and not identically zero, then there exists an $\alpha\in\mathbb R$, such  $$ f(x)=\sin \alpha x\quad\text{and}\quad g(x)=\cos \alpha x. $$ Is there a pair of discontinuous $f$ and $g$ satisfying $(1)$ and $(2)$?  Update. If $\ell :\mathbb R\to\mathbb R$ is a linear functional over $\mathbb Q$ (i.e., $\ell(qx+ry)=q\ell(x)+r\ell(y)$, for all $x,y\in\mathbb R$ and $q,r\in\mathbb Q$), then $$ \sin\big(\ell(x)\big), \quad \cos\big(\ell(x)\big), $$ satisfy $(1)$ and $(2)$. Discontinuous such functionals do exist, and they are obtainable using Zorn's Lemma (equivalently the Axiom of Choice.) This takes care of the second question.


Having trouble passing parameters in HTML

Hoping someone can help . Im trying to pass a parameter from one page to another in order to open a record on the second page based on the first page . Generally quite straight forward , but in this case the parameter im passing is a full name with a space . The code in the "sending" document is
Sender : <a href="contact.php?con=<?php echo $row_rsetcon['sender'] ?>"><?php echo $row_rsetcon['sender']; ?>
   This passes the parameter correctly to the contact.php file and it appears in the address bar like so ....  http://127.0.0.1/kb1/contact.php?con=John Smith   The receiving code in the file contact.php is ..  $con=($_GET['con']);   However the result on the web page is   You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Smith' at line 1  If I manually put double quotes around the name , then it works as expected.   "John Smith"  Can I pass the parameter in Double Quotes or is there a better way to do this ? Ive tried urlencode and rawurlencode , no joy , but maybe im not using them correctly.  I do realise that there are issues with the code in reltion to potential for SQL injection etc... , but its an enclosed internal system.


List of names when there is ownership associated

Ok, so I am supposed to order business cards for people, then the company sends me the proof which I check over for correctness. When I do three on the people's names are right, one is wrong. So I want to write,  Angel, Jane, and Peter's cards are correct, but Jim's name is misspelled.   This doesn't look right to me. It makes me feel like Peter is owning all the possesive and not sharing with Angel and Jane, who have cards that are just as correct.   What would be the best way to write this sentence?  Thanks,   Rose.


Texture streches on the edge of extruded plane

so I wanted to try and make some 3d models of pixel art, and I started with a basic Minecraft sword to train myself. So I started by adding a plane, adding a texture to it, added loop cuts to my plane, 15 loop cuts because it's a 16x16 texture, then I selected the blank faces and deleted them. As I extrude this plane, A > E > $.1$, the texture messes up on the edge of the item, as shown below  Although not all faces mess up on the edge, a lot still do. I tried recalculating normals, unwrapping the object again, but I ended with the same problem, no change at all. Though I may have done it wrong, since I never did it before. I tried smart UV project and cube projection, but they just mess it up even more. Does anyone have a solution to this?


Check if Ubuntu is being installed on VM

I am trying to automate ubuntu installation from a network repository. I am now succesfully able to configure the iso image and it does the installation automatically.  My requirement:  I would like to know if there is a method in the initial installation stage of ubuntu, where I can know if the OS being installed on virtualbox or a physical desktop. I want this check to be performed as I want to automate the installation of virtualbox guest addition if the installation is being performed on a virtualbox.  If any one here have any experience with the same, please share your answers.


As Knuth said,     We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil.   This is something which often comes up in Stack Overflow answers to questions like "which is the most efficient loop mechanism", "SQL optimisation techniques?" (). The standard answer to these optimisation-tips questions is to profile your code and see if it's a problem first, and if it's not, then therefore your new technique is unneeded.  My question is, if a particular technique is different but not particularly obscure or obfuscated, can that really be considered a premature optimisation?  Here's a related article by Randall Hyde called .


How does one check what websites a person logs into using their Google account?

When you create Stack Exchange accounts and you want them tied to a Google account, when you log into your Google account you get taken to a separate page where it asks for permission and whether you want the setting to be remembered.  I am wondering how I can access the page which lists what accounts are tied to my Google account and have set to remember.   I think it's about time I went in and see what accounts I am not using and get rid of them.


Why in this code the output of the virtual functions is like this?

I am learning about virtual functions in C# and I've come across this problem I can't wrap my head around. I have the following code in C#:  namespace ConsoleApp1 {     class A     {         public virtual void F()         {             Console.WriteLine("A.F");         }     }     class B : A     {         public override void F()         {             Console.WriteLine("B.F");         }     }     class C : B     {         public new virtual void F()         {             Console.WriteLine("C.F");         }     }     class D : C     {         public override void F()         {             Console.WriteLine("D.F");         }     }     class Program     {         static void Main(string[] args)         {             D d = new D();             A a = d;             B b = d;             C c = d;             a.F();             b.F();             c.F();             d.F();             c = new C();             c.F();             Console.ReadLine();         }     } }   Why the output is this? It doesn't make sense to me at all. Can someone explain? Output:  B.F  B.F  D.F  D.F  C.F


Why do older films and television shows seem to have higher contrast?

I've always paid attention to how the colors in 1900s video seem to be more "vibrant", in particular the skin color of actors can look blush.     James Stewart and Kim Novak in Vertigo (1958)    Cary Grant in North by Northwest (1959)  The reason is likely technical.


Can I reverse the sign on some of my PCA factor scores and how can I justify this?

I have conducted a PCA to reduce the dimensionality of kinematic performance. This has produced eight components. I now want to plot the trajectory across different age groups. For five of the tasks, the trajectory is as expected, however for three of these, the direction of the relationship is completely opposite. I have read that the sign is arbitrary but how can I justify inversing the sign of some scores but not others? Any help would be greatly appreciated!


How could I quickly find a recursive symbolic link?

I am experiencing an issue with a indexing program running much longer than expected.  I want to rule out the possibility of a recursive symbolic link.  How could I find a symbolic link that is recursive at some level?


Obtaining WW2 records from the Dienststelle?

My grandfather worked for the German Post office May 1940 to end of war. I have a copy of a letter that my grandfather received in August 1944 while he was living there asking/ordering him to relocate to Ulm, Germany by September 1944. This copy I have indicates when he started, group number 8 ortsklasse. If I was to get in touch with the Dienststelle and send a scanned copy of both sides, would it help to locate the records faster?  Unfortunately, my last name is different from his, but I do have a long form copy of my birth certificate and marriage certificate of my parents. My grandfather's name appears on the marriage certificate so I can prove a connection. Also, would these records indicate previous military information or citizenship?


I'm using a batch file to execute an awk program and feed it filenames.  Question: How do I get it to expand the filenames on the command line?  Syntax:  Command.exe *.rpt > out.txt  Exact:  "C:\Users\user\Utilities\mawk.exe" -f "C:\Users\user\My Projects\AWK\EmailSQLResults.awk" C:\Temp\SQL\*.rpt > "C:\Temp\SQL\EmailResults.txt"  Result:  mawk: cannot open C:\Temp\SQL\*.rpt (Invalid argument)  Windows 10. Standard CMD window. mawk 1.3.4 20140914


Testing private class member in C++ without friend

Today I had a discussion with a colleague on whether to test or not to test private members or private state in the class. He almost convinced me why it makes sense. This question does not aim to duplicate already existing StackOverflow questions about the nature and reason of testing private members, like:   Colleagues suggestion was in my opinion a bit fragile to introduce the friend declaration to the unit test implementation class. In my opinion this is a no-go, because we introduce some dependency of tested code to the test code, whereas test code already depends on tested code => cyclic dependency. Even such innocent things like renaming a test class results in breaking unit tests and enforces code changes in tested code.  I'd like to ask C++ gurus to judge on the other proposal, which relies on the fact that we are allowed to specialize a template function. Just imagine the class:  // tested_class.h  struct tested_class  {   tested_class(int i) : i_(i) {}    //some function which do complex things with i   // and sometimes return a result  private:   int i_; };   I don't like the idea to have a getter for i_ just to make it testable. So my proposal is 'test_backdoor' function template declaration in the class:  // tested_class.h  struct tested_class  {   explicit   tested_class(int i=0) : i_(i) {}    template<class Ctx>   static void test_backdoor(Ctx& ctx);    //some function which do complex things with i   // and sometimes return a result  private:   int i_; };   By adding just this function we can make the class' private members testable. Note, there is no dependency to unit test classes, nor the template function implementation. In this example the unit test implementation uses Boost Test framework.  // tested_class_test.cpp  namespace {   struct ctor_test_context   {     tested_class& tc_;     int expected_i;   }; }  // specialize the template member to do the rest of the test template<> void tested_class::test_backdoor<ctor_test_context>(ctor_test_context& ctx) {   BOOST_REQUIRE_EQUAL(ctx.expected_i, tc_.i_); }  BOOST_AUTO_TEST_CASE(tested_class_default_ctor) {   tested_class tc;   ctor_test_context ctx = { tc, 0 };   tested_class::test_backdoor(ctx); }  BOOST_AUTO_TEST_CASE(tested_class_value_init_ctor) {   tested_class tc(-5);   ctor_test_context ctx = { tc, -5 };   tested_class::test_backdoor(ctx); }   By introducing just a single template declaration, which is not callable at all, we give the test implementer a possibility to forward test logic into a function. The function, acts on type safe contexts and is only visible from inside the particular test compilation unit, due to anonymous type nature of test context. And the best thing is, we can define as many anonymous test contexts as we like and specialize tests on them, without ever touching the tested class.  Sure, the users must know what template specialization is, but is this code really bad or weird or unreadable? Or can I expect from C++ developers to have the knowledge what C++ template specialization is and how it works?  Elaborating on using friend to declare unit test class I don't think this is robust. Imagine boost framework (or may be other test frameworks). It generates for every test case a separate type. But why should I care as long I can write:  BOOST_AUTO_TEST_CASE(tested_class_value_init_ctor) {   ... }   If using friends, I had to declare each test case as a friend then... Or end up introducing some test functionality in some common type (like fixture), declare it as a friend, and forward all test calls to that type... Isn't that weird?  I would like to see your pro and cons practicing this approach.


Why does blowing air through pursed lips make the air cooler than if we exhale through wide open mouth?

When we try to cool something through blowing on it, we purse our lips to exhale air through a narrow opening, which produces cooler air. However, if we open our mouths wide and exhale , then the air is hotter. What is happening here ? Why does changing the area through which we blow, change the temperature of the air we exhale ?


How to hide the welcome back message effectively?

In theory, using the  on uBlock Origin should work, but it doesn't:  *.stackexchange.com###overlay-header   How to do this properly?       Related:  in Meta Stack Exchange


html footer element is not positioning at the bottom?

I want my footer to stick to the bottom of my page, but it is not displayed at the bottom. It goes to aside or to the top close to navigation or, if it`s displayed at the bottom of the page then its background gradient color applies to the upper div element as well.   I have tried the following code:    body::after {     content: '';     display: block;     height: 90px; }  #footerindex {     position: absolute;     bottom: 0;     width: 100%;     height: 90px; }  Second code-  #footer {clear: both;     position: relative;     height: 40px;     margin-top: -40px;  }
        Terms and conditions  Privacy Policy
&#169; Copyright 2019 - jobg.xyz, All Rights Reserved.

Website designed and developed by Riven Apwbihls


Toast cause NPE on Samsung Galaxy S5 with Android 5

Here's code of Splash Screen (it's not my desire, but client) - the only thing I've done - just to replace sone code with loading data to this activity:  public class SplashActivity extends AppCompatActivity {  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);      Retrofit retrofit = new Retrofit.Builder()             .baseUrl(Constants.API_URL)             .addConverterFactory(GsonConverterFactory.create())             .build();      GetAll getAllProducts = retrofit.create(GetAll.class);     Call<ArrayList<Products>> call = getAllProducts.getAll(Constants.PARTNER_ID,             WaterFragment.getMD5Hash(Constants.PARTNER_ID + Constants.API_KEY));     call.enqueue(new Callback<ArrayList<Products>>() {         @Override         public void onResponse(Response<ArrayList<Products>> response, Retrofit retrofit) {             if (response.body() != null) {                 ActiveAndroid.beginTransaction();                 try {                     ProductsDMC product;                     for (Products p : response.body()) {                         if (new Select().from(ProductsDMC.class).where("product_id = ?", p.id).executeSingle() != null) {                             product = new Select().from(ProductsDMC.class).where("product_id = ?", p.id).executeSingle();                             product.price = p.price;                         } else {                             product = new ProductsDMC(p.id, p.article, p.title, p.price, p.amount, p.category_id,                                     p.brand_id, p.description, p.photo[0], p.option != null ? p.option.bottle_price : "0");                         }                         product.save();                     }                     ActiveAndroid.setTransactionSuccessful();                 } finally {                     ActiveAndroid.endTransaction();                 }             }else{                 Toast.makeText(SplashActivity.this, "Try later!", Toast.LENGTH_SHORT).show();             }         }         @Override         public void onFailure (Throwable t){             Toast.makeText(SplashActivity.this, "Check your connection!", Toast.LENGTH_SHORT).show();             Log.d("LoloPolo", t.getMessage().toString());         }     });     Intent intent = new Intent(this, ListOrdersActivity.class);     startActivity(intent);     finish(); } }   Tonight my crashlytic send info about crash on app:  Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.toString()' on a null object reference    at ru.luny.aqualuxe.activity.SplashActivity$3.onFailure(SplashActivity.java:142)    at retrofit.ExecutorCallAdapterFactory$ExecutorCallback$2.run(ExecutorCallAdapterFactory.java:94)    at android.os.Handler.handleCallback(Handler.java:739)    at android.os.Handler.dispatchMessage(Handler.java:95)    at android.os.Looper.loop(Looper.java:145)    at android.app.ActivityThread.main(ActivityThread.java:5832)    at java.lang.reflect.Method.invoke(Method.java)   It's about this:  Toast.makeText(SplashActivity.this, "Try later!", Toast.LENGTH_SHORT).show();   I really don't understand - how Toast.makeText().show can cause NPE))  Could you help me please?  EDIT  It seems strange but crashlytics shows me wrong place of error code string. It's not about toast but debug-loggin with getting message from exception.


Unable to set default browser to Chrome.  Neither from system side    not from Chrome side.  If I select Chrome in system settings, it just doesn't set. If I select to be default from Chrome, it opens the same system window.


I want to generate a unique id for my patient class, so I referred question    And the class below  class patient {      int id;      static int current_id;      patient() : id(current_id++) {} };  int patient::current_id;   For each time executing program it is generating 'current_id' from 1 to 'n'. Here n=1,2,3,4.....  I want to generate 'current_id' uniquely, even I execute program for any number of time it should be unique.  And  I am doing a c++ project to store Customer and Product information, and I want to store it in a file.  class Customer {     int id;     string name;     string type;     unsigned long long int PHNO;     string street,city;     unsigned int PIN; public:     Customer(){}     friend void readdata(); }; class Product {     int pid;     string pname,ptype;     unsigned int price;     string brand_name,suitable_for; public:     Product(){}     friend void readdata(); };   Here I will not take 'id' or 'pid' as input but I want to generate it automatically and then it should be stored in a file.  I also referred     but I don't know how to use in above class.  Is there any way to generate unique 'current_id' ?  If anybody know answer post suitable OR modified class also.


GeoJSON does not appear on my Leaflet map

I'm a beginner in Leaflet and I need help to deal with GeoJSON files.  I succeeded in creating a Leaflet basemap. I can add markers without troubles but I cannot manage to show a GeoJSON layer.  Here is the code I picked up from Leaflet Tutorials website  :  var geojsonFeature = {     "type": "Feature",     "properties": {         "name": "Coors Field",         "amenity": "Baseball Stadium",         "popupContent": "This is where the Rockies play!"     },     "geometry": {         "type": "Point",         "coordinates": [-104.99404, 39.75621]     } }; L.geoJSON(geojsonFeature).addTo(map);   Unfortunatly, the GeoJSON does not appear in my map.   Can you tell me where I missed something ?    Alright, you're fine Francisco, this part was OK. I changed the whole script and it works !  However, would you know how to load a GeoJSON from an external source ?  I tried this :   var geojsonLayer = new L.GeoJSON.AJAX("foo.geojson");        geojsonLayer.addTo(map);   from   but this definitely does not work.  Any ideas ?    I am not skilled enough to understand your advice.  Here is the whole code I am using to create my map :  <!DOCTYPE html>   <title>data</title> <meta charset="UTF-8"> <link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.3/dist/leaflet.css" />

      I know it's a bit messy but this is actually my very first HTML script... I guess I did not include in a proper way the AJAX library.    Actually, I just want a solution to replace the lines where I create the GeoJSON by something that tells javascript to load the GeoJSON stored locally in my folder. This :  var geojsonFeature = {     "type": "Feature",     "properties": {         "name": "Coors Field",         "amenity": "Baseball Stadium",         "popupContent": "This is where the Rockies play!"     },     "geometry": {         "type": "Point",         "coordinates": [-104.99404, 39.75621]     } };   should be transformed into something like (I don't know if it exists) :  var geojsonFeature = [foo.geosjon]   where "foo.geosjson" is a file like :  { "type": "FeatureCollection", "name": "abies", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [ { "type": "Feature"


Stack Overflow Careers reminder email: contradicting expiration date

The reminder email says:     We noticed you have not accepted our invitation to join Stack Overflow Careers. Only 3 days remain before it expires [...]      But please act soon: this invitation expires in 14 days [...]   Is it 3 days or 14 days now?


Logical Volume Group 17gb "Available Space"

Can anyone help explain why there is 17 GB worth of free space on my LVG I can't seem to do anything with this space. Is there anyway to fix this? I have already reformatted the disk then cloned the contents back with CCC. I also have FileVault enabled.  Whenever I see this on others setups it is usually a few KB not 17 GB


Problem with the extension of the file which is used to save listings

I want to display a snippet of Python code as a colored framed box in a beamer presentation. Besides, I'd like to save the snippet in a file. The code below gets the job done:   \documentclass{beamer}  \usepackage{xcolor} \usepackage{minted} \usepackage{tcolorbox} \tcbuselibrary{minted}  \newtcblisting{pythoncode}[4][\normalsize]{%   listing engine=minted,minted style=colourful, minted language=python,   oversize, listing only,left=1mm,bottom=1mm,right=1mm,top=1mm,   minted options={fontsize=#1},   listing file={snippets/#2},   colframe=#3,   title={\color {#4} \texttt{#2}}}  \begin{document}  \begin{frame}[fragile] \frametitle{Test} \begin{pythoncode}[\small]{script.tex}{blue}{yellow} def add(x, y):     '''Add two numbers'''     return x + y   result = add(x, y) print(result) \end{pythoncode} \end{frame}  \end{document}     However, if I try to change the extension of the output file from .tex to .py:  \begin{pythoncode}[\small]{myscript.py}{blue}{yellow}   I get the following error:  ! I can't write on file `snippets/myscript.py'. \tcbverbatimwrite ...mediate \openout \tcb@out #1                                                    \tcb@verbatim@begin@hook \... l.2 ...honcode}[\small]{myscript.py}{blue}{yellow}  Please type another output file name ! Emergency stop. \tcbverbatimwrite ...mediate \openout \tcb@out #1                                                    \tcb@verbatim@begin@hook \... l.2 ...honcode}[\small]{myscript.py}{blue}{yellow}  !  ==> Fatal error occurred, no output PDF file produced! Transcript written on mwe.log.   How can I go about this?    EDIT  I tried other file extensions such as .c, .cpp, .m, and .java and the code works like a charm. It's only .py that produces the error.  I'm using MiKTeX 2.9 on a Windows 10 machine.


how can I create a chapter heading like this?

Hi I want to format my chapter of my thesis as shown in the figure. How can I do it? Can you suggest me some fancy latex templates for a phd thesis?


Why do I have a tiny Terminal logo blocking the minimize button in Terminal windows?

Just as the title says, I have a mini icon when I open Terminal:    I would like to hide it if at all possible.


Proposition: Let $A$ be a non-zero ring that is not a field. Suppose $A$ is zero dimensional. Then it is Noetherian.   Proof: Let $p$ be a prime ideal of $A$. If $p$ is not maximal, then $p \subsetneq m$ for a maximal ideal $m$. Hence $dim A \ge 1$, contradiction. Hence every prime ideal is maximal. Consequently, every increasing (or decreasing) chain of prime ideals will be trivial in the sense that it will have length $0$. Hence the ring is Noetherian (and Artinian).  Is there a problem with the above proof?


What is the meaning of these label in top?

top - 17:05:46 up 7 min,  1 user,  load average: 227.48, 89.29, 36.78 Tasks: 1758 total,  25 running, 1555 sleeping,   1 stopped, 177 zombie Cpu(s):  1.5%us, 32.1%sy, 58.0%ni,  4.7%id,  2.7%wa,  0.1%hi,  0.8%si,  0.0%st Mem:  65951776k total, 20235624k used, 45716152k free, 10882480k buffers Swap:  4194300k total,        0k used,  4194300k free,  3291164k cached   What's the meaning of that?   doesn't say anything about that?  us means usage. sy seems to be system. ni? What is ni? What is id? What is wa? what is si? Why so much cpu time is spent on ni and sy?


Why is this throwing an null point exception?

For some reason whenever I test this, the IDE throws a NullPointerException at line 46 (the for loop that check the array for a name). It seems to work, since it fetches the name and returns it, but then immediately follows with the exception. Can anyone explain? Thanks!  import java.util.*; class PhoneNumbers {  private String name; private String number;  PhoneNumbers(String n, String numb) {     this.name = n;     this.number = numb; }  public String getName() {     return name; }  public String getNumber() {     return number; }  public static void main(String[] args) {     Scanner sc = new Scanner(System.in);     boolean repeat = true;     int count = 11;     PhoneNumbers[] contacts = new PhoneNumbers[30];      contacts[0] = new PhoneNumbers("Gina", "(847) 342-0912");     contacts[1] = new PhoneNumbers("Marcia", "(847) 341-2392");     contacts[2] = new PhoneNumbers("Rita", "(847) 354-0654");     contacts[3] = new PhoneNumbers("Jennifer", "(414) 234-0912");     contacts[4] = new PhoneNumbers("Fred", "(414) 435-0434");     contacts[5] = new PhoneNumbers("Neil", "(608) 123-0914");     contacts[6] = new PhoneNumbers("Judy", "(608) 123-0312");     contacts[7] = new PhoneNumbers("Arlene", "(608) 123-0312");     contacts[9] = new PhoneNumbers("LaWanda", "(920) 787-9813");     contacts[10] = new PhoneNumbers("Deepak", "(930) 412-0991");      while (repeat) {         boolean found = false;          System.out.print("Enter your friends name: ");         String nameInput = sc.nextLine();           if (!nameInput.equalsIgnoreCase("quit")){               for(int i = 0; i < count - 1; i++){                     if (contacts[i].getName().equalsIgnoreCase(nameInput)) {<---Here's where the issue occurs***                         found = true;                         System.out.println(contacts[i].getName() + "'s number is " + contacts[i].getNumber());                 }              }              if (!found){                  System.out.println("Enter your friends phone number: ");                  String num = sc.nextLine();                   contacts[count + 1] = new PhoneNumbers(nameInput, num);                  count++;              }          }else if (nameInput.equalsIgnoreCase("quit")) {             repeat = false;         }else if (count == 30){              repeat = false;              }         }     } }


Removing burnt oil from first seasoning for carbon steel wok

I attempted to season my new carbon steel wok using an outdoor gas fryer, which worked great for turning the metal the proper blue color. Unfortunately, for the seasoning step, I put too much canola oil on the wok, and now the center has a black film that cannot be easily scraped off. I've seen conflicting advice for how to remove it. Should I simply put the wok back on the fryer and re-heat to bake everything off, and then re-season?


Is it possible that Arthur Fleck is not the real Joker?

Joker traces the origin story of Arthur Fleck, a troubled man (mentally, financially, and in several other ways) who goes into a downward spiral and emerges as a maniacal killer. My question: is Arthur Fleck the Joker we see in other Batman movies (e.g. Heath Ledger's Joker)? Nothing in the movie seems to confirm this, and - as far as I know - no Batman movie/comic book/etc gives the real name of the Joker. We see at the end of the movie that Arthur (who was introduced as Joker on Murray Franklin's show) starts some sort of movement against the elite of Gotham, and people inspired by him and his actions dress up as Jokers and riot around the city. Is it not entirely plausible that the real Joker is just someone inspired by Arthur, and not Arthur himself?   An example that shows that this theory is not inconsistent with other representations of the Joker: In Dark Knight, when we're first introduced to Ledger's Joker in a bank robbery scene, the other people robbing the bank with him don't seem to know much about him or his name. One of them even describes him as "some guy who calls himself Joker". If this Joker is indeed Arthur Fleck - who became infamous after his appearance on Murray Franklin's show - how is it that these people don't know anything about him?


What's the syntax to import a class in a default package in Java?

Is it possible to import a class in Java which is in the default package?  If so, what is the syntax?  For example, if you have  package foo.bar;  public class SomeClass {     // ...   in one file, you can write  package baz.fonz;  import foo.bar.SomeClass;  public class AnotherClass {     SomeClass sc = new SomeClass();     // ...   in another file.  But what if SomeClass.java does not contain a package declaration?  How would you refer to SomeClass in AnotherClass?


Firmware and Windows 10 time discrepancy

I have an MSI X399 motherboard and Windows 10 OS.  I had an issue with my time shown being wrong by -1 hour (and this morning -2 hours due to the clocks going forward last night). I tried several options in the Windows 10 environment, but to no avail. So every time I made a change in Windows 10, rebooted, the false time was still shown.  Solution: OK, so I solved this by changing the time in BIOS, then the matter is somehow solved. Though I'm not totally happy with this, because I would have expected that this would have been resolved in Windows 10 itself. So what happens when the clocks go back, do I need to change again in BIOS (instead of it automatically being corrected)?


How do I remove my name from the top right corner of Chrome?

Apparently Chrome updated again and decided to put my name in the top right corner. I don't want to uninstall my "profile" (synched with my Google account)—is there a way to remove the name from the top corner (or to replace it with an image) without damaging my sync settings?  Update: Now  in Chrome 69


Word Processor Margins versus Printable Area of Paper

I often get told by Word 2013 that, on trying to print, my margins are outside the printable area of the paper. Does this mean that the printer applies a 'margin' to the paper to which it cannot print, e.g. a cheap printer can only print within 2cm of the physical edges of a piece of A5 paper? So the margins I set in word must all be greater than or equal to 2cm. When I choose to Fix the margins, my margins are decreased to 2cm where necessary?  I am trying to replicate a document printed on slightly smaller than A5 paper, and print it on an A5 page size. I assume my margins of e.g. 0.6cm are outside of the printer's 'margin' for A%, say 0.8cm, and I get the complaint.   How could I remedy this? Physically centre the original document on a real A5 page and measure my Word margins from the edge of the A5?


I can't click on anything in Minecraft. I am not in adventure mode, I can place blocks and torches and stuff, but I can't break anything or use any items. When I go to the menu, I can't click and save the game either. I was looking at my coordinates when I accidently hit escape and I was confused and then I hit escape again and that it when I couldn't hit or break blocks or anything. Then I tried doing it again to see if it would fix the problem, but it didn't. If anyone can help or send advice, it is greatly appreciated.


Is $\lor$ definable in intuitionistic logic?

The  mentions that $\{\lor,\leftrightarrow,\bot\}$ and $\{\lor,\leftrightarrow,\neg\}$ are complete sets of operators for intuitionistic logic, and also gives a few equivalences for other operators in terms of $\lor$, but there are no equivalences listed for $\lor$ itself. So my question is whether it is possible to define an expression in $\{\land,\to,\neg\}$ (which also includes $\leftrightarrow,\bot$) that is intuitionistically equivalent to $\lor$ in the sense that it satisfies the "definition"  $$((A\lor B)\to C)\iff((A\to C)\land(B\to C)).\tag{1}$$  (I suspect the answer is no, but I'd like a proof.) This question extends to the classification of all minimal complete operator subsets of $\{\land,\lor,\to,\leftrightarrow,\neg,\top,\bot\}$. Depending on the answer to this question, it seems that we have  $$\{\lor,\leftrightarrow,\neg\},\{\lor,\leftrightarrow,\bot\},\{\lor,\land,\to,\neg\},\{\lor,\land,\to,\bot\}$$  if it is true, otherwise  $$\{\land,\to,\neg\},\{\land,\to,\bot\},\{\land,\leftrightarrow,\neg\},\{\land,\leftrightarrow,\bot\},\{\lor,\leftrightarrow,\neg\},\{\lor,\leftrightarrow,\bot\},\{\to,\leftrightarrow,\neg\},\{\to,\leftrightarrow,\bot\}.$$


In Catan, can you continue a "circular" road?

If I have 6 roads that go all around a single hex tile, they are a continuous uninterrupted road (assuming none of my opponents interrupts it with their settlements/cities). But, can I continue this 6-piece road and create a 7-piece continuous road by building a road that goes out of this hex tile? Here's an image of what I'm talking about:    Is this a valid 7-piece continuous road?


Every time I touch an object a full-render starts

I don't know what setting I switched, or what happened, but for some reason now every time I move, scale or rotate an object in the 3d View - blender starts a render. I am not talking about the 3d View being in "Rendered" mode. I am talking about the same behavior as when you click the "Render" button (switch to image editor, begin full render). This is driving me crazy and I can't seem to figure out how to turn it off or what I did to start it. It happens whether I use the mouse or keys. If I open a new document the behavior goes away so it is probably a preference setting(?) If you can help, I will be eternally grateful.  Thanks in advance.


how to know if an element is visible to the user?

I'm trying to make web like this. and I can't figure out how to make effects that when user scroll down the page. And  backgrounds of the sections are became longer. How to know if user scroll down and element is visible to the user.  And my problem is a lot like


Best way to create blended cylinder/hexagon?

I'm fairly new to Blender and I'm trying to create a mesh that smoothly transitions from cylindrical endcaps to a flattened hexagonal midbody.    I'm able to make one pair of faces easily enough by selecting verts and doing a normal z scale operation of 0.  You can see one of the faces generated this way on the right side of the mesh.  However, this doesn't work on subsequent faces since the scaling operation moves the verts that border the neighboring hexagon faces, distorting them.  I've highlighted the next face I'd like to flatten.  How can I do this while keeping the verts on the far right and left side of the face stationary?  I've seen people using vertex hiding to hold geometry in place but I can't do that since I need to have all of the verts in the face selected when I do the scale transform.  Alternately, it there a better way to do this than distorting a cylinder mesh primitive?


Constrained Regression in R: coefficients positive, sum to 1 and non-zero intercept

I have the model that I need to estimate, $$ Y = \pi_0 + \pi_1 X_1 + \pi_2 X_2 + \pi_3 X_3 + \varepsilon, $$ with $\sum_k \pi_k = 1 \text{ for }k \geq 1$ and $\pi_k\ge0 \text{ for }k \geq 1$.   Elvis  solves this for the case of $\pi_0 = 0$. Here's his/her code of this solution:     > library("quadprog");    > X <- matrix(runif(300), ncol=3)    > Y <- X %*% c(0.2,0.3,0.5) + rnorm(100, sd=0.2)    > Rinv <- solve(chol(t(X) %*% X));    > C <- cbind(rep(1,3), diag(3))    > b <- c(1,rep(0,3))    > d <- t(Y) %*% X      > solve.QP(Dmat = Rinv, factorized = TRUE, dvec = d, Amat = C, bvec = b, meq = 1)    $solution    [1] 0.2049587 0.3098867 0.4851546     $value    [1] -16.0402     $unconstrained.solution    [1] 0.2295507 0.3217405 0.5002459     $iterations    [1] 2 0     $Lagrangian    [1] 1.454517 0.000000 0.000000 0.000000     $iact    [1] 1   How can I adjust this code such that it can estimate an intercept?  This has been cross-posted  because my group in my assignment is getting annoyed that I haven't estimated this regression yet. I will answer this question here if/when  the other forum participants get there first.


Interpretation of the t.test and Wilcox.test in R

I got two distribution which are not pairs. It's difficult to say that they are also from a normal distribution because they have different length.  The distributions of the vectors are, for gas: 65  65  65  65  74  74  74  74  74  77  78  81  81  83  83  83  85  85  85  85  85  87  87 89  89  90  91  91  91  91  91  91  94  94  94  95  95  95  95  98 101 101 101 102 102 102 102 102 103 103 103 103 103 104 104 104 104 104 104 106 106 106 106 107 108 108 110 110 113 113 115 115 115 118 118 118 118 119 119 121 122 122 122 125 125 125 128 128 128 128 128 129 129 134 134 134 134 134 134 137 137 137 142 145 145 148 148 148 148 150 150 150 150 150 150 150 153 153 154 154 154 158 158 161 161 161 161 161 161 161 161 164 164 168 168 168 168 168 186 188 188 192 192 194 194 197 197 231 256  while for the diesel vector distribution is:  65  91  91  93  93  93  93  94  94  95 122 128 161 161 161   I made the t.test and the wilcox.test and I got these results:  Welch Two Sample t-test  data:  diesel_type and gas_type t = -1.7104, df = 18.149, p-value = 0.1042 alternative hypothesis: true difference in means is not equal to 0 95 percent confidence interval: -31.873874   3.256425 sample estimates: mean of x mean of y  109.0000  123.3087    and Wilcoxon test is:  data:  diesel_type and gas_type W = 843, p-value = 0.1179 alternative hypothesis: true location shift is not equal to 0   I could accept the null hypothesis in the t.test, saying that the means are equals because the p-value is over the 5%. Should I accept the null hypothesis in the Wilcoxon test too? Are the medians equals? What could I say about these results?


When saving images in photoshop CS6 as png they get a white background

I've got an image, it's an RGB 8 bit.     But when i save it as png, i don't see the transparency, it's all white


What would for an observer be the mass of an isolated wormhole (meaning that there is no gas and no mass of stars around it) if the wormhole mouth opposite to the observer reflects the light of a region from the galaxy it opens into.   Wormholes per definition require negative energy in the form of exotic matter so as to have their mouths open. Would this negative mass be the only mass of the wormhole object or for an observer in the isolated wormhole also include the light reflected of stars and gases visible through the wormhole of another galaxy.  Wormholes connect two systems for only a short time, and collapse when too much time has passed, or too much mass has passed through them. My question would be for wormholes that can have their mouths connected either naturally or artificially for a reasonable length of time.


I have Ubuntu 14.4.03. The default golang version which came with it was 1.2.1. I would like to update golang to 1.4 or higher.   After searching I found the way to do this would be to first delete current go installation and then re-install the new version.  I found the following go installation files in the following directory:  /usr/share/go /usr/share/go/src/cmd/go /usr/share/go/src/pkg/go /usr/lib/go /ur/lib/go/pkg/linux_amd64/go /ur/lib/go/pkg/linux_amd64_race/go /usr/bin/go   Which directory contains what? Which ones should I delete? What should be the location of new installation? It seems /usr/local is more normal. Then how come Ubuntu default is as above?  What would be the procedure to install a new version og golang?  Thanks.


Can I schedule startup and shutdown with different settings for weekdays and weekends?

Everyday, I usually start my Mac Mini at 16:00 and shutdown it at 2:00 using the Energy Saver schedule settings.  I would like to be able to set a different behavior on the Weekends starting Mac Mini at 9:00 for example. Do you know any way to achieve that (third party software, cron job, superuser trick)?


What is the story behind the default times set in /etc/crontab?

To my understanding, this is the default configuration of /etc/crontab:  # m h dom mon dow user  command 17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly 25 6    * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) 47 6    * * 7   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly ) 52 6    1 * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )   Why were these specific times chosen for the default entries?  At first I assumed that they are somewhat randomized on installation to even out the system load, but that doesn't seem to be correct.


Is there a term for a foreign word that looks like an English word but has a completely different meaning?

examples:         Gift (German) = poison   poisson (French) = fish   embarazada (Spanish) = pregnant   sauce (Spanish) = willow   triviale (Italian) = vulgar   parentes (Portuguese) = relatives   slim (Dutch) = smart


How does one create a data base for a survey/questionnaire?

I need to create a database for a wordy questionnaire. At the end I want to be able to graph my information. Where can I do this?


Can i change the value of static variables in java? Can you tell me why it is showing this output?

// Here is the code for static variable.... class IdentifyMyParts {     public static int x = 7;     public int y = 3; }  public class Testing {     public static void main(String[] args) {         IdentifyMyParts a = new IdentifyMyParts();         IdentifyMyParts b = new IdentifyMyParts();         a.y = 5;         b.y = 6;         a.x = 1;         b.x = 2;         System.out.println("a.y = " + a.y);         System.out.println("b.y = " + b.y);         System.out.println("a.x = " + a.x);         System.out.println("b.x = " + b.x);     } }  // Output:-              a.y = 5                b.y = 6                   a.x = 2                     b.x = 2               Why the value of a.x is not changing? Why is it showing a.x = 2?


#1 in bronze but still stuck there. Why?

Just started playing SC2. Never played RTS before. It's been 3 and a half weeks since I'm number 1 in my bronze league (40 games won/ 41 games lost)-680 points.   What I don't understand is why I'm not moved to the next league?(silver). I'm not good enough or is there a bug?


I want to find the solutions $(a,b)\in\mathbb{Z}^+\times\mathbb{Z}^+$ of $7^a+2=3^b$. One such solution is $(a,b)=(1,2)$.  Looking modulo $4$, we have $(-1)^a+2\equiv(-1)^b$, so $a$ and $b$ are of different parity.  Modulo $3$: $1+2\equiv 0$, which is always true.  Modulo $7$: $2\equiv 3^b$, so $b\equiv 2\pmod 6$. This means $a$ is odd.


How do you Programmatically Download a Webpage in Java

I would like to be able to fetch a web page's html and save it to a String, so I can do some processing on it.  Also, how could I handle various types of compression.  How would I go about doing that using Java?


Colors in timestamps on Meta Stack Exchange do not indicate "recentness"

I am used to see timestamp everywhere by it's color. The recent timestamps are a little bit reddish everywhere. E.g. in Meta Stack Overflow:  Last edit:        Last seen:        But in Meta Stack Exchange they have same color everywhere even for recent time:  Last edit:        Last seen:         Please make it something like this:


How do I automatically restart docky after a crash?

docky crashes from time to time for me. How can I make it restart automatically after it crashed?


How was the Star Trek timeline officially established?

The Original Series is set from 2265 to 2269, but as far as I can remember, the year was never given until much later, in The Next Generation, which arbitrarily started 100 years later.  Somehow, someone, most likely Mike Okuda or Gene Roddenberry himself, decided to make 2265 the start year, but how was that decided? What specific clue or line tied it down to that year? Perhaps in the last season of TOS someone said onscreen that it was 300 years since Apollo 11?


Monic and epic implies isomorphism in an abelian category?

Is it true that monic and epic implies isomorphism in an abelian category?


No function $f:\mathbb{Z}\rightarrow \{1, 2, 3\}$ satisfying $f(x)\ne f(y)$ for all integers $x,y$ and $|x-y|\in\{2, 3, 5\}$

Show there does not exist a function $f:\mathbb{Z}\rightarrow \{1, 2, 3\}$ satisfying $f(x)\ne f(y)$ for all integers $x,y$ and $|x-y|\in\{2, 3, 5\}$.   This is taken from "Putnam and Beyond" and I cannot seem to understand why this cannot be true. I let $x$ be fixed and assigned $f(x)=1$, then assumed $f(y)=2, |x-y|=2.$ Then I proceeded to substitute $y-1$ and $y-3$ but did not get anywhere in finding a contradiction.  I am looking for comments about my approach and an explanation of the solution.


Custom anisotropic material not quite working as expected

Working in Blender 2.82a, I have noted that the Anisotropic does not work in eevee, so I try to create my own. I managed to make it half work, but I may have misunderstood a node value.    If you follow the pink "scar" you will see that it shifts as I move the view, but when I move the light the "scar" does not shift. The Shader setup is as follows.    I am guessing Incoming is not the node I should use if I want the "scar" to react to the lights. What should I use instead?


Maybe someone can help me with the following problem. The problem is that i'm trying to add new photo album(with jQuery) and after adding- to show new album i'm reloading DIV with jQuery .load function  $($classid).load('..')   Everything is working fine, except that after reloading function like folder hovering (where bar with buttons appear - delete,etc..on hover) just don't work. It looks like after DIV reloading jquery is dissabled and it need's to be called out again to run all functions.  I'v tryed to add this code   <script>             $.getScript("/data/sys.js" ); // item hovering functions styling etc..             $.getScript("/data/late.js" ); //for button clicks  </script>   at reload DIV'S Content.. Everything worked fine except that when I try to add new photo album at next album adding it multiply's added folder count.. so when i add one there show's up one, at next click there is two new folders..  I'v tryed alot and I cant figure out how to stop this or do it in diffrent way.. here is late.js file that is responsible for new folder adding..   Thanks in advance..


Package "comicsans": How to prevent setting of default fonts

I'm using the comicsans package and I noticed that it automatically changes a lot of default fonts to comics.  I was wondering if there is some command to restore everything to the default fonts?  I've already tried  \renewcommand{\rmdefault}{cmr}   The problem is the comicsans package change a lot of font families, so I would like to avoid setting everything manually to the right font (actually I don't which are the default fonts for book document) and use comic font only for few paragraph where it is needed.


Differentiating using Cauchy's repeated integral formula

Can we use Cauchy's repeated integral formula to differentiate functions?  $$(I^nf)(t)=\frac{1}{\Gamma(n)}\int_a^x (x-t)^{n-1}\space f(t)\space\space dt,\space\space n\notin \mathbb Z_{\leqslant 0}$$  If we replace $n$ with $-n$ such that $0<n<1$, do we end up finding $n$-th derivative of $f(t)$?  I tried to evaluate this equation by trying to find half derivative of $x$, but the integral diverged so I didn't success. Can we use this to differentiate functions and how is it applied on $f(t)=t$


Are there non-convergent cauchy sequences?

By non convergent I mean DIVERGENT and NOT that it converges to a value outside the space. Examples are appreciated. Thanks


How do AD/AP boosts apply to abilities with long cast times, channels or animations?

For example: I'm playing Janna in bot lane with Caitlyn. Caitlyn begins channeling Ace in the Hole to finish off an enemy. Will the AD buff from my Eye of the Storm apply extra damage to Caitlyn's ultimate if I cast at after she begins channeling? Similarly, if I see Caitlyn rev up to shoot Piltover Peacemaker, can I boost her AD after the animation begins? (If I remember correctly, Piltover Peacemaker has a quick cast time, but the spell animation is rather long, so it may be a different circumstance from the first example.)  Basically, I want to know if the AD is calculated at the start of a cast, at the end of a cast, or when the ability actually creates and object on the battlefield.


Draggable jquery object not responding to .click() on the dynamically created object

I am creating a draggable jquery object which needs to be first dragged and moved (copied to main container) and then clicked to be opened as a modal window with further options. I  am not able to use .click() on the dynamically created object which was dragged (& copied) to the main conatiner. If a static object is placed there, JS responds to the click.   Main Content.           Elements to Add:     TextGear     EmailGear     DateGear     CheckBoxGear     FileGear      buttonGear      WebGear      MobileGear

Add Elements here

Drop Here To Remove!
     I am using DAD js to remove object.   Edit 1 : DAD.js (Jquery plugin) is adding  drop remove option. Thus leading to click not possible!!!


WD 5TB external HDD out of Mybook enclosure

I have a WD mybook witha 5TB HDD in it, formatted as a single partition. I removed the drive from its MyBook enclosure and installed it into my desktop computer.  When I open disk management I see 6 partitions. Some unallocated, some are healthy. I cannot access these from file explorer. It has a volume assigned as (E:)  but won't work.   The HDD is a WD Blue.  What are the options to make this work as a regular internal hard drive?   Additionally when I plug it other HDD into the external enclosure it won't work either.


Find remainder of division of $x^3$ by $x^2-x+1$

I am stuck at my exam practice here.      The remainder of the division of $x^3$ by $x^2-x+1$ is ..... and that of $x^{2007}$ by $x^2-x+1$ is .....   I tried the polynomial remainder theorem but I am not sure if I did it correctly.  By factor theorem definition, provided by ,     the remainder of the division of a polynomial $f(x)$ by a linear polynomial  $x-r$ is equal to $f(r)$.   So I attempted to find $r$ by factorizing $x^2-x+1$ first but I got the complex form $x=\frac{1\pm\sqrt{3}i}{2}=r$.   $f(r)$ is then $(\frac{1+\sqrt{3}i}{2})^3$ or $(\frac{1-\sqrt{3}i}{2})^3$ which do not sound right.  However, the answer key provided is $-1$ for the first question and also $-1$ for the second one. Please help.


Are wands required for an animagus transformation? If so, how were they used in Azkaban? If not, why did Pettigrew need one?

In chapter 20 of Harry Potter and the Prisoner of Azkaban, it's made very clear that Peter Pettigrew needed a wand to use his animagus transformation and escape. However, one chapter earlier we learn that Sirius Black was using and reverting his animagus transformation inside of Azkaban. This gives us the absurd conclusion that Azkaban's prisoners have wands. Clearly, something is wrong here. What's the solution? I could speculate that it can be done without a wand but Pettigrew, unlike Black, lacks the competence, but I'm hoping for something more solid and clearly present in the text.


Bug in system information script 'inxi' - displaying folder content instead of info

I just ran inxi -m (version 2.2.16-0ubuntu1 on Ubuntu 15.10 64-bit), which should...  -M   Show machine data. Motherboard, Bios, and if present, System Builder (Like Lenovo).  Older systems/kernels without      the  required /sys data can use dmidecode instead, run as root. If using dmidecode, may also show bios revision as      well as version. -! 33 can force use of dmidecode data instead of /sys.   (excerpt from man inxi)   ...but in my case, it filled the result mask with file names from my home directory!  $ inxi -M Machine:   System: MAXDATA product: Desktop v: Documents serial: Downloads            Mobo: Pictures model: Public v: PythonProjects serial: Templates            Bios: Videos v: bin rv ASUSTeK date: iconlist.txt   Can I apply any patch or workaround myself to fix it?


For graph G without a triangle(with no triangle) with n vertices and m edges  Prove that:  1)$ \forall xy \in E , d(x)+d(y) \le n$  2)$(\sum_{v\in_V}^{ }d(v)^2)\le mn$


I would like to measure elapsed time in days with the Python time module. My attempt is:  import time, datetime  def elapsed_time(start)     return datetime.datetime.fromtimestamp(time.time()-start).strftime('%Y-%m-%d-%H-%M-%S')  start = time.time() print(elapsed_time(start)) # 1970-01-01-00-00-06   I would like the string to start from year 0, month 0, and day 0. How do I do that?


If I'm running a python file over the kali linux terminal, can I somehow select a specific color to the output when a variable is printed?

print("hello")  If I wanted the word "World" to be outputed as red on the kali linux terminal, how can I do that? print("World")


Why is the size of lambda memory not 12?

I came across this issue whilearning lambdas, This was run from Visual Studio 2017 in Debug X86 mode   int main() {   int i=0;   double j=0;   auto lambda = [i,j]()     {       std::cout<<sizeof(j)<<std::endl;       std::cout<<sizeof(i)<<std::endl;     };         l();   std::cout<<sizeof(lambda); }   If both fields are ints I get a size of 8 (4+4). For a double and an int I was expecting an output of 12(8+4), but instead it gives me 16.


How can I install the $0 applications from the Ubuntu Software Center with apt-get?

In the Ubuntu Software Center, there are lots of $0 apps that I can 'purchase': for example:           As these applications are free (as in beer), I wonder how I can install them using apt-get.


My ex employer wants me to draft my own reference letter to the MSc program, is it unethical?

I submitted my application for a MSc program and one of my referees was declined this week by the department. Because this was so sudden from the department and I had to find someone who is willing to write me a reference letter in 3 days notice, I asked my previous employer to write me one. My employer told me to simply draft my own letter and send it back to him so he can upload it !  is it unethical? the rejection of my initial referee was sudden and none of my old professors would remotely agree to write me a letter in two days notice. I don't want to commit anything wrong that could compromise my candidancy.


The Kernel space in the address space is reserved for us by what?

During process execution, when the memory map of a process is like so:    This might be a silly question, but what is responsible for reserving the Kernel space in the address space? Are user processes responsible for this? privileged processes? all processes?  From my understanding, the kernel memory space is reserved by the process running but it is only accessible by the CPU when instructed to execute under ring 0. Is this correct ?


Every reinstalling from scracth this warning keep showing. dpkg --verify

dpkg: aviso: cups-browsed: não foi possível abrir /usr/lib/cups/backend/implicitclass para o hash: Permission denied  ??5??????   /usr/lib/cups/backend/implicitclass ??5??????   /boot/vmlinuz-5.8.0-31-generic dpkg: aviso: geoclue-2.0: não foi possível abrir /var/lib/polkit-1/localauthority/10-vendor.d/geoclue-2.0.pkla para o hash: Permission denied  ??5??????   /var/lib/polkit-1/localauthority/10-vendor.d/geoclue-2.0.pkla dpkg: aviso: systemd: não foi possível abrir /var/lib/polkit-1/localauthority/10-vendor.d/systemd-networkd.pkla para o hash: Permission denied ??5??????   /var/lib/polkit-1/localauthority/10-vendor.d/systemd-networkd.pkla dpkg: aviso: network-manager: não foi possível abrir /var/lib/polkit-1/localauthority/10-vendor.d/org.freedesktop.NetworkManager.pkla para o hash: Permission denied ??5??????   /var/lib/polkit-1/localauthority/10-vendor.d/org.freedesktop.NetworkManager.pkla dpkg: aviso: linux-modules-5.8.0-33-generic: não foi possível abrir /boot/System.map-5.8.0-33-generic para o hash: Permission denied ??5??????   /boot/System.map-5.8.0-33-generic dpkg: aviso: linux-image-5.8.0-33-generic: não foi possível abrir /boot/vmlinuz-5.8.0-33-generic para o hash: Permission denied ??5??????   /boot/vmlinuz-5.8.0-33-generic dpkg: aviso: sudo: não foi possível abrir /etc/sudoers para o hash: Permission denied ??5?????? c /etc/sudoers dpkg: aviso: sudo: não foi possível abrir /etc/sudoers.d/README para o hash: Permission denied ??5?????? c /etc/sudoers.d/README dpkg: aviso: ppp: não foi possível abrir /etc/chatscripts/gprs para o hash: Permission denied ??5?????? c /etc/chatscripts/gprs dpkg: aviso: ppp: não foi possível abrir /etc/chatscripts/pap para o hash: Permission denied ??5?????? c /etc/chatscripts/pap dpkg: aviso: gnome-initial-setup: não foi possível abrir /var/lib/polkit-1/localauthority/10-vendor.d/gnome-initial-setup.pkla para o hash: Permission denied ??5??????   /var/lib/polkit-1/localauthority/10-vendor.d/gnome-initial-setup.pkla dpkg: aviso: linux-modules-5.8.0-31-generic: não foi possível abrir /boot/System.map-5.8.0-31-generic para o hash: Permission denied ??5??????   /boot/System.map-5.8.0-31-generic dpkg: aviso: packagekit: não foi possível abrir /var/lib/polkit-1/localauthority/10-vendor.d/org.freedesktop.packagekit.pkla para o hash: Permission denied ??5??????   /var/lib/polkit-1/localauthority/10-vendor.d/org.freedesktop.packagekit.pkla dpkg: aviso: cups-filters: não foi possível abrir /usr/lib/cups/backend/cups-brf para o hash: Permission denied ??5??????   /usr/lib/cups/backend/cups-brf dpkg: aviso: policykit-desktop-privileges: não foi possível abrir /var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla para o hash: Permission denied ??5??????   /var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla dpkg: aviso: fwupd: não foi possível abrir /var/lib/polkit-1/localauthority/10-vendor.d/fwupd.pkla para o hash: Permission denied ??5??????   /var/lib/polkit-1/localauthority/10-vendor.d/fwupd.pkla  Should I ignore since it's not affecting my machine performance or try to dig it out? ~$ sudo dpkg --verify   ??5??????   /boot/vmlinuz-5.8.0-31-generic


Best way to parse the human names in a large list of addresses when the order of names is unkown in advance

I have a large data set of email addresses from 'to' and 'cc' fields and such that are of the general form {some human name} {email addr}. I want to be able to reliably parse the human name section into first (or first+middle) and last name (and optionally suffixes like sr, jr, phd for more points).  Previous SO queries have pointed to a couple of parsing libraries that do a pretty respectable job of parsing name strings, but they all seem to start from the assumption that the names are in the correct order. However many institutional email systems will give you an email string something like:  "Potter, Harry" <hpotter@hogwarts.edu>  or maybe "Smythe III, Reginold Trevor" <twit@upperclass.org>   Is there a neat solution for handling this with the existing v. nice libraries?  This question was marked as a "duplicate" by a reader, but that seems to be in error, because the original question, above clearly distinguishes between the "duplicated" question about parsing person names and the discussed problem, which is handling the case when the first and last names in a string are in inverted order. It is /not/ the same as dealing with the even more difficult case of those Eastern tradition names where the family name is given first.


What languages are we allowed to speak in SE chat rooms?

Is there any restriction as to what languages are allowed in SE chat rooms? I have seen many people speak in German, Russian or French in the  chat room, but whenever I speak in Persian (to a friend who understands me), some people start nagging that I should only speak in English! In a recent case, one of my chat messages was removed by a moderator because somebody flagged it as non-English! Is there really any rule that restricts the spoken languages in chat rooms? If not, based on what rule was my message removed by a moderator?


In my laundry room, I've got asbestos floor tile. (The house was built in 1967.) The tile is laid on the concrete slab. Is it possible to lay ceramic penny tile over the asbestos tile if I put down cement backerboard first? I'd like to avoid pulling up the asbestos tile.


Split file into multiple files based on field

How am I able to split a file into multiple files based on $2? Example of input, 123,hello,world 124,hello,planet 125,universe,hello 126,hello,universe  Desired output, hello.txt >  123,hello,world 124,hello,planet 126,hello,universe  universe.txt >  125,universe,hello


What does each term in the trinomial represent and their relation to each other?

I am trying to get a grasp or concept understanding what how trinomials answer questions other than answering questions in an algebra class. I. Looking for the practical application. What does the first term generally represent? I believe it's called the quadratic, but I'm unsure what that means beyond that it's the definition. I know the third term is my constant, which I assume leaves the second as my variable. Sorry if my question seems I ignorant. But I'm really wanting to understand what I'm doing, beyond following formulas and delivering an answer.


I am using  module to have a custom page for content list. I have added some new columns to the view and now I want to export all that in a Features so I can deploy it on my staging server. The problem is that I just can't export it in a feature, when I create the feature, it is just "empty", there is only a depedancy to admin_views but I can't see changes I have made.  Anyone has a solution for this?


British Airways to Qatar airways : baggage transfer with separate tickets

I will be flying from Aberdeen (Scotland) to London Heathrow on one ticket with British Airways. I have a second separate ticket for a flight with Qatar airways from London Heathrow to Doha and with Qatar again from Doha to Perth in Australia. There are 1-3/4 hours between flights in Heathrow.  Q1. Will I be able to check my baggage all the way through from Aberdeen to Doha & Perth, or will I have to collect it in Heathrow and check it in with Qatar airways?  Q2. Does it make any difference whether I have the two separate tickets versus one ticket?  Q3. Can I get all my boarding passes issued at Aberdeen or will I need to get the Qatar airways boarding passes at the flight connections centre in LHR?  Both airlines are in the OneWorld alliance so I'm presuming they can check it all the way through?


Sorry but I don't think I can know, since it's a definition. Please tell me. I don't think that $0=\emptyset\,$ since I distinguish between empty set and the value $0$. Do all sets, even the empty set, have infitinite emptiness e.g. do all sets including the empty set contain infinitely many empty sets?


Why would perfectly similar data have 0 mutual information?

I'm not a statistic major, so my knowledge of statistics is quite limited but I've found myself in need of learning about and using mutual information. I believe I understand the concept and formula, but it seems counter-intuitive that perfectly similar data would have 0 mutual information. I would expect two sets of data with perfect similarity to have mutual information of 1.  I'm writing a program which calculates Mutual Information between two columns (i and j) in a pairwise protein sequence, and I'm not sure if I should manually fix the MI to be 1 if the columns are exactly the same. For example, if the two columns (written as lines) were:  CLLYFFDTTQGILMIGCL IILLIIIIFLIVILVIFV   Then I've calculated the MI by hand to be equal to 0.8384. However, if the two columns (written as lines) were:  GGGGGGGGGG GGGGGGGGGG   The mutual information will be equal to 0 because the formula will result in:  $$\sum \left( p(1) \times \log \left( \frac{p(1)}{p(1) p(1)} \right) \right) = 1 \times \log \left( \frac{1}{1} \right) = 0$$  In my program I have it check if the columns are identical (i = j) and just manually assign Mi = 1. So I'm wondering: Is this bad practice? Does it only consider one possible case of many? Should I not do this at all? The professor I'm working with suggested I incorporate a pseudo-count for every other non-existing amino acid and ignoring a manual fix for when i = j.  Would a pseudo-count fix this? Counting each existing amino acid as 1.1 and everything else as 0.1, or would it result in the same mutual information? Again, I'm far from a statistics major so if you can explain simply, that would be best. Thanks.


What are the applications for high ISO shooting?

EOS high-end cameras seem to have a very high ISO range. According to some charts, the prosumer 6D has 102400 ISO extrapolated and the 1Dx can go up to 400K ISO. These numbers seem insanely high to me.  In the film era, if you wanted to maximize picture quality, you tended to stay close to 100 ISO or below. From all I read, this is still the case and ISO 100 gives the best digital capture quality.   I understand that now you can take pictures in near darkness that couldn’t be obtained a decade ago.   What I read in  seems to confirm that it is useful in some situations but that it is better to stick to the base ISO resolution.  For regular use, what are the applications for high ISO shooting?


Story about lost colonized planet sent into orbit around "free" star

I'm trying to remember the name of a book I read, here are some details:   Main character is some sort of detective/investigator (I think) Sci-fi, takes place in distant future.  Oldest known relic is an american coin (from 2006 I think) Hired to track down whether or not a cup is authentic from a lost ship They end up finding the ship, but not the planet that it was sent to colonize. They are bringing back a bunch of relics from the ship when they decided to stay over in the space station for a bite to eat.  The shuttle carrying the relics is destroyed (they were supposed to be on it but weren't). They end up following the clues and finding the lost colonized planet which is orbiting a star which is on some sort of crazy orbit through the galaxy which is why no one was able to find it before.


I'm currently working on an android app to fetch data from the server. It crashes and I get a NullPointerException. Can anyone help me edit my code/ list out my error?   Here is my code (I have read a through few of the forums but did not really understand how to solve my problem)  public class MainActivity extends AppCompatActivity {      ListView lvPost;      @Override     protected void onCreate(Bundle savedInstanceState) {          super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);          lvPost = (ListView)findViewById(R.id.lvPost);          String url2 = "http://192.168.0.146/client/login.php?format=json";         PostResponseAsyncTask task2 = new PostResponseAsyncTask(MainActivity.this, new AsyncResponse() {             @Override             public void processFinish(String s) {                 ArrayList<Post> postList =                         new JsonConverter<Post>().toArrayList(s, Post.class);                  ArrayList<String> titles = new ArrayList<String>();                  for (Post value:postList) {                     titles.add(value.post_title);                 }                  ArrayAdapter<String> adapter = new ArrayAdapter<String>(MainActivity.this,                         android.R.layout.simple_list_item_1, titles);                  lvPost.setAdapter(adapter);             }         });          task2.execute(url2);     } }   Here is my logcat  java.lang.NullPointerException: Attempt to invoke virtual method       'java.util.Iterator java.util.ArrayList.iterator()' on a null object reference      at com.example.1231.t12.MainActivity$1.processFinish(MainActivity.java:40)      at com.kosalgeek.genasync12.PostResponseAsyncTask.onPostExecute(PostResponseAsyncTask.java:188)      at com.kosalgeek.genasync12.PostResponseAsyncTask.onPostExecute(PostResponseAsyncTask.java:27)      at android.os.AsyncTask.finish(AsyncTask.java:632)      at android.os.AsyncTask.access$600(AsyncTask.java:177)      at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645)      at android.os.Handler.dispatchMessage(Handler.java:102)      at android.os.Looper.loop(Looper.java:145)      at android.app.ActivityThread.main(ActivityThread.java:6075)      at java.lang.reflect.Method.invoke(Native Method)      at java.lang.reflect.Method.invoke(Method.java:372)      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)


How to prevent ENTER keypress to submit a web form?

How do you prevent an ENTER key press from submitting a form in a web-based application?


How can I make a number of objects sit "snugly" on an irregular surface?

How can I make a number of objects (or copies of one object) sit "snugly" on an irregular surface - like trees or rocks on irregular ground?  I once came across a tutorial that covered this but I cannot find it again.  The only thing I can think of is to create a "pseudo object" whose vertices represent the desired relative target locations then use retopologize to make the "pseudo object" vertices conform to the surface of the irregular target object and, finally, use dupliverts to place the added objects.


How can i make everything center in every device?

I made a simple ,   However, not everything is centered in the middle on every device. I'm not sure is this is just happening to me or if I didn't do something correctly.  This is what it looks like on my   This is what it looks like on my    This is the snippet - try opening the  on your phone. Thanks    body{     margin: 0;     padding: 0;     background: #262626;     font-family: Futura, Futura-Medium, "Futura Medium", "Century Gothic", CenturyGothic, "Apple Gothic", AppleGothic, "URW Gothic L", "Avant Garde", sans-serif;     font-style : italic;     text-align: center;      -webkit-animation-direction: normal;  -webkit-animation-duration: 22s;  -webkit-animation-iteration-count: infinite;  -webkit-animation-name: text;  -webkit-animation-timing-function: ease;   } h1{     font-size: 100px; } .main{     position: absolute;     left: 50%;     top: 50%;     transform: translate(-50%, -50%) } ul{     display: flex;     position: absolute;     left: 50%;     top: 70%;     transform: translate(-50%, 0) } ul li{     list-style: none; } ul li a{     transition: .5s;     width: 80px;     height: 80px;     text-align: center;     line-height: 80px;     font-size: 35px;     display: block;     -webkit-animation-direction: normal;  -webkit-animation-duration: 22s;  -webkit-animation-iteration-count: infinite;  -webkit-animation-name: text;     -webkit-animation-timing-function: ease; } ul li a:hover{     font-size: 45px; }  #particles-js{     background-size: cover;     height: 100%;     width: 100%;     position: fixed;     z-index: -1; } #date{     position: absolute;     font-size: 25px; }  @-webkit-keyframes text{     0% {color: #39f;}    15% {color: #8bc5d1;}    30% {color: #f8cb4a;}    45% {color: #95b850;}    60% {color: #944893;}    75% {color: #c71f00;}    90% {color: #bdb280;}   100% {color: #39f;} } <!doctype html>               <meta charset="UTF-8">         <meta name="viewport" content="width=device-width, initial-scale=1.0">         <meta http-equiv="X-UA-Compatible" content="ie=edge">                            <link href="styles.css" rel="stylesheet" type="text/css">         <link rel="import" href="particles.html">         <link rel="import" href="title.html">         <link rel="import" href="dateCount.html">         <link rel="icon" href="logo.png">          <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">

kaszam


Sharing between Host and Guest in Virtualbox

Since Ubuntu 11.10 use a new kernel, it's very difficult to have a decent support for virtualization.   VirtualBox doesn't support guest additions for ubuntu 11.10, so I can't copy to and from my ubuntu desktop and windows, which I absolutely require, plus FreeBSD seems not to be able to use DHCP without guest additions.  Virt-manager instead gives an error on launch:  Unable to open a connection to the libvirt management daemon.  Libvirt URI is: qemu:///system  Verify that:  - The 'libvirt-bin' package is installed  - The 'libvirtd' daemon has been started  - You are member of the 'libvirtd' group   unable to connect to '/var/run/libvirt/libvirt-sock', libvirtd may need to be started: Permission denied  Traceback (most recent call last):   File "/usr/share/virt-manager/virtManager/connection.py", line 1146, in _open_thread     self.vmm = self._try_open()   File "/usr/share/virt-manager/virtManager/connection.py", line 1130, in _try_open     flags)   File "/usr/lib/python2.7/dist-packages/libvirt.py", line 102, in openAuth     if ret is None:raise libvirtError('virConnectOpenAuth() failed') libvirtError: unable to connect to '/var/run/libvirt/libvirt-sock', libvirtd may need to be started: Permission denied   The problem is solved by running virt-manager as root, but I don't like that. How do I change permissions to run Virt-Manager as user?  Is there a way to install guest additions on Ubuntu 11.10?


Find the volume common to two circular cylinders, each with radius r, if the axes of the cylinders intersect at right angles. (using disk/washer)  I saw no example of this problem anywhere.. I saw an example how to solve it without calculus but I'm afraid that'll be deductions on my test.. I have the volume of a cylinder and the method of area between two curves but this is out of my reach.... I don't know what I can try...


What, precisely, is a confidence interval?

I know roughly and informally what a confidence interval is.  However, I can't seem to wrap my head around one rather important detail:  According to Wikipedia:     A confidence interval does not predict that the true value of the parameter has a particular probability of being in the confidence interval given the data actually obtained.     I've also seen similar points made in several places on this site.  A more correct definition, also from Wikipedia, is:     if confidence intervals are constructed across many separate data analyses of repeated (and possibly different) experiments, the proportion of such intervals that contain the true value of the parameter will approximately match the confidence level   Again, I've seen similar points made in several places on this site.  I don't get it.  If, under repeated experiments, the fraction of computed confidence intervals that contain the true parameter $\theta$ is $(1 - \alpha)$, then how can the probability that $\theta$ is in the confidence interval computed for the actual experiment be anything other than $(1 - \alpha)$?  I'm looking for the following in an answer:   Clarification of the distinction between the incorrect and correct definitions above. A formal, precise definition of a confidence interval that clearly shows why the first definition is wrong. A concrete example of a case where the first definition is spectacularly wrong, even if the underlying model is correct.


How do you kick someone out of minecraft pe

Someone has been grieving on my world and I was playing with my cousin so I didn't want to keep exiting or take off my wifi


.setOnClickListener on a null object reference (Can't call ID?)

In this app I'm dynamically creating a counter object with a LinearLayout, TextView , and two Buttons, I want the onClickListener inside the class since that seems like the best solution.   The only thing I can think of is that I'm somehow getting the ID creation wrong. What are the best practices when dynamically creating things?  A screenshot of the app and all code is included.  public class Counter implements View.OnClickListener {      private final int subButtonId = View.generateViewId();  ...      private void createSubButton() {          subButton = new Button(context);         subButton.setLayoutParams(new LinearLayout.LayoutParams(buttonWidth, LinearLayout.LayoutParams.MATCH_PARENT, 0.5f));         subButton.setText("-");         subButton.setTextSize(buttonTextSize);         subButton.setId(subButtonId);         subButton.setGravity(Gravity.CENTER | Gravity.CENTER_HORIZONTAL);         container.addView(subButton);          sub = mainContainer.findViewById(subButtonId);         sub.setOnClickListener(new MyOnClickListener() {             @Override             public void onClick(View v) {                 subCount();                 disp.setText(count.toString());             }         });     }  }  class MyOnClickListener implements View.OnClickListener {       public MyOnClickListener() {      }      @Override     public void onClick(View v) {      } }   Counter Class:    Main Class:   Logcat:   Image of App:


Is there any way to set up Guest account in Ubuntu 18.04

Running a community IT room where various people can use the pc's and want to ensure that the system is safe and also that a standard startup is presented. There used to be a guest user ability in earlier versions of Ubuntu but since updating all the hardware to Ubuntu 18.04 we are unable to discover how to set up guest user accounts. Any help would be appreciated. Thanks


Does a particle falling into a black hole ever reach the center?

Once an object or particle passes the event horizon, will it ever reach the center of the blackhole. I ask this from my elementary understand of relativity. This is my understanding: if an object passes the event horizon, essentially, even if it were moving at the speed of light, it couldn't escape. In my mind, the gravitational pull inside the event horizon pulls particles at a speed greater than the speed of light. As time reaches the speed of light it slows down, which means the object exists at time zero. So will it ever reach the center of the blackhole?


jQuery doesnt work after adding a jquery line

I have few line that listing to this script  $("a.remove").click(function(){     var id = $(this).attr('id')     var user = $(this).attr('value')     $.ajax({         success : function(){             var url = "includes/action.php?page=access&action=remove";             var popupmessage = "Error";             $.post(url, { id: id },                 function(data){                     return true;             });         }     }); });   but when i add new line via jQuery it doesn't work until refreshing the page  $("").insertAfter('#accesstable tr:last');   any idea how to fix it ?  Edit: Working code  $('a.remove').live('click', function(){     var id = $(this).attr('id')     var user = $(this).attr('value')     $.ajax({         success : function(){             var url = "includes/action.php?page=access&action=remove";             var popupmessage = "Error";             $.post(url, { id: id },                 function(data){                     return true;             });         }     }); });


Find the recurrence equation for coloring a 1 by n chessboard

So the question asks me to find the number of ways H[n] to color a 1 by n chessboard with 3 colors - red, blue and white such that the number of red squares is even and number of blue squares is at least one. I am doing it in this way -  1.If the first square is white then the remaining n-1 squares can be colored in H[n-1] ways.  2.If the first square is red then another red will be needed in the n-1 remaining squares and the rest n-2 can be colored in H[n-2] ways. (i.e (n-1)*H[n-2])  3.And now is the problem with blue. If I put blue in the first square and say that the rest n-1 squares can be colored in H[n-1] ways that will be wrong as I already have a blue and may not need any more(while H[n-1] requires one blue at least). I thought of adding H'[n-1] to H[n] = H[n-1] + (n-1)*H[n-2] which gives H[n] = H[n-1] + (n-1)*H[n-2] + H'[n-1] where H'[n] is the number of ways to fill n squares with no blue squares(so H'[n] = (n-1)*H'[n-2] + H'[n-1]). So now I'm kind of really confused how to solve such an equation ->  H[n] = H[n-1] + (n-1)*H[n-2] + H'[n-1].


How to decrease separation between different plots? bar graph pgfplots

\usepackage{pgfplots} \usepackage{amsmath} \include{macros/style} \include{macros/use_packages} \usepackage{indentfirst} \usepackage{graphicx} \usepackage{algorithm} \usepackage{algpseudocode} \usepackage{tikz} \usepackage{array,booktabs,ragged2e} \usepackage{listings} \usepackage{color} \section{Results} \pgfplotstableread[row sep=\\,col sep=&]{ interval & carT & carD & carC & carG\\ 10 Hz     & 62680  & 125130 & 10000 & 100000\\ OSC     & 62680  & 125130 & 100000 & 100000\\ Adaptive     & 62680  & 125130 & 1000000 & 1000000\\ }\mydata  \begin{tikzpicture} \hspace{-2cm} \begin{axis}[         ybar,         bar width=17pt,         x=7cm,         ybar=1pt,         width=1\textwidth,         height=.5\textwidth,         legend style={at={(0.5,1)},             anchor=north,legend columns=-1},         symbolic x coords={10 Hz, OSC, Adaptive},         xtick=data,         nodes near coords,         nodes near coords align={horizontal},         ymin=0,ymax=400000,         ylabel={Number of Packets Sent},     ]     \addplot table[x=interval,y=carT]{\mydata};     \addplot table[x=interval,y=carD]{\mydata};     \addplot table[x=interval,y=carC]{\mydata};     \addplot table[x=interval,y=carG]{\mydata};     \legend{Six Lanes, 12 Lanes, E.C. Row, i75} \end{axis} \end{tikzpicture}


I have a MS SQL Server 2008R2 running our two main databases. I have a few problems with MS SQL Server 2008R2, and would like to upgrade ASAP.  i did however not get the funds to buy a 2017, only for a 2019 when it comes out.  So I have the following options:  1) 2008R2-->2017(eval version)-->2019 (as soon as it is out)  2) 2008R2-->2019RC-->2019 full (as soon as it is out)  3) Stay on 2008R2 until 2019 is out.  I think that 1 is not allowed licencing-wise? Would 2 be ok? How big would the risk be of running the 2019RC?  Thank you Daniel


Comparing the cardinality of (0,1) and (0,1]

Question Consider the intervals of real numbers (0,1) = {x | 0 < x < 1} and (0,1] = {x | 0 < x ≤ 1}.  Show that |(0,1)| = |(0,1]|  Work I stated that since both intervals are uncountably infinite then they have the same cardinality, but this was marked as wrong. How do I actually prove this?


Stack Exchange Format for Corporate Networks

I think the Stack Exchange format is great and would like to suggest to my employer that they implement an internal SE for collaboration on our processes. Obviously the network would need to be private to just our company due to proprietary and confidential information.  Does SE license their format that we could purchase a corporate license for? If the answer is no, then the follow up question; is SE format protected by intellectual property rights that would prevent us from implementing our own similar system?


Currently, bounties are used to obtain a proper answer. But only, at least, 2 days after being asked. It's a lot of time if you're a professional and you need that simple thing solved to keep going!  "There are reasons for that delay, you know?"  Of course I know, and I think the delay is set mostly because if everyone could set a bounty right from the beginning, people would start to look only on those questions.  But still, this is a feature that we have to consider. There are moments that we can't really wait and we know that no one will probably answer our question otherwise.  What if...  We are able to set special bounties after 1 hour, paying a fee of 50% to set it?  For example, you want to set a 100 reputation bounty before 2 days past. You will have to pay 150 rep, but the award will still worth 100.   This way, it will reduce the number of "emergency bounties", and consequently, the number of users that won't answer to normal questions to wait for the bounty.


Just installed Lubuntu 17.04 to try it. All is well, except my keyboard volume keys do nothing

The Sound Settings button on the panel app is also unresponsive, but it does open via PulseAudio. It's an HP 2000 laptop. I also have Ubuntu 16.04 installed on it, and the volume keys work fine on that OS. I'm fairly new to Ubuntu, so I am stumped.


Is there a way to insert a character into a RegExp pattern?

I am refactoring a series of RegExp a/b patterns that are used in two ways.  One uses the ^ as the third character.  /[^a-zA-Z0-9,?@&!#'"~ _;\.\*\/\-\+ ]/  The other doesn't use the ^  /[a-zA-Z0-9,?@&!#'"~ _;\.\*\/\-\+ ]/  Rather than write this pattern in two way is there a way to write it once and add the ^ to a second version?  This throws an error but as an example is there something available like this?   varOne = /[a-zA-Z0-9,?@&!#'"~ _;\.\*\/\-\+ ]/  varTwo = [varOne.slice(0, 1), '^', varOne.slice(1)].join('')


Keyframing emission shader colour/strength using python

I'm trying to animate the colour and strength properties of an emission shader based on external data using script. I add a cube and give it an emission shader. I can alter the strength property using:  bpy.context.active_object.active_material.node_tree.nodes['Emission'].inputs['Strength'].default_value=1   I then try to add a keyframe on the strength property using:   bpy.context.active_object.active_material.keyframe_insert(data_path="nodes[\"Emission\"].inputs[1].default_value",frame=10)   But I can't get the correct data_path. I must be missing something fundamental here. I have quite limited scripting experience in blender.  Code suggestions gratefully received.


Showing that a function is differentiable

So. I have to show that this functiun is differentiable outside of $(0,0)$ and also to calculate  its differentiation. $$f(x,y)=xy\frac{x^2-y^2}{x^2+y^2}$$ when $(x,y)$ is not equal to $(0,0)$ and $$f(x,y)=0$$ when $(x,y)$ is equal to $(0,0)$. Also we have to show that the function is differentiable on $(0,0)$ too. $$$$ Firstly I wanted to see if the functiun is continuous e.g: $$\lim_{(x,y)\to (0,0)}{xy\frac{x^2-y^2}{x^2+y^2}}=0$$ so it is countinous.$$$$ Than I wanted to see if it is differentiable but I don't know how to continue, all I got is: $$\lim_{(x,y)\to (0,0)} \frac{f(x,y)-f(0,0)}{(x,y)-(0,0)}=\lim_{(x,y)\to (0,0)}\frac{xy\frac{x^2-y^2}{x^2+y^2}}{\sqrt{x^2+y^2}}$$ Can someone put me on the right track? And explain me what am I doing wrong? I don't know how to continue it..


I want to take Screenshot of the web-page at Runtime while screen-scraping with HtmlUnit or Jsoup in Java. Is there any way to do so?


Aligning numbers by decimal points in table columns

Let me begin by stating that I did google the answers (and I'll reference to them soon). Yet each of the resources I found discussed one particular method, I'm interested in a comparison of the approaches.  So far, I've found three ways to deal with this problem:   split the number into two columns (integer and fractional parts), as documented  or . The LaTeX code is simple, but the approach is a pain when it comes to copying and pasting tables from external sources. use  manually use Mike Zhang's automatic  (). I have yet to test it.   What do most people use? dcolumn? Are there other options?


I think grammatically the phrase "God bless America" is wrong; it should be "God blesses America", don't you think so?


Why am I unable to save my output to a file from a command that takes input as the file itself?

For example, here's my command I'm using:  tr -d '\n' < newfile.ppm    I want to output the results to that exact same file, so I am now doing:  tr -d '\n' < newfile.ppm > newfile.ppm   Why is this not working and how can I get it to work?


A set $S$ in $\mathbb{R}^n$ is convex if for every pair of points $x,y$ in $S$ and every real $\theta$ where $0 < \theta < 1$, we have $\theta x + (1- \theta) y \in S$.  I'm trying to show that the interior of a convex set is convex.   If $x, y \in$ int $S$, then I know there exists open balls such that $B(x) \subseteq S$ and $B(y) \subseteq S$. I need to show that there exists a ball $B(\theta x + (1- \theta) y) \subseteq S$.  Other then writing down the definitions, I don't really see how to proceed. Could someone give me a hint?


Create Object From Generic Class using class Name C#

I have a Generic class of T where T is a class  i want to create an object from this Generic Class but I have Class name in string  this my code   public class GenericClass<T>:IGeneric<T> where T : class {     public IEnumerable<T> Get     {         //Whatever The Logic Is     } }


What is the meaning of 'should have got forgotten'?

I came across the following passage:     In August that year, Baleson wrote to his friend Francis Galton: “I am   writing to ask you to look up the paper of Mendl [sic] [which] seems to   me one of the most remarkable investigations yet made on heredity and   it is extraordinary that it should have got forgotten.”   I attempted to interpret it by myself but the conclusion that i draw contradicts with itself. I consulted to many teachers. Most of them say that, it denotes that it is surprise people didn't remember and i should replace got with "been".  Others says that, the mentioned information is now being remembered     it is extraordinary that it should have got forgotten   From this image:


Odd entry in 'Top network posts' for a user

I've loaded the meta.se profile for a  and noticed that there's something decidedly odd about one of the entries in their Top network posts:    The blank space is hyperlinked to  - which also looks strange as there's a negative number for the question id and no URL slug. As numbers go, it's rather close to the lowest number that SQL/C# will store as an Integer, but also not quite there...


Why does RSA 1024 provide lower security level than EC256?

And why do we have to use big numbers for RSA? Is it because of some RSA restrictions like p=q=3 mod 4?


how to add field_image widget (imagefield crop) to a custom form api

How can i add to my custom form api in my custom module the default widget from field_image? I am using imagefield_crop module widget and it works in node/add form, but i cannot replicate it in my custom form api.


Why is my foreach faster than my for loop?

int[] testArray = new int[200000000];  Stopwatch st2 = new Stopwatch(); st2.Start();  for (var j = 0; j < testArray.Length; j++) {  }  st2.Stop();  Console.WriteLine("Total milliseconds - FOR LOOP: {0}", st2.Elapsed.TotalSeconds);    Stopwatch st = new Stopwatch(); st.Start();  foreach (var arr in testArray) {  }  st.Stop();  Console.WriteLine("Total milliseconds - FOREACH LOOP: {0}", st.Elapsed.TotalSeconds);   Results:     for: 0,7046522 seconds   foreach: 0,05508682 seconds   Why is my foreach faster? I thought that my for loop would be faster than the foreach


New navigation page should hide closed/duplicated/on-hold questions at the "need answer" tab

The  is currently showing [closed], [duplicated] and [on hold] questions at the need answer tab. My suggestion is to hide them since they can't be answered.   Sorting by "votes" at SO, we see tons of [duplicated] questions filling almost the entire first page. This way is harder to find good questions (= high upvoted) to answer.


I successfully installed Ubuntu but when I rebooted to load up the very first time my PC reached Verifying DMA Pool Data and then stayed there for almost 30m before I gave up on it.  Motherboard is Gigabyte GA-78LMT-USB3 R2


Installing additional drivers in kubuntu

How can I install additional drivers in kubuntu like in gnome and this screenshot?


Why can bound energy eigenstates be written as real functions?

Found this statement in Quantum Mechanics by David McIntyre and was wondering how this is proven.