Scenario = I created an app that I want to put into production. I also have created an App ID on my developer.apple.com account for that app and an iAd account that I believe was created using said App ID.  com.domainname.appname   Issue = I changed the name of my app and inso doing I got a new domain name for the new name.  Problem = Apple does not allow you to edit an existing App ID.   Question = How do I change my App ID?   com.newdomainname.newappname   Comment/Question = I know Apple says that it is impossible, therefore, can someone who has been through a name change like this before enlighten me with the steps necessary to accomplish an app name change and change the App ID as such to be concurrent with iAd and any other third party service I may be using with said App ID?  If I have to create a whole new App profile with Apple or whatever, that's fine. I just need to know the steps so I don't get anything wrong and fudge things up. If someone who has done this before can help me I'd appreciate it. Thanks.

I began an iPhone project the other day with a silly development code name, and now I want to change the name of the project since it's nearly finished.   But I'm not sure how to do this with Xcode, trying the obvious of changing the application's name in the info.plist file, causes the signing process to go wrong (I think...) and my app won't launch giving me a Launcher error.  I guess I could make a new project and copy paste everything over, but it seems so primitive that I'm hoping for a more civilized solution.


Background, elaborating on :  There are 3 queues of flags:   Comment Flags Moderator Flags (where you type in the little message) Spam/Offensive (That 10K Users can see)   Moderator Flags These flags have your name attached to them, let you write a message, and are the only ones to set off the mod-signal (the red box in the toolbar)  Comment Flags These flags do not show who flags an item.  It shows the # of flags a comment has, its up-vote score, the question thread, comment, author, and built-in links to clear flags and delete comment. (Personally, I never delete a comment without visiting the thread to review all comments)  Spam/Offensive I won't bother describing this in detail since most of you have 10K rep on some site, but the only difference for a mod is we can clear the flags on an item.  Now, on Meta, we get a lot of flags on comments that make absolutely no sense to me.  It's obvious there's nothing offensive about the comment.  Usually the comment is disagreeing with someone.  My assumption (which I never act on because it's unverified) is that whoever is being disagreed with is flagging the comment.  Frankly, I consider this to be abusing the system and even-moreso bloody annoying.  Having to sort through a bunch of comment threads to see if something is worse than it appears in the actual comment takes time.  If someone continually flagged items with write-ins on obviously-fine items, I would tell them to stop.    My question is - should Moderators be able to see who flags comments?  I can understand you may be concerned that, by knowing who is flagging the item, we would take sides with or against that person.  I don't have a magic potion that would prevent that, just my track record and honesty.  As Bill said:     I think we're all mature enough to not   try and get retribution against   someone for flagging it. We were all   chosen as moderators (many of us by   community vote) at least in part for   this reason.   I think with the ability, we'd be able to sort out troublemakers quickly/more efficiently, and (hopefully) show users that we expect them to be more mature and not go flagging everyone who disagrees with them.  I expect it would also reduce the time it takes to wade through comment threads by seeing if it's just A & B butting heads again.    This is just my take on it, from Meta.  I'm curious to see what the SO mods think.    A recent reason for showing mods who flagged a comment:

There are three types of flags moderators get to deal with--standard flags (low quality, other), spam/offensive flags, and comment flags.  Within the moderator dashboard, we can see who has submitted a standard flag.  However, we do not see who has submitted an offensive/spam flag nor a comment flag.  Is there a reason for this?  If not, I'd like to be able to see the name of the user who has submitted a flag, no matter what type.    For those scoffers who scoffed at me:    Now, how should I handle this situation?  I could guess at who did this, but it would only be a guess.  Scoffers suck.


Yesterday, I asked a question about how separation of layers should be demonstrated to me as a customer of software development. The question was promptly closed as off-topic, to some surprise for me. I still find the question relevant (also for programmers among which I still consider myself) -- even though the question was asked as a client to you as programmers? Being a big Stack Overflow fan, I hope to be able to get input for my new role in the development process here.   Should I go to another Stack Exchange site? Or just cut my ties and realize that I'm with the enemy now? Thinking of the whole agile movement, I assumed that the nature of the interaction between programmers and clients would be relevant to discuss here. Thus I humbly asked how a programmer would go about documenting a specific aspect of an application (in this case layer separation).   Please advise me how to still be able to get input from programmers, without being cut off for being off-topic.

There seems to be more than a few computer science/programming Stack Exchange networks (is that the correct term?). Stack Overflow, being the first, has by far the most users, questions, and answers.  What is the reasoning for creating the others, and are there clear guidelines for which kinds of questions should be posted? I can see a large amount of potential overflow, many cases of people not getting a good answer to their question, because the person who has the answer isn't browsing that particular network at the moment.  I understand that they were probably created for organizational purposes, but wouldn't it almost make more sense to just have them as categories under Stack Overflow, keep them separated but still connected, instead of making people have to create multiple 'account's, one for each network?  I am sure there was a very good reason to break them up, but as someone that is new to SE, it can be somewhat intimidating to decide which one to post in to ensure you get a good answer. For example, if I am a computer science student, my first instinct might to be to post in the computer science network, until I see that it literally has 1% of the users as the Stack Overflow network, which still seems to be for programming/computer science related questions.  So my second instinct would then to be to post it into the Stack Overflow site on the basis that I have a significantly higher chance of my question being seen and getting a good answer. Then I notice that there is also a 'programmers' network, and I don't even begin to know where that fits in. I, and I am assuming most people, will probably just post on Stack Overflow to be safe.  My question is, other than the short little description blurb of each one, is there a clear cut set of guidelines which what each network is intended for, what kinds of questions should go to each one, and is anything being done to encourage people to post in these newer, smaller (more specialized?) networks as opposed to just posting in big daddy Stack Overflow?  Now again, this is for computer science/programming/"why isn't this code doing what I want?" related questions, I am not saying that if I had a question about Linux or WordPress or something I would have the same confusion.


In this post: , OP is referring to a "famous example" of a sequence $a_n \geq 0$ whose Cesaro means $\frac{1}{N} \sum_1^{N} a_n$ converge to zero while the sequence itself does not. What "famous example" is OP referring to?

I'd like construct a non-negative sequence $\{a_{k}\}_{k=0}^{\infty}$ with $a_{0}=0$ such that the Cesaro sum $\frac{1}{n}\sum_{k=0}^{n-1}a_{k}\longrightarrow 0$ but $a_{n}$ does not converge to $0$.   I have a really bad attempt:  Define $a_{0}=a_{1}=0$, and $a_{k}:=\log(\log(k))$ for $k\geq 2$, then $a_{k}\longrightarrow\infty$. But $$\dfrac{1}{n}\sum_{k=0}^{n-1}a_{k}=\dfrac{\log\Big(\prod_{k=2}^{n-1}\log(k)\Big)}{n}$$ and Wolframalpha told me that this series converges to $0$ as $n\longrightarrow\infty$.  However, I have no idea about how to show this convergence to $0$. Also, I wish to have a sequence as simple as possible, since at some stage I need too how $f(k):=a_{k}$ is positive semi-definite.   Is there any simpler example?   Thank you!


I've heard this word a lot of times, but still don't know how to write it down. It's used when you want to show some kind of disgust, or something like that. It sounds like "ish" or "eesh".  I've heard it used like so:     Ish, calm down, will you?   Or:     –  I've heard they're re-writing that book.   –  Ish, I've always hated it.

Are there any English onomatopoeias for disgust / loathe? What exclamations are commonly used to express repulsion?  Something that could be used like:     (___) dog shit. I loathe it! (some sound here)   … to increase the expressiveness of the sentence?


I have been happily using the Gnome desktop environment to complete my day-to-day computing. Recently, I learned that Gnome 3.10 was released. I tried to update using the ppa: gnome3-team/gnome3. However, apt-get update is unable to find that ppa. I also discovered that I am actually using Gnome 3.4.1, not 3.8.x. How can I upgrade?\  Notes: I installed using sudo apt-get install gnome and am using Ubuntu 12.04.  Any help is greatly appreciated. Thanks for your time.

I followed the instructions for compiling GNOME Shell and it did compile with a few errors here and there but it didn't run. I installed GNOME Shell using sudo apt-get install gnome-shell but I got version 2.31.x, while the latest is 2.91.5 or something. So is there a way for me to install the latest build?   Is there some repository available for the latest build?


The essence of the problem is, given a class hierarchy like this:  class A {     protected void MethodToExpose()     {}      protected void MethodToHide(object param)     {} }  class B : A {     new private void MethodToHide(object param)     {}      protected void NewMethodInB()     {} }  class C : B {     public void DoSomething()     {         base.MethodToHide("the parameter"); // This still calls A.MethodToHide()         base.MethodToExpose(); // This calls A.MethodToExpose(), but that's ok         base.NewMethodInB();     } }   How can I prevent any classes that inherit from class "B" from seeing the method A.MethodToHide()?  In C++, this was easy enough by using a declaration such as class B : private A, but this syntax is not valid in C#.  For those interested (or wondering what I'm really trying to do), what we're trying to do is create a wrapper for for Rhino.Commons.NHRepository that hides the methods we don't want to expose to our group of developers, so we can have a cookie-cutter way of developing our app that new developers can easily follow.  So yes, I believe the "Is-A" test is valid for the whole chain (WidgetRepository Is-A BaseRepository Is-A NHRepository).  Edit:  I should have mentioned, for the sake of argument, that class A is an API class outside of our control.  Otherwise the problem gets considerably easier.

Suppose I have BaseClass with public methods A and B, and I create DerivedClass through inheritance.  e.g.  public DerivedClass : BaseClass {}   Now I want to develop a method C in DerivedClass that uses A and B.  Is there a way I can override methods A and B to be private in DerivedClass so that only method C is exposed to someone who wants to use my DerivedClass?


I've created the following entry (in Jabref):  @ARTICLE{Key,   author = {Pico Della Mirandola},   title = {Title of Paper},   journal = {Working Paper, Institute},   year = {2013},   owner = {User},   timestamp = {2013.08.05} }   That shows the following, however Mirandola, Pico Della, 2013, Title of Paper, Working Paper, Institute., which is no good as the surname has been broken up. After reading , I changed the Jabref entry to having a lowercase della which keep the surname together: della Mirandola, Pico, 2013, Title of Paper, Working Paper, Institute., but I'm just using this name as an example: the capitalisation in my document. I need it to show Della Mirandola, Pico, 2013, Title of Paper, Working Paper, Institute.  I'm sure sure if this approach is using bibtex, biblatex or natbib or whatever, but I have to use a .bst file to format my bibliography as I need to follow a specified format, so I want to continue creating the .bbl file automatically in TexnicCenter like this:   \bibliographystyle{elsart-harv} \bibliography{C:/jabrefBib}   and just citing the references in the document as usual (\cite{Key}). How can I implement a workaround for this to get the surname right?

In my .bib file, I have this entry:  @conference{HCS96,   title={The Virtual Cinematographer: A Paradigm for Automatic Real-time Camera Control and Directing},   author={Li-wei He and Michael F. Cohen and Davih H. Salesin},   booktitle={Proceedings of the 23rd Annual Conference on Computer Graphics and Interactive Techniques},   pages={217--224},   isbn={0897917464},   year={1996},   organization={ACM} }   When I compile my thesis, I get this entry in the bibliography:  [wei He et al., 1996] wei He, L., Cohen, M. F., and Salesin, D. H. (1996). The virtual cinematographer: A paradigm for automatic real-time camera control and directing. In Proceedings of the 23rd Annual Conference on Computer Graphics and Interactive Techniques, pages 217–224. ACM.   Why is the name of the first author produced this way?! It should rather be "He et al., 1996". Does anybody know how to fix this problem?


Is there a command \inserttotalslidenumber, similar to, for example, \inserttotalframenumber?  I would like to be able to write something like this:  \begin{frame}   \frametitle{The title (\insertslidenumber/\inserttotalslidenumber)}    %    \only<+->{Some content.}    \only<+->{Some more content.} \end{frame}   To generate "The title (1/2)" and "The title (2/2)" on the respective slides.  Edit:  There is currently no out-of-the-box command for this. See samcarter's response below for a way to make the calculation.

I would like to change the numbering of allowframbreaks frame, for instance, from I II III to (1/3) (2/3) (3/3)， but fail to find out a command to get the total continuation count. Here is the MWE.  \documentclass[compress]{beamer} \usetheme{Warsaw}   %allowframebreaks numbering in the title \setbeamertemplate{frametitle continuation}{(\insertcontinuationcount/)} %\setbeamertemplate{frametitle continuation}{(\insertcontinuationcount/\inserttotalcontinuationcount)}  \title{title} \author{author}  %%%%% \begin{document}  \begin{frame}[allowframebreaks]{allowframebreaks title} frame 1 \framebreak  frame 2 \framebreak  frame 3 \framebreak \end{frame}  \end{document}


If $X \sim \mathcal{N}(\mu,\sigma^2)$ where $\mu > 0$ and $\sigma > 2$, how do I find the PDF of $X^2$, and will it correspond to non-central Chi-square distribution?

I need to find the distribution of the random variable  $$Y=\sum_{i=1}^{n}(X_i)^2$$ where $X_i\sim{\cal{N}}(\mu_i,\sigma^2_i)$ and all $X_i$s are independent. I know that it is possible to first find the product of all moment generating functions for $X_i$s, and then transform back to obtain $Y$'s distribution. However, I wonder whether there is a general form for $Y$ like the Gaussian case: we know the sum of independent Gaussian is still a Gaussian, and thus we only need to know the summed mean and summed variance.   How about all $\sigma^2_i=\sigma^2$? Will this condition make a general solution?


Iam a bit unsure if the distribution of the canonical statistic below is correct ? I suspect i would need idenpendent variables to show the correct answer.  Let $Y_1,Y_2,...Y_n$ be a sample form a distribution on the unit interval. With density given by   $$f(y:\alpha) = \alpha y^{\alpha -1}$$  Show that $T = ln (\prod_{i=1}^{i=n} Y_i)$ belongs to the exponential family.  $$P(T \leq t ) = P(ln (\prod_{i=1}^{i=n} Y_i) \leq ln (\prod_{i=1}^{i=n} y_i)) =  P(\prod Y_i \leq  \prod y_i)   $$  Attempt:  The distribution $\prod Y_i $ has distribution function $F(\boldsymbol{y}) = (\prod y_i)^{\alpha}$  -assuming $\{Y_i\}$ are independent I dont know how to do it otherwise...?  and its derivative is $\alpha(\prod y_i)^{\alpha-1}$ which therefore is the density of T.  Therefore the its density can be written as;  $$f(\boldsymbol{y}:\alpha) = \alpha e^{(\alpha-1)ln(\prod y_i)}$$  which proves that T is in the exponential family

Suppose we have i.i.d. $n$ observations $(X_1,X_2,...X_n)$ from a   population with density $$f_\theta(x)=\begin{cases}\theta x^{\theta-1}&\text{ if }0\leq x\leq 1\\0&\text{otherwise.}\end{cases}$$ Note that $\theta>0$. If $T_n$ denotes the   maximum likelihood estimator of $\theta$ given that $n$ is the sample   size, then show that $$\text{var}(T_n)\stackrel{n\to\infty}{\longrightarrow} 0$$   This is the problem I am trying to solve: I computed $$T_n=\dfrac{-n}{\sum_{i=1}^{n}\ln(X_i)}$$ But I am stuck in finding $\text{var}(T_n)$ and showing that $\text{var}(T_n)\to0$ as $n\to\infty$.


I'm making a console app using .NET and when I ran the program I got this error. error CS0120: An object reference is required for the non-static field, method, or property Encoding.GetBytes(string). It says the error came from this line: content.Add(Encoding.GetBytes("\n"+str)); (content is a List of type string and str is a string)

Consider:  namespace WindowsApplication1 {     public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();         }          private void button1_Click(object sender, EventArgs e)         {             //int[] val = { 0, 0};             int val;             if (textBox1.Text == "")             {                 MessageBox.Show("Input any no");             }             else             {                 val = Convert.ToInt32(textBox1.Text);                 Thread ot1 = new Thread(new ParameterizedThreadStart(SumData));                 ot1.Start(val);             }         }          private static void ReadData(object state)         {             System.Windows.Forms.Application.Run();         }          void setTextboxText(int result)         {             if (this.InvokeRequired)             {                 this.Invoke(new IntDelegate(SetTextboxTextSafe), new object[] { result });             }             else             {                 SetTextboxTextSafe(result);             }         }          void SetTextboxTextSafe(int result)         {             label1.Text = result.ToString();         }          private static void SumData(object state)         {             int result;             //int[] icount = (int[])state;             int icount = (int)state;              for (int i = icount; i > 0; i--)             {                 result += i;                 System.Threading.Thread.Sleep(1000);             }             setTextboxText(result);         }          delegate void IntDelegate(int result);          private void button2_Click(object sender, EventArgs e)         {             Application.Exit();         }     } }   Why is this error occurring?     An object reference is required for the nonstatic field, method, or property 'WindowsApplication1.Form1.setTextboxText(int)


I have a PHP script running which is taking hours, and I have to close my computer. I ran the script using php script.php.  Is there any way I can close this script while keeping it running? (It's running on a server)  I am connected to the remote DigitalOcean server via SSH on my Mac.  Note: What I'm trying to achieve is not killing the process, but continuing the process. I know I should have used screen or nohup, and that's my bad I didn't do it before.  Is the only solution not terminating the session by not closing my computer?  Ps.: Not a duplicate of the other question that someone link to. You can see that the correct answer to my question is different than the correct answer of the other question as well. Problem here is keeping a script that's running under my user running even though exiting the session.

Sometimes I want to start a process and forget about it. If I start it from the command line, like this:  redshift   I can't close the terminal, or it will kill the process. Can I run a command in such a way that I can close the terminal without killing the process?


My friend is going to get Call of Duty: Black Ops 3 but the problem is that he has a Xbox 360 and I have a Xbox One. Could we still play together on the game in multiplayer?

Is it possible to play against and with Xbox 360 players through my Xbox One?


I was reading the lyrics of the song "Selling Rope" by "Los Campesinos" and there's a part that says:     Anecdote, lie    My own alibi    I've been telling jokes    Piled notes high   My own alibi   I've been selling rope   also     Oh I was a bird right then, one day I will be again   I've been telling jokes while selling rope to you   so what does it mean? I made a google search and it is not an idiom or anything like that, is it a british slang or something?

I was listening to John Lennon's song "Gimme Some Truth" just now, and in it there's a recurring line:     ". . . money for rope."    I never thought about it much before, but it strikes me this has to be some kind of aphorism or at least a familiar idiom somewhere. Does anyone know what it means and where it comes from? I've found some things on the Web that say it refers to the rope trade, and driving a bad bargain, etc., but none of these seem entirely convincing. Or at least they left me feeling unsatisfied.  Does anyone have a clear line on this one?


Please refer to the following code:          Scanner scan = new Scanner(System.in);     int T = Integer.parseInt(scan.nextLine());     StringBuilder []str = new StringBuilder[T];     String temp = new String();     for (int i=0; i < T; i++){         temp = scan.nextLine();         str[i].append(temp);     }     System.out.println(str);   The above code throws a Null Pointer Exception on the line:  str[i].append(temp);   I want to do it with StringBuilder.

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I'm re-developing an open-source program developed with MySql and re-writing an method like:  function lastid(){     return mysql_insert_id($conn); }   How can i perform this function using postgresql instead?

is there an alternative for mysql_insert_id() php function for PostgreSQL? Most of the frameworks are solving the problem partially by finding the current value of the sequence used in the ID. However, there are times that the primary key is not a serial column....


I have a sensor that gets the request and gives me its value the request should be hex format in c# as you can see in the picture :    My request that i enter in the textbox is like this :"000100020005030190000212BD"  but as you can see the hex checkbox is checked and it converts my request to hex how can i do that ? Here is my code that send the request "   var listener = new TcpListener(IPAddress.Any, 3000); listener.Start();  using (var client = listener.AcceptTcpClient()) using (var stream = client.GetStream()) {      // build a request to send to sensor     var request = new byte[2048];      stream.Write(request, 0, request.Length);     // read a response from sensor;     // note, that respose colud be broken into several parts;     // you should determine, when reading is complete, according to the protocol for the sensor     while (true)     {                             // stream.Read calls here     } }   datasheet :

How can you convert a byte array to a hexadecimal string, and vice versa?


So I'm trying to gpg -c a file, but it's deep in the nooks and crannies of my Documents folder. As per usual, you would have to cd into said folder that the file is in.  ...that's not working here, as you told by now. For some reason, I can't get into a subdirectory of my Documents folder, amptly named, since I used to save everything over to Documents on Windows before I switched, "Pictures n shit". Upon attempting to use cd "~/Documents/Pictures n shit/", the bash returns bash: cd: ~/Documents/Pictures n shit/: No such file or directory, which I know for a fact is wrong.  I tried looking it up here and elsewhere and found nothing. Is there a particular reason this is happening, or do I just have to move the file I want gpg to encrypt into a different folder for now?

Writing my first script so I'm sure this is a basic question, but can someone please explain to me why I can:  cd ~ cd bin cd ~/bin cd 'bin'   But not  cd '~' cd '~/bin'   I need to cd to a directory path with a space in one of the directory names, so I need the quotes (it's Windows Program Files under wine). I can get around it with two cd commands, but why can't I put ~ in quotes?  If I type cd '~' (or cd "~") I get:  bash: cd: ~: No such file or directory


As the title says, I'm developing a small project and is encountering some issues. Tried SQL injection directly on the search box but it doesn't seems to work. I believe my code is not that sanitize though. Any inputs would be appreciated. This is part of my form page;           <form method="post" action="tablepaging1.php">
               <input type="text" class="form-control bg-light border-0 small" name="word" placeholder="Search for..." aria-label="word" aria-describedby="basic-addon2">               <input type="submit" value="Search" name="submit" class="login-button"/>
           </form>  This is the processing portion (tablepaging1.php) <?php require('config.php'); $word = $_POST['word'];               $min_length = 3;           if(strlen($word) >= $min_length){ // if query length is more or equal minimum length then                  $raw_results = "SELECT * FROM services             WHERE `co_name` LIKE '%".$word."%' OR `co_phone` LIKE '%".$word."%'";                 $getSearch_res = mysqli_query($link, $raw_results) or die('v3n0ms1x6SiX');                  if(mysqli_num_rows($getSearch_res) > 0){ // if one or more rows are returned do following                          while($results = mysqli_fetch_array($getSearch_res)){                  echo "

".$results['co_name']."
".$results['co_phone']."
";             }                      }         else{             echo "No results";         }              }     else{         echo "Minimum length is ".$min_length;     }             ?>

Just looking at:   (Source: )  What does this SQL do:  Robert'); DROP TABLE STUDENTS; --   I know both ' and -- are for comments, but doesn't the word DROP get commented as well since it is part of the same line?


When I'm on the Login page in production, I've the cookies blocked error. Screencapture:

I have a WordPress website that I recently discovered had this error on the login page:     ERROR: Cookies are blocked due to unexpected output. For help, please   see this documentation or try the support forums.   I can only access the login page from wp-login.php, since /wp-admin/ displays a blank white page.  I've searched the web and tried many things with no success:   Removing ?> and space at end of the functions.php Ensuring both functions.php and wp-config.php had no spaces at beginning or end of file Opening wp-config.php and functions.php in Notepad++ and converting to UTF-8 (people recommend 'without BOM' but that is only an option in the newest version of Notepad++ - I'm guessing UTF-8 does that now) I've set WP_DEBUG to true and have received no errors in debug.log,  except for 2 that relate to when I hadn't fully uploaded some files. That particular error mentioned nav-menu.php; this confirmed that it is reporting errors, just not related to my login issues I renamed each plugin folder with _tmp at the end to try and rule out any plugins causing the problem I also renamed the plugins folder to rule out all plugins at the same time   Given these things I've tried, and that I'm not receiving any PHP errors, what else could I try?


I administer a community website — currently on dotnetnuke, which can't change right now — and I'd really like to replace my forums with something like Stack Overflow, but it has to be on my site. My users need to be able to interact with each other, and also have integrated access to the site blogs, downloads, documentation, code (open source) and bug tracker. So I have two questions:  Since Stack Overflow no longer offers commercial hosting, would they stop me from legally creating/deploying a clone?  Do such clones exist already either as a DNN module, or asp.net (mvc?) website that I can add to my site?

SO is not Open-Source, but I like the whole idea of Stack Overflow :   Giving bounties for Questions Up/Downvoting Questions The Badges The intelligent use of Ajax-Technologies Highly Rated users have administrative powers Reputation system Editing posts like a wiki   So I would like to program a (what is it called) Q&A site / board / wiki system. Am I allowed to?


Wait! Please do not mark this as a duplicate until you have read this entire question. I know full well there is supposed to be a highly upvoted solution  but it is problematic because there have been many important changes to windows since the question was first answered. Some of these changes completely invalidate aspects of the solution (for example see ramhound's first comment in this question ). Also there are now 27 comments below the top answer so any additional comments are unlikely to be read.  So now my question: I wish to prevent windows from rebooting after doing an update because sometimes I want to leave my PC performing a task unattended for up to a week at a time. Can it be done?  SOLUTION FOUND: :     A simple Windows-Service that will update this "active hours" timeslot   in the background.   It is free, simple and it works.  March 2019: Still no unwanted reboots.  March 24th 2019: Windows 10 reboot blocker has now been marked as the correct answer in the duplicate question.

Windows 10 lets you 'schedule' a reboot for later. I want to disable it.  Evidently Windows scheduled itself for a reboot last night when I wasn't looking and just closed everything I had been working on the night before.  I reboot on the regular; I don't need Windows to do that for me.  Can I disable it completely? I don't mind if it downloads everything, and then says "hey, you should reboot," but it should never reboot itself, ever.  I'm using the "Pro" edition of Windows 10.


I am an Indian national living and working in Wroclaw, Poland. I hold an Indian Passport valid upto June, 2024. I have a Polish residence permit i.e. Polish Blue card(Karta Pobytu) valid upto 2023 and a valid work permit till February, 2022. I plan to do the Tour Du Mont Blanc hike (Switzerland, France and Italy) in August, 2021 and my port of entry is Geneve, Switzerland. Will I need to apply for a Swiss Visa in order to enter Switzerland?

I have requested for a French long term (Type D) student visa from a consulate in India. It's a national Type D visa and not a Schengen visa. My question is that can we still go to other Schengen countries on this visa? If not then can we get a Schengen visa from a consulate in France?


How should one interpret the recurring appearance of giant spiders in the  2013 film , starring Jake Gyllenhaal? What is the meaning of the last scene?

There are a lot of weird visions about spiders in  and I was wondering if that signified something about the character?


I am writing my CV in LaTeX. I am using biblatex and want my name (and only my name) to be bold for every reference. Is there a magic way to do this?  A similar question  was asked, but that answer used BibTeX. While I use the BibTeX backend, I use biblatex.  Any suggestions?

For several documents I'm preparing, I need to highlight (or underline) occurences of my name within the bibliography.   Is there an easy way of doing this?


This code returns: 0.04999999999999999  var number = parseFloat(0.15); console.log(number % 0.05);   Why?  Here is a plunk:

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


I am trying to run the following command in my system after navigating to the directory cd /etc/apt   Clean update: cd /etc/apt #out put stella@stella-box:/etc/apt$  sudo mv sources.list sources.list.ok   #output mv: cannot stat ‘sources.list’: No such file or directory  #Recreate sources.list and add these 4 lines to it. deb mirror://mirrors.ubuntu.com/mirrors.txt xenial main restricted  universe multiverse  deb mirror://mirrors.ubuntu.com/mirrors.txt xenial-updates main  restricted universe multiverse  deb mirror://mirrors.ubuntu.com/mirrors.txt xenial-backports main  restricted universe multiverse  deb mirror://mirrors.ubuntu.com/mirrors.txt xenial-security main  restricted universe multiverse    sudo apt-get clean  sudo apt-get update sudo apt install python3-pip sudo apt-get install cmake     I enter the next line it returns " mv: cannot stat ‘sources.list’: No such file or directory" please guys how do I fixed this error?

I have Ubuntu 12.04 LTS. I need the correct output because I edited it because it wasn't working but it has only made it worse.


I have an external Western Digital Hard drive with two HFS partitions with journaling disabled.  When I connect it to a computer running Linux (Debian or Ubuntu), frequently both partitions are mounted read-only. In the past, mounting them on my Macbook and executing the command to disable the journaling often worked (even though it would tell me that journaling was already disabled) but I would love to have a solution which works every time.  Thanks!  Edit: In light of Chris Johnsen's comment below - my question is how to mount the filesystem read+write on Linux since it is not automatically doing so itself

I plugged in my external harddrive (which was formatted on my Mac into HFS+ journaled) to my Ubuntu desktop 9.04 64bit.  I am not able to get the drive to mount with write capability, how do I do that?  Right now all I'm getting is read access, I tried  sudo mount -t hfsplus /dev/sdf2 /media/"Portable HD"   but that still gave me only read access...  ideas??


I just recently discovered what terminal was. I started using it today and every time I try a command (like shh) it says that the command was not found. I was instructed to type in echo $PATH and this is what I got   /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin   How can I fix this? I know mostly nothing about terminal or how to use it.

I'm really new to Mac OSX and UNIX based systems. I wanted to run a few Windows games on my Mac Mini so I started installing Wine and MacPorts. I think the installs are correct, but when I type sudo port install wine I see a not found error in my terminal. I tried other basic commands like say and clear and all of them return the same not found error. My research shows that my PATH might be incorrectly set, but it lacks steps I can implement. Specifically, I ran this command: echo $PATH and it returned:  /opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin  I'm a complete newbie to mac and have no idea where .bash_profile or any of those files are. My skills let me install Xcode and the Command Line tools for Xcode and I sense I need to level up on path management. At this point I need help managing my dot files and changing my path to fix these specific errors on Mountain Lion. What are my next steps?


I have a really big problem. I deleted Ubuntu partitions from Windows 8 and now on startup of my other pc (im using my old one now to contact you) it shows this error:  Unknown filesystem: grub rescue>  tried some commands from other threads but it shows me again the same error. I think that Ubuntu has been completely uninstalled, but this grub rescue pops me out.  I cannot boot in my pc anywhere! either in Windows. The only thing i can do is write commands in grub rescue, or enter BIOS Windows Menu... :(

I have absolutely no experience with Linux, and I desperately need to get my computer back up and running again with Windows.  How do I remove Ubuntu and reinstall Windows?    Editor's note: many of the answers are about removing Ubuntu from dual-boot but keeping Windows (which is a bit complicated), while other answers are about removing Ubuntu from single-boot (which is easy: basically just format the disk while installing Windows). The question as written is ambiguous between dual-boot or single-boot.


I had bought a new laptop(Windows 10) and set it up by making a new microsoft account. However, I forgot the password to the account. Thus, I went to settings and logged in using local account. Then I made a new microsoft account, logged in and set it up as the admin. I had then deleted the original (The first account I set up after buying the laptop) from the laptop and from services like outlook, MS office etc. However, I faced a new difficulty. I couldn't sync my settings in the control panel (Which is referred as "settings" In win 10). It showed up, "couldn't sync. Ask your administrator". What should I do now? Do I have to somehow log into the original account and set it up? Or is there any other way?

I accidentally disabled my admin account.  After I login to another account I found I can not get admin rights, because all admin accounts on my computer are disabled.  I clicked on 'run as administrator' but only see a smart card choice (all the admin accounts are disabled so no choice provided)    I don't want to re-install my OS, help!    Details:  I have account A on my computer.    I got a new computer so I want to give the old one to my mother.    Creating a new user account B for her and disable account A.    Logout and restart.    Successfully login B, now I found I could not get admin rights because no account choice is provided.    More informations about my machine:  OS is Windows 10 and my admin account is a Microsoft Account.  I have an arch-linux installed on my computer and dual-boot it using GRUB, so maybe I can not use safe mode.


I am trying to create a small programming language for fun and, I am using classes and objects, i implemented the code for overloading << operator as follows namespace CELL{     class INT : public DataType{         private:         protected:         public:             INT(){                 data = new int;                 data = 0;                 type = "int";             }                      ~INT(){}              bool isNAN(){                 if (data == NULL){                     return true;                 }                 return false;             }              std::ostream& operator<<(std::ostream& stream, const INT& self){                 stream << (int) self.data;                 return stream;             }     }; };  i tried with and without the second argument but the code says there is an error like this without second argument src/Cell.cpp:8:12: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘CELL::INT’) 8 |  std::cout << integer << std::endl;   |  ~~~~~~~~~ ^~~~~~~~~   |       |       |   |       |       CELL::INT   |       std::ostream {aka std::basic_ostream<char>}  and like this when the second argument is added src/../lib/CellInt.h:31:18: error: ‘std::ostream& CELL::INT::operator<<(std::ostream&, const CELL::INT&)’ must have exactly one argument    31 |    std::ostream& operator<<(std::ostream& stream, const INT& self){       |                  ^~~~~~~~  this is link for my full code, this code  is in "lib/CellInit.h" file

I am writing a small matrix library in C++ for matrix operations. However my compiler complains, where before it did not. This code was left on a shelf for 6 months and in between I upgraded my computer from debian etch to lenny (g++ (Debian 4.3.2-1.1) 4.3.2 ) however I have the same problem on a Ubuntu system with the same g++.  Here is the relevant part of my matrix class:  namespace Math {     class Matrix     {     public:          [...]          friend std::ostream& operator<< (std::ostream& stream, const Matrix& matrix);     } }   And the "implementation":  using namespace Math;  std::ostream& Matrix::operator <<(std::ostream& stream, const Matrix& matrix) {      [...]  }   This is the error given by the compiler:     matrix.cpp:459: error: 'std::ostream&   Math::Matrix::operator<<(std::ostream&,   const Math::Matrix&)' must take   exactly one argument   I'm a bit confused by this error, but then again my C++ has gotten a bit rusty after doing lots of Java those 6 months. :-)


I definied a new theorem via  \newtheorem{def}{definition}   But the text has a italic font and i do not want that. how can i deactivate the italic font?

What package should I use, or what setting can I make to the font in theorems so that the text wouldn't be italic. I use amsmath, and from default, everything I write in theorem environments becomes italic and I don't want that. Thank you


I am running a Monte Carlo simulation where I sample from Normal Distributions associated with parameters E11, E22, and GIC to get the plot in red which can be seen in the figure below. The figure below also shows the Normal Distributions for the cases where only E11 has uncertainty, whilst the other parameters are kept constant and likewise for E22 and so on. I am basically trying to understand the effects of each of these parameters on the uncertainty in the red curve. From the graph below all I can tell is that E11 and GIC have enough of a standard deviation to be influencing the red curve. I was wondering if there is any other information I could obtain from this graph and the data given below?  Is this a sensible way of assessing the relative effects of each parameter on the 'overall solution' as depicted by the red curve? Should I be considering other ways to determine this?  Edit:   Data E_11    $\mu$ =0.004332, $\sigma$ = $2.1374×10^{-4}$  E_22    $\mu$ =0.004314, $\sigma$ =$2.6348×10^{-5}$  G_1C    $\mu$ =0.005005,  $\sigma$ = $7.0475×10^{-4}$  Uncertainty in every parameter $\mu$=0.004265 , $\sigma$= $6.6933×10^{-4}$

I was wondering what is the best way to determine the effect of each random parameter on the result obtained from a Monte Carlo Simulation.  I realise I have asked a similar question , but this time I am making this question in a more general manner as I didn't get any answers previously.   Background: I'm essentially running a Monte Carlo Simulation where I sample randomly from 65 Normal Distributions and 2 Uniform Distributions. Then, i then input these values to a linear equation and run this for 500.000 iterations. I just wanted to determine the best way to establish the relative effect of each of these 67 (in total) random variables on the final outcome from my Monte Carlo Simulation.


Is there a viable Demon Hunter build with melee weapons that I can still use in Inferno? I need a new challenge for my third character :)

Following the way of similar questions for the  and the , I'd like to ask the same for the Demon Hunter.  I know that there's an , but its focus was Nightmare difficulty and none of the answers addressed Inferno.  For a Demon Hunter, high DPS should come natural through a correct itemization. At the moment (I'm still in Nightmare), I'm focusing on damage-increasing skills, since a high-dps grants me an easy dispatch of my enemies, without having to worry of being touched. Is this the main focus even at higher difficulties? Or should I switch to health restoring abilities (as  with , or  with , or ), to balance the higher lethality of the monsters? I'm mainly interested in solo play.  Example builds, with explanation of the choices, would be greatly appreciated.


Everything working fine i got this error at the end please give solution. I have tried each and every solution, I don't know what to do.. please give the exact solution trying from past 2 days but i can't solve the problem..  Thanks in advance  public double calculatedDistance(DataSnapshot dataSnapshot ) {           HashMap<String, Object> values = (HashMap<String, Object>) dataSnapshot.getValue();          double lati = Double.parseDouble(values.get("latitude").toString());         double longi = Double.parseDouble(values.get("longitude").toString());          double xSquare = Math.pow(lat-lati, 2);         double ySquare = Math.pow(lng-longi, 2);         double distance = Math.sqrt(xSquare + ySquare);          //double dist = distance;          textViewdistance.setText(String.valueOf(""+distance+""+"km"));         return distance;      }   Error in Logcat  E/AndroidRuntime: FATAL EXCEPTION: main     Process: com.example.ambulance, PID: 17399     java.lang.NullPointerException: Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object reference         at com.example.ambulance.MapsActivity.calculatedDistance(MapsActivity.java:451)         at com.example.ambulance.MapsActivity$2$1.onChildAdded(MapsActivity.java:178)         at com.google.firebase.database.core.ChildEventRegistration.fireEvent(com.google.firebase:firebase-database@@19.2.0:79)         at com.google.firebase.database.core.view.DataEvent.fire(com.google.firebase:firebase-database@@19.2.0:63)         at com.google.firebase.database.core.view.EventRaiser$1.run(com.google.firebase:firebase-database@@19.2.0:55)         at android.os.Handler.handleCallback(Handler.java:907)         at android.os.Handler.dispatchMessage(Handler.java:105)         at android.os.Looper.loop(Looper.java:216)         at android.app.ActivityThread.main(ActivityThread.java:7625)         at java.lang.reflect.Method.invoke(Native Method)         at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


From population choosing samples(size n=30) and calculate its mean then repeating it N times will converge to normal distribution as N->inf when mean of each sample is plotted as a histogram. From my understanding as size of n increase normal distribution will have smaller standard deviation, this makes sense because using larger sample size will be better at estimating population mean than smaller sample. is my understanding correct? edit: for clarification I am referring to n,N as follows:  n = number of data in a sample N = number of time sample(of size n) is sampled

I have read/heard many times that the sample size of at least 30 units is considered as "large sample" (normality assumptions of means usually approximately holds due to the CLT, ...).  Therefore, in my experiments, I usually generate samples of 30 units. Can you please give me some reference which should be cited when using sample size 30?


Can anyone let me know if they have experience of someone who has applied for a UK Standard Visitor visa and had EVERYTHING in their application except flight bookings? Refused or accepted - anything at all.   My boyfriend has just applied for a UK Standard Visitor visa for a two week period and has proved ties in his country, proof of employment and holiday time, proof of theatre and excursion ticket bookings in the UK, train journey tickets in the UK, proof of address, his bank statements, proof of accommodation, two letters of invitation etc; just not booked flights.   So has anyone applied like this and been accepted or refused or do you know someone who has?  I'm asking to plan for if the application is refused based on flights not being booked.  Addendum: Thank you for the response - the question is does anyone have experience of a visa application being made without any flight information and if the application was refused on basis of lack of flight information or they had everything else and it was accepted. The question is not how do I book a flight without paying for the purpose of application or what do I need to put in the application, apologies if that was unclear.  As I said, the application has already been made and I am asking to make a contingency plan if necessary and considering most realistic outcomes by trying to find out if anyone has had a similar experience.

I am in the process of filling the forms for my wife and daughter (Chinese) to travel with me (British) to the UK for a short holiday. On the government advice located at  it says:     Accommodation and travel details      You may wish to submit  the following documents to help show us your   accommodation and travel arrangements in the UK and on which date you   intend to leave the UK. We advise that you do not make any payments   for accommodation,  travel and so on until you have received your   visa.          Details of accommodation and return   travel bookings         This could be:         hotel booking confirmation (usually email) travel booking   confirmation (can be email or copy of tickets) travel agent   confirmation of both accommodation details with a supporting letter    from the occupant confirming  that you are able to stay there      But how do you have tickets for a flight if you haven't made payments. All airlines I've seen require you to pay in full before they issue any tickets.  What is the best way to satisfy this requirement?


I have installed Adobe Reader, but I am not able to use features like highlighting, inserting comments, etc. in the current Adobe Reader while using in it Linux. How to use features like inserting comments and highlighting in Linux like I had in Windows and Adobe Reader?

Currently I need to highlight certain sections in PDFs, or add annotations (comments/notes). These modifications would need to be saved.   What tools are out there to do this on Ubuntu?


I'm still working through Mac Lane and Birkhoff and I have another question. The question is: In a group $G$, show that $$ (g_1 g_2)^m = g_1^m g_2^m $$ for all integers $m$ if and only if $g_1 g_2 = g_2 g_1$.   It's pretty clear that if we assume that $g_1$ and $g_2$ then the above is true. However, I'm getting stuck trying show in the other direction. What I've been trying is to start with  $$ (g_1 g_2)^m = g_1 g_1 g_1 \cdots g_2 g_2 g_2 $$ and then somehow cancel terms to arrive at the desired result of $g_1 g_2$ on the LHS and $g_2 g_1$ on the RHS (as this is pretty clear and works nicely when $m =2$). Is this the way to go about it, or is there another way?

I need to prove the equivalence of the following two statements, if $G$ is a group:     $G$ is abelian $\Leftrightarrow$  for each $a,b$ in $G$: $(ab)^n = a^n b^n$ for each integer $n$   I have done the $\Rightarrow$ implication, but I have no idea how to approach $\Leftarrow$, any hints are very welcome.


I have posted answer of off-topic question through i got minus reputation. why? i caught this. Is this any thing happened i did wrong.

It annoys me when people post answers to obviously off-topic questions like , especially after those questions have already received several close votes. Migrations seem to happen rather infrequently these days, so there's probably no reputation to gain for questions that are likely to be closed. And although sure, the answer may help the OP, it also encourages bad behavior (posting off-topic questions.)  Is it appropriate to downvote these answers?   Personally, I think I could make a case for both sides.


Why did Itachi not kill Sasuke but instead poked his head during their last battle that led to Itachi's death?  Was it because of the clan symbol behind him? Or because he loved him?

From the beginning of the series, even during his last moments, Itachi poked Sasuke's forehead as a way of showing affection and apologizing.  But is that the only reason? Did he perhaps try to transfer some knowledge or memories to Sasuke? Or is it simply unknown?


I often get stuck when i want to write someting like  IF v_shortname IN (SELECT   sname FROM table)   OR    IF EXISTS (SELECT   sname FROM mmstrephdr  WHERE  sname= v_short)   I know EXISTS and IN not work in that way  .Also i can always tweak my code to get such results, but i always wonder if there is an programming construct in SQL which would do the job for me !

What is the difference between the EXISTS and IN clause in SQL?  When should we use EXISTS, and when should we use IN?


I typed on terminal:  ~$ wget http://download.cdn.viber.com/cdn/desktop/Linux/Viber.zip --2018-06-30 19:54:15--  http://download.cdn.viber.com/cdn/desktop/Linux/Viber.zip Resolving download.cdn.viber.com (download.cdn.viber.com)... 2.17.13.45 Connecting to download.cdn.viber.com (download.cdn.viber.com)|2.17.13.45|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 44397656 (42M) [] Saving to: ‘Viber.zip.1’   Viber.zip.1         100%[===================>]  42,34M  3,97MB/s    in 10s       2018-06-30 19:54:25 (4,22 MB/s) - ‘Viber.zip.1’ saved [44397656/44397656]   then:  igor@igor-Easynote-TE69HW:~$ unzip Viber.zip Archive:  Viber.zip replace Viber/Sound/DTMF/0.wav? [y]es, [n]o, [A]ll, [N]one, [r]ename: error:  in]alid response   Now what should I do?

Is it possible to install Viber VoIP client on Ubuntu? So that I can call people through Viber from my PC.


I have this confusion related to PCA. Lets say I have a 100 dimensional data, then the projection into the first principal component is given by the average over all the dimensions.  How is it so?

This question just occurred to me out of the blue. PCA is a way to reduce dimensions. Another way that is often (perhaps too often) used is to take mean values of two or more variables. This is done a great deal to create "scales" or "ratings" that get published in the popular press about various political issues. Dimensions are naively "averaged" and this cumulative "average" is portrayed as a magical one-number-sums-all figure.  Is this, nevertheless, a very crude relative of PCA? If so, what assumptions does it have? I can think of the following:   Sphericity is perfect or near-perfect. All variables are perfectly orthogonal from all other variables. Variables are all perfectly scaled against each other.   What else would there be?


As a web developer, this is a question that has bugged me for some time: when providing a way for users to reset their password, which link wording is more suitable or is the "proper" use?   "Forget your password?" (as in, "Did you forget your password?") "Forgot your password?" (as in, "Have you forgot(ten) your password?")   There is a nicely related post here (), but that addresses "forgot" vs. "forgotten."  Thank you for your insight!

Is the following correct, or is there more to it?  "I forgot his name" — I knew his name, but I forgot it.  "I forget his name" — I keep forgetting his name. Where using "forget" basically means that you tried to remember this information before as well, but you couldn't then either.


HashMap has only one key and Value  Map<String, String> hm = new HashMap<>(); hm.put("one","ele");   Now how to get key and value from this and assign to string?

If I have an object implementing the Map interface in Java and I wish to iterate over every pair contained within it,  what is the most efficient way of going through the map?  Will the ordering of elements depend on the specific map implementation that I have for the interface?


In A Game of Thrones      Daenerys' son Rhaego was stillborn due to a blood magic ritual performed by Mirri Maz Duur.   Later      her dragons are born   Was this some kind of "exchange"?

In order to hatch a dragon in A Song of Ice and Fire, the eggs must be heated to an incredible temperature, as shown when Daenerys' dragons are hatched. So why aren't there any other dragons?  Eggs can be found (albeit rarely) in the Shadow Lands by Asshai and one can assume that other people have eggs. So why haven't any of them, even accidentally, been hatched by their owners?  Is there an in-universe reason?    I've read all the main books, watched up and including Season 6 and read The World of Ice and Fire so "spoilers" are fine.


Let $R$ be a non-commutative ring. Suppose $N(R)$ and $J(R)$ respectively denote the set of nilpotent elements and the Jacobson radical of $R$.  Consider the following statements:  (1) $N(R) \subseteq J(R)$,  (2) $a^2=0 \implies a \in J(R)$.  Clearly, $(1) \implies (2)$.      Does $(2) \implies (1)$ ?   The answer to this question should be negative. Please help us to find a suitable counter example.  P.S. This is an open question. If somebody can solve it then he/she will be duly credited.

Is there a standard example in commutative algebra of a ring where the jacobson radical does not equal the nilradical?


All these cheap terabytes are giving me headaches. I have few multi TB drives at home and most of them are over 50% full, and now I think my W7 machine needs a re-haul.   I'm from the old school way of doing those things, unless I format the drive I don't think I can call it a clean install. The notion of deleting all these programs, and the notion of backing up all the data on system drive makes me nauseous.  But what I really want to know is - do we have a software that could make a image from my clean installation ?  This is basically what I'm looking for:   I install the Windows on a clean drive I set up all the settings, preferences, bookmarks, programs back it up somewhere, somehow - so the next time my computer gets sluggish and slow, I just revert back to that state?   Don't say System Restore, I have nothing but bad experience with that tool...

I have data and files on my system, running Windows, and want to make sure that I don't lose all the data or information when it gets toasted, either by a power surge or corrupted medium.  I've heard that I should look into some kind of archive tool.  What should I be looking into here in a backup program?


I've just defeated the Ender Dragon and a portal opened somewhere below it. on the top is an egg. I've managed to get it down by right-clicking on it but can you do anything with it? Does it hatch? Can you place in your inventory and spawn Ender Dragons?

So I finally killed the Ender Dragon! As I was climbing the portal back to the world, I noticed that on top of the column there was an egg. So I attacked, mined, clicked and nothing happened, it just teleported away. What does the egg do and how do I get it?


I want to change videos to VLC. I have already installed VLC using sudo apt-get install vlc. I want to get a CLI solution because I am making a script that changes the configuration of a newly installed OS as my own customization.

I am running openbox and so do not have access to standard Ubuntu control panel, but must set everything from the terminal. When I download an image in chrome and click open, it launches xdg-open which then launches an arbitrary program (it resorts to Internet Explorer on wine if I uninstall those programs).  How do I control which program is loaded for an image of type .jpg (and others)?


How can I integrate this by parts? It seems to become recursive. I'm familiar with the classical solution, and cannot use that here due to the constraints of this class.  Here's the integral (to infinity).   $$\int_0^\infty{e^{-x^2}} dx$$  I'm having trouble finding the indefinite integral first.  Thanks!

I was wondering what the antiderivative of $e^{-x^2}$ was, and when I wolfram alpha'd it I got $$\displaystyle \int e^{-x^2} \textrm{d}x = \dfrac{1}{2} \sqrt{\pi} \space  \text{erf} (x) + C$$  So, I of course didn't know what this $\text{erf}$ was and I looked it up on wikipedia, where it was defined as:   $$ \text{erf}(x) = \dfrac{2}{\sqrt{\pi}} \displaystyle \int_0^x e^{-t^2} \textrm{d}t $$   To my mathematically illiterate mind, this is a bit too circular to understand. Why can't we express $\int e^{-x^2} \textrm{d}x$ as a 'normal function'? Also, what is the use of the error function?


I don't know which part of code make it happened  %%%%%%%%%%%%%%%%%%%%%%LIST OF FIGURES%%%%%%%%%%%%%%%%%%% \renewcommand\listoffigures{ \if@draftmode\else     \if@twocolumn     \@restonecoltrue\onecolumn     \else     \@restonecolfalse     \fi     \chapter*{\listfigurename}     \renewcommand{\@althead}{\hspace{0.3\textwidth}LIST OF FIGURES~(Cont.)\hfil}     \pagestyle{headings}     \thispagestyle{tocheadings}     \linespacing{1.3}     \addcontentsline{toc}{chapter}{\normalfont \MakeTextUppercase\listfigurename}     \@starttoc{lof} % must go after addcontentsline     \if@restonecol\twocolumn\fi \fi } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   -  \newcommand{\figuretable}[3]{\begin{tabu}{|X|X|}     \hline     \multicolumn{2}{|c|}{#1}\\     \hline     \textbf{Project}: \@title \newline\newline \textbf{System}: {#2} \newline & \textbf{Major Advisor}:\newline \@majoradvisor \\     \hline     \multicolumn{2}{|p{\dimexpr \linewidth-2\tabcolsep}|}{\textbf{Description}: {#3} \newline} \\     \hline \end{tabu} }   -  %Figure 2.3: “Film” entity in wikidata \ref{fig:203}. \begin{figure}[htb] \centering \includegraphics[width=\linewidth]{figures/chap2/203.png} \caption{“Film” entity in wikidata} \label{fig:203} \end{figure}[![enter image description here][1]][1]

Is there any package or a method to force LaTeX to keep floating environments like table and figure closer to where they are declared?


The description of the warlock's  eldritch invocation says (Xanathar's Guide to Everything, p. 57; emphasis mine):     As a reaction when you take damage, you can entomb yourself in ice,   which melts away at the end of your next turn. You gain 10 temporary   hit points per warlock level, which takes as much of the triggering   damage as possible. Immediately after you take the damage, you gain   vulnerability to fire damage, your speed is reduced to 0, and you are   incapacitated. These effects, including any remaining temporary hit   points, all end when the ice melts.   The 's Infernal Legacy racial trait grants fire resistance.  For a tiefling warlock with the Tomb of Levistus invocation, how would this eldritch invocation (specific) interact with this racial feat (general)?   Do they cancel? Or does the magic of the Tomb of Levistus invocation (specific) overpower the Infernal Legacy trait (general) completely?   Which applies here? General vs. specific rules, or resistance vs. vulnerability rules?

For example, I am vulnerable to fire and have an item that gives resistance to fire. Do the two cancel each other out, or does one supercede the other?


I would like to download a file but I am not sure if the file has a virus in it, so I have decided to use a vm to access the website, the question now is this, assuming the file has some kind of virus in it, can the virus break out of the VM and then infect the host?

Possible Duplicate:          I've always been curious because I've run a virtual machine a few times.   Can a VM infect the host with a shared drive between the two? Can a VM infect the host with absolutely no networking at all? Can something malicious "break out" of the virtual machine and infect its host?   Basically, is there any time at all that a virtual machine can pose any kind of security risk to its host?


class TheAnimal {      public class Animal {         void bark(){             System.out.println("Woof-Woof");         }      }      public static void main(String[] args){          Animal dog = new Animal();          dog.bark();     }  }   // Keeps saying on line 12 Animal dog = new Animal(); after compiling that it's a non-static variable and that it cannot be referenced from a static context.

To be specific, I was trying this code:  package hello;  public class Hello {      Clock clock = new Clock();      public static void main(String args[]) {         clock.sayTime();     } }   But it gave the error      Cannot access non-static field in static method main   So I changed the declaration of clock to this:  static Clock clock = new Clock();   And it worked. What does it mean to put that keyword before the declaration? What exactly will it do and/or restrict in terms of what can be done to that object?


Good morning, My question is the following: Does every finite dimensional field extension have finitely many intermediate fields? I thought about it quite a while and know that the following is true: For a separable field extension there are only finitely many intermediate fields. Is there any example for a finite dimensional non-separable field extension with infinitely many intermediate fields?  Thanks a lot.

Let $K=\mathbb{Z}_2 (x,y)$, where $x,y$ are independent, and $L$ be a splitting field extension of $(X^2 - x) (X^2 - y)$, then $[L:K] = 4$ and $L = K(\sqrt{x},\sqrt{y})$ where $\sqrt{x},\sqrt{y}$ are roots of $X^2-x$, $X^2 - y$ respectively. What are the subextensions of $L:K$?  I know all elements in $L$ square to something in $K$, so all the intermediate fields are $K(\sqrt{k})$ for some $k\in K$, but some of them are the same, say $K(\sqrt{x/y}) = K(\sqrt{xy})$...   Note: $\mathbb{Z}_2$ means $\mathbb{Z} / 2\mathbb{Z}$


I've been writing this code to implement the C "strcmp()" function using C/C++ with embedded assembly code like this bool myStrCmp(char* mystr1, char* mystr2) {     if (myStrLen(mystr1) != myStrLen(mystr1)) return false;     char s1[100], s2[100];     strcpy_s(s1, mystr1);     strcpy_s(s2, mystr2);     int i = 0;     int flag = 1;     _asm mov ecx, flag;     _asm      {         push esi         mov esi,i       startCmp:         mov al,s1[esi]         mov dl,s2[esi]         cmp al,NULL             je endCmp         cmp al,dl             jne zeroFlag         inc [esi]         jmp startCmp       zeroFlag:          mov ecx,0        endCmp:             pop esi     }     _asm mov flag, ecx      return flag == 1;  }   However, there is an exception at the exact line of jne zeroFlag saying : 0xC0000005: Access violation writing location 0x00000000 this exception happens whenever I enter a similar charecters in the first and second string generally I have no idea why does this happen

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


Everything was working fine until today I decided to allow Ubuntu to upgrade some software - including chrome and some parts of Ubuntu. After restarting I was noticing some screen tearing while watching Netflix so I tried installing something to fix it called Bumblebee - but I ended up uninstalling it because I don't think it applies for AMD drivers. I then did a apt-get autoremove since the console suggested it and a whole bunch of stuff got removed that I'm not sure should have been. Eventually I went back into "Additional Drivers" and saw that somehow my video card driver had gotten switched back to the open source driver instead of fglrx which is what it was previously set to when everything was working fine. I can click the button to select fglrx and hit apply changes but the selection goes back to the open source driver after a few seconds. I tried installing via commandline following these instructions:  but I ran into another error that comes up when I run   sudo apt-get install fglrx  It says something like this:  The following packages have unmet dependencies: unity-control-center : Depends: libcheese-gtk23...libcheese7... but it is not going to be installed.   I tried installing those separately but it didn't seem to work.  Anyone out there that can help?  I never seem to learn my lesson - I violated a personal commandment of software that I have - never upgrade anything unless you have an urgent reason to.  Here is my current system settings: Ubuntu 14.04 LTS Memory: 3.3 GiB Processor: AMD Athlon 5350 APU with Radeon R3x4 Graphics: Gallium 0.4 on AMD KABINI (DRM 2.43.0, LLVM 3.8.0) OS type: 64 bit

I have 14.04.5/16.04 or newer and an AMD GPU. I'm not getting the performance I want, and some programs say they need things like OpenCL.  I've heard about fglrx, but if I try to install it on my machine, it breaks and I have no GUI.  Is there anything I can do to get my AMD card working to its full potential?


I am getting this exception there Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot read field "imeField1" because "controller.evidencijaController.view" is null at controller.evidencijaController.spremiPodatke(evidencijaController.java:14) package controller;   import javax.swing.*; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.sql.Statement;  public class evidencijaController {     private static view.evidencijaView view;     private model.evidencijaModel model;     public static void spremiPodatke (String imeTurista, String prezimeTurista, String oibTurista, String mailTurista, String mobTurista) throws SQLException {         if(view.imeField1.getText().isEmpty()){             JOptionPane.showMessageDialog(view, "The ID cannot be null!", "Invalid info", JOptionPane.WARNING_MESSAGE);         }else{             Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/rezervacijalucica","root","");             Statement statement = connection.createStatement();             statement.executeUpdate("INSERT INTO turist(imeTurista, prezimeTurista, oibTurista, mailTurista, mobTurista) VALUES("+imeTurista+","+prezimeTurista+","+oibTurista+","+mailTurista+","+mobTurista+";)");         }     }```

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


Today when i opened Stack overflow i saw this :    So i thought some problem with net ,  I asked the person sitting near me to open SO but he was having same issue.  I want to know is it because anything wrong in our network or anything else?  While searching i found below errors.    It might be because our System Admins might have removed some permission to access something?  Because 403 is there.

Stack Overflow seems to be having some CSS issues right now. At first, it presented as CSS disappearing when refreshing in Firefox (though hitting Enter from the address bar seemed to restore it - I'm thinking that's a cache issue though). I loaded my blank Firefox profile and discovered CSS wasn't rendering on Stack Overflow at all (Meta seems fine; haven't checked other SE sites).  I've since checked the site in Chrome and Opera, and can repro in both.


I made a script that controls my system LEDs and it works great.  I saved it to /usr/local/bin/led-pattern and ran sudo chmod a+x /usr/local/bin/led-pattern so its executable simply by entering the command led-pattern.  Upon doing so, it asks for an administrative password, and upon entering the password, the script runs as intended.  However, when added to my list of startup applications, it does not run at login, presumably because of the lack of sudo permissions, as all my other startup scripts that I've made work just fine and don't require permission.  How can I make it so that this script runs at startup seamlessly - never asking for any password even though it requires sudo permissions?  Edit: by startup, I mean while it's logging the user on, not while booting up the computer

I had a script that automatically enables my wifi without using networkmanager, but I don't know how to run the script as root while the system is booting. How do I make the script run automatically during boot?


A topological space is called a sequential space if a set $A \subset X$ is closed if and only if together with any sequence it contains all its limits.  so, according to definition, is the following correct?     Sequential space has unique sequential limit iff each countably compact subset is closed.( and hence sequential).

A sequential space has unique sequential limits iff each countably compact subset is closed.  Proof: If $ \{ x_n \} $ is a sequence converging to two distinc $x$ and $y$, then $ \{ x \} \cup \{ x_n  : n \in \omega \} $ is a non compact set.  conversely: if $X$ is sequential and has unique  sequential limits, $X$ is $T_1$ . Let $ K \subseteq X $ be countably compact.If $ \{ x_n \} $ is a sequence in $K$ and $ \{x_{n}  : n \in \omega \} \longrightarrow x_{0}$ then  $ \{ x_{0} \} \cup \{ x_n  : n \in \omega \} $ is sequentially closed and hence closed. Thus $x_{0}$ is the only possible accumulation poin of $ \{ x_{n}  : n \in \omega \} $. if $ \{ x_{n}  : n \in \omega \} $ is infinite, $x_0 \in K$. If not for some $n$, $ x_{0} = x_{n} \in K $.Hence $K$ is closed.     (1) Why" if $X$ is sequential and has unique  sequential limits, $X$ is $T_1$?      (2) Why "if $ \{ x_{n}  : n \in \omega \} $ is infinite"?


I've got a set of files in a directory, all of the format test[0-9][0-9].txt. If I run  find . -regex ".*/(test)[0-9][0-9]\.txt"   then all the files are shown, but if I run  find . -regex ".*/(test)[0-9]{2}\.txt"   then none are shown. What am I doing wrong?!  I've had a search through previous similar questions to this, but can't find a particularly relevant answer

I have been trying to create a find command string that will find all files that end with a number 1-99 but exclude all others.  e.g. I want to find myfile1 myfile99 but not myfile456 and not myfilebackup  The regex I'm thinking of is myfile[1-9]{1,2} but I can't get this to work with find.  find . -regex '.*myfile[0-9]{1,2}' OR  find . -iname 'myfile[0-9]{1,2}'  From what I can see it's the {1,2} part that is not working.  (by the way can you use -name -regex interchangably?)  Any help appreciated.


I have a problem when I was trying to change a state within my character. I wrote the code below   public class playerController : MonoBehaviour {  private CharacterController characterC;  private Animator anim;  // Use this for initialization  void Start () {      characterC = GetComponent<CharacterController> ();      anim = GetComponent<Animator> ();   }   // Update is called once per frame  void Update () {   }  // put a line attack!  public void Attack(){       anim.SetBool ("attack", true);       anim.Play ("attack");  }  // when we got a box  public void Doubleattack(){      anim.SetBool ("hitBox", true);       anim.Play ("doublechop");  }  //  dying animation gameover loser  public void Die(){      anim.SetBool ("isDead", true);       anim.Play ("die");  }   }  and i use one of my methods in my "mainmanager"  public class MainManeger : MonoBehaviour {      private bool isOnlineGame=false;      private playerController plyC;`  public void start2PlayersGame()          {              isOnlineGame = false;              StartLevel();              PlayerManeger.set1VS1players();              AnimationManeger.showGridWindow();              plyC.Attack ();              SoundManeger.PlayBackgroudOnPlay();          }}`   I got this :NullReferenceException: Object reference not set to an instance of an object at ''plyC.Attack ()'' why?

Since many users are facing the NullReferenceException: Object reference not set to an instance of an object error in Unity, I thought that it would be a good idea to gather from multiple source some explanation and ways to fix this error.  Symptoms I am getting the error below appearing in my console, what does it mean and how do I fix it?  NullReferenceException: Object reference not set to an instance of an object


I don’t know much about hardware so, please, be gentle!  I’m thinking of getting a second GPU to cut (Blender Cycles) rendering times in half. After some research I found out that:   each GPU renders an assigned tile in Blender (hence the reduced half time) the new GPU has to be of the same type (Nvidia, in my case) Two GPUs can generate more heat ‘I need to check the power’ (not sure what that means)   I own a ‘GA-X99P-SLI LGA2011-3 ATX’ Motherboard, with a   ‘Palit Geforce GTX 1070 Super JetStream 8GB GDDR5’ Graphics Card, and a  ‘NH-D9DX i4 3U 92mm Intel Xeon’ CPU Cooler  Here are my questions:  A. Should i get the same GTX 1070 or should I go for a faster one (e.g. the 1080?) I was thinking of buying the same GTX 1070.  B. In terms of heat, will the PC be ok or should I do something about it?  C. In terms of power, what should i do?  D. For rendering in Blender, do i have to physically connect the cards via SLI, or they don’t need to be connected?  Many thanks for any comments and help  George

I know that you can't mix different spec cards for SLI gaming, but I suspect that when it comes to 3D rendering, the renderer will simply divide the work up automatically.    Choosing the optimum tile size is important for efficient usage of the core's in our processors, I suspect that the tiles will simply be distributed to the difference in power of graphic cards.  So the key to getting it to work efficiently (I suspect) is finding a tile size which allows the renderer to effortlessly divide the work to graphics cards with different cuda core sizes.  In my e specific case, I have a GTX 970 and a TITAN X; can I use them both for rendering?


Anyone tried Summer '19 Named Credentials using AWS Signature Version 4 successfully? Trying again to use External Services and first step is the Credentials.  I created an IAM user with the appropriate perms and tested user successfully. Haven't seen any Salesforce documentation on using this for Named Credentials, Ive seen the Apex examples there and here this is diff. We are using  URL: https://mturk-requester-sandbox.us-east-1.amazonaws.com Certificate: (blank) Identity Type: Named Principal Authentication Protocol: AWS Signature Version 4 AWS Access Key Id: 12345 AWS Secret Access Key: ***** AWS Region: us-east-1 AWS Service: mturk-requester   Was very unsure on these settings  Generate Authorization Header: TRUE Allow Merge Fields in HTTP Header: TRUE Allow Merge Fields in HTTP Body: TRUE   Got AWS region and name from   When trying to test this in Anonymous Apex getting     CALLOUT_RESPONSE   [7]|System.HttpResponse[Status=Forbidden, StatusCode=403]   When trying to run in Flow Debug mode am getting error:     System.CalloutException: Received error response - Invalid parameter   value "[hidden]" for parameter "Decryption Exception"..   The JSON isn't correct so don't expect it to work but hoping for a valid connection.

I am trying to make a callout to AWS S3 using named credentials and Apex  The named credential is set up as follows  Label: AWS S3 Name: AWS_S3 URL: https://bucket-name.s3.amazonaws.com - Certificate: Identity Type: Named Principal Authentication Protocol: AWS Signature Version 4 AWS Access Key: AKIAxxxxxx AWS Secret Access Key: xxxxxx AWS Region: ap-southeast-2 AWS Service: s3 - Generate Authorization header: true Merge fields in header: false Merge fields in body: false   The Apex class is very simple  HttpRequest req = new HttpRequest(); req.setEndpoint('callout:AWS_S3'); req.setMethod('GET');                        Http http = new Http(); HTTPResponse res = http.send(req);                 System.debug(res.getBody()); return res.getBody();   The response body contains the following:     SignatureDoesNotMatchThe request signature we calculated does not match the signature you provided. Check your key and signing method.AKIAxxxxx   I have used the same bucket, endpoint and credentials using Postman and am able to successfully return the list of objects in the bucket so it is not an IAM permissions issue  There have been a couple of similar questions on stackexchange but unfortunately they do not provide any resolution or assistance in this case:    I've tried looking for code samples or further pointers in the Apex documentation but it doesn't really give any further guidance on how to proceed or correctly set this up so I'm a bit stuck


Within the last few months computer has been dying at 40+%  After dying the computer will show the low battery icon on the screen, but once charger is plugged in it shows the battery has well over the % at which the laptop should be shutting off.  This usually happens after a restart or opening the computer.  It will turn on, I sign in then it dies shortly thereafter.  Any thoughts?  From what I have read battery re-calibration should not be needed on this particular model.  Have read some bits about it being possible software issues but not sure the real cause.

I have two mid 2012 MBPs. Sometime last year they both started randomly shutting down and showing the 'please plug me in to power' image when trying to start them up. That would be fine if the batter was at 1% or less but this happens when the battery is at anywhere from 30% to as high as 48% full. The power cycle info says 500 cycles or so. Both of them do this. They are both patched current, always. I asked Apple they suggested NVRAM PRAM and SMC reset, as expected, which had no effect. Any ideas?


I have a small tcl script which I am trying to run. I have changed the permissions to allow execution of the script (although it did require sudo access to do so?) checking the Ubuntu Software Centre, tcl is loaded. So how do I run it? Does it have to be run from command line? Shouldn't I be able to run it by double clicking on the script name?

How can I make a bash script executable by double clicking just like .exe files in Windows? I tried , but there are two consequences:   the terminal twinkles, disappears, and nothing is done. you must specify to run in terminal in order to work.   I have a script that installs tomcat on an offline PC, including all dependencies of tomcat in the script. I need to make the script work on double clicking like windows since most who use the script will not be familiar with Ubuntu.  Forget the above explanation. I want to make a script that can be run by double-clicking on it, without using the terminal. Anybody knows how?


I have the following equation: \begin{equation} E(W) = \frac{\frac{(c\rho)^c}{c!}}{(1-\rho)\sum_{n=0}^{c-1}(\frac{(c\rho)^n}{n!})+\frac{(c\rho)^c}{c!}} \cdot \frac{1}{1-\rho} \cdot \frac{1}{c\mu} \end{equation}  which is rendered as  Is there any easy way to prevent that the nominator and denominator of the main fraction to be each displayed in inline math mode? E.g. I want my summation to look like this  instead of the way it looks right now.

I'm very familiar with how symbols display differently in inline mode (with $ ... $) vs. how display math shows them (with \[ ... \] or $$ ... $$).  Two examples would be with limits  $\lim_{n\rightarrow \infty}f(x)$   vs.  \[ \lim_{n\rightarrow \infty}f(x) \]   and with sums  $\sum_{n=1}^{x} n^2$   vs.  \[ \sum_{n=1}^{x} n^2 \]   My Question is:     How do you display these things in inline mode (with all the nice inline formatting) as if they were in display mode ?   The inverse -- how to display things in display mode as if they were in inline mode -- is also of interest.


I will travel from Aden to Mumbai by Yemen Airways, and then I will travel to Kuala Lumpur by Malaysia Airlines. Do I need an Indian visa for the connection?

I am a Yemen citizen and want to travel from Kuala Lumpur, Malaysia to Muscat, Oman as follows:   Kuala Lumpur to Mumbai via Malindo Air 5 hour 40 minutes layover before connection Mumbai to Muscat via Oman Air   I am traveling with two flights that are booked separately. Is the connection time enough and do I need a transit visa for Mumbai ?   If I book on Skyscanner with the same two airlines, does it work the same if I book the same flights myself?


I was spraying some lubricant on my chain and accidentally sprayed on my hydraulic brakes and it affects my bikes braking power massively. How do I clean this off?

I've had an eternal struggle with my current bike over brake contamination. The levers and calipers are shimano ultegra r8000, so the latest and (almost) greatest.  I first noticed it when I took it to a repair shop (i no longer use) for a bleed, it came back and the front brake would squeal like crazy and at low speeds had little to no braking force. You can stop from speed but then struggle to come to a halt without using your foot.  At around 2000 miles I tried to replace the brake pads, when I took them out they were black with grime on both sets (front & back), not to mention worn down to the metal. I replaced them with the L04C sintered pads, gave the callipers a good cleaning with a towel (no chemicals) and fitted the new set.  Annoyingly all of my braking issues are back, now I probably should have cleaned the rotors, I simply used some muc off disc brake cleaner on them. I would like to know the best way to clean the rotors, I've inspected the pads and they are looking fairly black now, with plenty of tread left. I'm going to abandon these pads and fit a new set. For the rotors I plan to completely remove them from the wheels (they are center lock fitted) and try and treat them off the bike, what is the best way to fully clean them? They have plenty of wear left in them but you can see these black grooves in them, and plenty of muck on the back that I struggle to get off.  Below are images of the rotors after soaking them in disc brake cleaners, waiting and then wiping them down with a clean, microfiber towel.   Front Wheel Outside Rotor   Front Wheel Inside Rotor - note the increased dirt on this side  Looking at ways people clean their disc rotors, I've seen plenty of suggestions that I would need to burn the contaminants off the discs. Would the best approach be to remove them and use a blowtorch, should I soak them in some nasty chemicals overnight before I try to heat them? Do I try baking them in the oven?  And finally, what is the best way to prevent the brakes from becoming contaminated in the future? it's really off putting when they squeal and don't perform how I'd expect because it means I'm more reserved whilst out riding on the bike, leading to reduced time riding around outside. I commute on this bike (50 miles a week) and then ride about 50 on the weekends also, so it see's it's fair share of road use. I tend to wash it once after my big ride on saturdays and will rinse it off if it's been raining, any day that occurs (since I live in north east england, the acid rain..). I've owned disc brake bikes before and never had half the issues I've had with this, I had a cheap trek with tektro brakes and the brakes were sharper and never had any issues with contamination whatsoever (i did around 500 miles on that bike before a motorist happened).  Thanks for any and all advice :)


I often need to select a number of rows from each group in a result set.  For example, I might want to list the 'n' highest or lowest recent order values per customer.  In more complex cases, the number of rows to list might vary per group (defined by an attribute of the grouping/parent record). This part is definitely optional/for extra credit and not intended to dissuade people from answering.  What are the main options for solving these types of problems in SQL Server 2005 and later? What are the main advantages and disadvantages of each method?  AdventureWorks examples (for clarity, optional)   List the five most recent recent transaction dates and IDs from the TransactionHistory table, for each product that starts with a letter from M to R inclusive. Same again, but with n history lines per product, where n is five times the DaysToManufacture Product attribute. Same, for the special case where exactly one history line per product is required (the single most recent entry by TransactionDate, tie-break on TransactionID.


I want to install Ubuntu but my computer specs are very low and I don't know which Ubuntu I should download. I want to install Ubuntu but my PC is a Compaq Mini 110.   It has:   70 GB of free of disk space 1 GB RAM 32 bit system Intel Atom CPU N270 / 1 GHz   I currently have Windows 7. So I want to have both windows and Ubuntu on my PC.

For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and  such as:    with a lighter desktop than the usual Gnome and Unity  with the even lighter LXDE desktop   Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements?


A user on Chemistry SE mentioned a very nice shortcut to use in implementing a command for partial derivatives (see comments section of question: ):  Suppose you want to create the following partial derivative:  \left(\frac{\partial U}{\partial p}\right)_{\!T}   using this command:  \newcommand{\pd}[3]{\left(\frac{\partial #1}{\partial #2}\right)_{\!#3}}   The standard use of the command would be:  \pd {U}{p}{T}   However, since each argument is only a single character, this is sufficient:  \pd UpT   If one needs to typeset numerous partial derivatives, this is a great time-saver.    Indeed, you can even use a hybrid approach, where braces are eschewed for single-character arguments, but used for multi-character arguments.  For example, to implement this:  \left(\frac{\partial U}{\partial p}\right)_{\!T, n_i}   One would write this:  \pd Up{T, n_i}   This seems to leverage what is a standard shortcut in LaTeX for single-argument commands (e.g., we drop the braces when the argument of a superscript or subscript command has only one character). But, for this usage (multi-argument user-defined commands) are there cases in which this (seemingly non-standard) approach would create a problem?

Sometimes writing braces and omitting them produces the same result:  \tilde{\psi}  \mathrm{e}^{\mathrm{i} \pi}   vs  \tilde \psi   \mathrm e^{\mathrm i \pi}   Or (taken from Werner's comment below)   \frac{1}{2} vs \frac12   If that's the case, how bad for the quality of my code is omitting them? Of course, if one compiles a pair of formulas, there is no difference. But, since I ignore how TeX works, my point is: if one writes long codes with these habits,   doesn't TeX go somehow crazy because I'm not writing as it expects?   For instance, does it have any effect on how fast are long documents compiled? Any reason to keep them?


Is it possible to use a wildcard with GQL?  I would like to be able to pull all records that contain a particular word somewhere in their values.  I don't believe there is a "LIKE" filter.   Here is basically what I am trying to do: Any advice you can give is greatly appreciated-  mentors_with_topic = db.GqlQuery("SELECT * FROM MentorServices WHERE Services LIKE 'Reading'").get()

Simple one really.  In SQL, if I want to search a text field for a couple of characters, I can do:  SELECT blah FROM blah WHERE blah LIKE '%text%'   The documentation for App Engine makes no mention of how to achieve this, but surely it's a common enough problem?


I was watching the Talking Dead for the Walking Dead season two finale, and they talked about not actually being able to show a child being shot.  But they have shown zombie children.  But this made me think:  Assuming there have been zombie TV shows or movies which shows a baby, infant, or toddler which has been zombified, which was the first one?

The first zombie children I remember seeing in a movie were in Resident Evil. I may be wrong, but it seems unlikely to me that it was the first zombie flick to include them. What film was the first to feature onscreen zombified children?


Broad and wide are near synonyms but only near, since "a broad smile" is a more common collocation than "a wide smile", and you can say "eyes wide open" but not "eyes broad open".  Breadth and width seem to be closer synonyms since both are defined in Collins Dictionary Online as:     the linear extent or measurement of something from side to side   Why are the adjectives/adverbs broad and wide not as interchangeable as the nouns breadth and width seem to be?

Could you help me to point out the differences in the following sentences. for me both sentences imply same meaning.      The Restaurant , offers a broad range of locally caught fresh seafood,   prime steak and meat dishes      The Restaurant , offers a wide range of locally caught fresh seafood,   prime steak and meat dishes


Just did an upgrade to Ubuntu 18.04 from 16.04 and i am getting stuck on the splash screen.  Right now i have turned off quiet splash and found that I am getting stuck on:  "Started Update UTMP about System Runlevel Changes". It hangs here while the screen flickers off and on.

I tried to upgrade from Ubuntu 16.04 to Ubuntu 18.04. First, after downloading and installing of packages, I was unable to login. Login screen hanged completely and it showed Failed to authenticate. But then I logged into tty1 and then logged in Ubuntu. It was saying that I am in Ubuntu 18.04. Then it asked for reboot. So I rebooted Ubuntu from terminal. It got stuck at something like /dev/sda4 : Cleaning files. After trying for a few times, I got into tty1 and here I logged in as root user and tried to update and upgrade. But now I am getting errors like unmet dependencies and broken packages. I have done sudo dpkg -- configure -a. I don't want to do a reinstall of Ubuntu. How do I get access to my Ubuntu Desktop?


I have a shapefile that contains 907 features. All features are still visible in the attribute table and the fields contain the correct values. However, when opening it in QGIS it only draws 9 features. I have also tried to open it in ArcGIS and I get an error message: "There was a problem drawing the shapefile, drawing aborted"  I have tried to run the "check validity" for the geometries in QGIS but it crashes. However, when I run the "check geometry" tool in ArcGIS, the output is empty.   The file has: .shx, .shp, .dbf, .cpg, .shp.xml, .prj extensions. I have tried a number of times by deleting what are usually non mandatory files, but nothing changed.   I have also tried to export as a gdb, and also to copy the features to a new shapefile but nothing worked.   I don't know when and how the file got corrupted, but is there any way to recover it?

I have a shapefile that I was working on in ArcGIS Desktop 9.3 get corrupted somehow and it gives me the error "Number of shapes does not match the number of table records.". What I would want is to recover this shapefile as it has a lot of edits that other revisions of the file do not have.  Earlier I recovered from this error using  but the tool now just crashes. I have even tried the command line version ogr2ogr but still no luck. This script,  from the ArcScripts website didn't help either.  Any ideas? (except that I stop using shapefiles)    Here is the output from ogr2ogr (based on a a suggestion in the answers):


I have a SELECT query with the arguments below to fill in a DataTable. The fields OpeningQuantity, QtyIn & QtyOut from tbWHProduct are all in MS Access Double format. Sometimes when calculating decimals is involved, somehow the POSBalance returns a long string of decimal points:  e.g. 0 + 2565.4 - 2515.1 returns -50.3000000000002  query = "SELECT ProductID, ProductName, Caption, UOM, RetailPrice, DiscPercent, DiscSum, MinimumSellingPrice, OpeningQuantity+QtyIn-QtyOut AS POSBalance, Location FROM tbWHProduct WHERE Disable = FALSE ORDER BY ProductName";   Please help me understand what caused this odd calculation quirk and how I would go about avoiding such problem. Thank you.

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


I was wondering if it was possible to add the option to create new documents without extension from the context menu.      This would enable me to create and structure my applications faster and more directly than every other alternative, such as:       Have "hide knows file extensions..." permanently disabled; create new .txt file; change extension; accept Windows "changing an extension..." warning. Open text editor; write specific file; save as; navigate to directory, change extension, save.  for every type of file.   Instead, I could just do:       New blank file, add extension, repeat.       If it's of any importance, I'm coming from working mostly through Filezilla and its context menu works like that.

Whilst i have found posts that tell me how to add a new context item for a specific file type, i seem to be unable to see a way of adding one for a blank file (a la ubuntu).  Is there a way of adding just a blank file (with no extension), which i can then rename myself with the appropriate extension?