C# Alphanumeric string to long conversion

My string is in "abcd123ef" format. I want it to convert in long format like in variable b. I tried many ways but got exception as  'input string is not in correct format'  Ways I tried are shown below:  1)  var a = "ABCD123Ef"; long b = convert.int64(a);   2)   var a = 'ABCD123Ef'; long b = parse.int64(a);   3)   long b = convert.int64("ABCD123Ef");


How to move a p tag up within a div tag?

I am currently working on a navigation bar for my website, and am super new to CSS and HTML. I have a header split up into two divs, one for the top half displaying the logo, title, and login page, and another for the navigation buttons. I am running into issues, where my p tag leaves the div that it is inside of, and gets in the way of my navigation buttons. Here is an image of the issue: [1]:  What you are looking at is the inspect element view of a p tag next to an image tag, both within a div. Here is some html:   header{         background-color: #B71C1C;         color: #FFFFFF;         position:fixed;         top:0;         left:0;         width:100%;         height:150px;         margin-left: 0px;         margin-right: 0px; }  #bar_logo{         max-height:90px;         max-width:90px;         height:auto;         width:auto;         margin:0;         padding:0; }  .upper_banner{         width:100%;         height:60%;         margin: 0;         padding: 0; }  #title_banner{         margin:0;         padding:0;         display: inline;         height:60%;         font-size: 45px;         font-family: Helvetica;         text-align:center;         top: -20; }  #login{         float: right;         margin:10px; }   .lower_banner{         width: 100%;         height: 40%;         margin:0;         padding:0; }

                                 Title of Website
                          login
        I am having some troubles working out this issue, as when I do highlighting over the div "upper_banner" it doesn't highlight past my image on the far right. As you can see, I was attempting to use top: -20;  in an attempt to move it up 20 px, but no difference. I have a feeling that this issue is because my p tag is starting at a certain point, and because my height is set to a fixed pixel count, it is going down that number of pixels, which leads to it overflowing into the div below. Apologies for the wicked beginner question, super new to all of this.


I want to create a circuit that can detect audio frequencies and flash RGB LEDs different colors depending on the detected frequency. The frequency range will be from 20 Hz to 12 kHz, after looking at the chart below.   (source: )    So my question is: what circuit design should I choose to make a good frequency detector? I suppose I would need    Preamp for the microphone (is it necessary for the ADC?) Band pass filters (active or passive?) A microcontroller with an onboard ADC that has a sampling rate of at least 24 kHz.   Before I get too excited, are there any circuits out there that already do this?


I read that when an EM wave enters a dielectric material, it keeps the same frequency, while its wavelength is reduced, so that their product is a quantity less than c = 3 × 10^8 m/s.  Why does it keep the frequency and not the wavelength?


Minecraft will not launch!!! Please Help!

Minecraft has always previously worked and now all of a sudden it says. Java SE Binary has stopped working after pressing launch. Minecraft Version : 1.11.2, also happens with all other versions. It is also using the new launcher.  Here is Error.  3724 debugs 16 infos 1 warning, 18:19:32    launcher    Preparing to launch minecraft client for 1.11.2 ,18:19:32   launcher    Checking installations. ,18:19:32   launcher    Minecraft client 1.11.2 is ready to start. ,18:19:32   launcher    Starting! ,18:19:32   launcher    Using default game log configuration client-1.7.xml (outputs XML) ,18:19:33   bes Setting user: LordSarcasm ,18:19:34   beu Skipping bad option: lastServer: ,18:19:34   bes LWJGL Version: 2.9.4 ,18:19:35   cae Reloading ResourceManager: Default ,18:19:36   ccq Starting up SoundSystem... , 18:19:36  ccq Initializing LWJGL OpenAL , 18:19:36  ccq (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org) , 18:19:37  ccq OpenAL initialized. , 18:19:37  ccq Sound engine started , 18:19:41  byy Created: 1024x512 textures-atlas , 18:19:58  launcher    Process closed with exit code -1073740791 , 18:19:58  launcher   Thankyou for any help.


Read / write to the same file descriptor with shell redirection

I'm trying to understand file descriptors in the context of shell redirection.  Why can't I have cat read from FD 3, which is being written to by ls's STDOUT?  { err=$(exec 2>&1 >&3; ls -ld /x /bin); exec 0<&3; out=$(cat); } 3>&1;   When try this, cat still wants to read from my keyboard.  If this can't be done, why not?    Differentiation: This question is about reading / writing to the same file descriptor, using the problem presented by  as an example.


The order of the median is $13$ , then it lies in the first class $0-1$  Now i do not know what is the lower bound of this class ?  Is it $-0.5$ ?


Please help me with understanding how to order sets/lists

biology = ["Sarah", "Ahmed", "Fred", "Gillian", "Shradah", "Max", "Max", "Sara", "Max", "Esther"]  computerScience = ["Sarah", "John", "Fred", "Gillian", "Jermaine", "Max", "Sara", "Juan", "Esther"]  english = ["Nico", "Sharjeel", "Isabella", "Taylor", "Ali", "Ali", "Jean-Baptiste", "Jean-Baptiste", "Jean-Baptiste", "William"]   setThing=set() for word in biology:   setThing.add(word)  listThing=[]  for word in setThing:   listThing.append(word)  print(listThing)  In this, I am trying to take the list called biology and put it in a set so that it gets rid of the repeats. I am trying to turn it back into a list that has the same order of names as the list: biology. But when I turned it into a set, the order of the names completely changed. Is there any way I could use some kind of function to order either the new set or the new list so that the names are in the same order as the original "biology" list?


Rewriting ∃! using predicate logic expressions ( "=" excluded)

A(x) is a predicate logic formula. A is a property (predicate), x is a variable. ∃!A(x) would mean that exactly one x exists which has the property A.  First thing that comes up is: ∃x( A(x) ∧ ∀y( A(y) → (x=y) ),  where y is a variable, but my assignment forbids the use of functional symbols such as =.  How do I rewrite this without using any functional symbols? Only the use of →, ⇔, ¬, ∨, ∧, ∃, ∀, variables, formula A(x) and brackets are allowed.  My idea was to simply write this: ∃x( A(x) ∧ ∀y( A(y) → (A(x)⇔A(y)) )  not sure if it's correct, though.  Thank you in advance.  By the way, the question is not a duplicate, as I'm trying to rewrite this without the use of =.


How do mRNA vaccines work and what are their advantages over traditional vaccines?

How do mRNA vaccines work? To my intuitive understanding, for an mRNA vaccine to work, the mRNAs injected into the patient need to first enter a cell and get translated into proteins. Those proteins must then somehow exit the cell so that they can be seen by T cells. An mRNA vaccine hence appears considerably more complex than a traditional/protein vaccine. I envision these three steps as critical  mRNAs get in cells mRNAs get translated proteins exit cells  Am I right to think that such vaccine must go through these steps (or is there some other way around)? I failed to find anywhere explanations about these three steps? Could you give some explanations what exactly we inject to ensure these three steps will happen? What are the advantages of mRNA vaccines over traditional vaccines? I was thinking of potential advantage of such a complex vaccine and thought that maybe it has the advantage of inputting proteins into the bloodstream at a rate (rate that decreases over time with the half-life of the mRNA) while a traditional/protein vaccine makes a single large input of protein into the bloodstream. I am thinking, that might reduce risks of strong inflammation caused by the vaccine. Would it be true? I read from   RNA vaccines can be produced faster, more cheaply, and in a more standardized fashion (with fewer error rates in production), which can improve responsiveness to serious outbreaks.  Can you please explain why this is true?


Is there a simple Bash tool which can quickly render basic HTML?

From time to time I need to do a simple task where I output basic HTML into the console.  I'd like to have it minimally rendered, to make it easier to read at a glance. Is there a utility which can handle basic HTML rendering in the shell (think of -style rendering--but not an actual browser)?  For example, sometimes I'll put a watch on Apache's mod_status page:  watch -n 1 curl http://some-server/server-status   The output of the page is HTML with some minimal markup, which shows in the shell like:  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">  <title>Apache Status</title>
Apache Server Status for localhost

Server Version: Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.15 with Suhosin-Patch

Server Built: Jul 22 2014 14:35:25

Current Time: Wednesday, 19-Nov-2014 15:21:40 UTC

Restart Time: Wednesday, 19-Nov-2014 15:13:02 UTC

Parent Server Generation: 1

Server uptime:  8 minutes 38 seconds

Total accesses: 549 - Total Traffic: 2.8 MB

CPU Usage: u35.77 s12.76 cu0 cs0 - 9.37% CPU load

1.06 requests/sec - 5.6 kB/second - 5.3 kB/request

1 requests currently being processed, 9 idle workers

__W._______..................................................... ................................................................ ................................................................ ................................................................

Scoreboard Key:
 "_" Waiting for Connection, "S" Starting up, "R" Reading Request,
 "W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
 "C" Closing connection, "L" Logging, "G" Gracefully finishing,
 "I" Idle cleanup of worker, "." Open slot with no current process

   When viewed in Lynx the same HTML is rendered as:                                                                                Apache Status (p1 of 2)                                         Apache Server Status for localhost     Server Version: Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.15 with Suhosin-Patch    Server Built: Jul 22 2014 14:35:25      ________________________________________________________________________________________________________     Current Time: Wednesday, 19-Nov-2014 15:23:50 UTC    Restart Time: Wednesday, 19-Nov-2014 15:13:02 UTC    Parent Server Generation: 1    Server uptime: 10 minutes 48 seconds    Total accesses: 606 - Total Traffic: 3.1 MB    CPU Usage: u37.48 s13.6 cu0 cs0 - 7.88% CPU load    .935 requests/sec - 5088 B/second - 5.3 kB/request    2 requests currently being processed, 9 idle workers  _C_______W_..................................................... ................................................................ ................................................................ ................................................................     Scoreboard Key:    "_" Waiting for Connection, "S" Starting up, "R" Reading Request,    "W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,    "C" Closing connection, "L" Logging, "G" Gracefully finishing,    "I" Idle cleanup of worker, "." Open slot with no current process


Test the significant differences between the coefficients obtained by logistic regression on two data sets.

So I run logistic regressions of same dependent variables and independent variables on two sets of data $S_1$ and $S_2$. I obtained two sets of coefficients $\beta_1$ and $\beta_2$. Now I suspect that $\beta_1$ and $\beta_2$ should really be equal, since I don't think there are distinctive difference between $S_1$ and $S_2$.   My question is, how do I test the significant differences between the coefficients?   Thanks!


I cannot find correct usage for using custom mapbox tilesets with folium.  From the documentation, "Folium also supports Cloudmade and Mapbox custom tilesets- simply pass your key to the API_key keyword" ().  The docs provide this example...  folium.Map(location=[45.5236, -122.6750],            tiles='Mapbox',            API_key='your.API.key')   So I have tried...  #Create Map my_map = folium.Map(location=[45.372, -121.6972],                     zoom_start=12,                     tiles='Mapbox',                     API_key = 'pk.xxxxxxxxxxxxxxxxxxxxxxxxxxx') #mapbox map id    #Create Map my_map = folium.Map(location=[45.372, -121.6972],                     zoom_start=12,                     tiles='Mapbox',                     API_key = 'pk.xxxxxxxxxxxxxxxxxxxxxxxxxxx')#mb api key   #Create Map  my_map = folium.Map(location=[45.372, -121.6972],                     zoom_start=12,                     tiles='user.2fb7fc73',                     API_key = 'pk.xxxxxxxxxxxxxxxxxxxxxxx',                     attr='Mapbox Data Attribution')   I have not been able to find any more example usage or explanation in the documents. If anyone has had success please advise?


Transferring a Windows 8 license and proper un- and reinstallation

Long story short  I have two computers: a laptop and a desktop computer. Both have Windows 7 on them.  I buy the Windows 8 Pro upgrade. To see if it screws up anything, I install it on my laptop as a guinea pig. I intend to use Windows 8 for my main computer, my desktop, but I want to test it on the laptop, so I know I don’t risk losing access to my desktop and the data on it. I never use my laptop, and only used it, because it already has a Windows 7 installation on it.  The problem  At some point, I must have entered the license key on my laptop, because when I go to the activation screen on my desktop, I get this:    Uh-oh. I can’t use the key on my desktop. Now how the hell do I transfer the key from my laptop to my desktop computer?  Answers and suggestions so far  Let’s just say that I tried everything possible to get some answers on this matter. The best response I got from Microsoft is this:     To install Windows 8 on your desktop, do the following:         Uninstall Windows 8 on your laptop   Afterwards, install Windows 8 on your desktop   If it won’t activate, call product activation at (...)      I am not a fan of that last point. The error message does allude to such a solution, however:     If you’ve reinstalled Windows or made changes to your hardware recently, you may be able to use your current key.   The question  My main question is this: has anyone been in a similar situation, and if so, what did you do to resolve this?  Failing that, what is the proper way to   uninstall the Windows 8 installation on my laptop, and reinstall the Windows 8 installation on my desktop?   Ad 1  I have already tried using the “reset” feature on my laptop, but that only resulted in a new Windows 8 installation that was already activated. But which is the right way to uninstall the installation in a way that allows me to use the license key on the desktop computer?  Ad 2  Which is the proper way to reinstall the Windows 8 installation on my desktop computer? Why do I even have to reinstall it in the first place?  I won’t get around to do this, until my USB key with 3.0 support arrives in the mail, but it is going to be a while, until I find a assuaging response to the best way to go about this anyway.


How can we create an instance for Supplier as it is an Interface?

I am trying to understand Supplier interface. I understand that it can return an object if we invoke its get() method. However, in the following example:  public class SupplierExample {      public static void main(String[] args) {         Supplier<String> s = new Supplier<String>() {             public String get() {                 return "test";             }         };          System.out.println(s.get());     } }   I am not able to understand how we can instantiate an object (s in above exaple) from an interface. Please advise.


Null pointer exception error when trying to start swing timer?

When I try to start the swing timer using timer.start(); it just brings up a null pointer exception error that I have no idea how to fix. Am I calling it wrong? I've seen examples of it having the timer.start();  in the actual timer method but I don't know where to put it in my code. Any help would be appreciated!!!! Thank you. import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.util.Scanner; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.SwingUtilities; import javax.swing.Timer;  public class Board extends JPanel {     private Timer timer;     @Override     public void paintComponent(Graphics g)     {         super.paintComponent(g);         g.fillRect(30, 30, 640, 640);//makes a black square         for(int i=30;i<=510; i+=160)//adds white columns         {             for(int j=30; j<=510; j+=160)             {                 g.clearRect(i,  j,  80,  80);             }         }         for(int i=110; i<=590; i+=160)//adds black columns         {             for(int j=110; j<=590; j+=160)             {                 g.clearRect(i, j, 80, 80);             }         }         g.setFont(new Font("Monospace", Font.BOLD, 30));         g.setColor(Color.WHITE);         g.drawString("a", 85, 660);         g.drawString("c", 245, 660);         g.drawString("e", 405, 660);         g.drawString("g", 565, 660);         g.drawString("7", 35, 140);         g.drawString("5", 35, 300);         g.drawString("3", 35, 460);         g.drawString("1", 35, 620);                  g.setColor(Color.BLACK);         g.drawString("b", 165, 660);         g.drawString("d", 325, 660);         g.drawString("f", 485, 660);         g.drawString("h", 645, 660);         g.drawString("8", 35, 60);         g.drawString("6", 35, 220);         g.drawString("4", 35, 380);         g.drawString("2", 35, 540);         timer.start();     }     public void showX(Graphics g)     {         g.setFont(new Font("wrongFont", Font.BOLD, 200));          g.setColor(Color.RED);         g.drawString("X", 35, 540);     }     public void boardImage()     {         JFrame frame=new JFrame();         frame.setSize(600, 600);         frame.getContentPane().add(new Board());         frame.setLocationRelativeTo(null);         frame.setBackground(Color.LIGHT_GRAY);         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);         frame.setVisible(true);         CoordinateGame game=new CoordinateGame();         frame.addMouseListener(new MouseAdapter()          {             public void mouseClicked(MouseEvent e)              {                 int x=e.getX();                 int y=e.getY();                                  }         });      }     public static void Timer()     {         class TimerListener implements ActionListener         {             int elapsedSeconds = 30;             @Override             public void actionPerformed(ActionEvent evt)             {                 Timer timer = new Timer(1000, new TimerListener());                 elapsedSeconds--;                 System.out.println(":(");                 if(elapsedSeconds <= 0){                     timer.stop();                 }             }         }     }      }


MLE of uniform distribution on the interval $[\theta − \frac{1}{2}, \theta + \frac{1}{2}]$

$X_1, X_2, . . . , X_n$ are i.i.d. observations from a uniform distribution on the interval $[\theta − \frac{1}{2}, \theta + \frac{1}{2}]$.  Show that any $\theta$ between $X_{max} − \frac{1}{2}$ and $X_{min} + \frac{1}{2}$  maximizes the likelihood, and therefore, can be taken as the MLE.  I am confused...because $f(x|\theta) = \frac{1}{(\theta+\frac{1}{2}) -(\theta -\frac{1}{2})} = 1$ for $\theta-\frac{1}{2} \le x \le\theta+\frac{1}{2}$ and 0 otherwise... Isn't the likelihood function $L(x|\theta) = 1$?  The how can it be maximized between $X_{max} − \frac{1}{2}$ and $X_{min} + \frac{1}{2}$ ?


How can I see the phone number dialed after I initiate a call?

In the Phone app (iPhone 5, iOS 6.1.2), I click on a contact's number, the call is initiated and starts ringing.   For a brief moment at this point, the label of the number (home / work / etc…) is displayed alongside the contact's name, but it quickly is removed and replaced with the call timer counting up and only the name (and picture of the contact) are shown.      How can I see the number that is being called during a phone call?


Iberia changed my flight and I now have a 24+ hour layover in Madrid, what are my rights?

I have been researching this for some time now, but can't seem to find a definite answer to my worries.   In May '15 I booked a ticket through a travel agent for the trip: Rio de Janeiro-->Madrid, Madrid-->Copenhagen (in February '16). Both flights are with IBERIA/IBERIA EXPRESS. In September '15 I got an email from IBERIA that the departure of my connecting flight from Madrid to Copenhagen had been changed to the next day, which gives me a layover time of about 25 hours in Madrid.   What are my rights? Can I make them pay a hotel, can I get a refund, can I make them pay another connecting flight?


What is the correct way to get a pgfkey value?

This is my first foray into the pgfkeys package and I found the following behavior really odd. The Tikz/pgfkeys manual mentions two ways for setting key values: \pgfkeys{key=value} and \pgfkeyssetvalue{key}{value}. When I tried both, they return different values. MWE:  \documentclass{article} \usepackage{tikz}  \pgfkeys{/my color/.initial = red, /my color/.estore in = \mycolor}  \begin{document}  \pgfkeys{/my color=blue} The colors are \mycolor{} and \pgfkeysvalueof{/my color}.  \pgfkeyssetvalue{/my color}{yellow} The colors are \mycolor{} and \pgfkeysvalueof{/my color}.  \end{document}   The output is:  The colors are blue and red. The colors are blue and yellow.   I was expecting all blue on the first line and all yellow on the second. What went wrong?


Minimum safe spacing between lava and flamable materials?

It seems that containing lava in solid glass, stone and iron blocks may not be sufficient to prevent wool from burning, even if the lava is completely encased.         After some delay, it seems that fire will jump onto the wool above the iron.   Are solid blocks more effective than airspace, or not? If so, Does it matter whether the corner block is filled in? What are the exact rules on distance that I need, and how can I prevent flammable blocks from being eliminated by nearby lava? Bonus: Does a flowing lava block behave differently than a lava source block when it comes to fire creation?


unix test when to use eq vs = vs == in test commands?

When should I use -eq vs = vs ==  e.g.    [[ $num -eq 0 ]]  [[ $num = 'zzz' ]]   I've observed a pattern of using -eq (and -ne, etc.) for numbers and = for strings.  Is there a reason for this and when should I use ==


Is there any way to do a correct word count of a LaTeX document?

Often assignments (or even papers) have a word count limit. That is not a big deal when using Word, but I don't know how to do that using LaTeX. My solution has been so far to compile the document and then do a rough word count of my pdf file, sometimes even copying the contents of the pdf file and pasting in Word to get a mostly correct Word count.  Is there any tool (maybe even an online tool), package, script or software to do that directly from my .tex document and still get the right word count (i.e., ignore commands, equations, etc)?


Intersection of two extensions of $\mathbb{Q}$

The original question is to find the Galois extension of the polynomial $x^9-5$. There are multiple questions before the actual question. Assuming $F$ = $\mathbb{Q}(\zeta)$ where $\zeta$ is a primitive 9th root of unity and $L$ = $\mathbb{Q}(\gamma)$ where $\gamma$ is the real root of $x^9-5$. I have proved that the only non-trivial subextension of $L$ is $\mathbb{Q}(\gamma^3)$. I am unable to prove whether $\mathbb{Q}(\gamma^3)$ is equal to $\mathbb{Q}(cos(2\pi/9))$ (which is subextesion of $F$ ) or not. If yes then $F$ intersection $L$ is $\mathbb{Q}(\gamma^3)$ otherwise it is $\mathbb{Q}$. Any help would be appreciated


What is the result of $\sum\limits_{n=1}^{\infty}(n-1)(\frac{5}{6})^{n-1}$?

In wolfram alpha it says it's 30 but I cannot figure out why.


Prove that the product of two infinite cyclic groups is not infinite cyclic.   Let $G=<a>$ and $G'=<b>$. The product group is $\{a^mb^n: m,n\in\mathbb{Z}\}=<a^kb^l>$  Now, for given $m,n\in\mathbb{N}$, we can find $u$ such that $(a^kb^l)^u=a^mb^n$. Then $u=\frac{m}{k}=\frac{n}{l}\Rightarrow \frac{k}{l}=\frac{m}{n}$, which is true for any $m,n\in\mathbb{N}$, which can not be true, since $k,l$ are fixed, so the ratio is. And then I am stuck. What to do next???    Another question from my curiosity: We can take $G=<e^{i\pi \sqrt{2}}>$ and $G'=<e^{i\pi \sqrt{3}}>$. What is the product group? It should be $<e^{i\pi \theta}>$, where $\theta$ is rational. But what is $\theta$?


I know this question has been posed before but I can't find a current solution that seems to work. I'm trying to find my activation key for some games, and I've tried all the previous solutions to this problem that I've found here.   What I've tried:   Right-clicking the game in the library menu to click on "View CD-key" (there was no such button). Clicking the cog-wheel on the game in question and looking under "Manage" (no button for keys) Checking under "Links" in the game menu, except I can't even find a links category   Anyone who knows how this works now? I'm at a loss. The games I want to find the key for is Skyrim and Lego The Hobbit


Application written in single file fires NullPointerException

Can't understand, i have problem with abstract class getOn method, if i split my classes to different files and declare them as public, like that  package test.local;  abstract public class Passenger {     public void getOn(Transport transport) {         transport.takePassenger(Passenger.this);     } }  package test.local;  public class Dog extends Passenger { }   everything works fine, i can pass Passenger.this to getOn method, but if i write whole application in single file like that  import java.util.List;  interface Transport {     public void takePassenger(Passenger passenger); }  class Bus implements Transport {     private List<Passenger> passengers;      public void takePassenger(Passenger passenger) {         passengers.add(passenger);     }      public List<Passenger> getPassenger() {         return passengers;     } }  abstract class Passenger {     public void getOn(Transport transport) {         transport.takePassenger(Passenger.this);     } }  class Dog extends Passenger {  }   public class Magic {    public static void main(String []args) {       Bus bus = new Bus();        Dog passenger = new Dog();       passenger.getOn(bus);    } }   i am getting Exception in thread "main" java.lang.NullPointerException why?  Exception in thread "main" java.lang.NullPointerException at Bus.takePassenger(Magic.java:11) at Passenger.getOn(Magic.java:21) at Magic.main(Magic.java:35)


Grant the original question the upvotes if another is closed as a duplicate of it

I have occasionally seen questions which have lot of duplicates, yet aren't as highly voted as one might expect given the views.  So I suggest that all upvotes (or some percent of it) on the duplicate be also applied to the original (up to some maximum, with consideration of duplicate's age, perhaps).  These questions have, after all, helped many users, and this might be one way to grant some proportionate reward from people who can't reward it (new users lacking the upvote privilege). I'd just like it if some measure of the approval that the dupe generated be applied to the original.  As an example, consider , which has as of this writing, 29 upvotes. It has well over 150 posts linked to it, some of which are upvoted. Guessing that 80% of these are actually duplicates of it, and 10% of these have an upvote, and say 60% (rounded up to next int) of the upvotes are given to it, it would get some 8 upvotes more. Not much, but still a definite boost to that question.  I'm not trying to punish duplicates (as intended in ), or completely transfer all votes from duplicate to original. I'd just like it if some measure of the approval that the dupe generated be applied to the original.


Did USCIS resume its biometric service for UK visa?

Service  since Mar 29th. It looks like all the new applicants are allowed to reserve appointment with USCIS for biometrics (see: )  Did anyone successfully finish biometric process at USCIS post Mar 29th? Sometimes the website does not get updated, leaving people in the dark.  This information will help the affected people to plan.


I don't trust Facebook's new privacy settings and have decided to delete my account, but I can't find the kill switch.  Does anyone know how I can delete my Facebook account?


How do you get your Steam games to run on Ubuntu through Wine or something similar?

Ok, I was kind of surprised that this hadn't been asked here before, but maybe it's too technical for this site. You guys decide.  I've heard lots of different stories about setting up Wine on Ubuntu, WineTricks, PlayOnLinux etc., but never a 'This is the best way to do it for Steam and Steam games' thread.  So has anyone had any real success getting their Steam games to run on Ubuntu through Wine or something similar? If so, could we get some specific steps?


I am fairly new to .NET and C#, but I have a DataGridView that I would like to print.  What would be the best way to go about doing so?


Is there a particle called a "tachyon" that can travel faster than light?  If so, would Einstein's relativity be wrong?  According to Einstein no particle can travel faster than light.


C# Decrypting AES/ECB Image Padded Using PKCS#5

I'm making a small application for fun in C# which retrieves a image from a server which is encrypted using AES/ECB with a single synchronous key (which I know) and padded using PKCS#5.  I tried just downloading the image by using a BinaryReader, however when I go to open the image, it is a corrupt file. I assume this is because it is encrypted. Here is my code:  string repsonseData = string.Empty; using (var response = (HttpWebResponse)req.GetResponse()) {     using (var reader = new BinaryReader(response.GetResponseStream()))      {         Byte[] lnByte = reader.ReadBytes(1 * 1024 * 1024 * 10);         using (FileStream lxFS = new FileStream("imageName.jpg", FileMode.Create))          {              lxFS.Write(lnByte, 0, lnByte.Length);         }     } }   The synchronous key is: M02cnQ51Ji97vwT4 Any help would be appreciated. Thanks!  EDIT: I found this piece of PHP code which does what I need:  public function decryptECB($data)  {      return mcrypt_decrypt(MCRYPT_RIJNDAEL_128, self::BLOB_ENCRYPTION_KEY, self::pad($data), MCRYPT_MODE_ECB); }   The BLOB_ENCRYPTION_KEY is the key that I provided above. Could somebody convert that to C#?


How to programmatically detect if a LaTeX package is installed?

I am writing a program, and I want it to do different things depending on which LaTeX packages have been installed.  My current solution is to automatically generate simple .tex files that \usepackage the packages I care about and then automatically check if pdflatex can compile them or not.  This solution seems slow and fragile.  What is a better solution?  Edit: The program I am writing is in Python.


I reinstalled Ubuntu few months ago. By accident I chose to install Ubuntu without Windows (I had dual boot operating systems before that).   This is a disaster! I lost all my data in Windows and lost the operating system as well.   Do you know if I can recover my operating system? Bring Windows back to the laptop, or at least recover those data files in Windows?


What if Force was not Mass times Acceleration?

We know that Force equals Mass times Acceleration, $F = ma$. But what if we had a law like $$F=m^2a$$  or  $$F = 2ma~?$$


16GB USB flash drive shows as 16MB and is unusable

I have a Sandisk Cruzer 16GB USB flash drive, but it started to show up as 16MB. And I can't use it, it tells me that I need to format the drive or Please insert a disk into drive X. What software do I need to check the flash drive?  I can't format it since the format fails, and it shows as 16MB instead of 16GB.


Clipping MrSID raster image, without decompressing clipped raster, in ArcGIS Desktop?

I am using ArcView ArcMap10 and when I clip a raster using tools/data management tools/raster/clip. The Clipped file ends up much larger than the original file.  Specifically I am trying to clip a MrSID file that is 2.6gb, the clipped file ends up being 54.gb.  I have tried playing with the environment setting and compression rates trying to convert to a JP2 with no luck.  I am fairly new to GIS.


The special function $P(s)=\int^\infty_0 \frac{\ln(x)dx}{1+x^s}$

Evaluate the integral $$P(s)=\int^\infty_0 \frac{\ln(x) \,dx}{1+x^s}$$  I tried integration by parts, using $u=\ln(x),du=\frac{x}{dx},v=\frac{1}{1+x^s}$, but I did not manage to get anything. I thought about using a power series, but I did not find one that converges on the entire domain. Using the substitution $u=\ln(x),du=\frac{dx}{x}$ we get $$\int^\infty_{-\infty} \frac{ue^{-u}}{1+e^{su}} ,$$ which doesn't seem useful either. The previous similar question  gives $$\int^\infty_0 \frac{x^n \,dx}{1+x^s}=\frac{\Gamma(\frac{1}{s})\Gamma\left(1-\frac{1}{s}\right)}{s(n+1)} .$$ Another possibly relevant question is .


I am in a situation where my PhD funding runs out in 5 months and I need to have secured a job regardless of whether I have submitted due to having a family.   Although I think I may be close to submitting by then, it may take longer. Is it worth applying for postdoc positions or would universities not consider you until you have completed the PhD? I assume that the pass rates of PhDs are very high if the candidate has got to the submission stage.   Edit: This question is aimed at the people that are are the submission stage but haven't yet defended their thesis. It is not a question asking if I can get a post-doc without a PhD.


Is it possible to create a counter that is a "slave" to another (master) counter, but also an exact duplicate?  The \@addtoreset{<slave>}{<master>} resets <slave> whenever <master> is incremented (similar functionality is offered by ), but I don't know about anything incrementing one counter (<slave>) automatically whenever another counter (<master>) is incremented.  The idea is to have a macro (say) \dupcntr{<slave>}{<master>} as an analogue to \@addtoreset. The application for this might be where one is interested in renaming a counter used/provided by a package into something more meaningful for the user (say, <slave>), without having to reference <master>. Or, if the original counter contains @ that needs to be escaped every time it's used, it is sometimes more convenient to have a "more user friendly" counter.  I know one way around is to use a macro that returns the value of <master>, but is it possible to perform the same manipulation with a macro than one could with the counter? Manipulation here refers to the printing of the counter (via \the<slave>) and perhaps it's representation (like \arabic, \alph, ...).


I have a Dell Vostro 1550 laptop with an Intel Core i3 processor running Ubuntu 12.04 64-bit. It shows me the error message: (initramfs) Unable to find a medium containing a live file system. in BusyBox, and it also says: Enter 'help' for a list of built-in commands.


How do we know that we have captured the entire spectrum of the Harmonic Oscillator by using ladder operators?

Consider standard quantum harmonic oscillator, $H = \frac{1}{2m}P^2 + \frac{1}{2}m\omega^2Q^2$.  We can solve this problem by defining the ladder operators $a$ and $a^{\dagger}$. One can show that there is a unique "ground state" eigenvector $\psi_0$ with $H\psi_0 = \frac{1}{2}\hbar\omega\psi_0$ and furthermore that given any eigenvector $\psi$ of $H$ with eigenvalue $E$, the vector $a^{\dagger}\psi$ is also an eigenvector of $H$ with eigenvalue $E + \hbar\omega$.  However, it is usually stated that we now have all eigenvectors of $H$ by considering all vectors of the form $(a^{\dagger})^n\psi_0$.   How do we know that we have not missed any eigenvectors by this process? e.g. how do we know that eigenvalues are only of the form $E_n = (n+\frac{1}{2})\hbar\omega$?  Also a slightly more technical question, how do we know that the continuous spectrum of $H$ is empty?  The technical details I am operating with are that $\mathcal{H} = L^2(\mathbb{R})$ and all operators ($H, P, Q$) are defined on Schwartz space, so that they are essentially self-adjoint with their unique self-adjoint extensions corresponding to the actual observables.


Is $f'(x)$ Riemann integrable if it is bounded

The fact that $f(x)$ is differetiable dosen't guarantee the integrability of $f'(x)$ on $[a,b]$ beacuse $f'(x)$ could be unbounded, which violates the assumption of Riemann integral. However, what's the case if $f'(x)$ is bounded? Since $f'(x)$ doesn't have any discontinuity point of the first kind and $f'(x)$ is bounded, $f'(x)$ has only discontinuity points as $\sin \frac1x$ dose near $x=0$ if there are any. Could $f'(x)$ has uncountably many discontinuity points of that kind? Otherwise, $f'(x)$ should be integrable on $[a,b]$. I think $f'(x)$ is integrable if it is bounded, could someone please give me a hand here? Or is there a counterexample? Thanks in advance!


Which is correct?        I will transfer the amount on tomorrow.   I will transfer the amount by tomorrow.


Can I re-enter South Africa for a second time from the UK within my 90 day SA visitor visa limit?

I am a UK citizen, Can I re-enter South Africa for a second time after returning home to the UK, if the second visit to South Africa is still within the first visit's allocated 90 day time limit? Will they let me back into the country on this 1st visa or will I be re-issued a new visa, as I have returned to my home country in between? I can't seem to find any info about this anywhere about returning home and then re-entering South Africa again after a couple of weeks. I've already booked my return flight to SA from UK but panicking slightly that they'll let me back into the country...Im just going back for 2 weeks Thanks


Suitable word for a hardworking and resilient person

I am writing a personal statement and my opening sentence is like this:      I am _______. Being resilient in the face of hardships and difficulties, my friends and class fellows would call me so.    Now looking for a suitable word for this blank. Something which shows a hardworking and flexible personality. Kindly help.  Edit: looking for an easy and short word


Prove that for any set $X$ we have the $|X| < |\mathcal{P}(X)|$ (power set of $X$)  How would you prove this using the definitions of bijection, surjection, and injection?  Also, does this mean when we have the empty set $X = \{\}$, then $|X| < |\mathcal{P}(X)|$ as well? Would they not be equal?


Symbolic Links - What determines the maximum number?

Preface  I create a media folder structure with Python consisting of hundred of thousands symbolic links. This folder structure allows me to navigate my media files like in a complex application, e.g. Kodi, but on file system level. In order to avoid many disk write operations I create the links on a RAM drive. The disk is mounted as follows:  # sudo mount -t tmpfs -o size=100M none /mnt/mem   The Issue  After creating many links the script outputs the following error:  [Errno 28] No space left on device: '...'@78596   If I check the actual disk usage, it returns the following:  $ df -h // ... none            100M    1,7M   99M    2% /mnt/mem   So according to my system, only 2 % are used!  The system is:  $ uname -a Linux myServer 3.2.0-23-generic-pae #36-Ubuntu SMP Tue Apr 10 22:19:09 UTC 2012 i686 i686 i386 GNU/Linux   After some investigation my script is able to create up to 90,000 links.  The Weird  If I try to reproduce the error on my desktop, it works flawlessly. I'm able to produce over 1,000,000 links with no issues. I don't know the actual limitation.  The system is:  $ uname -a Linux myDesktop 4.15.0-76-generic #86-Ubuntu SMP Fri Jan 17 17:24:28 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux   The Questions   What limits the number of symbolic links in linux? Can I bypass the limitation by upgrading the OS? Can I bypass the limitation by upgrading to a 64-bit architecture?   Some deep insights would be welcome!  Thanks.


Prove that, for any set of consecutive integers with an odd number of terms, the sum of the integers is always a multiple of the number of terms.

For example, the sum of 1, 2, and 3 (three consecutives -- an odd number) is 6, which is a multiple of 3.


Select most recent row by some other column

I'd like to select the most recent row in a MS SQL Server 2008 R2 database based on a couple of factors.  I've seen a lot of people want to do the same thing online, and a lot of different proposed solutions, but most seem overcomplicated, and I can't get anything to work properly or do what I want.  I have data in a table where a particular thing (Room) will have a name, and a most recent status (AnalogValue; it correlates to online status) with a corresponding date/time (LogTimeStanp).  I'm most interested in the current online status for each room, so I just need the most recent row for each room.   There can be a number of rooms, for an example 1 - 5,000 (there's no imposed upper limit). There is a lot of data that pulls back when I look at the historic online status. There is other data in this table that I'm not interested in for this query. I have to join tables to get a readable room name, otherwise I just have a GUID. I'm not sure if I need to use MAX(), SELECT DISTINCT, Group by, or something else.  I have not been able to get these to work to my satisfaction.   This code does not work, but should give you an idea of what I want to do:  SELECT r.RoomName, a.AttributeID, a.AnalogValue, max(a.LogTimeStamp)   FROM CRV_AttributeLog a join CRV_Rooms r on a.RoomID=r.RoomID   where a.AttributeID like 'online_status'   My intent is to get the AnalogValue with the max (most recent) LogTimeStamp per individual room.  I have gotten a query to run with group by, but it doesn't seem to be grouping it (and certainly not by room name), so I guess I am doing it wrong.  Update 1, 2, 3, 4  Added pics for context.  Also, this query will form the basis of a report, so it has to be entirely referential, that's why I just want "the latest" online status.  Further complicating things, "the latest" may not have happened today, this week, or this month.  But it's in there, somewhere, sometime.  Each row in CRV_AttributeLog will have its own AttributeID and AnalogValue, and the row is made unique by the time stamp (LogTimeStamp).  Otherwise, it's entirely possible for AttributeID and AnalogValue to be matching across rows (and that's OK).  This table is logging information about when a few different somethings change: online status, if there is an error, etc.  ONLINE_STATUS can change from 0-2 (Offline, partially online, online) and will change between them periodically.  The other AttributeIDs' AnalogValues may also change back and forth depending on other conditions.      Desired Output  Room Name          AttributeID     AnalogValue     LogTimeStamp Conference Room    ONLINE_STATUS   0               2016-06-11 21:21:25:123 Gymnasium          ONLINE_STATUS   1               2016-07-21 20:23:45:456 Boardroom          ONLINE_STATUS   2               2017-02-17 05:15:37:951 Great Hall         ONLINE_STATUS   0               2016-10-23 07:28:54:753 ...


Moving files in a local network - would compressing improve speed?

I am moving some 20Gb within my local network (100 Mbit/sec). The files are from a typical Linux desktop system.  Would compressing them using Tar\Gzip and then sending them improve performance?  EDIT: I'm moving a Developer's workspace, meaning lots of source and PDFs, and not much multimedia.


Is any subset of a $A$ of a separable norm linear space $X$ is separable?

I just read the theorem      "If X is norm linear space and if $X^*$ is separable $X$ is also separable"   from Bachman and Narichi, page 201. To prove it they consider the set $S=\{f \in X^* :\lVert f\rVert=1\}$. And the writer said that $S$ is separable as $S$ is subset of  $X^*$ which is separable. How it is possible? Can anyone explain it? I know it is true for open subsets.


What has been proved about the big bang, and what has not?

Ok so the universe is in constant expansion, that has been proven, right? And that means that it was smaller in the past.. But what's the smallest size we can be sure the universe has ever had?  I just want to know what's the oldest thing we are sure about.


Detect when a player respawns, Possible?

I have tried and tried but I can't find any solution that fits 1.13. Is there anyway possible to detect when a player respawns. My goal is to remove all the effects on a player when they respawns. But I'm just too bad. I have tried some commands from videos but they are just to outdated  I have tried  Video and it uses an old trick so it was no use. I tried to find a player respawn scoreboard with no luck. And finally I tried this:  (In a repeating command block, always acitve)  /execute as @a[scores={M_Death=1}] run effect clear @a[scores={M_Death=1}]   (In a chain command block, condential, always active)  /scoreboard players reset @a[scores={M_Death=1}] M_Death  Any idea anyone?


How do I reference types or modules defined in other F# files?

I have the following in a .fs file:  namespace fsHoldem  module holdemPlayer  type Player()=   ... etc...   and I'm trying to reference the type Player in another file.  I've tried using open:  namespace fsHoldem  module BetStrategies  open fsHoldem.holdemPlayer          but I'm getting the error "Namespace or module 'fsHoldem' is not defined."  Note that both .fs files share the same namespace, and both exist in the same project.


REVISITED $^2$: Does a solution in $\mathbb{R}^n$ imply a solution in $\mathbb{Q}^n$?

Let $A ∈ M_{m\times n}(\mathbb{Q})$ and $B ∈ \mathbb{Q}^m$. Suppose that the system of linear equations $AX = B$ has a solution in $\mathbb{R}^n$. Does it necessarily have a solution in $\mathbb{Q}^n$?  Where do I start?    I feel I can use this to :  $$x_i=\frac{1}{a'_{ii}}\left(b'_i - \sum_{j=i+1}^{k} a'_{ij} x_j \right).$$    Here is a thought that just crossed my mind, but I'm not sure if this is legal:  Suppose $Y\in \{\mathbb{R}\setminus \mathbb{Q}\}^n$ and $Y'\in\mathbb{Q}^n$ are solutions to $AX=B$. Then $AY=AY'=B$, or $A(Y-Y')=A(Y+(-Y'))=0$, but  addition between $\{\mathbb{R}\setminus \mathbb{Q}\}^n$ and $\mathbb{Q}^n$ is . . .


MacBook Air crashes, restarts and gives this error


Which ubuntu 12.04.3 is best for Device lc2430i ?

Which Ubuntu version should I download for new Linux-certified laptop ?  Device Name: lc2430i MEMORY: 3.8GiB Processor:3rd Generation Intel Core i5-3210M CPU @ 2.5GHZ X 4 (3MB L3Cache,2C+HT) OS TYPE: 64-bit Graphics: Intel Ivy bridge Mobile Disk: 483.8GB  Note: This Laptop came with Ubuntu 13.04 but we ordered 12.04 LTS, I want the Long Term System not systems that only have support for 6 months.


Find the limit $\lim_{n\rightarrow\infty}\sum_{k=1}^{n}\frac{1}{k+n}$

$$\lim_{n\rightarrow\infty}\sum_{k=1}^{n}\frac{1}{k+n}$$  Could you please give me a hint how to find this limit?


I am doing python programming in notepad++ ,   so as suggested in many posts I have downloaded a tool called "python indent" and set it as enable.  Even after this , when I type in the print statement still I get the indentation errors such as "IndentationError: unindent does not match any outer indentation level" , any other tool is available for this purpose? Because in javascript ,when I select the entire file and go to jshint tool and select indentation, I just get the properly indented file .   I am searching for a tool in python , but not able to get it. Anybody has any suggestions please?  edit:  try:      print "hi"     keys = mgt.get_keys(name)   I am getting the error after inserting print statement


How to stabilize the magnetic levitation system?

I have asked similar question before also but want to try again -   I followed everything from this project but still, the magnet is not levitating -   The best I can do is to make the magnet jump up and down fast but it never levitates. Have tried changing PID setting from the project as aggressive and mild but still didn't achieve the final result.  I need advice from an expert to tell me what I am doing wrong here. All components are in good condition and 5v electromagnet is strong enough.   So what am I missing here?


What's the difference between JavaScript and Java?


python, tkinter - Frame height and width parameter values have no effect

I am trying to create 16 buttons which will completely occupy the bottom 3/4 th of the window. But, the frame height and width values don't seem to have any effect. How to get the behaviour I want?   from tkinter import *   class Application(object):     def __init__(self):         # Creating the main window         self.window = Tk()         self.window.geometry('{}x{}'.format(400, 400))          # frame where numbered buttons will be         frame = Frame(self.window)         frame.configure(height=300, width=300)         frame.pack(side=BOTTOM)          # add buttons         for i in range(4):             for j in range(4):                 Button(frame, text=str(4*i + j + 1)).grid(row=i, column=j, sticky=N+E+S+W)         self.window.mainloop()   def main():     app = Application()  main()


How can I access variable from javascript file insize script tag?

I need to access my variable inside test.js from  tag, how can I do that? am getting the Uncaught ReferenceError: test (function) is not defined error. Following is the simplest of functions that I could create in order to isolate the issue. in index.html <script type="text/javascript" src="assets/js/jquery-3.4.1.min.js"></script> <script type="text/javascript" src="main.js"></script> <script type="text/javascript">         $(document).ready(function() {             test();             alert(a);         }); </script>  main.js jQuery(document).ready(function($) {     function test() {         console.log("test");     };     var a = 100; });   Thanks for your help.


A word for converting numbers to (number / 1000) + K

Is there a word for the case where a number has been converted to something with a trailing ‘K’ (and possibly ‘M’ for millions, ‘B’ for billions, ...)?     Example: 250,000 changes to 250K   It will be used in a sentence like “The number is ...”, like hyphenated and capitalized are used in  “The word is hyphenated” and  “The character is capitalized”.     Context: I’m programming a set of functions to deal with character and number formatting. For most of those functions, the name is simple and obvious: uppercase(), round() and trim(). Until now, I’ve used number_shorten(), which is not very descriptive, and someone reading my code would have to guess what it actually does, and therefore I’m looking for a better word to describe my function.


Let $H$ be a subgroup of $G$ and $gH$ is in $Hg$ for some $g$. Can we get that $gH=Hg$?

I know it is true if H is finite,but how about H is infinite?Any ideas are welcome .Thanks.


I've been stuck on this one problem for a couple of days now with no clue on how to complete it. I need to prove the following logical equivalence:  (¬P ∧ ¬R) ∨ (P ∧ ¬Q ∧ ¬R) is equivalent to ¬R ∧ (Q ⇒ ¬(P ∧ ¬R))  If anyone could shed some light on this matter, please..


Can A Boost Charger For iPhone Be Used With An iPod?

I have an iPod Touch 6th generation.  Can I use a Belkin Boost Charger made for an iPhone/iPad to charge it? It's 18w USB-C and 12w USB-A. My concern is about the wattage, not about the brand.


File too large for the destination file system

Trying to copy an 11.3G file to a brand new 65G flash drive. Keep getting error message "the file is too large for the destination file system. It is a brand new flash drive formatted to fat32. On windows7. Any suggestions??  Thanks!


best version for r15-s829 toshiba satellite

i recently picked up a toshiba satellite r15-s829 at my local pawn shop and while i do love this little guy, im hoping that going back to ubuntu will make him better. i need to know which version of ubuntu is the best option and whether or not the tablet functions will work as i got this with the intent of being for my 3d modeling tasks and because i like the old school analog note taking features of the tablet pen function.


I installed Ubuntu 18.04 right now and after connecting to the internet instead of a network icon there is a question mark. There is no network issues, but that question mark is annoying.


Can I get more information on an inbox notification for a comment on a deleted answer?

I have an inbox item but it looks like the person who answered the question and made response comment deleted his answer. Is there a way to see his/her id? I can see only part of the text in my inbox. Can I see it completely? I wanted to let the poster know that his answer was working! Not sure why he deleted it. Here's what I see in my inbox:  comment on Delete consecutives values in ArrayList of Int "Give it a try... That's called twice because I'm already at the beginning of the next ran..." on


What is a typical dress code for campus interviews on west coast state schools?

The question says it all.   I am shortlisted for a campus interview at a state school in California. I was wondering about the dress code? Should I wear a suit or would it be too much?  EDIT: It's for CSU math position in Northern California.


Experimental limit on Newtonian mechanics not to depend on third derivative

We know that newtonian mechanics is described by a set of second order differential equations. This leads also to the principle of determinism that every trajectory is determined by initial conditions on position and velocity. How good is the experimental evidence on that that there is no third derivative term? (In the same spirit like ppl try to look for an electric field inside a conductor to test Coloumbs law).  Edit: to the downvoters: please comment what is the problem with this question? Using experiments to determine null-results is part and parcel of physics.  Edit: my question is not a duplicate of  but related. The other question asks about theoretical grounds. I am asking about experiments conducted and the limits they impose on higher order derivative terms.  Edit: To clarify the question: we generally accept Newtons second law of motion $$ m \ddot {x}  = F(x, \dot{x}, t) $$ this implies that specification of position and velocity uniquely defines a solution (so called principle of determination).  How precisely do we know this to be true in the sense of what if we assume instead $$ const\dddot {x} + m \ddot{x} = F $$ then what are the experimental limits on the constant 'const'. How close to zero is it determined from actual experiments.  Note: I still diagree this is a duplicate. For example one answer which goes in the direction from the linked question:  is 'Because the second derivative is fully determined by the external force, it is an experimental fact.' This goes in the right direction, but my question really is: which experiment gives the highes accuracy on this, where was it published and to what precision does it prove this fact. My question is in the same spirit like questions 'what is the current upper bound on the photon mass' except for a different topic in physics.   Thought experiment to test this: build a rail-gun, place it in a vacuum-chamber and shoot a parabola using the earth gravitational field. Use constant acceleration while still on the rail. Now place the object at a different start position on the rail but also change the constant acceleration so that at the release point (exit nozzle of the gun) the object has the same velocity. Will the object alway hit the same spot? (of course, if the equation of motion is a second order differential equation; it wont if the trajectory depends on the initial acceleration). Of course we know that it will not depend on initial acceleration, but to what precision do we know that?


How to enable/disable startup services in Ubuntu?

There seems to be no definitive solution for this, either in Ubuntu's official documentation or other sources of information.  In some places systemctl is suggested but I think Ubuntu does not support it for the moment.  Other suggestions include manually creating the links, but I feel there should be a better way. On the other hand there are graphical programs to achieve this, but what about servers without GUI?  In Fedora I don't think this is an issue. You can use chkconfig to add/remove a service from the startup sequence.  The equivalent of chkconfig for Ubuntu seems update-rc.d, but:  # update-rc.d modemmanager enable update-rc.d: /etc/init.d/modemmanager: file does not exist   Since Ubuntu is the most used GNU/Linux distribution, I believe there must be a way to do this in the command line with a specific command.


Does series with factorials converge/diverge: $\sum\limits_{n=1}^\infty \frac{4^n n!n!}{(2n)!}$?

$$\sum_{n=1}^\infty {{4^n n!n!}\over{(2n)!}}$$  I tried the ratio test but got that the limit is equal to 1, this tells me nothing of whether the series diverges or converges. if I didn't make any errors when doing the ratio test,  it may diverge, but I need help proving that. Is there any other test I could try.


Importance of the order of public/private key application to a signed encrypted message

Let's say two users (U1, U2) each have a private key they keep to themselves, and each broadcast a corresponding public key to the world.  Let's then say that U1 wants to send a signed encrypted message to U2. I understand the idea that U1 wants to encrypt the message using his own private key, so that U2 can have proof that the message indeed came from U1 (since if U1's public key can decrypt a msg, it must've been encrypted by U1), and also U2's public key, so that only U2 can decrypt the message using his private key.  What I'm not completely clear on are the differences between first encrypting with U1's private key and then U2's public key, or in the opposiste order.  The way I see it, in the first possible order (U1 private, then U2 public),  nothing can be gleaned from the doubly encrypted message by observers, even if they have both U1 and U2's public keys.   If U1 were to doubly encrypt the message in the opposite order (using U2's public key first and then U1's private key), the only difference would be that observers would be able to break the layer of U1's encryption (using his public key) and see that he sent a message (but not to whom, or at least not from decrypting that first layer). Nothing more could be observed because the decrypted message (using U1's public key) would just reveal another layer of encryption that only U2's private key could decrypt.  Is that correct? Does order matter other than that?


How can I easily get the manufacturer and model of my monitor?

How can I get the manufacturer and model of my monitor from within Windows, without having to disconnect and manhandle a 27" inch monitor looking for a label that may not exist, or download any third-party software? It seems odd that there's no native, software-only solution to do this on Windows 7.    UPDATE #1:  This question was initially claimed to be a duplicate of another question. It isn't a duplicate of the proposed question because:   The proposed question is specific to laptops. The proposed question is incredibly broad, seeking to cover all (laptop) hardware with a single solution. My question, by contrast, is asking about a piece of hardware specific to desktop computers. I did so knowing that it is notoriously hard for Windows 7 users to obtain specifics for said piece of hardware with a native software solution. This is evidenced by the fact that none of the answers to the supposed original question correctly answer mine, despite said question having existed since 2009, and by the fact that the only correct answer to my question is an obscure command-line one. The proposed question doesn't specify native-only solutions, which is an important requirement for me and many other users who want to be able to accomplish such a relatively simple task without downloading or installing additional software.     UPDATE #2:  I accepted the current answer because it is the right solution to the question I asked, even though it doesn't work in my specific instance due to bad EDID values. For that specific issue, I created a .


Find $\cos(\alpha+\beta)$ if $\alpha$, $\beta$ are the roots of the equation $a\cos x+b\sin x=c$

If $\alpha$, $\beta$ are the roots of the equation $a\cos x+b\sin x=c$, then prove that $\cos(\alpha+\beta)=\dfrac{a^2-b^2}{a^2+b^2}$   My Attempt $$ b\sin x=c-a\cos x\implies b^2(1-\cos^2x)=c^2+a^2\cos^2x-2ac\cos x\\ (a^2+b^2)\cos^2x-2ac\cos x+(c^2-b^2)=0\\ \implies\cos^2x-\frac{2ac}{a^2+b^2}\cos x+\frac{c^2-b^2}{a^2+b^2}=0 $$ $$ a\cos\alpha+b\sin\alpha=c\implies a\cos^2\alpha\cos\beta+b\sin\alpha\cos\alpha\cos\beta=c\cos\alpha\cos\beta\\ a\cos\beta+b\sin\beta=c\implies a\sin\alpha\sin\beta\cos\beta+b\sin\alpha\sin^2\beta=c\sin\alpha\sin\beta\\ c\cos(\alpha+\beta)=a\cos\beta+a\sin\alpha\cos\beta.(\sin\beta-\sin\alpha)+b\sin\alpha+b\sin\alpha\cos\beta(\cos\alpha-\cos\beta)\\ $$  I think its getting complicated to solve now. What is the simplest way to solve this kind of problems?


Are layovers included in the Schengen to USA COVID-19 travel ban?

Starting Friday the 13th, all non-USA passport holders are not allowed entry into the USA when coming from the Schengen area. Does this include layovers?   I'll be traveling from Africa, laying over in Frankfurt and finally arriving in Dulles. As a US citizen, what will be the impact of my layover?


What is the moment of a joint random variable?

Simple question, yet surprisingly difficult to find an answer online.  I know that for a RV $X$, we define the kth moment as $$\int X^k \ d P = \int x^k f(x) \ dx$$ where the equality follows if $p = f \cdot m$, for a density $f$ and Lebesgue measure $m$.  So, what is the kth moment of, say, $(X,Y)$? $\int (X,Y) \ d P$ doesn't really seem like the answer to me....


Prove that $n < 2^n$ for all $n ∈ N$. By induction. I know how simple is this, but could anyone help and give detailed explanation?   Edit: Its $2^n$ NOT 2n


Find an n such that the equation $x^2+x=0$ in mod n has 4 solutions

So this is my question and I also have to do it so it has 8 solutions, my problem is that I don't really understand how to approach the problem at all.  Any type of help would be appreciated thanks


How do I prove this combination equation using induction?

The proof I tried is in the aforementioned images, but I don't know how to proceed after a point. I would like a completed version of that proof or if it isn't viable, I would also love exploring other proofs along with a reason why my proof isn't a viable one.


How to force Windows to delete a directory that is in use?

I have a directory under C:\Users\myuser\.ssh and I need to delete it but Windows won't let me.  From Windows Explorer:    From a Cygwin shell:  myuser@mymachine /cygdrive/c/Users/myuser/.ssh $ rm -rf id_rsa rm: cannot remove `id_rsa': Device or resource busy   Any ideas how to force this deletion?


What is the best way to convert xml to html5 in c#?

what im doing right now. is changing the xml tag to its counterpart in xhtml.  the problem so far is. there are some extra tag that i don't need.  the program i'm doing right now is. changing the xml tag and removing some of the tags i dont need. is there any better way to do this?  the requirement is. the output must be html5.   thank you  example xml  <PublisherInfo>     <PublisherName value="1">Askquestionzero Publisher</PublisherName>     <PublisherLocation>Ph</PublisherLocation>     <PublisherImprintName>Askquestionzero</PublisherImprintName>     <PublisherLogo>       <Tada>Remove this value and its content</Tada>     </PublisherLogo>     <PublisherLogo>       <Tada>Remove this value and its content</Tada>     </PublisherLogo>     <PublisherURL>Askquestionzero.com</PublisherURL>     <Title>Some Title here</title>      <Para>This is some text for the paragraph <emphasis><italic>Chapter</italic></emphasis></Para>    </PublisherInfo>   desired output
Askquestionzero Publisher

Some Title here

This is some text for the paragraph Chapter
   in the example above. i dont need the other node. and what i need is to get the content of Title node. and the para node. and remove the emphasis node and change the italic node to I.


How to prove $(\sqrt2 n^2)_{n\in \mathbb{N}}$ is uniformly distributed mod 1.  I tried using Weyl's criterion but I seem to go nowhere.   Thank You very much.


Can no longer scale objects in object-mode (though edit-mode works) (Gray nodes?)

Can no longer scale objects in object-mode though it works in edit-mode. I feel like I noticed the appearance of these gray nodes around the 3D view around the same time that these issues began occurring.


Short story where a main invents nanobots and reads a book in a radioactive room

I read (the beginning) of a short story about a man who invented nanobots.  He went into a radioactive room (nuclear reactor) where he trapped himself and started reading a book.  It may have been a short story written by Isaac Asimov, but I am not sure.  As far as I can remember, it was in a collection of short stories.  I also remember that during that time, I read Asimov's Science Fiction.  It was supposed to be continued on the next volume, but I did not find that volume.  I read that sometime between 1988 and 1992... but it was a bit older, when I read it.


How to make a Snap application (ksnip) appear in "open with other application" context menu?

For editing screengrabs, I prefer to use , since  was no longer installable without hassles on Ubuntu 18.04 and 20.04 However ksnip is available as a Snap App on my 20.04 ○ → snap list | grep ksnip ksnip                    1.8.0                       265    latest/stable    dporobic                 Unfortunately I have to start ksnip from the command line, then use the File-Open Dialog to pick a screengrab/PNG, then edit it in ksnip. This is should be easier. What I want is to use Nautilus File manager, then select the "Open with other Application" context menu item to select ksnip, and the have ksnip open the file I picked with nautilus. Nautilus Context Menu, selecting a PNG:  "Select Application" Dialog:  How can I achieve this? There is a "View all Applications" Button, but after clicking, ksnip does NOT appear in this list of apps. "Find new applications" does not work either. Maybe this is a duplicate, but I think we did not have the combination yet (Hack the dialog and Snap App)  (Note to self: maybe Shutter is usable again. Development had stalled for a while, or it needed a lot of deprecated versions of gnome libs as dependencies) .


I have to read in a string from std::cin in my program.  The lines from cin are in the format of two numbers followed by a colon, another two numbers followed by a colon, and then a straight line. Then, the same string would be repeated. An example:  00:33:11|22:55:22  and then I would want two ints a and b to be: a = 3311 b = 225522  I'm trying to find the best way to extract the numbers from the first numbers before the straight line and store that into an int, and do the same for the second set of numbers.   I'm a little unfamiliar with c++, but I have thought about making a for loop, storing characters into a char array, and then using atoi on that array. However, I feel that this method is not the most elegant of approaches. Any suggestions to this problem?   thanks


I have a C++ structure  struct Line {   int date;   int time;   float open;   float high;   float low;   float close;   float sd;   float long_mo;   float short_mo; };   8 fields. I want to fill it using loop.   int fields_count=1; while (fields_count<=8) {   // get digit from outer sourse. I dont need help here.   // First iteration puts to 1 field, Second iteration puts to 2 field and so on up to last field of struct    fields_count++; }


Tried to install wireless driver and now terminal and update manager no longer work either

My PC specifications:   Dell Latitude D830.  Fresh install of Ubuntu 12.04 (64bit) dual boot with windows xp pro 6 days ago.  Chip ID is Broadcom BCM4311. PCI-ID is [14e4:4312] Last week I installed Ubuntu 12.04 (32bit) on two other old Dell laptops, an Inspiron 6000 and an Inspiron 9000, with absolutely no problems.  One dual boot and the other on its own. I am totally new to this, never installed an os before and having never even seen Ubuntu before last week...so simple answers please :)   This third install went very smoothly, though I had to do it hardwired to the internet, since it couldn't find the wireless:  wireless works perfectly in Windows.  When restarting after the OS install, the screen got stuck on the Ubuntu logo splash page with the 5 dots.  I pressed the button and then rebooted. I have tried all that I could find in this forum on fixes for shutdown or resart, none of them have worked.  The screen stays stuck on the Ubuntu with the 5 dots screen and I then push the button to complete the shut down.  The last fix I tried was from this  So I've left issue for now and trying to get the wireless working, with no success on the contrary.  I've just installed the bcmwl-kernel-source package from .  The wireless connection still didn't work, so I shut down and rebooted.  Now after rebooting, there is still no wireless connectivity. The wireless switch on the computer is on. There is still no wireless choices in the menu bar. I decided to run the update manager and it doesn't work anymore.  Throws a Not all updates can be installed error with a list of reasons. When I press close, I get another error, this time Software index is broken, its impossible to install or remove any software - again with suggestions.  I then went and found on the forum how to uninstall what I had just installed through the terminal, hoping to get back to where I started from, since both the update manager and the terminal were working before the install.  The terminal gives me the following result:  sudo apt-get remove bcmwl-kernel-source.   Message reads on the Terminal:   E:  Could not get lock /var/lib/dpkg/lock - open - (11:  resources temporarily unavailable) E:  Unable to lock the administration directory (var/lib/dpkg ), is another process using it?   Nothing is running in the background.  I'm rather exasperated since every move I make is bran new, and after spending days reading in the forum and trying what seems to work for others nothing does.  Before starting to try to fix the wireless today, everything in Ubuntu works beautifully, now if I can't do updates or use the Terminal, that's not so good.


What monitoring solution for servers, databases and web applications ? Nagios or Hyperic?

For the purpose of a startup, I have a loan for one physical dedicated server with several virtual machines inside it   For now there is mainly 2 VM on this server:  VM "tools", using ubuntu server 10.04 LTS   A source code repository using mercurial and hgserve A bunch of JAVA app for Atlasian for bug tracking, wiki... PostgreSQL as the Database for the tools Apache HTTPD as HTTPS front end.   VM "asterisk", using ubuntu server 10.04 LTS   with an asterisk server, functionnal, but more for testing as of now than anything.   But in the future we will have a "production" VM with ou JAVA application :   Apache HTTPD frontend  PostgreSQL database Tomcat webapp (maybe cluterised)   What I'am interrested into is a software that can monitor availability of services, KVM VM, applications and database so I can react in case of problem.  I have also another use case where I'd like to monitor the performance of the application (request, CPU, memory...) and gather usage statistics.  We have basically no money, and want a free tool, at least at first.   What would be easy and simple tool for the job ? I have heard of Nagios and Hyperic but I don't know them. So I don't know if they are suited for our needs.  EDIT :  The need is not only for server monitoring but also as a way to investigate actual application perfornance, responsiveness and if possible isolate bottlenecks.  From the links (not the same question as it seem more generic but quite informative) and the actual responses, Nagios + Munin should be a good fit. Problem is Nagios seems a little complex (I don't know for Munin). Will the Nagios/Munin combo will be able to gather detailled statistics and historical data for a java application (request/seconds, request latency, both with statistics by URL, hour, day, week... ?)  Are there other (better ?) alternatives ?


Prove that for all natural numbers $k$, $k^5-k$ is a multiple of $10$.  I found several answers for this here, but none of which would have considered seperately the cases $\pmod{2}$ and $\pmod{5}.$ Since any integer $n \equiv 0,1 \pmod{2}$ we have that $k^5-k \equiv0 \pmod{2}$ thus divisible by $2$. However, the case $k^5-k \equiv0 \pmod{5}$ seems to be a bit trickier. Any integer $n \equiv 0,1,2,3,4 \pmod{5}$, but is this of any help as it seemed to be in the case of $\pmod{2}$?


How to open several Terminal Tabs in different folders (working directories)?

I want one script to open several Tabs in different folders.  While searching I found  entry, but an exchange like seen below did open a Terminal with three tabs in my home folder. The error message showed:   Failed to parse arguments: Unknown option --execute=cd /some/thing/   The script looks like this:  #!/bin/sh gnome-terminal --tab --execute="cd /some/thing/" \           --tab --execute="cd /home/" \           --tab --execute="cd /home/" \ exit 0   A Variation with --working-directory="/some/thing/" did also not help. Can you see a mistake?


How to remove "Download Windows 10" icon on Windows 7 System Tray ("official adware")?

Microsoft has slipped adware prompting users to upgrade to Windows 10 into Windows Update, which . That counts as shady business in my book, more so because as far as I understand it's not free but "free for one year", but even if I'm mistaken, this thing is annoying:                                                                                "Download Windows 10"  It's an icon in the taskbar, which has a menu of four options related to the offer and no option for removing it. The Windows update in which it came is very deceptive too:            "Update for Windows 7", "Install this update to solve problems in Windows", etc.; clearly not labelled as what it is, I guess I'm glad it didn't also include a browser toolbar nor change my home page.  The file that runs this is, in my case, "C:\Windows\system32\GWX\GWX.exe". Should I nuke the whole folder? The contents of it are:                                                           Or should I just uninstall ? The description for it is so ambiguous I'm unsure if it's actually something that does more than just provide that icon.


PHP - Why do these emails only get sent to gmail accounts and not to others?

It seems only people with gmail accounts receives these emails:  function sendEmail($email, $hashid) {     $content = "
x
";     $fromName = "N";     $fromEmail = "n@n.se";      $to = $email;     $subject = 'y';     $message = $content;     $headers = "MIME-Version: 1.0" . "\r\n";     $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";     $headers .= 'From:  ' . $fromName . ' <' . $fromEmail .'>' . " \r\n" .             'Reply-To: '.  $fromEmail . "\r\n" .             'X-Mailer: PHP/' . phpversion();     return mail ( $to, $subject, $message, $headers ); }   Is something wrong with the headers?


Spring balance: what will be the reading?

There are two cases:   When the two forces say L (for left) and R (for right) are equal. F=L=R What will be the reading? I know the reading would be F but why? When the two forces are unequal that is L (not equal to) R What will be the reading? Well I have no clue;   Please help.


\clipbox of a \scalebox not working properly in xelatex

Using xelatex... when I apply a \clipbox upon a \scalebox of a box that uses the optional argument, the clip is not performed properly.  The problem goes away if:   using pdflatex,  the optional argument to the \scalebox is omitted, or the \clipbox is omitted.   Here is an unanswered 2014 question that perhaps describes the same problem: .  \documentclass{article} \usepackage{trimclip,graphicx} \begin{document} Works OK without scalebox opt.{} argument  \setbox0=\hbox{XXX}   \scalebox{1}{\copy0}% . Now clip it: \clipbox{0pt 0pt 10pt 0pt}{%   \scalebox{1}{\copy0}% }.     Breaks with scalebox opt.{} argument  \setbox0=\hbox{XXX}   \scalebox{1}[.5]{\copy0}% . Now clip it: \clipbox{0pt 0pt 10pt 0pt}{%   \scalebox{1}[.5]{\copy0}% }.    \end{document}   While I use the temporary \box0 for simplicity, the problem arises also if I use a permanent \savebox.  Package loading order has no effect.  Below, the top image is pdflatex, the bottom with xelatex.  Note the bottom-right of the bottom image, which shows an empty result for the clip.    NOTE: This question arose when Hiemanshu Sharma asked why my method at  did not work with xelatex.  I boiled it down to the above MWE.


How can I write a function that does nothing for a given length of time?

Here's what I tried (Python):  import time  def wait(seconds):     start_time = time.time()     while start_time + seconds <= time.time():         pass   But this just quits instantly.


Which is faster in Python: x**.5 or math.sqrt(x)?

I've been wondering this for some time. As the title say, which is faster, the actual function or simply raising to the half power?  UPDATE  This is not a matter of premature optimization. This is simply a question of how the underlying code actually works. What is the theory of how Python code works?  I sent Guido van Rossum an email cause I really wanted to know the differences in these methods.  My email:     There are at least 3 ways to do a square root in Python: math.sqrt, the   '**' operator and pow(x,.5).  I'm just curious as to the differences in   the implementation of each of these.  When it comes to efficiency which   is better?   His response:     pow and ** are equivalent; math.sqrt doesn't work for complex numbers,   and links to the C  sqrt() function. As to which one is   faster, I have no idea...


I have a JavaScript object. Is there a built-in or accepted best practice way to get the length of this object? const myObject = new Object(); myObject["firstname"] = "Gareth"; myObject["lastname"] = "Simpson"; myObject["age"] = 21;


Must mathematical entities necessarily exist?

Are mathematical entities necessarily existing objects? That is to say, it is impossible for e.g. the real numbers not to exist. Have any philosophers talked about this topic?


Is it possible to integrate Rhythmbox in the Ubuntu Mate sound menu similar to Ubuntu?


How much will a poor first semester affect my grad school chances?

I'm studying Computer Science with a double major in Math at a public university. I hope to attend a private school like Vanderbilt (Nashville, USA) to pursue an MS or PhD. My GPA is still above a 3.0, however:   I have received a U (unsatisfied, incorrectly submitted work) as a final grade in a single credit course that is part of an honors college program during my first semester in college. I also had one terrible score (D) in a 200 level maths course during the same semester.   Will these early blemishes on my transcript affect my chances of getting into graduate school?


How to clear the bash history when i close the terminal?

Using KDE Konsole as a bash terminal I would like to clear the history when I close the terminal (tab/application), note that I do need the bash history when Konsole is still open (to search it); I would like to have it cleared once the terminal is closed.  I often use the terminal for a long time and clear the history before I close the terminal, I am looking for a way to automate the clearing of the history.    I found a similar questions on how to clear the history or how to disable it like , however I found nothing helpful for my situation. The difference here is that i do need the history file while the terminal is running, setting unset HISTFILE disable the history file after that command is ran and does not clear the history file itself. Note that the history file is needed while the session is running but when it get closed it need to be cleared.  How can we clear the bash history when the terminal gets closed?


Problem:  Getting line-spacing to work with \fontsize. Regardless of what value I use in the second parameter, the line-spacing won't change.  Package:  \usepackage{mathptmx}   Code:  \chapter{Publications}  \newpage \thispagestyle{empty} \topskip0pt \vspace*{\fill} \noindent {\fontsize{50}{60}\selectfont Paper I} \\ \\ \\ {\fontsize{19}{60}\selectfont A long title of the paper here that breaks into three lines but regardless of what value I use, line-spacing does not change.\par} \\ \\ \vspace*{\fill}  \includepdf[pages=-]{Papers/campaigning.pdf}   Desired solution:  To get line-spacing for the subtitle to change.


What is the expected number of occurrences of a 9-mer in 500 random DNA strings, each of length 1000?

I have started learning bioinformatics. There are some matter of finding expected value. But I think I am very weak in calculating such types of things. As expected value is related to statistics, its explanation is skipped in bioinformatics. So, I am posting it here. Question: Suppose, I have 500 strings, each having length 1000. Now, I have to calculate the expected number of occurrences of a sub-string having length exactly 9. Notice that, the string contains only four letters A, T, G, C with same probability (each 0.25). Another thing to be noted: Overlapping strings should be counted. My Approach: The probability of existing a 9-length sub-string among all 9-length sub-strings = $ (0.25)^9 $ The number of occurrences of a 9-length sub-string in a string having length 1000 = $ (1000-9+1) * (0.25)^9 $ If the number of such string becomes 500, then the number of occurrences would be = $ 500 * (1000-9+1) * (0.25)^9 $ But I did wrong somewhere, may be in assumption or in calculation. Could you please guide me to get the actual solution? Source:  is a part of Bioinformatics course track in Coursera. Accuracy: Allowable error = 0.0001


prove $EO=OF$ is there an euclidean solution?

$PQ$ is a chord in a circle such that $PO=OQ$  The chords $AB,CD$ are passing throw $O$.  The chords $AD,BC$ are cutting $PQ$ at $E$ and $F$ reciprocally.  Need to prove: $EO=OF$.  If so i solved it in trigonometry but im asking if there is an euclidean solution. if so, i'd love to see! thanks.     EDIT: $O$ is not the center of the circle.


A part of an object is not visible in the camera view - how can I fix it?

After all i've done the works, but suddenly when im rendering the plane object in my works wont show up fully. And maybe the problem is in the camera perspective, or I dont know what happened. Plese anyone who knows tell me how to fixed it. Thank you.


How to delete programs with all components ( Full Delete Program ) So that, for example, you delete a program I Firefox by sudo apt-get --purge autoremove Firefox   But there are some additions are not deleted For example:  firefox-locale-en xul-ext-ubufox unity-scope-firefoxbookmark rhythmbox-mozilla


Bold name and year in bibliography don't work with TeXstudio

I would like the name and year in my bibliography to be bold. For this I used the following LaTeX code:  \usepackage[backend=bibtex, natbib=true, citestyle=numeric, style=numeric, sorting=nty]{biblatex}  \AtBeginBibliography{% \renewcommand*\mkbibnamefirst[1]{\mkbibbold{#1}} \renewcommand*\mkbibnamelast[1]{\mkbibbold{#1}} \renewcommand*\mkbibnameprefix[1]{\mkbibbold{#1}} \renewcommand*\mkbibnameaffix[1]{\mkbibbold{#1}} \DeclareFieldFormat{parens}{\mkbibbold{\mkbibparens{#1}}} \DeclareFieldFormat{date}{\mkbibbold{#1}} \DeclareFieldFormat{author}{\mkbibbold{#1}} } \DeclareNameAlias{sortname}{last-first} \DeclareNameAlias{default}{last-first}   I write my text on two computers and in both cases I use TeXstudio (with MikTeX). The problem is that on machines (A) the names and years are as desired bold and not on computer (B).  Why? How can I fix this?


let $ f_n :X \rightarrow R $ be sequence of continuous function on complete metric space $(X,d)$, which convergence pointwisely to $ f: X\rightarrow R  $ mean that $ f_n(x)\rightarrow f(x)$ $ \forall_x \in X$ I have to prove that set of continuity points is dense in $(X,d)$. I did it using Baire theorem, but I also have to prove that assumption of complete metric space is necessary. There is a hint that I should use $(Q,d_e)$ as a metric space to find a counterexample. So I started to think about a function which is uncontinuous in every point. I set $Q$ in a string  $q_{n}$ then take $f(q_{n})=1/n$ and as a function $f_{m}$ take any continuous function(I was thinking about linear, but how to create such?)  such that  $ f_{m}(q_{n})=1/n$ for  $n=1,2,...,m$ Then $f_{m}$ converges pointwisely to $f$. Any hints? Am I thinking correctly?


Calling dynamic function with dynamic number of parameters

I’m looking for a trick about this. I know how to call a dynamic, arbitrary function in JavaScript, passing specific parameters, something like this:  function mainfunc(func, par1, par2){     window[func](par1, par2); }  function calledfunc(par1, par2){     // Do stuff here }  mainfunc('calledfunc', 'hello', 'bye');   I know how to pass optional, unlimited parameters using the arguments collection inside mainfunc, but, I can’t figure how to send an arbitrary number of parameters to mainfunc to be sent to calledfunc dynamically; how can I accomplish something like this, but with any number of optional arguments (not using that ugly if–else)?  function mainfunc(func){     if(arguments.length == 3)         window[func](arguments[1], arguments[2]);     else if(arguments.length == 4)         window[func](arguments[1], arguments[2], arguments[3]);     else if(arguments.length == 5)         window[func](arguments[1], arguments[2], arguments[3], arguments[4]); }  function calledfunc1(par1, par2){     // Do stuff here }  function calledfunc2(par1, par2, par3){     // Do stuff here }  mainfunc('calledfunc1', 'hello', 'bye'); mainfunc('calledfunc2', 'hello', 'bye', 'goodbye');


Wine Errors in Ubuntu 12.10 driving me crazy

I have an Hp Pavilion dv7 64bit system, 6gb memory, Ubuntu 12.10 partitioned with Win7,AMD Phenom(tm) II N640 Dual-Core Processor × 2 , 650g HDD.  This is what i'm getting through Terminal, same type of warning when going through software center.  I've tried re-installing OS and it is MADDENING!  chris@ubuntu:~$ sudo apt-get install wine [sudo] password for chris:  Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  wine : Depends: wine1.4 but it is not going to be installed E: Unable to correct problems, you have held broken packages.  The following is the warning from Software Center: The following packages have unmet dependencies:  wine1.4: PreDepends: dpkg (>= 1.15.7.2~) but 1.16.7ubuntu6 is to be installed          Depends: libc6 (>= 2.14) but 2.15-0ubuntu20.1 is to be installed          Depends: wine1.4-amd64 (= 1.4.1-0ubuntu1) but 1.4.1-0ubuntu1 is to be installed          Depends: wine1.4-i386 (= 1.4.1-0ubuntu1) but it is not going to be installed


Getting a segmentation fault when manipulating an element of an arry with snprintf

I have the below code:  main() {     char *a[] = {"sleep", "5", NULL};     int x;     x = 15;     snprintf(a[1], 10, "%d", x);     printf("%s\n", a[1]);     execvp(a[0],a); }   The idea is turning the second element in the array (a[1]) into a character so I can manipulate it and run sleep 5, sleep 15, sleep 25 at will. The issue I'm having is snprintf, the program compiles fine but I'm getting a "Segmentation fault: core dumped" error every time.    Edit: The closest topic I've seen on this was:    But it doesn't cover the issue I'm having when trying to assign the value into an element of the array.


Is it "resource configuration", by any chance?


Let $p$ is an odd prime and $G$ is a group which has $2p$ elements. Show that there exists at least one element with order $p$.  I tried showing in 2 parts as $G$ is cyclic and not cyclic, but I couldn’t show it for not cyclic groups. I think I must do something different. Could you please help me in the easiest way becasue we have learnt only elemantry theorems and definitions?


How to iterate through a json response and create objects

I'm learning Python and I'm messing around with API calls and Json responses. I want to turn the response into objects. My approach is to iterate through the json response using nested loops and for each json object create a python object. The json response contains a number of families, and each family has a number of family members. The problem is that when I turn them into python objects, each family gets ALL the members from ALL the families. I guess it has something to do with the scopes in the loops, but I can't figure out the right way to approach this. All help would be appreciated: The json response: families_from_api = """{     "success":true,"data":[         {             "family":"Anderson","members":[                 {"name":"Roger","age":36},                 {"name":"Alice","age":"24"},                 {"name":"Sammy","age":12}             ]         },         {             "family":"Lindquist","members":[                 {"name":"Martin","age":52},                 {"name":"Lukas","age":"46"},                 {"name":"Anne","age":20}             ]         }     ] } """  # Pythonize the response families_info = json.loads(families_from_api) families = families_info['data']  The classes: class Member:     name = ""     age = 0  class Family:     name = ""     members = []  Iterating through the response and creating objects: # Array to store all families all_families = []  # Iterate through the response and turn into objects for family in families:     f = Family()     f.name = family['family']      for member in family['members']:         m = Member()         m.name = member['name']         m.age = member['age']         f.members.append(m)      # Append the created family object to an array     all_families.append(f)  Printing my objects: # Iterate through objects and print families and members for family in all_families:     print("Family name:", family.name, "has these members:")     for member in family.members:         print("Name:", member.name, "Age", member.age)  The result: Family name: Anderson has these members: Name: Roger Age 36 Name: Alice Age 24 Name: Sammy Age 12 Name: Martin Age 52 Name: Lukas Age 46 Name: Anne Age 20 Family name: Lindquist has these members: Name: Roger Age 36 Name: Alice Age 24 Name: Sammy Age 12 Name: Martin Age 52 Name: Lukas Age 46 Name: Anne Age 20


How to step down voltage but not current

I have a 9 volt, 2.5 amp battery (5 9volts connected in parallel). I would like to step the voltage of the battery down to 6 volts while keeping the same current. How might I do this?


I have a piece of code in excel that modifies an embedded word document (displayed as icon) and saves it to a path. I have to convert it to late binding because of compatibility issues. How do i do it? What do I have to change? here is part of my code, as an example  Function Sport()  Dim wd As Word.Application Dim doc As Word.Document  Dim ole As OLEObject Dim EmbededFile As String  Dim ws As Worksheet Set ws = ThisWorkbook.Worksheets("Sheet with the embedded file")  ' Change to suit your needs, or build with code EmbededFile = ThisWorkbook.path & "\Stuff.doc"  Set ole = ws.OLEObjects("Object") ole.Activate 'ole.Verb Verb:=xlOpen Set wd = ole.Object.Application With wd.ActiveDocument     .SaveAs EmbededFile, Word.wdFormatDocumentDefault     .Close End With Set doc = wd.Documents.Open(EmbededFile)  '' do stuff   wd.Activate doc.Close wd.Quit  Sport = 3 End Function   thanks in advance for the help


I have a Canon 5D Mark iii and shoot RAW.  I'm currently using a Sandisk Ultra 32 GB SDHC Class 10 30MB/s (on Amazon , for reference).  Sometimes, photos get corrupted and I'm not sure where this is coming from..  Is it the camera, the card, the copy process, Windows or my computer?  I'm thinking it's either the card or the copy process, but I'm not sure. Sometimes re-copying works, sometimes it doesn't..  I'm at a loss..  is this happening to anyone else?  Here are how the photos appear in Lightroom:


Exhibiting an isomorphism between two finite fields

So I want to find the isomorphism $\phi$ that takes $F = \mathbb{Z}_3/\langle x^3 - x - 1\rangle$ to $E = \mathbb{Z}_3/\langle x^3 - x + 1\rangle$.  I understand that these are both finite fields of size 3^3 since $x^3 - x - 1$ and $x^3 - x + 1$ are both irreducible polynomials of degree 3.  I feel like a good start would be to take the subfield $\mathbb{Z_3}$ in $F$ to the subfield $\mathbb{Z_3}$ in $E$.  Or maybe find the right generator of each multiplicative group of size $3^3-1$ of each field and send those to each other.


Discovered - currently not indexed My blog posts aren't indexing from 1 months. from the last 1 months, I have posted 9 posts articles. But only 1 is indexed by google But for other posts, the Webmaster is saying Discovered - currently not indexed. All the Not indexed posts are of 1000-2100 words & all are pure un-scraped content, written by myself... The indexed post is of 700 words...  My Robots.txt file is as follows User-agent: Mediapartners-Google Disallow:  User-agent: * Disallow: /search Allow: /  Sitemap: https://www.thetechreview.xyz/atom.xml?redirect=false&start-index=1&max-results=500  My sitemap  Here is the twist, I had tried everything but nothing helped. But...  I think this has some connection with posts that aren't indexed. Because of the last posts, I published on 24 March and from 26 march, this not indexing series started. I also think that this happened because of google's new update 'core web vitals'. Now, tell me what is wrong with me...  Please guide me ...


How to make transparent background in blender 2.8 with HDRI on?  After selecting "Film" - "Alpha" -> "Transparent" I still have my HDRI on the rendered image  Please help


Can I cancel my Apple ID? I  have 3 accounts and I only need one.


While replacing a mainboard in a desktop machine (see ), I did something stupid. I inserted the CPU into the new mainboard, but didn't check for the right position. When it didn't immediately lock in, I pressed slightly before realizing what was wrong. The result was a number of bent pins.  I tried every tutorial that popped up when Googling "CPU bent pins" - using credit cards, sewing needles, and a hunting knife to get the pins back into position - but to no avail: For every pin I get straightened out, two others are bent.   I have no problem getting individual pins straightened out, but my many attempts have led to many pins being slightly askew - enough for the CPU not to fit into the socket (An AMD X3 one). Maybe I just lack the motoric finesse. What I would need is some sort of a grid to fix all pins at once.   It's a €50 processor so the loss is not catastrophic.  But I thought before I go buy a new one, I thought I'd check here whether anybody knows some magic trick, or a cheap generally-available tool to fix this.       Update: it turned out that the CPU was beyond salvaging: A pin broke off in the end, which made me give up. I bought a new CPU. Still, thanks a lot for the great input, and I think this is a useful reference for future generations.         This question was a .   Read the  for more details or  yourself


Proving that the unit square $\{(x,y) \in \mathbb{R^{2}} | 0<x,y<1\}$ is open in the metric topology on $\mathbb{R^{2}}$  What I know so far is that for a Metric space with (X,d) where X is a set and d is the metric, the following properties must hold:   i) $d(x,y) = 0$   ii) $d(x,y) = d(y,x)$  iii) $d(x,z)\leq d(x,y) + d(y,x)$ (which is the triangular inequality)   I know that the metric topology is  the topology on X generated by the basis $\{B_{\epsilon,d}(x): \epsilon > 0, x \in X\}$  I know what all these things mean distinctly but I don't know how I would be able to start a proof like this. Can someone please help?


What is the meaning of non-integer powers of physical units in electrodynamics?

In the  the unit of the charge is the statcoulomb (statC), defined as $$ \mathrm{statC =dyn^{1/2} cm= cm^{3/2} g^{1/2} s^{−1}}$$ to be consistent with the fact that the Coulomb force is measured in $\mathrm{g\,cm\, s^{-2}}$ without defining new fundamental units (the Ampère). So, in this non-standard units system is possible to have rational powers of physical units, but do they have a physical meaning on their own? Or is just a way to make the units consistent?     is related, but they are talking about different units in fractals and phase transitions, while here we are talking about electrodynamics.