I am new to Ubuntu and not well versed with its functioning.  I was trying to upgrade my git version and a few other things but I am constantly getting an error as shown in the image below due to some python3.6 minimal or python3.6.    My Ubuntu version is 14.04 and a few days back I tried to upgrade my python version from 2.7 to 3.6 but I believe I failed as when I type python -V in terminal, I am still getting 2.7.2 and on typing python3 -V, its showing 3.6.0.  I believe the problem is something related to multiple versions. Please help me out.
I can't update my system because it freezes while installing a third-party update (zramswap-enabler)! Sometimes I get the following message in Update manager:  Could not initialize the package information An unresolvable problem occurred while initializing the package information. Please report this bug against the 'update-manager' package and include the following error message: E:The package zramswap-enabler needs to be reinstalled, but I can't find an archive for it.  I tried to remove the zramswap-enabler, but it's impossible because I get the following message: dpkg: error processing zramswap-enabler (--remove):  Package is in a very bad inconsistent state - you should  reinstall it before attempting a removal. Errors were encountered while processing:  zramswap-enabler E: Sub-process /usr/bin/dpkg returned an error code (1)  Actually I would really reinstall that package, but it is unable to do it! If I remove this third-party PPA then the system is warning me about a very very serious problem. So why can I not install/reinstall/remove/update this package and why freezes the updater if I try to update?
What is the difference between char * const and const char *? Unable to check a mdadm RAID1 array, says the file system's read only? I recently migrated a RAID1 from a CentOS 5 system to a CentOS 6 system and ever since when I attempt to perform a check I get the following:  $ echo 'check' &gt; /sys/block/md127/md/sync_action -bash: /sys/block/md127/md/sync_action: Read-only file system   This actually shows up from a CRON too, specifically, /etc/cron.d/raid-check. this is included in the mdadm RPM:  $ rpm -ql mdadm | head -5 /etc/cron.d/raid-check /etc/rc.d/init.d/mdmonitor /etc/sysconfig/raid-check /lib/udev/rules.d/63-md-raid-arrays.rules /lib/udev/rules.d/65-md-incremental.rules   Here I'm running the same command that's used by the CRON:  $ raid-check /usr/sbin/raid-check: line 96: /sys/block/md127/md/sync_action: Read-only file system   This typically runs once a week and sends an email which is what originally alerted me to the issue. But at any rate I'm at a loss why this RAID seems to be unable to be checked.  The RAID seems fine on inspection though.  $ cat /proc/mdstat  Personalities : [raid1]  md127 : active raid1 sda1[0] sdb1[1]       976759936 blocks [2/2] [UU]  unused devices: &lt;none&gt;   I point this out only because while googling I found this thread regarding a bug in mdadm but this was for a older version of mdadm.      Version info  $ lsb_release -d Description:    CentOS release 6.6 (Final)  $ rpm -q mdadm mdadm-3.3-6.el6_6.1.x86_64  $ mdadm --version mdadm - v3.3 - 3rd September 2013 Language Options -> Spell Checking in Windows 10 version 1803 Counting surjective functions We have $r$ objects and $n$ boxes. I have to count all the combinations possible if the objects and boxes could be both different. If that happens I can count the number of variations from $n$ to $r$ (number of functions between objects and boxes). I mean, $n^r$.  But if I have to count all the combinations possible if anyone of the boxes is empty ($r\ge n$). Now I have to count the surjective functions.  For example if I have $r$ objects and 1 box. The number of surjective functions is 1. Then, if I have $r$ objects and 2 boxes, the number of surjective functions is $2^r-2$. And finally if I have $r$ objects and 3 boxes, I will count $3^r-2\cdot[3\cdot2^r-3]$. How do I get the formula for $r$ objects and $n$ boxes? I want to resolve merge conflicts in my Git repository. How to do that ? jQuery :first vs. .first() Environment variables in Mac OS X Update: The link below does not have a complete answer. Having to set the path or variable in two places (one for GUI and one for shell) is lame.  Not Duplicate of:     Coming from a Windows background where it's very easy to set and modify environment variables (just go to System Properties > Advanced > Environment Variables), it does not seem to be that straight forward on Mac OS 10.5. Most references say I should update /etc/profile or ~/.profile. Are those the equivalent of System Variables and User Variables? For example, where should I set my JAVA_HOME variable?    EDIT:  I want to be able to access the variable from the terminal as well as an app like Eclipse. Also, I hope I don't have to restart/logout to make this take effect. Encopresis, I'm at my wits end? Does anybody have suggestions? using System; using System.Security.Permissions; using Microsoft.SharePoint; using Microsoft.SharePoint.Security; using Microsoft.SharePoint.Utilities; using Microsoft.SharePoint.Workflow;  namespace Change_Title_Event.Change_Title {     /// &lt;summary&gt;     /// List Item Events     /// &lt;/summary&gt;     public class Change_Title : SPItemEventReceiver     {        /// &lt;summary&gt;        /// An item is being added.        /// &lt;/summary&gt;        public override void ItemAdding(SPItemEventProperties properties)        {            properties.AfterProperties["Title"] = "Kevin: Changed by event receiver at" + DateTime.Now.TimeOfDay.ToString();            base.ItemAdding(properties);        }       } }   Where simple example, which works perfect on my local Sharepoint 2010. It is sandboxed.  But when I package this solution, it do not work on Sharepoint Online. I does not give any Errors either.  I think I am doing something wrong, something simple, but I can't simply find anything on Google about it.  Here is another who asks on the MSDN forum, but gets a very wierd reply, that I do not understand. Road Front Derailleur / Shifter Tuning I've recently converted into 2spd crankset so I've bought a new 2spd road lever. I'm really struggling now to tune the front derailleur. Could you please assist me by answering this questions:   Why the shifter does 2 clicks instead of 1 when you go up? Is that normal? It's 2spd shifter isn't it supposed to have only 1 click? And at the same time ... When I do one click up with the shifter the derailleur moves but always seems like not far enough so I need go up for another click, which leads to ... When I try to go down the gears and I release the shifter that was clicked 2 times it goes all 2 click at once and the derailleur makes this ugly very loud clutch back to the first gear. It doesn't sound right at all.   Can you tell me what am I doing wrong here? I guess I'm missing something very important here, but I don't know exactly what.  I watched bunch of youtube instructions on how to properly tune a front derailleur, but I still facing the same problem over and over again.  Thank you in advance, and please ask if the question is not clear enough. I am trying to solve the following two problems:  1) Prove that the functions $\cos(z)$, $\sin(z)$ are surjective over the complex numbers.  2) Find all $z \in \mathbb C$: $cos(z) \in \mathbb R$ and find all $z \in \mathbb C$: $\sin(z) \in \mathbb R$.  For 1),I've tried to prove it for the function $\cos(z)$ (I suppose the other one is analogue)  so I've used the fact that $\cos(z)=\dfrac{e^{iz}+e^{-iz}}{2}$.  Let $w \in \mathbb C$, I want to show there exists $z \in \mathbb C : f(z)=w$, i.e., $\dfrac{e^{iz}+e^{-iz}}{2}=w$, multiplying by $2$ and then by $e^{iz}$ yields $e^{2iz}+1=2we^{iz}$ iff $e^{2iz}-2we^{iz}+1=0$.   I don't know if this approach is the correct one but here I've replaced $e^{iz}$ by $x$, so the solutions of the equation would be the roots of the polynomial $p(x)=x^2-2wx+1$, by the quadratic formula, I get that $x \in \{\dfrac{2w+w_0}{2},\dfrac{2w-w_0}{2}\}$, where $w_0^2=4w^2-4$.  Then, $e^{iz} \in \{\dfrac{2w+w_0}{2},\dfrac{2w-w_0}{2}\}$. At this point I got lost, I would like to explicitly show that $z$ exists and I can't see existence directly from the fact that $e^{iz}=\dfrac{2w+w_0}{2}$ or $e^{iz}=\dfrac{2w-w_0}{2}$.  First I thought of taking logarithm of both sides of the equation ir order to solve for $z$, but this is not a legitimate operation unless $e^{iz} \in \mathbb R$.   I couldn't go any farther.  For point 2) I have no idea what to do, should I use the identity $\cos(z)=\dfrac{e^{iz}+e^{-iz}}{2}$?  I would appreciate some help with the two points (specially with point 2), at least in 1) I could do something).   Btw, Happy new year! Minecraft looks like a bad texture pack I am playing Minecraft 1.12 but today the in-game textures look much lower quality than usual. I don't have any of the super secret settings turned on, and I'm unsure how to fix this and get the normal textures back. Why $\gcd(qb+r,b)=\gcd(b,r)$? How do i test capacitors? I've just gotten through replacing capacitors on a trio of dead LCD screens (nothing's blown up yet, so far) - they either had one or two capacitors on their inverter circuit SLIGHTLY bloated, and not quite leaky. I ended up replacing all capacitors of the same brand/'colour', even the ones that looked fine, in case.  Now, checking a bad resistor is simple - i can use a standard multimeter to test it, and i tend to check my solders with the continuity testing option of the multimeter.  How would i test a capacitor ? Is there some standard, common way to test one? Windows Managers vs Login Managers Vs Display Managers Vs Desktop Environment I posted a  and noticed people weren't distinguishing correctly between many of these things: Windows Managers vs Login Managers Vs Display Managers Vs Desktop Environment.  Can someone please clear this up, i.e. tell us the difference between them and how they are related perhaps?  What category does Xorg fall under?  What about Gdm/Kdm/Xdm?  People also talk about X.  What is X? Regulated AC power supply? Can I play Minecraft Java if I only buy the Windows 10 version I do not own Minecraft outside my PS4, I know I can't play either Windows 10 or Java with that purchase. However, my primary computer is Linux and only supports the Java edition, and its past the deadline to get a redeem code for Windows 10 edition if I purchase the Java Edition.    Can I purchase the Windows 10 edition and use that purchase to login and play on the Java edition? I have damaged the screen on my phone, so much so, it will not allow me to get the data to transfer onto my laptop. On opening Samsung Kies, it is saying that the connected device is locked. Please enter password on the connected device. I can only assume its the pattern lock they are referring to as I have managed to unlock the sim.  As I am unable to do this due to the screen being cracked, I wondered whether there is any other way of doing this, before sending the same onto my insurance company, as they are saying that I will lose all the data! Cant see why seeing as its just the hardware that is damaged and not the software. Do any clones refuse Order 66? When the clones are issued      telling them to turn on the Jedi,    do any of them refuse to carry out the order? Should "Applied Cryptography" be capitalized? Is it a proper noun? I'm trying to write a cover letter for a fairly prestigious job, and I'm aiming for (arguably too much) perfection in my cover letter. I don't want to be turned away only because the hiring people though I was too careless with my punctuation and capitalization.  My sentence goes as follows:     I hope to one day go on to complete a Masters degree in Computer Science with a focus in Applied Cryptography.   I've never been great with the technical rules of the English language, despite being a native speaker.