DOM Manipulation and styling the background

I have a list that I want to give a metal/metallic background for each item in the list using DOM manipulation.  List using Bootstrap 4

Item 1

Item 2

Item 3

Item 4

   This is my attempt to style the background of the class.   var backGroundMetallic = document.getElementsByClassName("list-group");  for(var i = 0; i < backGroundMetallic.length; i++) {   backGroundMetallic[i].style.backgroundColor = '#7fffd4'; }   I'm only able to put use one CSS color. Is there a way to reference a CSS class so I can use more than one style in order to style the background for the list to achieve making it metal/metallic?


Please do not mark as duplicate because I have been searching so long on other posts but they don't work for me. Please give me a step by step tutorial as an answer and be VERY SPECIFIC. I am not a tech savvy and my cousin downloaded ubuntu (which I regret) so I honestly know nothing. I bought minecraft for $26 and it sucks that Ubuntu won't let me open. I need as many answers as I can get, because like I said before, I tried other users advices but none of them worked.Thank you so much.  *Also I asked to not mark as duplicate and of course TWO of you marked it as duplicate oh whale i understand    ok so i did this:    java -jar Minecraft.jar    Error: Unable to access jarfile Minecraft.jar  nvm I got Windows back :) thank you for your help and to those who say I need to write everything out, I'm really sorry but it was really late when I tried to fix it so I was trying so many things and I was so frustrated that I fell asleep on my desk.. I honestly know that I did try every answer to this question on this website.   But I'm glad that some people took time to answer and I apologize greatly that my question was "all fluff and no substance." I hope that you all have a wonderful day~


How to get long \texttt sections to break

I often format path names with \texttt which can be very long. Usually Tex will not break this text. The line will just create a hbox overflow. It looks like this:  ................ ...C:\documents and settings ................ ................ ................ ................ ................ ................ ................   How do I get Tex to create a line break?


Recursively search a pattern/text only in the specified file name of a directory?

I have a directory (e.g., abc/def/efg) with many sub-directories (e.g.,: abc/def/efg/(1..300)). All of these sub-directories have a common file (e.g., file.txt). I want to search a string only in this file.txt excluding other files. How can I do this?  I used  grep -arin "pattern" *, but it is very slow if we have many sub-directories and files.


Prove that a function between metric spaces is continuous iff the inverse image of a closed set is closed

Here is the question:     Prove that the function $f: E \rightarrow E'$ between metric spaces is continuous iff whenever $ C\subset E'$ is closed, $f^{-1}(C)$ is a closed subset of $E$.   What I was thinking of doing is this following:  First, assume F is continuous. So we want to show that whenever  $ C\subset E'$ is closed, then $f^<(C)$ is a closed subset of $E$. To do this, do we just need to show that whenever $C^c \subset E'$ is open, then $f^<(C^c)$ is open?


Is my unsaved Quicktime player movie recording still on the hard drive somewhere?

I recorded a movie (File > New Movie Recording) using Quicktime Player and when I stopped I accidentally clicked "Don't Save" instead of "Save".  Is that recorded content still on the hard drive somewhere, maybe in a temp or cache folder or something in a hidden directory?  I'd like to recover it.  Thanks.


Javascript timeout - how is value in function remembered?

I have this function:  //We will store any failed subscriptions and retry them until the succeed (if ever) addFailedSubscription: function(streamId) {   failedSubscriptions[streamId] = true;   $timeout(function() {     failedSubscriptions[streamId] = null;   }, 5000); }   Is this safe? How is it that streamId is available to the timeout function after the function has returned? Is it effectively creating a closure for this function?  Thanks


I am a beginner. I would like to ask how can I center Panel for all resolutions. I have panel which includes other panels and its called ParentPanel. I have tryed to add to designer this stuff  ParentPanel.Location = new Point( this.ClientSize.Width / 2 - ParentPanel.Size.Width / 2, this.ClientSize.Height / 2 - ParentPanel.Size.Height / 2); ParentPanel.Anchor = AnchorStyles.None;   but it said : the type of namescape "point" could not be found, so I used help and it changed New point to New System.Drawing.Point but still it didnt work :/  My Form is fullscreen and its not sizebale so, WindowsState is Maximazed and StartPosition is CenterScreen.  Can you help me please?


As part of a HW assignment in the course elementary set theory, I was given the following question:  Let $A$ be a set and let $T$ and $S$ be two equivalence relations on $A$. Prove: $S\circ T=T\circ S \iff S\circ T$ is an equivalence relation The $\Longleftarrow $ direction was not so difficult but I had a problem with the $\Longrightarrow $ direction.  I managed to prove reflexiveness and symmetry of $S\circ T$, but cannot prove the transitivity of $S\circ T$. Any suggestions?


Divergence of $\vec{f} = \frac{1}{r^2} \hat{r}$

Why am I getting zero divergence of function $\vec{f} = \frac{1}{r^2} \hat{r}$, where $r$ is the distance from the origin and $\hat{r}$ is the unit vector in the radial direction. The divergence of this function over a sphere of radius $R$, which includes the origin.  $$\nabla \cdot f = \frac{1}{r^2} \frac{\partial}{\partial r}(r^2 f_r) = \frac{1}{r^2} \frac{\partial}{\partial r}(r^2 \frac{1}{r^2}) = 0$$


As a Java developer who is reading Apple's Objective-C 2.0 documentation: I wonder what "sending a message to nil" means - let alone how it is actually useful.  Taking an excerpt from the documentation:     There are several patterns in Cocoa   that take advantage of this fact. The   value returned from a message to nil   may also be valid:         If the method returns an object, any pointer type, any integer scalar   of size less than or equal to   sizeof(void*), a float, a double, a   long double, or a long long, then a   message sent to nil returns 0.   If the method returns a struct, as defined by the Mac OS X ABI Function   Call Guide to be returned in   registers, then a message sent to nil   returns 0.0 for every field in the   data structure. Other struct data   types will not be filled with zeros.   If the method returns anything other than the aforementioned value   types the return value of a message   sent to nil is undefined.      Has Java rendered my brain incapable of grokking the explanation above?  Or is there something that I am missing that would make this as clear as glass?  I do get the idea of messages/receivers in Objective-C, I am simply confused about a receiver that happens to be nil.


How to use the Alt + Right click in edit mode in Linux

I am trying to use the Alt+Right Click to select edge loops in Linux Mint but this shortcut doesn't work it is already used for Linux to reduce a window. I have checked the keyboard shortcut but it doesn't appear.


I've been told that I should use simple past in reported speech when the direct speech is in simple present such as I **am** the best   ~>   He said he **was** the best  but what happens for imperative mood direct speech     "Mom said dont trust strangers"   Or     "Mom said didn't trust strangers"   I think I should maintain the first form. But I'm not sure. And I'm not even sure this relates to the sentence mood. I need the best choice and a further explaination for this :)


Integer partition with fixed number of summands but without order

For a fixed $n$ and $M$, I am interested in the number of unordered non-negative integer solutions to $$\sum_{i = 1}^n a_i = M$$  Or, in other words, I am interested in the number of solutions with distinct numbers. For $n = 2$ and $M = 5$, I would consider solutions $(1,4)$ and $(4,1)$ equivalent, and choose the solution with $a_1 \ge a_2 \ge ... \ge a_n \ge 0$ as the representative of the class of equivalent solutions.  I know how to obtain the number of total, ordered, solutions with the "stars and bars" method. But unfortunately, I cannot just divide the result by $n!$ since that would only work if all the $a_i$ are distinct.


Ubuntu hangs and only wallpaper is displayed

I am using Ubuntu 14.04 and after installing a few programs when restarting the machine, the system hangs, I get login, but only the wallpaper appears


Select and copy text to clipboard on double click jQuery

I'm trying to use jQuery to select and copy the text inside the h2 element when i double click the h2 element. (this is with no jQuery involved at all, just the default selecting in browers)  The issue i'm running into is that when i double click it selects less then what i want it to select. when i click 3 times it just selects the whole page.   This is my first post so I don't really know what code I should provide. And I don't have any jQuery written for this yet.  html:
Owl PvP

play.owlpvp.net

shop

forums

staff

Server


Calling a function with a variable changes the variable itself or just his copy?

it's Trumpy again!  Here is the code:  public static void main(String[] ar){     int[] a={1,2,3};     int x=3;     foo1(a);     foo2(x);     System.out.println(a[0]);     System.out.println(x); } public static void foo1(int[] a){     a[0]=55; } public static void foo2(int x){     x=77; }   The output:             55 3   Trumpy's question: when I call to foo2 function it doesn't change the x variable, the change remained in the scope of the function. but when I call foo1 it changes the array itslef, am I right?


How to downgrade PHP from 5.5.9 to 5.4 in Ubuntu 14.04 (Installed with LAMP)

I need to downgrade my PHP version from 5.5.9 to 5.4 (using Ubuntu 14.04), because I have a code that's using mySQL (which is deprecated in 5.5.9), and I cannot change that code. Is there a way to do it?  *I tried the other threads that I saw about that issue in the site, but I couldn't find anything that helped me.


Is there an SMP Server Command to change weather conditions?

The latest version of Minecraft (1.5) brings, among other things, a number of different weather conditions.  Most of these annoy me to no end.  I tend to spend a lot of time playing on an SMP server, so I'm wondering if at least here, there is a way to effect changes in the weather: maybe through server commands?


"Enchufado" or "enchufe" is a colloquial way of saying that a person got a job because a friend or relative gave it to him, instead of earning it themselves.   I thought about the word "appointed" but that is too formal and I don't think it conveys quite the same meaning (you could be appointed and still have earned the job).


$G$ is a group and $N,M$ are normal subgroups of $G$. Prove that $nm=mn$ for all $n\in N,m\in M$.

My problem is the following $G$ is a group and $N,M$ are normal subgroups of $G$.  $N\cap M = \{e\}$.  Prove that $nm = mn$ for every $n\in N,m\in M$.   What i did - I know that $gng^{-1}\in$ N  for all g $\in G$  So also $mnm^{-1}\in N $  Now if $nm =mn$ then i can make the above be $n \in N$.  but if not .. then I can't find a contradiction.  Any help will be appreciated.


ArcGIS - possible to set the drawing order of polygon features

I have a table with polygons that I wish to display in a map. I would like the smaller polygons to appear on top of larger polygons. Is there a way to set the drawing order such that  the larger polygon outlines don't cover up the smaller ones?  I've tried using the polygon area attribute as a transparency factor within the layer's symbology properties - but this is not working well enough.


Can you install the OS onto the USB you are using to boot the iso from?

I'm trying to install Ubuntu desktop onto my usb flash drive, but I'm using that same usb flash drive to boot the disk image. When I try to install the OS onto the usb, I get the error The ext4 file system creation failed. I think this is because I'm using the same usb to both boot the image and install the OS onto.


I'm getting this virus about 8-18 happen at once. My Avast! is blocking it but it triggers when ever I shut down my computer, and turn it on again. I have done a virus scan with Avast! and MalwareBytes but nothing is found.   I don't know how to get rid of it.  P.S. This is what my avast says:  URL:http://simplesitescan.net/4343/BocaProc_142667268793723.dll Infection: URL:Mal Process: C:\Windows\System32\svchost.exe


Why are neutrinos ruled out as a major (or even sole) component of dark matter?

A number of times I have encountered in text-books and articles that neutrinos might contribute only a small fraction to dark matter. The reason has to do with the fact that if all of the dark matter consisted of neutrinos, then small-scale structures in the Universe could not have formed yet, because, as they say, neutrinos "wash out" small fluctuations. However, none of these texts provided a reference to any specific sources explaining in detail what is meant by "washing out". After all, neutrinos are notorious in their weak interaction with baryonic matter, so if there is a small-scale fluctuation of baryons, then how background neutrinos can prevent it from growing further if they practically do not interact with baryons? I guess the question boils down to calculating cross-sections of interactions at specific temperatures. I would appreciate comments and references to sources addressing this particular issue.


Remove newpage after \tableofcontents, \listoffigures, etc. in book class

When using a documentclass of book, it seems there is a \newpage inserted after the \tableofcontents and \listoffigures. How can I suppress this? In articles, the following works. How can I get this layout with a book?  \twocolumn \tableofcontents \listoffigures \listoftables \printglossaries \onecolumn


$\sum_{n=1}^{\infty} n $ equals to another value than $\frac1{12}$

clearly $\sum_{n=1}^{\infty} n $ is a divergent series  but there is a way to show that $\sum_{n=1}^{\infty} n =-\frac1{12}$ (not really meaningful to me)  My problems are,   1. can we show $\sum_{n=1}^{\infty} n $ is equal to another real number different from $-\frac1{12}$ ?  2. If there is a way, by using these results can we prove the series $\sum_{n=1}^{\infty} n $ is divergent?(using the method of contradiction)  thanks.


I have a server, today load of my server over 20, i was found a command that detect alive connection to server for DDOS detection and reject IP.  netstat -anp | grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n   and result of this command was:    1 109.162.158.160   1 109.162.192.55   1 127.0.0.1   1 206.217.193.220   1 91.99.170.69   2 66.197.219.236   5 213.152.172.169  32 0.0.0.0 583    583 connection without IP, how can i fix this problem? server load over 20  tnx for your help.


What type of pipe is best for venting my stove hood? Does flexy hose work or should it be hard pipe only?


Unicode characters changing order in listings (XeTeX)

I am trying to input code listings with unicode characters and everything seems to work (more or less) except some unicode characters being displayed out of order. For example instead of  służąca do obsługi  I get  łżąsuca do łobsugi  How can I fix that? EDIT: I was asked for providing some code, but unfortunately I doubt it will be any helpful. Basically code like this: \documentclass[11pt,polish]{article}  \usepackage{fontspec} \usepackage{listings} \usepackage{xunicode} \usepackage{xltxtra} \usepackage{babel}  \setmainfont{Charis SIL} % Some font with good unicode support  \begin{document} \begin{lstlisting} służący \end{lstlisting} \end{document}  will output this:  łżą sucy  (yes there is a line break, I don't know where it came from, when I input code in form of a file there are characters out of order, but no line breaks).


protection from sql injection with GET parameter

I know that this question has been asked so many times but there are a lot of different answers that's confusing me. I have just one parameter that's passing through url and it is in a sql query, so a GET request and i really don't know how to protect myself from SQL injection. How can I do?


Setup for a wine bottle with multiple labels

I have modeled a wine bottle and created various wine label designs for a client. The labels were created in Illustrator and so I have PNGs. I want to present a render of the same bottle with each label the client. The labels are not simple rectangles.   Should I:    "model" each label and wrap it on the bottle, or  try to map each label image to a portion of the bottle's surface?    I've seen lots of tutorials showing option #2, but something is telling me that the glass of the bottle should be separate from the "paper" label.  Also, with #1, couldn't I use the same bottle blend file and use a different layer for the each label, then turn on a different layer for each new render?  Maybe there's an even better strategy?  thanks,


How do I end a Tkinter program? Let's say I have this code:  from Tkinter import *  def quit():     # code to exit  root = Tk() Button(root, text="Quit", command=quit).pack() root.mainloop()   How should I define the quit function to exit my application?


How to prove that this series is a metric: $d(x,y):=\sum_{i=0}^\infty \frac{|x_i -y_i|}{2^i (1+|x_i-y_i|)}$

I have to prove that this is a metric: $$d(x,y):=\sum_{i=0}^\infty \frac{|x_i -y_i|}{2^i (1+|x_i-y_i|)}$$  The only thing that I can't prove is the triangle inequality, it's really hard. I know that $|x_i -y_i|\le |x_i -z_i|+|z_i -y_i|$, and I want to get: $$\frac{1}{2^i (1+|x_i-y_i|)} \le \frac{1}{2^i (1+|x_i-z_i|)}+\frac{1}{2^i (1+|z_i-y_i|)}$$ (I think...) The closest thing I've got is: $2^i (1+|x_i-y_i|)\le 2^i (1+|x_i-z_i|)+2^i (1+|z_i-y_i|)$ but... that's not quite what i want. I don't know how to get this...


Why GetHashCode method needs to do shift in C#

According to MSDN GetHashCode Method:  public struct Point {     private int x;     private int y;      public Point(int x, int y)     {        this.x = x;        this.y = y;     }      public override bool Equals(Object obj)     {        if (!(obj is Point)) return false;         Point p = (Point) obj;        return x == p.x & y == p.y;     }      public override int GetHashCode()     {          return ShiftAndWrap(x.GetHashCode(), 2) ^ y.GetHashCode();     }       private int ShiftAndWrap(int value, int positions)     {         positions = positions & 0x1F;          // Save the existing bit pattern, but interpret it as an unsigned integer.         uint number = BitConverter.ToUInt32(BitConverter.GetBytes(value), 0);         // Preserve the bits to be discarded.         uint wrapped = number >> (32 - positions);         // Shift and wrap the discarded bits.         return BitConverter.ToInt32(BitConverter.GetBytes((number << positions) | wrapped), 0);     } }   I'm confused about the ShiftAndWrap Method, I know that is used to avoid generating collision hashcode. But I have questions as follows:   Why the parameter positions is set as 2? Why the method do right-shift (32-positions) first then do left-shift positons, Does it have specific meaning? As mentioned above, this method is used to reduce the situation of having collision, e.g. new Point(5,8) vs new Point(8,5), but if I create an object like new Point(3,16), it will get the same hashcode as new Point(5,8) did, so... what's the real effect of this method?


Deleting file using CSOM - C# deletes file but throws exception "File Not Found"

i am working on function that deletes a file from Share Point Documents. The function works but it throws exception that file not found.  protected void DeleteFile(string filename, Uri hostWeb)     {         using (var clientContext = TokenHelper.GetS2SClientContextWithWindowsIdentity(hostWeb, Request.LogonUserIdentity))         {             Web web = clientContext.Web;             List docs = web.Lists.GetByTitle("Documents");              Microsoft.SharePoint.Client.File f = web.GetFileByServerRelativeUrl("/Shared Documents/" + filename);             f.DeleteObject();             clientContext.Load(f);             clientContext.ExecuteQuery(); // Delete file here but throw Exception                             Console.Write("deleted");         }     }


The last couple of days i have been thinking about temperature and heat and i thought :  What happens to temperature if i continually supply a particle with energy?   Then i thought at sometime i would run out of energy (the energy of the whole universe) so that would be the limit of temperature.   But temperature is proportional to the jiggling of the particle but the particle cannot move as fast as light so i used an equation from thermodynamics from Kinetic theory of gases which suggests that:    So i figured the limit of Temperature would be :    Can you follow this possibly crazy train of thought?  Please explain to me: Does temperature have a limit? If so what is it?


Block local (unix) users from sending mail

Is there a way to block a local/unix user (or a list of local users) from sending mails via mail command (or maybe even in postfix, which is the MTA I have).


Software store only contain the installed apps and unable to install .deb files

I'm trying to install Steam and i downloaded the .deb file from the page but when i click install on it it just flashed "installing" for about 0.3  seconds.  As shown in the screen shot    HELP  EDIT:I ran this:sudo dpkg -i ~/Downloads/steam_latest.deb  And this error was shown.  `  Selecting previously unselected package steam-launcher. (Reading database ... 154515 files and directories currently installed.) Preparing to unpack .../Downloads/steam_latest.deb ... Unpacking steam-launcher (1.0.0.52) ... dpkg: dependency problems prevent configuration of steam-launcher:  steam-launcher depends on curl; however:   Package curl is not installed.  steam-launcher depends on python-apt; however:   Package python-apt is not installed.  dpkg: error processing package steam-launcher (--install):  dependency problems - leaving unconfigured Processing triggers for gnome-menus (3.13.3-6ubuntu3) ... Processing triggers for desktop-file-utils (0.22-1ubuntu5) ... Processing triggers for mime-support (3.59ubuntu1) ... Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ... Processing triggers for man-db (2.7.5-1) ... Errors were encountered while processing:  steam-launcher   `


Start menu Search not showing anything, even after clean window install

I've tried every fix online, from a simple restart, End Cortana, Restart Explorer, check windows search in Services.msc, even install a new clean copy of Windows 10 (1903; 18362.356), and yet nothing is working


How can i set different wallpapers for Ubuntu 15.04 login and Desktop

This has been bothering me very much. i have memory that Ubuntu 12.04 had this configuration? am i wrong? finally, is it possible for the login screen to have different wallpaper from the desktop? is this possible in Ubuntu 15.04? i would appreciate a stable understandable response. thanks :)  -ben


How to extract a component of integer vector / music interval?

(I will ask this question in musical terms, but this seems to be related to projecting integer vectors onto each other, which I'm unfamiliar with. Perhaps I'm just looking for some existing notation that I'm not aware of, I'm not completely sure.) I'm given a music interval, e.g. a minor 6th which I'll write as $[\text{m}6]$.  Each interval can be uniquely expressed as a linear (integer) combination of fifths and octaves, e.g $[\text{m}6] = -4[5] + 3[8]$. (Note that $[5]$ and $[8]$ are linearly independent: there is no (integer) linear combination of them that equals to zero, that is, the unison / perfect prime interval $[1]$.) My question is: How can that integer $-4$ be expressed in terms of $[\text{m}6]$, $[5]$, and $[8]$?


Is there some way to connect two computers using USB?

USB is a popular standard and I was wondering whether there is some way to connect two or more computers using USB ports rather than the Ethernet ports.


Why my dinner rolls get dry after two days?

I bake eggless dinner rolls at home, also known as “Paav”in many countries. I use  dry yeast to make dough. Also, use sugar for  yeast fermentation, and butter and salt as per the requirements. I bake it @ 360 F for 25-30 minutes. It comes out really soft and in a good texture. Everyone enjoys it’s taste at home. However, the texture of the rolls stays same for at most two days max then it gets dry and hard. I don’t realize what wrong am I doing. I also, wrap left over rolls air tight with sealing wrap. I would appreciate your answer.


I'm trying to check the length here.  Tried count.  Is there something I'm missing?  var dNames = {};  dNames = GetAllNames();  for (var i = 0, l = dName.length; i < l; i++)  {         alert("Name: " + dName[i].name); }   dNames holds name/value pairs.  I know that dNames has values in that object but it's still completely skipping over that and when I alert out even dName.length obviously that's not how to do this...so not sure.  Looked it up on the web.  Could not find anything on this.


Why do not I have 64 bit options on General -> Basic -> Version and also UEFI in bios?(trying to install ubuntu on vm and getting kernel error)

I'm trying to install Ubuntu on a virtual box and I get this error "This kernel requires an x86-64 CPU, but only detected an i686 CPU." When I go to General -> Basic -> Version I do not find any 64 bit options. Also, in Bios menu I don't have all advanced options (UEFI Firmware Options is missing).   VirtualBox.xml:  <?xml version="1.0"?> <!-- ** DO NOT EDIT THIS FILE. ** If you make changes to this file while any VirtualBox related application ** is running, your changes will be overwritten later, without taking effect. ** Use VBoxManage or the VirtualBox Manager GUI to make changes. --> <VirtualBox xmlns="http://www.virtualbox.org/" version="1.12-windows">   <Global>     <ExtraData>       <ExtraDataItem name="GUI/DetailsPageBoxes" value="general,system,preview,display,storage,audio,network,usb,sharedFolders,description"/>       <ExtraDataItem name="GUI/GroupDefinitions/" value="m=a33345a6-95b1-4c24-b4ee-13625b013b79,m=f790da3a-50f7-444d-9111-aee4bdbb1a79,m=66477e7d-ded9-42fd-9825-fa70fa67a5b9,m=08eb0d4b-5ae3-4285-86dd-d1a77dcd1919"/>       <ExtraDataItem name="GUI/HideDescriptionForWizards" value="NewVM"/>       <ExtraDataItem name="GUI/LastItemSelected" value="m=Loredana"/>       <ExtraDataItem name="GUI/LastWindowPosition" value="319,91,770,550"/>       <ExtraDataItem name="GUI/RecentFolderCD" value="C:/Users/Loredana/Downloads"/>       <ExtraDataItem name="GUI/RecentListCD" value="C:\Users\Loredana\Downloads\ubuntu-18.04.1-desktop-amd64.iso,C:\Users\Loredana\Downloads\mini.iso,C:\Users\Loredana\Downloads\ubuntu-18.04.1-desktop-amd64 (1).iso,C:\Users\Loredana\Downloads\ubuntu-16.04.2-desktop-i386.iso,C:\Users\Loredana\Downloads\ubuntu-16.04.2-desktop-amd64.iso"/>       <ExtraDataItem name="GUI/SplitterSizes" value="255,510"/>       <ExtraDataItem name="GUI/Toolbar/MachineTools/Order" value="Details"/>       <ExtraDataItem name="GUI/UpdateCheckCount" value="37"/>       <ExtraDataItem name="GUI/UpdateDate" value="1 d, 2018-12-04, stable, 5.2.22"/>     </ExtraData>     <MachineRegistry>       <MachineEntry uuid="{a33345a6-95b1-4c24-b4ee-13625b013b79}" src="C:\Users\Loredana\VirtualBox VMs\Ubuntu\Ubuntu.vbox"/>       <MachineEntry uuid="{f790da3a-50f7-444d-9111-aee4bdbb1a79}" src="C:\Users\Loredana\VirtualBox VMs\lore\lore.vbox"/>       <MachineEntry uuid="{66477e7d-ded9-42fd-9825-fa70fa67a5b9}" src="C:\Users\Loredana\VirtualBox VMs\Ubuntu-16.04\Ubuntu-16.04.vbox"/>       <MachineEntry uuid="{08eb0d4b-5ae3-4285-86dd-d1a77dcd1919}" src="C:\Users\Loredana\VirtualBox VMs\Loredana\Loredana.vbox"/>     </MachineRegistry>     <NetserviceRegistry>       <DHCPServers>         <DHCPServer networkName="HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter" IPAddress="192.168.56.100" networkMask="255.255.255.0" lowerIP="192.168.56.101" upperIP="192.168.56.254" enabled="1"/>       </DHCPServers>     </NetserviceRegistry>     <SystemProperties defaultMachineFolder="C:\Users\Loredana\VirtualBox VMs" defaultHardDiskFormat="VDI" VRDEAuthLibrary="VBoxAuth" webServiceAuthLibrary="VBoxAuth" LogHistoryCount="3" exclusiveHwVirt="false"/>     <USBDeviceFilters/>   </Global> </VirtualBox>


I've calculated $\lim_{n\to\infty}\dfrac{1^p+2^p+\cdots+n^p}{n^{p+1}}=\dfrac1{p+1}$ where $p\in\mathbb{N}$ fixed. I feel it should help me get this one $\lim_{n\to\infty}\left(\dfrac{1^p+2^p+\cdots+n^p}{n^{p}}-\dfrac{n}{p+1}\right)$, but I'm not sure how. Any hints?


Mesh transparency, with image but turns the transparent parts black

I'm still new to this, I have a transparent image for this mesh, but it makes the transparent parts black, any help?   only appears transparent in texture paint though I don't get it


ordered citation in text with \autocite{} by date

I hadn't take care about citation order in my phd. I have used \autocite{} as well as \textcite{}. Now I would like to do this job automaticaly... and order by date. It's possible in a less tricky way than what @Audrey  ?  a short exemple   \documentclass[a4paper,12pt,twoside=semi,openright]{scrbook}%recto-verso  \usepackage[french]{babel} \usepackage[babel=true]{csquotes} % csquotes va utiliser la langue définie dans babel \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{subfigure} \usepackage{setspace} \usepackage{newunicodechar} %pour les caractères speciaux dans les biblio par exemple! \usepackage{layout} \usepackage[   maxcitenames=2,   maxbibnames=99,   style=authoryear-ibid,   backend=biber,     sorting=nyt, %appel biblio par  name year name title ... on peut aussi fair ynt   doi=true,    url=false,    eprint=false,    sortcites=true, %%pour trier ds le texte les citations   %hyperref=true,   firstinits=true,   uniquename=init ]{biblatex}  \DeclareUnicodeCharacter{00A0}{~} %permet d'accèpter les problèmes d'espaces insécable \DeclareUnicodeCharacter{00A0}{ }   \addbibresource{biblio.bib}   \begin{document}     babalbalbablalb \autocite{amblard_modelisation_2006, amo-salas_new_2011, anderson_applications_1999}.  \end{document}   and my .bib  @book{amblard_modelisation_2006,     title = {Modélisation et Simulation Multi-agents Applications pour les Sciences de l'Homme et de la Société},     isbn = {2746213109},     pagetotal = {446},     publisher = {Hermes Science Publications},     author = {Amblard, F. and Phan, D.},     date = {2006-09-05} }  @article{amo-salas_new_2011,     title = {A new model for predicting the flight activity of Lobesia botrana (Lepidoptera: Tortricidae)},     volume = {30},     issn = {0261-2194},     url = {http://www.sciencedirect.com/science/article/pii/S0261219411002912},     doi = {10.1016/j.cropro.2011.09.003},     shorttitle = {A new model for predicting the flight activity of Lobesia botrana (Lepidoptera},     pages = {1586--1593},     number = {12},     journaltitle = {Crop Protection},     shortjournal = {Crop Protection},     author = {Amo-Salas, Mariano and Ortega-López, Vanesa and Harman, Radoslav and Alonso-González, Agustín},     urldate = {2014-10-28},     date = {2011-12},       keywords = {Logistic function, model, Ribera del Duero, Touzeau model},     file = {ScienceDirect Full Text PDF:/home/delaye/.mozilla/firefox/xlpcg1ts.default/zotero/storage/RDS7EKN2/Amo-Salas et al. - 2011 - A new model for predicting the flight activity of .pdf:application/pdf;ScienceDirect Snapshot:/home/delaye/.mozilla/firefox/xlpcg1ts.default/zotero/storage/SRB26DAW/S0261219411002912.html:text/html} }  @book{anderson_applications_1999,     title = {Applications and misapplications of cognitive psychology to mathematics education},     url = {http://act-r.psy.cmu.edu/papers/misapplied.html},     publisher = {{ERIC} Clearinghouse},     author = {Anderson, J. R. and Reder, L. M. and Simon, H. A.},     urldate = {2013-10-16},     date = {1999},     file = {[HTML] à partir de cmu.edu:/home/delaye/.mozilla/firefox/xlpcg1ts.default/zotero/storage/JD7DJUB4/misapplied.html:text/html} }   That give me    and I would like


Any way to have CPU temperature in the menu bar?

I tried  and  but it does not update the temperature and I do not wish to change the fan speed.


I am very new to Stack Overflow. It's hard for me to find the questions which I asked. How to find out my own questions?


My php project reported error: unable to write file. I found that might be caused by permission guaranteed for directory containing my project files.  I did this:  sudo chown [username]:[username] -R [directory location]   and then restarted apache but nothing got changed even my /WWW is in home. Any help is appreciated :)


What does the "moment" in the moment of force or the moment of inertia refer to?

According to the Merriam Webster dictionary:     Moment - a very short period of time   Does the word "moment" in quantities like the moment of force or moment of inertia refer to this colloquial meaning of "moment" too? If so, where exactly is the "short period of time" involved in, say, moment of force? For me it has always been just the tendency of a force to rotate an object around an axis and I don't see any reference to time there.


I use jQuery to create HTML elements (specifically, to add a row to a table), but I want to use the generated elements in jQuery. What I came up myself is this:  function add_row() {     var id = Math.floor(Math.random() * 100000);      $("#properties").append('
'+         '<input id="'+id+'" type="text" name="myInput">	'+     "
");      $("#"+id).bind('keydown', hotkey.toLowerCase(), function() {         do_stuff();     }); }   Note that I use  to bind to the input. It doesn't seem to support the on way.  But this feels a little clunky. Is there a better way?


Kernel panic on boot up with 13.10 live-USB

I am a new user for Ubuntu. I downloaded 13.10 yesterday and made a bootable USB with universal USB installer on my Lenovo IdeaPad Z580 laptop which is now using UEFI; everything appeared OK.  When I booted from the LiveUSB I got the choices of trying or installing Ubuntu but both of them keep giving me these error:  [ 1.929082] kernel panic-not syncing vfs unable to mount root fs on unknown-block (0.0)   Please tell me what is going wrong?


Is it good practice to capitalize/not-capitalize a question's title?

Knowing that in some English texts, it is , I want to know whether this is true for Stack Overflow et al, too.  So my question is:  Should I capitalize question headlines/titles?


I play the character called Tristana in League of Legend. Tristana have an ability called "BUSTER SHOT" (Tristana's ultimate).     BUSTER SHOT:    Tristana fires a massive cannonball at an enemy unit. This deals 300 / 400 / 500 (+150% of ability power) magic damage and knocks surrounding units back 600 / 800 / 1000 distance.   What does the numeric value of distance in League of Legends, as described in this ability, equal to what visible range in the game?  In other RTS games, like StarCraft 2 - it's a nice thing to know when you engage in combat. To be startegic in your advance against an enemy, and your teamwork regarding League of Legends.  If I knew what the "distance" is translated into on the screen, I could be more effective in positioning my teammates for the final-blow on an enemy hero.


How to set a permanent environment variable?

I am not yet a Linux guy and I have some problem trying to add a new permanent environment variable.  So I have to set a new environment variable named CATALINA_HOME with this value: /opt/apache-tomcat-8.0.23  What can I do to set it permanently?  Tnx


Photoshop - PNG sequence to gif with trasparency

I have a problem with exporting all png sequence (these are all with the transparency, also been exported to video with after effect, selected rgb+alpha), the issue is that the optimized format shows me a "too much red" respect of the original one, I already made sure that the option matt has been disabled, also gif with the checkbox enabled into it. So don't know if there is something wrong with some setting. Thank you in advice, I will give you the images for references:   Thank you in advice for any help.


APT error: Malformed entry 1 in list file /etc/apt/sources.list.d/itchio.list

I really don't care if I get rid of the update or get it I just want this annoying red dot gone. I know that I can not show notifications but I want them.  I did what the notification told me to do but I was unable to remove or update the file. Any help would be greatly appreciated.


Javascript date.getYear() returns 111 in 2011?

I have this javascript for automatically setting a date filter to the first and last day of the previous month:  $(document).ready(function () {     $("#DateFrom").datepicker({ dateFormat: 'dd/mm/yy' });     $("#DateTo").datepicker({ dateFormat: 'dd/mm/yy' });      var now = new Date();     var firstDayPrevMonth = new Date(now.getYear(), now.getMonth() - 1, 1);     var firstDayThisMonth = new Date(now.getYear(), now.getMonth(), 1);     var lastDayPrevMonth = new Date(firstDayThisMonth - 1);      $("#DateFrom").datepicker("setDate", firstDayPrevMonth);     $("#DateTo").datepicker("setDate", lastDayPrevMonth); });    BUT now.getYear() is returning 111 instead of the expected 2011.  Is there something obvious I've missed?


How can I fix "Bone Heat Weighting Failed" Issue?

When I try to use the Automatic Weights option to parent my mesh to the Rig how come it deforms the meshes left arm?


Why CurrentCulture and UICulture are two different properties?

I understand the difference between CurrentCulture and CurrentUICulture well. The question I have is why did we require two separate properties, one for things like Date,Current format and one for using the right resource file?  Is it ever going to be that my Date/Currency etc is set at a Japanese culture but my Resource file that is being used is of US-English?  I have a clue to the answer: may be CurrentCulture is for a broader class of language (e.g. en) and UICulture is for more specific variant of the language (like en-US) but am not sure if  this is true.


Transit Visa in Hong Kong for 15 hour layover between India and USA?

We are (2) Indian nation and travelling from India to USA via Hong Kong airport and about 15 hours layover in Hong Kong airport. Do we need a transit visa even if only changing planes? And can we apply in Hong Kong Airport?


Jquery selector doesn't working with ajax response

The following data is coming from an ajax response and then I've appended it to the DOM.    <input name="new"       value=1 type="checkbox"       id="switchButton"       data-id="'+order.id+'"       data-toggle="toggle">          I used the follwoing method to sellect the checkbox value and toggle the state of the setButton div but it is not working. the jquery code is placed inside document ready function. $('#switchButton').click(function(){                 $('#setButton').toggle();             });  The div which i want to hide and show is as follow:
             <button type="button" name="button"></button>
  Note: When I do the functionality in JavaScript it works but it misses some clicks, say once it is clicked the button will be displayed but when click again it doesn't hide it and when clicked again it will hide it.


Active: He let me go there. Passive: I am let go there by him. Or I am allowed to go there by him. Which 1 is correct? Can we use [BE(am/is/are)+LET+VERB] -this structure in a sentence?


Run un-elevated command from an elevated prompt?

Is it possible to run a command without elevated privileges from batch file that was run with elevated privileges?


Quantifying pain during medical examination

During examination of a patient a doctor asks " On  a scale of 1 to 10" how much does this hurt you?"   How to reply.. one can state only in comparison to what in life was so far felt, is it not? that too subjectively?


When I open Scilab through Dash, it's closed immediately after the program opened

I have installed Scilab manually, copied the Scilab.desktop to the directory /user/share/applications.  When I open Scilab using the Scilab command, it works well.But when I open Scilab through Dash, Scilab is opened, then closed immediately.  Can someone explain this and help me fix the issue?


Does anyone know who else is in the soul stone? And if anyone has used its power before?      What happens to Red Skull after the soul stone was taken from Vormir?


A book about the the protagonist being able to bodily trans-locate which is referred to specifically as a 'Jaunt' or 'jaunting'

I am looking to buy a book that my father read as a boy, for his next birthday.  I know very little about it except the protagonist is able to bodily trans-locate in a manner referred to specifically as a 'Jaunt' or 'jaunting'.  My father's childhood was in the late 1930's through the 40's, so I would guess this is relatively early SciFi.


How to make the table be put at the top of the new page? (I use the \begin{table}[!t] but not work)

when it happens that I write the end of the page and then I insert a table, the table appears in the next page will not be put in the top of the page as I desired but be put in the middle of the new page. I try to use  \begin{table}[!t]  and  \begin{table}[!ht]  but it didn't work. How to make at be put in the middle of the new page when changing pages? Thanks for and help!


Is it possible to rotate an HDRI background without rotating the lighting it gives off? I know that you can go into shading, world, and then add a mapping node and that rotates it, but that also rotates the light, I wanna keep the light in the same place but rotate the background. Is there any way to do this? Thanks!


Characterization of all those integral domain for which $1$ is the only element that is its own multiplicative inverse?

For any element $x$ which is self invertible, we have $x^{2}=1$. And $(x-1)(x+1)=0$ which implies $x$ must be either $1$ or $-1$ as we have considered an integral domain.  I was wondering whether there are more such elements or these are the only ones? With the help of the above, can we characterize all those integral domain for which $1$ is the only element that is its own multiplicative inverse?


Adjusting line-spacing in headline template

How can the line-spacing inside the headline-template be adjusted?   Consider the following code, if it is used inside a normal frame I can control the line-spacing by modifying the baselineskip in \fontsize{size}{baselineskip}.   But if I try to use it within the headline-template, changing the baselineskip does not make any difference.  \documentclass[t]{beamer}  % Fonts \setbeamerfont{title}{series=\bfseries,size=\fontsize{16}{24}}  % Headline \setbeamertemplate{headline}{%     \begin{minipage}[b][0mm][t]{85mm}%         \usebeamerfont{title}{%             \inserttitle         }%     \end{minipage}%      }  \title{Really long title to test all the three possible lines is not yet long enough but know}    \begin{document}      \begin{frame}[t]     \end{frame}      \setbeamertemplate{headline}{}     \begin{frame}[t]             \begin{minipage}[b][0mm][t]{85mm}%                 \usebeamerfont{title}{%                     \inserttitle                 }%             \end{minipage}%      \end{frame}    \end{document}       I also tried the answer , but the line-spacing remains unchanged.  \documentclass[t]{beamer}  \def\beamer@typesetheadorfoot#1{% typeset the head or footline     {\parskip0pt %\offinterlineskip%         \hbox{%             \hskip-\Gm@lmargin%             \hbox{%                 \vbox{%                     \@tempdima=\textwidth%                     \textwidth=\paperwidth%                     \hsize=\textwidth%                     \def\\{,}%                     \usebeamertemplate***{#1}%                 }}%                 \hskip-\Gm@rmargin%             }}\hfil%         }   % Fonts \setbeamerfont{title}{series=\bfseries,size=\fontsize{16}{24}}  % Headline \setbeamertemplate{headline}{%     \begin{minipage}[b][0mm][t]{85mm}%         \usebeamerfont{title}{%             \linespread{3.}             \inserttitle \par         }%     \end{minipage}%      }  \title{Really long title to test all the three possible lines is not yet long enough but know}    \begin{document}      \begin{frame}[t]     \end{frame}      \setbeamertemplate{headline}{}     \begin{frame}[t]             \begin{minipage}[b][0mm][t]{85mm}%                 \usebeamerfont{title}{%                     \inserttitle                 }%             \end{minipage}%      \end{frame}    \end{document}


I'm constantly seeing myself having to go through a long process to get my search result for unanswered questions and I can't seem to find the efficient way to go about it.  I have saved favorite tags , , and . I want to search for questions where any or more of these tags exist. If I click on the saved favorite tag  and then , the PHP will be replaced, so I always have to select from the unanswered tags (where the selection is added not replaced).  So I'm always clicking the 3 tags which I have to find in the "unanswered tags" group. Is there any way I can search all my favorite tags at once?


Why did this table tennis ball rise to the sky?

The nozzle makes the water flow through the upper part of the table tennis ball. If the angle and velocity of the water jet are well controlled, the table tennis ball will rise to the sky. The string is used to hold the table tennis ball and prevent it from being washed away by water. Someone told me that it's because of Bernoulli's law, because the water above table tennis is is moving, and the air below table tennis is is static. But I don't believe that explanation. Because of the relativity of movement, I can also say that the air under table tennis is is moving, while the water is static.


How do I install Lubuntu without a cd or usb in Ubuntu 12.04?

I was given an old Coby netbook with Win XP and decided to wipe it out and install Lubuntu. Went through a round of tries with Wubi and Unetbootin and wasn't successful. However, I was successful in getting Ubuntu installed on the netbook. Now I'm curious if I can install Lubuntu on the system with Ubuntu installed? The netbook does not have a cdrom drive nor can it boot from a USB stick. I do have a working internet conection on the netbook. I don't want to dual boot both. I just want Lubuntu on the netbook. Any thoughts or ideas?


I have asp mvc site www.mysite.com. I want to create controller with method, that returns view on specific url - register.mysite.com. I want to create hidden section of mysite for admins to add new data into site DB. How i can do id?


I want to create application for linux system and i want to know how to modify open source application like vestacp webmin

I am a very beginner in linux development..plz explain what i want to learn to build linux application or develop or modify open source application


I had a Debian Jessie installation on my laptop. I tried to boot live from USB a Kali linux distro and I lost grub.  I have a very important project on this drive. I tried to reinstall grub but failed. Can anyone tell me a way to either reinstall grub correctly or just get the two files from the disk and then format it?  My (non-root) user is password protected, will this cause any problems? Of course I remember the password


How can I replace Snap application such as Gnome Calculator with a deb?

So, thanks to this bug:  I would rather not use Snap packages. The only one that I really use is Calculator but I would like to replace all of them with a deb version. How would I go about it?


how to charge 320 v capacitor with 9v battery

How can I charge a 320-volt 110-uF capacitor with a 9-volt battery?  I'm a begginer at electronics. So, Kindly guide me. Thankyou.   Update: I found this schematic on how a camera capacitor is charged and discharged.   Is this how i should do it?


How can I keep an environment all on one page?

In other words, how can I forbid pagination between \myenv and \endmyenv?  I thought at first to make the whole thing a box; if I'm not mistaken---this would prevent TeX from breaking it up---but I don't know how to do that in an environment...environment.  I have a not-MWE, but I feel like this question is sufficiently general that it doesn't need one; it may even be a duplicate that I failed to find.


CommandNotFound.db.creator import DbCreator on ubuntu

after installing Python 3.7 and Mysql on Ubuntu 18 LTS, I am getting following error after firing command "sudo apt update"  Get:7 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]       Fetched 252 kB in 1s (334 kB/s)                                 Traceback (most recent call last):   File "/usr/lib/cnf-update-db", line 8, in <module>     from CommandNotFound.db.creator import DbCreator   File "/usr/lib/CommandNotFound/db/creator.py", line 11, in <module>     import apt_pkg ModuleNotFoundError: No module named 'apt_pkg' Error in sys.excepthook: Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook     from apport.fileutils import likely_packaged, get_recent_crashes   File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>     from apport.report import Report   File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>     import apport.fileutils   File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>     from apport.packaging_impl import impl as packaging   File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 24, in <module>     import apt   File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>     import apt_pkg ModuleNotFoundError: No module named 'apt_pkg'  Original exception was: Traceback (most recent call last):   File "/usr/lib/cnf-update-db", line 8, in <module>     from CommandNotFound.db.creator import DbCreator   File "/usr/lib/CommandNotFound/db/creator.py", line 11, in <module>     import apt_pkg ModuleNotFoundError: No module named 'apt_pkg' Reading package lists... Done E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi' E: Sub-process returned an error code   Now while installing any new software I am getting same error again and again.  Is there any solution on this?


Are my documents sufficient to enter the UK?

I have a Malaysian passport, which allows me to visit the UK without a visa for 6 months. I left my job (Fortune 500 company) recently with the intention to travel and explore. Since my sister lives in the UK, I decided to make the UK my choice of travel.  I have visited the UK twice in the past (2-3 weeks each time) with no issue. But since this time my ticket is 6 months, I have been made aware that it raises red flags at immigration (to be honest I just stretched my return, as will likely return sooner). I have reached out to the UK embassy here in KL and the website. So I have prepared for the following:   Bank statement with 30K pounds (including a fixed deposit). But no continued income from the previous employment, only from my partner (see below point 5). SPA of a condo I own here in KL. Car ownership here in KL. Home address of my sister who co-owns a house with her fiance (who is a British citizen). Letter from my partner who is of European origin (has his own business), that he will be sponsoring me. Full travel insurance coverage.   Is this sufficient? If this would be a problem then should I just change my ticket to something sooner? Please advise. Thanks.


Webex on Ubuntu 18.04 step-by-step guide

Can anyone provide a step-by-step guide to have Webex working on Ubuntu 18.04? I would like to participate in Webex meetings and share my screen.


How could I center a grid container horizontally to the window?

I've seen a lot of answers pertaining to grid elements, but I would like to center a grid container horizontally. Here's a snippet of the code I have right now.   .htable {   grid-row: 1 / 2;   grid-column: 2 / 3; }  .hlines {   grid-row: 1 / 2;   grid-column: 3 / 4; }  results[type='table'] {   grid-row: 2 / 3;   grid-column: 2 / 3; }  results[type='lines'] {   grid-row: 2 / 3;   grid-column: 3 / 4; }  form {   grid-row: 1 / 3;   grid-column: 1 / 2; }  content {   display: grid;   grid-template-rows: 5vw 85vw;   grid-template-columns: 20vw 35vw 35vw;   margin: auto; } <content>   <form>
     <uinput type='pulse'>       pulse:       <input type='number' class='pulse' min='2' maxlength='2' oninput='...'>     </uinput>

     <uinput type='cpulse'>       counterpulse:       <input type='number' class='cpulse' min='2' maxlength='2' oninput='...'>

     </uinput>   </form>

table
   <results type='table'>     <tableWrap>

              </tableWrap>   </results>
line diagram
   <results type='lines'>     <linesWrap>       <canvas class='lines' width=500px></canvas>     </linesWrap>   </results> </content>    I hope that's all the code that's needed so there isn't a need to comb through my messy code. Again, I'd like to center the grid container (as in the content element). Full source code , if needed.


Simple $M_n(D)$-module with $D$ a division ring

Define $D$ to be a division algebra over a field $k$ and $R=M_n(D)$ the $n\times n$ matrix ring over $D$. A simple $R$-module $M$ is the quotient of $R$. I can write $R=\bigoplus_j I_j$ where $I_j$ is the subring of $R$ all of whose columns except the $j$-th are zero.   Is it true that the induced map $R\to M$ induces an isomorphism between $M$ and some $I_j$?   Many thanks!


Installing Xampp on ubuntu 13.04 64-bits

Can any one can help me installing Xampp server from  in to my ubuntu 13.04 64-bit desktop version plzz


How to list the tables in a SQLite database file that was opened with ATTACH?

What SQL can be used to list the tables, and the rows within those tables in an SQLite database file - once I have attached it with the ATTACH command on the SQLite 3 command line tool?


pgfplot with gray colormodel turns out purple

I have the following minimal example:   \documentclass[12pt,a4paper]{article}  \usepackage{pgfplots}  \begin{document}  \begin{figure}   \begin{tikzpicture}     \selectcolormodel{gray}     \begin{axis}[       ybar,       xtick=data,       symbolic x coords={A},     ]       \addplot coordinates {(A,   1.000)};       \addplot coordinates {(A,   1.150)};       \addplot coordinates {(A,   1.393)};       \addplot coordinates {(A,   1.234)};       \addplot coordinates {(A,   1.599)}; % this will be purple       \addplot coordinates {(A,   0.912)};     \end{axis}   \end{tikzpicture} \end{figure}  \end{document}   which generates the following bar chart:    I would very much expect the last bar to also be grayscale. Subsequent bars are still grayscale.  Am I going crazy or doing something wrong?  I know that I can still just add [style={fill=black!40white}] to \addplot to manually overwrite the color, but why doesn't it do it automatically?


DS-160 Security and Background Information for UK Banned Applicants

I'd like to know whether the question in DS-160 form implies other country refusals as well? In 2009, I was refused and banned by UK for future applications for 10 years since they did not find my language requirement document genuine.   I have been currently working for a global company and thus need to travel to US with B1/B2 visa; however, I do not actually know what to answer for below question:  "Have you ever sought to obtain or assist others to obtain a visa, entry into the United States, or any other United States immigration benefit by fraud or willful misrepresentation or other unlawful means?"  Does that question related with my current situation? I sought advice from my company's own visa department, and they told me that related question is only for United States applications and thus need be answered as "No".   I would gladly answer “Yes” and explain my situation rather than misrepresent myself, but would like to get your advice about the situation as well as I am not comfortable giving unnecessary details if it is not mandatory.   Regards,  Update: As of 2019, I succesfully been granted a visa to US for my business travel. Answered the question "No" like suggested here if anyone's wondering. Please note that application been done after my ban for UK expired, though I am not sure if it is effected anything at all.


Pronunciation of "t" after "c" and before "l" ("act like")

"Do you know why they act like that?"  Do native speakers pronounce the "t" after the "c" and before the "l" in the sentence above? I'm under the impression that they don't do it and just say "ac like that." Is this just my impression?


Upgrade timeline of LTS to LTS and non LTS to LTS

Not a problem, but have been seeing questions recently of people not being offered upgrade from 18.04 to 20.04.  I thought these upgrades were offered back in June.  I upgraded to 20.04 from 19.10 and this was offered back in May.  Imagine that different versions paths have different schedules, but google does not help explaining(that I found).  Does someone know the schedules?


My user have a laptop on my company's domain but she can't connect to the VPN for an issue with the VPN client which could be solved by uninstalling/reinstalling but her account doesn't have admin rights, the local admin account is disabled and my admin account doesn't work because the vpn need to be active. She is in another city and I'm working remotely, I can't think to a solution but guide her to a laptop rebuild over the phone, unless someone have a an easier solution.


overload method not getting called in cast operator overload

I have a base class that includes a virtual method and a cast operator:  class Base { public:     Base() {}     operator int() const { return getInt(); } protected:     virtual int getInt() const { return 0; } }   Then I have two derived classes that override the virtual method:  class Derived1 { public:     Derived1() : Base() {} protected:     virtual int getInt() const override { return 1; } }  class Derived2 { public:     Derived2() : Base() {} protected:     virtual int getInt() const override { return 2; } }   Then I have a helper function:  Base helper(const bool flag) {     if (flag)         return Derived1();     else         return Derived2(); }   The intention of that helper function is to be used like:  int one = helper(true); // I expect "one" to be 1 int two = helper(false); // I expect "two" to be 2   But both one and two contain 0. I have no idea how to resolve this. Is the cast operator getting called before the Derived classes are fully constructed? My environment is VS2013.    Suggested fix (in my case, after answers)  I ended up turning the helper function into a class which stores Deriveds as members and returning a reference to them (which I believe is actually a better design since on each [] call a Derived does not get constructed / allocated):  class Helper { public:     Helper();     const Base& get(const bool flag) const {         if (flag)             return mDerived1;         else             return mDerived2;     } private:     Derived1    mDerived1;     Derived2    mDerived2; }     Side note  Accepted answer suggests that the gist of the question is thinking about everything as in references (like Python) and that is true. This issue came up as a part of a bigger system design which allows access to results returning from a SQLite database with a Python like syntax in C++. Chaining square brackets like: mData[0][1].


MYSQL - fastest way to get points around coords

I'm trying to get points around "me" by location and it's pretty simple :  select * from X where ((SQRT(POW(69.1 * (a.lat - 49.201441 ), 2) +  POW(69.1 * (16.161299 - a.lng) * COS(a.lat / 57.3), 2))) <='1') LIMIT 5   *  my location = 49.201441;16.161299 distance = 1 (mile)   This query returns me 5 points around "me" at a distance of 1 mile. This is rly fast, but just when my table have a ... I don't know, maybe 5000 rows.  I'm using this query on 200 000 rows table, and it's very slow! Maybe .. 2-7 sec and even if the limit is 1 = no difference.  Can someone explain it to me and help me? Thanks a lot guys!  BTW: If my query does not contains this part of query = it takes maybe 0.0008s... so second part of query is correct.


Ubuntu, Firefox, and other things Freeze and/or Crash!

I  have a Lenovo P50 laptop with the following specs: CPU:     i7 Ram:     32GB Video:   NVIDIA Quadro M1000M SSD0: 1TB SSD1: 512MB SSD2: 512MB I have tried the following Ubuntu versions: 14.04.6-desktop-amd64 18.04.5-'' 20.04.1-'' I have closely followed the instructions found on the Lenovo site found  My problem is the same on every installation.  When I launch Firefox or Opera, they both freeze and or crash.  Sometimes, I can get Firefox to work for a little while and Opera usually works for about 5-10 minutes before crashing.  I am entirely new to Linux and I don't have the slightest clue on where to begin.  I have a hunch that I'm having a problem with the NVIDIA but I don't really know.  What am I doing wrong? Edit:  I am not using any add-ons and I have turned off hardware acceleration. Edit:  I updated the BIOS but still experience the issue. Edit: ###### UBUNTU IS NOW FREEZING RANDOMLY TOO ######


time is a brilliant command if you want to figure out how much CPU time a given command takes.  I am looking for something similar that can measure the max RAM usage of the program and any children. Preferably it should distinguish between allocated memory that was used and unused. Maybe it could even give the median memory usage (so the memory usage you should expect when running for a long time).  So I would like to do:  rammeassure my_program my_args   and get output similar to:  Max memory allocated: 10233303 Bytes Max memory used: 7233303 Bytes Median memory allocation: 5233303 Bytes   I have looked at memusg  but I regard that as somewhat a hack.


Why does "Driver Software Installation" take so long Win7

When I plug some devices into my computer they go through the Windows "Driver Software Installation" phase.  These devices were previously plugged into my computer and drivers installed.  Why does this still happen and takes much longer than before?


How to place hyperlink in email signature

In Javascript I am opening my outlook to send one email on click of button.  My Email outllok is opening fine with all subject and Signature text.  I want to put one hyperlink of my work in sinature. Can any body please suggest how to make it  My code :   ClickEmail : function (){     var Subject = "Test";     var body = "";     body = body + "   Name1  " + record.name[0] + "%0D%0A";     body = body + "    Name1  " + record.name[0] + "%0D%0A";     MyRecord  == window.location.href = 'mailto:?subject=Subject :'+Subject+'&body=My Body'+body  }   Here after body I want to open lets take eample www.google.com   Thanks


Upgrade to Yosemite: kextd close to 95% CPU

I just gave in to the App Store's constant nagging about upgrading to Yosemite. Aside from an unhappy Chrome, there is this kextd process that's constantly running close to 95% CPU. This results in the fan also running constantly and my battery being drained.  Things I tried but didn't work:   removed all the .plist files upgraded to 10.10.1 when it came out this morning called Apple support who had me delete a cache file (/System/Library/Caches/com.apple.kext.caches/Startup/kernelcache/loadedkextmt.plist)   The process doesn't start straight at boot, but maybe 10 minutes later during use.  How can I get this kextd process to quiet down?


(true or false)Suppose String objects b and c contain the same sequence of characters. Then b == c is true.  public static void main(String[] args) {     String a = "abc";     String b = "abc";      System.out.println(a == b);     System.out.println(a.equals(b)); }   The result is true, but the answer to the question is false. I was wondering why.


Getting “Attempt to fetch logical page in database” error when running query

When I run queries from one of my tables I get an error  Msg 605, Level 21, State 3, Line 1 Attempt to fetch logical page (1:8687634) in database 7 failed. It belongs to allocation unit 72057594364821504 not to 72057594052476928.  I did some googling and I found  which suggested running DBCC CHECKDB. I ran the check but it reported 0 allocation errors and 0 consistency errors so I'm not sure where to go from here. From other sites I saw that the problem might be a corrupted index so I deleted the (only) index of that table and I still get the same error when running a query. I did DBCC CHECKTABLE and got  Incorrect PFS free space information for page (1:8687634) in object ID 270624007, index ID 0, partition ID 72057594508083200, alloc unit ID 72057594052476928 (type In-row data). Expected value  50_PCT_FULL, actual value   0_PCT_FULL.  It's not in emergency mode or anything, is there a way to repair/rebuild this table without going into single user mode? I ran dbcc page(7, 1, 8687634, 3) with a result of  Msg 0, Level 11, State 0, Line 0 A severe error occurred on the current command.  The results, if any, should be discarded.


How to use CanBreak and CanPlaceOn in MCPE?

I don’t know how these work. I want a iron shovel that can break dirt and grass and planks that can be placed on dirt. How would I do this. Are the commands different on pocket edition? Because I looked it up and tried but they didn’t work.  /give @p minecraft:stone_shovel 1 0 {CanDestroy:[minecraft:dirt, minecraft:gravel, minecraft:soulsand]}   /give @p minecraft:gravel 1 0 {CanPlaceOn:["minecraft:stone","minecraft:stonebrick"]}


I made that shape using boolean modifier and two cylinder. But two face has been created after modifier has been applied. I am unable to merge these two faces. I tried "Dissolve faces" command but it did not work.


Ubuntu 16.04 freezes on login screen, no keyboard or mouse working

I have a , with Ubuntu 16.04 installed.  I have recently (today) updated it(not upgraded), and afterwards it asked for a reboot, so I did that. However, after reboot it showed the login screen and mentioned connection established (for internet through Ethernet), and login password cursor was blinking during that time but after that even the cursor stopped blinking and accepting no response from keyboard or mouse. Only one option is to force shutdown. I have no idea what part of the update resulted in this.   Everything was working fine before the update. Once the Ethernet icon announcing connection has been established goes away, it takes away the blinking of the cursor, then keyboard and mouse simply won't work. I even tried connecting keyboard on other slots, but no success. Can I uninstall the last update?  NOTE:  I heard a sound from the processor when login screen comes and in between the cursor also blinks, but once this sound is over then the blinking freezes and you have to forcibly shutdown, as this is an institute computer (I took the admin privilege, headache). Now I am  really worried about it. How to fix it?  IMPROVEMENT  I did not have to go for a live USB, and I was able to go to grub I was able to go to the GRUB menu by pressing the Esc key). This what I got.      I have no idea how to go about it after that. It is saying Secure boot forbids loading module, while loading Ubuntu I did secure boot by entering a password for that.


Minecraft Server CB/Spigot Multi-version Compatibility

So, this isn't necessarily a problem though, but more like a I-NEED-HELP situation. So my server is Currently running Spigot 1.7.2-1.7.5 and I was wondering if there was a way to have my server be compatible with multiple versions of Minecraft. For example, I'm running CB 1.6.4 and others on relatively new version clients can join. I'm not sure how I should do this. I checked many forums, they don't help. I also use BungeeCord if thats possible to get it to run Multiple-version compatibility.  Also I referred to the following servers, cause they can run multiple versions, just check with the /version command:   Mineplex: us.mineplex.com  Hive: play.hivemc.com and others.   I believe CB snapshot is being implemented, but that still doesn't solve the question. Please don't tell me I need a plugin to implement the snapshot CB. If there is no other way, tell me the ways.


logic behind deleting files where user does not have right to write

When I create a file with no write permissions in my home directory:  $ umask 777; touch testfile $ ls -ln testfile ---------- 1 1000 1000 0 2014-03-21 16:52 testfile $   ..then I'm still easily able to remove that file:  $ rm -fv testfile removed `testfile' $    When I create a file with no write permissions to a directory where I don't have write permissions, then I'm not able to remove such file:  $ ls -lnd /var/ drwxr-xr-x 14 0 0 4096 2014-03-21 17:04 /var/ $ ls -ln /var/testfile ---------- 1 1000 1000 0 2014-03-21 17:04 /var/testfile $ rm -vf /var/testfile  rm: cannot remove `/var/testfile': Permission denied $    Am I correct that write permissions are inherited from parent directory? Is it true for read and execute permissions as well?


I am debating this with some friends at the moment and would like to know what the stack exchange community can add to this discussion.  When selecting the choice of the distribution and link function, some say that it is less important, even if the outcome variable does not follow the selected distribution. I beg to differ, because this would invalidate all statistical results obtained from the glm. However, it seems that this is quite common to ignore if the distribution just 'seems' to follow a particular distribution.   So, my question is, how important is it that the choice of the distribution is properly chosen? Hence, by making use of statistical test (e.g. ks test).  If anyone could also provide an example as to why this is/is not important I would appreciate it.  Thanks!


Is there a term to describe the physical location of an object, as well as the time in which it exists?

Where such a term would reference the location/time of an object, almost like it was of a property of the object. That is to say, if a duck is red, blue, yellow etc, we describe it has having a certain colour. If it's a nanometre, or 10km big, then it's property of size.  Now I know that where/when an object exists an object isn't a property of an object, but it is something unique to that object, so I think it would be useful to have a shorthand for 'geographical location', and 'time of existence'.  There are terms describing both time and location, such an event, or rendezvous (which I think is used to describe the when and where of a meeting between two humans) but I wan't a term that just describes one of each.


I recently changed from Windows where I was using Qt Creator to Ubuntu.  The problem is that Qt Creator in Ubuntu can't properly debug due to some problem attaching ptrace to the program which was cause by a security upgrade as I found out. The only way to debug is to mess with the system settings and change the ptrace variable configuration but I'm not comfortable with this, as it compromises security.  So my question is, is there anything close to Qt Creator or Visual Studio debugger in Linux? I mean being able to track variable values and pointers, etc.  If not what's the standard debugger for Linux? I don't mind using console tools as long as they offer the same functionality


Suppose I have this method //task1.cpp template <typename T> void printElement(std::ostream &out, T s);  I want to define it later in another file to handle specific types like this: //main.cpp void printElement(std::ostream& out, int value); void printElement(std::ostream& out, std::string_view value);  However when I call this one. It throws me an error: undefined reference to printElement (ostream&, int) int main(){ int a =5 printElement(std::cout, a) }  Note: I can only change things inside task1.cpp . Any suggestions would be greatly appreciated!


Is there a way to change the length of the displayed cyrve normal arrows when working with the Bezier curve? I'm using metric for my scene and I'm doing a small cable and this "centipede legs" are just disturbing. Is there a way to change the length?


Can I use Minolta Maxxum lenses with Sony Alpha cameras?

I have an old Minolta Maxxum 7000i AF-SLR camera from early 90s. I have a complete set of lenses, filters, etc., I found out that Sony ultimately ended up buying Minolta, and developing their alpha cameras from Minolta cameras.     I know it is a fat chance, but was hoping to find out if anyone has tried using the Maxxum lenses on the new Sony Alpha series?


Ghost images on Monitor from applications. Why do they happen and can you kill em off without a reboot

Take a look at the attached picture. There is a semi transparent "Ghost" file path from Notepad++. Notepad++ is not reunning. It was restarted normally several times but it has no bearing on the Ghost picture. So it looks like it has gone "Zombie" and I wonder what's causing it. I disabled and enabled display - and pulled other ticks I could think of but its still there. Other that a reboot which'd make me LOOSE my work. Is there anything else out there that can get this out ( standby did not help ).


Customizing the style of the "Table of Contents" title

I used titlesec for customizing chapter titles. How can I put the Table of contents title above the horizontal line?  (I am trying to customize the place of the title, not the title) Added figure is the result I get, from my existing code.    \usepackage{titlesec} \titleformat{\chapter}[display] {\bfseries\large} {\filleft\MakeUppercase{\chaptertitlename} \large\thechapter} {2ex} {\titlerule \vspace{2ex}% \filleft} \titlespacing*{\chapter}{0pt}{120pt}{6pt}


On $(0,\infty)$, the metrics $d(x,y)=|x-y|+|\frac1x-\frac1y|$ and $d_e(x,y)=|x-y|$ are equivalent.

Problem  Let $Y=(0,\infty)$ and define the metric $d(x,y)=|x-y|+|\displaystyle\frac1x-\displaystyle\frac1y|$ on $Y$. Let $d_e(x,y)=|x-y|$ be the usual Euclidean metric on $Y$, then show that both the metrics $d$ and $d_e$ are topologically equivalent on $Y$.  What I want to show is, any $d$ open ball is $d_e$ open ball and vice versa. Now $B_d(x;r)\subseteq B_{d_e}(x;r)$ proves that any $d_e$ open ball is $d$ open. But for the converse, I could not prove it. Any hint please!! Or, is there any easy way to look at this problem? Because $d$ is sum of two matrics. Thank you.


If I create a bookmark with Nautilus, its location is stored on ~/.gtk-bookmarks, but not its name. I've created a test bookmark named weirdy, and tried to do a grep on my home for that name, and I found nothing. Where does Nautilus store bookmark names?


Why does photon have to travel in sideways to hit the light clock?

From this ,     Let’s say Alice is holding a light clock, and Bob is watching her run by, while holding it, with speed V.  Alice is standing still (according to Alice), and the time,$ \tau$, between ticks is easy to figure out: it’s just $\tau = \frac{d}{C}$.  From Bob’s perspective the photon in the clock doesn’t just travel up and down, it must also travel sideways, to keep up with Alice. The additional sideways motion means that the photon has to cover a greater distance, and since it travels at a fixed speed (EEP y’all!) it must take more time   My question is, why does photon need to travel sideways to hit the Alice light clock?


Limit of ratio ${f(x)\over x}$ equal to limit of difference $f(x+1)-f(x)$.

Using my right to ask for help once again. I can't solve the following problem for quite a long time. Just have no idea how to do that. Here it is. Let $f(x)$ be bounded on any interval $(1,b), b>1$. Then $\lim_{x\to+\infty}{f(x) \over x}=\lim_{x\to+\infty}(f(x+1)-f(x))$. It is from the Russian book "Lekcii po matematicheskomu analizu" by G.I.Arkhipov, V.A.Sadovnichy and V.N.Chubarikov, 2nd ed., Moscow, 2000, page 676. Please, keep in mind, that times, when I did homework had passed long time ago. Now I'm solving problems for pleasure.


PDO bindValue, bindParam and execute() returning empty array

I have this class for querying the table in the database.  class QueryBuilder {      private $pdo;     public function __construct($pdo) {         $this->pdo = $pdo;     }     public function getAll($table) {         $stm = $this->pdo->prepare("select * from :targetTable");         $stm->bindValue(':targetTable', 'albums', PDO::PARAM_STR);         $stm->execute();         return $stm->fetchAll();     } }   I returns an empty array every time I use bindValue function. If I turn the error reporting mode it states     PDOStatement::execute(): SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''albums'' at line 1   When I use simply     $stm = $this->pdo->prepare("select * from albums");   It works like intended. Function is called by  $query->getAll('albums');   Thanks for help


Looking for a function $f$ that is $n$-differentiable, but $f^{(n)}$ is not continuous

I am looking for a real valued function of real variable that is $n$-differentiable, but whose $n$th derivative is not continuous.  This is my function:  $f_n(x) = x^{n+1} \cdot \sin{\frac{1}{x}}$, if $x \neq 0$ and 0, if $x=0$. $n\in \{0,1,2,\ldots\}$ For example, if $n=0$, $f_0$ it's continuous and non diferentiable in $0$.


Proving that $\pi$ and $e$ are rational numbers

Maybe this question is too dumb to be asked, but it's really bugging me so I decide to ask it anyway. I hope you bear with me.   Okay, it's known that both sides of the following series equal.  $$\pi=4\sum_{n=0}^{\infty}\frac{(-1)^n}{2n+1}\tag1$$  and  $$e=\sum_{n=0}^{\infty}\frac{1}{n!}\tag2$$  We all agree at this point. Now, each terms in $(1)$ and $(2)$ is a rational number. We all agree without a doubt. The sum of rational numbers is always a rational number. We agree again. Hence it follows that $\pi$ and $e$ must be rational numbers. However, it contradicts the well-known facts that both $\pi$ and $e$ are irrational numbers. So, where is my mistake?


Elements of order 5 in $S_7$, odd permutations of order 4 in $S_4$, and find a specific permutation in $S_7$

$(1)$ How many elements of order $5$ are in $S_7$(symmetric group)?  $(2)$ How many odd permutation of order $4$ does $S_4$ have?  $(3)$ If $\beta \in S_7$ and $\beta^4=(2143567)$ then find $\beta$   Give me some hints for these three questions.please help me. Thanks in advance.


Title says it all. I need to generate PDF/A compliant documents, and I'm using XeTeX. I couldn't find anything about this;  there's only info about pdfLaTeX (using pdfx) and ConTeXt.  Any help is greatly appreciated.


Retrieving info from a table on a website?

I am not a very technical person but I would like to ask if it is possible to retrieve the contents of a table on a website?  This table is spread over 400 pages, I use it regularly when working but the problem is that my internet is unstable and often does not work, so I cant access the table which prevents me from being able to work.  Is there a way i can download/copy it so that I can use it when my internet is down?   The website:  > "Odvjetnici" & "Odvjetnicki urdedi i drustva".  PS: When i attempt to save the website I can not view the other pages.


Transition from PhD to postdoc with an intent to change field

I'm in the following situation: In 3 months, I'll finish my PhD in theoretical physics, and I'm certain that I want to pursue an academic career. However, I'm just as certain that my PhD research is a dead end. (My advisor doesn't think so, but I disagree with him.) Thus, I seek to change the direction of my research, but I need a few months to obtain the necessary skills. Anyway, I missed the main application period for post-doc positions (in the US).  Given the following options (feel free to expand this list), which do you think provides the best perspective of leading me to a interesting post-doc position?   Finish my PhD. Get any post-doc position. Do the work I'm required to do there. Work hard in my spare time to teach myself the stuff I want to. After 1-2 years, find a post-doc position I'm really interested in. Finish my PhD. Get a well-paying job in the software industry. Do the work I'm required to do there. Work hard in my spare time to teach myself the stuff I want to. Work harder to keep publishing papers. After one year, find a post-doc position I'm really interested in. Abort my current work. Find a new subject and a new PhD advisor. Live on unemployment money as long as possible. Work hard in my spare time to teach myself the stuff I want to. Work harder to keep publishing papers. After one year, find a post-doc position I'm really interested in.   Pros:   Get the PhD title sooner. Stay in the scientific community. Get the PhD title sooner. Earn lots of money (6 figure). In a 9-to-5 job, have more spare time for private research than on a post-doc position, where work is never finished. Go to a foreign country. It's what I should've done 2 years ago. I'll have the education I want when I finish my PhD, not later (but be older anyway). No immediate advantages over the other options.   Cons:   If a logical continuation of my PhD work, I'll suffer from demotivation. My next advisor will not want me to work on other topics that I'm not paid for. Might have to stay for 2 years. I'll move out of the scientific community for some time. I know it's hard to get back in. I'll be even older when I finally get my PhD. Not sure if I would find another advisor. Open fight with my current advisor. I don't want to live on unemployment money for long.   A particular question concerning the options above: Does being out of academia for a year kill your prospects of obtaining a postdoc position later?  I do have some collaborators who will help me to keep publishing, provided that I put enough work into my research. Also, I'm willing to familiarize myself with other topics on my own (a prerequisite for an academic career anyway).  The next application period will be from October to December 2013, which isn't far away. I'm sure I'll have most of the skills I want by then (and a paper published proving that), but still would have to work until summer 2014 wherever I am applying now.  Please give me honest answers, even if they hurt. I'll provide more information as soon as possible, if anyone has questions.


I have text like this:  &#8216;The zoom animations everywhere on the new iOS 7 are literally making me nauseous and giving me a headache,&#8217;wroteforumuser Ensorceled.   I understand that #8216 is an ASCII character.How can i convert it to normal characters without using .replace which is cumbersome.


I'm going to brew a batch of beer today.  I'm not sure how long I should keep the beer fermented. What is the maximum amount of time, that home brew beer can ferment  without it going bad ???


Can't retrieve keychain passwords while in SSH session

I can't get security (the command line interface for the keychain) to retrieve passwords with security 2>&1 >/dev/null find-generic-password -ga <name> over SSH. It only seems to work in physical console sessions - is this actually intended behaviour?   For example, in a normal console session the above command retrieves the password without any problems. SSH to localhost and run it again though and it returns an empty string.  I need the ability to login over SSH and run a script that draws a password down from the keychain for authentication; am I right in thinking Apple have shipped a command line client that breaks in SSH sessions or have I missed something?


Why string theorist use the following result?

$1+2+3.......$so on $ = -1/12.$ I have seen a few proofs of this result. And I hope most of you are familiar with them.   Why string theorist use this ambiguous result in string theory, when assigning a value to a divergent sum is not acceptable to many mathematician?  If this result is true; does it consolidate the belief that nature of ultimate reality cannot be perceivable by human mind.


In the sentence below, is the pronoun "I" used correctly?  "If you mean that letter, then it was I who tricked you."


I get a ConcurrentModificationException when attempting to launch Minecraft with Forge

I have tried to reinstall Minecraft with Forge multiple times, but Minecraft still won't launch.  When I check "Launcher Visibility" and change it to "Hide Launcher" and re-open, I get this error log in the console:  [13:20:11] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker [13:20:11] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker [13:20:11] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker [13:20:11] [main/INFO] [FML]: Forge Mod Loader version 7.10.18.1180 for Minecraft 1.7.10 loading [13:20:11] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_20, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre1.8.0_20 [13:20:11] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [13:20:11] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [13:20:11] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [13:20:11] [main/ERROR] [LaunchWrapper]: Unable to launch java.util.ConcurrentModificationException     at java.util.ArrayList$Itr.checkForComodification(Unknown Source) ~[?:1.8.0_20]     at java.util.ArrayList$Itr.remove(Unknown Source) ~[?:1.8.0_20]     at net.minecraft.launchwrapper.Launch.launch(Launch.java:117) [launchwrapper-1.9.jar:?]     at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]   How can I resolve this?


I have a table which its width exceed the textwidth of the document, but I want reduce its size to fit the textwidth space.   I have tried the resizebox command but it doesn't work at all.  \begin{table}[h!]   \centering   \resizebox{\textwidth}{!}{     \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|}   \hline   One & Two &Three & Four & Five & Six & Seven & Eight & Nine & Ten & Eleven &   Twelve & Thirteen & Fourteen\\    \hline   \hline   $1.111$ & $2.222$ & $3.333$ & $4.444$ & $5.555$ & $6.666$ & $7.777$ &   $8.888$ & $9.999$ & $0.000$ & $1.111$ & $2.222$ & $3.333$ & $4.444$\\   \hline   \end{tabular} }   \caption{Test Table}   \label{tab:label_test} \end{table}   The table keeps the same width and exceed the border of the page.  I want resize the table, scaling all the tabular object without touch the caption fontsize.   How can I do that?    If I copy the code of @HarishKumar:


Cannot find the jungle temple in terraria. We have scoured our map for hours. Please help us!


How to change a file in-place using awk? (as with "sed -i")

I have an awk script, new.awk: BEGIN { FS = OFS = "," }  NR == 1 {     for (i = 1; i <= NF; i++)         f[$i] = i }  NR > 1 {     begSecs = mktime(gensub(/[":-]/, " ", "g", $(f["DateTime"])))     endSecs = begSecs + $(f["TotalDuration"])     $(f["CallEndTime"]) = strftime("%Y-%m-%d %H:%M:%S", endSecs) }  { print }  I am calling this in shell awk new.awk sample.csv  ... but I can see the changes in the terminal. How to make the change in-place in the file, like when using sed -i?


The following two statements are true about AVR microcontroller's USART Receiver and Transmitter but im curious about that are these also work on stm32F4 ?     When the Transmitter is enabled, the normal port operation of the Tx   pin is overridden by the USART and given the function as the   Transmitter’s serial output.      When the Receiver is enabled, the normal port operation of the Rx   pin is overridden by the USART and given the function as the   Receiver's serial input.


Product of absolutely convergent series and convergent series

If $U=u_1+u_2+\ldots$ is an absolutely convergent series, and $V=v_1+v_2+\ldots$ is a convergent series, prove that $UV=u_1v_1+(u_1v_2+u_2v_1)+(u_1v_3+u_2v_2+u_3v_1)+\ldots$.    So the series $|u_1|+|u_2|+\ldots$ converges, say, to $U_0$. That means for any $\varepsilon$, there exists $N$ such that for all $n>N$, $|u_n|+|u_{n+1}|+\ldots < \epsilon$. It follows that for any $\varepsilon$, there exists $N$ such that for all $m>n>N$, $|u_n|+|u_{n+1}|+\ldots+|u_m|<\varepsilon$ (this is also Cauchy's condition.)  Similarly, for any $\varepsilon$ there exists $P$ such that for all $m>n>P$, $v_n+v_{n+1}+\ldots+v_m<\varepsilon$.   I tried to prove first that the series $u_1v_1+(u_1v_2+u_2v_1)+(u_1v_3+u_2v_2+u_3v_1)+\ldots$ converges by using the Cauchy criterion. But it seems difficult to bound $$(u_1v_n+u_2v_{n-1}+\ldots+u_nv_1)+(u_1v_{n+1}+u_2v_n+\ldots+u_{n+1}v_1)+\ldots$$


Stack Overflow does not use Captcha for verification anymore, how can they defend against bots?

Last time I posted a question (about one year ago), I noticed that Stack Overflow had the "Are you human?" verification check with Captcha. Now, we seem to be able to just post questions and answers freely (as I noticed today).   How can you prevent against bots, then?


Question about the proof of Ramsey's Theorem

I was reading up on a proof of Ramsey's Theorem and I can't understand this part of the proof:      Pick a vertex $v$ from the graph, and partition the remaining vertices into two sets $M$ and $N$, such that for every vertex $w$, $w$ is in $M$ if $(v, w)$ is blue, and $w$ is in $N$ if $(v, w)$ is red. Because the graph has $R(r - 1, s) + R(r, s - 1) = |M| + |N| + 1$ vertices, it follows that either $|M| \geq R(r − 1, s)$ or $|N| \geq R(r, s − 1)$.   Why is that $|M| \geq R(r − 1, s)$ or $|N| \geq R(r, s − 1)$? I know from the proof of $R(3,3) = 6$ that given a vertex, at least $3$ are guaranteed to be either red or blue, so what is the pigeonhole argument for the general case?


Environment variables are not passed to sub scripts while running on crontab

I was trying to run one of the scripts (for example, wrapper.sh) which internally executes other scripts using crontab. It works fine without any issues.  When I have created a environment file (which stores the passwords-DB and paths) and trying to execute the main script (wrapper.sh) the cron entry doesn't work on those scripts which are called internally in the wrapper.  NOTE: I tried changing PATH, added env file location before the script in cron but it still didn't work:  9 9 * * * . /$SOMEPATH/some.env; /$SOMEPATH/wrapper.sh   The environment script and wrapper.sh are in same path. when the cron runs it passes the env variables to wrapper but not to the scripts which are called internally in wrapper. Also a mail is received on /var/mail/$user saying the env file as "No such file or Directory". I've gone through many posts but couldn't figure out the resolution.


Allow for formally flagging broken links in questions / answers

This answer here has a broken link:    The standard procedure seems to be to comment on this answer for the author to correct the link. But then, I'll have to somehow track it in order to remove my obsolete comment, once the OP corrects the link.  Instead, it would be very useful if I could simply flag the question for a broken link. This flag would then send a message to the OP's inbox asking them to fix the link. If the OP doesn't fix (= edit or delete) the answer in about 1-2 weeks, this would become a regular moderator flag (or just a regular comment).  In addition to the OP seeing this, these questions / answers could also be featured in the review tab...  Some related meta questions:


Expected value for max weight of two stones (given independent uncertainty in each)

If I have two stones A and B with estimated weights (and associated uncertainties) of   A=100 +/- 5kg B=102 +/- 2kg     Is there any formula (or good approximation) to compute the expected value of max(A,B)?  That is, the best guess at how much the heavier of the two stones will weigh?  It's obvious to me that this expected value should be slightly higher than 102 ("the expected value of the stone that's most likely to be the heaviest"). Also helpful to me would be     Is there a way to compute the uncertainty of the expected value of max(A,B)?   Is there a way to extend the formula to apply to "N-stone" situation?     The best I've been able to do is run a 1-billion-sample simulation pulling values for A and B from their respective 95% confidence intervals, then computing the average of max(A,B) over all simulations to get close approximation of what the expected value should be:      Max(A,B) = 102.375 +/- 2.340  (stddev = 1.194)  Admittedly, this tells me nothing about how to solve the problem, but it does allow me to check the validity of proposed solutions.  EDIT: Duplicate verified.  Formula at link was able to replicate my simulated results  Simulated E(max(A,B)) = 102.3751.  The formula on the "duplicate" link indicates expected value of this max function should be: E(X) = u1*CDF((u1-u2)/θ) + u2*CDF((u2-u1)/θ) + θ*PDF((u2-u1)/θ) where θ = sqrt((2.55*2.55)+(1.0209*1.0209)) θ = 2.747  Substituting θ, u1, and u2: E(X) = 100*CDF((100-102)/θ) + 102*CDF((102-100)/θ) + θ*PDF((100-102)/θ) E(X) = 100*CDF(-0.728) + 102*CFD(0.728) + 2.747*PDF(-0.728) E(X) = 100*0.233+102*0.767+2.747*0.306 E(X) = 102.3746    The same paper linked in duplicate also has direct formula for variance/stddev of E(X).  Thus, I am only missing a direct "N-stone" formula.  I'll search using recommended search strings - but if that comes up empty, could I just apply the 2-stone solution to N-stone problem iteratively?  So for 4 stones, A, B, C, D; I just compute 2-stone(A,B) to get A', then compute 2-stone(A',C) to get A'', and then compute 2-stone(A'',D) to get 4-stone(A,B,C,D) max-val stats.


How many proper divisor (that is, divisiors other than 1or 7200) does 7200 have?

How many proper divisor (that is, divisiors other than 1or 7200) does 7200 have ?


Failed bootcamp partition, now can't remove it

Tried to set up Windows 10 on my Macbook Pro 15" (Mid 2014). Running El Capitan 10.11.3. Windows refused to install (GPT partition only problem?). I followed steps elsewhere to remove and reformat the partition to ExFAT then try and format again through the Windows installer, but this was unsuccessful.  I scrapped the idea and tried to go to Disk Utility to remove the partition. However, if I try to erase the 'Windows' partition (now called Bootcamp), it simply asks me to make another. I can't seem to merge it with the existing Macintosh HD partition?    Now for the stupid, require telling off part: I didn't create a backup prior to this, and I think my recovery partition is ****ed.  Is my only solution to do the internet restore and start from scratch?  EDIT: To clarify, Disk Utility says the volume is functional and I can indeed store stuff there. I just don't want it! See:


What is the correct syntax to run cron every 4 hours?

I have the following syntax (which I think is correcT?) but it runs the command every minute!  * */4 * * * /cmd.sh


Do we lose rep for an accepted answer if the OP account is deleted?

I appear to have the accepted answer to , and a rep audit on 7th December showed the +15 rep.  But an audit today no longer shows this acceptance, even though the green tick displays when you visit the question.  I can see that the OP account has been deleted, so presumably that means the acceptance rep, and any votes cast by the OP are lost?  Is there a definitive FAQ and explanation for how rep is re/de-allocated when old accounts are deleted or merged?


Proving that if $ad-bc = \pm 1$, then $\gcd(x,y) = \gcd(ax +by, cx + dy)$

I'm having issues figuring out how to approach this problem:     Conclude that if $ad-bc = \pm 1$, then   $$\gcd(x,y) = \gcd(ax +by, cx + dy)$$   The fact that $\gcd(x,y) = \gcd(x+ky, y)$ is a very special case of this exercise   I believe there is a property that if $a = bq_1 + 0$ where 0 is r, then b divides a, and $b=\gcd(a,b)$  Is that at all relevant in this case?


Considering  $$0\to \Bbb Z \to \Bbb Z\to \Bbb Z/(2)\to 0$$ We want to show that the tensor product is not left exact by tensoring with $\Bbb Z/(2)$, which apparently gives us what we want.  But I did this, and I get  $$0\to \Bbb Z/(2)\overset{\sim}{\to}\Bbb Z/(2)\overset{0}{\to} \Bbb Z/(2)$$   Where I can't see why this isn't exact? Is there a reason why I can't have the zero map on the right?