How Get Client IP. MAC. PC name use wcf4 (tcp/ip mode)
Obtaining client IP address in WCF 3.0
Find the number of solutions to $ \lfloor x \rfloor + \lfloor 2x \rfloor + \lfloor 4x \rfloor + \ldots + \lfloor 32x \rfloor =12345$ Find the number of solutions of the equation    $$\lfloor x \rfloor + \lfloor 2x \rfloor + \lfloor 4x \rfloor + \lfloor 8x \rfloor + \lfloor 16x \rfloor + \lfloor 32x \rfloor =12345,$$   where $\lfloor\,\cdot\,\rfloor$ represents the floor function.   My work: I use the fact that $$\lfloor nx \rfloor =\sum_{k=0}^{n-1} \left\lfloor x +\frac kn \right\rfloor.$$ So the equation becomes $$\lfloor x \rfloor +\sum_{k=0}^{1} \left\lfloor x +\frac k2 \right\rfloor +\sum_{k=0}^{3} \left\lfloor x +\frac k4 \right\rfloor +\sum_{k=0}^{7} \left\lfloor x +\frac k8 \right\rfloor   \\ \qquad {}+\sum_{k=0}^{15} \left\lfloor x +\frac k{16} \right\rfloor +\sum_{k=0}^{31} \left\lfloor x+\frac k{32} \right\rfloor   \\ = \lfloor x \rfloor + \left\lfloor x+\frac 12 \right\rfloor + \left\lfloor x+\frac 64 \right\rfloor + \left\lfloor x+\frac{28}{8} \right\rfloor   \\ \qquad {}+ \left\lfloor x+\frac{120}{16} \right\rfloor + \left\lfloor x+\frac{496}{32} \right\rfloor$$  What should I do next? Automatic pyqgis categorized renderer classification I have some layers in my project and I would like to alter their styles, since ranges of values for underlying columns have changed.  Normally it would require to enter each layer style settings separately and trigger "Remove All", and "Classify" button, however I would like to execute it from the code.   I found such method for graduated symbol:  renderer.updateClasses(layer,0,bins)   ,however I'm having trouble to find corresponding method for categorized symbol class  Is there any way to do this from pyqgis without the need to specify the layer style from the scratch (create category, label etc.) ? Some equivalent of "Classify" button from below screenshot: Probability of flipping coin What is the probability of obtaining THT before HHH when a toss is tossed sequentially? Could someone solve using state diagram and law of total probability? How to determine capacitance I’m looking to install a capacitor in a circuit which runs at 12V and &lt;10A, and I want it to discharge in about 3 seconds.   The discharge voltage isn’t too important, but it’s probably best if it is as high as possible (not higher than 12V if that is even possible) for those 3 seconds.  The discharge time can be longer but probably should have an absolute minimum of 1.5 seconds.   Sorry if this sounds like gibberish. If I'm not giving enough info, please let me know what else i need to provide. I’m not an electrical guy; just working on a project and have no clue what I'm doing. How can I make a div not larger than its contents? I have a layout similar to:  &lt;div&gt;     &lt;table&gt;     &lt;/table&gt; &lt;/div&gt;   I would like for the div to only expand to as wide as my table becomes. This  shows the dual cone of $K = \{(x,t) \mid \| \boldsymbol{x} \|_1 \le t \}$ is $K^{*} = \{(x,t) \mid  \| \boldsymbol{x} \|_{\infty} \le t\}$. Is it right? How is it proved? Why the definition of limit have a strict inequality rather than not? My question is why the definition of limit of sequence is for $\epsilon &gt;0$, there exist $N$ st for $n\ge N$ that $|x_n-L|&lt;\epsilon$ instead of $|x_n-L|\le \epsilon$ java.net.SocketException: Connection reset I have had the last Ubuntu distro (10.something) installed for a year and love it.  But I have run in to an issue when I tried to upgrade it to the latest one it did not work and there has come some serious issues now with almost everything and I want to remove Ubuntu completely and install the new one.  How can I remove the operating system (I don’t mind formatting the whole thing if that’s what’s needed). Say there are $m+n$ elements split into two groups ($m$ and $n$). The variance of the first group is $\sigma_m^2$ and the variance of the second group is $\sigma^2_n$. The elements themselves are assumed to be unknown but I know the means $\mu_m$ and $\mu_n$.  Is there a way to calculate the combined variance $\sigma^2_{(m+n)}$?   The variance doesn't have to be unbiased so denominator is $(m+n)$ and not $(m+n-1)$. Check if antiderivative is elementary I was experimenting with various integration techniques, and I stumbled upon the integral:  $$ \int{\frac{\tan{x}}{x} dx} $$  I tried using a number of methods, but I could not solve it. Checking on WolframAlpha, I found that the integral does not have an elementary antiderivative. However, I am not satisfied with simply assuming it's non-elementary if I have difficulty in solving it.   My question: Is there a test to determine if an antiderivative is elementary or not? For some reason, when I try to run any programs (I am trying to run a rootkit hunter: rkhunter) as root on the command line with sudo like this:  sudo rkhunter   Then I get this message:  You must be the root user to run this program   and then I get these lines:  sudo: error in /etc/sudo.conf, line 0 while loading plugin 'sudoers_policy' sudo: /usr/lib/sudo/sudoers.so must only be writable by owner sudo: fatal error, unable to load plugins   I try typing in just sudo but that comes up with the same three errors as above. Also in /etc/ sudo.conf does not exist.  I cannot run any other programs as root through sudo. It was also strange because I could run as root a day ago. I would like it to work.  Just so you know, I am the only user of this computer, and the administrator, running Lubuntu 14.04.1. "Unable to locate package sudo" when i try to install sudo on new Debian No Wi-Fi on iPhone? In my iPhone settings where I'm supposed to turn Wi-Fi on or off, it is just grey &amp; says 'No Wi-Fi'.  I have reset network settings, restored phone, re-synced everything, but still have this problem. Does anyone know how to fix this? Keyboard shortcut to autocomplete the user in comments How can I extract text from images?  I am not talking about scanned files, but garden variety images, such as when you take a high-def picture of a blackboard at class, and it is nicely handwritten; or when you photograph a page from a recipe book and want the recipe in text format.  Any free and open software for that?  I tried tesseract, and the results were awful. Why $(a+d)(b+c)$ equals $-16$? If $a,b,c$ and $d$ satisfy the equations:$$a+7b+3c+5d=0$$$$8a+4b+6c+2d=-16$$$$2a+6b+4c+8d=16$$$$5a+3b+7c+d=-16$$ then $(a+d)(b+c)$ equals $-16$.   I can't understand why $(a+d)(b+c)$ equals $-16$? Get the name of an object's type For what natural numbers is $n^3 < 2^n$? Prove by induction Problem  For what natural numbers is $n^3 &lt; 2^n$?  Attempt @ Solution   For $n=1$, $1 &lt; 2$ Suppose $n^3 &lt; 2^n$ for some $n = k \ge 1$ It looks like the inequality is true for $n = 0$, $n = 1$ and $n\ge10$ But, how can I prove this through induction? Package Cache File corrupted From advice on  , I've opened a new question about the same issue, as it turned out my problem was not the one described in the question, information I did not know at the time. I'm running Ubuntu 16.04.  $ sudo apt-get update  Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease Get:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB] Get:3 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB] Get:4 http://archive.ubuntu.com/ubuntu xenial-security InRelease [102 kB] Get:5 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [307 kB] Get:6 http://archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [226 kB] Get:7 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [185 kB] Get:8 http://archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [268 kB] Get:9 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [5,888 B] Get:10 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3,324 B] Get:11 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [4,712 B] Get:12 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [62.7 kB] Get:13 http://archive.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [71.2 kB] Get:14 http://archive.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [51.3 kB] Get:15 http://archive.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [85.1 kB] Fetched 1,578 kB in 1s (1,529 kB/s)                                     Reading package lists... Error! E: Read error - read (5: Input/output error) W: You may want to run apt-get update to correct these problems E: The package cache file is corrupted   If there's any more information you need, don't hesitate to ask in the comments.  Edit 1:  $ sudo df -h Filesystem      Size  Used Avail Use% Mounted on udev            5.9G     0  5.9G   0% /dev tmpfs           1.2G  9.4M  1.2G   1% /run /dev/sda1       135G  7.2G  121G   6% / tmpfs           5.9G   14M  5.9G   1% /dev/shm tmpfs           5.0M  4.0K  5.0M   1% /run/lock tmpfs           5.9G     0  5.9G   0% /sys/fs/cgroup tmpfs           1.2G   88K  1.2G   1% /run/user/1000 /dev/sdb1       932G  300G  633G  33% /media/adoria298/MDrive1   Edit 2 SMART Test results: