I am trying to install Steam in 19.04 but getting errors.  sudo apt-get install steam Reading package lists... Done Building dependency tree        Reading state information... Done Package steam is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it:   steam-launcher  E: Package 'steam' has no installation candidate   Also tried  sudo apt-get install steam-launcher Reading package lists... Done Building dependency tree        Reading state information... Done Package steam-launcher is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'steam-launcher' has no installation candidate   and  sudo apt install steam-launcher Reading package lists... Done Building dependency tree        Reading state information... Done Package steam-launcher is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'steam-launcher' has no installation candidate


On all the SE sites that I checked, the text that normally says something like “1 Answer” now says “1 Answer;” (with a semicolon seemingly in superscript):    The HTML for that part of the page looks like this (the semicolon is on the fourth line from bottom):

                                 1 Answer

                      active                               oldest                               votes
 ;


How to print an array that was inputted from Scanner?

So I have an array and trying to print what was input to the scanner. I'm trying to print the matrix that was input. Heres the code, what am I doing wrong here? I tried to print just graph, doesn't work.   /** Accept number of vertices **/     System.out.println("Enter number of vertices\n");     int V = input.nextInt();      /** get graph **/     System.out.println("\nEnter matrix\n");     int[][] graph = new int[V][V];     for (int i = 0; i < V; i++)         for (int j = 0; j < V; j++)             graph[i][j] = input.nextInt();             System.out.print(graph);


How to do long-polling AJAX requests in ASP.NET MVC?

Does anyone know how to code up long-polling AJAX requests (for server PUSH notifications) in ASP.NET MVC?  Whenever I do it, it seems that only the last browser to open up a window gets the notifications.  As if IIS/ASP.NET were canceling the last request because it was hung or something.


JavaScript: How to make a copy of a object?

I am trying to create a copy of object a, without having to manually enter its property's into object b. In this code, b simply refers to a. I want to create a new version of a, so that when I add a property to b, it is not visible through a.   var a = new Object(); // create an empty object var b = a;             // now b refers to the same object b.test = 1;            // add a new property to b alert(a.test);         // => 1: the new property is also visible through a a === b;               // => true: a and b refer to the same object


Why "The 12-hour-system in English" rather than "The 12-hours-system in English"?

I have read in  about the Why "The 12-hour-system in English". Then my question is why "The 12-hour-system in English" rather than "The 12-hours-system in English"?


What's the correct usage of "hopefully"?

I said, "Hopefully, I will get better" to a friend and he said that I was using it incorrectly, stating that  is an adverb meaning "full of hope" that modifies a verb. It sounds right, but I'm pretty sure that this usage of hopefully has become prevalent enough to be accepted for this use case. Am I right, is he right, or are we both right?


keyboard shortcut gnome-terminal (ctrl-tab) and (ctrl-shift-tab) in 12.04?

Keyboard shortcuts in gnome-terminal (Ctrl+Tab and Ctrl+Shift+Tab) in 12.04 don't seem to be working. Is there a setting that I dont know of?


What are the details surrounding the brass brazier required for the Find Familiar spell?

In our campaign, I play a warlock and brass braziers are hard to come by. I want to carry a brass brazier in case my familiar dies and I need to again cast find familiar.   How bulky is a small brass brazier? Can it be carried for several weeks without hindering long distance foot travel? That is, because of its shape or weight, does the typical brass brazier reduce my speed? What's the price of a small, simple brass brazier? How long would it take a brass worker to make a small, simple brazier? How long would it take the brass worker to make one specifically designed to be eminently portable? In both cases, assume the brass worker works nonstop exclusively on the brazier.     What I'm looking for are references, similar cases, and information that can help handle these issues properly and accurately. First and foremost in D&D 5e (especially RAW) and then other RPGs and even real world, if they could be used to make estimates about the answers to these questions when we compare how similar cases translate to D&D 5e mechanics.


This is my code, I'm using volley to call a web service  private void sendRequest(){      StringRequest stringRequest = new StringRequest(JSON_URL,             new Response.Listener<String>() {                 @Override                 public void onResponse(String response) {                     showJSON(response);                   }             },             new Response.ErrorListener() {                 @Override                 public void onErrorResponse(VolleyError error) {                     Toast.makeText(MainActivity.this,error.getMessage(),Toast.LENGTH_LONG).show();                 }             });      RequestQueue requestQueue = Volley.newRequestQueue(this);     requestQueue.add(stringRequest); }   Anything wrong, getting NullPointerException  URL:    ShowJson method   private void showJSON(String json){         ParseJSON pj = new ParseJSON(json);         pj.parseJSON();         CustomList cl = new CustomList(this, ParseJSON.id,ParseJSON.app_version);         listView.setAdapter(cl);     }   Parse JSON class  public class ParseJSON {      public static String[] id;     public static String[] app_version;       public static final String JSON_ARRAY = "result";     public static final String KEY_ID = "id";     public static final String KEY_APP_VERSION = "app_version";       private JSONArray users = null;      private String json;      public ParseJSON(String json){         this.json = json;     }      protected void parseJSON(){         JSONObject jsonObject=null;         try {             jsonObject = new JSONObject(json);             users = jsonObject.getJSONArray(JSON_ARRAY);              id = new String[users.length()];             app_version = new String[users.length()];               for(int i=0;i<users.length();i++){                 JSONObject jo = users.getJSONObject(i);                 id[i] = jo.getString(KEY_ID);                 app_version[i] = jo.getString(KEY_APP_VERSION);              }         } catch (JSONException e) {             e.printStackTrace();         }     } }


How to increase the maximum upload size?

I'd like to increase the maximum upload size from 2MB to 5MB on my website (I'm using WAMP). My first attempt to do this was to set Content types > MY CONTENT TYPE > Manage fields > MY IMAGE FIELD > Maximum upload size to 5 MB, but that didn't work. Next, (after reading  and ) I added  ini_set('post_max_size', '5M'); ini_set('upload_max_filesize', '5M');   to my sites/default/settings.php file, but that didn't solve the problem either.  What am I doing wrong? Why didn't my first approach work?


Not flying the first leg of the journey – Company cancels the second-leg ticket

I've a friend that booked a round-trip journey. He booked A-to-B and B-to-A. Somehow he needed to be earlier at location B, so he took a train and did not take the flight from A to B.  When he went to the airport to take the "back home" flight (B-to-A), he was informed that his ticket was canceled because he did not take the A-to-B flight. They canceled the ticket and sold it to someone else.  Is this normal? The company said it was their right to do so, and he could not get the flight back. The company was Iberia.


Why can’t the Doctor’s companions understand babies and horses?

The Doctor claimed to speak both horse and baby. The reason human companions can understand every language is because the TARDIS translates. So why can't anyone else understand babies and horses?


Get data from Grandparent while creating child record

while creating child record need to get data from Grand parent. i wrote a trigger but not updating fields. here my working.   trigger Registration on Opportunity (after Update) {      list<Registration__c> NewReg = new list<Registration__c>();     list<Registration__c> oldReg = new list<Registration__c>();      for(opportunity o : Trigger.new){         if(o.Registration_Raised__c==true) {             oldReg = [select id,Name from Registration__c where Opportunity__c=:o.id];             if(oldReg.size()==0){                 registration__C reg = new registration__c();                 reg.Opportunity__c = o.id;                 reg.GHMC_Approved_Date__c = O.Unit_Number__r.Tower__r.GHMC_Approved_Date__C;                 NewReg.add(reg);             }         }            }     if(NewReg.size()>0){         insert NewReg;     }  }   i wrote the above trigger on opportunity and registration__C is the child object. when registraion raised check box is true the child record will create and need some inform Gran parent object. those are, Unit__C and tower__C.


Let, $p$ be a polynomial in $1$-complex variable. Suppose all zeros of $p$ are in the upper half plane $H=\{z\in \mathbb C|\Im(z)>0\}. $ Then , which are corrct ?   $\Im\left\{\frac{p'(z)}{p(z)}\right\}>0$ for $z\in \mathbb R$. $\Re \left\{i\frac{p'(z)}{p(z)}\right\}<0$ for $z\in \mathbb R$. $\Im\left\{\frac{p'(z)}{p(z)}\right\}>0$ for $z\in \mathbb C$ with $\Im (z)<0$. $\Im\left\{\frac{p'(z)}{p(z)}\right\}>0$ for $z\in \mathbb C$ with $\Im (z)>0$.   I know that , since all roots of $p(z)$ lie in the upper half plane so, all roots of $p'(z)$ lie in the same upper half plane , from Luca's theorem.  But from there how we can say about real part or imaginary part of $\frac{p'(z)}{p(z)}$ ?


Retrieve first BibLatex/BibTex/Biber reference automatically

Suppose I have a .Bib file with an entry like this: @InBook{lear, author = {Shakespeare, William}, bookauthor = {Shakespeare, William}, maintitle = {Collected Works}, booktitle = {Tragedies}, title = {King Lear}, volume = {1}, pages = {53-159}, ...  Important: it could be any other reference, because I'll deal with different Bib files with only one reference each one - they will be generated automatically by another program. I'm using Biblatex inside Overvleaf platform. My question is: Is it possible to retrieve the entryfield (that in the example above is the string lear) and use it to be passed as a parameter? Example: \def\mystring{{*var_entrykey*}}  Where var_entrykey content must be lear (refering to the example above) or whatever other entry depending the bib file I'll be using (remembering that all the Bib files will have only one reference).  The problem is that I don't know how to read the entrykey automatically, i.e. usually we need to know the entrykey to reference it, that's the normal use and obvious. But in this case, I need a hack to retrieve it  - and put it in a variable - without knowing it's content beforehand.  Warm regards


How i Can resize an image from 3000x2900 to 64x64 using keras?

I have to classfier a medical images, but these images are big(3000x2900),, i need way to resize. and then training it. Can i training these images without resize???


Please add a link to the custom close form to the moderator links page

I would like the link where moderators can edit close reasons to be part of the moderator links page.  Please add:   To the page:   Perhaps under the Data Alteration Pages section


Handle null while Serializing Class to xml in C#

I am trying to Serialize a class in C# this works fine when there is no null value in the object. Following is the class  public class EnquiryResponseInfo {     public string EnquiryId { get; set; }     public EnquiryViewModel Enquiry { get; set; } }   When I supply the following value it works great.  EnquiryResponseInfo tt = new EnquiryResponseInfo() {     EnquiryId = "xxx",     Enquiry = new EnquiryViewModel()     {         Name = "Test user",         Address = "Test Address"     } }   But when Enquiry is null it does not Serialize. I have a condition where the Enquiry will be null but there will be value in the EnquiryId there.  Following is the method to Serialize the class.  public static string Serialize<T>(T toSerialize) {     XmlSerializer xmlSerializer = new XmlSerializer(typeof(T));     using (StringWriter textWriter = new StringWriter())     {         xmlSerializer.Serialize(textWriter, toSerialize);         return textWriter.ToString();     } }   Please help.


How do I change the number on the end of a animated render?

I would like to change the amount of numbers at the end of my animation, separated by BMP images. For example, change 0001 to 001, ect. Thank you! I'm using Internal Render on 2.79.


Can't create new folders in old partitions

I have just installed Linux in my laptop and it works fine but there is a problem , the installation i have made in the c directory so it has formatted and install but the others partition like E directory, i have my folders but i can't create or delete any folder within it .


What are the browsers that I can get on Ubuntu? I know there is Firefox, as that comes installed by default, and the Ubuntu Default Browser, but what others are there that you can install?  I am confident using apt-get and the software centre, and I am also interested if there are some like chrome that are widely used but not in the Software Centre?


In LOTR: RoTK (movie) at the "Battle of the Black Gate", why do orcs die after Sauron is defeated?

I was just watching The Lord of the Rings: The Return  of the King movie adaption, and there was something at the end I didn't quite understand why it happened ?    Why after Sauron is defeated ( when the One Ring is destroyed ) do all the Orcs die, and the ground shatters beneath their feet, but not beneath "the good guys" feet?  Screenshot:


How do I get players to invest in their character concept and stop making new PCs?

I have been playing in a specific group for some time now. I now am in a position where I am going to be the GM once more. However I have a recurring problem with the players continuously switching characters.  While we do a lot of role-playing, and don't have a high focus on combat, some of the players tend to spend a large amount of time on planning their characters. But, because they already have a plan for every possible mechanical situation their character could ever face, this large amount of planning time leads to them getting quickly bored and wanting to plan and switch to a new character.  What can I do to make the players get more invested in their existing characters, and not just enjoying the role-play with little interest in their character concept?


Is $f(x,y)=(x+2y+y^2+|xy|, 2x+y+x^2+|xy|)$ differentiable?

Define $f:\mathbb{R^2}\to \mathbb{R^2}$ by $$f(x,y)=(x+2y+y^2+|xy|, 2x+y+x^2+|xy|)$$  Now is $f$ differentiable at $(0,0)$ and $Df(0,0)$ invertible?  I am having problem with the modulus function. How can I solve this? thanks.


I'm wondering if Javascript can detect what page the user is on. Say for example that the user is on a "About" or "Contact" page, can JavaScript check if the pathway is "/About" or "/Contact" and then take action accordingly ? How would that code look like? I appreciate if anyone could give me a code sample


I was under the impression that all skins are only related to appearance, but came across  of Kog'Maw's Lion Dance which actually modifies the skill behaviour. Does this affect anything besides the visuals (as in damage, proc effects, projectile speed etc.), and if so which other skins affect the actual gameplay?  There is also a post on  interact with Leona's ability, are there other such hidden factors that are common across skins? (say, frostfire skins resist more ice damage or something)  A generic way to easily identify these skins when browsing champions on the LoL site would also be very helpful.


Why is bash -c cutting off the end of my script?

I have a simple script, that is essentially a list of dpkg -i ... commands in a chroot.  It looks something like this:  chroot /path/to/chroot /bin/bash -e << EOF cd /opt  dpkg -i package1_*  dpkg -i package50_* dpkg -i package51_*  dpkg -i package100_*  EOF   The problem is, when I call the script like, bash -c "script here" or bash <( echo "script here" ), i get an error message.  The error message looks something like:   Selecting previously unselected package libss2:i386. (Reading database ... 1376 files and directories currently installed.) Preparing to unpack libss2_1.42.9-3ubuntu1_i386.deb ... Unpacking libss2:i386 (1.42.9-3ubuntu1) ... Setting up libss2:i386 (1.42.9-3ubuntu1) ... Processing triggers for libc-bin (2.19-0ubuntu6.5) ... /bin/bash: d: not found   It seems like the code is cut off at d(pkg -i ...).  I changed the dpkg that is being cut off to an echo. The error message stayed the same, only that now e is not being found.  I could of course save the script in a temp file and call it, since that works. But I would like to know what is happening here. The cutoff mark (including the 'd') is at the 1048 byte point.


Editting/Modifying markup of registration form

I would like to over ride the default registration form of Drupal. I want to edit its mark-up. Add few classes and wrap them with few div tags. I don't know how to get this done ? Is it possible to over ride like what we do for html.tpl.php ? I mean copy pasting a particular file some where from system into the template folder and edit it ? Please help me. I am very much new in Drupal.


The criterias to select peak detector capacitance and resistance

edit: diode is replaced with 1n4148  While designing such a peak detector, what should be the approach of choosing C and R values? Which specs of the detector will be based on them? I assume their values will be depending upon the frequency of incoming signal, and related to time constant of RC network. But, I need some better understanding.


Showing validity of a formula in first order logic

So I'm trying to prove the validity of this formula and I am a bit lost, not sure how to start. I know generally speaking a valid formula is one where if all the premises are true, then the conclusion can not be false, but I don't know how to prove this really. any help is appreciated


Can anyone explain how to swap Caps Lock and Ctrl keys on Ubuntu desktop under Unity. I use it to avoid .


Measure theory: show that $f^{-1}(\sigma(\mathcal A)\subset \sigma(f^{-1}(\mathcal A))$

This is essentially Exercise 1.3.1 from Durrett's probability theory textbook. In fact strict equality is true, but the other direction of inclusion is so trivial  that I decided to de-emphasise it in the question.   The biggest problem for me is that $\sigma(\mathcal A)$ looks quite intractable, and I need a more explicit representation. I'd like to guess that every set in $\sigma(\mathcal A)$ can be written as the output of countably many $A_n\in \mathcal A$ under countably often union, intersection and complements. But I lack the proof, or even the rigorous formulation of such an idea. Instead of attempting to characterise $\sigma(\mathcal A)$ which might be too large to, is there any smarter way to solve the problem?


When I use the type function, it returns me:  >>>print(type('string')) <class 'str'>  class Test:     pass test_obj = Test() >>>print(type(test_obj)) <class '__main__.Test'>    I'm just wondering whether it is possible for it to output str and Test only instead of  '<class 'str'>' or <class '__main__.Test'>


Proving $(A\cup B)\cap(B\cup C)\cap(C\cup A)=(A\cap B)\cup (A\cap C)\cup (B\cap C)$?   I managed to prove one side by saying:  Let E=LHS and F=RHS     Let $ x \in E$. Then $x \in (A\cup B) \lor \ x \in (B\cup C) \lor \ x \in (C\cup A).$ If $x\notin A$, then $x$ must be in $B$ and $C$. If $x\notin B$, then $x$ must be in $A$ and $C$. If $x \notin C$, then $x$ is in $B$ and $A$. Therefore $x \in F$ and $ E \subset F $.   I'm having trouble proving the other direction. Can I prove it in a similar way saying that let $x \in F$, if $x \notin A$, then $x$ would be in $B$ and $C$? That doesn't make sense to me. Another way I thought of solving it would be:  Let $x \in F. $ Then   if $x \in A$, then  $x \in B \cup  C$, If $x \in B$, then $x \in A \cup C$.  if $x \in C$, then $x \in B \cup A$   And then is this sufficient to show that $ x \in F, thus \ F \subset E \ and \ E=F $?


How to put executable to /usr/local/bin?

I realise this is basic but I have read two pages of google answers and am still unclear 'How to put executable in /usr/local/bin?'  I have downloaded a package and made the executable called profit. What is the step by step command line to make profit executable from the terminal without having to add the path/to/profit every time?


Install Docker on Ubuntu 16.04: 404 Not Found

I get the following when trying to install Docker on Ubuntu 16.04:  michael@michael-VirtualBox:~$ sudo apt-get update                     Err:8 https://download.docker.com/linux/ubuntu \ Release                               404  Not Found [IP: 13.32.250.25 443]  Reading package lists... Done                                                         E: The repository 'https://download.docker.com/linux/ubuntu \ Release' does not have a Release file.  N: Updating from such a repository can't be done securely and is therefore disabled by default.  N: See apt-secure(8) manpage for repository creation and user configuration details.   Can someone help me fix this issue?


Science fiction story revolving around telepathy

Trying to find a book I read in the late 70's or very early 80's.   As I remember, the plot centered around a rock star who transferred his consciousness to a computer, and whom "made contact" with a Russian telepath. The telepath was, iirc, actually a "living brain" - or slices of - held in some form of life-sustaining container. One of them may have been based on a satellite, and may have had telekinetic powers.


I'm using a L7805C voltage regulator , to power an SMPS circuit. But its getting heated after 10 min or so , even if I've put a heat sync.  SMPS IC is used to convert +5V to -9V.


Why is this true? I suspect that its because $\frac{LCM(a,b)^3GCD(a,b)^3}{b^3}=a^3$ and $\frac{LCM(a,b)^3GCD(a,b)^3}{a^3}=b^3$, so it must be the case for $LCM(a,b) \notin R(a,b)$, right?


At school I was told "Never use a LED without a resistor (before or after the LED)!".  Why is that?  If I have a 2V LED why can't I simply use a 2V power supply?  Why should I choose a 3V (for example) power supply and put a resistor in front?  And how to calculate the resistor value?


Basically, I have a new laptop which needs a new driver. I have an Hp pavilion x360 [Pavilion x360 14-cd0520sa ] with the RealTek Wireless adapter and need the apt' driver for this. Any clues? I have posted a support request to HP as well, so I'll wait for that answer as well. Obvioulsy, as I can not get the laptop in question online, I can't post any log files [or at least, I don't know /how/ to post log files] but the issue is simple. Ubuntu 18.04lts [for which I have a bootable USB] just does not see the wireless adapter, so I need a new driver.  This is the manually typed output of the instructions below:      0: hci0: Bluetooth soft blocked: no hard blocked: no  1: acer-wireless: Wireless LAN soft blocked: yes hard blocked: no   Result of Wireless Info Script:


Can we express any metric as Minkowskian metric if we adding more dimensions?

In General Relativity course we saw that under specific coordinate transformation, we can express Friedman metric for hyperbolic universe ($k=-1$) with cosmological constant ($\Lambda$), with a new set of 5 coordinates, making the original metric a 5 dimentional Minkowski metric instead of curved 4 dimensional Friedman metric. (Known as De Sitter space) My question is: Is there is general theorem that under wise coordinate transformation to higher dimensions, we can make any curved metric to be Minkowskian?


Why isn't my Minecraft LAN server working? Is it because the zip codes are different?

So I live in a town with 3 different ZIP codes. I'm not sure if ZIP codes have anything to do with Minecraft LAN servers. My problem is that my friend cannot connect to my LAN server. We live at different ends of town so I'm not sure if it is the reason. Could someone explain how the LAN servers work and if it is related to ZIP codes?


Can someone pgfplots the following picture concerning confidence intervals?

I've been trying to use the following code to produce it, but have no idea how to shade in the tails I am interested in. By the way, the line pointing the (100-C/2)% can be an arrow, does not have to be squiggly as depicted in the picture.   \begin{tikzpicture}[ every pin edge/.style={<-}, every pin/.style={fill=yellow!50,rectangle,rounded corners=3pt,font=\small}] \begin{axis}[every axis plot post/.append style={   mark=none,domain=-3:3,samples=50,smooth}, clip=false, axis y line=none, axis x line*=bottom, ymin=0, xtick=\empty, ] \addplot {\gauss{0}{0.5}}; \addplot {\gauss{0}{1}}; \node[pin=70:{$\hat{\theta}_1$}] at (axis cs:0.57,0.5) {}; \node[pin=270:{$E(\hat{\theta} = 0$}] at (axis cs:0,0) {}; \draw[dashed] (axis description cs:0.5,0) -- (axis description cs:0.5,0.92); \end{axis} \end{tikzpicture}


How to plot an ellipse from eigenvalues and eigenvectors in R?

Could someone come up with R code to plot an ellipse from the eigenvalues and the eigenvectors of the following matrix  $$ \mathbf{A} = \left( \begin{array} {cc} 2.2 & 0.4\\ 0.4 & 2.8 \end{array} \right) $$


How to create multi criteria cost surface - Slope reclassification?

I´m working on thesis aimed at investigating of possible routes and paths between Mayans cities in Guatemala. My thesis should help archaeologist to locate and reveal old paths in jungle and speed up all works in field with some scientific background.  I will use 30m DEM and anisotropic LCP approach with Tobler´s hiking equation. Problem:  I need to create multi criteria cost surface like here:   I don´t know how to create cost raster with correct parameters. I mean I don´t know how to reclassify slope and add costs to it. I tried to use slope   how it was created (just derived from DEM using "Slope" function reclassify slope from 1. and, of course, results are different.   I can´t find correct range for intervals and its costs. I need the same, exact range like 0-5° (cost 1), 5-8° (cost 2),... based on scientific data.  And is this correct way of solving LCP problem?   Should I create multi criteria cost surface and use it as "in_cost_raster" and Tobler equation as vertical factor in Path Distance Tool or use slope (without reclassification) as "in_cost_raster", calculate Path Distance and then add cost of Land use?


How is the spin of the odd-odd nucleus 6Li explained?

Spins of odd-odd nuclei is difficult to predict. But $^{6}Li$ is light - only 6 nucleons. $^{6}Li$ should have spin $(\frac{3}{2}  + \frac{3}{2}) = 3$ by shell model, as should have one proton on $p_{3/2}$ level and one neutron on $p_{3/2}$ level.  How it is explained that it has spin 1?  In the answers to question like that we see frequently formalism from some theory like $πp_{3/2}⊗νp_{3/2}$ and $3/2⊗3/2$. Please, explain to what theory that formalism belongs and explain how to understand it and where to read about.


migrating instance from 2008r to 2016 Enterprise

i have a client that wants to migrate his data to sql server 2016 . currently they have 2008r and the databases are huge(total of 4 tb) on the instance. what is the best way to performe this with the least amount of down time? i thought about mirroring but im not sure it can be done  between the two versions. if so what are the steps to do so ? if im missing information please let me know. thanks


Im trying to use jq to alter a json file via a script.  in my terminal im trying to run this, but getting a permission denied error. Im able to change it using a sudo nano manually.  sudo jq -c  '.interpreterSettings."2ANGGHHMQ"."properties"."zeppelin.pyspark.python" = "python3"' interpreter.json > tmp.$$.json && mv tmp.$$.json interpreter.json   Any ideas on why?  Thanks, Tim


I made a contour model of a specific area and named it by its height. I need this Data to import into AutoCAD, so I saved it as .dfx with Information about its Z-dimension, by choosing "include z-dimension" in the saving options. when I now open it with AutoCAD there is no more information about the height. What is the way to keep the information in the dfx data?


Is it proper to describe a noun using an apostrophe?

For example, if I wanted to say, "This student is large.", would it be proper to instead say, "This student's large."? I don't recall ever reading something like this, but I remember hearing people speak like this. Is this purely a speaking shortcut or is it also proper to write as well?


I would like to have a semi-tranparent animation on my website.  Something like a gif, but with opacity that isn't just on or off.  Does something like this exist yet?  Is it time for someone to create a new image file type?  What options do I have for adding animations with transparency to a website?  EDIT:  The "duplicate question" of this is a question with overlapping answers.  Two different lists.  It answers this question and more, which is very very nice, but it wasn't intuitive to ask from my perspective, and is similar to comparing the list result of "what dogs have curly hair?" to "describe in detail all the dog types."  That is to say, these two questions point to relatively the same place, but come from completely different directions.  Like road signs on opposite sides of a city, I don't think a merge is the right decision.  EDIT #2: The "duplicate questions" answer doesn't mention that gifs don't have semi-transparency.  If you search for the word "transparency" there's zero hits.


What is a Fully Bayesian Framework compared to MAP, MLE etc?

I am highly confused on the terms mentioned above. With posterior = (likelihood*prior) / marginal MLE - You define a posterior, but during maximization or optimization, you maximize the likelihood only. MAP - This is when you maximize the posterior instead of Likelihood.. that will include the prior as well. Fully Bayesian - I don't know what is that. Is it to maximize the marginal likelihood? Now, given all this. I have the following text:  This approach employs a fully Bayesian framework to achieve a model which is sparse in both sample and feature domains. We introduce a novel multi-step algorithm based on Variational Approximation to efficiently compute all model parameters in order to optimize the maximum a posteriori probability (MAP) measure.  Can somebody explain this? My second question is: what is meant by giving a posterior distribution over both parameters and hyperparameters.


How to correctly insert a circle inside himself (when press "I")?

There is problem. (Circle is new and uniform).


Is Charles Xavier the only one whose powers were not permanently affected?

In X-Men Apocalypse, Apocalypse permanently enhances any mutant he chooses.  In order of appearance Apocalypse increases the powers of    Storm Psylocke Angel Magneto   By all accounts every one of them seems to keep their enhanced power, but what drew me to this question is that Storm, Psylocke and a short lived Angel seem to keep their powers.  Now this is where I get a little fuzzy, does Charles Xavier have his powers increased permanently and does Magneto have his powers increased permanently?   Being that X-Men is now on a different timeline, it is very much possible that Charles will now not need to use Cerebro to locate and contact anyone all over the world. But from what I can see, Charles did not have his powers permanently enhanced. Because if he did, he may have been able to overpower Apocalypse and that is obviously not what Apocalypse had in mind, so he seems to have only increased his powers for conveying the message to the world.  That leaves Eric (Magneto), after Apocalypse increases his power he is able to literally move dirt because of all the minor traces of metal residing within in it, which would make him far more powerful than anything we have seen from Magneto thus far.  But the question is, did Magneto keep this power?  Any answer correcting my summation of the the above events, as well as clarifying what actually happened will obviously be accepted, as I am not confident that I actually have everything correct in my question. This is just my take on what happened.


For the Quadratic Form $X^TAX; X\in\mathbb{R}^n, A\in\mathbb{R}^{n \times n}$ (which simplifies to $\Sigma_{i=0}^n\Sigma_{j=0}^nA_{ij}x_ix_j$), I tried to take the derivative wrt. X ($\Delta_X X^TAX$) and ended up with the following:  The $k^{th}$ element of the derivative represented as  $\Delta_{X_k}X^TAX=[\Sigma_{i=1}^n(A_{ik}x_k+A_{ki})x_i] + A_{kk}x_k(1-x_k)$  Does this result look right? Is there an alternative form?  I'm trying to get to the $\mu_0$ of Gaussian Discriminant Analysis by maximizing the log likelihood and I need to take the derivative of a Quadratic form. Either the result I mentioned above is wrong (shouldn't be because I went over my arithmetic several times) or the form I arrived at above is not the terribly useful to my problem (because I'm unable to proceed).  I can give more details about the problem or the steps I put down to arrive at the above result, but I didn't want to clutter to start off. Please let me know if more details are necessary.  Any link to related material is also much appreciated.


$\int_{0}^\pi \frac{\sin(nx)}{\sin x} dx$

How do I integrate :$\int_{0}^\pi \frac{\sin(n\theta)}{\sin \theta} d\theta $  I did the following: $\int_{0}^\pi \frac{\sin(n \theta)}{\sin \theta}d\theta = \mbox{Im} \int_{0}^{\pi} \frac{e^{i n \theta}}{\sin \theta} d\theta = \mbox{Im} \int_{0}^{\pi} 2i \frac{e^{i n \theta}}{e^{i \theta}-e^{- i \theta}} d\theta$   Put $ z=e^{i \theta}$ then  $ \mbox{Im} \int_{|z|=1} \frac{z^n}{(z^2-1)} dz$  Now I have problem , because the function $f(z)= \frac{z^n}{(z^2-1)}$ is not analytic on the boundary of the unit disk. Now I can not use the Cauchy Residue Theorem.  The answer is $0$ if $n$ is even and $ \pi$ if $n$ is odd.  I stuck:   Any suggestions ?


Logistic regression for classification: are there any analytical solutions for the out-of-sample accuracy?

I run a binary logistic regression, with a binary dependent variable and a continuous independent one. Now I want to evaluate the out-of-sample performance of the classification algorithm so obtained. For instance, given a probability threshold, I want to compute out-of-sample accuracy or sensitivity. One solution would be resampling-based estimators: for instance, the method of validation set. I would split the dataset into a training set and a test set, train the model on the training set, and evaluate the performance (e.g. accuracy or sensitivity) on the test set. This is a generic approach, which can be used with any estimator. For example, I can use this approach also with SVM or neural networks. But logistic regression is different in many ways from a (deep) neural network: in particular, we know a lot about the properties of the estimator. For instance, we know the confidence interval for the estimated coefficients, and we know an estimate for the irreducible error in the data. My question is: are there any analytical solutions (not re-sampling based like validation set or cross-validation) to compute out-of-sample performance metrics like accuracy or sensitivity? For instance, with least squares linear or polynomial regression, I could train the model on the entire dataset (without splitting train/test) and then get the Leave-One-Out Cross-Validation MSE with the following formula: $$ \text{CV} = \dfrac{1}{n} \sum\limits_{i=1}^n \left( \dfrac{y_i - \hat{y}_i}{1-h_i} \right)^2 $$ (see James, Introduction to Statistical Learning, pag. 180) Is there a similar formula for the accuracy of logistic regression?


Let $\Bbb{R}$ be the set of real numbers. Determine all functions $f:\Bbb{R}\longrightarrow \Bbb{R}$ satisfying the equation $$f(x+f(x+y))+f(xy) = x + f(x+y)+yf(x)$$ for all real numbers $x$ and $y$.


How to get the filename of the subclass?  Example:  base.py:  class BaseClass:     def __init__(self):         # How to get the path "./main1.py"?   main1.py:  from base import BaseClass  class MainClass1(BaseClass):     pass


What is the antonym of the word destination. Here is some context:  Every train has a destination and a ____?  I was thinking it might be origin but I've never encountered that word used in this context so I'm not sure - there might be a better word.


Log-in Issue when using CTRL+ALT+F1 - password is automatically entered

The issue I'm running into is when I try to enter the CLI using CTRL+ALT+F1 or CTRL+ALT+F3, I get the log-in screen and am prmopted for my username.  After entering my username the cursor hops to the next line, the text I enter is displayed on the screen, then it tells me that I entered the wrong password.  If I don't enter anything, the cursor hops to the next line, and after a few seconds it tells me wrong password.    The other detail is that the loop happens about 3 or 4 times until I am prompted for my password again.  I looked through the forum and couldn't find a problem.    I checked my .bashrc but the only thing that is different is I have some GCP stuff there. I commented out all the new lines in my bashrc file that were new and this still happens.    This is using Ubuntu 16.04


Why not approach classification through regression?

Some material I've seen on machine learning said that it's a bad idea to approach a classification problem through regression. But I think it's always possible to do a continuous regression to fit the data and truncate the continuous prediction to yield discrete classifications. So why is it a bad idea?


How do I add modules to PYTHONPATH variable for zenmap in Kali Linux

I installed zenmap in my Kali Linux but when tried to run it, the terminal gave me the following error telling me to add modules to the PYTHONPATH variable. ┌──(root💀kali)-[/home/kali/Downloads] └─# zenmap                                                                                Could not import the zenmapGUI.App module: 'No module named gtk'. I checked in these directories:    /usr/bin    /usr/share/offsec-awae-wheels/soupsieve-1.9.5-py2.py3-none-any.whl    /usr/share/offsec-awae-wheels/enum34-1.1.10-py2-none-any.whl    /usr/share/offsec-awae-wheels/requests-2.23.0-py2.py3-none-any.whl    /usr/share/offsec-awae-wheels/ipaddress-1.0.23-py2.py3-none-any.whl    /usr/share/offsec-awae-wheels/ply-3.11-py2.py3-none-any.whl    /usr/share/offsec-awae-wheels/urllib3-1.25.9-py2.py3-none-any.whl    /usr/share/offsec-awae-wheels/colorama-0.4.3-py2.py3-none-any.whl    /usr/share/offsec-awae-wheels/six-1.15.0-py2.py3-none-any.whl    /usr/share/offsec-awae-wheels/pyOpenSSL-19.1.0-py2.py3-none-any.whl    /usr/share/offsec-awae-wheels/beautifulsoup4-4.9.1-py2-none-any.whl    /usr/share/offsec-awae-wheels/chardet-3.0.4-py2.py3-none-any.whl    /usr/share/offsec-awae-wheels/PySocks-1.7.1-py27-none-any.whl    /usr/share/offsec-awae-wheels/pycparser-2.20-py2.py3-none-any.whl    /usr/share/offsec-awae-wheels/backports.functools_lru_cache-1.6.1-py2.py3-none-any.whl    /usr/share/offsec-awae-wheels/idna-2.9-py2.py3-none-any.whl    /usr/share/offsec-awae-wheels/certifi-2020.4.5.1-py2.py3-none-any.whl    /usr/share/cffi-wheels/setuptools-44.1.0-py2.py3-none-any.whl    /usr/share/cffi-wheels/py-1.8.1-py2.py3-none-any.whl    /usr/lib/python2.7    /usr/lib/python2.7/plat-x86_64-linux-gnu    /usr/lib/python2.7/lib-tk    /usr/lib/python2.7/lib-old    /usr/lib/python2.7/lib-dynload    /usr/local/lib/python2.7/dist-packages    /usr/lib/python2.7/dist-packages    /usr/lib/python2.7/dist-packages    /usr/lib/python2.6/site-packages If you installed Zenmap in another directory, you may have to add the  modules directory to the PYTHONPATH environment variable.


Convert to Single line output of bc command


Is there a way to make more then 10 layers?

So, I've been getting used to animating, But,  I Can't find a way to make more then 10 layers. I want to do this to make cool flip book animations.


I have an old xbox360 and my account is there. I want to download my account on the new black Xbox360. The thing is, I don't remember the email associated with that gamertag.  How can I get it?


How can I get only the filename using sed? I've this  out_file=$(echo $in_file|sed "s/\(.*\.\).*/\1mp4/g")   But I get the path too /root/video.mp4, and I want only video.mp4.


What to use here, abstract class or Interface?

I have an abstract class say CTest which contains only the abstract method f1() and nothing else. Similiarly, i have a Interface ITest with the only method f1(). Here both the CTest abstract class and ITest interface does the same thing.   The one difference is that, the Interface provides the flexibility that it can be implemented in any classes which already derived from other class but abstract classes cannot.   Apart from the above difference, What is the actual difference between these two? and which one is efficient here(CTest or ITest)? When i should use what? Any specific scenario's in OO Design and any general suggessions on this are helpful


Flawed proof that all positive integers are equal

Suppose that we are trying to prove that for every positive integer n, if x and y are positive integers with max(x, y) = n, then x = y. For the base case, we suppose n = 1. If max(x, y) = 1 and x and y are positive integers, we have x = y = 1. Now we let k be a positive integer, and assume that whenever max(x, y) = k and x and y are positive integers, then x = y. Let max(x, y) = k + 1, where x and y are positive integers. Then max(x - 1, y - 1) = k, so by the inductive hypothesis, x - 1 = y - 1, so x = y. What is wrong with this ``proof''?


I'm trying to connect to another computer in my house via ssh. Both computers have ubuntu and openssh installed. When I run the command "ssh username@ip" on terminal I'm asked for the user's password I'm trying to connect to. I type it but I get this error "Permission denied, please try again." I'm sure the password is correct, then why can't I access?


How do I check whether a Perl module is installed?

I'm writing a small Perl script that depends on some modules that might be available, so during the installation I would have to check if everythings there.  I could just write use some::module and see if an error comes up, but a short message like "You need to install some::module" would be more helpful for endusers.  I also could just search every directory in @INC, but as it's Perl, there has to be an easier way.


How to Prove that there exist a $\epsilon\gt$0 such that d(a,b)$\ge\epsilon$ for all a$\in$A and b$\in$B?

Let (X,d) be a metric space and A be a closed subset of X. Let B be a compact subset of X such that A$\cap$B=$\phi$. Prove that there exist a $\epsilon$$\gt$0 such that d(a,b)$\ge$$\epsilon$ for all a$\in$A and b$\in$B. I think first I have to show that if b is not in A then there exist a $\epsilon$ such that d(a,b)$\ge$$\epsilon$. And then for each b$\in$B this holds and somehow use the compact ness of B. But I don't understand how to show this. Especially  how to use the compact ness of B here. Thank you.


Magnetic field of a wire with over 1000 amperes?

Does a large thick wire that has over 1000 amperes of current flowing  through it generate powerful magnetic fields?   What formula is best here to predict $B$?


Scroll bar in one line code block the code

Something is so annoying when a code snippet contains only one line of code, the scroll bar hides the code.  It would be good if the scroll bar have a specific area for it in the snippet box. See the screenshot:      Note: I'm using Safari v10.1 on macOS Sierra v10.12.4


Swift multiline strings are not formatted correctly

Swift multiline strings that contain quotation marks, such as:      let multilineString =      """          "let myString = 123"         is part of my multiline string     """   are formatted incorrectly. For example see


Virtualhost config: routing and wildcard usage

My VirtualHost config is below:  <VirtualHost *:80>           ServerName www.example.com           ServerAlias example.com           DocumentRoot /var/www/example/html </VirtualHost>   I want to add a subdomain as such: new.example.com  And I want to add a wildcard to catch all other subdomains (*.example.com) and route them to www.example.com.  How should I add this subdomain? Will it involve an A record?  For the wildcard, if I change my ServerAlias to...  ServerAlias example.com *.example.com  ... then will it interfere with my subdomain (new.example.com)?  EDIT: I have several domains on a single host (via virtual hosts). This is in the same folder as 000-default.conf, but it's named example.conf. (I've actually deleted 000-default.conf, and used conf files named after the domains they point to.)


How do you match only valid roman numerals with a regular expression?

Thinking about , i decided I can't even create a regular expression that will match roman numerals (let alone a context-free grammar that will generate them)  The problem is matching only valid roman numerals.  Eg, 990 is NOT "XM", it's "CMXC"  My problem in making the regex for this is that in order to allow or not allow certain characters, I need to look back. Let's take thousands and hundreds, for example.  I can allow M{0,2}C?M (to allow for 900, 1000, 1900, 2000, 2900 and 3000). However, If the match is on CM, I can't allow following characters to be C or D (because I'm already at 900).  How can I express this in a regex? If it's simply not expressible in a regex, is it expressible in a context-free grammar?


I need help solving this problem.   I don't really know how to solve it.  Here:   Suppose A is a closed subset of a complete metric space M. Show that A is complete in the induced metric.


How do you split partitions?.. like I have 400GB and I just need a 4.5GB  partition from the 465gb.  How do I do this? I am on a live USB running Ubuntu 19.04.  Thanks for the help.


Removing first occurrence of a string in a file with sed on mac

From  I found the command and it works without any command substitution. But if I try to substitute a variable in the command, I get the following problems.  Note: I am using sed command(BSD OSX) / MacOS  To reproduce just create a file.txt with this:  SOME_TEXT CHANGE_THIS CHANGE_THIS CHANGE_THIS   Add TMP variable in you terminal:  TMP=export PATH=/Users/Name/with pace/and_variables:$PATH   Now with this command:  sed -i '' "1h; 1 $ { x; s/CHANGE_THIS/$TMP/; p; }" file.txt   I get this error:  sed: 1: "1h; 1 $ { x; s/CHANGE_T ...": invalid command code $   In a privious answer I got this("," added to "1,$":  sed -i '' "1h; 1,$ { x; s/CHANGE_THIS/$TMP/; p; }" file.txt      expected output file.txt  SOME_TEXT export PATH=/Users/Name/with pace/and_variables:$PATH CHANGE_THIS CHANGE_THIS   I get this:  SOME_TEXT SOME_TEXT SOME_TEXT SOME_TEXT


Can I use a “refurbished” Windows 7 license key on a virtual machine?

I am a software developer and recently purchased a Windows 7 Home Premium license and media labeled as "Intended for distribution with a refurbished PC".  Does the license allow installation in a virtual machine for my personal use?  See also:


Problem Statement:- Solve: $$\dfrac{1}{\left\lfloor{x}\right\rfloor}+\dfrac{1}{\left\lfloor{2x}\right\rfloor}=\{x\}+\dfrac{1}{3}$$ where $\left\lfloor{x}\right\rfloor$ denotes the integral part of $x$ and $\{x\}=x-\left\lfloor{x}\right\rfloor$   The floor function just eats me up whole whenever I encounter it. I have tried some things to solve it but am just not able to come up with anything useful at all. Here are the things I have tried. First of all lets define the domain of $x$ which is $x\not\in[0,1)$, because if so happens then $\left\lfloor{x}\right\rfloor=0$ which should not happen for $\dfrac{1}{\left\lfloor{x}\right\rfloor}$ and $\dfrac{1}{\left\lfloor{2x}\right\rfloor}$ to be defined.  After this I was not able to come up with a good line of thought for attempting the problem so, please guide me as to what should be my line of thought for attempting problems related to the integral part of $x$.


Are quotes needed for local variable assignment?

Can I safely omit quotes on the right side of a local assignment?  function foo {     local myvar=${bar}     stuff() }   I'm mainly interested in bash, but any info on corner cases in other shells are welcome.


I've looked at hmmlearn but I'm not sure if it's the best one.


Minecraft command block messages in chat in Spanish

In my minecraft server/realm I have done this command block that allows one person to sleep and I did the command and that command block disappeared. Now every time a person sleeps a chat message comes up in Spanish:    I've tried the command /gamerule commandblockoutput false but it didn't work.   How can I fix it?


How do I make multiple Blender objects into one?

Situation  I have obtained some blender files & licences for 3d models of transit vans and some trucks. Currently, when I export these objects to .obj files they are rather large, take a while to render and look to have been built in segments.  Problem  These models need to be used on Android devices and they need to be observable through one .obj file. What is happening is when I open the .obj I am not seeing the same model as I do in Blender. The doors and wheels of the vans for instance don't appear.  End Product  I need to find a way of reducing these models to be just one single object. Items on the interior of the van don't matter, seats for example. The file would ideally also be around 200kb, and exportable in a single .obj file. Can anybody shed some light on how I would go about doing this?


Calling a method with ref or out parameters from an anonymous method

This question is related to  which I got some good helpful answers from.  I needed to call various web methods with varying signatures in a generic way. I wanted to be able to pass the web method to a method which had a delegate argument but I was unsure how to deal with the varying signatures. The solution was to use lambdas (or anonymous methods as I'm using C#2 at the moment).  This worked nicely until I needed my anonymous method to call a web method with out parameters. You can't do this for reasons .   So my question is, other than creating a wrapper method with no ref or out params to call from my anonymous method, is there a easier way to accomplish this?


Can Ubuntu 16.04.3 LTS on 1GB RAM and 1GHZ Processor?? Please Answer

I want instal Ubuntu on my notebook, Will Ubuntu Desktop 16.04.3 LTS work perfectly on;  AMD C-60 1GHz processor 1 GB RAM 30 GB HDD  I know the recommendation system requirements  I just want to know Ubuntu will work properly or not with this spech?? Please Answer :)


Uniform convergence of power series with decreasing coefficients

Let $\{a_n\}$ be a monotone decreasing sequence of real numbers, with limit $0$.   Prove that, for each $0<\delta<2$, the power series  $\sum_{n=0}^{\infty} a_n z^n$  converges uniformly on each $\Omega_\delta = \{z : |z|\leq 1 , |z-1|\geq \delta\}$  I have no idea on how to deal with the points in the boundary. Thanks in advance!


How is it that distortions in space can be measured as distances?

Imagine yourself and anything you're able to perceive to be drawn onto a rubber band. Any means of determining distances would be affected by the stretching/contracting of the rubber band. The relation between any two lengths would remain exactly the same because every length is increased/decreased by the same factor as the band stretches/contracts. According to my understanding, that is what the dilation/compression of space is like for us and why it should not lead to any change in distance.  This also applies to relational measurements of length as they are performed, for example, by devices like LIGO. Although the deformation (e.g. gravitational waves) propagates only in one of two directions of measurement, the relation between both lengths should not be affected because none of the individual lengths should be affected.  Accordingly, anything that travels the four kilometers in LIGO should take the exact same amount of time, no matter whether space is currently stretched or compressed. The speed of light being constant should be irrelevant in this this case.  If gravitational waves stretch space itself, how can they have an effect on the interference of two laser beams? According to my understanding, compression or dilation of space itself (as opposed to something in space) should not affect the distance between two points.  Disclaimer: Obviously, the above is not true. It's just how I thought is was. Hopefully, it helps to see where my understanding went awry.  ————  In this question (  ), the problem I had has actually been solved. It comes down to the fact that atoms (because of the non-gravitational forces holding them together) are in fact not affected by spacetime deformations. This makes these deformations detectable.


Server CPU issues, msiexev.exe a culprit?

Running a cloud server on Rackspace: Windows Server 2008 R2 x64 (4 GB Standard Instance) It hosts sql server, IIS, and serves our application to users. It has been fine for months/years. Last night through this morning, it was "jammed" at 100% cpu usage, couldn't remote in, etc. Finally got in through emergency console and rebooted.  Server and sites will come up but CPU usage keeps going to 100% and server is becoming unresponsive every 30-60 min. Two weird questions:   Looking at the server's task manager seems to unclog it. Yes, looking not doing anything. I get reports the server is hanging, I remote in and pull up task manager and I see system idle go back to 80's and 90's. There is a file, msiexev.exe from s:\windows\security that keeps popping up on task manager and takes 50% of the processor load at least. I do not know what this file is, but it keeps reappearing when I kill the process. I even deleted the file from its folder (into recycle bin) but it reappeared in its folder and in task manager.   I have disabled the windows installer service just in case. I read that msiexec is an install utility, but searches for msiexeV are coming up empty. Any ideas?  Thanks!


GParted problems with swap and extended partition

After some partition table problems I finally ran up my Ubuntu and GParted to see my partitions. Then some window appeared.    I clicked Cancel and then second one appeared.    I clicked Cancel once again - finally GParted started.    I don't know what to do! GParted says this about my swap:    /dev/sda4 is my extended partition - this is were my Ubuntu is.  you can read about my previous problems with partition table.  I simply rewrited old partition table - It's not my fault! (I hope)  Also, here's my fdisk -l output:  Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xa118d672     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *        2048      206847      102400    7  HPFS/NTFS/exFAT /dev/sda2          206848   286719999   143256576    7  HPFS/NTFS/exFAT /dev/sda3       286720000   811972349   262626175    7  HPFS/NTFS/exFAT /dev/sda4       915726335   976771071    30522368+   f  W95 Ext'd (LBA) /dev/sda5       915726336   968652799    26463232   83  Linux /dev/sda6       968652801   976771071     4059135+  82  Linux swap / Solaris   And here's how was it before:  Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xa118d672     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *        2048      206847      102400    7  HPFS/NTFS/exFAT /dev/sda2          206848   286719999   143256576    7  HPFS/NTFS/exFAT /dev/sda3       286720000   811972349   262626175    7  HPFS/NTFS/exFAT /dev/sda4       915726335   976771071    30522368+   f  W95 Ext'd (LBA) /dev/sda5       915726336   968652799    26463232   83  Linux /dev/sda6       968652800   976771071     4059136   82  Linux swap / Solaris   Thanks for help!


Access last command of history within a function

I'm trying to create a function that will echo the previous to last command from the current terminal. This is the expected output (here I call the desired function f):  $ history 1 history 1 $ f history 1     Side question: Where does history(1) saves the current terminal's history. I know that when the terminal session ends history is typically saved in $HISTFILE (which is set to ~/.bash_history in my case). But I'd like to know where history(1) keeps the history of the currently running terminal.


How do I make my variables available to all steps of my tests

I'm using data faker and I would like to know how to make my variables available in all steps of my test.  I wanted to leave all elements mapped in the initial step, or be given  WebDriver driver = new ChromeDriver();     //Mapping the elements  WebElement nomeusuario = driver.findElement(By.className("whsOnd zHQkBf"));   My main code is:  public class Criar_Conta_Gmail {  @Given("^que eu esteja na pagina principal do gmail\\.$") public void que_eu_esteja_na_pagina_principal_do_gmail() throws Throwable {     System.setProperty("webdriver.chrome.driver","C:\\Browsers\\chromedriver.exe");     WebDriver driver = new ChromeDriver();     driver.get("https://www.gmail.com");     driver.findElement(By.xpath("//span[contains(text(),'Criar conta')]")).click();     Thread.sleep(2000);     driver.findElement(By.xpath("//div[contains(text(),'Para mim')]")).click();     throw new PendingException();   }  @When("^criar uma nova conta com telefone invalido\\.$") public void criar_uma_nova_conta_com_telefone_invalido() throws Throwable {         WebDriver driver = new ChromeDriver();         //Mapping the elements      WebElement nomeusuario = driver.findElement(By.className("whsOnd zHQkBf"));      // sending data to the application     Faker faker = new Faker();     String Nome = faker.name().firstName();     nomeusuario.sendKeys(Nome);      throw new PendingException(); }  @Then("^o sistema não permite a finalização do cadastro\\.$") public void o_sistema_não_permite_a_finalização_do_cadastro() throws Throwable  {     // Write code here that turns the phrase above into concrete actions     throw new PendingException(); }


How to fix “Error: unknown filesystem. grub rescue>“

I have Windows 10 and Ubuntu on my PC. After I updated Windows I received this message:  Error: unknown filesystem grub rescue>   I entered these commands:    set root=(hd0,6) set prefix=(hd0,6)/boot/grub insmod normal normal   It worked fine but when I restarted the PC the same error message came up, so I deleted the partitions with Ubuntu. I restarted the PC and again the same error. Now when I try to put the commands from above I receive unknown filesystem.    What do I need to do to avoid this grub rescue?    I tried to run the commands given in the answer in a root shell but when I try to run the first command mount -t ext4 /dev/sda6 /mnt/ubuntu it returns   mount: /mnt/ubuntu: mount point does not exist   Maybe I haven't selected the correct partition so here I give you a link to check all my partitions and decide which one is the partition with Ubuntu:


Derivation of asymptotic solution of $\tan(x) = x$.

An equation that seems to come up everywhere is the transcendental $\tan(x) = x$. Normally when it comes up you content yourself with a numerical solution usually using Newton's method. However, browsing today I found an asymptotic formula for the positive roots $x$:  $x = q - q^{-1} - \frac23 q^{-3} + \cdots$  with $q = (n + 1/2) \pi$ for positive integers $n$. For instance here: , and here:  found from a comment here: .  The Mathworld article says that you can derive this formula using series reversion, however I'm having difficulty figuring out exactly how to do it.  Any help with a derivation would be much appreciated.


Is it posible to convert a js object to json or is a js object exactly a JSON ? Can someone tell me what a JSON exactly is ?


Voltage spike at the coil when opening the switch

I've the following circuit:         – Schematic created using   In my book they stated the following sentence:     After that the switch is closed for a long time, I let go of the switch. The voltage at the node \$Y_1\$ will rise in a few miliseconds to about -90 volts.   Question: why is that true? Because the supply voltage is way way less than 90 volts. How can the voltage at the coil exceed the supply voltage soo much?


Let $(a_n)_{n\in \mathbb{N^*}}$ a strictly positive sequence such that $\displaystyle : \lim_{n\to +\infty} \sum _{k=1}^n a_k=+\infty$. Show that for all sequence $(b_n)_{n\in \mathbb{N^*}}$ of real numbers such as $\displaystyle \lim_{n \to +\infty} b_n = l \in \mathbb{\bar{R}}$, we have $:$ $$\lim_{n\to +\infty} \frac{a_1b_1+a_2b_2+a_3b_3+...+a_nb_n}{a_1+a_2+a_3+...+a_n}=l$$  I tried to use some inequalities such as the Cauchy inequality which gave me $\sum a_kb_k\le \sqrt{\sum a_k^2\ \cdot \ \sum b_k^2 }$ I also tried the definition of the limit with Cesaro lemma yet it doesnt work  Any idea ? thanks


I used $$(n!)^{\frac{1}{n}}=e^{\frac{1}{n}\ln(n!)}=e^{\lim\limits_{n\to\infty}\frac{1}{n}\ln(n!)}$$ Then using Stirling's approximation and L'Hospital's rule on $$\lim\limits_{n\to\infty}\frac{\ln(n!)}{n}$$ I get $$\lim\limits_{n\to\infty}\frac{\ln(n!)}{n}=\lim\limits_{n\to\infty}(\ln(n)+\frac{n+\frac{1}{2}}{n}-1)=\infty$$ Now, $$e^{\lim\limits_{n\to\infty}\frac{1}{n}\ln(n!)}=e^{\infty}=\infty$$ Thus $$\lim\limits_{n\to\infty}\frac{1}{\sqrt[n]n}=\frac{1}{\infty}=0$$  Is this correct approach and what other methods could be used?


Why don't digital cameras shoot video at full sensor resolution, or do continuous drive at video framerates?

Why do high resolution cameras shoot stills at high resolutions, but only typically shoot video at 1080p which is about 2 megapixels?  For example I have a Sony-NEX 6 which can shoot stills at 16 megapixels but only 1080p by 1920p video.  Also how do digital cameras separate the frames in video if the lens shutter never closes?  And if you can shoot video at 30 fps or 60 fps then why can't cameras have a continuous drives at 30 to 60 fps?


I'd like to write better bug reports - what are some things I should keep in mind when reporting bugs to developers of software I use?


Any subgroup of index $p$ in a $p$-group is normal.

Let $p$ be a prime number and $G$ a finite group where $|G|=p^n$, $n \in \mathbb{Z_+}$. Show that any subgroup of index $p$ in it is normal in $G$. Conclude that any group of order $p^2$ have a normal subgroup of order $p$, but without using the Sylow theorems.


Remove cached searches when using a form

I'm using this code:  <form action="https://google.com/search" method="get"> <input type="text" name="q" />   To allow me to search using google from a custom homepage. But after every search it seems to be caching my search terms.   When I return to the HTML page when I click on the form it has my previous searches as auto fill drop-down box.   I'd like to disable this function and stop the page from caching.  Thank You


Verifying that the ideal $(x^3-y^2)$ is prime

How to prove that the ideal $I=(x^3-y^2)$ in $k[x,y]$ is prime?    I have constructed a map from $k[x,y]$ to $k[t]$, which maps $x$ to $t^2$, and $y$ to $t^3$. Then, I want to show that the kernel is exactly $I$. But the difficulty is that how to prove the kernel is contained in $I$.  Could you help me? Thanks a lot!


How to move Clash Royale Account with Gmail to iOS

It says I have to get a Link Device but I'm not getting it I don't know why. I'm connected to Gmail and when I connect to supercell ID, it's a new village.


I am running some script which passing the string argument and I want to do if else statement shown as below:  if [ $1 != '' ] && [ $2 != '' ] then      do something.....   but it shown Error too many argument. Why?


We have a wire of length 28 meters and we have to form a circle and a square. What will be the maximum area and how?  Can we draw the circle?


I'm trying to pass stdout from a specific pipe to two other pipe, so that they run at the same time... It's essentially similar to what  post suggest: somecommand | xargs -I% tee >(firstcommand "%" | secondcommand | thirdcommand) >(anothercommand)  Now this works if I don't care about the position of the argument/string being passed through stdout of the first pipe... (as used on the second pipe in tee above) But if i do, then the use of xargs (which become needed here), doesn't work (except for the second pipe in the tee command). By "doesn't work", I do mean that % doesn't get evaluated/changed to the passed string as it should. I did try with the "default" ones ({}) without any success too. Any feedback/answers appreciated. Don't mind any POSIX or Shell oriented solutions. P.S.: I prefer to not use parallel if possible.


Some troops not levelling up with donation upgrade

I'm in a level 6 clan. Everything I donate to other people levels up by 1 level but I have noticed that some donations we receive remain at level 1. I have received level 1 barbs and archers when I request troops. How is this possible? They should be levelling up to level 2 surely? I'm not clan hopping so I am receiving them in my clan.


I had asked a question on meta.stackexchange approx 3 months ago and it does not show up anywhere

I can not see the question in any disposition in my meta.stackexchange questions.  Any ideas?


How to detect a client disconnect in Java?

I want to detect a client disconnect in Java, but when I try to read from the socket I have no return ( null or -1).


My house is wired for Ethernet but all the wires come to the basement which is where my dsl modem and my Netgear WNDR3700v3 wifi router is. I get practically no wifi signal upstairs but i have an Acer Revo upstairs running Ubuntu which is connected to my network with Ethernet and has wifi card built in (though I'm not using it). Is there a way I can make this into a repeater?   I've been reading up about it but there are some things I don't understand. I read that I need 2 wifi card and one needs have master mode. I don't understand what this means.  I also see that my WNDR3700 has an option to be a wireless base station and i can put in the mac address of 4 repeaters. Would I need to enable this to work with my revo as a repeater?


When I am putting two round images side by side, their shapes change to oval! here is how I do it:  \begin{figure}[t!] % \begin{subfigure}[t]{0.45\linewidth}   \centering   \includegraphics[width=4.2cm, height=5.0cm]{Probabilistic_Vs_Random.png} %  \vspace{1.5cm}  \caption{probabilistic-based player starts the game}\medskip  \label{fig:2a} \end{subfigure}\hfill \begin{subfigure}[t]{0.45\linewidth}   \centering   \includegraphics[width=4.2cm, height=5.0cm]{Random_Vs_Probabilistic.png} %  \vspace{1.5cm}\hfill    \caption{random player starts the game}\medskip    \label{fig:2b} \end{subfigure}\hfill \begin{subfigure}[t]{0.45\linewidth}   \centering   \includegraphics[width=4.2cm, height=5.0cm]{Probabilistic_Vs_Probabilistic.png} %  \vspace{1.5cm}  \caption{probabilistic vs. probabilistic}\medskip  \label{fig:2c} \end{subfigure} \caption{Performance of random and probabilistic-based players based on 1000 plays} \label{fig:2} \end{figure}    I guess the problem is the size of my plots and this line  \includegraphics[width=4.2cm, height=5.0cm   but I  don't know how to fix. here is the snapshot


When I select the file and push delete this file is automatically landing in the trash. How can I delete files bypassing trash without using a mouse?


Indicate the type of reply in the Stack Exchange Android app feed

In the feed you get a scrolling entry for comments and one for answers. Both are labelled as "replies". I think they should be labelled as comments and answers.  As it is it looks particularly odd when you have answers and comments to the same question, where it shows two rows of "replies".


I get different formatting with different bib sources (like article, book), but none of them are correct in their current state.  So in books it shows the vol as Bd., however neither vol. nor Bd. nor any preceeding name should be visible. In articles it does not show Bd. or vol. however it separates the numbers by period:       3.2, S. 1-2   I'd like it to be like this     3, 2, S. 1-2   Examples:  @book{Doi.1978,  author = {Doi, Yutaka and Sano, Tetsuji and Tanaka, Itsuo},  year = {1978},  title = {Senkyo seido},  titleaddon = {[Das Wahlsystem]},  keywords = {Election law;Local elections},  volume = {10},  publisher = {Gy{\^o}sei},  location = {T{\^o}ky{\^o}},  series = {Gendai chih{\^o} jichi zensh{\^u}},  abstract = {}, }  @article{McMaster.1963,  author = {McMaster, John},  year = {1963},  title = {The Takashima Mine},  pages = {215--239},  pagination = {page},  volume = {38},  subtitle = {British Capital and Japanese Industrialization},  journaltitle = {Business History Review},  number = {3},  abstract = {} }   Do you know how to fix that?       \usepackage[     backend=biber,     style=authoryear,     sorting=nyvt   ]{biblatex}   \addbibresource{backmatter/sample.bib} \renewcommand{\mkbibnamefamily}[1]{\textsc{#1}} \renewcommand{\labelnamepunct}{\addcolon\space} \DeclareFieldFormat{postnote}{#1} \DeclareFieldFormat{multipostnote}{#1} \renewcommand\postnotedelim{\addcolon\addspace} \usepackage{url} \urlstyle{same}   -> Also I found quotation marks in article titles, which should not be there (it is correct that they are NOT italic though)  Thank you!


Is LTS nothing more than security updates?

I switched back from Ubuntu 13.10 to 12.04 and i noticed that many apps are way behind their stable releases in the 12.04 repository/software center, like Gimp and Texmaker, and i wonder why that is the case.  What does LTS really stand for when the software center has many outdated apps?


I want to learn how to write bash completion scripts. Which tutorial would you recommend?


Some bad grades but many (good) publications; applying for a PhD

I'm considering to apply for a PhD. My situation is roughly this:    GPA in my BSc is about 2/4. GPA in my MSc will be about 3.6/4   I have two peer-reviewed conference papers with proceedings and two peer-reviewed journal publications. I'm a first author in two of them. I could probably have two good recommendation letters. Third would be related to teaching, not research.  Would I have any chance to get admitted to top universities? I feel that the BSc GPA is a problem. And I'm now in a small university no one has never heard of. On the other hand, my MSc grades are good, and as different from my BSc grades as "night and day." Will schools likely give more weight to my MSc or BSc grades?


How do I make my bash login session "autosave" its history?

IIANM, bash saves its history to ~/.bash_history (or to $HISTFILE) on exit from a login shell session. But - what if you want to occasionally persist it for fear of the shell getting prematurely killed (as in SIGKILL or power failure)? Is this possible without burdening the system or the shell session experience?


Inverse Laplace transform of $\frac{1}{s\sinh{c\sqrt{s}}}$

I have some questions.  I have to take the inverse Laplace transform of the given function below by residue theorem:   $\frac{1}{s\sinh{c\sqrt{s}}}$   where s is Laplacian variable and c is a real constant. Actually it has a very crowded numerator which I do not need to define. So far I know that it has a simple pole at s = zero and infinitely many poles at c√s = nπi  Questions:  1- What is the order of the poles at nπi? Is it 1/2?  2- At zero, what is the order? (Because to residue at zero, s also contributes)  3- What is the way of solving this question at nπi by residue theorem (without defining sinh function as exponential function)?  Thanks for any help.


Logging process details of those that spike the CPU

Something on my laptop is maxing out the CPU now and then. It's an i7 so I assume it must have to be a relatively big issue for that to be the case. When it happens, my laptop locks up for a few seconds, audio sounds very strange (I imagine it's looping really fast).  When it happens, I fire up task manager and can see the spike, but the option to sort by processor consumption descending and take a look at what it is has gone (it suddenly drops).  Is there anything out there that can be configured to log process details of any process that pushes the CPU over X where X, in this case, is probably 95% or so.


How can I import an excel table into latex longtable

I want to import some data from excel which is in table form (raw from that it not formatted) and I want to import into a longtable with the appropriate formatting (if indeed it can be done in one step) what is the easiest way to do this?


Have any selection on page to be auto copied to clipboard

I need to copy any selection from a webpage to the clipboard, it can be on a div, text input, password input, span, etc.  I have the following function that does this for me, but the challenge is have the returned value from the function to be set on the clipboard  const getSelectionText = () => {   let text = "";   let activeDomElement = document.activeElement;   let activeDomElementTagName = activeDomElement ? activeDomElement.tagName.toLowerCase() : null;   if (    (activeDomElementTagName === 'textarea') || (activeDomElementTagName ===  'input' &&   /^(?:text|search|password|tel|url)$/i.test(activeDomElement.type)) && (typeof activeDomElement.selectionStart === "number")  ) {         text = activeDomElement.value.slice(activeDomElement.selectionStart,   activeDomElement.selectionEnd);    } else if (window.getSelection) {      text = window.getSelection().toString();   }   return text; }   Any idea, or links to resources would be helpful, thanks


Let $y=x^2$ and $y=t^4$ $$\frac{\mathrm{d}y}{\mathrm{d}x}=2x$$ $$\frac{\mathrm{d}y}{\mathrm{d}t}=4t^3$$ Now, $\frac{\mathrm{d}}{\mathrm{d}t}\left(\frac{\mathrm{d}y}{\mathrm{d}x}\right)=\frac{\mathrm{d}}{\mathrm{d}t}\left(2x\right)=\frac{\mathrm{d}}{\mathrm{d}t}\left(2t^2\right)=4t$ $\frac{\mathrm{d}}{\mathrm{d}x}\left(\frac{\mathrm{d}y}{\mathrm{d}t}\right)=\frac{\mathrm{d}}{\mathrm{d}x}\left(4t^3\right)=\frac{\mathrm{d}}{\mathrm{d}x}\left(4x^{\frac{3}{2}}\right)=6t$ Why am I getting $\frac{\mathrm{d}}{\mathrm{d}t}\left(\frac{\mathrm{d}y}{\mathrm{d}x}\right)$ is not equal to $\frac{\mathrm{d}}{\mathrm{d}x}\left(\frac{\mathrm{d}y}{\mathrm{d}t}\right)$? Isn't it a law of calculus?


I have a custom object. I want to put in a business rule so that a combination of two fields must be unique.   So I have Field1 and Field2 and want the combination to be unique:  Field1=4, Field2=7 Field1=4, Field2=8   is ok  But,   Field1=4, Field2=7 Field1=4, Field2=7   is not ok  What is the easiest / best way to do this? Thanks.


Many times my mouse USB suddenly stops working, though the trackpad works just fine. I have to click it to make it work again. I have found the following solution:  sudo bash for i in /sys/bus/usb/devices/*/power/control; do echo on > $i; done   However, I have to execute this script every time the problem occurs. What is the true reason behind it? How can I fix it permanently?  I am using Ubuntu 14.04 LTS.


Beginner - Iteratively adding terms to regression model?

I'm learning about regression models via Andrew Ng's Coursera course. I have a question regarding automatically finding a good model.  Does it make sense (my guess is no) to iteratively add terms, or iteratively change a model to a different one, and then check the $R^2$ or MSE and see which one is best?  For example, if you have model like y = ax + b, and then you change it to $y = ax^2 + b$ and then $y = ax^2 + ax + b$, and keep doing so while continuously checking if it's better or worse than the other models.   Like I said, I'm just beginning learning this stuff, so I'm sure there's a better way to do this, but this just popped into my head as a possibility.


The bindValue is not working properly here

if($_GET['s']<>''){      $explode = explode(' ',$_GET['s']);     $num = count($explode);      for($i=0;$i<$num;$i++){         $busca .= " `nome` LIKE :busca$i ";//OR `district` LIKE :busca$i OR `city` LIKE :busca$i OR `area` LIKE :busca$i ";          if($i<>$num-1){ $busca .= ' AND '; }      }     $buscar = DB::getConn()->prepare("SELECT * FROM users WHERE $busca");     for($i=0;$i<$num;$i++){         $buscar->bindValue(":busca$i",'%'.$explode[$i].'%',PDO::PARAM_STR);     }     echo "$busca";       echo "$explode[0]";     $buscar->execute();   }   The echos work alright but the its not binding the values on $buscar it returns:  nome LIKE :busca0  It does not put the value from $explode[0] on $busca0 and the echo for explode is working properly...


Running on Mac OS.  I am using a composer template that I have used in the past with this version of QGIS (3.2) that uses an atlas. Now it does not display the Atlas tab in the composer.  The generate atlas box is checked.    I then installed 3.4 with the same result. Next I tried opening an empty composer and loaded a map, still no Atlas tab and checking the generate atlas box had no effect (it did not register -- no tick -- it appears disabled).  I swapped to a near identical system and started QGIS 3.2 opening the same project (it is stored on Google Drive) using the same PostGIS database with the same result.  Anyone have any idea what is going on?   I last used this print template a few months ago.


The twisted cubic is the image of the morphism $\phi : \mathbb{P}^1 \to \mathbb{P}^3 , (x:y) \mapsto (x^3:x^2 y:x y^2:y^3)$, it is given by $X = V(ad-bc,b^2-ac,c^2-bd)$. Now I would like to compute $I(X)$, which equals by the Nullstellensatz the radical of the ideal $I := (ad-bc,b^2-ac,c^2-bd) \subseteq k[a,b,c,d]$. I think that that $I$ is already a radical ideal, even a prime ideal. Namely, I suspect that  $$\phi^* : Q:=k[a,b,c,d]/I \to k[s,t] , a \mapsto s^3, b \mapsto s^2 t , c \mapsto s t^2 , d \mapsto t^3$$ is an injection. If this is true: How can we prove that? I've already tried to find a $k$-basis of the quotient, but this turned out to be a big mess. Even the representation of the quotient as a monoid algebra doesn't seem to help. Another idea is the following: A formal manipulation of generators and relations implies $Q_a \cong k[a,b]_a$. Thus it suffices to prove that $Q \to Q_a$ is injective, i.e. that $a$ is not a zero divisor.


Unity Launcher entry with "=" in the command

I have meshlab in my Unity Launcher with the following desktop file:  [Desktop Entry] Version=1.0 Name=MeshLab Name[en_GB]=MeshLab GenericName=Mesh processing GenericName[en_GB]=Mesh processing Comment=View and process meshes Type=Application Exec=meshlab Icon=/usr/share/pixmaps/meshlab_32x32.xpm Terminal=false MimeType=model/mesh;application/x-3ds;image/x-3ds;model/x-ply;application/sla;model/x-quad-object;model/x-geomview-off;application/x-cyclone-ptx;application/x-vmi;application/x-bre;model/vnd.collada+xml;model/openctm;application/x-expe-binary;application/x-expe-ascii;application/x-xyz;application/x-gts;chemical/x-pdb;application/x-tri;application/x-asc;model/x3d+xml;model/x3d+vrml;model/vrml;model/u3d;model/idtf; Categories=Graphics;3DGraphics;Viewer;Qt;   But I need to run the program with the following command so that it parses the mesh files correctly:  LC_ALL=C meshlab   The  says that I can't use a "=" sign in the command but it soesn't say anything on what else to do, if you need one. I tried escaping it with a backslash and putting the whole command or just the first part in double quotes but I couldn't get it to work.  Any help would be greatly appreciated.


How much swap should I take for 1GB to 8TB of RAM on 14.04 or higher?

I'm going to install 64 bit 14.04 on a new machine with something like 1 to maybe 128GB RAM and even more RAM later. How much space should I allocate to the swap partition?   And especially: WHY those recommendations for these numbers?    (None of the existing answers  and  explain any of the why and are a bit dated if we look at 1GB or RAM and up)


Why would a bank need to accept deposits from private clients if it can just borrow from the Federal Reserve?

As far as I understand, all banks can borrow money from the Central Bank (Federal Reserve in the US) and the rates are (currently) extremely low (or even negative in some cases). If that is so, why would a bank need to accept deposits from private persons? While some banks do charge fees for keeping deposits, there are also plenty of free-of-charge offers out there.  In order not to make this too broad, assume that the bank is in the US.


Ubuntu system totally freezes 12.04 12.10 13.04

This problem is an ongoing issue for me. Maybe someone has an idea out there.  I've been using Ubuntu 32 bit for years with much pleasure. It all stopped when I upgraded to version 12.04.   Since then, the computer keeps freezing after different time intervals of useage, mouse, screen, keyboard - the only way to revive it is a hard reset. Sometimes, while browsing the web (via Firefox or Chrome), the system freezes, however it is a "different freeze" and I can use the combination of CTRL+ALT+F2 to go into a terminal, type my user and password, followed by CTRL+ALT+F7 to return to the GUI interface. However, the interface is lacking the side taskbar and the upper statusbar - they don't reappear until I force reboot via terminal.  I must add that I've installed Fedora insted - hoping it will work properly - but the same thing happend with Fedora (latest version). Made me think there is a problem either with my hardware configuration or with the kernel (I don't know whether Fedora and Ubuntu use the same kernel). I tried formatting the hard drive and reinstalling. The same problem occured. Everything works fine with Ubuntu 11.10. It is only the later versions which present me with these freezing problems.   My specs:   Intel Core i5-2300 2.8GHz-3.1GHz 6MB cache 95W LGA1155 desktop computer Intel Bearup Lake DH67BL H67 LGA1155 uATX Sound & Graphics cards - Intel on board. 4GB memory 100TB HD   Thanks alot.


How to write on FAT32 and NTFS from Mountain Lion?

What is the best free software for OS X Mountain Lion for enabling write support for FAT32 and NTFS?


How could the T-1000 use time travel technology?

It is established in The Terminator that anything travelling through time needs to be encased in living tissue. However, the T-1000 just seems to be made of liquid metal. Does the movie ever address this, or is it just a giant plot hole?


Check folder periodically for changes and run script on OS X?

I have a folder of files.  I would like for the system to check this folder every X minutes to see if any of the files have changed and, if so, to then run a script that I've written in python.


StackOverFlowException when setting property

I'm trying to using a conditional statement to check if a value equals something prior to setting it using a setter. I am returned a StackOverFlowException error. I am using another .cs file to execute the code for general practice.  using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;  namespace Job_Classes {     class Workers     {         public string Name         {             get { return Name; }             set             {                 if (Name.CompareTo("Admin") == 0 || Name.CompareTo("Admin") == -1) //Just trying out comparison with the input.                 {                     Console.WriteLine("Invalid Name."); //To see if an invalid input that is not "Admin" fails.                 }                 else                 {                     Name = value;                     Console.WriteLine("Done.");                 }             }         }         public Workers()         {             this.Name = null;         }         public Workers(string Name)         {             this.Name = Name;         }         public string Information()         {             return String.Format("Name: {0}", Name);          }                  } }   My execution code in another .cs is:  Workers Test = new Workers("John");


How do IPs end up on the spam blacklists

I don't know if this is the right place to ask this kind of question but here goes.  I have 3 IPs on my server,  which I'm running for shared hosting. The main shared IP gets blacklisted sometimes, obviously sometimes an account is compromised and it sends  out spam so the IP gets blacklisted, that I can understand, I try to limit it as much as I can but where I am from, it is really hard to convince a customer to update their CMS so they don't keep getting hacked.  And that goes for most accounts so no point of kicking them all really : )  The strange thing though is, I have an important account on a dedicated IP, which I thought will solve the blacklisting problem for him! To my surprise this IP address got blocked as well even though it did not send out any spam, maybe only because it is on the same subnet?? Or how do those blacklists end up blocking my other IP?  Also if you guys can point me to the right direction as to what measures I should take to prevent this from happening again and again, I thought clamd or spamassassin should work to prevent spam, but obviously they work for incoming messages not outgoing messages.  I decided to take a somewhat drastic  measure, I will setup a script that runs every hour or so, count the number of messages in the queue for each domain, and if the number exceeds X amount of messages, the domain will be blocked from sending email until reviewed.  Is there anything I can do to actually DETECT outgoing spam, so it does not have to flood the queue.  Thanks


Variable not expanding inside another variable bash

I am reading a csv file in bash script as follows:  resource='/data/bscs/' while IFS='|'read seqid fname fpath  do     echo "FILENO:         $seqid"     echo "FILENAME:       $fname"     echo "FILE_PATH:    $fpath"                     done < "report.csv"   My csv file has following values :  3|sample1.txt|$resource/operation/  I want the $resource to expand inside $fname. Instead, I am getting this output:  FILENO:         3 FILENAME:       sample1.txt SOURCE PATH:    $resource/operation   I have tried the following:  "${fpath}"   $(echo $fpath)  How can I achieve this?


Can someone help me prove that the sequence      $$\left(1+\frac{1}{N} \right)^{N+1}$$      is decreasing for $N \in \Bbb N $?   EDIT: I have tried the following..  \begin{align} \frac{\left(1+\frac{1}{K}\right)^{K+1}}{\left(1+\frac{1}{K+1}\right)^{K+1}}      & =\left(1+\frac{1}{K^{2}+2K}\right)^{K+1} \\ \tag{Bernoulli}      & >1+\frac{K+1}{K^{2}+2K} \\   & >1+\frac{K+1}{K^{2}+2K+1} \\   & =1+\frac{1}{K+1} \\   & =\frac{K+2}{K+1} \\ \end{align}  $$\left(1+\frac{1}{K+1}\right)^{K+2}=\frac{K+2}{K+1}\left(1+\frac{1}{K+1}\right)^{K+1}<\left(1+\frac{1}{K+1}\right)^{K+1}$$


Parsing command line arguments in a unicode C++ application

How can I parse integers passed to an application as command line arguments if the app is unicode?  Unicode apps have a main like this:  int _tmain(int argc, _TCHAR* argv[])   argv[?] is a wchar_t*. That means i can't use atoi. How can I convert it to an integer? Is stringstream the best option?


sets and finding counterexample from empty set

Question Find a counter-example to the claim that for all sets $A,B,C$ if $A\cap B=B\cap C=A\cap C=\emptyset$ then $A\cap B\cap C\neq\emptyset$.  If i have to find a counter-example then It should be an example or fact that is inconsistent with a hypothesis and may be used in argument against it.  Can i get help here please.


How to Prove $P(A\lvert C)=P(A\lvert B^C)*P(B^C\lvert C)$

This is not Bayes theorem, is it? How can I prove this formula? Sorry for this naive question. I'm a first year math student.


How to configure TeXnicCenter to work with Adobe Reader DC? When I building and view current file .tex the following error "Can not execute the command" shows up and the PDF is not generated.    If there are any related post, could help. Thanks a lot!


Why do some community wiki posts say "unknown"?

Why do some community wiki posts say that the OP is "unknown", while others actually have a username under "community wiki"?  For example,  answer has a username on it, while  answer just says "unknown".


How to convert the shapes stroke into open or transparent in Illustrator CS5?

I created a path:    Inside that path I created several more paths:    and group those on separate layer.  Inside paths doesn’t have any fill but have a stroke of 1.  Since I want that stroke to be open (or transparent. I don’t know the exact term, I want the stroke line to show the color beneath), I selected the stroke and chose Object > Flatten Transparency. Then Selecting both, I chose Pathfinder > Minus Front.  Result:     Now I want the above design to top of this:    like    and want to create a outer stroke for my star and I want that stroke line to be open (like the paths within star)  I've been beating my head with this for the last 48 hours but I couldn't find where I'm doing it wrong. If it's any help, this design is for a t-shirt design experiment.   Can anyone help me with this? Your help much appreciated.  Edit:  I want the result to be:      I want the stroke of the star to be punched through the (square) path and the compound path to create hollow space around the star (to show the background color). Thanks in advance.


How do I use JavaScript to respond to a key press?

I'm sorry if this is a general question but what block of code should I use to make javascript or html respond to a key press or key event? Any way to do it is ok but I just want to make my website more interactive. Thank You!  And don't go around saying that this is a copy of some other question. It is not. I don't know why anyone would think that, too because the "original" question is asking "how do I know if a key is pressed". I am asking how do I make my website respond to a key press. And to the comment below, I have been searching this stuff up but isn't that what this website is for? I don't have a P.H.D in computer science and I'm just asking questions so I can understand these computer languages a little better but every time I ask a question everyone gets really mad at me because somehow a question about javascript is a lot like a fancy jquery command. But back on topic I am just looking for ways that my website can react to a key press. Once again, Thank You!


I am using thunderbird as my mail client at my workplace PC (Linux Mint) and personal laptop (Ubuntu). I am using the thunderbird address-book synchroniser add on for synchronisation of contacts.   Now, I am planning to buy an android phone. So is there any android app which will help me synchronise the contacts and calenders across all my devices via cloud? The best would be if thunderbird had an android version, but I don't mind moving to a new synchronisation add on or mail client so long as I don't have to abandon the Ubuntu and Mint.


When we canonically quantize the scalar field in QFT, we use a Lorentz invariant integration measure given by $$\widetilde{dk} \equiv \frac{d^3k}{(2\pi)^3 2\omega(\textbf{k})}.$$  How can I show that it is Lorentz invariant?


I need a litle help finding the solution for this exercise: $$\lim_{n\to\infty} \sqrt[n]{\int_{0}^{1} (2017+x^n)^n dx}$$ I think I should start from $$ 2017\leq 2017+x^n \leq 2018$$ but from there I end up with $$2017 \leq \sqrt[n]{\int_{0}^{1} (2017+x^n)^n dx} \leq 2018 $$ and I'm not sure what to do next.


Is there an equivalent to \graphicspath for listings?

How can I make the \lstinputlisting to search for files in a given directory? I'm thinking of a solution along the lines of the solution to .  I would like to have a solution like  \lstinputpath{/some/path/in/the/system} \lstinputlisting{file.ext}   where file.ext resides in /some/path/in/the/system. I tried to search for such solution without luck. I found that inside of the definition of \lstinputlistings the authors use a \lst@inputpath. However, a naive modification of this macro doesn't yield any results.


Get JSON WebMap from ArcGIS JavaScript API Map object

I'm trying to get a WebMap object (as JSON) from a JavaScript Map object in the ArcGIS JavaScript API. Is there any way to do this within the API, without using ArcGIS.com? Ideally something like:  var webMapAsJSON = map.toWebMap();    in the REST API, there's this line that suggests it should exist:     "The ArcGIS web APIs (for JavaScript, Flex, Silverlight, etc.) allow   developers to easily get this JSON string from the map."   However, I don't see anything in the Map object or elsewhere in the API that would do this. Any ideas?


Amsthm numbering depending on section depth

I'm using amsthm and thmtools to define custom theorem environments, definition environments, etc. All such environments share the same counter.   Is it possible to vary the numbering format depending on the section depth? I want to achieve the following numbering format:  1 Section   1.1 Theorem  1.2 Definition  1.1 Subsection  1.1.1 Theorem  1.1.2 Lemma


I'm wondering how polymorphism works with objects instead of pointers. I wrote the following example:  This code:  #include <iostream> #include <vector>  class Base { public:     virtual void ToString() {         std::cout << "Base" << std::endl;     }; };  class DerivedA : public Base { public:     void ToString() final {         std::cout << "DerivedA" << std::endl;     } };  class DerivedB : public Base { public:     void ToString() final {         std::cout << "DerivedB" << std::endl;     } };   int main(int argc, char **argv) {     std::vector<Base> v;     v.push_back(DerivedA());     v.push_back(DerivedB());      v[0].ToString();     v[1].ToString();     return 0; }   Show this output:  Base  Base  While:  int main(int argc, char **argv) {     std::vector<Base*> v;     v.push_back(new DerivedA());     v.push_back(new DerivedB());      v[0]->ToString();     v[1]->ToString();     return 0; }   Shows this:  DerivedA  DerivedB  Why in the first example is calling the base method while the second one calls the derived ones?


I am experimenting with aircrack-ng and I managed to fill up / with the syslog file complaining about what I'm doing to the poor wifi card. How can I disable logging to syslog for the duration of my Bash session?. Of course I would like other, unrelated, processes to continue their logging as necessary.  The /var/log/syslog file looks like this, repeating:  Oct 24 03:39:40 loathe NetworkManager[673]: <error> [1445647180.233086] [platform/nm-linux-platform.c:2782] do_chan     ge_link(): platform-linux: do-change-link: failure changing link 4: Unspecific failure (1) Oct 24 03:39:40 loathe wpa_supplicant[762]: Could not set interface mon0 flags (UP): Name not unique on network Oct 24 03:39:40 loathe wpa_supplicant[762]: nl80211: Could not set interface 'mon0' UP Oct 24 03:39:40 loathe wpa_supplicant[762]: nl80211: deinit ifname=mon0 disabled_11b_rates=0 Oct 24 03:39:40 loathe wpa_supplicant[762]: Could not set interface mon0 flags (UP): Name not unique on network Oct 24 03:39:40 loathe wpa_supplicant[762]: WEXT: Could not set interface 'mon0' UP Oct 24 03:39:40 loathe wpa_supplicant[762]: mon0: Failed to initialize driver interface   This is on Kubuntu 15.10.


cout prints char[] containing more characters than set length?

#include<iostream> using namespace std; int main(void) {     char name[5];     cout << "Name: ";     cin.getline(name, 20);     cout << name; }   Output:  Name: HelloWorld HelloWorld   Shouldn't this give an error or something?  Also when I write an even longer string,   Name: HelloWorld Goodbye HelloWorld Goodbye   cmd exits with an error.  How is this possible?  Compiler: G++ (GCC 7), Nuwen OS: Windows 10


Induction proof of the identity $\cos x+\cos(2x)+\cdots+\cos (nx) = \frac{\sin(\frac{nx}{2})\cos\frac{(n+1)x}{2}}{\sin(\frac{x}{2})}$

Prove that:$$\cos x+\cos(2x)+\cdots+\cos (nx)=\frac{\sin(\frac{nx}{2})\cos\frac{(n+1)x}{2}}{\sin(\frac{x}{2})}.\ (1)$$   My attempt:$$\sin\left(\frac{x}{2}\right)\sum_{k=1}^{n}\cos{(kx)}$$$$=\sum_{k=1}^{n}\sin\left(\frac{x}{2}\right)\cos{(kx)} $$ (Applying $\sin x\cos y =\frac{1}{2}\left[\sin(x+y)+\sin(x-y)\right]$) $$=\sum_{k=1}^{n}\frac{1}{2}\sin\left(\frac{x}{2}-kx\right)+\frac{1}{2}\sin\left(\frac{x}{2}+kx\right).$$Multiplying $(1)$ by $\sin\left(\frac{x}{2}\right)$ ,gives: $$\sum_{k=1}^{n}\sin\left(\frac{x}{2}\right)\cos(kx)=\sin\left(\frac{nx}{2}\right)\cos{\frac{(n+1)x}{2}}$$ $$\Leftrightarrow\sum_{k=1}^{n}\left[\sin\left(\frac{x}{2}-kx\right)+\sin\left(\frac{x}{2}+kx\right)\right]=\sin\left(-\frac{x}{2}\right)+\sin\left(\frac{x}{2}+nx\right).$$Then, by induction on $n$ and using $(\sin x\sin y)$ and $(\sin x +\sin y)$ formulas, I end in here:  $$\sum_{k=1}^{n+1}\sin\left(\frac{x}{2}\right)\cos(kx)=\left[2\sin\left(\frac{nx}{2}\right)\cos\frac{(n+1)x}{2}\right]+\left[2\sin\left(\frac{x}{2}\right)\cos(n+1)x\right].$$ Any help would be appreciated, thanks!


How do I write Table of Contents and not Contents in my project work? I need help on this!


Picking up from this  and this , What exactly is ETTR? How it may reduce the image noise? And how is it difference from film to digital sensors?  In the answer linked above, what are the 5 stops and is it related to ETTR?  In real life how can I apply this technique when I'm shooting?


In my apple account there is $0.15. When ever I try to change my country it says "you have store credit balance; you must spend your balance before you can change stores."  If there is a way to change countries please share your info.