I'm trying to develop a set of custom classes. They are all very similar, but each do slightly different things (a custom letter, article and report for example. Since they share things in common, I thought that to cut down on repeated code, I could have a 'base' class, which would define everything they have in common, and then I would have the specific classes, with their individual code.  That base class is called frigaard-base.cls, and then I have a class for essays, called frigaard-essay.cls. The structure is that frigaard-base loads the default article and then frigaard-essay loads frigaard-base. However in a document when I load frigaard-essay.cls, I get the following error:  File `frigaard-base.cls' not found. \LoadClass{frigaard-base}   Normally though, it should be found since frigaard-base and frigaard-essay are in the same folder, and here is their declarations:  \NeedsTeXFormat{LaTeX2e}[2011/06/27] \ProvidesClass{frigaard-base}[2013/07/24] \LoadClass[a4paper, 12pt]{article}     \NeedsTeXFormat{LaTeX2e}[2011/06/27] \ProvidesClass{frigaard-essay}[2013/07/24] \LoadClass{frigaard-base}[2013/07/24]   What is happening here? Should I not be using \LoadClass twice within the same hierarchy and change frigaard-base into some other file type, such as a .def (if this is the case, please explain how).  More Info  It has been worked out that when frigaard-base.cls, frigaard-essay.cls, and a test document are in the same folder, then it works fine, but when say the test document is in a folder, frigaard-essay.cls is in a subfolder, and frigaard-base.cls is in a subfolder of that, it gives the same error.

I'm trying to set the documentclass type of a certain .tex file to be a class that is in the parent folder. However, I'm not sure how to include the path to the .cls file. I can write   \documentclass[letterpaper,12pt]{../foo}   But that complains that the imported class isn't the same as the provided class (in foo.cls I have \ProvidesClass{foo}. I know that this is just a warning and I could ignore it, or I could write \ProvidesClass{../foo}, but was wondering if there was a cleaner way to do the document class declaration.


for the finetuning I have to show a codelisting and the result as an image next to each other, otherwise it will be displayed on the next page and i have to crop it extremely.  Here's my progress so far:  \begin{lstlisting}[captionpos=b,caption={Alle HTML Überschriften (Quellcode)},label=lst:headings]
Überschrift erster Ordnung

Überschrift zweiter Ordnung

Überschrift dritter Ordnung

Überschrift vierter Ordnung

Überschrift fünfter Ordnung

Überschrift sechster Ordnung
 \end{lstlisting}  \begin{figure}[h] \includegraphics[height = 100px]{headings1} \caption{Alle HTML Überschriften (Ansicht) \label{headingsimage}} \end{figure}   How can I put them next to each other?

I am writing a document using the memoir class where I want to place listings (with the listings package) and figures side by side. My first approach was to save the listing in a box and use subbottom to place both elements side by side:  \documentclass[12pt,oneside,a4paper]{memoir}  \usepackage{graphicx} \usepackage{listings} \usepackage{color} \usepackage{calc} \usepackage{caption}  \newsubfloat{figure} \definecolor{lgrey}{RGB}{223,223,223,0} \lstset{     basicstyle=\footnotesize\ttfamily,     frame=lines,                                    % environment border     rulecolor=\color[cmyk]{0.43, 0.35, 0.35, 0.01}, % top rule color     xleftmargin=17pt,                               % left margin     framexleftmargin=17pt,                          % frame left margin     framextopmargin=2pt,                            % frame top margin     backgroundcolor=\color{lgrey},                  % background color     showstringspaces=false                          % show spaces in strings }  \DeclareCaptionFont{white}{\color{white}} \DeclareCaptionFormat{listing}     {\colorbox[cmyk]{0.43, 0.35, 0.35, 0.01}     {\parbox{\textwidth-6pt}{\hspace{15pt}#1#2#3}}} \captionsetup[lstlisting]{     format=listing,     labelfont=white,     textfont=white,     font={sf,bf,footnotesize}}   \begin{document}  % Example that does not work as intended % -------------------------------------- \newsavebox{\firstlisting} \begin{lrbox}{\firstlisting} \begin{lstlisting}[linewidth=0.45\textwidth,caption=Hello,language=python] echo("Hello World!") \end{lstlisting} \end{lrbox}  \begin{figure}[htbp]     \centering     \subbottom{         \usebox{\firstlisting}}     \subbottom{         \includegraphics[width=0.45\textwidth]{philosoraptor}         \label{fig:c}}     \caption{Example} \end{figure}  % How the listing environment normally looks like % ----------------------------------------------- \begin{lstlisting}[caption=Hello,language=python] echo("Hello World!") \end{lstlisting}  \end{document}   However, this messes up the placement, as I have formated my listings environment to look like this:   Here is how it looks in the document:     I also tried two minipages in a figure environment but this results in cryptic error messages.  Is there a best practice for placing different environments like listings and figures side by side in the memoir class?


I installed a new program but I can't find it. I want to put a shortcut on the dock. So how do I find the icon for the new program?

How can I add new programs to the launcher (or the dock in Ubuntu 17.10 and later) in Ubuntu?


In a few days, we will be having a small tower set up so that we can have internet connection in our rural home. We need to trench a cat-5 cable from the tower to our house but we also want to, in the same trench, run a power line out there so we are able to go farther with electrical items such as weed-eaters. What I wish to know is, how far down should the power cable be from the cat-5 as to not interfere with data signals? Both cables will be in separate conduits.

I am building a new house and am planning to hardwire network cables into each room.   Can I run CAT5/6 cables parallel to electrical wires without introducing any general safety issues or losing much in connection quality?  Wiring runs for up to 25 metres from patch panel and distribution board in garage to rooms.   My research indicates that is should be fine if they are in separate conduits or if the CAT cables are shielded.


So I have, 3 files; main.c , file.c file.h  in file.h  I declared 3 variables  extern  clock_t start_t, end_t, total_t;   in file.c I wrote a function to save the length of time of main running program; and in file.h I reference it as "void saveLog(void);"  void saveLog(void) {    end_t = clock(); total_t = (end_t - start_t); double time_spent = (double) total_t / CLOCKS_PER_SEC;  double *arr = malloc(sizeof(double)); *arr = time_spent;  FILE* fp = fopen("log.txt","wb"); if (fp) {     printf("Elapsed: %f seconds\n", (double) time_spent);     fwrite(arr, 1, sizeof(double), fp);     fclose(fp); } }   in main.c at the start of main I wrote start_t = clock(); and at the end wrote atexit(savelog) I included all libraries (time.h , stdlib.h , stdio.h in all files)  When compiling I get the error apple linker id error   Undefined symbols for architecture x86_64:   "_end_t", referenced from:       _saveLog in file.o   "_start_t", referenced from:       _check_answer in main.o       _saveLog in file.o   "_total_t", referenced from:       _saveLog in file.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)   By the way my thinking is , to begin counting clock and the start of main and simply do the math in the function. My question is ,why does it not work? How else should I use the clock_t variables? I tried some testing with int's and the seemed to be referenced just fine.

My question is about when a function should be referenced with the extern keyword in C. I am failing to see when this should be used in practice.  As I am writing a program all of the functions that I use are made available through the header files I have included.  So why would it be useful to extern to get access to something that was not exposed in the header file? I could be thinking about how extern works incorrectly, and if so please correct me. Also.. Should you extern something when it is the default declaration without the keyword in a header file?


When typing an email, the previous line of text is hidden after pressing enter. Then, the cursor is stuck and can't be moved. I've checked if it's deleting the text and it's not, since when sending the email to a different email, you receive the hidden text as well. I've scoured the internet for solutions for this and it's not Overtype, line breaks, or formatting issues. It does not occur on other applications, only the Outlook app. I've also tried repairing the application and that did not work. I am using Outlook as part of Microsoft Office 365. It is the newest version and my computer is running Windows 10.

I'm experiencing a strange problem with Outlook 2019. When viewing a message it only shows the first line. On an HTML message, it stops at the first close paragraph tag. On a plaintext message, it stops at the first newline character. This is true if viewing a message in the reading pane as well as if double-clicking the message to open in its own window. I have the preview pane set to show 3 lines and it does show more of the message so it seems like Outlook can see more of the message than it's rendering in the reading pane. If I use View Source, the underlying data seems fine and the whole message is there. I've tried the following:  Deleting and re-creating the user's mail profile Uninstalling & re-installing Office Creating a new Windows account & connecting Outlook to a different Exchange account than the one that originally exhibited the problem Checked for Windows updates Checked for Office updates  Any ideas what might be causing this? I feel like I've tried everything obvious & I'm striking out on Google.


I want to put together these two commands: /give @p minecraft:stick{Enchantments:[{id:knockback,lvl:5}]} 1  and {display:{Name:'{"text":"Knockback Stick"}'}}  Im using Minecraft Java (1.15.2).

I'm trying to create an item that can break certain blocks, but also has a colored name in 1.13.2   Here's the command I'm using.  /give iAugust minecraft:shears{display:{Name:"[{\"text\":\"Arcane Shears\",\"color\":\"aqua\",\"italic\":false,\"bold\":false}]CanDestroy:[minecraft:iron_bars]"}}   But it only has a colored name, and it can't break specific blocks.


I'm using Apache NetBeans 12.4 and still I can not figure it out to make a Jar file using this newer version. Can I have help?

I want to package my project in a single executable JAR for distribution.  How can I make a Maven project package all dependency JARs into my output JAR?


I was wondering, it happened to me a few times that I answered a question in the comments section. This answer finally helped the user to solve his problem, ut as I gave it into the comments section, no answer was accepted, and I didn't receive any reputation.  What am I supposed to do then?  Write an answer and ask the user to accept it?  Or leave it unanswered?

If I ask a question on SO and someone comments on it, not solving the problem, but leading to my solution nonetheless, what is the best way to handle assigning the correct answer? I could just answer it myself with a full explaination, but at the same time, I wouldn't have solved the problem otherwise. What is the best way to handle credit in such a case?


In theory, feed forward neural network should be able to approximate any smooth functions given enough nodes in the hidden layer. In other words, it could significantly overfit the training data set. I was expecting feed forward NNets to fit the training set with a sign accuracy close to 100% without any penalization, but for some reason, the accuracy gets quite low from time to time. Can anyone provide some guidance why training accuracy can be very low, even when there are enough hidden layers?  Edit: As @ThomasW pointed out, one of the possible causes is local minima. what are some other causes? Is there a way to tell whether a specific cause is indeed the problem?

I'm training a neural network but the training loss doesn't decrease. How can I fix this?  I'm not asking about overfitting or regularization. I'm asking about how to solve the problem where my network's performance doesn't improve on the training set.    This question is intentionally general so that other questions about how to train a neural network can be closed as a duplicate of this one, with the attitude that "if you give a man a fish you feed him for a day, but if you teach a man to fish, you can feed him for the rest of his life." See this Meta thread for a discussion:   If your neural network does not generalize well, see:


I am working on a TicTacToe game and have to create several methods to handle various parts of the game.  One of the methods is to clear the board for a new game.  This is what I have for the method:   void resetBoard()  {     button_square_one = " ";     button_square_two = " ";     button_square_three = " ";     button_square_four = " ";     button_square_five = " ";     button_square_six = " ";     button_square_seven = " ";     button_square_eight = " ";     button_square_nine = " "; }  In the onCreate() method:       // Assign button objects to ids     Button button_square_one = (Button)findViewById(R.id.r1c1_button);     Button button_square_two = (Button)findViewById(R.id.r1c2_button);     Button button_square_three = (Button)findViewById(R.id.r1c3_button);     Button button_square_four = (Button)findViewById(R.id.r2c1_button);     Button button_square_five = (Button)findViewById(R.id.r2c2_button);     Button button_square_six = (Button)findViewById(R.id.r2c3_button);     Button button_square_seven = (Button)findViewById(R.id.r3c1_button);     Button button_square_eight = (Button)findViewById(R.id.r3c2_button);     Button button_square_nine = (Button)findViewById(R.id.r3c3_button);   I have created the button objects in the xml file.  I was going to create the methods with a return type of void instead of public void.

In Java, are there clear rules on when to use each of access modifiers, namely the default (package private), public, protected and private, while making class and interface and dealing with inheritance?


I have a DELL UP 2516Dt and I used to connect it to my old MacBook Pro with a HDMI.  But for the new MBP. I tried the so-called "Thunderbolt 2 to Thunderbolt 3" but it's not working (I found a lot of negative reviews at Apple Store).  I think this picture below describes quite well my confusion.    What should I try now to get them connected?  Thanks!

What's the best way of connecting two Dell P2415Q 4k displays to the MacBook Pro 2016 with TouchBar and TouchID?  I have the monitors connected to an older MacBook Pro currently with two mini-DisplayPort cables. Can I somehow reuse those cables or do I need new ones?  Apple's support page  lets me know that:  "Note that although it uses a Mini DisplayPort connector, the Thunderbolt 3 (USB-C) to Thunderbolt 2 Adapter doesn't support connections to Mini DisplayPort displays."  So I guess reusing the cables is not the way to go?


Let $R$ be a ring with identity and $a,b \in R$ then prove that $1+ab$ is a unit if and only if $1+ba$ is a unit and find the inverse.  Then there exist an element say $s \in R$ such that $(1+ab)s =1$ then from here how will I approach to find the inverse of $1+ba$??

Let $a,b,c,x$ be elements of a unital non-commutative ring. Assume $c$ is an inverse of $1-ab$: $$ c(1-ab) = 1$$  How can I find an inverse for $1-ba$? What I tried:   Denote the unknown by $x$. Then $x (1-ba) = 1 = x - xba$. I tried to replace $1$ with $c(1-ab)$ but it didn't help because I cannot solve for $x$. I also tried to subtract $x (1-ba) $ from $ c(1-ab)$ but couldn't solve for $x$ either. Any suggestions?


Years ago, in the 90's, I read a sci-fi story in an airline mag. It was about an Earth ship orbiting Jupiter where they sent Earth men down to the surface transforming them into these enormous Jupiter beings but were distressed that none of their guys were coming back. I remember a line from the latest guy they sent down; he said "Up there I'll only be a human".

They want to see if humans can survive in harsh planet conditions with a view to future colonisation. Scientist guy invents a machine which can transform humans into beings which are adapted to conditions on planet. They send folks in but none ever report back. Scientist, in despair, sends his old dog in. Dog doesn't return either so scientist finally goes himself. Gets to planet and, in his new state, finds himself strong and perfectly adapted to life on new planet. Meets his old dog who is also fine, they can now communicate and end up going off to discover the new world together.


I've been told in my solid state class, that ferromagnetism occurs when electron spins are alligned. This happens, as I understand it, when it is "energitically favorable" and when the wavefunction is antisymmetric (with a symmetric spin part). What I don't understand is:   1) When the spin part is symmetric and the electrons are alligned, the Coloumb repulsion is minimized (due to the Pauli principle, the electrons move further apart) - should it not always be more energitically favorable for the spins to be alligned?  2) Why, for instance, is iron (Fe) ferromagnetic, while Manganese (Mn) is paramagnetic? I fail to see where the theory comes into play. By looking at their orbital structure, Mn has more unpaired valence electrons than Fe.

Manganese has five unpaired electrons, but Iron has four, then why is Iron ferromagnetic and Manganese paramagnetic? What's that property I'm missing?


Prove there does not exist any epimorphism of $(\mathbb{Q}, +)$ onto $(\mathbb{Z}, +)$. How do I proceed on this?

I can't figure out why such an epimorphism cannot exist.  I think the fact that a bijection exists between the $\mathbb{Q}$ and $\mathbb{Z}$ throws me off a little. What is it about having a homomorphic surjection that causes problems?


I'm fairly new to photography and I only own two lenses (one with a 52 mm diameter and another with a 58 mm diameter).  I want to buy a good polarizing filter but I don't want to buy one for each lens.  From what I've read online, stepup adapter rings can be used to mate larger filters with smaller lenses.    Since I don't know the diameter of any lenses I might buy in the future, I'm planning on buying a large filter (~77 mm) and then buying adapters for each of my lenses.  Is there any disadvantage to using a stepup adapter with an oversized filter?  Is this a good strategy?

My 3 lenses all have a different size thread. (77, 67 and 58mm) I am to purchase a good CP filter for the 77 and 67 thread. I don't have any filters for the 58mm thread lens but I was thinking about perhaps getting a  and use my 77mm filters on the 58mm lens.   Are there any known issues with using filter step-up rings? I am thinking maybe even getting only one good 77mm CP filter and use with with all my lenses with a pair of step-up rings.   Any thoughts?


I'm trying to setup a ajax call with JS but without building a drupal form. Basically it will trigger when the user clicks a specific class element on the page. I've looked through the documentation but it seems to only be talking about ajax with drupal forms. Is this the only way to setup a ajax callback? I will link my code below. The code itself works when I click my element. I get hello world. But i'm trying to figure out how to setup a drupal js ajax callback but it keeps saying I need to make a form. (function ($, Drupal) {     Drupal.behaviors.modals = {     attach: function (context, settings) {       $('#ajax-dashboard-display--erc360_academic_institution_dashboard', context).each(function () {         // Create HTML markup         let container = document.createElement('div');         container.setAttribute('class', 'dashboard-container-modals');         let modal = document.createElement('div');         modal.setAttribute('class', 'dashboard-modal');         container.appendChild(modal);         let image = document.createElement('div');         image.setAttribute('class', 'document-modal-img');         modal.appendChild(image);         let status = document.createElement('div');         status.setAttribute('class', 'document-modal-status activitycircle activitycirclegreen');         modal.appendChild(status);         let myTarget = document.getElementById('ajax-dashboard-display--erc360_academic_institution_dashboard');         myTarget.appendChild(container);         $(".dashboard-modal").animate({right: '-100px'},800);          $('.document-modal-status').click(function(){           alert("hello world");         })           });     }   }; })(jQuery, Drupal);

By adding use-ajax to a link we can open a modal using the Drupal ajax library as per the . E.g. <a class="use-ajax"      data-dialog-options="{&quot;width&quot;:400}"      data-dialog-type="modal"      href="/node/1">     First article displayed in modal dialog. </a>  This will use the ajax library to fetch node/1 and then display it in a modal. There is also a  which allows opening modals using JavaScript. E.g. var myDialog  = Drupal.dialog(ADOMElement, settings); myDialog.show();  The problem with this API is you need to pass in a existing DOM element. My question is can I trigger opening a modal with JavaScript and utalise the internal Drupal ajax library to actually fetch the content? E.g Can I do something like this? var myDialog  = Drupal.dialog('/node/1', {useAjax: true}); myDialog.show();  I could just create an html link as per my first code block, hide it with css, and then trigger a click on it with JS but this seems a bit hacky - there must be a way to trigger this action using pure JS.


I have a ciphertext which has been padded with spaces from left the message is 31 bytes long and e = 3 how can I recover the message with python code .

The  defines multiple padding schemes for signature generation/verification ( and ),  and encryption/decryption ( and the less safe ).   Which attacks are possible on signature generation/verification and encryption/decryption if no padding mechanisms are applied, i.e. if raw RSA is used over the plaintext or hash?


So I had bought an iPad about 5 years ago (iPad 1), and I found it lying on a shelf, and I thought: why not use it? But it doesn't turn on. I let it charge for 16 hours and it still does not turn on. Also, when it is plugged in, the screen turns on (it's just black but you can see its on) for less than a second and then turns back off. Can someone help me turn it on and get it working?

I have an old iPad and want to give it to a friend.  I plugged it in with a new lead that charges another 1st gen iPad I have, but it's not coming on.  It's not been used for about a year. It's been plugged in now for 20 minutes.  Any ideas?


I was under assumption that nothing changed during transition period but apparently. My friend flew from BHX to DUS on 25/02/2020. It was not allowed to buy any alcohol in duty-free shop except only 3 kinds of beverages... Does someone can comment on this with link to regulations in transition period? Thanks.

On the 20 of March this year I will be flying from Ireland to the UK and then on the another EU country.  Can I buy duty free alcohol (as in alcohol with no tax) leaving the UK ?


I want to set up a WiFi network, like a digital cafe where people can pay to use the internet for 24 hours.  I would need a system of one password per user so one password wouldn't work for 20 people. I'd also need a way for them to pay with PayPal before accessing the internet. Once they paid, they would be given a unique password that would work for 24 hours.  How do I do this?

I want to setup a WiFi network with access through a web interface. Essentially people would be asked to enter a username/password and their session would be valid for X minutes after which they'd be logged out.  I am capable of quite a few programming/scripting languages, but browsing through router settings I don't see how to/where hosted/etc. the web interface/session handling comes in.  Please push me the right direction.


I have created Dynamically Add / Remove Fields. The Add button is working perfectly. But when I click the remove button, it only removes the button and not the fields. Following is my code... Plz help... Thanks...

Allocation of Funds

Allocation Items

Amount

<input type="email" class="form-control" id="exampleInputEmail1" placeholder="Email">

<input type="email" class="form-control" id="exampleInputEmail1" placeholder="Email">

<button type="button" class="btn btn-success" id="add-allocation-fields"></button>

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


Does latest versions of Ubuntu work on older computers like a Compaq Presario that was preinstalled with Windows Vista

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?


Use the definition of convergence to prove if $x_n$ converges to $5$, then  $\frac{x_n+1}{\sqrt{x_n-1}}$ converges to $3$.

Problem: Show that if $x_n\to 5$ then $\dfrac{x_n +1}{\sqrt{x_n -1}} \to 3$.  So I know $|x-5|<\epsilon$ and I need to show that $\left|\dfrac{x_n +1}{\sqrt{x_n -1}} -3\right| < \epsilon$.  I tried applying the triangle inequality (and a bit of algebra) to get $$\left|\frac{x_n +1}{\sqrt{x_n -1}} -3\right| \leq |x_n -5| \left |\frac{1}{\sqrt{x_n -1}}\right| + \left|\frac{6}{\sqrt{x_n-1}} -3\right|.$$  From this I know that $|x_n -5| <\epsilon$ and can show that $\left |\dfrac{1}{\sqrt{x_n -1}}\right|<1$. So my only problem is the second part of the sum. I have no idea what to do with it to get everything to be less than $\epsilon$.


So. My friend asked me to just improve performance of his computer, but I found a little issue. I found out that CPU is the bottlenecker, when I was about to order better CPU (3rd gen - the same gen as previous, but higher clock and i5), I found less powerful i5, but it was 8th gen. The difference is not as big, but I'm curious, how can I compare those?

I want to compare (not precisely, no accurate benchmarking, just the big picture) two CPUs, the one of my main gaming PC (built in Feb 2011) and the one of my newest PC (built last week).  One has an Intel Core i7 870 and the other has an Intel Core i7 3630QM.  One would think that the new one would destroy the other or at least show a noticable difference, and I am only taking about their specifications, not even in practice! and it is not that obvious...  I mean when looking at the specs, the frequencies look close, the number of cores is the same, I mean what in the specs make one of those CPUs better that the other...  Comparing CPUs used to be way easier back in my days ;)


I have installed ubuntu 11.04 Server - 64 bit edition & I want to further use it from GUI. Can any one guide me how to install GUI on top of it.  I get below message on command  The Prog startx is currently not installed. you can install it by typing:  apt-get install xinit   I followed the mentioned instruction but got below message  Reading package lists... Done Building dependency tree   Reading state information ... Done  E: Unable to locate package xinit   Pls suggest.. where to download xinit & how to deploy? Or is there any other way to do it?

Recently I have installed an older version of Ubuntu on my old machine. Whenever I try to install any software, I get an error saying it couldn't be found:  $ sudo apt-get install vlc Reading package lists... Done                Building dependency tree        Reading state information... Done     E: Couldn't find package vlc


Let $W_t$ be a brownian motion.  Show that the set $S=\{t: W_t=0 \}$ is unbounded with probability one. My attempt:  Suppose that there is a set $A$ with positive measure such that $S$ is bounded.  We know that brownian motion is a strong markov process so I'd assume we try to make some sort of stopping time to help us.  For example, $\sup\{t: W_t=0\}$.

Let $B_t, t\ge0$ be a standard Brownian motion that starts at 0. Prove that, for any $\epsilon > 0$,    $$P(\#\{t\in(0,\epsilon]\mid B_t = 0\}=\infty)=1.$$   This is a well-known fact, but surprisingly I cannot find a single proof on this site. The closest I get is , which proves the zero set of a standard Brownian motion restricted to $[0,1]$ is homeomorphic to the Cantor set. However, this proof seems to have utilised unfamiliar properties such as the ternary-expansion construction of the zero set.  Does there exist an elementary proof that only uses the familiar properties of the Brownian motion (normality, independent increments etc.)?


My brother bought a lot of games and game expansions a while ago on our XBOX 360, and I could play those as well. Now we have a new 360 and I can't play them on my account any more, while he can. Is there a way to re-install them without having to purchase them again?  Also: When I launched Skyrim once on his account and then switched back to mine, I could play the expansions, but when I came back to play the next day I couldn't, and logging in on his account no longer worked.

I have purchased and downloaded Minecraft on my old account, and I had to make a new account (on the same Xbox 360 console).   However, now it want let me play the full version of Minecraft, only the trial - it's trying to charge me $19.99 even though I have purchased it on the other account.   Is there any way I can get my copy of Minecraft to the new account and play the full game instead of having to buy it again?


Is there a tag I could add to a ".bat" file so that the "CMD" window won't be displayed?  "C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn\dtexec.exe" /File "\\sqlbi3\Projects\SSIS\TechOne\AirlineBilling\AirlineBilling\PSE3_Report.dtsx" /SET \Package.Variables\[User::BatchId\].Properties\[Value\];"01408" /SET \Package.Variables\[User::UID\].Properties\[Value\];"20200306090134" /SET /Rep EW     I am currently running a DTSX package from a ".bat" file.  The ".bat" file is called by a command line function from a ERP system and everything works well.  However, it would look a lot better if the black command window did not show up (see picture attached).    I appreciate any help on this.

How can I run a CMD or .bat file in silent mode? I'm looking to prevent the CMD interface from being shown to the user.


This problem is from  ( BMO Exam1991 ). I tried to solve but it was difficult.  The problem is:      If $ x^{2} + y^{2} - x $ is a multiple of $ 2xy $ where $x$ & $y$ are integers, prove that $x $ is a perfect square.   Any help or hint please.

Prove that $2xy\mid x^2+y^2-x$ implies $x$ is a perfect square. My work: $2xy\mid x^2+y^2-x \implies x^2+y^2-x=2xy\cdot k$ So,$x^2+y^2+2xy-x=(x+y)^2-x=2xy \cdot (k+1)$ And,$x^2+y^2-2xy-x=(x-y)^2-x=2xy \cdot (k-1)$ I found that for $x,y$ both odd, no solution exists. For $x$ even, and $y$ odd,no solution exists. Solution exists only for $x$ odd, $y$ even and $x$ even and $y$ even solution exists. Cannot do anything more. Please help!


I am importing a data table into a document and want the table to be within the text. When I import with \input{bodyrate}[htpb], the table is placed at the end of the document and [htpb] is printed instead. How do I get the table to be where I import it in the .tex file?  \documentclass[preprint]{aastex} \begin{document} \input{file}[htpb] \end{document}   the table file begins with:  \begin{deluxetable}{lccc} \tablecolumns{4} \tablewidth{0pc}   I tried creating a table environment, but am getting the error: "! LaTeX Error: Not in outer par mode."  \begin{table}     \import{file) \end{table}   Any suggestions?


Is there any PowerPoint alternative? I'm not looking for just a viewer but also a presentation maker.

I am looking for an easy to use light presentation software.  The main features I need are :   Light (on dependencies and resource consumption) Easy to use Align & Distribute information on slide Use pictures Offline editor   The extra features I would like are:   On click animations .ppt Import/export Use templates/themes for easily unified presentation      looks like a presentation tool matching my needs. Unfortunately it is an online presentation editor and I am looking for an offline one.  I don't mind the software being proprietary and for-pay


I really don't know how to write that 'Y' in latex. I have tried many methods but I didn't succeed. Any help will be appreciated.

Is there a command like \bar{...} but such that the bar is placed below the symbol?   Of course there is \underline{...} but then the line is adapted to the width of the symbol and I don't want that (compare with the difference between \overline{...} and \bar{...}).    I need this for math mode.


I have long been interested in something. I know a lot of things about the history of Ubuntu, but I do not know about the name.   So, why is Ubuntu named "Ubuntu"?

What does "Ubuntu" mean, and why did they choose that particular name?


A power-associative algebra is a magma $(M, *)$ where the subalgebra generated by any element is associative. This can obviously be axiomatized by an infinite set of equational identities. Can it also be finitely axiomatized in first-order logic, preferably with only equational identities? I asked this question a while ago, in , but I didn't receive a satisfactory answer.

Let the signature under consideration be $(S,*)$, which is the signature of magmas. Power-associativity can be axiomatized by an infinite set of equations. Can it also be axiomatized by a finite set of equations, or if not, a finite set of first order axioms?


Are these examples correct?  He was so weak nevertheless completed the task? The task was hard to complete but he is the man who nonetheless did that hard task.  My question is, Are these words used as a replacement of the phrase "in spite of"?

I am never quite sure whether to use nevertheless or nonetheless; they seem almost synonymous to me, but I think I might be missing a subtle distinction. Is there a difference, and if so, how do I determine which is right in different circumstances?  I am specifically thinking of sentences such as these:        I am busy Saturday; nevertheless I will come to your party anyway.   I am busy Saturday; nonetheless I will come to your party anyway.      There is a question  that deals with a specific idiomatic usage, but I was thinking of the general type of usage, as given in the party example above.


How do I call a powershell script from python but the ps script lies on a network drive?

How do you call an external command (as if I'd typed it at the Unix shell or Windows command prompt) from within a Python script?


I just viewed  question on Code Review. For me on both Chrome and Edge, the code shoots off way to the right. This messes with the user card, and the hot/related bar:    I can't say I've ever seen this before. The lines are abnormally long though.  (Yes, I know this is the third bug report I've filed. I don't know why everything is breaking around me today).

I've noticed this issue on a handful of other communities, but making the browser window narrow (mine is 1080x960) makes the .post-layout and #sidebar elements overlap. Maybe something to do with the grid CSS? The #mainbar element seems to be the correct width and changing the .post-layout's overflow-x to auto seems to "fix" it  From retrocomputing:    From this post, because we are meta after all:    Specs:   Google Chrome Version 78.0.3904.108 (Official Build) (64-bit) Ubuntu 18.04.3 LTS


I appear to be having some issues with setting up both Mist and Sun Beams for cycles in Blender 2.8. I'm attempting to to get a god ray/fake-volumetric effect from the window in my scenes. However, it doesn't appear that the rays or mist are being calculated correctly. It's supposed to look like a beam of light coming through the windows, now it just looks like a muddy mess!    Here is an example of what I want it to look like:    Here is the blend file as well if this helps any:    I'm using an HDRI map to light the scene.  This is the node set-up I'm trying to go for:

I have a scene below where I am wanting to get an HDRI image to come in through the windows and light the scene in the window areas and have a god ray like effect.  I want to do this with a volumetric effect and have the HDRI lighting create throw patterns in the scene.  Is this possible?  To have volumetric lighting where the HDRI creates throw patterns?  Thanks for the help


I will be reaching DMK by Indonesia Air Asia and have a connecting flight to India in Thai Air Asia. Layover is 9 hrs.  Please help me out if I will need a transit visa in Thailand.  PS: I have an Indian passport. I do not intend to leave Bangkok airport and my tickets were purchased under one booking number.

I have a flight from Bangalore, India to Manila, Philippines via Bangkok. It’s with the same airline (Thai Airways) but I will have to spend 10 hours in the airport at Bangkok for the connecting flight to Manila. Do I need a transit visa for Bangkok? Also, do I have to pass through immigration with luggage at Bangkok? I don’t have a visa for the Philippines as I will be staying there for a week. I have an Indian passport and a UK standard visit visa.


When you receive a notification on , or in the network profile, you'll see the usual red note box:  But clicking the inbox icon and then clicking on a space away from it doesn't dismiss it.  It only disappears if you click a link to visit another page.

When going to any page of  with a new reputation gain, the achievements dropdown keeps showing a new badge green highlight:    And then trying to dismiss the notification by clicking on it gets rid of the green badge notification, but the +5 remains even after I've clicked away from the dropdown.


I saw this piece of code being used to iterate over a 2D list column-wise:  """ grid: List[List(int)] """ for col in zip(*grid):     ...   Could someone explain exactly how this works?  EDIT:  Duplicate of  question, but not  one.  I still don't understand exactly how zip(*_) converts rows into columns.

In the following method definitions, what does the * and ** do for param2?  def foo(param1, *param2): def bar(param1, **param2):


I'm currently using Windows Xp need to keep it on and install Ubuntu 14.04 LTS can I keep both OS on one HDD dual boot?I wouldn't with virtual box.

I would like to see a full how-to guide on how to install Ubuntu.


When i Draw a texture2d or a font with spriteBatch and also draw GraphicsDevice.DrawIndexedPrimitives, the frame is draw weird  SpriteBatch  spriteBatch = new SpriteBatch(GraphicsDevice); BasicEffect basicEffect = new BasicEffect(GraphicsDevice);  protected override void Draw(GameTime gameTime) {         GraphicsDevice.Clear(Color.LightSteelBlue);                 RasterizerState rasterizerState = new RasterizerState();     rasterizerState.CullMode = CullMode.None;     GraphicsDevice.RasterizerState = rasterizerState;      //for(...) {     GraphicsDevice.SetVertexBuffer(vertexBuffer);     GraphicsDevice.Indices = indexBuffer;      foreach (EffectPass pass in basicEffect.CurrentTechnique.Passes)     {         pass.Apply();         GraphicsDevice.DrawIndexedPrimitives(PrimitiveType.TriangleList, 0, 0, 8, 0, 20);     }     // } end for       spriteBatch.Begin();     spriteBatch.DrawString(MainFont, "FPS: " + Math.Round(1 / (float)gameTime.ElapsedGameTime.TotalSeconds, 2), new Vector2(200, 10), Color.Red);      spriteBatch.End();     How can i solve this ?

I have gone through a few posts that talks about changing the GraphicsDevice.BlendState and GraphicsDevice.DepthStencilState (). . however even after changing the states .. i cant see my 3D model on the screen.. I see the model for a second before i draw my video in the background. .  If i dont play my video then i can see the 3D model ..Here is the code:  GraphicsDevice.Clear(Color.AliceBlue); spriteBatch.Begin();  if (player.State != MediaState.Stopped) {     videoTexture = player.GetTexture(); }  Rectangle screen = new Rectangle(GraphicsDevice.Viewport.X, GraphicsDevice.Viewport.Y, GraphicsDevice.Viewport.Width, GraphicsDevice.Viewport.Height);  // Draw the video, if we have a texture to draw. if (videoTexture != null) {     spriteBatch.Draw(videoTexture, screen, Color.White);      if (Selected_underwater == true)     {         spriteBatch.DrawString(font, "MaxX , MaxY" + maxWidth + "," + maxHeight, new Vector2(400, 10), Color.Red);         spriteBatch.Draw(kinectRGBVideo, new Rectangle(0, 0, 100, 100), Color.White);         spriteBatch.Draw(butterfly, handPosition, Color.White);          foreach (AnimatedSprite a in aSprites)         {             a.Draw(spriteBatch);         }                            }      if(Selected_planet == true)     {                     spriteBatch.Draw(kinectRGBVideo, new Rectangle(0, 0, 100, 100), Color.White);         spriteBatch.Draw(butterfly, handPosition, Color.White);         spriteBatch.Draw(videoTexture,screen,Color.White);          GraphicsDevice.BlendState = BlendState.Opaque;         GraphicsDevice.DepthStencilState = DepthStencilState.Default;         GraphicsDevice.SamplerStates[0] = SamplerState.LinearWrap;          foreach (_3DModel m in Solar)         {             m.DrawModel();         }     }     spriteBatch.End();


When deleting files there is always a small popup with undo in GNOME Files (Nautilus), which overlays other files and is pretty disturbing. How can I disable the notification within the application?

When I send a file to the Trash using the delete keyboard button, a popup appears at the top of the nautilus window, saying that the file has been removed, and showing a button to undo the operation.  I find this extremely annoying, because I can't click anything below that popup, and I have to wait until it disappears. Besides, I can undo the deletion with just a ctrl+Z, so I don't find it at all useful.  How can I get rid of this notification? I've looked in the preferences but there's nothing about this.  I have Ubuntu 18.04 and my GNOME version is 3.28.2.


Our fully operational Internet-facing OS X Server with its own OD Master needs to be moved to a new Mac with newer, larger disks.  How do we achieve this with the minimum disruption to our users?    Would this strategy work?    Temporarily take the old machine offline whilst we 'recover' the old OS X Server to the new Mac either from Time Machine or directly from the old machine.   Put the new machine online with the same network name and IP number as the old machine?

I have a Mac Mini with Mac OS X 10.6 Server installed. It has two external drives attached to it. One is for Time Machine and other contains data. I have bought the latest Mac Mini with Mac OS X 10.7 and two new hard drives. I want to migrate to the new hardware (the new Mac Mini and the new hard disks). Can Migration Assistant do that for me or do I have to transfer the data in the external drive manually?


I recently installed Ubuntu on a school laptop, I still have windows OS, i can choose to load Ubuntu, or Windows. So I guess it's running on the side? I'm not very tech savvy, and I want to uninstall ubuntu and it's partitions without losing the Windows OS; if that's possible.. when I shut it down then turn it on it sometimes boots into ubuntu automatically.

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 have a Lubuntu machine and I want to join it to a Windows domain. I've read that you need to download extra software to make this work, does anybody have any suggestion??

Sorry if I am misusing terms here; I actually don't know much about Active Directory and the related technologies.  Basically I have a Linux computer and I'd like it (or my user on that computer) to be associated with my user on the Domain, so that I can browse the network and all that stuff windows has.  Is this feasible?  What do I need to look into to do something like this?


im trying to check if a row in my csv file has a usage that says "Training", "PublicTest", or "PrivateTest" (Each row is classified as one of these three, except even though usage is the word "Training", the program recognizes it as not the same word, anything I can do to fix this?  training_data = [] test_data = []  train_images = [] train_labels = []  test_images = [] test_labels = []  def format_data(path):     for row in open(path):         idx = 0         with open(path) as d:             emotion, image, usage = d.readlines()[idx + 1].split(",")              if usage is "Training":                 train_labels.append(int(emotion))                 imageArr = []                 imageArr.append(image)                 train_images.append(imageArr)                 print(train_images)              elif usage is "PublicTest" or usage is "PrivateTest":                 test_labels.append(int(emotion))                 imageArr = []                 imageArr.append(image)                 test_images.append(imageArr)                 print(test_images)              idx += 1               print("This row has been iterated over!")         # print(row)               # add any more formatting      # train_images/255.0     # test_images/255.0   def load_data():     return train_images, train_labels, test_images, test_labels   format_data(path)```

My  has failed me.  In Python, are the following two tests for equality equivalent?  n = 5 # Test one. if n == 5:     print 'Yay!'  # Test two. if n is 5:     print 'Yay!'   Does this hold true for objects where you would be comparing instances (a list say)?  Okay, so this kind of answers my question:  L = [] L.append(1) if L == [1]:     print 'Yay!' # Holds true, but...  if L is [1]:     print 'Yay!' # Doesn't.   So == tests value where is tests to see if they are the same object?


We know that the forging power of Mount Doom was legendary and vastly powerful. And I see from other questions here that Sauron kept the forge at Mount Doom essentially crafting things.  My question is, excluding the One Ring and the other Lesser Rings of Power,  are there any other named artifacts in Lord of the Rings and Middle Earth Lore that are attributed to Sauron's craftsmanship or specifically tied to the Mount Doom Forge?  I think it would be awesome to do some fan fiction about a quest for one of these other legendary items that maybe has nothing to do with the One Ring, and could even be written as a side note to the events of the Fellowship.

Sauron knew that the One Ring could be destroyed only in Mount Doom, where it was forged. From Sauron's perspective, no one would think about destroying the One Ring. But if someone did, then Mount Doom would be the only place to do so.  Why did he keep Mount Doom active? Wasn't the risk too high?


Let $A$ and $B$, be two $n\times n$ matrices such that $A=P^{-1}BP$   for some invertible matrix $P$. Show that both $A$ and $B$ have the   same minimal polynomial.   I'm not sure how to approach this. The only method I know to find minimal polynomial of a matrix is to estimate from its characteristic polynomial using the fact that characteristic polynomial and minimal polynomial must have same roots. Any hints/suggestions?

It's a simple exercise to show that two similar matrices has the same eigenvalues and eigenvectors (my favorite way is noting that they represent the same linear transformation in different bases).   However, to show that two matrices has the same characteristic polynomial it does not suffice to show that they have the same eigenvalues and eigenvectors - one needs to say something smart about the algebraic multiplicities of the eigenvalues. Moreover, we might be working over a field which is not algebraically closed and hence simply "don't have" all the eigenvalues. This can be overcome, of course, by working in the algebraic closure of the field, but it complicates the explanation.  I'm looking for a proof that is simple and stand-alone as much as possible (the goal is writing an expository article about the subject, so clarity is the most important thing, not efficiency).


Do I need to use articles in front of proper nouns that are used as adjectives?  Examples:  "I joined [the] Warp Engine team."  "I want to share [the] Warp Engine roadmap with you."

I'm writing a leaflet for children from primary schools who will visit our school.  Is it correct to write:     the "amerigo vespucci" school is waiting for you!!!!   Is the use of the definite article correct in this case? I am defining which school is waiting for them, I'm saying we and no others but us are willing to meet them?


I would like to know how to include javascript color code inside a LaTeX document ?

I am afraid that listing doesn't support javascript.  \begin{lstlisting}[language=javascript] ... \end{lstlisting}   What am I doing wrong?


USA citizen with American passport: would I need a transit visa at Narita Airport on my way to/from Australia?

I will be transferring between two international flights at Tokyo Narita airport. I'm scheduled to depart the same day I arrive. I am planning to stay within the airport during the layover. Does anyone know if I will require a transit visa at Narita?


Let V=(2,∞). For u,v∈V and a∈R define vector addition by u⊞v:=uv−2(u+v)+6 and scalar multiplication by a⊡u:=(u−2)^a+2. It can be shown that (V,⊞,⊡) is a vector space over the scalar field R. Find the following: the sum: 6⊞10=34 the scalar multiple: −3⊡6=2.015625 the additive inverse of 6: ⊟6= the zero vector: 0V=3 the additive inverse of x: ⊟x= As you can see I found the sum and the scalar multiple as well as the zero vector.However, I tried doing the additive inverse of 6 and the additif inverse of x, but I have no idea on how to find the answers.

Hey so I got a question about Vector spaces      Let $V=(8,\infty)$. For $u,v$ in $V$ and $a$ in $\mathbb R$ define vector addition by $u\boxplus v:= uv-8(u+v)+72$ and scalar multiplication by $a\boxdot u :=(u-8)^a +8$. It can be shown that $(V,\boxplus,\boxdot)$ is a vector space over the scalar field $\mathbb R$. Find the additive inverse of 16.    So what I did was find the zero vector which is 9, and set u to 16, but that was the incorrect answer. So I'm confused as to how you find the additive inverse.  Thanks!


How can i bypass the activation screen of iPhone 5s (a1530) without sim card in india. The emergency call method is not working.

I bought a used iPhone 4.  The previous owner re-set the phone, but did not remove the device from their iCloud.  It is asking me for their iCloud information when I try to set-up the phone.  I don't have contact with the previous owner anymore.  Is there a way to remove the device from their iCloud so I can use a new one?


I am testing a piece of code that limits decimal precision to 2 digits. Its giving me different results when operations performed combined vs performed separately.  //Performed combined float result_a = ((int)(v * 100.0f)) / 100.0f;  //Performed separately float result_b = v * 100.0f; result_b = (int)result_b; result_b /= 100.0f;   if v is '12.33', result A gives me '12.32' and result B gives '12.33'.

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


Now here's what I want to do - I have a lot of Movie DVD's and Bluerays.  I want to copy some of them to my HDD.  In Windows I know how to do this,  but not in Ubuntu.  With Windows u use a DvD Ripper,  what can u use in Ubuntu ?  I would be glad for a solution - thanx !!!

I have several DVD I want to transfer to my Hard drive. I want to have the DVD menu and such. Not only the movie. I was sure that ripping the movie will do the trick but it didn't work. What can I do then?  I tried dvd::rip and acidrip. Both aren't that clear to operate.


When booting 1904 LiveCD from a Hyper-V VM, I get some error messages:   Spectre V2:Spectre mitigation: LFENCE not serializing, switching to generic retpoline Couldn't get size: 0x800000000000000e systemd[1]: dev-loop0.device: Failed to set invocation ID for unit: File exists systemd[1]: dm-event.socket: Failed to set invocation ID for unit: File exists   After these errors, the Ubuntu splash screen with the red/white five dots stays forever. This happens for any of the 5 first options in the LiveCD GRUB menu, and the only way to regain control is turning off the VM. When selecting "Check disc for defects", I get the same errors, and then "Check finished: no errors found".  The same VM boots LiveCD 1804.2, installs, updates and runs 1804 without a problem.  I tried allocating more and less processors to the VM, enabling and disabling secure boot, enabling and disabling dynamic memory, without any success.  These problems with 1904 only happen in a new PC I built with a X570 chipset and a Ryzen 5 3600X. On a older PC I had, with an Intel Ivy Bridge 3570k and Z77 chipset, 1904 installed OK in Hyper-V. In both cases, the latest version of Windows fully updated was used.  I suppose Hyper-V there is some kind of incompatibility between Ubuntu 1904 and Hyper-V on Ryzen. Does anybody have a similar problem?  Thank you

I am trying to install Ubuntu 19.04 (or any other Linux distro) on a new HW consisting of Ryzen 3900X CPU, Gigabyte Auros Master X570 motherboard and AMD Radeon Vega 64 GPU. On installation startup from a bootable USB drive, it shows "Ubuntu" with 5-6 dots underneath representing installation progress. However, it is perpetually stuck in that mode. When I press ESC, it shows dozens of lines of failure messages.  I searched internet for a clue as to what is causing this and to fix it with no avail. Some suggest Gigabyte motherboard is not fully compatible with Linux. I have tried the same with Manjaro but again similar failures. I have tried changing IOMMU to "enabled" but did not work either.  Can anyone help? Although I have used Ubuntu, my technical knowledge is very limited in attempting to resolve the issue.   If other ditro will work, I am willing to use it. But Ubuntu is my preference.


Is there an idiom/ phrase/ expression or proverb that conveys this meaning:  "As long as there is a more simple solution for solving a problem don't choose a more complicated one." or: "when you can do something in a more simple way, why do you use a  more difficult way?"  we  use this proverb in Farsi:     "When you can open a knot with your hands, you don't have to open it with your teeth!"   Suppose that there are some different ways for solving a problem (and all of them will work),  if you choose the most complicated solution among those available ways, instead of trying the more simple ones at first, you'll be criticized by being told this proverb. (It doesn't necessarily mean that your making the problem bigger, it just mean that you postpone solving the problem by using that complicated available solution).  You can use this proverb specially in political issues, for example; as long as negotiation can work, there in no need to use military actions.  Edit( sep 25th):  I just found this proverb: "Cross the stream where it is shallowest."  Do you think that it could be the answer to my question?

So I know I've heard this saying in American English before but I just can't quite find the original.  I have come up with several made up variations like:   I don't send the Navy (or whole army, or a battalion) when all you need is a diplomat. Don't buy the whole cow when all you need is milk.   What's the more commonly heard saying/phrase for this of expression?


In my activity app I can see the an entity in red:    The process name says "com.apple.hiservices-xpcservice (Not Responding)"  What is this service? What is the impact if I kill it? How can I stop it from reappearing? There were some discussions on apple community forums but I cannot find the answers to my questions.

Update (2019): The issue still persits even in macOS Mojave, tried everything I could find, nothing seems to solve the issue as of yet! Problem: com.apple.hiservices-xpcservice hangs repeatedly ever since I upgraded to macOS Mojave 10.14.1. Now,everytime the process hangs it is indicated by red colored fonts in the Activity Monitor. Due to the frequent hangs my system slows down and it's barely usable due to extremely slow performance. What I have done so far: I have already Googled it (The Process) and also contacted Apple regarding the usage of this process and the reason behind it's frequent hick-ups. Alas! they couldn't help much. So, I terminated the process. Temporary Solution: As soon as I terminated the process (com.apple.hiservices-xpcservice) my mac started running fast once again. But, whenever I restart the system or leave the mac idle for a few minutes and then if I start using it once again! out of no where, the process (com.apple.hiservices-xpcservice), shows up once again in the activity monitor resulting in slow performance issues along with hangs and freezes across macOS. System Info: Model iMac (27-inch, Mid 2014) Processor 3.5GHz quad-core Intel Core i5 processor (Turbo Boost up to 3.9GHz) Configurable to 4.0GHz quad-core Intel Core i7 (Turbo Boost up to 4.4GHz). Memory 8GB (two 4GB) of 1600MHz DDR3 memory; four SO-DIMM slots, user accessible Configurable to 16GB or 32GB. Storage 1TB Fusion Drive Screenshot Of The Process com.apple.hiservices-xpcservice


I have AutoHotKey, but am not smart enough to get the correct syntax for the script.  I have tried space::controlshiftQ and controlshiftq::space.  Keeps telling me I have unrecognized action.  Cannot find this specific question in all of their help pages.  What do I need to put in the script to get the computer to recognize that when I push the space bar, I want it to recognize that as pushing control,shift,and the letter Q all at the same time?

I want to combine CapsLock Alt k keys in a single hotkey, such as this:  CapsLock & !k:: Send !{Up}   This doesn't work because Autohotkey doesn't allow the combination of more than two keys except the modifier keys.   Searching for a  I found out that using scan codes in left hand side might be a work around, such as:  SC035 & !k:: Send !{Up}   I tested this solution too but this doesn't work properly neither. In this case, pressing CapsLock+k triggers the hotkey.


New PC build with RTL8125B network chipset. I know its not yet supported in Ubuntu and I want to check before (!) creating a live USB stick if the new driver is integrated in any version updates. How can I check for specific driver support without creating a live USB or full installation?

So I did a fresh install of Ubuntu 20.04 on a computer with the new RTL8125B Realtek network card and I cannot get the network to work. I was very suprised since this is supposed to be the new feature of the 5.4 kernel (I have 5.4.0-26-generic installed). Does anyone have any idea on how to get it working? Thank you. $ lspci -knn | grep Eth -A3 06:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller [10ec:8125] (rev 04) Subsystem: ASUSTeK Computer Inc. RTL8125 2.5GbE Controller [1043:87d7] Kernel modules: r8169 07:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev e7)  $ dmesg | grep -i r8169 [    0.911236] r8169 0000:06:00.0: unknown chip XID 641


A professor of English from English and foreign language university corrected "do the needful" as "do what is necessary. some others say "do what needs to be done" I hope the native speakers of English will respond to my question and talk about the acceptability of all these expressions  Edit: it is not a duplicate because I wanted to know whether the expression is acceptable to native speakers.I did not ask why such an expression is asked instead of a question

Update: (Originally this was a comment, but I thought it was worth sharing here at the top.)   In the original question, I asked if there was a polite, socially-acceptable way to ask an Indian co-worker not to use the phrase "do the needful", as I didn't care for it.   In the years since I asked this question I've asked many people about the phrase. To the Indians I've asked in-person, it's not rude in any way. To Americans I've asked it varies anywhere from "I don't like it, but I don't mind it" to "It's very rude and makes me angry when I see it".   Through a long series of edits the question morphed and I wasn’t able to delete it because it had upvoted answers. The question, as it stands now, has no other answer.  I guess, though, if you're non-Indian and you find it rude, or if you're Indian and you've never realized someone might find it rude, this post may still have merit. Hopefully it does. It certainly has gotten a lot of views. Best wishes, folks.  End Update. See below for what's left of the actual question.    "Do the needful."   It's a phrase that I've only seen used in email, and I find it . . . presumptuous (maybe even rude). Regardless of prefacing with "please", one is commanding rather than asking for assistance.  I've only seen it used by those of Indian origin, so I've simply not mentioned it at all rather than worry about any cross-cultural offense that may come of bringing it up.  But still, I don't understand why it's used. Why not request rather than make two statements, one factual, one imperative?  For example, why would one use:        I'm told you have Jane's email address. Please do the needful.      instead of,        Would you send me Jane's email address?


I want to type math equation in section headers, but I had some error with \tableofcontents command.  When I compile this file  \documentclass{book} \usepackage[utf8]{inputenc} \begin{document}  \chapter{Chapter 1} \section{This is an equation: \(x=1\)}  \tableofcontents  \end{document}   It gives out these error  Bad math environment delimiter. ...ak or <return> to continue without it.}}{1} Extra }, or forgotten $. ...ak or <return> to continue without it.}}{1} Missing $ inserted. ...ak or <return> to continue without it.}}{1} Missing } inserted. \tableofcontents   But this file compile just fine  \documentclass{book} \usepackage[utf8]{inputenc} \begin{document}  \chapter{Chapter 1} \section{This is an equation: $x=1$}  \tableofcontents  \end{document}   So what is the cause of this error? Is there any way to use \(...\) in the section header, or I have to use $...$?

If I write this line of code  \subsection{Ranger \( n \) boules distinguables dans \( M \) boîtes}   I obtain an error over the second \)  (./Probabilité.toc  ./Probabilité.toc:8: LaTeX Error: Bad math environment delimiter.   while if I write  \subsection{Ranger $ n $ boules distinguables dans $ M $ boîtes}   everything is ok.   Why? \(\) has problems with TOC?


Metric tensor multiplied by its inverse. I always see this with different indices.

This suggests, as a shortcut notation, the concept of lowering indices; from any vector we can construct a (0, 1) tensor defined by contraction with the metric: $$A_\nu ≡ g_{\mu\nu}A^\mu$$  so that the dot product becomes $$g_{\mu\nu}A^\mu B^\nu = A_\nu B^\nu$$  We also define the inverse metric $g^{\mu\nu}$ as the matrix inverse of the metric tensor: $$g^{\mu\nu}g_{\nu\rho} = δ^\mu_\rho$$  where $δ^\mu_\rho$ is the (spacetime) Kronecker delta. (Convince yourself that this expression really does correspond to matrix multiplication.) Then we have the ability to raise indices: $$A^\mu = g^{\mu\nu}A_\nu$$ Note that raising an index on the metric yields the Kronecker delta, so we have $$g^{\mu\nu}g_{\mu\nu} = δ^\mu_\mu = 4$$  I don't understand why $δ^\mu_\mu = 4$. Shouldn't it equal 1?


I want to apply a transparent texture to an emssion node in a way that the the emission node will emit just from the not transparent parts of the image texture.  How to achieve this effect ?  Here' s a Picture of it

After converting to nodes in order to render using Cycles I've no idea where to enable the z-transparency. I guess the image textures alpha channel needs to be pluged somewhere but I've no idea which node would be suitable.   The question is how could I correctly setup the nodes to have the same effect as when using z-transparency in BI?      The materials original settings for BI are:    Which renders like:    I had no luck with DarenWs suggestion:


I have a text file that I first want to print the last 6 lines of, and then to detect when a new line has been added so that it will keep updating the screen with recent activity. The idea is that I'm trying to display six recent transactions made in my program.   The problem I am currently encountering is that it keeps printing the first (not last) six lines in the text file, when I want it to be the other way around.     Here is my sample code:    BufferedReader in = new BufferedReader(new FileReader("transaction-list.txt"));    System.out.println();   System.out.println("SIX MOST RECENT TRANSACTIONS:");   System.out.println();    String line;    for (int i=0; i<6;i++){     line=in.readLine();     System.out.println(line);   }    in.close();  }catch (IOException e){   e.printStackTrace(); } break;

I'm wondering what techniques and/or library to use to implement the functionality of the linux command "tail -f ".  I'm essentially looking for a drop in add-on/replacement for java.io.FileReader.  Client code could look something like this:  TailFileReader lft = new TailFileReader("application.log"); BufferedReader br = new BufferedReader(lft); String line; try {   while (true) {     line= br.readLine();     // do something interesting with line   } } catch (IOException e) {   // barf }   The missing piece is a reasonable implementation of TailFileReader.  It should be able to read parts of the file that exist before the file is opened as well as the lines that are added.


I see that when I type a double backslash (\\) in a comment on Stack Overflow, it prints only a single \, escaping the \ character. Is escaping this character necessary in the comments section?

`\`    should be rendered as an escaped backslash but it actually ends up displayed as an escaped backtick.


These guys appear to be scraping content from StackExchange sites and replacing some of the words with synonyms, possibly to avoid page rank issues with duplicate content.  http://developerquestion.com  Take for example this post: http://developerquestion.com/mysql-errcode-17-cant-createwrite-to-file-tmp/  The original on ServerFault:   It's an interesting find. I wouldn't mind the scraping so much if the content was not messed around with. Some of the language doesn't even make sense. They have also ripped off the entire layout of the site.

Is developerquestion.com a Stack Exchange ripoff, or is there some valid connection to SE? I.e. does it use the Stack Exchange framework (it really looks very similar)?  Interestingly, it mirrors all the questions of the Stack Exchange sites. Unfortunately, the site does not contain any "about" info at all.


The bottom 3.5cm of a plastic block is submerged in water from the lower end of a spring. Why doesn't atmospheric pressure affect the position of the object?   My book says the downward force exerted is cancelled by the upward force of the water on the object. How is that possible if the downward force is on the water and the upward force on the object? Please explain with a diagram if possible. I'm very confused.

Let us say I have a beaker floating in a water tank. Suddenly I put some water in the beaker also. The figure here shows the exact situation   Now I want to draw the FBD of the beaker. I am somehow confused with the role of the atmospheric pressure in drawing the FBD. I thought of two ways of drawing this and I am just unable to figure out which one is right.    Here since the beaker is floating an $F_{buoyant}$ is there in the upward direction which the net mass (beaker+water in beaker) would put its weight downward.  But while solving one question I came to know that total force that a liquid exerts on the bottom of the container is $P_0+m_{liquid}g$ ($P_0$ is the atmospheric pressure). So should the downward force on the beaker be $(M_{beaker}+M_{water in beaker})g+P_0 S$ (S being the base area of the beaker) as in the second diagram down here.    Here the $P_0S$ due to atmospher on the tube gets cancelled by the $P_0S$ exerted by the water in tank on the tube. But what about the $P_0S$ from the water present in the tube? Do the FBD's apply like the one in the new image?


Is there any way to create real font set from the vector shapes created in Illustrator CS6?  I have a set of the vector shapes - 26 letters of English alphabet, I can copy every letter to make title etc, but I wanted to create a real font to type on keyboard as usual.

I have recently created my own font/typeface with Adobe Illustrator, and I would like to use it as a real font (e.g I would like to use it as I type something).   Is this possible in Adobe Illustrator or would I need a different software?   If so what program would be good for creating a font?


Hey guys Im a little confused with the concept of plane waves and how to perform an expectation value. Let me show you by an example. Suppose you have a wave function of the form  $\psi_{\boldsymbol{p}_{0}}(x)=f(p_{0})e^{\frac{i}{\hbar}\boldsymbol{p}_{0}\cdot\boldsymbol{x}}$  where $\boldsymbol{p}_{0}=(0,0,p_{0})$ and suppose you want to perform an expectation value of the position of the particle, that is  $<x>=f^{2}(p_{0})\int\,d^{3}\boldsymbol{x}\,x\,e^{\frac{i}{\hbar}\boldsymbol{p}_{0}\cdot\boldsymbol{x}}e^{-\frac{i}{\hbar}\boldsymbol{p}_{0}\cdot\boldsymbol{x}}=f^{2}(p_{0})\int\,d^{3}\boldsymbol{x}\,x$  wich I think is nonsense. But if you define an arbitrary momentum vector $\boldsymbol{p}'=(p_{1}',p_{2}',p_{3}')$, and perform the transition probability  \begin{align} \left<\psi_{\boldsymbol{p}'}(\boldsymbol{x})|\,x\,|\psi_{\boldsymbol{p}_{0}}(\boldsymbol{x})\right>&=f(p')f(p_{0})\int\,d^{3}\boldsymbol{x}\,xe^{-\frac{i}{\hbar}(\boldsymbol{p}'-\boldsymbol{p}_{0})\cdot\boldsymbol{x}}=f(p')f(p_{0})\int\,d^{3}\boldsymbol{x}\left( i\hbar\frac{\partial}{\partial p_{x}'}\right)e^{-\frac{i}{\hbar}(\boldsymbol{p}'-\boldsymbol{p}_{0})\cdot\boldsymbol{x}}= \\ &=i\hbar f(p')f(p_{0})\frac{\partial}{\partial p_{x}'}\delta^{3}(\boldsymbol{p}'-\boldsymbol{p}_{0})=-i\hbar\delta^{3}(\boldsymbol{p}'-\boldsymbol{p}_{0})\frac{\partial}{\partial p_{x}'}\left( f(p')\right)f(p_{0}) \end{align}  where I made use of the property $f(x)\delta'(x)=-f'(x)\delta(x)$. So now with my new expresion I have a meaningful result and I can evaluate for $\boldsymbol{p}'=\boldsymbol{p}_{0}$ and get a result that I wasnt able to get with the first method. What I'm doing wrong or the the second way is the correct way to do it? Thanks!

For a free particle of mass $m$, with Hamiltonian  $$\hat{H} = \frac {\hat{P}^2} {2m},$$  where $$\hat{P} = -i \hbar \frac{\partial} {\partial x}.$$  The commutative relation is given by  $$[\hat{X}, \hat{H}] = \frac {i\hbar} {m} \hat{P}\tag{1}$$  In the common eigenstate of $\hat{H}$ and $\hat{P}$, $|e, p\rangle$, can we do the following?  $$\langle e, p| [\hat{X}, \,\hat{H}] |e, p\rangle = \langle e, p|\hat{X} (\hat{H}|e, p\rangle) -  (\langle e, p|\hat{H}) \hat{X}|e, p\rangle  \\ = \langle e, p|\hat{X} (e|e, p\rangle) -  (\langle e, p|e) \hat{X}|e, p\rangle \\ = e( \langle e, p|\hat{X}|e, p\rangle -  \langle e, p|\hat{X}|e, p\rangle ) \\ = 0 $$  Since the $\hat{H}$ is Hermitian, the above derivation doesn't seem to show any flaw. Given the commutative relation, Eq (1), we know the result is wrong. What's wrong with the above derivation?  [EDIT]  Following the comment by Luboš Motl, I have worked out the solution and would like to share it here. The link provided by Qmechanic had the solution closely related to this question.  $$ \langle e', p'| [\hat{X}, \,\hat{H}] |e, p\rangle \\ = \langle e', p'|\hat{X} (\hat{H}|e, p\rangle) -  (\langle e', p'|\hat{H}) \hat{X}|e, p\rangle  \\ = (e - e') \langle e', p'|\hat{X}|e, p\rangle $$  Note that:   $$ e - e' = \frac{p^2}{2m} - \frac{p'^2}{2m} = \frac{(p+p')(p-p')}{2m} $$  $$ \langle e', p'|\hat{X}|e, p\rangle = -i\hbar \delta'(p - p') $$  where $\delta'(\cdot)$ is the derivative of the Dirac function, with respect to $p$.  Then we get  $$ (e - e') \langle e', p'|\hat{X}|e, p\rangle \\ = -i\hbar \frac{(p+p')}{2m} \cdot (p - p')\delta'(p - p') \\ = - \frac{i\hbar (p+p')}{2m} \cdot (-\delta(p - p')) \\ = \frac{i\hbar (p+p')}{2m} \delta(p - p') $$  As we take the limit $p \rightarrow p'$:  $$ lim_{p \rightarrow p'}    \frac{i\hbar(p+p')}{2m} \delta(p - p') \\ \rightarrow \frac{i\hbar}{m} p \delta(p - p') $$


My question explains it all. I don't know how else to explain my question.

I’ve been told that a greater binding energy means the nucleus is more tightly bound, and therefore that decreases the mass of the nucleus with respect to its nucleons when separated. But why does a tighter nucleus mean a smaller mass?


How can I covert single column from SELECT DISTINCT Query into a string with list of query results separated by commas.  My SQL Query example:  SELECT DISTINCT FirstName FROM CompanyA WHERE DIV_Num in ('SUB.EAST', 'SUB2', 'SUB3', 'HR.SUB', 'HR.SUB2')   Output example:  Bob Alice Jim   I would like to have result in single string:  Bob, Alice, Jim

Consider a database table holding names, with three rows:  Peter Paul Mary   Is there an easy way to turn this into a single string of Peter, Paul, Mary?


I am new to Ubuntu. I have an old Samsung netbook with a 1.6GHtz processor and only 0.99GB RAM. Can I run last desktop version on this machine?

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?


The question is how to call the base constructor from an inherited template class. I want to create a FixedQueue and overload some function in std::queue. Therefore std:queue is the base class. The keyword using, since c++11, can be used to call the base and it works if this is a specialised class, but I cannot get it working with a template class.   Furthermore I tried it to use the old c++ standard in which I simply invoke the defined constructors in std::queue. However it doesn't work.   h file  #ifndef _HEADER_FIXED_QUEUE_ #define _HEADER_FIXED_QUEUE_  #include <queue> #include <iostream>  template<class T>  class FixedQueue : public std::queue<T> {   //using queue<T>::queue<T>;    public:     FixedQueue();     FixedQueue(const T &initial_var);     void foo() { std::cout << "inside\n"; }  };  #endif   cpp file  #include "FixedQueue.h"  template<typename T> FixedQueue<T>::FixedQueue() :   std::queue<T>() {    std::cout << "Default Constructor FixedQueue\n"; }  template<typename T> FixedQueue<T>::FixedQueue(const T &initial_var) :   std::queue<T>(initial_var) {    std::cout << "Specialized Constructor FixedQueue\n"; }   main file.  #include <iostream> #include "FixedQueue.h"  int main() {   FixedQueue<int> d_frameSlices;     std::cout << "I want to do something with my queue\n"; }   The question is thus. How do I chain the constructors to the defined constructors in the base class std::queue. The template thing is killing me.  This is the error message I obtain from clang, which is the usual undefined reference.  Undefined symbols for architecture x86_64:   "FixedQueue<int>::FixedQueue()", referenced from:       _main in main-lqoFSA.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)   If someone knows how to do this with "using" or the old fashion way I am happy with both. Thanks in advance

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


I was wanting to make a greenhouse out of glass, and I want my house to be spider proof. I have read that glass planes, but could not find suitable information concerning glass blocks.  Can spiders climb glass blocks?

I'm building a spider spawner exp farm, and I have everything planned out.  Now the only thing is to build it. But what material should I use?  Are there any blocks that a spider (either type) just cannot hold on to the sides of?  My farm should function if there are none, but it would be a huge boost to convenience and efficiency if there are any such blocks.  Keep in mind that this question is not the same as  question which just asks how to make your house safe from spiders.


I'm new to the web engineering and I have done some searching for URL/Domain masking. In my company, my HOD asked one question during meeting and wants the answer in the next meeting. He asked that why are some sites will hide their real file type?  E.g. http://example/examplefolder/page.NET into http://example/examplefolder/page.html. Why the extension of the pages will always end up in html? Is is the reason to prevent some curious outsider from trying to attack the web site? Is this related with URL rewritting?

Many times I see that URL extensions are hidden (e.g. .html, .php), but not all websites do this.  Why do webmasters hide the extension? Is it for security, for the URL to look cleaner, or for some other purpose?


I want to make a power LED in a small device I'm making, using 220V.  Are my conclusions correct?         – Schematic created using   Assumptions   The forward voltage of D1 is negligible (due to 220V mains power)   Calculations   Amperage: V = I * R <=> I = V / R = 220 / 22000 = 10 mA Wattage: P = V * I = 220 * 0.01 = 2.2 W LED amperage: 10 mA / 2 = 5 mA (because of 50% duty cycle due to AC power)   Conclusions   It is safe to use a 3W, 22 kOhm resistor (well within 2.2 W). The LED would led up like 5 mA (in a DC setup), which is bright enough for a notification LED.

Answers to other questions here (e.g. ) show capacitors used to drop AC voltages to levels suitable for a LED. I've seen much simpler circuits such as the one below         – Schematic created using   Assuming it's in a suitable enclosure, are there significant drawbacks or dangers to this circuit compared to others?


This script counts the days between two dates and shows the result on a span element:     But instead I want to show the result as value of an input element:  <input name="name" type="text" id="name" value="i want count days here " />   How can I do this?  This is the complete code:  <!DOCTYPE html>               <meta charset="utf-8" />         <title>jQuery UI Datepicker - Default functionality</title>         <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" />                           <link rel="stylesheet" href="/resources/demos/style.css" />                                     <form class="formwhite">

From:	<input type="text" id="from" onKeyUp="calculate();" />&nbsp;

To:	<input type="text" id="to" onKeyUp="calculate();" />

         </form>

How do I get the number of days between two dates in JavaScript? For example, given two dates in input boxes:  <input id="first" value="1/1/2000"/> <input id="second" value="1/1/2001"/>  <script>   alert(datediff("day", first, second)); // what goes here? </script>


I installed Kubuntu 12.04 on this desktop last September and am the main user of the machine. I can perform most admin tasks such as installing new software with my password, which is also accepted using sudo in a terminal. Some tasks however ask for a root password - the most recent example being when I tried to re-install my HP printer. and my usual password does not work. I have looked at  answer, but it doesn't seem to help as I know my own password. I need to know root's password!

I'm working on a Ubuntu system, and my client has completely forgotten his administrative password. He doesn't even remember entering one; however it is there.  I've tried the suggestions on the website, and I have been unsuccessful in deleting the password so that I can download applets required for running some files. Is there a solution?


I am new to qgis and I would like to create a buffer around point features.  My goal is to create a quarter mile buffer (402.336m) around each point feature, using Geoprocessing Tools -> Buffer(s), setting the buffer distance and exporting. The process creates what appears to be a massive polygon. However when I use '.05' as the distance buffers appear around each point.   I assumed this happened because the measurement units are not correct. I verified the project projection (NAD83 OH/South). Then I checked the Measure Tool via Options -> Map Tools. Te ellipsoid for distance calculations set at WGS 84 and the Preferred Measurement Units is set to 'meters'  I have set up 'on the fly' projections  How do I solve the mystery of this buffer problem?  Setup: qgis 1.7, Ubuntu 11.04

I  have had no luck getting the buffer tool to accept anything but degrees as units of measure.  I have found lots of stuff saying the layer needs to be reprojected and saved but it hasn't worked at all for me.   Is there a way I could create a buffer without using ftools or at least force the units to meters somehow?  As a workaround I converted meters to degrees (lat) and used that but the final product needs to be as close to reality as possible.  Things I've tried:   setting every unit option I could find to meters (where possible). setting everything to NAD83/Maryland (data is for Washington, DC) and saving it as such (as layers in ESRI shape files). reimporting the reprojected layers setting relevant layers to Google Mercator   The was tried followed by creating a buffer. Many were tried in combination. QGIS 1.7.3 Slackware64 current (qgis from SBo-13.37 repo, tried on multilib and plain 64it with same results)


If you are in a quiet place and someone wants to get your attention by making the 'psst!' noise, how would you write this?     Does the following work?     "She heard a soft 'psst!' from somewhere in the basement shadows".     Is there a verb which properly articulates 'psst' without having to write it out?

Consider the brief passage:     "I love your work, but calling you 'the artist' {1} just doesn't seem to be   cutting it anymore. What shall I call you?"      "OK. Call me George." {2}   So my instincts tell me to put {1} in single quotes as opposed to no punctuation (or perhaps even italics) but to do the opposite for {2}. Is this right? Why?  Let me expand this one further iteration:     "Wow, that's a great name, especially with this crowd. Maybe for your next book    you should call yourself Ringo."{3}


I need a keyboard manipulation to switch input language.  I know how to switch by clicking on the desktop.   On Windows, we have Alt+Shift.  What is the equivalent?

I recently upgraded to Ubuntu 13.10, with the new keyboard handling system. The little "switch keyboard" option does not let me set it to Alt+Shift. How can I get this keyboard binding, as I have absolutely no interest in using the Mac-esque Super+Space combo?


For x, y, z $\in \mathbb N $ where $\gcd(x,y) = 1$  These solutions must also be primitive.   If we let $ w = z^2 $ so that $ x^2 + y^2 = w^2$  I have that for r, s $\in \mathbb N$  where $\gcd(r, s) = 1$ (coprime), with opposite parity:  Let $ x = r^2 - s^2\\      y = 2rs \\     w = r^2 + s^2 $  Now for $t, u \in \mathbb N$ where $\gcd(t, u) = 1$ (coprime), with opposite parity:  let $ r = t^2 - u^2\\        s = 2tu\\         z = t^2 + u^2 $  Where $r,s,z$ are coprimes with $r$ odd and $s$ even (by definition).  So we have: $ x = ( t^2 - u^2)^2 -(2tu)^2\\ y = 2( t^2 - u^2)(2tu)\\ w = z^2 = ( t^2 - u^2)^2 + (2tu)^2 $  Hence $x, y$ and $z^2 $ is a primitive solution.  Any mistakes here?

Prove that $x^2 + y^2 = z^4$ has infinitely many solutions with $(x,y,z)=1$.   Do I use the terms $x= r^2 - s^2$, $y = 2rs$, and $z = r^2 + s^2$ to prove this problem?  Thanks for any help.


Here:   is a proof of the formula for $e^x$. The thing causing my doubt is that we cannot assume that $u$ is an integer. The most common definition of limit of sequence concerns integers only. How to fix the original proof?

I knew that $e^x=\lim \limits_{n\to+\infty }{\left(1+\frac{x}{n}\right)^n}$. But I've never seen its proof. So I tried to prove it using $\exp(\ln x)=\ln(\exp(x))=x$. Here is what I've tried so far :   $$ \left(1+\frac{x}{n}\right) ^n=e^{n\ln(1+\frac{x}{n})}$$ $$\text{I'll now study just } {n\ln\left(1+\frac{x}{n}\right)}.$$$$ \text{If this function has the line }y=x \text{ as oblique asymptote, then the equality is proven.}$$  $$ n\ln\left(1+\frac{x}{n}\right) = n\ln\left(\frac{n+x}{n}\right)$$  $$=n[\ln(n+x)-ln(n)]$$ $$=n\left[\int_1^{n}\frac{dt}{t}+\int_{n}^{x}\frac{dt}{t}-\int_1^{n}\frac{dt}{t}\right]$$ $$=n[\ln(x)-\ln(n)]$$  But I just don't know how to show that this expression has an oblique asymptote $y=x$. I've thought that if there is an oblique asymptote as $n$ goes to infinity, than for a huge $n$, we have :  $$\ln\left(1+\frac{x}{n}\right)\approx \frac{x}{n}\approx0$$ Which looks correct but we could have any other function $f(x)$, $\ln\left(1+\frac{x}{n}\right)\approx\frac{f(x)}{n}\approx 0$. Which doesn't prove the oblique asymptote because $x$ is constant.  So how can prove $e^x=\lim \limits_{n\to +\infty } \left(1+\frac{x}{n}\right)^n$? And where did I go wrong?


shutdown now kills everything and then powers down the machine. halt kills everything and then... there is no step 2. It will sit, running but not doing anything, until people stop arguing over whether Emacs or Vim is better.  Why doesn't halt actually power down the machine? Is there a historical reason?

What is the difference between the halt and shutdown commands?


Suppose we have (some categories and some functors such that) $F_1$ is left adjoint to $G_1$, $G_1$ left adjoint to $F_2$, $F_2$ left adjoint to $G_2$. Will $F_1$ then be equal to $F_2$ (and $G_1$ to $G_2$)?  Or can there exist arbitrarily long 'chains' of adjoint functors that do not trivialize?

Often we have adjoint pairs $(A, B)$ (meaning $A$ is left adjoint to $B$). Sometimes we have adjoint triplets $(A,B,C)$ (meaning $A$ is left adjoint to $B$ and $B$ is left adjoint to $C$. No adjoint relation between $A$ and $C$ obviously, since they have the same source and target).  So the first question is: can we have quadruplets $(A,B,C,D)$ ? (meaning that $C$ is also left adjoint to $D$).  Second question: It would be then possible that we have $(A,D)$ besides $(A,B)$. But I think not, because I think that it is not possible to have a functor $A$ with two different right adjoints, $B$ and $D$. Is this correct?


Running Ubuntu 20.04.1 LTS, I plugged in a usb flash drive and an external drive via usb. Using GUI "Files" I created a new directory (let's call it New_Directory for further reference) in the external hard drive. I then selected another directory in the usb flash drive (this directory contained only one archive), and cut it. I switched to another window of "Files" where the external hard drive was opened. There I clicked "paste". The moving process began. It was taking some time. I didn't notice if it finished or not, but at some point in time the external hard drive's status began rapidly changing, as if it was being plugged in and out quickly (which it was not - it sits firmly on a solid ground). After that the directory I wanted to move disappeared. It is nowhere to be found. It isn't in Trash, hidden files do not display it among them, find -name dir_name returns nothing. Interestingly, the New_Directory also vanished. I can't find it. Could it be of importance that its name contained ;( at the end? Yeah, irony. Lessons learned:  important files should rather be copied than moved; perhaps copying files to the desktop first is safer than from one external device to another.  Would you please suggest a way to restore this archive? P. S. It was only later that I noticed "Undo" and "Redo" buttons in GUI "Files". They seem to only keep track of the last operation which unfortunately was overwritten since then. But I know for sure that when I cut and pasted the directory, it was not in the buffer - "paste" option was disabled, as if there was nothing to paste.

Are there any tools, methods, incantations to recover recently deleted files on Ubuntu?  If it makes any difference, I want to recover a  2.x database file. But would be better to have a method/tool that works on any kind of file.


I am not sure what exactly is wrong with my code. I am just testing out the logic for an 'if' 'else if' 'else' code block. I ran the program and each time I typed in one of the 3 fruits mentioned in the prompt, all I get is the print statement from the else block. I did a debug and the code is not even stepping into the curly braces meant for the if block of the respective fruit. Hope someone can tell me what is wrong with my code. Thank you.  import java.util.Scanner;   public class IfDriver {      public static void main(String[] args) {         Scanner sc = new Scanner(System.in);         String s=null;         System.out.println("Please enter the fruit: ");         String fruit = sc.next();         if(fruit=="apple"){             System.out.println("It is an apple");         }         else if(fruit=="orange"){             System.out.println("It is an orange");         }         else if(fruit=="pear"){             System.out.println("It is a pear");         }         else {             System.out.println("No such fruit");         }     } }

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


While working with ReactJS setState method to update state I observed that post increment operator was not working(did not get any error as well) so I had to use + 1 instead for the same. Any idea why this behaviour as I am new to React and got shocked to learn this.  Here is my code: This did not work:  this.setState((prevState) => ({       left: prevState.left++ }));   This worked:  this.setState((prevState) => ({       left: prevState.left + 1 }));

In C, what is the difference between using ++i and i++, and which should be used in the incrementation block of a for loop?


tldr; Don't bump minor edits for old posts.  While we can all agree that if you notice questoin in a post, it should be corrected to question, I think we can all also agree that correction shouldn't bump the post back to the active list.  If the edit is less than 30 characters, is over 1 year old, and was not from the owner of the post, then we shouldn't be bumping those posts. Most editors will not change a post by more than 30 characters when going through doing "maintenance".  Not only is their work hampered by the fact that they accidentally bump every post they fix, browsing user time is wasted reviewing an "active" post which went from questoins to questions and was asked 3 years ago.  Limiting the active bump to old posts which were edited by non OP users containing changes with less than 30 characters of difference will    allow editors to mass edit small changes with ease increase the overall grammar and spelling of the exchange save user time from reviewing non active posts incentivize users to review posts that are turning a year old to fix spelling and grammar

Lately I've seen a lot of small edits here on Meta to posts that are obsolete -- for example, past Winterbashes, site functionality that has since been changed, and bugs that were  years ago.  I've even approved a couple of those edits without noticing the age of the post.  The posts then get bumped and sometimes pick up new answers and comments, presumably from other people who didn't notice that the issue being talked about isn't relevant now.  Is this a problem?  Should we apply any friction to editing and/or reviewing?  I wouldn't want to prevent edits (we do want to continue to maintain our content), but maybe the combination of a small edit (e.g. typos) and probable obsolescence could add a notice to the edit and review pages?  Just something like "This is an old post (or resolved issue); are these small edits worth bumping this post for everybody to see again?".  (Not those exact words; "bumping" is possibly jargon.)  This is a discussion, not a feature request.  I don't know if all these bumps are actually a problem, hence the question.  Several sites on the network are approaching (or already past) being a decade old; there are a lot of old posts out there, and apparently some people like to look for and fix typos, "thanks"s, and the like.


How can I install Gnome Dictionary or other software if my Ubuntu Software Center is not working?  Please give me explanation why my software center is not working and how to fix it.

How can I install applications like Google Chrome on Ubuntu?  Are there any commands to install an application?    Index of answers:


`public class CheckVowelsDigits {  public static void main(String[] args) {     Scanner sc = new Scanner(System.in);     System.out.print("Enter a String: ");     String string = sc.next();     int numOfVowels = 0;     int numOfDigits = 0;     string = string.toLowerCase();     for (int i=0;i<string.length();i++){        char letter = string.charAt(i);        switch(letter){            case 'a':             case 'e':            case 'i':            case 'o':            case 'u': numOfVowels++; break;        }        if (letter >='0' && letter <='9')           numOfDigits++;     }     double perVowels = (numOfVowels*1.0/string.length())*100.0;     double perDigits = (numOfDigits*1.0/string.length())*100.0;      System.out.println("Number of vowels: " + numOfVowels + " (" + perVowels + "%)");     System.out.println("Number of digits: " + numOfDigits + " (" + perDigits + "%)"); } }`   OUTPUT   Enter a String: test12345  Number of vowels: 1 (11.11111111111111%)  Number of digits: 5 (55.55555555555556%)  BUT I NEED  Number of vowels: 1 (11.11%)  Number of digits: 5 (55.56%)

What I would like is a method to convert a double to a string which rounds using the half-up method - i.e. if the decimal to be rounded is 5, it always rounds up to the next number. This is the standard method of rounding most people expect in most situations.  I also would like only significant digits to be displayed - i.e. there should not be any trailing zeroes.  I know one method of doing this is to use the String.format method:  String.format("%.5g%n", 0.912385);   returns:  0.91239   which is great, however it always displays numbers with 5 decimal places even if they are not significant:   String.format("%.5g%n", 0.912300);   returns:  0.91230   Another method is to use the DecimalFormatter:  DecimalFormat df = new DecimalFormat("#.#####"); df.format(0.912385);   returns:  0.91238   However as you can see this uses half-even rounding. That is it will round down if the previous digit is even. What I'd like is this:  0.912385 -> 0.91239 0.912300 -> 0.9123   What is the best way to achieve this in Java?


I am facing a problem which seems to be unsolvable. I am trying to resolve the issue but to my disappointment nothing seems to work. The problem I'm facing are as follows    Whenever I try to run sudo apt-get install or sudo apt-get update, I get the following error :  apt-get: error while loading shared libraries: libapt-pkg.so.4.12: cannot open shared object file: No such file or directory  To resolve this issue I downloaded libapt-pkg.so.4.12 and ran command sudo dpkg -i libapt-pkg.so.4.12.deb it gives error  dpkg: error processing libapt-pkg4.12_1.0.9.7ubuntu4_i386.deb (--install):  cannot access archive: No such file or directory Errors were encountered while processing: libapt-pkg4.12_1.0.9.7ubuntu4_i386.deb

I have download the QQ2012's deb in downlaod files, but when I install the deb, system tell me:  $ sudo dpkg -i wineqq2012-20120719-longene.deb [sudo] password for collins:  dpkg: error processing wineqq2012-20120719-longene.deb (--install):  cannot access archive: No such file or directory Errors were encountered while processing:  wineqq2012-20120719-longene.deb