I was writing some code in a project spanning multiple *.c and *.h files (i guess I can call the *.c and *.h as modules or programs) and forgot to declare a newly created "getter" function in the header file for particular module/program. The header file was included in another module which needed access to that getter function.  Somehow the program worked fine!   I would like to know what is the importance of the declaring function prototypes in the header if the linker is able link object files to sort things out for itself. Duplicate function resolution??? This would mean that linker links by function name by matching it to what is called in function.  How does linker treat the extern variables?
To be truly standards-compliant, must all functions in C (except for main) have a prototype, even if they are only used after their definition in the same translation unit?
Determining coordinates of a SHP file i have a SHP file of a building converted from a DXF file. This SHP file is unprojected and have no specific coordinates (origin 0,0). I find WGS84 coordinates (lat, long) of this building from Google Maps. My aim is to replace these coordinates to the SHP file on QGIS.  Could you explain the process step by step?  (I read lots of similar questions, about affine transformation. But i don't know the paramaters.)    What i ask is how to make this transformation in QGIS (step by step)?   SHP file coordinates (not projected)  Scale: 1:142.670.713  X1,Y1: 16.70824, 253.74534  X2,Y2: 1.03521,-6.34918  X3,Y3: 244.00248,-7.49189  Target WGS84 coordinates   X1,Y1: 41.047773, 28.896241  X2,Y2: 41.045452, 28.895929   X3,Y3: 41.045436, 28.899039    I need a second vector layer with coordinates. I have just a SHP file of a building converted from a DXF file. That is not projected. I know where this building is, and can find the WGS84 coordinates from Google Maps. My aim is add WGS84 coordinates to this SHP file and export to replace the building on Google Maps.  My Questions are:  1) I think my SHP file has measurements in meters and unprojected. I have WGS84 lat long coordinates from Google Maps. How can i project this SHP file, for being ready to transformation? Right Click -> Set Layer CRS -> Choose WGS84 EPSG: 4326. Is this enough?  2) qgsAffine plugin just need transformation matrix paramaters. But the answer of @Jochen Schwarze is a bit complex for me. Is there a online calculator? (Just give the source XYs and target XYs and calculate the parameters.)    I think, I have a projection problem before affine transformation. I have a DXF file of a building from AutoCAD. I saved this DXF file as a SHP file in QGIS. But this SHP file is converted from a plain DXF file and is not referenced/projected, it is drawn from coordinates 0,0 in AutoCAD in meters. And the drawing has meters, WGS84 has decimal degrees.  When I set Layer CRS as WGS84 in QGIS, the coordinates don't change.  How can I project this SHP file as WGS84 in QGIS? Did the date of Frodo's rescue out of the fire of Mordor have any particular meaning in The Lord of the Rings? Did the date of Frodo's rescue out of the fire of Mordor have any particular meaning in The Lord of the Rings?  We read in The Return of the King (Book 6 Chapter 4) that Gandalf states to Frodo and Sam:     The fourteenth of the New Year, or if you like, the eighth day of April in the Shire reckoning. But in Gondor the New Year will always now begin on the twenty-fifth of March when Sauron fell, and when you were brought out of the fire to the King.   Did Tolkien have any particular reason for choosing this date for Sauron's fall and Frodo's rescue out of the fire of Mordor, either allegorically or otherwise?  We are aware that Tolkien was not a fan of , but preferred the term applicability instead. I am trying to make a histogram with the fitted curve plotted on it. Here's the mwe:   \documentclass[a4paper]{scrartcl}     \usepackage{tikz}     \usepackage{pgfplots,pgfplotstable}     \usepackage{filecontents}     \pgfplotsset{compat=1.10}     \usepackage[active,tightpage]{preview}     \setlength\PreviewBorder{2pt}     \newcommand{\plots}{0.611201}     \newcommand{\plotm}{2.19882}     \begin{filecontents}{data.dat}     2 0.0629921259843     3 0.0236220472441     4 0.0314960629921     5 0.125984251969     6 0.0629921259843     7 0.102362204724     8 0.110236220472     9 0.0551181102362     10 0.0629921259843     11 0.0314960629921     12 0.0236220472441     13 0.0314960629921     14 0.0629921259843     15 0.0551181102362     16 0.0393700787402     17 0.0472440944882     18 0.00787401574803     19 0.0393700787402     24 0.00787401574803     27 0.00787401574803     33 0.00787401574803     \end{filecontents}     \begin{document}     \begin{preview}      \begin{tikzpicture}     \begin{axis}[     yticklabel style={/pgf/number format/fixed},     scaled y ticks = false,     minor y tick num={1},     xtick pos=left,     legend cell align = left,     legend style={draw=none},     xlabel = {group size},     ylabel = {ratio}     ]     \addplot[blue,ybar,fill, fill opacity=0.3, bar width = 0.8,] table {data.dat};     \addplot[red, line width = 1,domain=1:40,samples=100] {1/(x*sqrt(2*pi)*\plots)*exp(-(ln(x)-\plotm)^2/(2*\plots^2))};     \legend{empirical,lognormal fit}     \end{axis}     \end{tikzpicture}     \end{preview}     \end{document}     As you can see, the legend is not really good. How can I change the legend so it looks more like this? How can I represent multiple pins at the same location on a map? Graphical interface for generating presentation slides Is there a good graphical interface, similar to PowerPoint or LibreOffice Impress, for generating presentation slides?  When writing documents I prefer to write my text and LaTeX-markups using a text-editor and not using a graphical tool like LyX. However, in the case of presentation slides I want to see the layout and to have the ability to immediately see what you get e.g. by moving a picture with arrow keys.  ADDITION: The background to my question is as follows. I have used PowerPoint for more than a decade and like to use a WYSIWYG tool when making presentation slides. However, I can not use PowerPoint on my current computer and I think the output from LibreOffice Impress is inferior. As a long-time user of LaTeX, I have considered using SliTeX or Beamer but unfortunately I do not like the way of working. The end result is of course superior, but I found it very time-consuming and tiresome to e.g. adjust the position and size of pictures. Concave implies subadditive I have a 2 year old son and another baby on the way. I just recently found out I'm pregnant but not sure how far just yet. My son rammed into my stomach like he is always doing but this time it made me start having small pains in my stomach. I rushed to the bathroom to make sure there wasn't any bleeding.  I'm concerned his rough play could hurt the fetus if it continues. How should I put a stop to it? A ring element with a left inverse but no right inverse? Can I have a hint on how to construct a ring $A$ such that there are $a, b \in A$ for which $ab = 1$ but $ba \neq 1$, please? It seems that square matrices over a field are out of question because of the determinants, and that implies that no faithful finite-dimensional representation must exist, and my imagination seems to have given up on me :) References for multivariable calculus Due to my ignorance, I find that most of the references for mathematical analysis (real analysis or advanced calculus) I have read do not talk much about the "multivariate calculus". After dealing with the single variable calculus theoretically, it usually directly goes to the topic of measure theory.    After reading the wiki article "", I'd like to find the rigorous proof for this test. The first book comes to my mind is Courant's Introduction to Calculus and Analysis which includes the multivariate case in the second volume.   Motivated by this, I'd like to put the question here:     What are the usual references for the   theoretical treatment for   ? Does the rank-nullity theorem hold for infinite dimensional $V$? Wave states with great confidence that Incursio is weaker than Grand Chariot, because Incursio was a prototype for Grand Chariot, etc.  The early clashes between Wave and Tatsumi can lead the viewer to such conclusion, but Incursio's has the ability to evolve (from the beast it was made of), while Grand Chariot doesn't.  If you watched to the finale, we can see that      Tatsumi causes Incursio to evolve so much during the fight against Shikoutazer that it even gains the ability to fly. While it is enough to defeat the emperor, unfortunately not enough to save Tatsumi's life.   Considering this, I don't think that Incursio was the weaker one. Is it so? Error System.CalloutException: Callout from scheduled Apex not supported i have created a schedulable class which has to trigger a batch job. The run method for the batch class will get list of data to process from a webservice callout. Now, i got the exception below. Any suggestions please.     System.CalloutException: Callout from scheduled Apex not supported.   global class scheduledDeltaBatchable implements Schedulable {    global void execute(SchedulableContext sc) {     ID batchprocessid = BatchUpsertSAPCustomerMasterBPSync.run(SAPServices.GetSAPCustomerMasterBPSync('Delta'));    } } Sort Array Elements (string with numbers), natural sort If a PIC MCU provides multiple Vdd/Vss should you provide power to them all? Take a look at this example schematic:  The chip in question is the  and as you can see power is provided on both sides (with a 100nF cap to smooth noise I guess). Is this strictly required or could you put power into one side and just ignore the other? I know that I have just put power in one side and everything still seems to work fine but I feel uneasy with doing that. I feel that they would not waste pins that could be doing something useful by having an extra pair of power in/out pins. For what purpose does this PIC MCU (and others like it) have multiple power pins? I have heard from people who have switched either way and who swear by the one or the other.  Being a huge Eclipse fan but having not had the time to try out IntelliJ, I am interested in hearing from IntelliJ users who are "ex-Eclipsians" some specific things that you can do with IntelliJ that you can not do with Eclipse.  Note: This is not a subjective question nor at all meant to turn into an IDE holy war. Please downvote any flamebait answers. How to find the sum of all the numbers that can be formed using the digits 2,3,3,4,4,4.. What should be the way of doing this type of problem?? Please guide Methods of speeding up a huge DELETE FROM  with no clauses Using SQL Server 2005.  I am performing a huge DELETE FROM  with no where clauses.  It's basically equivalent to a TRUNCATE TABLE statement - except I'm not allowed to use TRUNCATE.  The problem is the table is huge - 10 million rows, and it takes over an hour to complete.  Is there any way of making it faster without:   Using Truncate Disabling or dropping indexes?   The t-log is already on a separate disk.  Any suggestions welcome! I have searched the web a lot and could not find an answer that fits my situation. Here are two links that are quite contradictory:       My situation:  I've visited Portugal in December 2012 for 29 days on a Schengen visa valid from December 1st, 2012 to February 1st, 2013 for research purposes (I am a Ph.D. student). I want to visit Sweden from February 10th, 2013 to May 10th, 2013 (89 days). I have applied for a Schengen visa again (for research). How will the 90/180 rule work in my situation? Decorate Tables You have $r$ red, $g$ green and $b$ blue balloons. To decorate a single table for the banquet you need exactly three balloons. Three balloons attached to some table shouldn't have the same color. What maximum number $t$ of tables can be decorated if we know number of balloons of each color?  I know the answer will at least be $\min(r,g,b)$. Also we need to add tables with $2$ reds, $2$ blues or $2$ greens. I cannot think of the formula for it How to solve "Unable to find expected entry 'restricted/binary-1386/Packages' Wrong sources.list entry or malformed file"?