i'm trying to install putty and i got the following error   E: Malformed entry 4 in list file /etc/apt/sources.list.d/additional-repositories.list (Component) E: The list of sources could not be read. E: Malformed entry 4 in list file /etc/apt/sources.list.d/additional-repositories.list (Component) E: The list of sources could not be read.   after going through some posts on this forum . i opened the file using sudo nano /etc/apt/sources.list.d/additional-repositories.list i have the following content  deb [arch=amd64] https://download.docker.com/linux/debian    sylvia    stable deb [arch=amd64] https://download.docker.com/linux/debian    sylvia    stable deb [arch=amd64] https://download.docker.com/linux/ubuntu    sylvia sudo add-ap$ deb [arch=amd64] https://download.docker.com/linux/ubuntustable deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable   i created a space between ubuntu and stable in line 4 . but still got the sane error? what is wrong with it ?  P.S:- While getting my hands on first time on docker, i uninstalled some packages which i don't need . so, i would like to remove all docker files and install freshly for linux mint.
I'm relatively new to Ubuntu 16.04, and everything has been going fine until my OS threw this error today.   Below is the source code from /etc/apt/sources.list for line 54:  deb http://archive.canonical.com/ partner   I have tried appending ubuntu after the / and before partner, but this does not seem to work.   Any ideas what else to try? I can't run sudo apt-get update until this is fixed.
How to upload a file of size 2GB from Apex? Is there any sobject that I can make use of? One problem I have found when learning calculus is that there are many different ways to denote the derivative. If $y=f(x)=x^2$, then we could write \begin{align} f'(x)&amp;=2x \\ y'&amp;=2x \\ \frac{df}{dx}(x)&amp;=2x \\ \frac{df(x)}{dx}&amp;=2x \\ \frac{d}{dx}f(x)&amp;=2x \\ \frac{dy}{dx}&amp;=2x \end{align} And this is just Lagrange and Leibniz's notations alone. What I find troubling is that they all seem to be suggesting subtly different things about what the derivative actually is. Is it a function, a limit of a quotient, or both? In the interests of keeping my post brief, I'll focus my attention on $f'(x)=2x$ and $\frac{dy}{dx}=2x$, as these seem to be the most common notations.  $$ f'(x)=2x $$  It does make sense to think of the derivative as the gradient function: $$ f'\colon x\mapsto\lim_{\Delta x \to 0}\frac{f(x+\Delta x)-f(x)}{\Delta x} $$ In this case the limit expression is equal to $2x$, and so we can write $$ f' \colon x \mapsto 2x $$ However, this notation seems a little counter-intuitive when we consider what it means to differentiate a function with respect to a variable other than $x$. If I ask what is the derivative of $f(x)$ with respect to $\frac{x}{2}$, does this question make sense? Is it simply $f'(\frac{x}{2})$? Or do we have to express $x^2$ in terms of $\frac{x}{2}$? And how can we can express this derivative using Lagrange's notation?  $$ \frac{dy}{dx}=2x $$  There are many things which are nice about Leibniz's notation, including the fact that it is explicit which variable you are differentiating with respect to. However, in this case, it is unclear whether we are talking about a function, or something else entirely. There are other issues. Some people say they dislike the Leibniz formulation of the chain rule $$ \frac{dy}{dx}=\frac{dy}{du}\frac{du}{dx} $$ saying that they find it to be inaccurate. I don't really understand why this is the case. Could someone please elaborate? I'm using a flow to set a field to a certain value (01, 02, 03) depending on the value of another field on the same record. I initially wanted to do it with process builder but because of the mapping it seems I would need three 'criteria nodes' or a formula field. Furthermore, it seems Salesforce is recommending using flows instead of process builder for before update actions as it is faster.  The problem with Flows is that I found a way to trigger it when the record is new or updated but not when the specific field is changed so it triggers every time the whole record is updated even when the field stay the same.  On Process Builder, you can use isChanged and then call the flow with specific record but that kinds of defeat the point of using flows for before Update.  So is there a possibility to do the same thing directly in flow ?  Thank you for the help ! Building a graph from OSM? I spent days looking in all questions here and trying tutorials. I need to build a graph for a region (It will be my input in simulation) I downloaded Postgresql and Postgis and osm2pgsql. Now i can load .osm files into a database. I want to have a complete database with roads ids so i can generate a table of edges and nodes then build my graph  nodes = intersections and edges = roads for a city using python.  Please any detailed help with steps.I saw a lot of keywords (Postgresql/postgis, Networkx, QGIS ..) but i couldn't manage to assemble a good tutorial  I am a very beginner. How can I quickly create a large file on a Linux () system?   will do the job, but reading from /dev/zero and writing to the drive can take a long time when you need a file several hundreds of GBs in size for testing... If you need to do that repeatedly, the time really adds up.  I don't care about the contents of the file, I just want it to be created quickly. How can this be done?  Using a sparse file won't work for this. I need the file to be allocated disk space. Proving $\mathbb{Q}$ isn't homeomorphic to $\mathbb{Z}$ If you have to provide some initial troubleshooting support by phone [or email], and you don't have access to the user's PC itself, what is the easiest and most foolproof question one can ask of the user to find out if the 'dumb' user is using either Windows 7 or Windows Vista?  For example: determining if the user has either Windows XP or Windows Vista/7 is easy. Just ask the user if the button at the left bottom corner is (a) either square with the word 'Start' on it, or (b) it is a round button.   But how do you determine the difference between Vista and 7?  Edit: For all the existing answers the user has to type something, and do it correctly. Sometimes even that is already hard for a computer illiterate user. My XP example just requires looking. If it exists (although I am afraid it doesn't), I think a solution that is just based on something this is visually different between Vista and 7 would stand above all others. (Which makes Dan's suggestion to turn over the box and look at the label" not so stupid). Perhaps the small 'show desktop' rectangle at the right side of the task bar (was that present in Vista)? Unable to locate package How to schedule jobs in Sql server 2008 for less than 10 sec? I want to run a job every 3 seconds, however in SQL Server 2008 we cannot define an interval of less than 10 seconds.  The job is used to insert/update visitor information, and segmentation information into a database which is tracked by google search.   There are up to about 100 rows inserted in a 2 or 3 seconds. That job inserts and update the table in a database. Is there any way to schedule it using sp job scheduling configuration? Hello can someone give me short tutorial how to:   Remove Windows 7 from my dual boot system (Ubuntu/Windows7) Let me use free space as new partition for data (so I don't need to extend Ubuntu itself here) Remove windows 7 option from boot screen   Update:  Thanks to Lekensteyn answer I successfully deleted windows. Now I created new partition (formatted to ext4), but I can not use it. I cannot copy files there, only as root.  Also when booting, Ubuntu complains it didn't find /windows partition (of course it didn't, I removed it). I feel like I should update some tables or what, any ideas? Rogue DHCP Server Can't be found Over the last 3-4 weeks I have been trying to find a rogue DHCP server on my network but have been stumped! It is offering IP Addresses that do not work with my network, so any device that needs a Dynamic Address is getting one from the Rogue DHCP and then that device stops working. I need help to find and destroy this thing! I think it might be a Trojan of some sort.  My Main Router is the only valid DHCP Server and is 192.168.0.1 which offers a range of 192.160.0.150-199, and I have this configured in my AD as Authorized. This ROGUE DHCP claims to be coming from 192.168.0.20 and offering an IP Address in the range of 10.255.255.* which is messing up EVERYTHING on my network unless I assign a static IP Address to it. 192.168.0.20 does not exist on my network.  My network is a single AD Server on Windows 2008R2, 3 other physical servers (1-2008R2 and 2 2012R2) about 4 Hypervisor VM's, 3 laptops and a Windows 7 box.  I can't ping the rogue 192.160.0.20 IP, and I can't see it in the ARP -A output, so I can't get its MAC address. I'm hoping that someone reading this post has come across this before. Should the downvoters/upvoters have enough reputations on all the tags of the question/answers? I'm mainly a C# developer, but I'm currently working on a project in Python.  How can I represent the equivalent of an Enum in Python? This question is from a set of optional, much harder problems from my first year analysis course, but the subject material is norms on $\mathbb R^K$.  (c) Show that there exists a constant $C &gt; 0$ such that for all $\mathbf x ∈ \mathbb R^k$, $||\mathbf x||\le C||\mathbf x||_\infty$  Hint: Use the standard unit vectors to write $\mathbf x = x_1\mathbf e_1 +. . .+x_n \mathbf e_n$, and use the triangle inequality.  (d) Show that there also exists a constant $c &gt; 0$ such that for all $x ∈ \mathbb R^k$, $||\mathbf x||_\infty \le c||\mathbf x||$  Hint: If it isn’t true, then you can find a sequence $⟨\mathbf x_n⟩$ such that $||\mathbf x_n||$ is bounded but $c_n := ||x_n||_∞ → ∞$. (Why?) Think about the sequence $⟨\mathbf x_n/c_n⟩$. The Bolzano-Weierstrass theorem may be of assistance.  Note that the unspecified norm represents any norm for $\mathbb R^k$. I've done part c), but am stuck on part d). I've had a look for proofs on other questions on MSE, but none of them seem relevant to the hint given, and frequently the terminology is too advanced for me.  I tried considering the case if it isn't true, as suggested, but I can't see how to bound any sequence using that. Any help would be much appreciated. I have a  and I connected it to my servo () per these details:   PIC pin 1 to positive pin 8 to negative pin 2 to servo red wire (signal) servo brown wire to negative servo orange to positive (servo has three colors: brown, red and orange wires)   I programmed PIC with this code:      #include &lt;xc.h&gt;     #define _XTAL_FREQ 20000000     #pragma config WDTE=OFF , BOREN=OFF , PWRTE=ON , MCLRE=OFF , FOSC=INTRCIO      void main(){     TRISIO = 0b0000000;     GPIO = 0b000000;         while(1==1){             GPIO = 0b000000;             __delay_ms(1);             GPIO = 0b111111;             __delay_ms(19);         }  }   But servo does not move a bit. What is the problem?  Edit: i found out it rotate servo arm very fast to its end(the point it couldn't rotate any more then it sound like tick tick tick .....)  i changed my code to this(to reverse it back):              GPIO = 0b000000;             __delay_ms(1);             GPIO = 0b111111;             __delay_ms(19);             GPIO = 0b000000;             __delay_ms(2);             GPIO = 0b111111;             __delay_ms(18);   but it behave the same. I'm currently in the process of making a custom map and I want to add blocks that can only be placed on a certain colour clay.  This is the command I tried using.  /give @p cobblestone 1 0 {CanPlaceOn:["hardened_stained_clay"],Damage:3}   However, even with this command the cobblestone can be placed on any colour of stained clay. What command can I use for placing only on a certain block? How To quickly do derivatives with respect to matrices Whats a quick way to work the below (and problems similar) out?   For me to take this derivative it involves a lot of time and boring calculation, there has to be a better way.    This is taken from the solutions to Chris Bishop's Pattern Recognition and Machine learning: Intuitive explanation of the inverse square power $\frac{1}{r^2}$ in Newton's law of gravity Deriving Newton's Third Law from homogeneity of Space Why do carnivores evolve? If humans can live without consuming other animals, then why do we do it? From a biological point of view, why do we eat meat? I would also extend the question to other animals because many animals are carnivorous: why did carnivory evolve and why do animals eat meat?