Encrypt then decrypt an SWF file with PHP and Flex
Encrypting as3 flash .swf
Display data from geoserver on click map with openlayers I tried to display data with popup from Geoserver or Postgres to my map, but it dosen't work at all. Can anyone please help me? I used this code:      function Info(e)          {                 if (e.features &amp;&amp; e.features.length)                  {                      //console.log(e.features[0].attributes);                     var popupId = e.xy.x + "," + e.xy.y;                     var popup = popups[popupId];                     if (!popup || !popup.map) {                     popup = new OpenLayers.Popup.FramedCloud(                     popupId,                      map.getLonLatFromPixel(e.xy),                     null,                     " ",                     null,                     true,                     function(e) {                         delete popups[this.id];                         this.hide();                         OpenLayers.Event.stop(e);                     }                 );                 popups[popupId] = popup;                 map.addPopup(popup, true);                 }                popup.setContentHTML(popup.contentHTML + "nom_user:" +e.features[0].attributes.nomservice +" region_user :"+ e.features[0].attributes.region);             popup.show();                                    }       selectcltr = {         click: new OpenLayers.Control.WMSGetFeatureInfo({             url: 'http://localhost/geoserver/wms',              title: 'Identify features by clicking',             layers: [ser],             queryVisible: true         }),         hover: new OpenLayers.Control.WMSGetFeatureInfo({             url: 'http://localhost/geoserver/wms',              title: 'Identify features by clicking',             layers: [ser],             hover: true,             // defining a custom format options here             formatOptions: {                 typeName: 'projet',                  featureNS: 'http://www.openplans.org/topp'             },             queryVisible: true         })     } I didn't like the skill I chosen for the first follower I found. Is it possible to respec his skill later on? Integrating $\int \sin^n{x} \ dx$ I am working on trying to solve this problem:     Prove: $\int \sin^n{x} \ dx = -\frac{1}{n} \cos{x} \cdot \sin^{n - 1}{x} + \frac{n - 1}{n} \int \sin^{n - 2}{x} \ dx$   Here are the steps that I follow in the example that I am reading:     $u = \sin^{n - 1}{x}$      $du = (n - 1) \cdot \sin^{n - 2}{x} \cdot \cos{x} \ dx$      $v = -\cos{x}$      $dv = \sin{x} \ dx$            $\int \sin^n{x} \ dx =  \sin^{n - 1}{x} \cdot \sin{x} \ dx$      $\int \sin^n{x} \ dx = \underbrace{\sin^{n - 1}{x}}_{u} \cdot \underbrace{-\cos{x}}_{v} - \int \underbrace{-\cos{x}}_{v} \cdot \underbrace{(n - 1) \cdot \sin^{n - 2}{x} \cdot \cos{x} \ dx}_{du}$      $\int \sin^n{x} \ dx = -\cos{x} \cdot \sin^{n - 1}{x} + (n - 1)\int \sin^{n - 2}{x} \cdot \cos^{2}{x} \ dx$      $\int \sin^n{x} \ dx = -\cos{x} \cdot \sin^{n - 1}{x} + (n - 1)\int \sin^{n - 2}{x} \cdot \left(1 - \sin^{2}{x}\right) \ dx$   Here is where I get lost. How did we go from $\int \sin^{n - 2}{x} \cdot \left(1 - \sin^{2}{x}\right) \ dx$ to $\int \sin^{n - 2}{x} \ dx - (n - 1) \int \sin^{n}{x} \ dx$? Even more specifically, where did $\sin^{n}{x}$ come from?     $\int \sin^n{x} \ dx = -\cos{x} \cdot \sin^{n - 1}{x} + (n - 1)\int \sin^{n - 2}{x} \ dx - (n - 1) \int \sin^{n}{x} \ dx$   I get this part.     $n\int \sin^n{x} \ dx = -\cos{x} \cdot \sin^{n - 1}{x} + (n - 1)\int \sin^{n - 2}{x} \ dx$      $\int \sin^n{x} \ dx = -\frac{1}{n} \cos{x} \cdot x \ \sin^{n - 1}{x} + \frac{n - 1}{n} \int \sin^{n - 2}{x} \ dx$   Could someone please explain what I am missing?  Thank you for your time. On some pages of my document LaTeX introduces a lot of spacing between my headline/paragraphs (around 5 times more than usual).  What is the reason for this and how can I avoid it? It seems it is trying to fill the page until the next chapter starts. mkdir -p will create a directory; it will also make parent directories as needed.  Does a similar command exist for files, that will create a file and parent directories as needed? What's the fixed size of the suggested edit queue? Forbid links to open new tabs in Google Chrome I need help to advance in the resolution of that limit: $ \lim_{n \to \infty}{\sqrt[n]{\frac{n!}{n^n}}} $ If M+N and M$\cap$N are finitely generated modules, so are M and N. Circular determinant problem I'm stuck in this question: How calculate this determinant ? $$\Delta=\left|\begin{array}{cccccc} 1&amp;2&amp;3&amp;\cdots&amp;\cdots&amp;n\\ n&amp;1&amp;2&amp;\cdots&amp;\cdots&amp; n-1\\ n-1&amp;n&amp;1&amp;\cdots&amp;\cdots&amp;n-2\\ \vdots &amp;\ddots &amp; \ddots&amp;\ddots&amp;&amp;\vdots\\ \vdots &amp;\ddots &amp; \ddots&amp;\ddots&amp;\ddots&amp;\vdots\\ 2&amp;3&amp;4&amp;\cdots&amp;\cdots&amp;1 \end{array}\right|$$ Thanks a lot. Distribution of number of Bernoulli trials to a given number of successes Sending email in .NET through Gmail Instead of relying on my host to send an email, I was thinking of sending the email messages using my Gmail account. The emails are personalized emails to the bands I play on my show.   Is it possible to do it? Help with math symbols in BibTeX I am writing a PhD thesis using LaTeX. Every thing is going fine, but I have problem with the output of the mathematical symbols in the references lists. I copy one example from the Pdf file to make it clear for you. You can see that the fraction remains the same.      [1] Mezzacapo, F. and Cirac, J. I. (2010) Ground-state properties of   the spin-\frac{1}{2} antiferromagnetic Heisenberg model on the   triangular lattice: a variational study based on entangled-plaquette   states. New. J. Phys., 12,   103039.   You can see below the all the packages I use:  \documentclass[12pt,PhD,twoside,a4paper]{GB_muthesis}%[10pt,PhD, singlespace] \usepackage[pdftex]{graphicx} \usepackage[bookmarks=true,colorlinks=true,linkcolor=blue, urlcolor=blue,citecolor=blue]{hyperref} \usepackage[numbers,comma, sort&amp;compress]{natbib} \usepackage{amsmath} \usepackage{amssymb} \usepackage{mathtools} \usepackage{rotating} %\usepackage{GE_manthesis} \usepackage{GB_thesis} \usepackage{bm} \usepackage{fmtcount} \usepackage{setspace} \usepackage{chapterbib} \usepackage{subfigure}% allow subfigures \usepackage{amsfonts} \usepackage{url, enumitem} \usepackage{lscape} \usepackage{notoccite}%This package is for ingnoring the citation in the caption of the figures and tables. \begin{document} What command do I need to unzip/extract a .tar.gz file? I received a huge .tar.gz file from a client that contains about 800 mb of image files (when uncompressed.) Our hosting company's ftp is seriously slow, so extracting all the files locally and sending them up via ftp isn't practical. I was able to ftp the .tar.gz file to our hosting site, but when I ssh into my directory and try using unzip, it gives me this error:  [esthers@clients locations]$ unzip community_images.tar.gz Archive:  community_images.tar.gz   End-of-central-directory signature not found.  Either this file is not a zipfile, or it constitutes one disk of a multi-part archive.  In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. note:  community_images.tar.gz may be a plain executable, not an archive unzip:  cannot find zipfile directory in one of community_images.tar.gz or community_images.tar.gz.zip, and cannot find community_images.tar.gz.ZIP, period.   What command do I need to use to extract all the files in a .tar.gz file? Elevating process privilege programmatically? I'm trying to install a service using InstallUtil.exe but invoked through Process.Start. Here's the code:  ProcessStartInfo startInfo = new ProcessStartInfo (m_strInstallUtil, strExePath); System.Diagnostics.Process.Start (startInfo);   where m_strInstallUtil is the fully qualified path and exe to "InstallUtil.exe" and strExePath is the fully qualified path/name to my service.  Running the command line syntax from an elevated command prompt works; running from my app (using the above code) does not. I assume I'm dealing with some process elevation issue, so how would I run my process in an elevated state? Do I need to look at ShellExecute for this?  This is all on Windows Vista. I am running the process in the VS2008 debugger elevated to admin privilege.  I also tried setting startInfo.Verb = "runas"; but it didn't seem to solve the problem. Can I speed up iCloud photo sync between iPhone and Macbook? I have an iPhone 5 running iOS 9.1 and a Macbook Pro running Yosemite.  Both devices are set up to sync photos to and from iCloud.  When I take a photo on the iPhone (for further processing on the Macbook), it takes an inordinate amount of time until the photo shows up in the Macbook's photos library - sometimes up to 10-20 minutes. Sometimes it seems to work faster if I quit the Photos app on both devices, and start it again.  I often end up sending myself photos through E-Mail because it's quicker. That seems ridiculous!  Is there a way to force a sync on the iPhone, or to speed up the process some other way? Why there are real numbers with infinite digits, but no such natural numbers (or another reason why real numbers are uncountable) This question is me trying to understand (again) why there can be no one-to-one correspondence between the sets of natural and real numbers.  The source of confusion is this: if we abstract completely from the properties and operations on numbers and just think of them as strings of digits, it appears to be possible to list all the real numbers between $0$ and $1$ and all positive integers having the same digits in the same (or reverse) order, for example:  $$0.1 \to 1$$  $$0.01 \to 10$$  $$0.0101 \to 1010$$  $$0.110101 \to 101011$$  I use binary expansion for simplicity.  Since irrational numbers have infinite expansions, we would have to consider some kind of 'infinite natural numbers', like:  $$101110001\dots$$  or  $$\dots101110001$$  I think the main (and only) reason why such numbers don't exist is this requirement:   We need the sets of real and natural numbers to be ordered. We need to be able to do arithmetics on real and natural numbers.   Obviously, if we consider any of two types of 'infinite natural numbers' and the usual absolute value, we find that it's impossible to order them, or do arithmetics with them.  The only way is to change the norm (to $p-$adic norm for example).  While with the real numbers it's still possible to order them, and do arithmetics with them when they have infinite amount of digits in their expansion (or at least in principle).     Is my reasoning correct? Are the two requirements (ordering and arithmetics) enough to explain why natural numbers with infinite amount of digits do not exist, while real numbers do?   This confusion is not restricted to me alone, see  for example Technically, any odd number of backslashes, as described in .  &gt;&gt;&gt; r'\'   File "&lt;stdin&gt;", line 1     r'\'        ^ SyntaxError: EOL while scanning string literal &gt;&gt;&gt; r'\\' '\\\\' &gt;&gt;&gt; r'\\\'   File "&lt;stdin&gt;", line 1     r'\\\'          ^ SyntaxError: EOL while scanning string literal   It seems like the parser could just treat backslashes in raw strings as regular characters (isn't that what raw strings are all about?), but I'm probably missing something obvious. Consequences of not showing up for one leg of journey Is it possible to get a decimal output from doing division in Bash? Basically in Bash, what I'm trying to do is take a input of seconds from a user and find the hours. So basically if the user enter 35 the output should be 0.00972222.  But bash gives me is a zero.  heres the command I have:  echo "Enter the seconds you wish to convert to hours: " &amp;&amp; read sec &amp;&amp; echo " $((sec/3600)) is the amount of hours "   Is there a way I can make it so it prints out 0.00972222 if I enter 35.  Thanks!