I'm using visual studios and programming in C#. Is it possible to move a PictureBox, using the picturebox.left function, and not have it always redraw my picture box but instead just change the position?  Thank you.

I need to knock out a quick animation in C#/Windows Forms for a Halloween display.  Just some 2D shapes moving about on a solid background.  Since this is just a quick one-off project I really don't want to install and learn an entire new set of tools for this.  (DirectX dev kits, Silverlight, Flash, etc..)  I also have to install this on multiple computers so anything beyond the basic .Net framework (2.0) would be a pain in the arse.  For tools I've got VS2k8, 25 years of development experience, a wheelbarrow, holocaust cloak, and about 2 days to knock this out.  I haven't done animation since using assembler on my Atari 130XE (hooray for page flipping and player/missile graphics!)  Advice?  Here's some of the things I'd like to know:   I can draw on any empty widget (like a panel) by fiddling with it's OnPaint handler, right?  That's how I'd draw a custom widget.  Is there a better technique than this? Is there a page-flipping technique for this kind of thing in Windows Forms?  I'm not looking for a high frame rate, just as little flicker/drawing as necessary.   Thanks.  Post Mortem Edit ... "a couple of coding days later"  Well, the project is done.  The links below came in handy although a couple of them were 404.  (I wish SO would allow more than one reply to be marked "correct").  The biggest problem I had to overcome was flickering, and a persistent bug when I tried to draw on the form directly.   Using the OnPaint event for the Form: bad idea.  I never got that to work; lots of mysterious errors (stack overflows, or ArgumentNullExceptions).  I wound up using a panel sized to fill the form and that worked fine. Using the OnPaint method is slow anyway.  Somewhere online I read that building the PaintEventArgs was slow, and they weren't kidding.  Lots of flickering went away when I abandoned this.  Skip the OnPaint/Invalidate() and just paint it yourself.  Setting all of the "double buffering" options on the form still left some flicker that had to be fixed.  (And I found conflicting docs that said "set them on the control" and "set them on the form".  Well controls don't have a .SetStyle() method.)  I haven't tested without them, so they might be doing something (this is the form):      this.SetStyle(ControlStyles.UserPaint, true);     this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);     this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);    So the workhorse of the code wound up looking like (pf is the panel control):      void PaintPlayField()     {         Bitmap bufl = new Bitmap(pf.Width, pf.Height);         using (Graphics g = Graphics.FromImage(bufl))         {             g.FillRectangle(Brushes.Black, new Rectangle(0, 0, pf.Width, pf.Height));             DrawItems(g);             DrawMoreItems(g);             pf.CreateGraphics().DrawImageUnscaled(bufl, 0, 0);         }     }   And I just called PaintPlayField from the inside of my Timer loop.  No flicker at all.


I recently created an Ubuntu 20.04 Live USB via Rufus but when I try to start from the USB, I get a screen full of messages like pcieport 0000:00:01.2: AER: PCIe Bus Error: severity=Corrected, type=Data Link Layer, id=000a(Transmitter ID) pcieport 0000:00:01.2: AER: device [1022:1483] error status/mask=00001000/00004000  flooding my screen. Nevertheless, I cannot even boot up my Live USB. I haven’t seen any good solutions on the web. My PC is custom built with Nvidia gtx graphics and an MSI x-570 motherboard. I don’t see how either would cause this to occur. How do I fix this? Thanks.

I have a new HP Pavilion Gaming Notebook and a new installation of Ubuntu 16.04. When I press Ctrl + Alt + F1 I go start seeing the errors shown in the following image and it doesn't allow me to interact with the console:    I also see these errors for a while everytime I boot. I need to do Ctrl + Alt + F1 to access a non graphical terminal to install some Nvidia drivers. What's going on?  What's causing the problem seems to be: 00:1c.5 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Express Root Port #6 [8086:a115] (rev f1)  jpiabrantes@joao:~$ lspci -nn 00:00.0 Host bridge [0600]: Intel Corporation Sky Lake Host Bridge/DRAM Registers [8086:1910] (rev 07) 00:01.0 PCI bridge [0604]: Intel Corporation Sky Lake PCIe Controller (x16) [8086:1901] (rev 07) 00:02.0 VGA compatible controller [0300]: Intel Corporation Skylake Integrated Graphics [8086:191b] (rev 06) 00:04.0 Signal processing controller [1180]: Intel Corporation Skylake Processor Thermal Subsystem [8086:1903] (rev 07) 00:14.0 USB controller [0c03]: Intel Corporation Sunrise Point-H USB 3.0 xHCI Controller [8086:a12f] (rev 31) 00:14.2 Signal processing controller [1180]: Intel Corporation Sunrise Point-H Thermal subsystem [8086:a131] (rev 31) 00:16.0 Communication controller [0780]: Intel Corporation Sunrise Point-H CSME HECI #1 [8086:a13a] (rev 31) 00:17.0 SATA controller [0106]: Intel Corporation Sunrise Point-H SATA Controller [AHCI mode] [8086:a103] (rev 31) 00:1c.0 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Express Root Port #5 [8086:a114] (rev f1) 00:1c.5 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Express Root Port #6 [8086:a115] (rev f1) 00:1c.6 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Express Root Port #7 [8086:a116] (rev f1) 00:1f.0 ISA bridge [0601]: Intel Corporation Sunrise Point-H LPC Controller [8086:a14e] (rev 31) 00:1f.2 Memory controller [0580]: Intel Corporation Sunrise Point-H PMC [8086:a121] (rev 31) 00:1f.3 Audio device [0403]: Intel Corporation Sunrise Point-H HD Audio [8086:a170] (rev 31) 00:1f.4 SMBus [0c05]: Intel Corporation Sunrise Point-H SMBus [8086:a123] (rev 31) 01:00.0 3D controller [0302]: NVIDIA Corporation GM107M [GeForce GTX 950M] [10de:139a] (rev a2) 07:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader [10ec:522a] (rev 01) 08:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter [10ec:b723] 09:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller [10ec:8136] (rev 0a)


I forgot the password set for excel vba macro and i can not download hex Editor.  Is there any other way to break the password?

I'm providing internal support and one of our users has managed to put a password on an excel file by accident, I've done the proper checks to make sure that the user should have access to the document and now want to know what the recommendation for removing a password from an Excel document.  For what its worth, the password appears after Excel opens but before you can see any data in excel.


I'm searching for an easy way to generate random numbers with a defined max and minimum, but for the purpose I need using the standard way to generate randoms complicates my code too much.  The standard way being:  Random rand=new Random(); rand.nextInt(125)+1;   While I'm looking for a simpler way, something along the lines of:  Random(125,1);

How do I generate a random int value in a specific range? I have tried the following, but those do not work: Attempt 1: randomNum = minimum + (int)(Math.random() * maximum);  Bug: randomNum can be bigger than maximum. Attempt 2: Random rn = new Random(); int n = maximum - minimum + 1; int i = rn.nextInt() % n; randomNum =  minimum + i;  Bug: randomNum can be smaller than minimum.


I do not really understand what nationality is.  The table is from     If nationality represents a place of birth of an individual, so can I say that Vitaliy Klychko has Kazakh Nationality? He was born there and lived there for some period of time, but he does not have any connection with that country.  Info from wiki about Vitaliy Klychko  (Ukrainian famous boxer)     Nationality   Ukrainian       Born  19 July 1971 (age 47) Belovodskoye, Kirghiz SSR, Soviet Union (now Kyrgyzstan)   Wiki says Nationality: Ukrainian

What's the difference between "citizenship" and "nationality"?  Webster says on "nationality":     the fact or status of being a member or citizen of a particular nation   and on "citizenship":     the fact or status of being a citizen of a particular place   It looks like nationality is more related to your ethnicity, while citizenship is more related to a place of living. Which means that citizenship should be more "flexible" than nationality (as it's much easier to change your place of living rather than your ethnicity).   That's how I thought until I came across a Wiki article today on Steven Seagal stating that he has three nationalities:    So, now it looks to be like I was wrong. But then I really don't see the difference now. Are they synonyms?


I intend to dual boot Ubuntu 16.04 and Windows 10 but I'm a bit confused about the information on the official Ubuntu website:     64-bit PC (AMD64) desktop imageChoose this to take full advantage of computers based on the AMD64 or EM64T architecture (e.g., Athlon64, Opteron, EM64T Xeon, Core 2). If you have a non-64-bit processor made by AMD, or if you need full support for 32-bit code, use the i386 images instead.32-bit PC (i386) desktop imageFor almost all PCs. This includes most machines with Intel/AMD/etc type processors and almost all computers that run Microsoft Windows, as well as newer Apple Macintosh systems based on Intel processors. Choose this if you are at all unsure.   Now, my Windows machine is 64-bit with Intel processor. Which of the architecture of Ubuntu should I install, 32-bit or 64-bit

What is the difference between 32-bit and 64-bit Ubuntu? I've heard the 64-bit platform performs better and can detect more than 4GB of RAM. Also, while some apps haven't ported to 64-bit yet, ia32-libs lets a 64-bit machine run them.  If so, why not promote 64-bit over 32-bit?


I am interested in modeling a continuous variable (e.g., second language learners' English proficiency measured in TOEFL scores) as a function of a number of predictors some of which are continuous while others are count-based proportions or ratios (e.g., number of nouns per sentence or the ratio of infrequent words in their essays). Intuition tells me that the observations with larger denominator values (e.g., 10/200) in those proportions and ratios should be weighted more than those with smaller denominator values (e.g., 1/20) in estimating the coefficient associated with the predictor. Is there a way to account for such a difference in the uncertainty in predictor values? I thought it might be related to measurement error models, but have not been able to find relevant information.

Recently, randomly browsing questions triggered a memory of on off-hand comment from one of my professors a few years back warning about the usage of ratios in regression models. So I started reading up on this, leading eventually to Kronmal 1993.  I want to make sure that I'm correctly interpreting his suggestions on how to model these.   For a model with a ratio with the same denominator on both the dependent and independent side: $ Z^{-1}Y = Z^{-1}1_n\beta_0 + Z^{-1}X\beta_X + \beta_Z + Z^{-1}\epsilon $   Regress dependent ratio on the (inverse) denominator variable in addition to the other ratios Weight by the (inverse) denominator variable  For a model with dependent variable as a ratio: $ Y = \beta_0 + \beta_XX + Z1_n\alpha_0 + ZX\alpha_X + Z^{-1}\epsilon $   Regress numerator by original variables, denominator, and denominator times original variables [what about categorical variables?] Weight by (inverse) denominator  For model with only independent variable ratios: $ Y = \beta_0 + X\beta_X + Z^{-1}1_n\beta_{Z^{-1}} + W\beta_W  + Z^{-1}W\beta_{Z^{-1}W} + \epsilon $   Include numerator and (inverse) denominator as main effects, ratio as interaction term.    Are my interpretations here correct?


I have an alias: alias grep='grep --color=auto'. I wish to have some way to print not only matching row but all of them and just color matching patterns. I doubt is there an option to do that in the grep itself. Any other tool ? Or idea how to achieve this ?

Say I have the following file:  $ cat test  test line 1 test line 2 line without the search word another line without it test line 3 with two test words test line 4   By default, grep returns each line that contains the search term:  $ grep test test  test line 1 test line 2 test line 3 with two test words test line 4   Passing the --color parameter to grep will make it highlight the portion of the line that matches the search expression, but it still only returns lines that contain the expression. Is there a way to get grep to output every line in the source file, but highlight the matches?  My current terrible hack to accomplish this (at least on files that don't have 10000+ consecutive lines with no matches) is:  $ grep -B 9999 -A 9999 test test     If grep can't accomplish this, is there another command-line tool that offers the same functionality? I've fiddled with , but it doesn't seem to have an option for it either.


We know that if $\gamma$ is a curve in the complex plane parameterized by a function $z(t)$ which is a continuously differentiable function from the interval $[a,b]$ into $\mathbb{C}$ and $f$ is analytic on an open set containing $tr(\gamma)$, then $w(t)=f(z(t))$ is differentiable on $[a,b]$ and $w'(t)=f'(z(t))z'(t)$. Use this result to prove that $\int_\gamma z^n\,dz=0$ for any \textit{closed} path $\gamma$ and integer $n\neq -1$, assuming that $tr \gamma$ does not contain the origin if $n<0$.  1st Try: Suppose that $n\geq 0$, then $z^n$ is analytic everywhere. By Goursat's Lemma, the integral is $0$.  When $n<-1$, then $z^n$ is analytic everywhere except at the origin. But I am allowed to assume that $0\not\in tr\gamma$. So again the integral is $0$.   The problem is that I haven't use the assumption.  Note I am not allowed to use Cauchy's Integral Formula.

Suppose $\gamma$ is a closed, piecewise smooth path and suppose $n \neq -1$.  Show that $\int_\gamma z^n dz = 0$  I've spent way too much time with this problem.  I need a push in the right direction.  I've basically been trying to show that this function has an antiderivative on some region, but is that enough or even the right path?


I want to calculate the slope of road segments and I need dem for Greece. Where can I find it? I have found another one but the slopes were huge which is impossible.

Where can I find free elevation data for Europe?   The available resolutions and terms of use are important details that I also seek.


I have an update statement written in SQL, which is :  UPDATE student  SET student.[studentno]=[enter studentno],     student.[avg]=[avg value];   What is the benefit of using the square brackets around “enter studentno” and “avg value” and what does this statement do? Does it allow the user to enter the values to be updated?

I've noticed that Visual Studio 2008 is placing square brackets around column names in sql. Do the brackets offer any advantage? When I hand code T-SQL I've never bothered with them.  Example:  Visual Studio:  SELECT [column1], [column2] etc...   My own way:  SELECT column1, column2 etc...


$$\iiint xyz \,dV$$ T is the solid tetrahedron with vertices (0,0,0) (1,0,0) (1,1,0) (1,0,1).  How do I figure out what z=f(x,y) is with these points? The equation of a tetrahedron is x/a+y/b+z/c=1  But with the 4 points given I don't know how to use the formula.

I'm trying to compute the volume of a tetrahedron with the vertices (0, 0, 0), (0, 0, 1), (2, 0, 0), (0, 2, 0). It needs to be done using a triple integral. Not allowed to use "det" or other functions.  I think first I need to find a plane equation using those 4 points right? But how do I do that?


I have a density (dens) array of 156510 values which comes from 141 files with 1110 values in each (141*1110=156510). These files were all combined, but I need to generate a for loop to separate each file of range 1110. Below is what I want the for loop to do, so I don't have to keep doing this manually if more files are added. What would I need to do to the for loop to get this proper separation as I have listed below? dens_1 = dens[0:1109] dens_2 = dens[1110:2219] dens_3 = dens[2220:3329] dens_4 = dens[3330:4439] ... dens_140 = dens[154290:155399] dens_141 = dens[155400:156509]

I have a list of arbitrary length, and I need to split it up into equal size chunks and operate on it. There are some obvious ways to do this, like keeping a counter and two lists, and when the second list fills up, add it to the first list and empty the second list for the next round of data, but this is potentially extremely expensive.  I was wondering if anyone had a good solution to this for lists of any length, e.g. using generators.  I was looking for something useful in itertools but I couldn't find anything obviously useful. Might've missed it, though.  Related question:


I want to prove that any affine scheme $X = \operatorname{Spec} A$ is compact.   $\bigcup D(f_i)$ is an open cover of $X$ if and only if the sum ideal $\sum (f_i)$ contains $1$. That is, $ D(\sum f_i)=\bigcup D(f_i)$.   Why does a possible infinite sum of ideals which includes $1$ mean that there exists a finite subset of such ideal whose ideal sum will include $1$ ?

Let $A$ be a commutative ring with $1$, and define for $f\in A$ the distinguished open set $D(f)=\{P\in\operatorname{Spec}A\mid f\not\in P\}$. Suppose we have $D(f)=\bigcup_{i\in I}D(h_i)$ over some index set $I$ and where $h_i\in A$ for every $i\in I$. I'd like to show that there is a finite subset of $I$, call it $\{1,\dots ,n\}$ for which $D(f)=\bigcup_{i=1}^n D(h_i)$. I can make some progress on this. We have $D(f)=\bigcup_{i\in I}D(h_i)$ if and only if $V(f)=\bigcap V(h_i)=V(\sum_i (h_i))$, and so $f\in\sqrt{\sum(h_i)}$, which means $f^n=\sum_{i=1}^N b_ih_i$ for some $N\geq 1$ and some $b_i\in A$. Now, how do I "get rid of" the $b_i$'s so that I can end up at the desired form?


I downloaded a software yesterday and then installed it and during the installation I was meant to run a .cmd file as admin but anytime I connect my PC to the internet, it starts hanging, lagging and freezing, please help me, what do I do and I don’t want want to lose my files by formatting my OS is windows 10 latest version

What should I do if my Windows computer seems to be infected with a virus or malware?  What are the symptoms of an infection? What should I do after noticing an infection? What can I do to get rid of it? how to prevent from infection by malware?   This question comes up frequently, and the suggested solutions are usually the same. This community wiki is an attempt to serve as the definitive, most comprehensive answer possible. Feel free to add your contributions via edits.


I use android application to view question and answer them. Sometime i confuse with title of question which has been already marked on hold duplicate or closed. In web interface they get updated and shown in list (added to title in bracket)but in android app its missing. Am i missing something here?

While browsing sites using the Android app, I came in a question I happen to remember being closed. From the question list view, there is no indication that the question is closed. The title does not bear the usual [on hold] or [closed] markers. Starting in 0.1.24 the question itself now includes a fixed banner at the bottom of the screen indicating the question is closed and abbreviated information about why. The interface for this is quite clean, but you still have to be in the question view in order to learn this.  Edit: The on-question banner is still too subtle. It should be at the top of the screen and yellow as in the main site rather than at the bottom and grey. Also as of the latest version there is still no indication whatsoever of closed questions in the question list.


I first started playing clash of clans on my iPod 4th generation.  I soon realized I wanted to start over because I upgraded too quickly and wasted gems.  I started over and my new village (lvl 65) is much better than the old village (lvl 50).  I recently got an iPhone 5c and want to transfer my lvl 65 village over.  I have tried but only my lvl 50 village will transfer.  What should I do?

I originally started playing Clash of Clans on a first-generation iPad and connected it to my GameCenter. I then got a third generation iPad, linked it to the first iPad's GameCenter account, and continued playing Clash of Clans on the new iPad 3. My friend is giving me his GameCenter account, which is linked to HIS Clash of Clans village- is there any way I can transfer his village to my Game Center ?


I want to change the language of the calendar to english, but when I do that through system settings/language/region formats ALL the settings change to the chosen region, including currency, timezone and date format....  How can I change ONLY the LANGUAGE of the calendar without amending any other locales?  I'm running Ubuntu 15.04

Is it possible to change the language of a particular application so that when opened it shows in Spanish for example while the rest are in English?  I have Spanish and English installed in Ubuntu and am using English as the default one but I would like a way to change the language for a particular application without having to change the whole language of the system.


I had initially asked this on  but @Mast in the comments suggested me to ask this on the main meta site. I have tested it on Stack overflow, Code review, and Software Engineering sites. I think stack exchange uses the same syntax highlighting engine so it should apply to all Question Here is the example int a = 5; int c(5);  I hope the syntax highlighting works for you, if not then the way a and c are highlighted is different, shouldn't they be highlighted the same way?  c has the same highlighting as a function would have (bright orange)whereas a has no highlight.

I noticed that sometimes my code gets highlighted in different colors when rendered.   What is syntax highlighting? How does it work? Why isn't my code being highlighted correctly? How do I report a bug or request a new language? How do I use syntax highlighting? What languages are currently available on Stack Exchange?


I have property   public Enums.CustomEnumProp MyEnum { get; set; }    which is of type CustomEnumProp  public enum CustomEnumProp { A = 1, B = 2, C = 3}   and I need to use passed int value as a user selection and assign it to the MyEnum property.  forexampe: is user is selected 2 from combobox then assign this int to the MyEnum.  Thanks

How can an int be cast to an enum in C#?


If I bought Minecraft Desktop version, can I convert it to Wii U version or maybe just get discount for it?

I have purchased Minecraft for PS3, however for various reasons I am dissatisfied with the PS3 experience and I would like to continue playing on PC.  Does the PS3 purchase/license allow me full access to the PC version and/or any other versions of Minecraft?


I found a lot of videos online showing how to calculate the Fourier transform of  $f(x) = \exp(-ax^2)$, but they all seem to have a mistake or so I think. (I'm not interested in the alternative solution. I'm trying to understand this.)  In these proofs we get by quadratic completion something of the form  $$\int_{-\infty}^\infty \exp\left(-a\left(x + i\frac{y}{2a}\right)^2 \right) \, dx$$  The next argument is to just substitute $z = x + i\frac{y}{2a}$ and get the known integral  $$\int_{-\infty}^\infty \exp(-az^2) \, dz,$$  but can I just blindly say that the boundaries stay the same even though I now integrate from a shifted place in $\mathbb{C}$?  Why should this be the same as   $$\lim_{b\rightarrow \infty}\int_{-b + i\frac{y}{2a}}^{b + i\frac{y}{2a}} \exp(-ax^2) \, dx,$$ which would be my solution?  Are those the same integrals?

$$ \int_{-\infty}^\infty e^{-(x+ia)^2} \text{d}x $$  where $a\in \mathbb{R}$.  I don't know where to start but have reasons to believe the answer is $\sqrt{\pi}$. Namely $\int_{-\infty}^\infty e^{-x^2} \text{d}x$. Problem is I feel insecure performing changes of variables when suddenly the variables range in $\mathbb{C}$. I don't even know if this can be done properly, least of all how.


I am running Ubuntu 16.04 LTS on My system and i want to scan the files on my external storage devices before passing them to others. I read the page at  and tried   Bitdefender Antivirus Scanner for Unices which gave me an error during automatic updating which an error code, so i tied to manually update Bitdefender Scanner for Unices by downloading the cumulative zip archive from there site but that failed too.So i gave up on it. Avast was the brand i trust the most, But it looks like Avast! Linux Home Edition appears to be old and no longer maintained,more like dropped by the dev team. Comodo Anti-Virus for Linux - I have had a really bad experience with Comodo Anti-Virus for Windows a few years ago So I prefer not to use this now,I maybe wrong now because i dont know how its now like.So correct me if i am wrong. AVG Antivirus- similar story as Comodo Anti-Virus. Avira Antivirus and Panda Antivirus - no longer maintained/terminated F-PROT Antivirus for Workstations (home users) - Looks outdated too,Correct me if i am wrong. and Finally the Open Source Antivirus ClamAV Antivirus- First i installed ClamAV( from terminal because i could not find it on the ubuntu software center(Why?) then ClamTK from the ubuntu software center But ClamTK was freezing/Failing while it was running.   So I am asking the community here for an appropriate solution for this issue of mine. Thank you.

What antivirus programs are available for Ubuntu?  We previously used Symantec Endpoint Protection but it does not work in Ubuntu.


Why doesn't blender 2.8 render the view from the currently selected camera; this view:  produces:  How can I render an image viewed from a specific camera?

I have multiple cameras in a scene. What I want to do is to change which one is active. This way I can view the scene from different angles. How would I do this?


After all that Worf has done, all for the sake of the Empire, would he not deserve the title of Dahar Master?

Memory Alpha describes a Dahar Master as:     a Klingon warrior who had reached a legendary status among his peers and subordinates.   And Memory Beta:     Dahar Master is the title given to Klingons, who are the best of warriors and have reached legendary status. These warriors are respected by all and the tales of their exploits are often repeated in stories, songs and operas   To me "master" implies that the warrior has mastered some skill, at the very least "Dahar", whatever that is✝   Does any series or novel cover what Kor, Koloth, and Kang did to achieve this "legendary" status?  --  ✝ Bing Klingon seems to have no translation for the word


Here's a  that was closed before it was asked :)

I would like to report a bug.  was apparently closed 2 years ago, but it has only existed for 1 year and 3 months. See a screenshot of the problem below.


Currently it's impossible to see the bottom line of code snippets because the horizontal scroll bar is positioned over the top of them ():    Please could you add some bottom padding so that it's possible to view the last line of code snippets?  Unlike  which is a support question with a workaround answer, this is a feature request suggesting a clear action hence not a duplicate.

This question is a duplicate of  (but this question can't be marked as a duplicate because that question is on meta.stackoverflow.com, and this question is on meta.stackexchange.com).  I'm seeing a bug on stackoverflow.com. I'm not sure if the culprit is Stack Overflow, Google Chrome, or macOS.  (Below I refer to a "code box". By that I mean some text that begins with 4 spaces when editing a question or answer.)  When I hover over a code box that contains one long line of code, a horizontal scrollbar appears. When I stop hovering over the code box, very frequently (maybe 3 out of 4 times) the scrollbar does not disappear. Clicking elsewhere on the page also does not dismiss the scrollbar. The only way to dismiss it is to refresh the page.  ...After experimenting more, it appears to always happen if I enter the box from below, but not always when I enter from above. It seems to be triggered by hovering over the lower half of the box.  Also if I enter from the top and scroll to the right, then until I refresh the page again that scrollbox will behave normally (only show a scrollbar when scrolling, and disappear after). In that case the scrollbar also has a different appearance, being much less tall (maybe a quarter of the height of the code box rather than half as tall).  Further, if I get a box and scrollbar into that functional state and then hover over the lower part of the box for a bit, then sometimes eventually it will break and stay broken until refresh again.  And in any case hovering over the lower part of the box causes the scrollbar to get taller.  Here is a screenshot of the issue:        Google Chrome 71.0.3578.98 (Official Build) (64-bit)  macOS High Sierra 10.13.6  Here is a code box that repros the issue for me:  fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo   Here is another:  foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo


I've got a method like this:  public static bool IsPercentage<T>(T value) where T : IComparable {     return value.CompareTo(0) >= 0 && value.CompareTo(1) <= 0; }   I would like to use this to validate if any number falls in the range 0 <= N <= 1. However this only works with integers since CompareTo only operates on equal types. Is there a different way to do this?

Can anyone tell me if there is a way with generics to limit a generic type argument T to only:   Int16 Int32 Int64 UInt16 UInt32 UInt64   I'm aware of the where keyword, but can't find an interface for only these types,  Something like:  static bool IntegerFunction<T>(T value) where T : INumeric


Vader was pretty much discarded once his Midichlorian count diminished after being mauled by Obi but couldn't he reach out to the Force and reacquire his lost potential? He was in a great position to do so, his master being Darth Sidious, after all, Midichlorian meddling was Sidious' master specialty, and he said he learned everything he could from him prior to killing him.  EDIT: Edited to be different from the other question, the main topic here is if Vader with the help of Sidious could or did reach out to the Force to reacquire his potential, Vader at the height of his power in the suit was described as more powerful than Anakin ever was, so we can assume he somehow achieved a portion of his true potential, Sidious recognized these newfound powers of Vader and even made a new set of armour without the limitations of his current suit because he proved he was a worthy enough successor.

I know Vader needed the life support system in his suit to live, and he was already partially depending on the force to survive. But with the masking technique that the Sith Lords sometimes use. Was there canon indication (based on Vader himself as well as other Sith powers known) that he could  have left the suit and restored himself?


GPG error:    natty Release: The following   signatures couldn't be verified   because the public key is not   available: NO_PUBKEY 16126D3A3E5C1192   I think I selected to install things from extras.ubuntu.com when I used the expert mode installer, but I got the above error when doing apt-get update. How do I fix this?

I added some extra repositories with the Software Sources program. But when I reload the package database, I get an error like the following:     W: GPG error:  trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8BAF9A6F   I know I can fix it using apt-key in a terminal, according to the official Ubuntu documentation. But I would have liked to do it graphically. Is there a way to do this without using a terminal?


Hi I have the String array   String version[] = {"3.1.2","2.1.7","3.1.1","3.7.3","2.6.4","1.3.4.7"};   I want to find the latest version among these. Which approach will be good? It should print 3.7.3

Is there a standard idiom for comparing version numbers?  I can't just use a straight String compareTo because I don't know yet what the maximum number of point releases there will be.  I need to compare the versions and have the following hold true:  1.0 < 1.1 1.0.1 < 1.1 1.9 < 1.10


I have a user who hid a folder in XP, after they did this the folder no longer showed up in the directory. They thought this was a great feature and persisted to do this to a few personal folders and files on there work computer so that they would be hidden from the administrator (me). Now they want to access them and have no idea how to.  That part is fine, since I can quickly pop on and see the 'hidden' folders and files.  The issue I now have is that the user can't remember where some of these hidden folders and files are now. They 'need' them ASAP, but I have no idea what to do. Not only do they not know the directory of the hidden folder, they don't know the name of it. I've been searching the web the last few hours to try and find a solution to filtering search result's to simply hidden folders, but haven't had any luck.  So is there a way to, in windows search (or in programming), to filter search results to folder / files that have the hidden attribute?  I'd like an XP specific solution, but I can also search and access the PC in Windows 7 and 8. I'm also pretty good a python, so a solution including code would also work.

A long time ago, I remember hiding some really personal files on my computer. Something that nobody could ever find, so I buried them down pretty darn good.  Now to my problem, I don't remember where.   Do anyone know a way to scan a drive and list all hidden folders and/or files?   I know how to view hidden files in Windows, but as far as I know, there is no way to search for them? I've been looking for a program, but I couldn't find one - and now I'm here, asking the experts. ;)  I'd really appreciate any tips.


I want to use the preinstalled vdi files from virtualboxes.org because it saves me time having it already built for me (what's not to like?). I don't know if they have viruses on them (they very well might). I am running a Windows 8.1 host, and I want to use a linux distribution from this site (specifically Damn Small Linux) So does running these files in VirtualBox pose a threat to my windows 8 system?

Can a virus from a VirtualBox VM affect the host computer?


Consider the following sentence:     I am particularly grateful to seven people: A, B, C, D, E, F, and G[?] for our numerous merry gatherings, whether with reason or not.   The question is: What punctuation should follow a list introduced by a colon in the middle of a sentence?  This questions is related to . I believe this question is different due to the following. In that case, the clause is independence, and the conclusion is to reformat it using parentheses or em dashes. In this case, the clause is dependent, and the use of a colon is reasonable.

The whole department: John, Jeff, Jean, and the accountant [?] were thrown into jail.


I have a brand new Macbook Pro running Ubuntu 15.04-beta2. In OSX, I was able to use my iPhone headphones into the "headphone" jack and use the media keys on the headphones to control my system volume. Additionally, OSX was able to use the onboard mic as an additional input source.  The aforementioned feature has become my default way to control my system volume, and it's extremely hard for me to live without it. Coincidentally, I've been wanting to write some drivers for the Linux kernel, but wasn't quite sure what. I'd like to write drivers to implement volume control via the output jack, I just don't know where to start.  My current understanding of how this all works:   4-lead headphones uses 4th lead to short a certain range of ~2V to ~0V. Grab raw information from headphone jack (inside soundcard driver?) and convert data into an event Listen and respond to the newly created event and control media volume, just like media keys currently do.   I understand that this is potentially a huge protect, but I'm dedicated to get this working. I just need a bit information and I'm unclear as to where I can find it.

I have a generic pair of smartphone earphones that have the button (along with a microphone) and I would like to use the button as a pause/play key in Ubuntu, like I would on an Android phones music player.  Is there a way to enable this headset control in Ubuntu?  If the headset controls are a hardware feature of audio jacks used in Android phones, the name of that hardware (audio jack) would be appreciated.


I want to run a code when I change the frame. I figured out that  may be useful but I don't know how to test it: import bpy   def my_handler(scene):     print("Frame Change", scene.frame_current)   bpy.app.handlers.frame_change_pre.append(my_handler)  I entered the codes in the Python Console but nothing happens when I change the frame:  How can I see the output of this basic code?

I'm trying to debug a Python script by placing a print("foo=" + foo) statement in my code.  But where does the output appear?     It doesn't appear on the Python Console, and it doesn't appear on the area that appears when you drag the lower edge of the infobar downwards (what is the name for this area? My script errors show up in red here.)


Why $\sqrt[3]{{2 + \sqrt 5 }} + \sqrt[3]{{2 - \sqrt 5 }}$ is a rational number?

We have $$ \sqrt[3]{2 +\sqrt{5}} + \sqrt[3]{2-\sqrt{5}} = 1 $$  Is there any way we can get this results through algebraic manipulations rather than just plugging it into a calculator?  Of course, $(2 +\sqrt{5}) + (2-\sqrt{5}) = 4 $, maybe this can in some way help?


If I have 2 constructors in my custom class and one of them takes an extra argument and does everything the first one does but with just one additional line of code (and this extra line utilises the extra argument), how best to deal with this without having to duplicate all the code in the first constructor?  Example code  public myConstuctor(int number, int number2){      int result = (number + number2);     int result2 = (number2 - number1)      //Etc     //Etc     //Etc     //Etc  }  public myConstructor(int number1, int number2, int number 3){      int result = (number + number2);     int result2 = (number2 - number1)      //Etc     //Etc     //Etc     //Etc      int result3 = (result + result2 + number3)   }

Is it possible to call a constructor from another (within the same class, not from a subclass)? If yes how? And what could be the best way to call another constructor (if there are several ways to do it)?


Executing the Code Below : Null Point Exception is Thrown -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------   package eCommerceLive;  import java.io.File; import jxl.Workbook; import jxl.write.WritableSheet; import jxl.write.WritableWorkbook; import jxl.write.Label; import jxl.write.WriteException;   public class dataSheet {  static Workbook wbook; static WritableWorkbook wwbCopy; static String ExecutedTestCasesSheet; static WritableSheet shSheet;  public void readExcel() { try{ wbook = Workbook.getWorkbook(new File("D:\\Automation\\testSampleData.xls")); wwbCopy = Workbook.createWorkbook(new File("D:\\Automation\\testSampleDataCopy.xls"), wbook); shSheet = wwbCopy.getSheet(0); } catch(Exception e) {     e.printStackTrace(); } }  public void setValueIntoCell(String strSheetName,int iColumnNumber, int iRowNumber,String strData) throws WriteException {     WritableSheet wshTemp = wwbCopy.getSheet(strSheetName);     Label labTemp = new Label(iColumnNumber, iRowNumber, strData);      try {         wshTemp.addCell(labTemp);          }          catch (Exception e)          {              System.out.println("Hello");             e.printStackTrace();         } }  public void closeFile() {     try {         // Closing the writable work book         wwbCopy.write();         wwbCopy.close();          // Closing the original work book         wbook.close();     } catch (Exception e)      {         e.printStackTrace();     } }  public static void main(String[] args) throws WriteException {     dataSheet ds = new dataSheet();     ds.readExcel();     System.out.println("Hello");     ds.setValueIntoCell("sheet1",5,1,"PASS");     ds.setValueIntoCell("sheet1",5,2,"FAIL");     ds.setValueIntoCell("sheet1",5,3,"PASS");     ds.closeFile(); }   }

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


I don't have an exact example, but i know that some Java methods can modify the parameters passed to it, and where the method was called can use these modified values.

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


I want to have different implementation hidden behind a unique interface. I tried the answers to , but it seems that the only thing that it does is to force developers to implement certain methods. Using the answer to the question mentioned, this is what I'd like to do. #include <iostream> using namespace std;  class Interface {     public:         virtual ~Interface() {}         virtual void OverrideMe() = 0; };  class Implementation1 : public Interface {     public:         virtual void OverrideMe()         {             cout << "1" << endl;         } };  class Implementation2 : public Interface {     public:         virtual void OverrideMe()         {             cout << "2" << endl;         } };  int main(int argc, char *argv[]) {     Interface a = Implementation1();     Interface b = Implementation2();      a.OverrideMe(); //expecting 1     b.OverrideMe(); //expecting 2 }  This does not compile, and I could find a way to have a type that allows different behavior based on the constructor. Even if I add the Parent class mentioned in the answer, the program does not compile.

Someone mentioned it in the IRC as the slicing problem.


I am struggling to center my H1 tag inside my main tags. If I use position fixed with top:50% and left:50%, it works a bit, though I am never able to center it to the middle. Nothing else will work. Any advice ?    main .container {   margin-top: 40%; }   main .container .row h1 {     text-align: center !important; }

WELCOME

          Could other elements like a navbar or html interefere with this ? I also have this property for my html:    html {   min-height: 100%;   background-size: cover;   background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)),   url("/static/images/background.png") no-repeat fixed center center; }     For me it's rendered like this:

How can I horizontally center a
 within another
 using CSS?

Foo foo


I would like to register a ".ee" domain. I live in the US. I have checked the rules for domain registration and looks like I am able to register without issue. I would like this site to be my home on the web.  If someone looks up my name on a search engine from anywhere in the world (primarily US), would a ".ee" domain still be preferred given that the domain is registered in a different country. Wondering if search engines prioritize domains local to the search country.  Should I have concerns of the reliability of top level domain administration for relatively less popular domains like ".ee"?

I have to choose between my keyword + an uncommon TLD and my keyword with a prefix/suffix + .com. In general, is there a difference for SEO? I think some TLDs like .co are confirmed to rank lower.  For example, if my target keyword is example, is example.info or the-example.com better?


ls /proc/ 1      10984  11246  131    144    167    2099   31788  4805  5375  6762  7594  8111  8722       consoles 10     10993  11247  1314   14400  168    21     32     4807  5379  6771  76    8112  8738       cpuinfo 100    10998  11248  13163  14403  169    210    32408  4818  5386  6788  7601  8113  8752       crypto 101    11     11249  132    14404  17     211    33     4831  5388  68    7619  8114  8768       devices 102    110    11251  133    14405  170    2111   34     4833  54    6808  7625  8115  8789       diskstats 10202  11012  11252  134    14406  1726   2115   3489   4846  5417  6827  7626  8116  88         dma   cat /proc/10993/root/run_command /usr/sbin/libvirtd --listen(nova-libvirt)   and I want to get all PID run_command  cd /proc cat */root/run_command /etc/barbican/vassals --logto /var/log/kolla/barbican/barbican-api.loguwsgi --master --emperor /etc/barbican/vassals --logto /var/log/kolla/barbican/barbican-api.loguwsgi --master --emperor /etc/barbican/vassals --logto /var/log/kolla/barbican/barbican-api.log/opt/kibana/bin/kibanabarbican-keystone-listenerbarbican-keystone-listenerheat-api-cfnheat-api-cfnneutron-dhcp-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/dhcp_agent.inimistral-server --server executor --config-file /etc/mistral/mistral.confneutron-dhcp-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/dhcp_agent.inimistral-server --server executor --config-file /etc/mistral/mistral.conf/usr/sbin/sshd -Dtacker-server --config-file /etc/tacker/tacker.conf/usr/sbin/sshd -Dtacker-server --config-file /etc/tacker/tacker.conf/usr/sbin/apache2/usr/sbin/td-agent/usr/bin/mysqld_safeglance-registry/usr/sbin/apache2start-ovsdb-server 127.0.0.1/usr/bin/mysqld_safeglance-registrynova-apistart-ovsdb-server 127.0.0.1nova-consoleauthnova-api/usr/sbin/libvirtd --listennova-consoleauth/usr/bin/memcached -v -l 10.60.6.174 -p 11211 -c 5000 -U 0/usr/bin/memcached -v -l 10.60.6.174 -p 11211 -c 5000 -U 0/usr/sbin/libvirtd --listenneutron-metadata-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/metadata_agent.ini/usr/sbin/libvirtd --listenmistral-server --server engine --config-file /etc/mistral/mistral.confneutron-metadata-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/metadata_agent.inimistral-server --server engine --config-file /etc/mistral/mistral.confstart-ovsdb-server 127.0.0.1/usr/share/elasticsearch/bin/elasticsearchsleep infinity/usr/share/elasticsearch/bin/elasticsearchbarbican-workersleep infinitynova-conductorbarbican-worker/opt/kafka/bin/kafka-server-start.sh /etc/kafka/kafka.server.propertiesnova-compute/usr/sbin/libvirtd --listen/usr/sbin/apache2/usr/sbin/apache2/usr/sbin/apache2/usr/sbin/apache2/usr/sbin/apache2/usr/sbin/apache2/usr/sbin/apache2/usr/sbin/apache2/usr/sbin/apache2/usr/sbin/apache2/usr/sbin/apache2/usr/sbin/apache2no ...   but it's too messy to read. How do I put each record (content of each file) on a separate line?  run_comand_content1 run_comand_content2 run_comand_content3   or  run_comand_content1  run_comand_content2  run_comand_content3

I want to use cat with wildcards in bash in order to print multiple small files (every file is one sentence) to standard output. However, the separate file contents are not separated by a newline, which I'd like to for ease of reading.  How can I add a file delimiter of some sort to this command?


I was performing research into some issues with a C++ library and ensuring type information is consistent between the application and the shared object. I'm also interested in ensuring an EqualObject comparison works, meaning I indeed have the same object, and not two objects that happen to be equal under operator==.   state to anchor a vtable in a header. I'm not familiar with the technique. Or I've heard it called by another name.  What is vtable anchoring, and how does it work?    I'm also aware of  from the GCC FAQ.

We all know what virtual functions are in C++, but how are they implemented at a deep level?  Can the vtable be modified or even directly accessed at runtime?  Does the vtable exist for all classes, or only those that have at least one virtual function?   Do abstract classes simply have a NULL for the function pointer of at least one entry?  Does having a single virtual function slow down the whole class? Or only the call to the function that is virtual?  And does the speed get affected if the virtual function is actually overwritten or not, or does this have no effect so long as it is virtual.


Can you apply metamagic on the Wish spell? For example using Twinned Spell on Otto's Irresistible Dance cast through Wish?

The  spell enables you to emulate any spell of 8th level or lower.  Can a sorcerer apply a  effect to the emulated spell by spending the appropriate number of sorcery points (provided that he knows said metamagic effect)?  For example, could he cast wish and spend sorcery points to use Extended Spell on his casting of ?


So I started playing Pokemon Go and after some research I realized that there should be paw prints in the Sightings Menu at the bottom-right. However, there are never paws displayed for any pokemon. I've never seen any paws, and the Pokemon are obviously not nearby at all as I can't see them. Is there a fix to this?

I've logged in and out, restarted my phone, updated, but the Pokemon footsteps indicating whats nearby wont show up.   The Pokemon still appear in the menu, but I cannot click to select them, nor does it show their distance from me with the footsteps.   What is going on?


I have installed Lubuntu 14.04 on my old 15" PowerBook G4, 32-bit laptop, and am now trying to install Wine HQ software so that I can use windows 32-bit programs. I keep getting the following error:  Failed to fetch https://dl.winehq.org/wine-builds/ubuntu/dists/trusty/InRelease Unable to find expected entry 'main/binary-powerpc/Packages' in Release file (Wrong sources.list entry or malformed file) Some index files failed to download. They have been ignored, or old ones used instead.   I am not a developer and this is my first time trying Ubuntu, so it would be great to get clear step-by-step instructions on what I need to do... if a solution is possible? I have managed to install WiFi drivers and resolve a few other errors by reading the Q&As on this site, but have not found a solution to the above error. If the problem could be solved by changing to another version of Lubuntu or another distro, I could also try that. Please give me your recommendations :-)

I have unistalled and reinstalled the Ubuntu Software Center as per info I found in a similar thread and I got the same response about line 91 or something like that.  I just tried to upload a screen shot but since I'm new it won't allow me to.  I also can not figure out how to cut and paste anything so I have to hand type what the error screen says, both when I attempt to open the software center and nothing happens, when I try to enter commands into the terminal to uninstall, reinstall, whatever I get the same following:  COULD NOT INTITIALIZE THE PACKAGE INFORMATION An unresolvable problem occured while initializing the package information Please report t:his bug against the 'update-manager' package and include the following error message: 'E: Malformed line 91 in source list/etc/apt/sources.list (dist parse)  E: The list of sources could not be read.,  E: The package list of status file could not be parsed or opened.   How do I report bugs?  What can be done about this.  I have searched and everything everyone says to do leads me back to the same line error message.  So, I don't know how to get to line 91 in the source list; to tell you what it says. Sorry, I'm really new to this. That is what I need is to find out how to get there and fix what it says. I would really like to NOT have to re partition my hard drive and start from scratch, so I'm really looking forward to getting this problem solved. I need to be able to install new software.


I just bought an Acer Aspire 7 and I installed a 250Gb M.2 NVMe SSD to use as the boot source. I wanted to check that the SSD was working so I opened Disks and GParted, but neither of them show the SSD. I checked in the BIOS and the SSD is recognized there. I then used windows to allocate partitions in the SSD, but after that Disks and GParted still doesn't recognise the SSD. I looked at  question. I checked the GParted version and it is 0.30.0, so that shouldn't be the problem. I also started installing Ubuntu, but in the partition manager opened after selecting 'Something else' didn't show the partitions I created on the SSD.  How can I get Ubuntu to recognize the SSD so I can dual boot my computer?    Computer: Acer A715-72G-79BH  SSD: Samsung MZVLW256HEHP PM961 256GB M.2 NVMe PCIe Internal SSD - OEM   Ubuntu: 18.04 LTS    EDIT: The question 'GParted does not recognize SATA M2' (see link in question) does not answer my question because in the comments it mentions that GParted versions 0.24.0-2 included compatibility with NVMe SSDs, and version 0.25 worked. The version of GParted that I have on the bootable USB is 0.30.0 which is more recent. Also no errors or warnings such as Libparted Warning are shown when opening GParted.

I installed Ubuntu 14.04 onto my Acer Aspire E15. The PC has a 500 Gigabyte HDD.   During the installation it divided the HDD into separate partitions. However every time I turn on the PC it goes directly into Windows 8.1. It doesn't allow you the opportunity to select which OS you want to use.   Question 1: How do I set the PC so it will allow me to select the OS?  Question 2: And if #1 isn't possible. How to I remove Ubuntu from the PC and recover the partition for Windows


Are there any ways to evaluate $\int^\infty_0\frac{\sin x}{x}dx$ without using double integral?   I can't find any this kind of solution. Can anyone please help me? Thank you.

A famous exercise which one encounters while doing Complex Analysis (Residue theory) is to prove that the given integral: $$\int\limits_0^\infty \frac{\sin x} x \,\mathrm  dx = \frac \pi 2$$ Well, can anyone prove this without using Residue theory?  I actually thought of using the series representation of $\sin x$: $$\int\limits_0^\infty \frac{\sin x} x \, dx = \lim\limits_{n \to \infty} \int\limits_0^n \frac{1}{t} \left( t - \frac{t^3}{3!} + \frac{t^5}{5!} + \cdots \right) \,\mathrm  dt$$ but I don't see how $\pi$ comes here, since we need the answer to be equal to $\dfrac{\pi}{2}$.


I'm asking almost exactly  but this time not because I'm confused with OpenID but because I have it blocked at work so I can only browse SO from work but not ask/answer a question.  Is there any way I could login in StackOverflow without using OpenID or any good proxy you know or use to go through the login at work?

is it possible to login/create user in stackoverflow.com without creating/login using OpenID? i hate using OpenID, it's really confusing if you create different user/account on different websites :(     Note: the following text was submitted as an edit suggestion. I approved it, giving the user the benefit of the doubt and assuming that it was the OP's other account. -   even when i want to post this question under my new openid, i still logged as the old user, so i can't view my own question when i logged under my userid


Let $S = \{ax + by: x,y \in \mathbb{Z}\}$  and let $e > 0$ be the smallest element in $S$. Prove that $e \mid a$, and hence prove that $e = \gcd(a,b)$  I'm afraid I can't provide much of my initial working here because I'm at a loss of how to start.  I suppose that to show $e\mid a$ I would have to show that $eg = a$ for some $g \in \mathbb{Z}$. But I have no idea how I would do this.

For any nonzero integers $ a $ and $ b $, there exist integers $ s $ and $ t $ such that $ \gcd(a,b) = as + bt $. Moreover, $ \gcd(a,b) $ is the smallest positive integer of the form $ as + bt $.  I know of one proof of this question, in which we consider $$ S = \{ am + bn ~|~ \text{$ m,n \in \mathbb{Z} $ and $ am + bn > 0 $} \}, $$ but I didn’t manage to get the proof. Can someone please explain this theorem?


I'd like to simplify a path containing parent directory (..) references, but without making it absolute.  E.g., a path like foo/bar/../baz should be simplified to foo/baz since the bar/.. part cancels out1.    1 Strictly speaking, this is not true if bar is a symlink somewhere else - but feel free to ignore this: I don't care if the simplification returns different results than the original path in the presence of symlinks.

Is there a Unix command to get the absolute (and canonicalized) path from a relative path which may contain symbolic links?


What is the standard Java to C# converter?

I needed to convert a Java 1.5se app to C# 2.0.  Does anyone know of a tool (preferably free/open source) to do this?


The thing is that I decided to install Ubuntu 18.04 LTS (had 17.10 before) and everything was fine, I could open desktop folders. I don't know how, but some days ago suddenly I couldn't open theses folders by double clicking on them or even right clicking and trying to open as a new window. I can open these folders with Nautilus(default file browser) and can even delete them and some more options like rename (as double clicking on them at desktop) and can also open desktop files by double clicking. The problem is just with folders on desktop. I tried to look for a solution but nothing worked at the moment so I hope someone could help me with this. I am using GNOME desktop environment.  @ArchismanPanigrahi First i did a clean install and it worked fine but i started to install some gnome extensions and suddenly dunno with which one it doesnt work anymore. The thing is i disabled all the extensions and keep not working. I am running 18.074 with ComunityTheme but it doesnt work with normal enviroment. I wish this info can be useful for u, anything u need just comment, sorry for answering late but I was kinda bussy. Thanks  @DavidFoerster Yeah, i tryed to enter as guest user and the problem continues, i think it could be a nautilus problem maybe but was looking for info and tryed to reinstall, nothing worked at the moment. Its not a really serious problem but would like to know why this is happening, i just found one guy in Ubuntu Reddit who has exactly the same problem and no solution, i will try to solve this again because i was kinda bussy and didnt got time to continue. Anywway thx for your help and sorry for the late answer.  EDIT 1: Still no solution found, formatting would solve this but dont want to do this.  EDIT 2: Tryed to remove nautilus and use Nemo as main file browser and have the same problem so i dont think its a nautilus problem.  EDIT 3: I found this article and not sure if could be the answer for my question. If anyone knows comment, thanks.

I've done a clean install of 18.04 and I can't open desktop folders, not even the desktop trash can. Anybody else had this issue? I click on the desktop folders (double click) and nothing happens.  Strange enough, I can open  them when using Nautilus and going to home\stackinator\desktop\ or whatever the path is (can't remember at this point).


I am writing a math article, and when I am in a theorem environment and I try to use the enumerate environment, everything is italicized where, out of the theorem environment, it wouldn't be.  Is there a way to get my item labels to look like (I), (II), etc., instead of the italicized forms of these item labels that I am currently getting?

I have one problem with enumerating. The symbols for items look differently when the enumerating is done ''inside'' propositions from the enumerating done ''inside'' a proof.   The code  \documentclass[11pt,a5paperfootinclude=true,headinclude=true]{scrbook} % KOMA-Script book \usepackage[T1]{fontenc}                 \usepackage{lipsum} \usepackage[linedheaders,parts,pdfspacing]{classicthesis} % ,manychapters \usepackage[bitstream-charter]{mathdesign} %\usepackage[osf]{libertine} \titleformat{\section}   {\normalfont\bfseries}{\thesection}{1em}{}       \usepackage{amsthm} \usepackage{amsmath}  \usepackage{multicol}  \usepackage{IEEEtrantools}  \usepackage{anysize} \marginsize{0.1\paperwidth}{0.1\paperheight}{2cm}{2cm} \newcommand{\bigslant}[2]{{\raisebox{.2em}{$#1$}\left/\raisebox{-.2em}{$#2$}\right.}}  \usepackage{enumerate}    \begin{document}    \theoremstyle{plain} \newtheorem{thm}{Theorem}[chapter] % reset theorem numbering for each chapter  \theoremstyle{definition} \newtheorem{defn}[thm]{Definition} % definition numbers are dependent on theorem numbers \newtheorem{exmp}[thm]{Example}  \theoremstyle{corollary} \newtheorem{cor}[thm]{Corollary}  \theoremstyle{lemma} \newtheorem{lem}[thm]{Lemma}  \theoremstyle{proposition} \newtheorem{prop}[thm]{Proposition} \newcommand{\ndiv}{\hspace{-4pt}\not|\hspace{2pt}}  \begin{prop} \begin{enumerate}[(a)] % (a), (b), (c), ... \item \item \end{enumerate} \end{prop}  \begin{proof} \begin{enumerate}[(a)] % (a), (b), (c), ... \item \item \end{enumerate} \end{proof}   \end{document}   and the result     Is there any remedy for this, so they look identical or is it impossible? Can we also make a reference to the enumerated item?   Thank you


I've read this book about 10 years ago, an I think it's part of a series of books. It's high fantasy, and I remember that the protagonist is a commoner, perhaps female (but I'm not sure). The main feature I do remember is that when dragons fly, their shadow causes forgetfulness to people it passes over. There is an island/continent separated by sea from the main place where the story is told that dragons live there and the people there are like zombies, completely without memory. The main place (continent) rarely sees dragons and they fear them. I think that during the book the other island/continent is starting invade the main place/continent by stealth (i.e. infiltrating a few at a time).

It's been a really long time since I've read this series.  It's a fantasy series (don't remember author or title).  If I recall correctly, it's a world where there are several plot lines set.  In any case, the part I remember is that there are some invaders that rape and pillage and "Forge" the locals and afterwords they cannot remember who they are, no higher intellectual behavior, just pure instinct and savagery.  Can anyone name the series and/or author?


Henry Walton Jones Jr. (later known as Indiana Jones and Doctor Jones) received an undergraduate degree in archaeology according to .  But since he is refered to as Dr. Jones he also must have graduated with a PhD later on.   , but is there any information or source about what the specific topic (e.g. title) of his doctoral thesis was?

Clearly it would seem that he has a doctorate in ARCHAEOLOGY - but what else? Not Theology, clearly, but Anthropology? History? Surely there's a novel or television episode or simple screen-cap that can shed some light on this.


Do I need an active internet connection to install ubuntu 12.04 using wubi even after downloading the entire image file of the os.

I have the Ubuntu 11.10 ISO downloaded but I want to install the Wubi for some specific reasons. When I do the click on the Wubi installer, it starts downloading files. Since I already have the ISO with me, is it possible to make use of this ISO during the installation?


While I know you can't cast 2 spells of first level or higher in a turn, and actions can't just be used as bonus actions, is the reverse true?  Say there's a barbarian cleric that rages as a bonus action: can they use healing word as an action, when it normally takes a bonus action? Can bonus actions be used as actions in the case of using a bonus for something else such as rage?

I get that some spells are "especially swift" to cast and thus have a casting time of "Bonus Action". But is there any reason I couldn't cast such a spell as my Action?   Does it make a difference if the idea is for the one spell to be cast all by itself on a turn or if the desire is to use another Bonus Action (possibly a spell) on the same turn?


OK, so let me explain this question with an example. I ask a really stupid question that's either duplicate or too broad or something else. Someone answers my question, and the first line of the answer says that it's too broad / duplicate. Many people vote to close the question. I understand that this question is useless and I decide to delete it. ERROR: People have spent their time answering... so you can't delete this question. So then I say okay, fair enough. Then 2 - 3 people downvote me, telling me that the question is useless. Now every time someone starts typing a question similar to mine, they see:  Questions That may already have your answer -  The Stupid Question [DUPLICATE]   So then they check the question out, leave me a downvote, and go back. This way I keep getting downvotes and unless someone leaves delete votes, there is no way I can stop getting downvotes!

Recently I got nine downvotes for one of my questions which I think is OK to be asked in Stack Overflow:    The question is on hold, and it got downvoted even after being on hold.  Is there a way that I can delete that question or should it be removed from Stack Overflow?  Note:   It's quite embarrassing for ones` profile to have a question with 9 downvotes. :( I learnt the lesson. I'll improve my future questions. :/   Update:  One of the  of a similar question states:     Once you get eight downvotes, you pretty much disappear (edits won't bounce you to the front page).   I'm not sure how true this statement is. But if it is true, even if I edit my question, it won't show up to the front page so no one will see the edit and no one will upvote and the question will always have downvotes.


My Ubuntu 16.10 is a fresh install. But the Ethernet connection isn't connecting. Am I missing something?

I am using Ubuntu 16.10 and recently I have not been able to connect to internet using Ethernet. The network manager shows device not managed. The WiFi network is working fine.      I've tried the solution from this questionn  with no use.  My /etc/network/interfaces file:  # interfaces(5) file used by ifup(8) and ifdown(8) auto lo iface lo inet loopback   My /etc/NetworkManager/NetworkManager.conf file:  [main] plugins=ifupdown,keyfile,ofono dns=dnsmasq  [ifupdown] managed=true   Output of nmcli d:  DEVICE  TYPE      STATE      CONNECTION  wlp2s0  wifi      connected  eduroam     enp8s0  ethernet  unmanaged  --          lo      loopback  unmanaged  --


I wish to prevent windows from rebooting after doing an update because sometimes I want to leave my PC performing a task unattended for days on end.   Now before you rush to tell me this is a duplicate of , I should point out that A) Most of the (very long) most upvoted answer is devoted to more premium versions of Windows which includes gpedit which Home does not have. B) There are a lot of comments about solutions not working and this may well be date dependant, i.e. some solutions perhaps used to work but don't any more. I think this issue is so important that this question needs to be asked again so that the up/down votes will correspond to the current state of play.  I would also like to add an additional part of the question which is - once I have made the changes necessary to prevent forced reboots, is there some way of telling that I have done it correctly? I.e. some place in windows where it will actually tell me that future reboots have been disabled.  By the way I am asking this question now because I did attempt to follow the prevent-reboot solutions from a variety of sources but my PC rebooted itself last night (12 Jan 2017).  ANSWER FOUND: This is a simple solution that works: .

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


I'm trying to write up a table but I'm missing the vertical rows in the last few columns. Anyone have any clues as to how to fix this?   This is my code.   However, it produces this output. How do I resolve the issue?

I'm trying to write up a table but I'm missing the vertical rows in the last few columns. Anyone have any clues as to how to fix this?   \setlength\tabcolsep{4pt}  \begin{tabular}{|l|l|l|l|l|}  \cline{2-5}   \multicolumn{1}{l|}{} & Autumn & Pre-requisites & Spring & Pre-requisites \\\hline   \multirow{4}{*}{\textbf{Year 1}} & MATH187 & Either a mark of at least 80 in \\ & & MATH151 OR (in the NSW HSC \\ & & Examination) Mathematics Band \\ & & 4; or Mathematics Ext 1. & MATH188 & MATH187 \\\cline{2-5}                                & MATH100 & None & MATH123 & MATH187 or MATH141 with \\ & & & & co-requisites of MATH188 \\ & & & & or MATH142 \\\cline{2-5}                               & CSIT110 & None & STAT101 & None \\\cline{2-5}                                                                       & ACCY111 & None & ACCY112 & ACCY112 \\\hline \hline       \multirow{4}{*}{\textbf{Year 2}} & MATH201 & One of MATH110, MATH188 or \\ & & MATH283, or a mark of at least \\ & & 75 in MATH142 or MATH162, or \\ & & enrolment in course code 762A. & MATH202 & MATH201 \\\cline{2-5}                               & MATH203 & One of MATH101, MATH188 or \\ & & MATH283 or enrolment in course \\ & & code 762A. & MATH204 & MATH201 \\\cline{2-5}                               & MATH222 & One of MATH101, MATH188 or \\ & & enrolment in course code 762A & MATH212 & One of MATH101, MATH188, \\ & & & & MATH283 or enrolment in \\ & & & & course code 762A \\\cline{2-5}                                   & STAT231 & MATH188 or enrolment in \\ & & course code 762A. & STAT232 & STAT231 \\\cline{2-5}  \hline \end{tabular}   The output I get for the code above is:


I own an Asus X53S and I have put in it a SSD drive (1 Tb) that contains both the operative system (Windows 7 Home Premium 64 bit) and the personal files. I have recently bought an Asus N551JW-CN068H with Windows 8 Home 64 bit. I want to replace the HDD in the new pc with the SSD without reinstall all the programs, but when I try the PC gets stuck in apio setup utilities.  What can I do?

My laptop running Windows 7 Ultimate (non OEM) died on me today and it has tonnes of stuff on it - my projects, Visual Studio and office installations, etc. etc.  I am getting a new laptop from somewhere and was wondering if I could just unplug the hard disk from my original (dead) machine and plug it into the new one.  I remember trying this once with Windows Xp (on a desktop) and the OS crashed on boot and I had to reinstall everything again.  I have read about  but by the looks of it, it can be used only when the host computer is alive and kicking -- which mine isn't.  My old laptop was a Compaq Pressario v3000 (3 years old) on an AMD and the new one is going to be a new dual core Intel HP laptop.  Any ideas?  Thanks!


I have a directory below (Before). I would like to remove the Sub-folders and move the files to the Folder (After). How can I  archive it? Thanks Before Folder  |-----Sub-folder1  |        |------ fileA.txt  |        |------ fileB.txt  |-----Sub-folder2           |------ fileC.txt           |------ fileD.txt  After Folder  |------ fileA.txt  |------ fileB.txt  |------ fileC.txt  |------ fileD.txt

I have a directory structure like this:  ├── Tom │   └── c │       └── 2 │           ├── file.jpg │           └── text.txt └── Sam     ├── 1     │   └── c     │       └── music.aac     ├── E     │   └── 9     │       └── pic.jpg     └── b         ├── 9         │   └── sound.aac         └── d             └── book.doc   I'd like to move all files from the various subfolders to the main parent folders (Tom, Sam, etc.) with a single command, and then deleting all the empty subfolders. How can I do that?  Thank you


I recently started my first real project in Blender. An AK47. Most parts I managed to model decently. Now I reached a point where I don't know what to do. I got stuck on the parts that are complex and molded from a single piece of metal. The Sights looks good to me now, but if I add a sub surface modifier it screws it all up since loop cuts won't behave in the way I need them to. I tried recalculating the normals, remove doubles. I know that I did something wrong here. I just don't know the "correct" way of structuring this mesh for it to work.

Alright so I've seen some postings about loop cuts and done some research. I am very new to blender and modeling overall. I am trying to loop cut this concrete barrier. Now I'm following a tutorial and kind of did my own thing in some areas. I cleaned it up following some instructions in another answer here on stack exchange.  I can't for the life of me figure out why I can loop cut around the whole bottom:   ...but not the whole middle:   I see this marked as answered by another question. That question refers to ngons and inside faces. Now once again I'm totally new to this. I looked on the inside. I don't believe I have inside faces or any ngons by the terms I've read online in my research.  Here is a wireframe picture and the inside view:     Maybe I'm missing something the answers on other posts are saying. If so and you know what it is I'd be very appreciative of what it is.


Taking, for example, position operator (which is an odd operator), and then proceeding :  Assuming the eigenvalue of position operator $\hat x$ equal to $k$, can I not write:  $$\begin{align} \langle\psi_n|x|\psi_m\rangle &= \langle x\psi_n|\psi_m\rangle \\ &=\langle k\psi_n|\psi_m\rangle \\ &=k\langle\psi_n|\psi_m\rangle \\ &=k\delta_{nm}  \end{align}$$  But I know that $\langle x \rangle =0$ in case of even potentials (I don't know how that happens) and what I have written above is wrong, at least in case of even potentials.  Taking the example of infinite 1D square well, the states are : $$ \psi_{n} \left(x\right)=A\sin\left(\frac{nx\pi}{L}\right)dx $$ then, $$ \langle\psi_n|x|\psi_m\rangle =A\int_{-\infty}^{\infty}\sin\left(\frac{mx\pi}{L}\right)x\sin\left(\frac{nx\pi}{L}\right)dx $$ If m=n=1, $$ <x>=A\int_{-\infty}^{\infty}x\sin^{2}\left(\frac{x\pi}{L}\right)dx $$ if we apply an even potential then the equation gets reduced to$$ <x>=\frac{1}{L}\int_{-L}^{L}x\sin^{2}\left(\frac{x\pi}{L}\right)dx=0 $$ while in case of a potential(neither even nor odd), the equation leads to $$<x>=\frac{2}{L}\int_{0}^{L}x\sin^{2}\left(\frac{x\pi}{L}\right)dx=L/2 $$ ?  Here $$ n=m=1 => $$ $$\delta_{nm}=1 $$  implying that $$ <x>=k $$ but $$ <x>=0 $$if$$V\left(x\right)=V\left(-x\right)$$ ,which is confusing me!

Assuming the eigenvalue of position operator $\hat x$ equal to $k$, can I not write:  $$\begin{align} \langle\psi_n|x|\psi_m\rangle &= \langle x\psi_n|\psi_m\rangle \\ &=\langle k\psi_n|\psi_m\rangle \\ &=k\langle\psi_n|\psi_m\rangle \\ &=k\delta_{nm}  \end{align}$$  But I know that $\langle x \rangle =0$ in case of even potentials (I don't know how that happens) and what I have written above is wrong, at least in case of even potentials.  Taking the example of infinite 1D square well, the states are : $$ \psi_{n} \left(x\right)=A\sin\left(\frac{nx\pi}{L}\right)dx $$ then, $$ \langle\psi_n|x|\psi_m\rangle =A\int_{-\infty}^{\infty}\sin\left(\frac{mx\pi}{L}\right)x\sin\left(\frac{nx\pi}{L}\right)dx $$ If m=n=1, $$ <x>=A\int_{-\infty}^{\infty}x\sin^{2}\left(\frac{x\pi}{L}\right)dx $$ if we apply an even potential then the equation gets reduced to$$ <x>=\frac{1}{L}\int_{-L}^{L}x\sin^{2}\left(\frac{x\pi}{L}\right)dx=0 $$ while in case of a potential(neither even nor odd), the equation leads to $$<x>=\frac{2}{L}\int_{0}^{L}x\sin^{2}\left(\frac{x\pi}{L}\right)dx=L/2 ~? $$  Here $n=m=1$ but $ <x>=0 $ for even potentials, which is confusing me! It should be $k$ right?


What is correct here?   it could pay your mortgage and car payments it could pay your mortgage and car payment   The monthly payments are separate and distinct so #1 sounds right, but in #2, mortgage and car modify payment, a single payment—a single mortgage payment, and a single car payment. Instead of saying 'your mortgage payment and car payment' the sentence just leaves out one 'payment'.   If 'or' was used, then payment, singular, would be correct:   it could pay your mortgage or car payment

In a scientific paper I submitted, a reviewer suggested that I change the sentence     The operation just substitutes "(m, l)" with "m" on both the sender and the receiver side.   to     The operation just substitutes "(m, l)" with "m" on both the sender and the receiver sides.   by changing the last word from singular to plural.  There is only one sender side and only one receiver side, so my intuition tells me to use the former version, since   one would clearly write "...both the sender side and the receiver side" and I'd also write "The green and the blue box are standing on the table" (instead of "boxes").   However, I failed to find a grammatical rule for this, and English is not my main language. Is the reviewer right? And why?


I have a mail server, Debian Linux 2.4.31, which is dropping TCP connections and basically being unavailable. I have iptables running on it and its pretty much very restrictive.   When I run "netstat -tanp|wc -l" i get 366 while "cat /proc/net/ip_conntrack | wc -l" gives me 124172 because I had increased /proc/sys/net/ipv4/ip_conntrack_max since I would see "ip_conntrack: table full, dropping packet." in dmesg output, and yes I am still seeing those although I did increase the max.   I would/should enable tcp syn cookies, but for some odd reason the kernel was compiled without it so I can't go forward without recompiling it.  I just wanted to know if these symptoms describe a DDOS so I would go forward in adding tcp_syn_cookies.  Thanks.

This is a  about DoS and DDoS mitigation.   I found a massive traffic spike on a website that I host today; I am getting thousands of connections a second and I see I'm using all 100Mbps of my available bandwidth.  Nobody can access my site because all the requests time out, and I can't even log into the server because SSH times out too!  This has happened a couple times before, and each time it's lasted a couple hours and gone away on its own.  Occasionally, my website has another distinct but related problem: my server's load average (which is usually around .25) rockets up to 20 or more and nobody can access my site just the same as the other case.  It also goes away after a few hours.  Restarting my server doesn't help; what can I do to make my site accessible again, and what is happening?  Relatedly, I found once that for a day or two, every time I started my service, it got a connection from a particular IP address and then crashed.  As soon as I started it up again, this happened again and it crashed again.  How is that similar, and what can I do about it?


There are $n$ leaves placed in a circle. A monkey travels around it in a peculiar manner. On his $1^{st}$ jumps he skips one leaf and lands on the other. On the next jump he skips two. Then he skips three and so on. Prove that if he has to land in every leaf at least once, $n$ cannot be odd.

Lotus leaves are arranged around a circle.      A Frog starts jumping from one leaf in the manner described below.   In the first jump it skips one leaf,next jump it skips two,three the next jump and so on.      If the frog can reach all the leaves, show that number of leaves cannot be odd.


I know I can replace a string of the previous command using ^old^new. But it seems to only replace the first occurrences as I do the follow:  $ cat /proc/5742/task/5742/status ... $ ^5742^2839 cat /proc/2839/task/5742/status cat: /proc/2839/task/5742/status: No such file or director   How to replace all occurrences, if possible?

One of my favorite Unix tricks is ^x^y, which will take the last command and replace the first instance of "x" with "y". However, I'm wondering if a similar trick works to replace all instances of "x" with "y" in the last command?


I found a solution using shell objects, but could not get it compiled on windows 8.1. I am looking for a solution in c# which should work on windows 7 and higher.

I need to test if a file is a shortcut. I'm still trying to figure out how stuff will be set up, but I might only have it's path, I might only have the actual contents of the file (as a byte[]) or I might have both.  A few complications include that I it could be in a zip file (in this cases the path will be an internal path)


Can a multiclassed Warlock use a spell slot from the Spellcasting feature of a non-Warlock class to perform Eldritch Smites?  Eldritch Smite says:     Once per turn when you hit a creature with your pact weapon, you can expend a warlock spell slot to deal an extra d8 force damage to a target, plus another d8 per level of the spel slot, and you knock the targert prone if it is huge or smaller.   The multiclassing rule for Spell Slots (PHB, page 164) says:     You determine your available spell slots by adding together all your levels in the bard, cleric, druid, sorcerer, and wizard classes, half your levels (rounded down) in the paladin and ranger classes, and a third of your fighter or rogue levels (rounded down) if you have the Eldritch Knight or the Arcane Trickster feature. Use this total to determine your spell slots by consulting the Multiclass Spellcaster table.    Pact Magic (PHB, page 107) says:     If you have both the Spellcasting class feature and the Pact Magic class feature from the warlock class, you can use the spell slots you gain from the Pact Magic feature to cast spells you know or have prepared from classes with the Spellcasting class feature, and you can use the spell slots you gain from the Spellcasting class feature to cast warlock spells you know.   (All emphasis mine.)  It's pretty clear to me that spell slots are supposed to be interchangeable. You can't know which ones are paladin and which ones are sorcerer, for example. It is easy to tell warlock spell slots apart from the others however, but it seems you can cast paladin spells using warlock slots, so the intention here seems to be interchangeable as well.  Can you use a Spellcasting spell slot to Eldritch Smite?  I know from the question "" that Divine Smite can use Warlock slots, but I want to know if it works the other way around as well.

Divine Smite: Starting at 2nd level, when you hit a creature with a melee weapon   attack, you can expend one paladin spell slot to deal radiant damage   to the target, in addition to the weapon's damage.   I'm multiclassing into Paladin/Warlock/Sorc, and I'm wondering: can Divine Smite only be used in spell slots gained specifically by taking a level in Paladin, or can all available spell slots be used?


During the upgrade from Ubuntu 18.04 to Ubuntu 20.04, errors show at last and abort the installation. The error shown is like this: Failed to fetch  http://in.archive.ubuntu.com/ubuntu/pool/main/f/fwupd/fwupd_1.3.11-1~focal1_amd64.deb  Hash Sum mismatch  Hashes of expected file:  -  SHA256:f97c41fb6dc6a1cac5107fb8dd42225a3e44757848f30cb1ac443a454a6b0621  - SHA1:0563aa9350ab03b3a4b894559d59e85654aeb5d8 [weak]  - MD5Sum:8a61778a04edec6774c60f0942905d1f [weak]  - Filesize:2090788 [weak]  Hashes of received file:  -  SHA256:fbc9c8b34f9598af251b4dd692a53e886256cedeffb150ddd591f0f7b34e2d5f  - SHA1:cc256203a4cbb58c547f3cb5b0b75a976acf4c0b [weak]  - MD5Sum:f42703a2dad210586b513ff202b5a576 [weak]  - Filesize:2090788 [weak]  Last modification reported: Thu, 02 Jul 2020 09:09:46 +0000  Restoring original system state  Aborting Reading package lists... Done     Building dependency tree           Reading state information... Done

When I check for updates, I get a "Failed To Download Repository Information" error.   This is what comes up under details:   W: Failed to fetch gzip:/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_natty_main_source_Sources  Hash Sum mismatch,  E: Some index files failed to download. They have been ignored, or old ones used instead.


I want merge two object by id with java script, but i don't know how  var personData = {     person1 : {         uid: 112233,         city: "esfahan",         postalCode: 2345672345,         phoneNumber: "03111234234",         position: "ui designer"     }}  var additionalPersonData = {     person12: {         uid: 112233,         firstName: "reza",         lastName: "hosseini"     }}      So that the output should look like:   result = [  {   uid: 112233,   firstName: "reza",   lastName: "hosseini"   city: "isfahan",   postalCode: 2345672345,   phoneNumber: "03111234234",   position: "ui designer" }]

I need to be able to merge two (very simple) JavaScript objects at runtime.  For example I'd like to:  var obj1 = { food: 'pizza', car: 'ford' } var obj2 = { animal: 'dog' }  obj1.merge(obj2);  //obj1 now has three properties: food, car, and animal   Does anyone have a script for this or know of a built in way to do this?  I do not need recursion, and I do not need to merge functions, just methods on flat objects.


Characterize all entire functions $f$ such that $|f(z)|=1$, whenever $|z|=1$.  I think either $f(z)=c$ or $f(z)=cz$ where $|c|=1$. But I am not sure, any hint would be great, thanks.

Is there a characterization of the nonconstant entire functions $f$ that satisfy $|f(z)|=1$ for all $|z|=1$?   Clearly, $f(z)=z^n$ works for all $n$. Also, it's not difficult to show that if $f$ is such an entire function, then $f$ must vanish somewhere inside the unit disk. What else can be said about those functions?  Thank you.


Did somebody try to install Ubuntu on Ryzen variant of Lenovo IdeaPad S340? I would like to try Lenovo IdeaPad S340-15API (81NC004VCK) but I worry that it will be useless on Linux.

I have a device on which I would like to install Ubuntu. How do I find out if Ubuntu will work on it?


First, I know this question has been asked many times. However, the answers provided are not consistent and a variety of methods are used to get the mouse position. A few examples:  Method 1:  canvas.onmousemove = function (event) { // this  object refers to canvas object       Mouse = {         x: event.pageX - this.offsetLeft,         y: event.pageY - this.offsetTop     } }   Method 2:  function getMousePos(canvas, evt) {     var rect = canvas.getBoundingClientRect();     return {         x: evt.clientX - rect.left,         y: evt.clientY - rect.top     }; }   Method 3:  var findPos = function(obj) {     var curleft = curtop = 0;     if (obj.offsetParent) {          do {             curleft += obj.offsetLeft;             curtop += obj.offsetTop;          } while (obj = obj.offsetParent);     }     return { x : curleft, y : curtop }; };   Method 4:  var x; var y; if (e.pageX || e.pageY) {     x = e.pageX;     y = e.pageY; } else {     x = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft;     y = e.clientY + document.body.scrollTop + document.documentElement.scrollTop;  }  x -= gCanvasElement.offsetLeft; y -= gCanvasElement.offsetTop;   and so on.  What I am curious is which method is the most modern in terms of browser support and convenience in getting the mouse position in a canvas. Or is it those kind of things that have marginal impact and any of the above is a good choice? (Yes I realize the codes above are not exactly the same)

What's the simplest way to add a click event handler to a canvas element that will return the x and y coordinates of the click (relative to the canvas element)?  No legacy browser compatibility required, Safari, Opera and Firefox will do.


Ok use your closest calculator, and type $\frac{4}{3}$, which is $1.3333333333$,and then multiply it with $3$ which is $3.9999999999$ but then type $\frac{4}{3} \times 3=4$ how?. How can it be $4$ if $\frac{4}{3}$ is $1.3333333333$ and when you multiply it with $3$ is $3.9999999999$.

I'm told by smart people that $$0.999999999\ldots=1$$ and I believe them, but is there a proof that explains why this is?


I've a start year_month 202009 and I've a end year_month 202104. How do I print all the year_month values between them? >202009,202010,202012,202101,202102,202103,202104

I am using the datetime Python module.  I am looking to calculate the date 6 months from the current date. Could someone give me a little help doing this?  The reason I want to generate a date 6 months from the current date is to produce a review date.  If the user enters data into the system it will have a review date of 6 months from the date they entered the data.


How to get record type Id in apex having its system DeveloperName (not a Name/Label).  UPD:  There is a similar question here  but it is more general and the best answer selected may confuse searchers. This question is more specific and has a simple oneliner as a solution, which is more accurate with the current API.

I know of two approaches to get the recordtype id of a particular record type   Use SOQL   RecordType RecType = [Select Id From RecordType  Where SobjectType = 'Account' and DeveloperName = 'Business'];    Benifit here is if the admin changes the name of the record type, the code still works as we can use developer name   Using Describe  Map<String,Schema.RecordTypeInfo> rtMapByName = d.getRecordTypeInfosByName(); Schema.RecordTypeInfo rtByName =  rtMapByName.get('Business');    Saves on SOQL limits but uses a describe call.  What would be your choice and why   EDIT : Usage is for setting up recordtype while inserting records in apex or trigger


let M be a set of those natural numbers that can be written using only 0's and 1's(in the decimal system).prove that for evey natural number k,there exist a number m ∈ M such that (i) m has exactly k 1's,and (ii) m is divisible by k. I know bits and pieces of the proofs but it just not looking right to me...please help

Let $M$ be the set of natural numbers that can be written using only $0$ and $1$(in the decimal system). Prove that, for any natural number $k$ $\exists m \in M $ s.t   i) $m$ has exactly $k$ $1$'s, and ii) $m$ is divisible by $k$. (e.g, if $k=3$, then the number $101010 \in M$ is divisible by $3$)    Any hint or solution is welcome. If anyone have any hint in mind please give me step by step. Problem seems to be very interesting to me.


I'm afraid this is going to be a very noob question, sorry.  I am looking at the  card from Intel. I have never used SAS or an expander, and I'm a bit confused about how it works.  First, the description on their website says the card has 8 SFF-8087 connectors. The picture next to it only shows 6 connectors. Is that a mistake in the description?  Second, and really my main question, how does one connect this up? From other discussions I've read, the PCIe connector is only for power. So if I connect the 6 connectors to 24 HDDs, how do I connect the RAID/JBOD controller? Or do I have to keep at least one SFF-8087 to connect to the controller and therefore be limited to 20 HDDs?

I'm new to SAS expanders and I'm trying to get things right. I understand that SAS expanders, when used with SAS controllers which supports expanders, allows you to utilise the full capacity of supported drives on a controller.  However, say I've got a SAS controller with 4 x SSF-8087 ports, which by itself would support 16 disks. I could then, as far as I understand, instead connect each of these ports to an expander to increase disk capacity.  However, will the SAS controller "see" all disks as if they were connected directly to the controller and not through an expander. Could I look at controllers as switches in a network? Would I be able to create a RAID from a disk on expander 1 and expander 3?  UPDATE:  I don't really have a specific project where I need to use SAS expanders. I'm just curious about how they work, and was thinking about how it would work if I used one or more SAS expanders with a LSI MegaRAID controller (9260-16i) which is running in one of our servers. However, I haven't really put any thought into the distinction between "local" disks and disks in another enclosure. The LSI MegaRAID controller has 4 SFF-8087 ports, which makes it capable of accomodating 16 drives.


I am stuck with this utf-8 loading. Previously, when loading utf-8 adding this mysql_query('SET NAMES utf8'); worked but this time its not working. This is the code and some photos:  <?php } else {?>     <form action = "" method = "post">
             <?php                 $korisniklog = mysql_fetch_array(mysql_query("SELECT * FROM `korisnici` WHERE `Ime` = '$klogiran'"));                 if($korisniklog == '0')                 {                     $logiran = false;                     header("Location: index.php");                 }                 mysql_query('SET NAMES utf8');                 $imeprezimelog = $korisniklog['ImePrezime'];             ?>             Добредојдовте назад <?php echo $imeprezimelog; ?>             <input type="submit" name="odjava" value="Одјави се" class = "loginboxovi"/>
     </form>  <?php } ?>   This is the row in mysql:  And this is how it shows on web:

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


i can't install wine on my linux(xUbuntu 14.04 x64)  The following packages have unmet dependencies:  wine1.6 : Depends: wine1.6-amd64 (= 1:1.6.2-0ubuntu4)            Depends: wine1.6-i386 (= 1:1.6.2-0ubuntu4) E: Unable to correct problems, you have held broken packages.   what to do?

After upgrading from 10.04 to 12.04 I am trying to install different packages.  For instance ia32-libs and skype (4.0).  When trying to install these, I am getting the 'Unable to correct problems, you have held broken packages' error message.   Output of commands:  sudo apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   After running this:  sudo dpkg --configure -a foo@foo:~$ sudo apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


I'll have to ask an elementary level question about orbital motion and the mass/gravity that influences it.  In solar systems, the large mass of the sun pulls on the planets and we see the velocity of the outer planets traveling far slower than the inner planets because the mass in the rest of the solar system is far lower than the mass of the sun. If dark matter is spread throughout a galaxy, and not just at the center, would that not be like having massive planets in the outer part of a solar system, like a lot of jupiters that can have an effect on the planetary motion of the outer planets in the solar system? i.e. if there were a lot of jupiters in the outer regions of a solar system, would they cause the velocity of the outer planets to speed up, like we see in a galaxy with dark matter located throughout the galaxy?

If the universe is made up of ~95% dark matter, and it interacts only gravitationally then why didn't Newton and Kepler discover it before ? Why does it show itself only in the radial velocity profile of stars in galaxies and not in that of planets around the Sun ?


Justification:  The community of SO users is a self-selected community of experts.  The collective opinion of those experts is extremely useful information for users and, before SO, was impossible to glean.  Precise questions that are likely to solicit opinions should be allowed.  Proposed FAQ [unchanged, included for reference]:  [What kind of questions should I not ask here?  Avoid asking questions that are subjective, argumentative, or require extended discussion. This is not a discussion board, this is a place for questions that can be answered!]  Questions that will likely solicit opinions are acceptable as long as they are precise.  For example,   Not Acceptable: Is Flash dead? Acceptable: Has the lack of Flash support on the iPad impacted your technology decision in a recent Rich Internet Application project?  If so, how?

I'm on SO pretty much every day researching something to do with programming, and over the last month or two, I find I'm growing frustrated and a little disgusted at how many interesting questions have been closed as "not a good fit" or "too subjective".  I think there is a confusion between "subjective" and "calls for judgement". To me one of the most valuable things about SO is the tremendous breadth and depth of experience of the members, and experience translates into smart decisions and advice, and that advice cannot always be asked for, or expressed in terms of, bald facts and data.  It's going to be 'subjective'.  I don't think SO should be Wikipedia. I think that if I could ask a question to a group of skilled programmers sitting around a table at lunch, and get interesting, valuable answers, then I don't care whether the question or the answers are 'subjective', I think that question should equally well be fair game for Stack Overflow.  I would like to see a mechanism whereby people who vote to close a question lose reputation when somebody expresses interest in that question or its responses.  How can I, or can I, influence this aspect of SO?