How to find out how many lines of code have been written in a .Net project
How do you count the lines of code in a Visual Studio solution?
How to set custom DNS server for Chrome browser? I have a local DNS server that resolves all URLs *.domain.tld to 127.0.0.1. Also, I have the production server with the same address *.domain.tld. They have the same names, because subdomains interact with each other, and I have hardcoded domain URLs. I can't change them in the production server.  The problem is to reach the production server from my developer computer without touching the DNS server and /etc/hosts.  I found some options for Chrome such as --dns-server, --host-rules, but none is working. I have Google Chrome 23.0.1271.64 and Chromium 22.0.1229.94 on Ubuntu 12.10 64-bit. When does SQLiteOpenHelper onCreate() / onUpgrade() run? How do I set up a Cron job? I want to schedule a task to run on a regular basis and have heard that Cron is the way to do this.  How do I add Cron jobs in Ubuntu? Is there any app for Stack Exchange? Is there any app available in the Android Market for Stack Exchange sites? One or more of the following things happened to me on a Stack Exchange site:   My post(s) were wrongly deleted or locked by a moderator A moderator posted a wrong comment on one of my posts I was suspended, but did not do anything wrong I asked a meta question, but the question was closed and/or deleted A moderator discredited me in public ...   I think a moderator has abused their power, but I feel powerless against them.  What recourse do I have now? What can I do when I feel that a moderator has abused their power, and has been repeatedly unfair in their dealings with me? In  (scrolled to 5:55) there's a claim that replacing an AC high voltage transmission line with a high voltage DC transmission line allows for having seven times fewer powerlines (the video shows how seven lines evaporate, then one line appears and the cutting in the forest gets narrower).  How is that possible? I've read the  and it claims that     The power delivered in an AC system is defined by the root mean square (RMS) of an AC voltage, but RMS is only about 71% of the peak voltage. The peak voltage of AC determines the actual insulation thickness and conductor spacing.   but that doesn't explain seven times less power lines.  How is such massive (seven times) saving possible when switching from AC to DC transmission? How can I change the default location for bluetooth file transfers? I have an Android 2.3 device (Samsung Galaxy Y Duos, S6102) and want all files that I receive via bluetooth to save to my SD card.  How can I do that? I am working on a print for my wall and I am trying to create something like this:      I have already created the letters in Illustrator and now I am adding the colors in Illustrator and then exporting everything to Photoshop and then using the liquify tool to blend the colors to create a similar effect. I also used the healing patch tool to blend in the hard edges.  Is that the right way of doing it? Or is there another way? Why would using higher ISO and faster shutter speed yield more noise than using lower ISO and slower shutter speed? A function $f : I \rightarrow \mathbb R$ on an interval $I$ is convex   if $f((1-t)x+ty)\le (1-t)f(x)+tf(y), \forall x,y \in I, t \in [0,1]$      Assume now that $I$ is an open interval.  Show that if $f$ is convex   then for each $c \in I$ there exists $m \in \mathbb R$ such that $m(x  − c) + f(c) \le f(x)$ for all $x \in I$ , and if in addition $f$ is   differentiable at $c$ then $f'(c)$ is the unique $m$ that works. In   general, must m be unique?   (we have previously shown that convex functions are continuous)  I think I'm missing the point of the question.  Surely, by the mean value theorem we can find some $y\in (x,c)$ such that $f'(y)=\frac{f(x)-f(c)}{x-c}$ setting $m=f'(y)$ we get $m=\frac{f(x)-f(c)}{x-c}, m(x-c)+f(c)=f(x)$ such an $m$ fits the inequality we're asked to show.  I also cannot see why $f'(c)$ would be the unique solution or why we would ever get a unique solution of the inequality at all for that matter.  Clearly I'm misunderstanding the question, so if someone could point out where I would appreciate that.  Thank you How to ignore spaces before footnotes Where do I put item tags on items inside a chest or your inventory? I am making a Minecraft Mini Game adventure map, and one of the levels has a /setblock command, I am using the command in a way to spawn an item in a chest (Wooden Button) I need the wooden button to have CanPlaceOn tag so it can be placed on a log. I have tried this command: setblock 294 5 -1251 minecraft:chest 0 replace {Items:[{Count:1,Slot:0,id:minecraft:wooden_button,CanPlaceOn:[log]}]}` Traffic (views, visits) is not correctly registered on Site Analytics or Area 51 Shuffle an array with python, randomize array item order with python What's the easiest way to shuffle an array with python? The diagonalizable matrices are not dense in the square real matrices I have this problem as part of a school assignment:  NOTE: In case it's hard to read in the image above, here's the directory tree: $ tree . `-- sample_dir1     `-- sample_dir         |-- admin         |-- cambridge         |   |-- cafeteria         |   |-- library         |   `-- security         |       |-- annex         |       |-- building         |       `-- parking         |-- faculty         |-- history.exe         |-- markham         |   |-- annex         |   |-- building1         |   `-- parking         |-- oxford         |   |-- outline.doc         |   |-- programming         |   |   `-- report.pdf         |   `-- security         `-- stenton             |-- gen_ed             `-- lib_arts                 |-- english.txt                 `-- match.doc  15 directories, 11 files  I tried doing the command: $ cp ../cambridge/security/parking ./parking2  ...but it isn't working. The question in the image above states that the current directory is stenton, and that we need to make a copy of the file named parking (from the security directory), and to name the new file parking2, and place it in the current directory, stenton, using relative pathnames. What am I doing wrong? My cp command seems to be correct. Winsock2's select() on fd 0 (stdin) fails If $2^n+1$ is prime, why must $n$ be a power of $2$? A little bird told me that if $2^n+1$ is prime, then $n$ is a power of $2$. I tend not to trust talking birds, so I'm trying to verify that statement independently.  Suppose $n$ is not a power of $2$. Then $n = a \cdot 2^m$ for some $a$ not a power of $2$ and some integer $m$. This gives $2^n+1 = 2^{a \cdot 2^m}+1$. Now I suspect there's a way to factor that, but I don't see how. Can someone give me a hint? Question 1: Let $x,y \in S$ such that $x\sim y$ if $x^2 =y^2\pmod6 $. Show that $\sim$ is an equivalence relation.    This is what I tried: Reflexive: $x^2\pmod6 = x^2$  implying $x\sim x$ Symmetry: suppose $x\sim y$, then  $x^2 =y^2\pmod6$ Operating by inverse of $x^2$ both sides we have $e=(x^2)^{-1} y^2\pmod6$ Then I have $y^2=x^2\pmod6$, hence $y\sim x$ I would like to get some corrections up to here because am not sure with this     Question 2. Find the orbits of the given permutation:    $$v:\mathbb{Z}\to\mathbb{Z}\quad\text{ defined by }\quad v(n)=n+3$$   Here is my solution which I would also want somebody to correct me! Let the relation $\sim$ be defined on $\mathbb{Z}$ by $a\sim b$ if $b=a+3$ I consider that the orbits of $v$ are the classes of $\mathbb{Z}$ with respect to $\sim$ given by  $\{b\mid b=a+3\}$. Thus I get only three orbits which are $\{1,4,7,10,…,3n-2\mid n\in \mathbb{Z}\}$, $\{2,5,8,…,3n-1\mid n\in \mathbb{Z}\}$, and $\{3,6,9,…,3n \mid n\in \mathbb{Z}\}$. Why is the ROC curve two-dimensional instead of three-dimensional? When I understand it correctly, a  curve composes of a lot of ratios of TPR and FPR. Each such ratio is gained, e.g., by scanning/investigating a parameter where the ratio is the result of the used classifier. In other words: I'm interested in how a classifier separates data points according to a frequency interval of 0-100 Hz. Hence I scan this frequency, record all the 101 ratios, put them into the plot and the ROC curve represents these datapoints, finally.  Wouldn't it be much more interesting when the frequency would be used as a third axis? Or is it implicit in the axis? But anyway, I think it would be easier to look at with a third axis?