How to make AWK use the variable created in Bash Script
How do I use shell variables in an awk script?
input to pic with 12V and resistors I have 12V, Use these 12V to power a device (that has a 12V output signal) and to power a 7805. After the 7805 there is a pic microcontroller where I would have to connect the output from my device. I was thinking of having 2 resistors in a 3/1 ratio in order to have about 4V at the pin of the pic. Can this be done, given that the ground is common, or will it give some sort of problem with the lm7805? Upgrading my Wubi 11.04 to 11.10 I want to upgrade my current Wubi installation (Ubuntu 11.04) to Ubuntu 11.10. Is this possible to do inside Wubi? Or do I have delete Wubi from Windows, therefore deleting my current Ubuntu installation; and then install 11.10 via the Wubi installer?  Thanks Evaluation of $\sin \frac{\pi}{7}\cdot \sin \frac{2\pi}{7}\cdot \sin \frac{3\pi}{7}$ Evaluation of $$\sin \frac{\pi}{7}\cdot \sin \frac{2\pi}{7}\cdot \sin \frac{3\pi}{7} = $$   $\bf{My\; Try::}$ I have solved Using Direct formula::  $$\sin \frac{\pi}{n}\cdot \sin \frac{2\pi}{n}\cdot......\sin \frac{(n-1)\pi}{n} = \frac{n}{2^{n-1}}$$  Now Put $n=7\;,$ We get   $$\sin \frac{\pi}{7}\cdot \sin \frac{2\pi}{7}\cdot \sin \frac{3\pi}{7}\cdot \sin \frac{4\pi}{7}\cdot \sin \frac{5\pi}{7}\cdot \sin \frac{6\pi}{7}=\frac{7}{2^{7-1}}$$  So $$\sin \frac{\pi}{7}\cdot \sin \frac{2\pi}{7}\cdot \sin \frac{3\pi}{7} =\frac{\sqrt{7}}{8}$$  Now my question is how can we solve it without using Direct Formula, Help me  Thanks I'm reading that a 50mm lens is recommended as a first prime lens for DSLR owners as it's supposed to give a 'natural' perspective, but when used on (most) DSLRs, the view is cropped, as if you were zoomed in by 1.5-1.6x, so it's more of a telephoto lens when used on a DSLR. I've also read however that the 50mm lens gives the same perspective on a DSLR and a 35mm, and shouldn't really be considered to be 'equivalent' to an 80mm lens as the crop factor isn't really a magic focal length changer.  Can someone explain how the image is different from (for example) a 50mm lens on a DSLR and an 80mm lens (assuming 1.6x crop factor) on a 35mm camera? When looking at used camera bodies, a question that comes up a lot, is "how many shutter actuations, or clicks, does it have?"   What I am wondering is, how many is too many. In other words, is there a reference for knowing when a sensor is more likely to go? How should I judge a camera body with 20000 vs 5000? Is that a significant difference, or is that not even relevant.  Obviously this might something that is dependent on model, so if there is some information based on model that would be even more interesting.  One of the guys at Canon Tech Support said that this is completely irrelevant for the Rebel series cameras, but he is obviously slightly biased. :) How do I calculate the distance of an object in a photo? Add CSS or JavaScript files to layout head from views or partial views Proving that $\lim_{x \to 0} \frac{f(x)}{|x|}=1$ implies $f$ is not differentiable at $0$. Singular or plural following a list What is a good KPI for software QA? How can you measure the efficiency of the QA team?   What KPIs would you set up? Representing several points with same coordinates on map using ArcGIS Desktop? I'm working on Arcgis 10.  I have a point shapefile representing events with several points having coinciding coordinates (They have the same coordinates). For representing them in a dynamic way, I found a nice way - .  Problem is: I was asked to produce a static (paper) map of the events. Is there a tool that can take these events and shift them apart a bit so all will be seen?  (I know that spreading them about will alter their coordinates, but I am prepared to do so on a duplicate shapefile for the display on the map). List selectors for Objective-C object I have an object, and I want to list all the selectors to which it responds. It feels like this should be perfectly possible, but I'm having trouble finding the APIs. How do I format a number in Java? How do I format a number in Java? What are the &quot;Best Practices&quot;? Will I need to round a number before I format it?  32.302342342342343 =&gt; 32.30 .7323 =&gt; 0.73  etc. Objective-C - When to use 'self' Install packages through yum from file Is there any way to install packages through yum from a file?  Something like:   yum -f packages.txt  I couldn't find anything in the man pages.  packages.txt would contain something like:  bash bc binutils bzip2 bzip2-libs ca-certificates cairo How do I install OpenStack? Why Doesn't C# Allow Static Methods to Implement an Interface? Why was C# designed this way?  As I understand it, an interface only describes behaviour, and serves the purpose of describing a contractual obligation for classes implementing the interface that certain behaviour is implemented.  If classes wish to implement that behavour in a shared method, why shouldn't they?  Here is an example of what I have in mind:  // These items will be displayed in a list on the screen. public interface IListItem {   string ScreenName();   ... }  public class Animal: IListItem {     // All animals will be called "Animal".     public static string ScreenName() {         return "Animal";     } .... }  public class Person: IListItem {      private string name;      // All persons will be called by their individual names.     public string ScreenName() {         return name;     }      ....   } Imagine that a pebble is placed on a uniformly rotating, frictionless disk.  What will happen to this pebble? Will the disk slide under it and the pebble stay as is? Or will there be a centrifugal force on the pebble and it'll be thrown off the disk? I wonder about the Adjustments to Cost Basis after a wash sale occur. Considering this  ( from marketwatch.com) where someone: On 1 Dec, 2018 used an amount of money in his account to buy 100 shares of XYZ Co., for $2000 (to make it simple , let's say 1 Feb, 2019 to turn all the transactions into the same year) On 1 Apr, 2019 he sells the shares for $1200, and incurred a loss of 800$. On 10 Apr, 2019 he bought back 100 shares for $1300, and had a wash sale. The 800$ loss gets added to the cost basis of this transaction( and the basis becomes $2100) Now, If on 13 Apr 2019, he sold 100 shares for $1400; I'm pretty sure that the realized Gain/Loss record of this transaction would show something like this: &quot; XYZ Co. shares  100 , Proceeds $1400 , Cost basis  $2100(adjusted), Short-term Gain/Loss  -$700 &quot;. So, even though the Gain/Loss shows a negative number, he still got an actual profit of $100 from this sale, right? What are the good ways to migrate a RAID array to bigger disks?