How to support initial interface orientation only on iOS 5.1
How do I detect orientation on app launch for splash screen animation on iPad!
Gimp won't allow me to copy and paste a transparent image On the latest version of GIMP on my PC, whenever I try to copy a transparent image from the internet, GIMP will automatically fill in the transparent areas with the background color I have selected.  This is a non-issue on my Mac, but I need to do this work on my PC, so how can I make it recognize the alpha of the image and not fill it with the background color?  The image canvas that I'm working with does have an alpha channel, but that does not seem to make a difference. How can I make schematic of this board? Starting scheduled task by detecting connection of USB device I use XeTeX, Version 3.1415926-2.4-0.9998 (TeX Live 2012/W32TeX).  I am using the crop package to add bleed and crop marks to a document. This works fine for pages with white background, but how do I achieve this for pages which have another colour in the bakckground?  I tried the pagecolor package, and see that it somehow extends the pagecolour to around 2 to 3 mm into the bleed but not beyond. How do I make the entire bleed region of the same colour as the page?  \documentclass[12pt]{article} \usepackage[dvips=false,pdftex=false,vtex=false,paperwidth=138mm,paperheight=216mm]{geometry} \usepackage[noaxes,noinfo,cam,dvips,pdftex,center,width=168mm,height=246mm]{crop} \usepackage{xcolor} \usepackage[english]{babel} \usepackage{blindtext} \begin{document} \pagecolor{orange} \blinddocument \end{document} Undo a particular commit in Git that's been pushed to remote repos I have some basic data on emission reductions and cost per car:  q24 &lt;- read.table(text = "reductions  cost.per.car     50  45     55  55     60  62     65  70     70  80     75  90     80  100     85  200     90  375     95  600     ",header = TRUE, sep = "")   I know that this is an exponential function, so I expect to be able to find a model that fits with:      model &lt;- nls(cost.per.car ~ a * exp(b * reductions) + c,           data = q24,           start = list(a=1, b=1, c=0))   but I'm getting an error:   Error in nlsModel(formula, mf, start, wts) :    singular gradient matrix at initial parameter estimates   I've read through  on the error I'm seeing and I'm gathering that the problem is probably that I need better/different start values (the initial parameter estimates makes a little more sense) but I'm not sure, given the data that I have, how I'd go about estimating better parameters. What is the correct pronunciation of the word "solder"? I have been listening to a podcast where the host pronounces the word solder as "sodder" or "sod-der", even "saw-der". Same thing happened when the lecturer of one of my EE classes pronounced the word solder. As for me I pronounce the word solder as "sole-der" with a distinct L and a longish O. LaTeX/BibTex not arranging citations by order of appearance I am having an issue with LaTex/Bibtex presenting my citations in order of appearance. I know there a plenty of questions on this and I have read some of them, but the solutions posted don't seem to do me any good. I am using MacTeX and TeXmaker.  I am writing a large document, like a Thesis. Chapters are split between individual Tex files and included using the \include command.  I have a large .bib file that is maintained by Mendeley (program I use for storing my references and producing a BibTex file).  I am using the package, cite (mainly for doing references like [1-3,6,9])  I have a pretty standard looking document.  \documentclass[11pt,a4paper]{report} \setcounter{secnumdepth}{3} \setcounter{tocdepth}{3} \newcommand{\doubleSignature}[3][Alex Mason]{% \parbox{\textwidth}{ \centering #3 \today\\ \vspace{2cm}  \parbox{7cm}{   \centering   \rule{6cm}{1pt}\\    #1  } \hfill \parbox{7cm}{   \centering   \rule{6cm}{1pt}\\   #2 } } } \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} %\usepackage[sorting=none]{biblatex} %\bibliography{Alex} % Where journals.bib and phd-references.bi \usepackage[pdftex]{graphicx} \usepackage{enumerate} \usepackage{nomencl} \usepackage{wasysym} \usepackage{booktabs} \usepackage{cite} \usepackage[left=1in,right=1in,top=1in,bottom=1in]{geometry} \graphicspath{{./Diagrams/}} \usepackage[labelfont={sf,bf}, margin=1cm]{caption} \usepackage{subcaption} \renewcommand{\figurename}{Fig.} \renewcommand{\tablename}{Tab.} \renewcommand{\bibname}{References} \author{NAME (MEng)} \title{TITLE} \date{\today} \makenomenclature %------------------------------------------------ \begin{document} \maketitle \pagenumbering{roman} %-----------------------------------------------certificate of originality----------------      -------------------------------------------- \input{CertofOrigin} \begin{abstract} ABSTRACT \end{abstract} %-----------------------------------------------contents------------------------------------------------------------ \tableofcontents \listoffigures \addcontentsline{toc}{chapter}{List of Figures} \listoftables \addcontentsline{toc}{chapter}{List of Tables} \chapter*{Acknowledgements} \addcontentsline{toc}{chapter}{Acknowledgements} ACKNOWLEDGEMENTS \printnomenclature[1.5in] \addcontentsline{toc}{chapter}{Nomenclature} \pagebreak \pagenumbering{arabic} \include{2ndYearReport_CHAP1} \include{2ndYearReport_CHAP2} \include{2ndYearReport_CHAP3} \bibliographystyle{unsrt} \bibliography{Alex} %\printbibliography \end{document}   The goofy looking part at the top (\newcommand{doubleSig.....) is just for when i input a special page I made containing a certificate of originality spiel with two boxes for signatures and my university logo.  As you can see I am using the standard bibtex way of doing bibliographies by stating the style then the stating the bib file to use right at the end of the document. I have tried biblatex but can't get it to work. It says it hasn't produced the bib file but doesn't really state why.  As far as I am aware everything was working A-OK until I started on the second chapter and began adding citations in there. Now my citations are all messed up and won't correct. My first citation starts with [9]!!!  [1] appears in a figure caption later down the page, after 10, 11 and 12 have been called!  I have tried deleting all the working files (bbl, aux, log etc) but nothing happens. I get the same result. IIRC I used to have this problem with MS Word and is part of the reason why I switched to LaTex...yet it seems to have followed me!   bibtex does through a few warnings when it runs stating that some references are missing journal names or volume numbers. Would that be a reason?  What have I done wrong with my code? How do I run a game for a larger group? I am currently running a Dungeons and Dragons 4 campaign for a group of 9 players.  Whittling the group down to a more manageable size is not really an option since they are all family.  When we do combat it takes forever even if I have one player help me and allow them to go 2 at a time.  When we do story based adventure there are 2-3 players that do most of the talking and the others twiddle their thumbs.  I've tried encounters with many foes, encounters with only a few tough foes, dialog only encounters, social puzzle encounters, everything I can think of.  What else can I try to get this group more engaged? Consider a set $A$ of $10$ integers, $A = \{a_1,a_2, \ldots ,a_{10}\}$. Prove that there is at least one subset of $A$ whose sum is divisible by $10$. Caption issue when placing figure side by side I placed 2 figures side by side using the minipage method from , and the figures look perfectly fine. However, the caption of the right figure stick out into the margin, why is that and how can I fix it?    My code is like this:  \begin{figure}[htbp]   \centering   \begin{minipage}{.5\textwidth}     \centering     \includegraphics[width=6.6cm]{figure1.png}     \caption{Caption for figure 1.}     \label{fig:fig1}   \end{minipage}%   \begin{minipage}{.5\textwidth}     \centering     \includegraphics[width=6.6cm]{figure2.png}     \caption{Caption for figure 2, but longer.}     \label{fig:fig2}   \end{minipage} \end{figure} Why do video cables (DVI, VGA) still screw in? I guess I could imagine that there was a time when accidentally disconnecting the monitor would have been catastrophic, though I don't see that being the case today.  Is it just a legacy holdover that they are still secured with screws?  Also, why is it that the video connection is really the only one that is still secured this way?  It seems like the power cable would be a better candidate to be secured with screws.  That really could be catastrophic.  In the end, the reason this question occurred to me is that I've never had a video cable come out when not screwed in, so why the significant security? Loop-cut won't go all the way around Alright so I've seen some postings about loop cuts and done some research. I am very new to blender and modeling overall. I am trying to loop cut this concrete barrier. Now I'm following a tutorial and kind of did my own thing in some areas. I cleaned it up following some instructions in another answer here on stack exchange.  I can't for the life of me figure out why I can loop cut around the whole bottom:   ...but not the whole middle:   I see this marked as answered by another question. That question refers to ngons and inside faces. Now once again I'm totally new to this. I looked on the inside. I don't believe I have inside faces or any ngons by the terms I've read online in my research.  Here is a wireframe picture and the inside view:     Maybe I'm missing something the answers on other posts are saying. If so and you know what it is I'd be very appreciative of what it is. If I pass PHP variables with . in their names via $_GET PHP auto-replaces them with _ characters. For example:  &lt;?php echo "url is ".$_SERVER['REQUEST_URI']."&lt;p&gt;"; echo "x.y is ".$_GET['x.y'].".&lt;p&gt;"; echo "x_y is ".$_GET['x_y'].".&lt;p&gt;";   ... outputs the following:  url is /SpShipTool/php/testGetUrl.php?x.y=a.b x.y is . x_y is a.b.   ... my question is this: is there any way I can get this to stop? Cannot for the life of me figure out what I've done to deserve this  PHP version I'm running with is 5.2.4-2ubuntu5.3. Can a JavaScript object have a prototype chain, but also be a function? function a () {     return "foo"; }  a.b = function () {     return "bar"; }  function c () { }; c.prototype = a;  var d = new c(); d.b(); // returns "bar" d(); // throws exception, d is not a function   Is there some way for d to be a function, and yet still inherit properties from a? What happened to Saruman after he was knifed by Grima? I duplicated a few objects with Alt+D and now I want to apply some modifiers to them, however I can't, because they are multi-user objects.  I tried U > Objects but I still can't apply the modifier.  How to make multi user objects single user? How do you search for backdoors from the previous IT person? We all know it happens. A bitter old IT guy leaves a  into the system and network in order to have fun with the new guys and show the company how bad things are without him.  I've never personally experienced this. The most I've experienced is somebody who broke and stole stuff right before leaving. I'm sure this happens, though.  So, when taking over a network that can't quite be trusted, what steps should be taken to ensure everything is safe and secure? Are employments in universities affiliated (or named) with a specific religion restricted to people with the same religion? I just saw an ad in mathjobs.org about an opening in a Catholic university, see . I am not christian. So I was wondering to be eligible for employment in a university or college affiliated with a specific religion, should the applicant  have the same religion, or other people from other religions (or even non-religious people) are eligible to apply as well? A subspace $X$ is closed iff $X =( X^\perp)^\perp$ Let $X$ be a subspace of a Hilbert space $H$.  prove:  $X$ is closed iff $X =( X^\perp)^\perp$   I do not know how to proceed. any hints would be appreciated.  thanks.  $X^\perp = ${ $y \in H$:$\langle x,y\rangle = 0 \forall x \in  X\}$.