I notice in , that single dash - is used to signal the end of option arguments.   Is it correct that double dashes -- can also signal the end of option arguments?  What are their differences then? When to use which? Are they both GNU conventions? Thanks.

I was wondering where I can find and learn some general idea about the command line interface used in Linux and bash? As to now, I have found pieces of such information only from experience, such as   For cat, without any further arguments, it accepts stdin input. But you may explicitly specify STDIN using the special name -, and both ways are equivalent. cat can also accept a filename as cat filename. So is - meant to fill in an argument supposed for filename? Is this usage of - also common for other commands? In chardet <<<somestring, <<< means a string  is used as stdin, the same as echo somestring | chardet. Is this usage of <<< also common? In cut -c 1-3,20,25- employees, is the way 1-3,20,25- to specify a range of numbers for an argument also common in other commands?  Last but not least,  are these general ideas common to just within bash, or within Linux and Unix, or within software using getopt as command line parser?


Will my skills become stronger when I make them Legendary?

I recently got my Blacksmithing skill to 100. Now in the skills menu I can press space to make it Legendary, which will put it back to a skill level of 15 and reset my perks.  I am wondering: What benefit is there from making a skill Legendary apart from being able to level up the skill more thus having infinite levels?


Looking for some help here. I'm trying to make this method work. Whenever I run the method, it throws IllegalArgumentException even if I do type in A,B,C or D. I am using an inputReader class. Here is the code for my DriverExam class. Please let me know where I am going wrong. I'd like it so the only valid answers are a,b,c,or d. I have to use a while loop and everything I've tried won't help me match the driverAnswers.   public class DriverExam {     // instance variables     public static final String[] ANSWERS = {"B","D","A","A","C","A","B","A","C","D","B","C","D","A","D","C","C","B","D","A"};      private String [] driverAnswers;     private InputReader inputReader;      public DriverExam(){         driverAnswers = new String[20];         inputReader = new InputReader();     }      public void promptStudentAnswers(){         int index = 0;          while(index < driverAnswers.length){             System.out.println("enter answer");             String driverAnswers = inputReader.readString();             if(driverAnswers != ANSWERS[index]){                 throw new IllegalArgumentException(" answers can only be A,B,C or D");             } else{                  index++;             }         }     } }

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


Find all real number $x$ satisfying $10^x+11^x+12^x = 13^x+14^x$       My Work Dividing by $13^x$ we get  $$\left( \frac{10}{13} \right)^x +  \left( \frac{11}{13} \right)^x +  \left( \frac{12}{13} \right)^x = 1 + \left( \frac{14}{13} \right)^x$$ The LHS is a decreasing function of $x$ and the RHS is an increasing function of $x$. So there is only one intersection in their graph. I am looking for a formal way to find the root. I know that $x=2$ works. But how to formally find this root?

Find all real numbers $x$ for which $$10^x+11^x+12^x = 13^x+14^x.$$   I thought about taking the logarithm of both sides, but didn't see how that would help. How can we make the equation simpler?


While studying, I found a formula that found the number of ways to select k non-consecutive elements from n consecutive terms, not necessarily the first n consecutive terms, but any n consecutive terms.  The formula was:   Number of Ways = (n-k+1) C (k) The C in the formula stood for combinations. The book gave this formula but no proof for it. I tried to search it up but there were no detailed explanations of the proof. I'd be glad of assistance if anyone could show me how to prove this formula.

During self-study, I ran across the question of how many ways six numbers can be chosen from the numbers 1 - 49 without replacement, stipulating that no two of the numbers be consecutive.  I can obtain a simple lower bound by saying that, in the worst-case scenario, when you choose a particular number, there are now three numbers that cannot be chosen next.  For example, if I first pick 17, then I can't choose 16, 17, or 18 for the remaining choices.  This gives me the lower bound  $$\frac{49*46*43*40*37*34}{6!} = 6,773,770 \frac{8}{9}$$  This is about 48% of ${}_{49}C_6 =  13,983,816$.  The real answer must be bigger (and an integer).  I haven't found a way to calculate it, though.  The original problem asked to show that the probability of having non-consecutive integers when you choose six is greater than 50%, so if the problem is complicated to count exactly, better approximations that show the answer is above 50% would also be appreciated.   Of course, I can use a computer to do the counting, but I'm interested in learning what methods I'm missing.


I have three time series data $(X_1, X_2, X_3)$ that are correlated with $Y$ as follows: $0.95, 0.75, 0.65$. I want to make a weighted mean of the three time series based on their correlation with $Y$ to make $X_4$. In effect, $X_4$ is the ensemble mean but weighted according to their correlation with $Y$. To make a simple mean is counter-intuitive to the fact that $X_1$ has the highest correlation with $Y$ and its effects will be diluted by $X_3$.

So I've been learning how to forecast over this summer and I've been using Rob Hyndman's book Forecasting: principles and practice.  I've been using R, but my questions aren't about code.  For the data I've been using, I've found that an average forecast of multiple models has produced higher accuracy levels that any sole model by itself.    Recently I read an blog that talked about averaging forecasting methods and assigning weights to them.  So in my case, lets say I assign 11 different models to my set of data (Arima, ETS, Holt Winters, naive, snaive, and so forth) and I want to average a few of these to get a forecast.  Has anyone had any experience with this or can point me to an article that might give some insight on the best way of going about this?  As of right now, I'm using cross validation and Mean Absolute Error to figure out which models perform best and which perform worst. I can even use this to identify the top k # of models.  I guess my questions are  1) How many models would you suggest selecting? (2,3,4,5,6, etc)  2) Any ideas on weights?  (50% to the best, 25% to the second best, 15% third best, 10% to the 4th best, etc)  3) Are any of these forecasting models redundant and shouldn't be included?  (Arima, snaive, naive, HW's "additive", ETS, HoltWinters exponential smoothing, HoltWinters smoothing w/ trend, HoltWinters w/ trend/seasonality, multiple regression)


After some research on google and stackoverflow I came to the conclusion to ask this question myself:  Is there a more or less portable way to get a list of all files from a directory?   I want to support a shortcut in my application where you can give it a directory from the command line and it traverses it and its subdirectories automatically. I am free to use C and C++ but don't want to depand on any thrid-party libraries if possible.  Thanks in advance!  Edit:  Regarding the duplicate-question: I already found that one and tried it but the dirent.h wasn't working for me. That's why I wrote this. Also regarding C/C++: my application is currently written in pure C and I would favor a C-only solution but if a better C++ solution is suggested it would also be acceptable.

How can I determine the list of files in a directory from inside my C or C++ code?  I'm not allowed to execute the ls command and parse the results from within my program.


When I tried to run the blender it shows this I don't know how to solve this as I am new to coding. Anybody help me with that??

I can't execute newest Blender 2.80, it says that I need a graphics card that supports OpenGL 3.3 or higher ERROR: A graphics card and driver with support for OpenGL 3.3 or higher is required  Processor: AMD A6-3670 APU with Radeon(tm) HD Graphics, 2695MHz BIOS Version: HPQOEM - 1072009 Dedicated GPU:   This is a very old PC, but when I search online it seems that theoretically Blender 2.8 should run since my openGL is 4.4


Attempting to install steam and optimized drivers from Oibaf PPA, I was faced with a loop at login, where entering my credentials would briefly display a command-line and then return the login screen with fields emptied.

My Ubuntu is stuck in a login loop when trying to enter my desktop. When I login, the screen gets black and soon after that the login screen comes back.   I've read that the problem might be caused by an error depending on the graphics, here's my graphics card: ATI Radeon 7670M


What's the number of shortest paths to (n,n) from (0,0) if you can only go up and right? I wrote the tree for n=1, n=2 and got 2 and 6, but I cant find a generic pattern? Also, I have to find the number of shortest paths to (n-1,n+1), and Im not sure how to approach that either

How do you find the number of the shortest distances between two points on a grid where you can only move one unit up, down, left, or right? Is there a formula for this?  Eg. The shortest path between $(0,0)$ and $(1,1)$ can be $(0,0)\to (0,1)\to (1,1)$ or $(0,0)\to(1,0)\to(1,1)$, so there are two shortest paths.


I have some infrastructure code that can run under regular AppDomain and in some other case under the ASP.Net AppDomain.  The behavior of the code should be different for these two cases.  How can I identify under which type of AppDomain I am running without depending on the System.Web namespace assemblies since this is infrastructure code?  For example:  public static string BasePath {     get     {         var isAspNetAppDomain = ...         return isAspNetAppDomain              ? Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "bin")              : AppDomain.CurrentDomain.BaseDirectory;     } }

I have an instance of a general purpose class that will be executed both under ASP.NET and a stand alone program. This code is sensative to the process where it is being run - that is, there are certin methods that should not called if running under ASP.NET. How do you determine if the code is executing in an ASP.NET process?  The solution I am currently using is answered below.    I wish someone would add a comment as to why this question has gotten downvoted and/or propose a better way to ask it! I can only assume at least some folks have looked at the question and said "what an idiot, ASP.NET code is .NET code".


I am working on a project for a machine learning class wherein I extract features from a topographic raster map and then classify the traversability of the terrain. One of the features I need to extract is slope. My initial thought was that an approximation of slope at any given point could be extracted from a map by calculating the distance between contour lines. However it seems I took for granted the complexity of extracting the contour lines.  In attempting to solve this problem I found myself trying to learn a number of GIS tools. However I still have not been successful which is why I am here. I have installed gdal and used gdal_contour to generate what I believe to be a DEM. From there I loaded it into qgis along with the original raster map. From this I see that when gdal created the DEM it used only one of the two colors that designate contour lines. Worse yet it used the less frequent color so the resulting contour lines are highly segmented.  This leaves me with a couple of questions. The first is whether it is possible to designate the colors gdal uses to extract contour lines and generate the DEM. The second is whether there is a simpler method for extracting the desired data.

I'm working with QGIS, v. 2.0.1. I have several soil types. They are (amongst others) described with slope indications. I already calculated the slope from the DTM in degrees, but as description of the soil types is in percentage, I need to calculate the slope in percentage. I tried two things:  I tried the analysis tool from the raster section, but it didn't work. The result was just black with values from 0 to 0. The same happened when I tried to calculate the percentage in the raster calculator but the result was the same.  Maybe I need to say that the terrain is pretty plain. What else can I do? Update I tried the raster calculator and did what @radouxju suggested. It gave me a black picture with values from 1756.64 to 1756.64. But as soon as I click in the picture the values are "normal", say 5.88 or 13.224 or something like that. The same happens when I try the gdaldem tool but with values from 0 to 0. I also tried to change the contrast enhancement (like stretch to min/max) but it didn't change anything. Update 2 I just  that maybe I have to set the scale to 111120  but that doesn't work neither (result: black, values 0-0).


I'm getting a message:  kvm:disabled by bios   after upgrading my kernel to 3.8.x. I've never installed the KVM package. Neither I can enable virtualization from my BIOS, because of a BIOS bug. I just want to get rid of this weird message. Tried removing any kernel module using modprobe but it didn't work.

I read a text about kernel stable and I updated my kernel to 3.6.1. And I solved problems like WIFI and resolution but I cant solve kvm disabled by BIOS. Before update I didn't see this KVM : Disabled by bios Thanks for helps


Can someone put  in laymens terms? I understand that photon spin affects an entangled photon across any distance, what I don't understand is how spin works, does a photon only have "spin after its measured", and if so, doesn't this have massive communication applications? I haven't taken physics yet, so keep that in mind.

Bearing in mind I am a layman - with no background in physics - please could someone explain what the "big deal" is with quantum entanglement?  I used to think I understood it - that 2 particles, say a light-year apart spatially, could affect each other physically, instantly.  Here I would understand the "big deal".  On further reading I've come to understand (maybe incorrectly) that the spatially separated particles may not affect each other, but in knowing one's properties you can infer the other's.  If that it the case, I don't see what the big deal is... 2 things have some properties set in correlation to each other at the point of entanglement, they are separated, measured, and found to have these properties...?  What am I missing? Is it that the particles properties are in an "un-set" state, and only when measured do they get set?  (i.e. the wave-function collapses).  If this is true - why do we think this instead of the more intuitive thought that the properties were set at an earlier time?


If Python does not have a ternary conditional operator, is it possible to simulate one using other language constructs?


I'm not finding Georeferencer on QGIS3. In version QGIS2 it was found under Raster > Georeferencer > Georeferencer (the only option available).  Forgot to say I'm on a Mac using the  version. This led to @sys49152 showing that Georeferencer is present on at least one other system.  I've, of course, looked at all the options under the Raster menu and nothing reads like Georeferencer not looks like the light hash icon shown in the plugins.  I don't know how to contact the great person creating the macOS installer.      This is close enough to being a duplicate, that I'll plan on marking it so. This post was macOS, but turns out the issue is probably on other platforms. There seems to be a bug the Plugin Manager for displaying and checking/unchecking.  It's a bit confusing that you can't "uninstall" Georeferencer which I think I took to mean that it was installed and operational. I think there is a semantic/logic issue here. Does install mean that you've downloaded the plugin in or that it's installed, that is, ready for use? That on top of the display bug.

I just upgraded to QGIS 3.0 (OS X as well on Windows 10) and can not find out how to do some georeferencing. I am told by the software, that GDAL georeferencing is still installed and that I could not remove it, and that it should be in the category "raster". But I can not find it there, also not in other parts of the menu.    new profile created, but the same issue...:


#include<iostream> using namespace std; int main(void) {     char name[5];     cout << "Name: ";     cin.getline(name, 20);     cout << name; }   Output:  Name: HelloWorld HelloWorld   Shouldn't this give an error or something?  Also when I write an even longer string,   Name: HelloWorld Goodbye HelloWorld Goodbye   cmd exits with an error.  How is this possible?  Compiler: G++ (GCC 7), Nuwen OS: Windows 10

I have heard about a buffer overflow and I would like to know how to cause one.  Can someone show me a small buffer overflow example? New(And what they are used for?)


First of all, stdio module is just used to call stdio.write() function that is exactly same as print() function in python. What makes me dizzy in understanding this code is this part. "while v > 0:" For my short point of view, v value never drops down below zero. So for me it looks infinite loop that doesn't stop. v will be halved in sequence. but it never go under zero for my opinion. So, i thought if i give 5 as a input value to this program, than this program would behave and yield the result like "1010000000..." but this program drives right answer "101" which is right binary code for decimal number 5. What am i missing ? import sys import stdio  n = int(sys.argv[1])  v = 1 while v <= n // 2:     v *= 2  print(v)   while v > 0:     if n < v:         stdio.write(0)     else:         stdio.write(1)         n -= v     v //= 2 stdio.writeln()

Is there a benefit to using one over the other? In Python 2, they both seem to return the same results:  >>> 6/3 2 >>> 6//3 2


In math mode, I would like to create this letter (joint picture)    (it's a omega with a bar very close to it)

I know what my symbol or character looks like, but I don't know what the command is or which math alphabet it came from. How do I go about finding this out?


I'm not entirely sure this is the right place, but here goes.  On an Android One device (Xiaomi Mi A1) with Android 8.1 I do not receive notifications. They are enabled in app settings, in system as well. When I log in there are new in-SE notifications in the form of a red number in upper right hand corner.  My best guess is that this is connected to more aggressive background optimizations in newer Android versions. For reference I receive Facebook Messenger messages properly and sleep tracking in Sleep as Android works as well.

I have app version 1.0.95 beta and android os 8.0.0. My new phone is Samsung galaxy note 8, and the stack exchange app was installed automatically when I set the phone up (it's a warranty replacement). Notifications are turned on in the app. For one comment on one of my posts there was an indicator on the icon on my home screen for the app that I received it, but no push notification. For the comment on my answer that was posted yesterday there was no notification whatsoever except by email that I received today.


My workstation is running Linux Centos7 is part of a local network. Every computer in this local network is running Linux Centos7 as well (the same build).  Every time I ssh into a server, I need to enter my password and the login information. I would like to ssh without the need to do that every time. Any suggestions?

I have two computers. From the first I created the account admin1 with password admin1. Then I logged in as a root user and used the ssh-keygen -t rsa command. I did not give a password and hit Enter three times.    In the next step I typed ssh root@remoteuser's ip. Then I logged out and tried to connect to the second computerm but it asked for the password again...  Next, I used the commands:  #useradd admin1 #passwd admin1 #ssh-keygen -t rsa #ssh root@remoteuser's ip   Why does it ask for the password again?


In python, staticmethods are "just functions", and I can refer to them in two different ways:  >>> class A: ...     @staticmethod ...     def f(): ...         pass ...  >>> a=A() >>> A.f <function A.f at 0x7f20f8cd3f28> >>> a.f <function A.f at 0x7f20f8cd3f28> >>> a.f is A.f True   Both a.f and A.f are names that refer to the same object, which happens to be "just a function". Great.  Now, say I have a classmethod:  >>> class B: ...     @classmethod ...     def f(cls): ...         pass ...  >>> b=B() >>> b.f is B.f False   I know that b.f and B.f are not functions: they're bound mothods. This means that the cls argument is implicit, and is always equal to B. Because of this, I would understand that if B2 is a subclass of B, B2().f is B().f would be false, because they're bound methods with different cls arguments. But I don't understand why B().f is B.f yields False. Shouldn't they be the same object, just like A().f and A.f?  EDIT: This question is not the same as "". I know the difference between staticmethod and classmethod. I want to know one specific thing, which is not addressed in the "umbrella" question linked.

What is the difference between a function decorated with  and one decorated with ?


Is it possible to create a snapshot (just as VirtualBox does) of a real Windows system as of the state this very moment?  If I hibernate, RAM at the moment is dumped to the hard disk. Is it possible to dump this on demand, continuing the system usage?  One idea would be creating the hibernation files without actually shutting down the system. Can they be generated without actual hibernation?   Potential usage: saving in-progress operation which can't be saved the usual way.

Is there a way to create a snapshot of a Windows 7 system?  My goal is to be able to save the current state of my Windows 7 OS, on external storage, and be able to restore it on the same hardware in the future. Much like a snapshot on a virtual machine.   One solution would be to install two hard drives in RAID 1, then take one of them out an store it. Is there an easier solution?


I came across this code recently.  It produces strange results (lots of random digits after about the 18th digit.)  I tried to find information on the limits to sprintf but could not find it.  I am trying to figure out if the answer is actually correct or just garbage.  When passed 0.025 (as a double) it prints out:  0.025000000000000001387778780781445675529539585113525390625  #define MAX_NUM_STR_LEN 128 void File_WriteNumber(File *fp, double value) {     char numbuf[MAX_NUM_STR_LEN];     int sz = sprintf(numbuf, "%.100g", value);     fwrite (numbuf , sizeof(char), sz, fp); }

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


EDIT:  How can we leave all the checkboxes checked after I submit and it comes back at the same page ? When I submit, they are "reset" :/  So here is my form code:  <form action="" method="post" id="filtre_form">
Filtre

Colonne à Afficher

                                                      <input type="checkbox" value="model" name="checkbox[]" id="Modele"> Modèle

                                                      <input type="checkbox" value="date_envoie" name="checkbox[]" id="Date"> Date envoi

                                                      <input type="checkbox" value="distributeur" name="checkbox[]" id="Distributeur"> Distributeur

I have an HTML page with multiple checkboxes.  I need one more checkbox by the name "select all". When I select this checkbox all checkboxes in the HTML page must be selected. How can I do this?


\documentclass[]{myfriggeri-cv} % Add 'print' as an option into the square bracket to remove colors from this template for printing \usepackage{unicode-math} \usepackage{fontawesome}  \definecolor{light-gray}{gray}{0.55} \definecolor{skype}{HTML}{12A5F4} \definecolor{html5}{HTML}{e34c26} \definecolor{php}{HTML}{6c7eb7} \definecolor{db}{HTML}{FF9900} \definecolor{linkedin}{HTML}{1683BB} %\addbibresource{bibliography.bib} % Specify the bibliography file to include publications  \begin{document} \newfontfamily{\FA}{FontAwesome} \header{First Name}{Last Name}{Name of Profession} % Your name and current job title/field  %---------------------------------------------------------------------------------------- %   SIDEBAR SECTION %----------------------------------------------------------------------------------------  \begin{aside} % In the aside, each new line forces a line break \section{personal info} \emph{D.O.B} \emph{Nationality} Pakistani \emph{Marital status} \section{{\FA \faHome}} ~ \section{\faPhone} %+0 (000) 111 1112 ~ \section{\faEnvelope} {abcd@outlook.com} %\href{http://www.smith.com}{http://www.smith.com} %\href{http://facebook.com/johnsmith}{fb://jsmith} \section{languages} \emph{proficient} English \emph{mother tongue}  Urdu \section{computer literacy} {\color{red} $\varheartsuit$} MS-Office \end{aside}  %---------------------------------------------------------------------------------------- %   Objective SECTION %---------------------------------------------------------------------------------------- \section{objective}  %---------------------------------------------------------------------------------------- %   WORK EXPERIENCE SECTION %----------------------------------------------------------------------------------------  \section{experience}  \begin{entrylist} %------------------------------------------------ \entry {2013 - Now} {Name od Employer} {City, Country} {\emph{Job Responsibility} \\ \begin{itemize} \item \item \item \end{itemize}} \end{entrylist} %------------------------------------------------ %---------------------------------------------------------------------------------------- %   EDUCATION SECTION %----------------------------------------------------------------------------------------  \section{education}  \begin{entrylist} %------------------------------------------------ \entry {2011} {Masters {\normalfont in Business Administration}} {Name of University, City} {Specialization in Supply Chain Management} %------------------------------------------------ \entry {2008} {Bachelors {\normalfont in Business Administration}} {Name of University, City} {Specialization in Management}  %------------------------------------------------ \end{entrylist}  %---------------------------------------------------------------------------------------- %   AWARDS SECTION %----------------------------------------------------------------------------------------  \section{additional skills} \section{references}  %   %----------------------------------------------------------------------------------------  %  COMMUNICATION SKILLS SECTION  %----------------------------------------------------------------------------------------   \section{communication skills}  %%---------------------------------------------------------------------------------------- %%  INTERESTS SECTION %%---------------------------------------------------------------------------------------- % \section{interests}    % %\textbf{professional:} data analysis, company profiling, risk analysis, economics, web design, web app creation, software design, marketing \textbf{personal:} piano, chess, cooking, dancing, running % %%---------------------------------------------------------------------------------------- %%  PUBLICATIONS SECTION %%----------------------------------------------------------------------------------------  %%----------------------------------------------------------------------------------------  \end{document}

Want to add the different icons in Friggeri Resume like email, phone, mobile, skype etc.  \documentclass[]{myfriggeri-cv} \addbibresource{bibliography.bib}  \begin{document} \header{friggeri}{friggeri}    {social network analyst}   % In the aside, each new line forces a line break \begin{aside} \section{about}  Street  City  Country  ~ \href{mailto:friggeri@gmail.com}{friggeri@gmail.com} \href{http://friggeri.net}{http://friggeri.net} \href{http://facebook.com/friggeri}{fb://friggeri} \section{languages}  english  Germans  \& French \section{programming}  {\color{red} $\varheartsuit$} \LaTeX  (MATLAB)   C, C++  %CSS3 \& HTML5 \end{aside}  \section{objective}  \section{interests}  complex networks, social networks, community detection, community structure, overlapping communities, information diffusion, viral marketing, social inference, recommendation, data mining  \section{education}  \begin{entrylist} \entry {since 2009} {Ph.D. {\normalfont candidate in Computer Science}} {DNET/INRIA, LIP/Ã‰NS de Lyon} {\emph{A Quantified Theory of Social Cohesion.}} \entry {2007-2008} {Master in  Scientific Computing} {DNET/INRIA, LIP/Ã‰NS de Lyon} {Majoring in complex networks\\ Specialization in data mining} \entry {2003â€“2006} {Classes PrÃ©paratoires aux Grandes Ã‰coles} {LycÃ©e FÃ©nelon, LycÃ©e Louis le Grand, Paris} {Preparation for national competitive entrance exams to leading French ``grandes   Ã©coles'', specializing in mathematics and physics.} \entry {2003} {French BaccalaurÃ©at S. with honors} {LycÃ©e Louis le Grand, Paris} {Specialization in mathematics and physics} \end{entrylist}  \section{experience}  \begin{entrylist} \entry {02â€“07 2009} {LIP6/CNRS, Paris} {Research Internship.} {\emph{Visualization of complex networks.}} \entry {06â€“08 2008} {ISCPIF/CNRS, Paris} {Research Internship.} {\emph{Diffusion in the Blogosphere. Happy Flu.}} \entry {06â€“08 2007} {LIP6/CNRS, Paris} {Research Internship.} {\emph{Kernels in real world networks.}} \entry {07â€“08 2005} {\href{http://www.kelkoo.com}{Kelkoo.com}} {Summer job.} {\emph{Creation of a keyword generator for Google Adwords.}} \entry {07â€“08 2004} {\href{http://www.monsieurprix.com}{MonsieurPrix.com}} {Summer job.} {\emph{Development of an e-commerce product indexation spider.}} \end{entrylist}  \section{applications}  \begin{entrylist} \entry {2012} {Who did I forget ?} {\href{http://whodidiforget.com}{whodidiforget.com}} {Guest list recommendation for Facebook events based on friends already attending the event.} \entry {2011} {Fellows} {\href{http://fellows-exp.com}{fellows-exp.com}} {Automatic community detection among Facebook Friends in order to validate the     \emph{cohesion} measure, creation of friend lists.} \entry {2008} {Happy Flu} {\href{http://happyflu.com}{happyflu.com}} {Experiment aimed to measure viral spreading of content across the blogosphere.} \end{entrylist}  \section{publications} \section{hobbies} \section{reference} \section{information}  \printbibsection{article}{article in peer-reviewed journal} \begin{refsection} \nocite{*} \printbibliography[sorting=chronological, type=inproceedings, title={international peer-reviewed conferences/proceedings}, notkeyword={france}, heading=subbibliography] \end{refsection} \begin{refsection} \nocite{*} \printbibliography[sorting=chronological, type=inproceedings, title={local peer-reviewed conferences/proceedings}, keyword={france}, heading=subbibliography] \end{refsection} \printbibsection{misc}{other publications} \printbibsection{report}{research reports}  \end{document}


I'm adding click events to li tags in my html. The refresh function I attach to it works fine, just as adding the events. Although the events are all the same..  HTML:
css

images

js
   JS:  function addEvent(){     var dirLinks = document.getElementsByClassName('folder');     for(i=0; i< dirLinks.length; i++) {         var tarDir = dirLinks[i].id;         alert(tarDir);         dirLinks[i].addEventListener('click', function(){refresh('file_manager', 'file-manager.php?tarDir='+tarDir);}, false);     } }   I want each li tag to click through to a dir that's equal to it's ID. But all the events let me click through to the last found id..(JS) While the alert shows three different ID's..(css, images & js)  What am I doing wrong here? Can't figure it out.

How would you explain JavaScript closures to someone with a knowledge of the concepts they consist of (for example functions, variables and the like), but does not understand closures themselves?  I have seen  given on Wikipedia, but unfortunately it did not help.


Recently my parents and I applied for a UK general visitor visa. My father's visa was rejected due to an influx of funds in his account. Furthermore, my mother’s application was also subsequently rejected as she was funded by my father for the trip.   With regards to my application. I was funding my own trip and had a total of 13000 AED in my account (2380 GBP).I stated in my application that I had no other savings and that the trip would cost me 1000 GBP.   Kindly note that I have previous lived in UK for 4 years as a student and left the country before my visa expired.   Visa application feedback stated that:    I was using a significant portioning of my savings to fund the trip and this was considered unjustified.  Secondly, since i am single and have no saving in UAE. It was considered probable that I might not return at the end of my trip.    I have the following questions:   When should I reapply? I am considering applying only for myself and my mother this time and funding her for the trip.  What assurance can I provide to prove that I have a genuine reason to return to UAE at the end of my trip? Is it possible that my visa was rejected because my parents visas were rejected?

I have applied recently for a general visitor visa to the UK to spend 10 days during Christmas with my British unmarried partner and it has been turned down.   The Entry Clearance Officer stated on his refusal notice the following:     I note that you have never previously travelled to the UK or any country with similar immigration requirements and you therefore do not have a history of travel and compliance to consider.      You have submitted an employment letter to confirm your occupation in KSA but I am required to also assess your personal, domestic and economic circumstances in determining whether you are genuine visitor travelling to the UK for the period and purpose you state.      You claim an income of SAR ........ per month which equal ........ GBP and from the evidence submitted this appears to be your sole source of income.   I note that this monthly income is reflected on your bank statements. However, the bank statement you have presented show a recent large deposit that are in excess of your stated income and inconsistent with the account history. You haven't provided evidence toward the origin of this recent deposit and in the absence of reasonable evidence I am not satisfied that these bank statements accurately reflect your personal circumstances.      In view of the above, I am not satisfied you have demonstrated that your circumstances are as you claim and therefore I am not satisfied that you're travelling to the UK for the period and purpose you stated. 41(i)and(ii).   Its true that I have deposited that sum of money right before I apply and it was a commission I received from work earlier this month.   So, could you please give me your advice on the above as I am planning to apply again soon. and how to avoid my application being refused again?


I know $\det(AB)=\det(A)\det(B)$. How can i prove using group theory if $A,B$ square matrices and I know $A, B\in GL(n,R)$. If the matrices were not square, it would be correct to say that it is valid?

Given two square matrices $A$ and $B$, how do you show that $$\det(AB) = \det(A)\det(B)$$ where $\det(\cdot)$ is the determinant of the matrix?


Suppose that $h$ is continuous on $[a,b]$ and differentiable on $(a,b)$, and that $c \in (a, b)$. Suppose also that $\lim\limits_{x \to c} h'(x)$ exists. Prove that $h'$ is continuous at $c$.  I really have no idea how to think about this problem. I know if the limit exists then it's differentiable at the point, i was assuming differentiability implied continuity. Someone please give me advice.

Let $f$ be a real-valued function continuous on $[a,b]$ and differentiable on $(a,b)$. Suppose that $\lim_{x\rightarrow a}f'(x)$ exists. Then, prove that $f$ is differentiable at $a$ and $f'(a)=\lim_{x\rightarrow a}f'(x)$.    It seems like an easy example, but a little bit tricky. I'm not sure which theorems should be used in here.    ==============================================================  Using @David Mitra's advice and @Pete L. Clark's notes I tried to solve this proof. I want to know my proof is correct or not.  By MVT, for $h>0$ and $c_h \in (a,a+h)$ $$\frac{f(a+h)-f(a)}{h}=f'(c_h)$$ and $\lim_{h \rightarrow 0^+}c_h=a$.    Then $$\lim_{h \rightarrow 0^+}\frac{f(a+h)-f(a)}{h}=\lim_{h \rightarrow 0^+}f'(c_h)=\lim_{h \rightarrow 0^+}f'(a)$$   But that's enough? I think I should show something more, but don't know what it is.


Hi I'm still learning English and I rather have problems with grammar.  So my question is can I use     I concur with this statement   instead of      I agree with this statement   Is it weird? Does it sound unnatural?

What is the difference between agree and concur? Which is the more common to use? For instance, someone said something to me and I want to say that he is right. Should I say I agree with you or I concur with you?


I'm trying to open  I get the runtime error page. meta site is working so doesn't seem like a firewall issue.

when I try to load  it goes to the error page.


I have a Galaxy S2 (GT-I9100) And I'm about to flash a custom rom on it. I've done it a bunch of times but what really irritates me is that I lose all progress made on the games that I have on my phone!  I backup the actual games and other applications using Astro file manager, but when I star my phone up after flashing a rom and re-install the game, I have lost all progress.  How does one backup a game, with game progress intact?  Thanks for any tips!

I'm planning to buy a new Android phone and I'd like to be able to transfer the progress I have made at several games to the new device, so I won't have to play all the levels again from scratch.  I currently have an HTC Desire and will buy an HTC Evo 3D.  There's probably no simple/general solution to this.  But I was wondering if anyone did something similar and could provide some advice (e.g. where to look for files that might hold game progress information).


i.e. Tossing a fair coin  $p_H =$ probability of heads $= 0.5$  $L(p_H | HH) = P(X = HH | p_H) $  $= 0.25$  Okay, right-hand of equation I understand,  $P(X = HH | p_H) = 0.25 =$ probability of "$X = HH$" given $p_H$  but what does the value resulting from the left side mean if it's not probability.  $L(p_H | HH) = 0.25 =$ Likelihood of $p_H$ given we observed $HH$ is $0.25$ ??  What does that even mean? Certainly it's not the same as $P(p_H | HH)$

The  claims that likelihood and probability are distinct concepts.     In non-technical parlance, "likelihood" is usually a synonym for "probability," but in statistical usage there is a clear distinction in perspective: the number that is the probability of some observed outcomes given a set of parameter values is regarded as the likelihood of the set of parameter values given the observed outcomes.    Can someone give a more down-to-earth description of what this means?  In addition, some examples of how "probability" and "likelihood" disagree would be nice.


I am facing with a problem in Ubuntu 18.04 LTS. I am running Ubuntu in my virtual machine. I am having a problem with sudo apt-get update command. This is the current output I get: VirtualBox@VirtualBox:~$ sudo apt-get update Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease Hit:2 http://security.ubuntu.com/ubuntu bionic-security InRelease Hit:3 https://download.virtualbox.org/virtualbox/debian bionic InRelease        Hit:4 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease              Hit:5 https://deb.nodesource.com/node_12.x bionic InRelease                     Hit:6 https://dnw9lb6lzp2d8.cloudfront.net stable InRelease                     Reading package lists... Done   I realized that apt-get issues are most of the time related with /etc/apt/sources.list. Then I followed the solution here:  to restore default repositories in sources.list. But I guess it didn't work because this is the content of sources.list: deb http://us.archive.ubuntu.com/ubuntu/ bionic main universe deb http://security.ubuntu.com/ubuntu/ bionic-security universe main deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe main  My questions here are:  Is the result of sudo apt-get update normal? Is it really updating? Why it doesn't do Fetching anymore? I opened the Software & Updates to fix the repositories in /etc/apt/sources.list just like the first answer here  Do you think now content of the sources.list is normal?  It would be so nice if some expert could answer my questions and direct me in the correct path. Because I am new in Ubuntu and I can't solve every problem on my own. Thank you so much for your support!!

I had a bunch of errors in the output of sudo apt-get update:  duplicate entries and 404 not found errors.  Figured those out, I hope: I removed PPAs that didn't have any packages associated with them, then I removed out a duplicate entry in /etc/apt/sources.list.  It seems I have royally buggered it up.  Now most of the lines say Ign when I do sudo apt-get update.  How do I go about straightening out what I have screwed up?  I need to get rid of these Igns that are all over the place.  There are about 50% (eyeball guess) Igns!


I have SSD (128GB) and HDD (1TB). Windows 10 (C:/) is installed on SSD.  HDD has two partitions: 1. Win partition (D:/) ~900GB 2. Ubuntu 19.10 (root and home) ~100GB  My question is, if I can (and if it's good idea) create partition on SSD (~15GB) and moving Ubuntu there. And /home/ would remain on HDD.   I want to do this mainly because Ubuntu is little bit slow on HDD (I know, that's kind of unusual). The problem is that I don't have that much space left on SSD and if it's worth the effort. What are the steps involved in moving Ubuntu? Thanks in advance

I have purchased a new SSD (120GB) and I had a HDD (1TB) already installed. I will install both Ubuntu and Windows on these drives. As the file space on the SSD is limited and I've read that writing to an SSD drive is discouraged, I would like to store most of the data on the HDD drive. I am aiming at faster system but also keeping the valuable data safe on the more reliable HDD and expanding the life span of the SSD.  I have already set up Windows on these drives (system files and applications on SSD, Users folder and ProgramData on HDD) and now it's time to set up Ubuntu.  So my question is which partitions I should create, on which drive should they be placed and how large they should be.  Based on my experience and articles I've read, I will probably create /swap, /home and / partitions.   Does it seem reasonable to place /swap and /home partitions on the HDD and / on the SSD?  And how large should / partition be?  Also, will the applications be installed in / partition? If so, is it rational to store the applications on separate partitions on the HDD instead of / on the SSD, and what should the size of the / partition be in this case?


department.txt contains column as ID, Department I am using below to change the order to Department,ID   But if i further update the command to below   Then department.txt becomes empty, without any output. If i use some other file instead of the same file which i am reading, then it works.  I understand i am reading and updating the same file, but as per my understanding is | should take care of it, as internally it must be storing the the output somewhere in its memory and dumping it in the file which i have asked. Isnt it ? Can someone throw some insight on how it works ?  Note: I know there are many similar questions, but none of them have really answered how internally | works, which is the fundamental question for which i need an answer.

I know this is sort of a duplicate of another question () but I wanted to expand on the question in response to the answers given.  The command  shuf example.txt > example.txt  Returns a blank file, because the shell truncates the file before shuffling it, leaving only a blank file to shuffle. However,  cat example.txt | shuf > example.txt  will produce a shuffled file as expected.  Why does the pipeline method work when the simple redirection doesn't? If the file is truncated before the commands are run, shouldn't the second method also leave an empty file?


I am using   \begin{equation} a = b \end{equation}   to write the equations in my paper. However, the problem is that the number related to each equation is not shown in the correct format like the picture   How can I fix this?  This is what I have at the first of my code:  \usepackage{graphicx} \usepackage[justification=centering]{caption} \usepackage{float} \usepackage{url}% typeset urls \usepackage{times} \usepackage{url} \usepackage{latexsym} \usepackage{fontspec} \usepackage{multirow} \usepackage{listings} \usepackage{setspace} \usepackage{listings} \usepackage{fontspec} \usepackage{amsmath} \usepackage{polyglossia} \usepackage{color} \usepackage{bidi} \newfontfamily\faFont[Script=Arabic]{Yas}  \newenvironment{Fa}{\begin{RTL}\faFont}{\end{RTL}} \newcommand{\fa}[1]{{\faFont\RL{#1}}} \newcommand\Mark[1]{\textsuperscript#1} \definecolor{backcolour}{rgb}{0.95,0.95,0.92} \definecolor{darkblue}{rgb}{0.95,0.95,0.92} \setmainlanguage{english} \setotherlanguage{farsi} \newfontfamily\farsifont[Script=Arabic]{Yas}

I am compiling the following MWE using XeLatex within TeXnicCenter and get a garbled equation number:  \documentclass{article} \usepackage{amsmath} \usepackage{polyglossia} \setmainlanguage{hebrew} \newfontfamily{\hebrewfont}{Arial}  \begin{document} \begin{equation}\label{eq:1} 2+2=4. \end{equation} \end{document}      What is going on here?


I am new to python and trying to understand the _full_path from  example.     def _full_path(self, partial):         if partial.startswith("/"):             partial = partial[1:]         path = os.path.join(self.root, partial)         return path   What does the function do? Specifically, what does this line do?    partial = partial[1:]   It seems like some kind of list manipulation -- but I can't find syntax like that in  document.  What is the root property of self that is getting called?    Can somebody explain a little bit about what is happening in that code.

I need a good explanation (references are a plus) on Python's slice notation.   To me, this notation needs a bit of picking up.   It looks extremely powerful, but I haven't quite got my head around it.


In Einstein's summation convention, it is sometimes necessary to have subscript and superscript indices in a certain order. If you just use ^ and _, these indices would appear on top of one another, e.g. \Lambda^\mu_\nu. How do I escape this?  (The following is an answer to the question, but I cannot add an answer as the question is closed.) To escape this, you can type \Lambda^\mu{}_\nu  Couldn't find this on the web, so I figured I'd post it myself.

I'd like to be able to place multiple sub and superscripts (in maths mode) on an element without having them expand vertically.  That is, so that in the output of ${x^2_4}^6_8$, the 2 and 6 were aligned, as were the 4 and 8 (obviously, I'd expect to do this with a macro rather than the super- and subscript commands).  As a bonus, it'd be nice to be able to control whether or not this appeared like $x^{26}_{48}$ or $x^{2\phantom{4}6}_{\phantom{2}4\phantom{6}8}$.  And it would be nice to truly be able to do this incrementally, so that each subscript or superscript could be added without having to know all the previous ones (useful for adding stuff via macros).  Simply writing $x^2_4{}^6_8$ wouldn't work as the latter super and subscripts wouldn't know the difference between x and X and ∏.  (see also )


This question came in the exam today, unfortunately I couldn't answer it. The question said:  Proof whether or not this is a true statement, stating the reason.     Subgroup of group is normal   I have a limited knowledge on group theory, so I couldn't answer this question, also I don't think the question provided enough information.

Can you kindly provide an example of a subgroup that is not normal?  I have been told many times that, for coset multiplication to be defined, the subgroup must be normal.  I have seen the proof and examples of quotient group multiplications.  Now, I am trying to find out where the process will break down if the subgroup is not normal.  Suppose that $x \in a_1H = a_2H, y \in b_1H = b_2H$, where $H$ is not normal. So $x = a_1h_1 = a_2h_2$ for some $h_1, h_2 \in H$, and $y = b_1h_1^* = b_2h_2^*$ for some $h_1, h_2 \in H$.  $xy = (a_1b_1)(h_1h_1^*) = (a_2b_2)(h_2h_2^*)$.  However, both $h_1h_1^*, h_2h_2^*$ are still elements of $H$.  So I don't see how $a_1b_1H \neq a_2b_2H$.


$T^{k+1} = 0$, where $k$ is a positive integer. Prove that $I + T + T^2 + \dots+ T^k = (I - T)^{-1}.$  My proof: Let $T$ be a $m \times n$ square matrix with the same number of $m$ rows and $n$ columns. $K$ must be greater than zero.   $$I = I^2 * I^{-1}$$ $$T = T^2 * T^{-1}$$ $$T^{k-1} = T^k * T^{-1}$$ $$I-T^{-1} = \frac{1}{I-T}$$  $$I + T + T^2 + \dots + T^k = (I-T)^{-1}$$  $$I + T + T^k + T^2 + \dots + T^{k-1} = (I-T)^{-1}$$  $$I + T + T^k + T^2 + \dots + T^kT^{-1} = (I-T)^{-1}$$  I'm a bit stuck. It seems like one of those $P*P^{-1}$ problems.  Is what I am doing overkill to the proof?  I need directions.

If $ua = au$, where $u$ is a unit and $a$ is a nilpotent, show that $u+a$ is a unit.   I've been working on this problem for an hour that I tried to construct an element $x \in R$ such that $x(u+a) = 1 = (u+a)x$. After tried several elements and manipulated $ua = au$, I still couldn't find any clue. Can anybody give me a hint?


Hi I have a SQL Stored Proc that used to take 45 seconds to execute.  Then I run the Execution Plan under SQL and saw some high cost steps:    Then I right click that and select:    And finally I create the indexes that the Execution Plan recommend me.  Now the Query takes 2 seconds that is acceptable.  Is that right what I did? Does it come with extra cost?     Any advice is well appreciated

I've been running an auto-index tool on our MS SQL database (I modified a script originating from Microsoft that looks at the index statistics tables - ). From the stats, I now have a list of recommendations for indexes that need creating.  Edit: The Indexes described above take information from the DMV's that tell you what the database engine would use for indexes if they were available and the scripts take the Top x recommendations (by seeks, user impact etc.) and put these in a table.  (Edit above partially taken from Larry Coleman's answer below in order to clarify what the scripts are doing)  As I am new to database admin, and having had a quick search around the net, I am reluctant to take the plunge and blindly add the recommended indexes. However, not being experienced in  the field, I am looking for some advice on how to determine whether the recommendations are necessary or not.  Do I need to run the SQL Profiler, or is it better to examine the code that queries the tables? And do you have any other advice?


Is there any way to modify or remove the italic correction in all math environments globally? I don't like the uneven spacing it causes when there are multiple variables multiplied together or multiple points in the same polygon, but I don't want to keep having to use "\mathit". I've looked at a number of questions here such as  but couldn't find any that explains how to redefine the italic correction, and I don't know much about LaTeX to be able to do it myself.

Is there something I can add to the preamble of my document such that multiple letters without spacing in a Math environment (such as $NP$) do not have extra spacing between them and are not considered multiple distinct variables? Right now, I have to use $\mathit{NP}$ to prevent any extra spacing, but I feel that it is more natural to add a space between the letters if they are a different variable ($N P$). For example, if I want the multi-letter variable NP, I want to be able to say $NP$ which would automatically be replaced by $\mathit{NP}$. If I want N and P to have the proper inter-variable spacing, I want to do that only when they are separated by a space, like so: $N P$. Is there a way to achieve this? Would it break something that I'm unaware of? Edit: Here's a screenshot that shows what I mean:  So basically, is it possible for line 1 to automatically give me line 3 and for line 2 to give me line 2?


I'm looking for a Gmail search operator that does an exact match. For example, from:foobar -from:"foobar" should show all messages matching "foobar" but not include those that are identical to "foobar".

Doing a search via regular Gmail frontend in the browser, shows strange results.  I want to search all mails from   *@ebay.*   My search:  from:@ebay   shows also emails sent from an ebay subdomain:   eBay@reply.ebay.com   It seems like Gmail ignores the "@", otherwise I can't see why those messages appear in the search results.  I also tried following searches with no success:  from:"@ebay" from:'@ebay' from:(@ebay) from:("@ebay") from:('@ebay')


I have a USB drive that was used as a Time Machine back up disk for another machine that I no longer have access to. The drive cannot be reformatted either in Disk Utility or in Terminal. The error is that I do not have enough privileges, this is even as sudo in Terminal. I don't care about the data on the drive. I have searched high and low for a solution but I am now stumped - then again I am not very smart. Appreciate any help.

When I plug in my USB flash drive, it shows up on my computer as write-protected or read-only. I am unable to transfer data to it, nor can I modify or delete any files already stored on it. I also cannot repartition or reformat the drive using Windows Disk Management, DiskPart, GParted, or other tools. The drive does not have a write-protect switch.  Why did this happen and what can I do about it? Is there a way to remove the write protection?  (Note that this can happen with some memory cards, too, as they often use controllers similar to those used in flash drives. In some cases, the system may report that the drive or card was formatted successfully even though it was never actually formatted; the original data reappears when the device is reinserted.)     This question comes up often and the answers are usually the same. This post is meant to provide a definitive, canonical answer for this problem. Feel free to edit the answer to add additional details.


namespace ClientApp {     [Service(Exported = false)]     class RegistrationIntentService : IntentService     {         static object locker = new object();          public RegistrationIntentService() :  base("RegistrationIntentService") { }   In the snippet above, the constructor extends a base("RegistrationIntentService"), what is this doing? I found this example at:    Does it mean the contructor is the same as the RegistrationIntentService constructor?

If I inherit from a base class and want to pass something from the constructor of the inherited class to the constructor of the base class, how do I do that?  For example, if I inherit from the Exception class I want to do something like this:  class MyExceptionClass : Exception {      public MyExceptionClass(string message, string extraInfo)      {          //This is where it's all falling apart          base(message);      } }   Basically what I want is to be able to pass the string message to the base Exception class.


So the code I have copied an HTML file into a string and then changed everything to lower case except normal text and comments. The problem is it also changes the åäö into something the VS code can't recognise. What I can find is its a problem with the encoding but can't find anything about it on py3 and the solutions I found for py2 didn't work. Any help is appreciated and if you know how to improve the code plz tell me. import re import os   text_list = []  for root, dirs, files in os.walk("."):     for filename in files:          if (             filename.endswith(".html")         ):             text_list.append(os.path.join(root, filename))  for file in text_list:      file_content = open(f"{file}", "r+").read()      if file.endswith(".html"):         os.rename(file, file.replace(" ", "_").lower())         code_strings = re.findall(r"<.+?>", file_content)         for i, str in enumerate(code_strings):             new_code_string = code_strings[i].lower()             file_content = file_content.replace(code_strings[i], new_code_string)      else:         os.rename(file, file.replace(" ", "_").lower())         file_content = file_content.lower()      open(f"{file}", "r+").write(file_content)

In a text file, there is a string "I don't like this".  However, when I read it into a string, it becomes "I don\xe2\x80\x98t like this". I understand that \u2018 is the unicode representation of "'". I use   f1 = open (file1, "r") text = f1.read()   command to do the reading.  Now, is it possible to read the string in such a way that when it is read into the string, it is "I don't like this", instead of "I don\xe2\x80\x98t like this like this"?  Second edit: I have seen some people use mapping to solve this problem, but really, is there no built-in conversion that does this kind of ANSI to unicode ( and vice versa) conversion?


I have the series $\sum_{n=0}^{\infty}\frac{n}{n+1}x^n$. It is convergent for $-1<x<1$.   I want to find the sum function. I've tried the following: \begin{align*} \sum_{n=0}^{\infty} x^n &\sim \frac{1}{1-x}\\ \sum_{n=0}^{\infty} \frac{x^{n+1}}{1+n}&\sim -\log(1-x)&\text{Integrating both sides}\\ \sum_{n=0}^{\infty} \frac{x^{n}}{1+n}&\sim-\frac{\log(1-x)}{x}&\text{Divide with $x$}\\ \sum_{n=0}^{\infty}\frac{nx^{n-1}}{1+n}&\sim\frac{1}{(1-x)x}+\frac{\log(1-x)}{x^2}&\text{Derivative with respect to $x$}\\ \sum_{n=0}^{\infty}\frac{nx^{n}}{1+n}&\sim\frac{1}{(1-x)}+\frac{\log(1-x)}{x}&\text{Multiply by $x$} \end{align*}  I can't decide on what to do from this point. I seem to miss the $n$ in the nominator, but changing index does not really help med out. Can you point me in the right direction?  Edit: I used the tips and finished it. Thank you.

I need to find a function $f(x)$ which is equal to the sum $$ \sum_{n=0}^\infty \frac{n}{n+1}x^n, $$ for every $x\in \mathbb{R}$ for which the series converge.  Now, using WolframAlpha, I've found the answer  $$f(x)=\frac{-x+x\ \text{log}(1-x)-\text{log}(1-x)}{(x-1)x},\ \ \ \text{when}\ |x|<1$$ However I'm trying to figure out how to find this function $f(x)$ on my own. I've tried to combine the Maclaurin series of $\ln(1+x)$, $\sin(x),$ and several other functions but I don't seem to succeed. Any suggestions how to work out this problem from scratch?


I am in high school (18 years old) and I'd like to buy a calculus book. I'm interested in Spivak's calculus book. I love mathematics so I am motivated, but I don't want to read something too advanced neither a simple and basic textbook.

This question is a  of the common question asking for calculus references. It is here to  away the repetition, and give a canonical resource for calculus references.      I'm looking for a resources to learn single-variable calculus.


The question is in the title. I am very appreciative of any time and concern put into belaboring this relatively little problem.

I know this seems like a silly question, but someone was trying to debate with me about how $2+2=4$ should be called an identity and not an equation. I mentioned how it has no variables and isn't true for all numbers, but they claimed you could plug in any value for its variables(which don't exist) and it would be true and so is an identity. Which is kind of true in a round about way, but I still don't think anyone would call it an identity in a casual situation.


I have a device which has a dc barrel jack with inside + and outside -. If I plug in a barrel connector which has 2 wires to connect to a DC voltage source (battery) how do I know which wire to connect to the positive terminal and which wire to the negative terminal?

I'm sure this information is somewhere around the internet, but I can't find it.   I have a device that takes a DC barrel jack. I don't know the polarity it expects though. There is a marking though. It looks like this:  ___ ---  12VDC   I'm 99% sure it's a symbol to indicate the polarity, but which is it? Positive inside or positive outside?


Some native speakers seem to omit the "t" in words that end with "cts" and others don't. Is one way more correct than the other or is there any connotation to be observed? I can see no way to look this up in a dictionary.  To my mind other existing threads don't cover this question completely.

When I pronounce the phrase:   "Look, it's the first day. I don't wanna be late."  I think that the /t/ in the words "first" and "don't" can be deleted. Am I right? I'm talking about casual speech.  Below is the phonetic transcription. I stressed the content words (the bolded words) without shifting stress for special meaning. I deleted the /t/ in both words, though.  lʊk, ɪts ðə fɜrs deɪ. aɪ doʊn wʌ nə bɪ leɪt.


I would like to change the output of this query, into the second snippet with less rows:  id   row_id   element_id    container_id   text              answer -------------------------------------------------------------------- 1      1        10          100            Question1:         Yes 1      1        10          100            Did you check...   Yes 1      2        10          100            Question2:         Yes 1      2        10          100            Did you verify...  Yes   Desired output:  id  row_id element_id container_id   Question                         answer ---------------------------------------------------------------------------- 1   1       10          100          Question1: Did you check..        Yes 1   2       10          100          Question2: Did you verify...      Yes   Therefore making the table shorter. I know this can be done in MySQL with a group_concat function, but I was not able to apply it correctly to my need.   Any help would be great.  Thank you

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


I want to prove the following theorem:  Let $X$ be a separable inner product space and $\bar X$ its completeness. Then $\bar X$ is a separable Hilbert space.  But I am a little bit confused and stuck,I think more hypothesis on $X$ to get the result, because well, we know that $\bar X$ by definition, but how do you ensure that it has a inner product? and even more, how do you construct a countable dense set from elements that are abstract?, since we have to recall that all the points that live in the completion are equivalency classes of sequences, so it is hard for me to deal with them.  I know that the completion is the quotient space of the Cauchy sequences of $X$ and the ones that converge to $0$ and $\bar X$ is complete with respect to the metric defined as   $$\lim_{n \to \infty} d(x_n,y_n)$$  but I don't know how to get the result with that.  This is another question because here I am explaining more that the duplicate it, and in fact there I haven't get an answer yet, so that is why I decided to open a new question.  Thanks a lot in advance.

Let $X$ be a separable inner product space and $\bar X$ its completion. Then I want to check that $\bar X$ is a separable Hilbert space.  But I am stuck here, because how do you prove that $\bar X$ has a inner product induced by the one of $X$?, and how do you construct a complete orthonormal system for $\bar X$? because the completion is a set of representatives, that we don't even know if they look as the elements of $X$.  But I am a little bit confused and stuck,I think more hypothesis on $X$ to get the result, because well, we know that $\bar X$ by definition, but how do you ensure that it has a inner product? and even more, how do you construct a countable dense set from elements that are abstract?, since we have to recall that all the points that live in the completion are equivalency classes of sequences, so it is hard for me to deal with them.  I know that the completion is the quotient space of the Cauchy sequences of $X$ and the ones that converge to $0$ and $\bar X$ is complete with respect to the metric defined as   $$\lim_{n \to \infty} d(x_n,y_n)$$  but I don't know how to get the result with that.  So Can someone help me to prove this assertion please?


There are $n$ coupons in a collection. A collector has the ability to purchase a coupon, but can't choose the coupon he purchases. Instead, the coupon is revealed to be coupon $i$ with probability $p_i=\frac 1 n$. Let $N$ be the number of coupons he'll need to collect before he has at least one coupon of each type. Find the expected value and variance of $N$. Bonus: generalize to the case where the probability of collecting the $j$th coupon is $p_j$ with $\sum\limits_{j=1}^n p_j=1$  I recently came across this problem and came up with/ unearthed various methods to solve it. I'm intending this page as a wiki with various solutions. I'll be posting all the solutions I'm aware of (4 so far) over time.    EDIT: As mentioned in the comments, this question is different from the one people are saying it is a duplicate of since (for one thing) it includes an expression for the variance and it covers the general case where all coupons have unequal probabilities. The case of calculating the variance for the general case of coupons having unequal probabilities has not been covered anywhere on the site apart from , which this one intends to consolidate along with other approaches to solve this problem.    EDIT: Paper on the solutions on this page submitted to ArXiv:

What is the average number of times it would it take to roll a fair 6-sided die and get all numbers on the die?  The order in which the numbers appear does not matter.  I had this questions explained to me by a professor (not math professor), but it was not clear in the explanation.  We were given the answer $(1-(\frac56)^n)^6 = .5$ or $n = 12.152$  Can someone please explain this to me, possibly with a link to a general topic?


If gravity arises from the curvature of space time, why is there a need for gravitons? If someone could explain this to me I would be very thankful. I dont understand why.

What I am interested to see are specific examples/reasons why gravity should be quantized. Something more than "well, everything else is, so why not gravity too". For example, isn't it possible that a quantum field theory on curved space-time would be the way treat QFT and gravity in questions where the effects of neither can be ignored?


What I notice is that one App (let say Slack), has a link in a message, when I click on it, it opens Firefox, but in way that this Firefox is linked to Slack. It doesn't even show the dot under Firefox icon, but add one dot at Slack. The problem I notice is that Alt+Tab loses performance since Slack and Firefox are under Slack, and in the first time firefox opened as a pretty fresh one, without my account and user settings (I had to do all of this twice) so it's as if I have two firefox, one 'free' and one 'bound to'... it happens for all kinds of situations that one app opens another one.... VSCode to firefox / Slack to Zoom / Zoom to firefox... Is there any way to make apps open in their own place?

If I open a link sent to me on Slack, the new browser window opened shows up as 'another' Slack window. Is there any way to have it correctly group the new browser window with the existing browser windows? I'm on Ubuntu 18.04 running gnome.


Simple Question: May I use WD40 to lubricate my single-speed chain? Does it not have any negative effects in terms of the chain performance and biking in general?

Is WD-40 really bad to apply on bikes? I was told so but still see people doing that.   Also I saw WD-40 launching their new products of bike lubricant and degreaser. Did anybody try those?


LM741 datasheet says that it can output a maximum of 20-25 mA. So in this case, is that R5 a must, or will it be safe not using it?  Assuming LEDs can withstand 25mA.

For blue LEDs with a forward voltage of 3.3 V and supply voltage of 3.3 V, is a series resistor still needed to limit current?  Ohm's Law in this case says 0 Ω, but is this correct in practice?  Perhaps just a small value like 1 or 10 Ω just to be safe?


Does a non countable subset of the power-set of $\mathbb Z$ exist so that the intersection of any two elements is a finite set?  If we ask for the sets to be pairwise disjoint then the answer is a clear no. I'm pretty stumped, something which may be helpful is that the number of finite subsets of $\mathbb Z$ is countable.

Can a countable set contain uncountably many infinite subsets such that the intersection of any two such distinct subsets is finite?


I need to find a way to deploy code from GitHub to salesforce using Docker Cloud or Docker because my client requested it. I needed senior's suggestions on deployment from GitHub to to salesforce with  and i found way to do it with BitBucket  but didn't find with GitHub or at least is it possible at the current moment.

I need way to deploy code from Git to salesforce using Docker Cloud or Docker. I needed senior's suggestions and sources on deployment from Git to to salesforce especially with  and i found way to do it with BitBucket  but didn't find with Git or at least is it possible at the current moment with docker?.


DVD won't play but CD'S will in my disc drive all drivers are installed still not working not sure on the problem is it is a new disc drive and worked fine on windows xp any and all help would be appreciated

My machine can't play encrypted DVDs on a fresh install.  How do I add this capability?  Another useful bit of information would be what programs are best for playing DVDs, once I'm able to do so.  See the .  Will I be able to play DVD movies from ?


def ones_in_corners(n):     '''     Creates an nxn matrix full of 0s, except the corners of the matrix     will have 1s in it.     eg. ones_in_corners(3) would give us     1 0 1     0 0 0     1 0 1     :param n: the size of the square matrix     :return:     '''     # setup a single row of n ' ' (space) chars     row = ['0'] * n     # now we will make the mat have n rows     mat = [row] * n     # the following four lines make it so only     # the corners of the matrix has 1s     mat[0][0] = '1'     mat[0][n-1] ='1'     mat[n-1][0] = '1'     mat[n-1][n-1] = '1'     return mat  print(ones_in_corners(3)) ''' output is [['1', '0', '1'], ['1', '0', '1'], ['1', '0', '1']] but I want it to be [['1', '0', '1'], ['0', '0', '0'], ['1', '0', '1']] '''

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


I installed Kali Linux as dual boot and it works well, i.e. I had both Windows 10 and Kali Linux and before loading the operating system, the bootloader asks for the operating system to load.  Now, 5 days ago, I reinstalled Windows 10 and formatted the disk which contains Windows 10. I successfully installed it and it's working well.   The problem is that now, it no longer asks about which operating system I want to choose. It systematically loads Windows 10, so I no longer have a working dual boot.  One important thing: I installed Kali Linux on a separate drive. I made another drive (taking space from "drive D" and not from the Windows drive which is "drive C").  That drive which I made only for Kali Linux didn't get formatted during the reinstallation of Windows 10.  sorry about I give you pain to read the such a long article but I have to clear the overall scenario

My system was configured to dual boot Ubuntu 12.04.1 LTS and Windows 7. Today I got my hands on the MSDN release of Windows 8 and I installed it over my Windows 7. Now the computer just boots to Windows 8 directly without loading the GRUB screen.  So I followed the steps as suggested in: . Running this command:      ls -l /dev/disk/by-label/   gives the following output:      total 0     lrwxrwxrwx 1 root root 10 Sep 11 07:51 Entertainment -> ../../sda2     lrwxrwxrwx 1 root root 10 Sep 11 02:45 PENDRIVE -> ../../sdb1   Also fdisk -l command gives this as the output:      Disk /dev/sda: 320.1 GB, 320072933376 bytes     255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors     Units = sectors of 1 * 512 = 512 bytes     Sector size (logical/physical): 512 bytes / 512 bytes     I/O size (minimum/optimal): 512 bytes / 512 bytes     Disk identifier: 0x1246aa23         Device Boot      Start         End      Blocks   Id  System     /dev/sda1   *        2048   319582199   159790076    7  HPFS/NTFS/exFAT     /dev/sda2       319582208   602906623   141662208    7  HPFS/NTFS/exFAT     /dev/sda3       602908672   625135615    11113472   83  Linux      Disk /dev/sdb: 1939 MB, 1939865600 bytes     64 heads, 63 sectors/track, 939 cylinders, total 3788800 sectors     Units = sectors of 1 * 512 = 512 bytes     Sector size (logical/physical): 512 bytes / 512 bytes     I/O size (minimum/optimal): 512 bytes / 512 bytes     Disk identifier: 0xc3072e18         Device Boot      Start         End      Blocks   Id  System     /dev/sdb1   *        2248     3788799     1893276    c  W95 FAT32 (LBA)   So I assume that I have to run this: sudo grub-install /dev/sda3 to get GRUB up and running. But I am getting this error:      /usr/sbin/grub-probe: error: cannot find a device for /boot/grub (is /dev mounted?).   Can anyone please guide me in the right direction? The current Ubuntu installation is far too customized to my needs to lose it to a boot manager issue! Any help is much appreciated!


I was taking a look to java java.lang.Integer class and I noticed much methods with ">" and "<" operators but I don't know what are.  For example the method Integer.signum(int i):  public static int signum(int i) {     // HD, Section 2-7     return (i >> 31) | (-i >>> 31); }   Or Integer.rotateLeft(int i, int distance)  public static int rotateLeft(int i, int distance) {     return (i << distance) | (i >>> -distance); }

I've been attempting to learn C in my spare time, and other languages (C#, Java, etc.) have the same concept (and often the same operators) ...   What I'm wondering is, at a core level, what does bit-shifting (<<, >>, >>>) do, what problems can it help solve, and what gotchas lurk around the bend? In other words, an absolute beginner's guide to bit shifting in all its goodness.


I just installed Metasploitable 2 from  on VMware Workstation Pro. After logging in, I tried sudo apt-get install whois and I got this error: Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed:   whois 0 upgraded, 1 newly installed, 0 to remove and 139 not upgraded. Need to get 31.9kB of archives. After this operation, 279kB of additional disk space will be used. WARNING: The following packages could not be authenticated:   whois Install these packages without verification [y/N]? y Err http://us.archive.ubuntu.com hardy/main whois 4.7.24   404 Not Found [IP: 91.189.91.38 80] Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/w/whois/whois_4.7.24_i386.deb 404 Not Found [IP: 91.189.91.38 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?  This happens with anything, not just whois. I tried sudo apt-get update (with and without -fix--missing), and it ends up with a lot of "Failed to fetch" and ends with an error ("Some index files failed to download..."). If I try sudo apt-get upgrade, I get the same result as installing. I also tried -o Acquire::Check-Valid-Until=false. The date command returned the time in EDT, 7 hours behind my clock, which is correct. I am also connected to the internet since I am able to ping 8.8.8.8. Please can you help me fix it?

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


The following image shows a screenshot from a page of my lecture notes:    As you can see, it keeps using the expression "up to isomorphism", but doesn't explain what this means. Can anyone tell me what this means in this context?  Thanks

For example, to say that there are 2 such groups up to isomorphism such that the order of G is equal to $p^2$?


I am preparing a new application for a Family Visa in UK after a refusal I stay at my brother's house in Birmingham for a week of my leave limit  My salary is £420 and I started my current job on June 4, 2017.  Question: that it's just questions I made in attached picture

My question is 1 -Why it's my low to calculate what I spend each month and not on my salary 2- how much you need for a holiday in Uk knowing that my brother who will host me  3- to get an estimate how many meters per day are needed


I want to be able to catch these type of phone formats  +xxx xxx xxx xxx +xxx.xxx.xxx.xxx +xxx xxxxxxxxx +xxx-xxx-xxx-xxx +xxxxxxxxxxxx xxxx xxx xxx xxxx xxxxxx xxxx.xxx.xxx xxxx-xxx-xxx xxx-xxx-xxx xxx.xxx.xxx xxxxxxxxxx xxxx xx xx xx xxxx.xx.xx.xx xxxx-xx-xx-xx   For the moment I am having this regex  /^[+]?(\d{1,2})?[\s.-]?\(?\d{4}\)?[\s.-]?\d{3}[\s.-]?\d{3}$/   which catches some of the examples, but no idea how to make it work for the other formats too

I'm trying to put together a comprehensive regex to validate phone numbers. Ideally it would handle international formats, but it must handle US formats, including the following:   1-234-567-8901 1-234-567-8901 x1234 1-234-567-8901 ext1234 1 (234) 567-8901 1.234.567.8901 1/234/567/8901 12345678901   I'll answer with my current attempt, but I'm hoping somebody has something better and/or more elegant.


Is there a way to make a python function so that you can call it like a method? So say i had variable x, and I had a function: def func(y):      return str(y)+"hi"  Then call it like x.func() and have it take x in as the input?

I've read that it is possible to add a method to an existing object (i.e., not in the class definition) in Python.   I understand that it's not always good to do so. But how might one do this?


I am in UK on a multiple entry short term ICT-Tier-2 visa which expires in mid-April 2017. My work assignment last day is 31st March 2017. After that I plan to go for a one week holiday to the Netherlands to meet my brother.  If my UK visa ends on 14th April and I return from the Netherlands on 8 or 9th April will I be barred from entering the UK?  The reason I want to return to UK is that my return travel from UK to India will be arranged by my employer.

I've a U.K. work visa that expires in several months.  Can I leave the country the exact day the visa is marked as "valid until"?  Or should I depart a day earlier?


I have asked almost > 10 questions on Stack Overflow and all are having positive votes, but I have still not received the  badge.  As per the Curious badge description:     Ask a well-received question on 5 separate days, and maintain a   positive question record   It is also showing in my profile that I have asked 10/5 well-received questions.    But still I have not been awarded that badge and showing me that this badge is recommended.  What might be the possible reason for this?

As you can see in the picture, I have 13 out of 5. But it's been like this for about two months! What's the reason for that?


when running sudo apt install python3-tk I get the following: Building dependency tree        Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies:  gitkraken : Depends: gconf2              Depends: gconf-service  python3-tk : Depends: blt (>= 2.4z-9) but it is not going to be installed               Depends: libtcl8.6 (>= 8.6.0) but it is not going to be installed               Depends: libtk8.6 (>= 8.6.0) but it is not going to be installed               Depends: tk8.6-blt2.5 (>= 2.5.3) but it is not going to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).  I then run apt --fix-broken install which gives me the following message: E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?  When running sudo apt install python3-tk again I get the same result. Just to see what happens and to see if I get the same result i tried pip3 install blt which succefully installs blt but doesn't change anything about the first message I get. I'm quite new to Ubuntu and I don't know what to do. I would appreciate It very much if someone could help me out. lsb_release -a: No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 20.04.1 LTS Release:    20.04 Codename:   focal  This is all happening in a anaconda environment with python v3.6. I am using VirtualBox to run Ubuntu.

I get this error whenever I try to install programs using the terminal:  home@ubuntu:~$ apt-get install myunity E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?   Also I'm unable to install updates using the terminal.


how can I place a large equation at the bottom of a page when using the document class scrartcl with the twocolumn option enabled.  I know about , but I'd rather stick with twocolumn mode and not use the multicols package because of problems with figure placements.  Any help is much appreciated.  Edit: to clarify, I do not want to have the equation printed where it's defined, but rather on the bottom of the same page.

I'm posting today because I would like to reduce white space in a document I'm writing. The content is two-columns but I have floating tables that span across both columns (table*).   At some point, the text ends in the beginning of the first column of a new page. I would like to include my table on this page since it has a lot of free space below the text, but when I insert the table* right after the text, it goes to the top of the next page instead:    Do you know a way of obtaining the desired behavior?  Minimal working example :  \documentclass{article} \usepackage{lipsum}  \begin{document} \twocolumn  \paragraph{} \lipsum[1]  \begin{table*} \centering \begin{tabular}{|c|c|c|c|} \hline Column 1 & Column 2 & Column 3 & Column 4 \\ \hline Column 1 & Column 2 & Column 3 & Column 4 \\ \hline \end{tabular} \end{table*}%   \end{document}


I am a newbie to blender. As a part of my coursework I have to do an animation video. I have created  a model, rigged him but now I wonder how to export the animation (pose mode) as a video. There was no proper explanation on it in youtube,vimeo,dailymotion,google.   I am not satisfied with previous below question answer  How to save animation as a video format [duplicate] ()  Can someone guide me to a video lecture on this or someone please help in rectifying my current situation

Yesterday I was working on a simple animation, an animated logo.   Here is an image of the progress:    I already have the animation working and everything is okay with the project, but I can't figure out how I can render the animation and turn it into an AVI format video.  How do I render an animation in Blender?


The rules for the eldritch cannon state:     The cannon is a magical object. Regardless of size, the cannon has an AC of 18 and a number of hit points equal to five times your artificer level.   The rules for an opportunity attack state:     You can make an opportunity attack when a hostile creature that you can see moves out of your reach.   Does this mean that an eldritch cannon cannot provoke opportunity attacks?

With the recent addition of the revisited artificer class to 5e, I did a quick playthrough with a level 3 artillerist. The artillerist can summon a turret; an object (not a construct) with a speed of 15 and they can command the turret to move as part of a bonus action. When I attempted to move the turret out of melee range of an enemy NPC, the DM tried to make an attack of opportunity against it. I pointed out to him that opportunity attacks are made against creatures, and the turret is not a creature.  This got me thinking about whether or not you can make opportunity attacks against other objects that move, such as a vehicle or even a rolling stone.


Prove that for $x\in\mathbb{R}$ $$ \cos x\geq 1-\frac{x^2}{2}. $$ My try: Consider $g(x)=\cos(x)-1+\frac{x^2}{2}.$ If I differentiate $g(x)$ then we get $g'(0)>0$ so locally we get $g(x)>g(0)=0$ and then we can see that the function is increasing for any $x$ the function is increasing and hence we have $g(x)\geq 0$ for any $x \geq 0$. But I am getting that if $x<0$ then $g(x) \leq 0.$ So this inequality isn't true in general for all $x \in \Bbb R$. But, if we use Taylor's theorem with Lagrange's remainder then also I am not sure what will be the point $\zeta\in [-x,0]$ where $\cos(x)=1-\frac{x^2}{2}+\frac{x^4}{4}\cos(\zeta).$

I encountered this question:  Is $\cos(x) \geq 1 - \frac{x^2}{2}$   for all $x$ in  $R$  ? I draw to myself the function graphs but i can't find the right way to answer this type of questions.


If  is a  which bends spacetime and  is energy which stretches spacetime, what is the difference between the terms force and energy?

The overly simplified explanation I'm giving myself right now is  causes the opposite of what gravity does, that's why the universe is expanding. Now where gravity is a force, why dark energy is "energy"? Why it's not called "Dark Force" instead? I think I must be missing something here.


Since the dawn of windowed software, to click on the scrollbar space (i.e. not the arrows, nor the small block) meant to scroll the size of one page (just like pressing Page Up/Page Down).  Now, in a recent update, not only is Firefox missing the scrollbar arrows, but also when I click somewhere in the scrollbar makes the small block go to that position. Probably somebody somewhere thought it was a "nice" innovation, but I think it's just completely useless. If I want to go with the small block to a new position, all I needed to do was grab the block and drag it there. I can't shift my window by the size of one page anymore. Of course I can still use the Page Up/Page Down keys, but they won't work for horizontal scrollbars.  Any way to revert this? Or at least let the developer in question know that we're not satisfied with their "need for useless innovation"?  I'm using Firefox 46 on Ubuntu 14.04.

This question has already been asked () but I don't know how to implement the answer: If I click in the scrollbar below or above the thumb it moves to the spot I just clicked. This happens in Firefox but not in Opera, the 2 browsers I use. Could someone explain how to fix the problem?


This is pretty much a similar case to  but under Windows 8.  I tried to go through the steps and install the shims for the launcher, but somehow it doesn't seem to work. So the problem I'm facing is that I need to be present whenever my son wants to run the game and provide the admin password. I don't want to give him admin rights across the board, but grant him rights to run the Launcher.exe Is that at all possible under Windows 8 64-bit?  P.S. I have tried to contact Bioware's support, just to find that they don't know what to do...

Every time I start The Old Republic launcher/updater, it throws up the UAC prompt.  Is this normal?  If it isn't (or is I suppose), how do I prevent it without disabling UAC?


I have Windows and Ubuntu 12.04 running. I wanted to upgrade to 15.04, but the upgrade manager doesn't give that option. I tried  but, it gives me a 404 error. How do i upgrade without affecting the existing partitions on my system adversely.  ANSWER: 12.04 isn't an EOL release. Thanks Arronicle and frkaiem for pointing it out

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


There is a domain name that is incorrectly pointing to our company's static IP address. We've had the IP address assigned for a couple of years now. I've checked the whois entries and tried to contact the person by email (fails because of the bad DNS), LinkedIn and Facebook but no response so far.  I'm think this is just a mistake on their part because it causes their website and emails to fail.  What are my options now? Can I do anything if the person won't repsond?

I was checking out my reverse-DNS entry of my domain the other day which is run from a dedicated server.   I noticed that another person/company had their domain pointing to my server? I have no idea who this company is or why they are pointing their domain at my server IP?  How can I go about stopping this or forcing them to change?


I recently bought Samsung laptop and I'm facing hard time to boot my pen driver so that i can use ubuntu 12.04. I only have one partition so I want to use it from a pen drive... This pen drive works fine on other laptops and those who are having win 8 but not on Samsung laptop that is mine.lol.. Plz help me out..

I'm absolutely new to Linux. I would like to know how to install Ubuntu alongside the pre-installed Windows 8+ OS.  Should I do it with Wubi, or through the Live USB/DVD?  What steps do I need to take to correctly install Ubuntu?


I have a p tag with fix width. If a long sentence came then that sentence should be sliced automatically like in the figures below.    So this sentence should show like this.     I tried many Css options like word-wrap and text-overflow but nothing work. Some makes width increase and some make other issues. I also tried overflow:hidden, this hides second line but did not add ... at the end of first line.

I have a webpage with an elastic layout that changes its width if the browser window is resized.  In this layout there are headlines (h2) that will have a variable length (actually being headlines from blogposts that I don't have control over). Currently - if they are wider than the window - they are broken into two lines.  Is there an elegant, tested (cross-browser) solution - for example with jQuery - that shortens the innerHTML of that headline tag and adds "..." if the text would be too wide to fit into one line at the current screen/container width?


I recently built another desktop computer with 3 drives, one of which is from my old computer. I want to move my Windows install to the new solid state drive without losing all of my files on the old drive. I have looked into image copying software but it all looks risky. My latest plan was to mount the Windows 10 ISO to a flash drive, uninstall my old drive, install Windows on the SSD, and then plug in my old drive and uninstall Windows from it.  Can anyone validate this plan or provide a possibly easier alternative?

Is there a free way to clone a full Windows 7 installation from HDD to SSD? (The free part is important, I know I can pay for Acronis True Image.)      SSDs are usually much smaller than HDDs which complicates matters. For instance, I have about 50GB data, my new SSD is 80GB but I still can't use Windows clone/restore system if my HDD is something like 300GB.  Therefore, I'm looking for a third party tool that will be able to:   Create a clone of my C: partition Store it onto an external USB drive Boot from some rescue / restore CD Load the image onto the new SSD   Acronis True Image seems like a tool that should support this but it's a paid-for software and the trial version cannot create clones. Acronis Migrate Easy is a fully functional tria for 15 days but need both the HDD and SSD connected at the same time which is a bit of a problem for me as a laptop user.  P.S. I almost got there combining Windows image backup combined with Acronis True Image restore CD (which can load .vhd's) but was not able to boot as some boot information were probably lost and could not be repaired using the Win7 installation DVD.


-bash: /root/.bashrc: line 100: syntax error near unexpected token `(' -bash: /root/.bashrc: line 100: `export PATH=/bin/lscript:/bin/lscript:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program Files/WindowsApps/CanonicalGroupLimited.UbuntuonWindows_1804.2019.521.0_x64__79rhkp1fndgsc:/mnt/c/Program Files (x86)/Common Files/Oracle/Java/javapath:/mnt/c/ProgramData/Oracle/Java/javapath:/mnt/c/Program Files (x86)/Intel/TXE Components/iCLS/:/mnt/c/Program Files/Intel/TXE Components/iCLS/:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/Program Files/Intel/TXE Components/DAL/:/mnt/c/Program Files (x86)/Intel/TXE Components/DAL/:/mnt/c/Program Files/Intel/TXE Components/IPT/:/mnt/c/Program Files (x86)/Intel/TXE Components/IPT/:/mnt/c/Program Files/Intel/WiFi/bin/:/mnt/c/Program Files/Common Files/Intel/WirelessCommon/:/mnt/c/Program Files (x86)/GtkSharp/2.12/bin:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program Files (x86)/QuickTime/QTSystem/:/mnt/c/Program Files/PuTTY/:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files/Git/mingw64/bin:/mnt/c/Program Files/Git/usr/bin:/mnt/c/Users/User/AppData/Local/Microsoft/WindowsApps:/snap/bin'

I am trying to download flareget download manager via wget I get error  wget  http://www.flareget.com/files/flareget/debs/amd64/flareget_2.3-24_amd64(stable)_deb.tar.gz bash: syntax error near unexpected token `('   Why is that error coming and what is the solution for that?


I'm trying to build a dc motor controller circuit as described .  But it requires 2 "150E" resistors  From looking online I believe this means 15 ohms but I'm curious as to why, and why I couldn't find anywhere explaining such.

I found on one schematic that has resistor with value 56E.  I don't know what does that mean.  Can you give me some information, please.


I'm trying to avoid having to write a large number of switch/case (or if/else) statements in one area of my code. Take the following method:  async internal static Task UndeleteAsync(JObject item, string tableName) {     switch (tableName)     {         case "QuoteTask":                var obj = item.ToObject<QuoteTask>();                var deletedObj = (await MobileService.GetTable<QuoteTask>().IncludeDeleted().Where(x => x.Id == obj.Id).ToListAsync()).FirstOrDefault();                await MobileService.GetTable<QuoteTask>().UndeleteAsync(deletedObj);                                 break;                //Only 26 more tables to go...                     }         }   This works well, but I have a ton of tables, I'm not too familiar with generics but I thought maybe something like this would work:  async internal static Task UndeleteAsync<T>(JObject item) {                 var obj = item.ToObject<T>();     var deletedObj = (await MobileService.GetTable<T>().IncludeDeleted().Where(x => (x as BaseObject).Id == (obj as BaseObject).Id).ToListAsync()).FirstOrDefault();     await MobileService.GetTable<T>().UndeleteAsync(deletedObj); }   This seems to be ok, it doesn't give me any compiler errors, but my issue is I can't seem to call it:  Type tableType = Type.GetType(operation.Table.TableName); await AzureMobileServices.UndeleteAsync<tableType>(operation.Item);   I get the error "tableType" is a variable but is used like a 'type'.  So I guess generics have to be identified at compile time. So I would have to have a massive switch/case or if/else statement to figure out the type anyway.  Can someone direct me towards an elegant way to do this? Or is there no way around it?

What's the best way to call a generic method when the type parameter isn't known at compile time, but instead is obtained dynamically at runtime?  Consider the following sample code - inside the Example() method, what's the most concise way to invoke GenericMethod<T>() using the Type stored in the myType variable?  public class Sample {     public void Example(string typeName)     {         Type myType = FindType(typeName);          // What goes here to call GenericMethod<T>()?         GenericMethod<myType>(); // This doesn't work          // What changes to call StaticMethod<T>()?         Sample.StaticMethod<myType>(); // This also doesn't work     }      public void GenericMethod<T>()     {         // ...     }      public static void StaticMethod<T>()     {         //...     } }


It is said that boiling occurs only when the vapour pressure becomes equal to the pressure surrounding the vapour (say atmospheric pressure).   Why does it take place only satisfying these conditions ? They say that it is only in this condition that equilibrium between phases takes place.   If so, doesn't the continued heat supply cause a change in the equilibrium ??

Given that the boiling point of a liquid is the temperature at which the vapor pressure is equal to the ambient (surrounding) pressure, what significance does a liquid's vapor pressure have in the formation of bubbles that happens at and above the boiling point?    The definition of boiling point seems to imply that the pressure inside of the bubbles must be at least as great as the liquid's vapor pressure in order to balance the outside pressure, but is there any particular reason why the pressure inside of the bubbles is related to the vapor pressure?    The vapor pressure seems to be a measurement describing the tendency of the molecules to escape from the surface of the liquid, but I don't see how that relates to bubble formation within the liquid.  This question has bothered me for a while, so any help would be much appreciated.