How to Delete Subscribers From All Subscribers list

Question: In my account have 1 million subscribers are available, i want to delete ALL Subscribers, From Email > subscribers > all subscribers (here i have 1 million) subscribers how to delete all subscribers.
Answer: Are you sure you just want to delete all subscribers? There are few reasons why I will recommend you using the Contact Deletion Framework:

Deleting from All Subscribers will not necessarily remove the subscriber from billable contacts. And it will still count towards your utilisation.
Sendable data extensions might also contain traces of these contacts, posing a risk from PII/GDPR respective
Removing from All Subscribers list will still keep the tracking data in your account, which may include PII

Contact Deletion Framework will of course, as well, remove the subscriber data from All Subscribers
Comment: I'm familiar with this approach however I noticed a quick test revealed it did not remove a subscriber from All subs existing in a Held Status. (Not sure about Bounced). What expectation should be had when attempting to delete old unengaged active or inactive subscribers using this approach. It complies with #3...(We still want to maintain our tracking for deletions ...at least at the sends level even if the user tracking got lost at the address history) however, it doesn't always remove records for other reasons such in progress or sends. Would be nice to know constraints.
Answer: You need to create a list in your parent Business Unit: Email Studio > Subscribers > Lists
Then import the subscribers you want to delete into this list.
Then, delete this list and check the box to delete the Subscribers from All Subscribers.
Answer: I have understood that removing a subscriber from the all contacts list, will still prevent future sendings to that subscriber. As at the background the subscriber is not completely removed.
We encountered this when we removed from the all subscriber list a large number of contacts, which we no longer had present in our Sales Cloud environment. By accident we removed a few too many from the all subscribers list and there are now not receiving mailings anymore. There is no new subscriber created, it seems, when a contact is targetted again.


Difference between request_irq and __interrupt

Question: From what I read both are used to register interrupt handlers. I saw lots of request_irq calls in kernel code but not even one __interrupt call. Is __interrupt some way to register a handler from user space?
Answer: request_irq is essentially a wrapper call to request_threaded_irq, which allocates the IRQ resources and enables the IRQ.  That's paraphrased from the comment block in kernel/irq/manage.c, Line #1239.
Basically, you want to use request_irq if you need to setup interrupt handling for a device of some kind.  Make sure that whatever subsystem you are working in doesn't already provide a wrapper for request_irq, too.  I.e., if you are working on a device driver, consider using the devm_* family of calls to auto-manage the minutiae, like freeing unused variables and such.  See devm_request_threaded_irq at Line #29 in kernel/irq/devres.c for a better explanation.  Its equivalent call (and the one you would most likely use) is devm_request_irq.
Answer: As far as I remember __interrupt() is used to declare a function as ISR in userspace. I am not sure where I have this from but I'll come back to you as soon as I found the spot.


non standard package name - will it cause trouble?

Question: I have rather stupidly published a game on the android market with a package name of mick.game.tangletwister, whereas I should have called it com.rai.tangletwister (where rai is the name of my company)... it all seems to work fine - but could it cause some trouble in the future - should I change it? And if I do change it, will it cause problems for existing users that grab the updated version?
Answer: It will be fine if you keep the existing package name. Nothing wrong with that. The TLD.company.appname format is just a convention. As long as you don't enter some special characters in your packagename (which you did not), it will work anyway.
But if you try to change it you will run into trouble. See Things That Cannot Change.
Answer: If you change the package, update notification will not work any more.  Moreover, when a user with the old package name installs the updated game, he/she will have both installed, because the update will replace the old version only if package/class are the same.
Depending on how many installs you have, you can, of course, remove the existing app from the Market - this should force-remove it from devices where it's installed.  Then you create another app (same metadata, naturally) and use a correct package name.
Answer: 1) Change the package name
2) Create a new app in the android market with that new package name
3) Update the old app, and add a pop-up saying that users should install a new version. Possible with a link to the new app
4) After some months, you should remove the old app.
Like user287351 said, it is possible to keep using the current package name, but i would prefer to have it listed under the correct package name
Comment: Presumably 99% of users would never even know that it had an unconventional name (would they?).
Comment: true indeed, but still I would recommend using "your" packagename.


What flash trigger will work to fire a monolight, which will in turn trigger others?

Question: I have 3 Bowens Monolights, Model 400D. I now have an Fuji XPro1 digital camera. What I would like to do is to fire one of the monolights via a transmitter on the hot shoe of the camera and have a receiver plugged into the one of the Bowens lights, which has a 6.3mm socket. The other two should fire off automatically, as they have a Monocell plugged into them. That's if I can get the one light to fire. What flash trigger would work with this setup?
Answer: Any basic radio trigger will work for this setup. The only issue may be the sync voltage of your monolight. Most radio triggers will not work correctly if the voltage is too high.
Another option is to have all your monolights run as optical slaves and trigger them all by firing a speedlight on your camera at the ceiling (or towards one of the flash heads if you are outside).
Answer: Generally speaking, any flash radio trigger that works as a transmitter with the XPro1 hotshoe, and that has a receiver you can plug into the 6.3mm socket on the monolight.
The main thing to look for with manual radio triggers with mirrorless cameras is whether you can get the on-camera unit to be a transmitter. The majority of the manual radio triggers out there are designed to work with Canon or Nikon dSLRs. And some of the transceiver units were designed to auto-switch into transmitter mode by sensing a signal on something other than the sync pin. Which pin and the type of signal is system-specific, so the Canon units work properly on Canon and Nikon units work properly on Nikon. But a Nikon unit won't work properly on Fuji X because the pins/contacts are placed different from each other and no contact is actually made.  And a Canon unit won't work properly on Fuji X, even though the pin/contacts line up, because the signal is on the wrong pin. Upshot: with Fuji X, the on-camera unit never goes into transmitter mode. An example of a trigger like this to avoid would be the Yongnuo RF-603 (mark I).
So whatever trigger you're interested in, it's probably good to find a Fuji X messageboard and ask around or search to see if the one you like is compatible with the XPro1, first.  Or, just make sure either that the transceiver unit has a way to explicitly set it into transmitter mode, or that there are separate dedicated transmitter and receiver units so there's no autoswitching you have to override.
Also be aware that Canon/Nikon units may have an odder fit and more difficulty seating properly on the Fuji X hotshoe. Sometimes using a Nikon unit will work better than trying to use a Canon.
With the receiver units, the only thing you need to discover is if a receiver unit in the triggering system has a sync output port, what type of port it is (PC, 2.5mm, and 3.5mm being the most common), and then get the correct cable to hook that up to your monolight (e.g., a 3.5mm -> 6.7mm cable).
For a list of some popular manual-only radio triggers, see: http://flashhavoc.com/flash-trigger-guide-manual/
Comment: If a flash trigger is a standard single pin connection then it should work with any camera that has a hot shoe. Are you talking about ETTL and ITTL compatible triggers?
Comment: @HarryJamesSanderson but some manual-only triggers are _not_ single-pin. The Yongnuo RF-602/603/605 have a full complement of pins and a subset of contacts and uses them for non-sync functions (wake-up, auto Rx/Tx switching). So that's why there can be unexpected consequences on cameras with different TTL communication protocols but identical pin/contact placement.


Vanguard Stocks and Shares ISA - pay tax in US?

Question: If a UK citizen (only citizen in the UK, having no residency in the US or any other connection with the US) opens a Vanguard Stocks and Shares ISA and buys US stocks (e.g. in the form of VUSA), does that person have to pay tax in the US?
Comment: VUSA is domiciled in Ireland, so owners of fund shares have no connection to the US that would be relevant for taxation purposes. The fund pays any US taxes that would apply for receiving dividends from US stocks.
Comment: Is this person a US citizen?
Comment: You've edited the question to specify that they're a UK citizen, but you've also taken out the information about where they reside. So the question now is: Does this UK citizen live in the US?
Answer: No, a person in the circumstances you describe has no liability for US tax.


Dell XPS 12 Duo with 16 or 32 gigs of ram?

Question: The Dell XPS 12 Duo has two SO-DIMM slots (at least according to the dell tech i talked to).  Dell only lists up to 8 gigs of ram supported, but does anyone out there know whether or not I could use a pair of 8 gig SO-DIMMs or 16 gig SO-DIMMs in that laptop?  (Sort of like how the unibody macbook pros officially only supported 8 gigs of ram, but you could toss a pair of 8 gig so-dimms in them and get 16 gigs of ram).
Answer: Nope. Unfortunately that model only supports 8GB. (I've tried.)


when should we write the bibliography?

Question: what do you recommend me ?
write the bibliography as I write my dissertation, or focus on the bibliography at the end of the writing? Thank you
Answer: You should never actually write the bibliography. As you write the actual content sections, you should add citations where-ever relevant as you go. The bibliography should then automatically be generated by your reference manager.
Answer: There are (mainly) two types of citations:

citations of methods/results by other researchers that you use in your work. These citations may appear anywhere in the document.
citations made to summarize the state of the art. These appear mostly in the introduction.

I would recommend adding the first type of citations as soon as you explain the methods/results you are using in the main text. It is very easy to miss some of these afterwards and forget to cite them, and you would be incurring plagiarism.
The second type of citations appear in the introduction, which is anyway usually written last. You can leave these citations for the end if you wish, though I still find it less time-consuming to just cite everything as I write the main text. Doing a "second sweep" of your text and trying to remember "what did I want to cite here again?" is bound to add some overhead.

when should we write the bibliography?


Print module doesn't work with Panelizer module. Why?

Question: I need to make print pdf module work on the panelizer node. But on page printpdf/node/nid, I see only the node title and panelizer field is not shown.
How to fix it?
Answer: The Print module uses hook_preprocess_node which is not used with panels_everywhere/panelizer. In a similar issue (with panels everywhere) I  used a patch 565856-panel_support_print-39.patch.
Background discussion and the patch you can find here:
https://www.drupal.org/node/565856
Hope this will help.


gpointing-device-settings lost on reboot

Question: I've been using gpointing-device-settings to enable both two-finger and edge scrolling on my trackpad, but it seems to not "remember" after reboot. The settings are still "ticked" in gpointing-device-settings but two-finger scrolling doesn't work until I uncheck and recheck the tickboxes for two-finger scrolling.
How can I get Ubuntu to remember after reboot that I want both two-finger and edge scrolling without having to open gpointing-device-settings each time?
Comment: Vote to close, because it's a bug (https://bugs.launchpad.net/gpointing-device-settings/+bug/489830).
Comment: @htorque how kind :P
Answer: In dconf-editor you can edit the settings like this:
Go to org/gnome/settings-daemon/peripherals/touchpad
There you can select e.g. two finger scrolling instead of boarder scrolling, disable while typing, tap-to click and all the other nice usability-enhancing features.
Maybe it's not as nice as gpointing-device-settings, but if they are not able to keep their tool updated, just forget about it and use dconf-editor.
this seems to affect hundreds or thousands Linux Users from many distributions it seems. https://bugs.launchpad.net/ubuntu/+source/gpointing-device-settings/+bug/489830
Comment: Hallelujah thank you. This is been killing me for months.
Answer: Store your current settings:

synclient -l | sed 's/Parameter settings://;s/ //g' > ~/.synpadSettings

Recover them:

cat ~/.synpadSettings | xargs synclient

I'm sure there's a good place to put these as shutdown and startup scripts for the your X session.
Comment: This works on 14.04, good work, much better than the old way of switching to dconf-editor
Comment: You can use `1d;s/ //g` rather than `s/Parameter settings://;s/ //g`, but this is the best answer. Thanks!


From microlocal to local

Question: Assume $u\in L^2(\mathbb{R}^n)$ and let $(x_0, \xi _0) \in T^\ast \mathbb{R}^n = \mathbb{R}^n_x \times \mathbb{R}^n_\xi $. Assume I can find $a\in C^\infty (T^\ast \mathbb{R}^n)$ which is also bounded with all derivatives and $a(x,\xi ) = 1$ in a neighborhood of $(x_0, \xi _0)$. Without loss of generality we may even assume $a\in C _0 ^\infty (T^\ast \mathbb{R}^n)$ and still equal to 1 near $(x_0, \xi _0)$. Assume moreover that we know
$$\| \operatorname{Op} [a]u \|_{L^2(\mathbb{R}^n)} \le Ch^s$$
where
$$\operatorname{Op} [a]u(x) := \frac{1}{(2\pi h)^{n/2}}\iint \limits_{T^\ast \mathbb{R}^n}e^{\tfrac{i}{h}(x-y)\cdot \xi }a(\tfrac{x+y}{2},\xi )u(y)\, dy\, d\xi .$$
Is this enough to conclude that there is some neighborhood $U$ of $x_0$ such that
$$\| u \|_{L^2(U)} \le Ch^s \quad ? $$
If not, what kind of condition would be sufficient?
Comment: The integral does not seem to depend on $u$? Are you missing a $u(y)$?
Comment: Oh, yes of course, I'll edit. Thanks for pointing it out!
Answer: Of course no. Your inequality on $\Vert Op[a] u\Vert$ is only providing some information microlocally at $(x_0,\xi_0)$ and says nothing about what is happening elsewhere. For instance, with the homogeneous wave-front set setting, you may have in one dimension a (complex-valued) distribution with wave-front-set equal to {$0$}$\times\mathbb R_-^*$. It is the case for instance of $\frac{1}{x-i0}$.
Comment: Well, in that case that's OK since your first estimate does control $u$ near the point $(x_0,\xi_0)$ and by the ellipticity of your $P$, you control as well what may happen elsewhere. You can write down the details for that stuff with a partition of unity.

Best,
Bazin.
Comment: Ok, thank you, it's what I was afraid of. Actually I also have that $u$ satisfies $Pu=g$ where $\|g\| \le Ch^s$ and $P$ is elliptic in the complement of the set where $u$ is microlocally $O(h^s)$.

From microlocal to local


Properly unlinking hard links

Question: I have a script that goes like this
ln /myfile /dev/${uniquename}/myfile

I want to remove the link of /dev/somename/myfile to decrease the link count.
How do I do this?
Comment: Your script will fail unless a `/dev/${uniquename}` directory already exists and `/myfile` and `/dev/{uniquename}/.` are on the same filesystem.
Answer: TL;DR... just delete the file name you don't want (with rm).
If you create a hard link (which is what your command above is doing), you have two names pointing to the same area of storage. You can delete either name without affecting the other name or the storage - it's only when the last name is removed that the area of storage is released.
Compare this to soft links... created with ln -s - there, the link is different, it's a pointer to the original name rather than a pointer to the storage. If you delete the original named file the soft links point to something that has been deleted, so the link remains but is broken.
Answer: The command to remove a hard link is rm.
From the man page for rm:
Remove (unlink) the FILE(s).

Answer: I'm a little uncertain of your meaning, but I think your script creates /myfile as a hardlink to /dev/…/myfile and then you want to remove the latter.
If this is correct, instead of linking then removing the link, you could just move the file instead, producing the same result in a single command (mv) instead of two commands (ln and rm):
mv   /dev/…/myfile   /

Answer: Most existing answers advocate using rm. This is entirely correct, because you don't remove files: you remove links (and the file is removed when the last link pointing to it is removed, and the last open file descriptor is closed).
However, you should be aware of another utility too, unlink. It lacks the options of rm, and always has implicit -f option (sort of -- it will fail on a missing file, though). The benefit is that you can remove a file starting with a dash, at least in a theory...
...except you can't, if you use a Linux system, because the GNU crippled the unlink utility by adding command-line option support! So unlink -t does not remove a file named -t on a Linux system or any other system using the GNU coreutils.
(Yes, I know that rm -- -t or unlink -- -t works, no need to comment about that.)
Comment: on Mac, `unlink -f foobar` gives `usage: rm [-f | -i] [-dPRrvW] file ...`, so it's not just GNU. Even if it was, so what? If you have filenames starting with dashes, you'll need to know to use `--` or `./` at some point anyway, it doesn't help much if there's just one application that doesn't use command line options.
Comment: with that logic, almost all the GNU and BSD utils are "crippled", since they support options that aren't specified in POSIX. Note that it doesn't explicitly say that that implementation of `unlink` aren't allowed to have any options, like it does say for [_echo_](https://pubs.opengroup.org/onlinepubs/9699919799/utilities/echo.html)
Comment: I see there's some GNU fanboy downvoting me, and some BSD fanboy upvoting me, at the same time.
Comment: Well, GNU and MacOS X both appear to be crippled then. The POSIX standard clearly states unlink has no options: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/unlink.html
Comment: To add to ilkkachu's comment, the `unlink` utility, even though it's standard, is so obscure that OpenBSD doesn't even have it in its base system.

Properly unlinking hard links


What is the best exposure checking method in manual mode?

Question: In manual mode, what is the best way to check if you have the best exposure? exposure indicator or ... ?
Comment: Possible duplicate of [How do I know I have the correct exposure when shooting in manual mode?](http://photo.stackexchange.com/questions/9625/how-do-i-know-i-have-the-correct-exposure-when-shooting-in-manual-mode)
Comment: "The best exposure" does not exist.
Comment: In times of digital cameras: What about "Shoot,see, and fix"? (In the times of (analog) film cameras that would not have been useful as you had to fil la roll of film, then wait for it to get developed)
Answer: There are two general usages for Manual mode:

You want to control and choose your own exposure.
You want to take a series of images with exactly the same exposure.

Case 1, the exposure indicator should just be a vague hint. You can look at it and see if you chose an exposure a little lighter, much lighter, darker, etc from the camera metering system. That will help but you really won't know if that is exactly what you want until you take the shot. You can use the flashing highlight or zebra feature to see if you have under-exposed or over-exposed anything which you want to have details in it. A histogram can help too but if you were exposure to get deep blacks or white-out in parts of the image, it won't be as useful.
Case 2, the exposure meter is what you aim for. You line it up and then will get the same metering as the camera. Still, in this case it is best to take a test shot and look at the histogram in case of camera is in error.
Otherwise, if you simply always line up the exposure metering, you don't need Manual mode.
Answer: The histogram gives you a lot more information. You can see if you are clipping highlights or perhaps under exposing the shadows.
The exposure indicator only gives you a single "average" to use.
It however depends on your use case and how much time you have to review in-camera.
Both are useful.
Answer: Exposure: There are choices.

The camera exposure meter gives an average value, but it is dependent on the scenes colors. So white or light colors will read too high, and the meter will underexpose it. Black or dark colors will read too low, and the meter will overexpose it.  Because, reflected meters simply try to put everything in the middle. But Not everything should come out in the middle. ( See How Camera Meters Work at http://www.scantips.com/lights/metering.html ). Incident meters are more awkward to use, but give better readings, which are NOT dependent on the scenes colors.  But when we first walk up to the scene, we use our eyes and brain to first evaluate the scene to choose a "correct" expected compensation. We learn this pretty easily if we think about it.
The histogram shows how the tones are distributed. It is primarily used to prevent clipping.  Because a histogram is NOT a light meter.  A black cat in a coal mine should be a dark picture.  A polar bear in the sun on the snow should be a bright picture. Reflected meters put both in the middle, neither will be "correct". Histogram shows how it came out, but does NOT know what is correct. Again, our eyes and brain can immediately evaluate the scene to know how it should come out.  Again, the histogram result is dependent on scene colors. Not everything ought to be fully bright.
The picture on the rear LCD shows what we actually got. Then our eyes and brain can decide if it needs less or more exposure, and we can try again.  But the LCD image is pretty much "what you see is what you get".

Again, the good tool is our eye and brain.   Novices don't always realize they should use their eyes and brain, and actually think about what they're doing.
Then just make the picture look like you want it to look. Just a little experience trying makes this be pretty easy and automatic.
Comment: The LCD is also far from foolproof. It can be turned up too bright in dim lighting conditions or turned down too dim in bright lighting conditions. They also tend to boost saturation and contrast beyond what the image would look like on a properly calibrated and profiled display. What you see on them is very rarely exactly what you get. In other words, they lie like politicians.
Comment: Mine seems pretty good. I set its brightness at -1 and no complaints.  Certainly LCD beats not seeing anything at all.  :)


Maintain object references through Serialize/Deserialize

Question: When serializing, I would like to serialize an object only once, then any references to that object should be serialized as a reference to the object. This is because, when I later deserialize the objects, I would like to maintain those references. To illustrate my goal, the code below should output "After Serialization: true".
class Program
{
    static void Main(string[] args)
    {
        MyObject obj = new MyObject() { Name = "obj" };
        MyObject[] myObjs = new MyObject[]
        {
            obj, obj
        };

        Console.WriteLine("Object Refs Equal?");
        Console.WriteLine(string.Format("Before Serialization: {0}",
            object.ReferenceEquals(myObjs[0], myObjs[1])));

        XmlSerializer toXml = new XmlSerializer(typeof(MyObject[]));
        using (FileStream toFile = File.Create(@"C:\foo.xml"))
        {
            toXml.Serialize(toFile, myObjs);
        }

        XmlSerializer fromXml = new XmlSerializer(typeof(MyObject[]));
        using (FileStream fromFile = File.OpenRead(@"C:\foo.xml"))
        {
            MyObject[] deserialized = (MyObject[])fromXml.Deserialize(fromFile);

            Console.WriteLine(string.Format("After Serialization: {0}",
            object.ReferenceEquals(deserialized[0], deserialized[1])));
        }

        Console.ReadLine();
    }
}

[Serializable]
public class MyObject
{
    public string Name { get; set; }
}

Answer: If you're using .NET 3 or later, you should use the DataContractSerializer and set PreserveObjectReferences to true.
Comment: I just tried to do that, but it doesn't work because it's a read only property.  What am I missing here?
Answer: You will have to do that by giving the objects identifiers other than their object reference.
An object's reference is essentially it's pointer. Since you cannot manipulate pointers directly in safe code must give the object some other unique name.
Answer: Not sure if this is what you would like to hear... But lets just think about what you are trying to do.
You only have the need to serialize an object when:
 a) You want to store it somewhere an latter on retrieve the information.
 b) You want to send the object to another application.
A reference is nothing more than a pointer to where the object is. So in either case you simply cannot access the memory because in a) it is reserved for your application and in b) it is another machine and it doesn't even exists.
http://en.csharp-online.net/Glossary:Definition_-_Reference_type
Answer: your code example won't work simply because the XmlSerializer does not save reference information, during the serialization process it will simply write the data for obj to the stream twice this means that when you deserialize it will read the data for obj as two different instances, it has no way of knowing that they referred to the same instance at serialization time. using the DataContractSerializer mentioned before should give you what you want but note that it uses non standard xml
(see: http://msdn.microsoft.com/en-us/library/system.runtime.serialization.datacontractserializer.aspx)


Most efficient way to check collision

Question: For example, I have a player and a map, to check player collision with some block we need to check entire map tiles, but the bigger the map, the slower the framerate. What's most efficient way to check collision?
Answer: For maps with square tiles you don't actually need to check against every tile, instead you can perform a simple calculation that will give you the tile the player is currently on.
Xtile = (Player.X - Map.X) / Map.Tile.Width

You then do the same for the y and get the tile that the player is on.
Now if your player position is on the upper left hand you more than likely want to perform actions on all the tiles the player is currently over. To do that you would have to choose one of two options;
If the players width is constant then you can simply iterate the couple tiles that are part of the square the player would represent.
For example if your tile width is the same as your player width, and same for the height then you could calculate the Xtile and Ytile, then also perform actions on the (Xtile + 1, Ytile), (Xtile, Ytile + 1) and the (Xtile + 1, Ytile + 1)
On the other hand if your player has a variable width(or you want to use the same technique for all possible characters of various sizes) then you calculate the Xtile and Ytile and use loops to iterate on all things inside the rectangle.
For example your Xtile was calculated to be 3, your Ytile was calculated to be 4, your character is 3 tiles wide and 5 tiles high
Then you could:
for(int i = Xtile; i <= (Xtile + Character.WidthInTiles); i++){
    for(int p = Ytile; o <= (Ytile + Character.HeightInTiles); o++){
        CurrentTile = Map[i][o];
        //Perform actions on CurrentTile here
    }
}

Edit: forgot to mention regular AABB collisions and speed;
As a side note for your regular collisions you shouldn't be checking if there is a collision but rather if a collision is impossible.
By that I mean that you should be checking if PlayerX + PlayerWidth is less than the ObjectX, because that means that its too far off the right and so you don't need to check the rest of the possibilities which is faster.
The final version with all four sides checked looks like this:
if((Object1X + Object1Width) < Object2X || Object1X > (Object2X + Object2Width) || (Object1Y + Object1Height) < Object2Y || Object1Y > (Object2Y + Object2Height)){
    //There is a collision detected between Object1 and Object2
}

Most efficient way to check collision


Group for nonusers

Question: Using Office 365, SharePoint - I have a form that the user will be able to select shop personnel from a drop down box - my problem is I have a signature field that is tied to the drop down box but it won't recognize the name in the box because the names are not part of a SharePoint group or our directory.  Is there anyway to create a SharePoint group for the shop personnel (they are not active users and will not be - manufacturing company and the shop does not have access to computers) without having to setup accounts for all 400? The shop personnel will use our SharePoint users ipads to sign the form.
Answer: It's hard for me to tell what your exact requirements are, but might I suggest creating an unlicensed ('guest'/ 'external'/ 'Shop Staff') account and using that as your group and just have an optional text field for them to fill in their name so that you can identify them?
Comment: The problem is the app we're using for forms, the signature field only recognizes people in groups/users from SharePoint.  Even if we setup an account such as the above, it still won't recognize the employees. It seems to be a problem on the SharePoint side and Infowise side, but I cannot imagine that other businesses have not run into this issue for HR forms. Seems like Microsoft would allow you to create a group for employees that could be used in the lists.
Comment: Then you will probably have to set up individual accounts for each user on the site and add them to a specific group. Good news is you can probably automate that with powershell.

Group for nonusers


Numerical Analysis of Elliptic PDEs

Question: I am looking for an elementary reference regarding issues of stability in numerical analysis of non-linear elliptic PDEs, particularly using the finite difference method (but something more comprehensive, covering more sophisticated methods, is even better). Ideally, something aimed at a physicist or applied math audience would be easiest for me to read, but that is not a strict requirement. To be clear, implementation of the method (using your favourite software or programming language) is not the issue, I am more interested in the mathematics involved in numerical stability.
Comment: This may be a good one for the new scicomp.se private beta. If you think so too, I can invite you.
Comment: Thanks Mark, but since this is already posted here, I'd leave it. Certainly the next question I have will go there.
Comment: No problem. It just went into open beta, so if you want to ask a question in the future then there's no need for invites.
Answer: Two collegues of mine wrote a monograph
Faragó, Karátson: Numerical solution of nonlinear elliptic problems
where conditioning and preconditioning are an issue. This may be some help though...
If you want it more elementary, then
Larsson, Thomee
is the best.
Do you have a special equation in mind? That would help.
Answer: Moshe, do you have access to coursework at the University of Idaho?  They have a course listing that has your question in the title of the course.

Math WS547 Numerical Analysis of Elliptic PDE's (3 cr) WSU Math 546

However, they don't seem to describe the course itself beyond that.
I did find this paper entitled:  LECTURES on COMPUTATIONAL NUMERICAL ANALYSIS of PARTIAL DIFFERENTIAL EQUATIONS (PDF) that may be more in line with what you are looking for (specifically chapter 2).
As for software, MUDPACK is one that I managed to find.
Hope that helps.

Numerical Analysis of Elliptic PDEs


Should a "Save as New" or "Duplicate" button open the new file, or keep the original file open?

Question: It seems like the current UX pattern is to have both files open at once. If you can only have one file open at a time, should you open the new file or keep the original file open?
Answer: It's probably safe to assume that the user wants to start working on the duplicate file right away, but you'll need to be very careful with the experience of not forcing the user to close the other file or force save unsaved changes. They might need an interstitial modal giving them a chance to cancel. If possible, you might want to press on your product team to consider letting the user keep both documents open. Users also like to cross-reference original and new versions as well.
Comment: Unfortunately, our mobile app can only have one file open at a time, otherwise I would probably push more for keeping both documents open.

I think your point about forcing unsaved changes is great - to avoid that I think in this scenario we would want to stay with the original file until changes are confirmed for **that** specific document.
Comment: The Google Docs app moves the user into the duplicate document, but it's an overlay that slides down and reveals all of the documents in the system. The user can then easily switch to the original version. Maybe there are ways to use a menu that can help your user switch between docs.
Answer: Apart from the buttons here, user's main aim is to create a "new" file that doesn't exists before.
Therefore the underlying aim here is to rename, re-configure or making arrangements on that specific file after restoring it. So that, letting user to be able to do that is more proper from this point of view which means opening new file at first hand.

In the meantime, before doing this (especially if you're forced to
  close one of these files), of course you should ask for saving changes
  first to the existing file and then to the duplicate one (or saved as new).

By this way you may safely onboard users to the new file creating process.
Answer: The common term for keeping only the original open seems to be "Save (a) copy (as)". I checked a few applications with this option (Matlab, Inkscape, GIMP, Ristretto).
Your wording is the opposite. Duplicate generally focusses on the new copy. Examples include slides in PowerPoint, and one that's particularly pertinent as it doesn't support opening multiple files: Strava's route builder (web service for planning cycling/running routes)*.  Here duplicating a route creates a new one with all the details of the original, and immediately opens the save dialog.  This makes it clear that you're saving the new one, and means that the baseline at the moment of divergence is saved (helpful when working online)

* I wish it had a "Save as" or "Save copy as" in addition, but that's another story.
Answer: Considering your situation, there're two ways:

Force auto-save the previous/original version and then open the new file.
Create the new file in the background, keep the original file open; however, show them a popup about opening up the new file. If the user clicks on that popup, crosscheck with them if they want to save the original file or not; then, open the new one.

Well, in general, it totally depends on you or your platform actually; there's no strict grammatical rule or something, about doing one or the other. Meanwhile, there's no conventional way either. As a result, you may just follow one, that suits you; and, educate your current users.


Want to travel to EU before the date given by German consul

Question: I received my Schengen visa from the German consul valid from 11/11/18. I was suppose to go to London prior to that but got cancelled. Now I was planning to go to Netherlands instead before going to Germany. Can I apply for another Schengen visa in the Netherlands consul so I can enter a week before I have to go to Germany. Thanks!
Comment: Nothing is stopping you from applying.
Comment: Yes, you can!!!
Comment: Why the downvotes? Seems like a perfectly reasonable question, to me.
Answer: Yes.  The Netherlands consulate could issue a visa valid until 10 November 2018.  It is generally understood that one should not have more than one valid Schengen visa at any time, but the Schengen visa processing manual explicitly contemplates situations in which one visa's validity begins the day after another's ends.  For example:

A holder of a multiple-entry visa may apply for a new visa before the expiry of the validity of the visa currently held. However, the validity of the new visa must complement the current visa, i.e. a person cannot hold two uniform visas valid for the same period in time.
Example: A Moroccan lawyer representing a gender equality NGO who frequently
  participates in meetings in various Member States holds a multiple-entry-visa which expires on 31.5. She applies for a new visa on 15.4.
If a new visa is issued, it should be valid from 1.6. and in such a case the visa holder would be entitled to enter the territory of the Member States on the basis of the first visa that will expire during the stay and leave on the basis of the new visa.


Ambiguous points in spontaneous symmetry breaking of discrete symmetry

Question: For a discrete symmetry: At the minimum value of the potential, $V$, in the Lagrangian density, why do we take $\phi= \langle v\rangle + \eta$? Aren't we deliberately breaking the symmetry? If we don't do this, the symmetry is intact.
On the other hand, if we replace $\phi$ by $\phi= \langle v\rangle + \eta$, even when not in a ground state, then also the symmetry will be broken in $\eta$ field. Please explain.
Comment: How is this question specifically related to discrete symmetries?
Comment: no it's not. i chose this because it is simplest example of  spontaneous symmetry breaking
Answer: In canonical quantization, a quantum field is a linear combination of so-called "creation and annihilation operators".  That means that the field $\phi$ creates and destroys particles of type $\phi$.
The state $|0\rangle$ is the vacuum: the state with no particles. If $\phi$ is a quantum field that creates and destroys particles, it must be that $\langle 0 | \phi | 0 \rangle=0$, because the state with particles created/destroyed, $\phi|0\rangle$ must be orthogonal to the empty state $|0\rangle$.
We have no choice, then, but to write $\phi=v+\eta$, such that $\langle \eta \rangle=0$. Th new field $\eta$ now has a good particle interpretation, whereas the original field $\phi$ did not, because $\langle\phi\rangle  = v$.
Comment: Thank you. Yes, we should write phi(x) =  = eta(x) not only at ground state but always. Why is it that we write it only for ground state? a field once defined is defined for all states.
Comment: @innisfree I want to make a comment. I don't think $\langle 0|\phi|0\rangle=0$ only when $\phi$ can be written as a linear combination of $a$ and $a^\dagger$. For example, in self-interacting  $\lambda\phi^4$-theory, one has $\langle 0|\phi|0\rangle=0$. The actual criterion is, if $\mathcal{L}(-\phi)=\mathcal{L}(\phi)$, all $n$-point functions with odd $n$ will vanish even if $\phi$ is non-exapandable as a linear combination of $a$ and $a^\dagger$.


Detecting GUI window close in unity

Question: Is there a way to detect when a GUI window has been closed ? I am building an editor tool and I need to perform some actions after the window has been closed. Ideally, if there is a callback or event that notifies me then that would be perfect. I searched a lot but I didn't find anything. It might be possible that I'm searching using a wrong keyword also. Are there any work arounds ? Any help is greatly appreciated. Thanks!
Answer: Full source code and original post can be found here:
You can try using a boolean property to fake the window close/open effect, whenever the setter is called, some function OnWindowClosed() is get called:
Tested on Mac OSX:

<code>bool _bWindowActive;
public bool bWindowActive {
    get { return _bWindowActive;}
    set {
        _bWindowActive = value;
        if (!bWindowActive) {
            //This is called everytime, when bWindowActive = false;
            OnWindowClosed ();
        }
    }
}

public void OnWindowClosed ()
{
    Debug.Log ("Windows Closed");
}

public void OnGUI() {

    if (GUI.Button (new Rect (10, 20, 100, 20), "Show Window"))
        bWindowActive = true;
    if (GUI.Button (new Rect (10,60,100,20), "Close Window"))
        bWindowActive = false;

    if (bWindowActive) {
        GUI.Window (0, new Rect(200, 10, 200, 200), DoMyWindow, "My Window");
    }
}

public void DoMyWindow(int windowID) {
    if (GUI.Button (new Rect (10,20,100,20), "Hello World"))
        print ("Got a click");
}
</code>
Comment: Hi, the solution looks great. But in this case, you have created a custom button. But any idea how I could link this to the traditional (x) button that appears at the top right corner of an editor window. I am developing this tool for artists. So I want to keep it as simple as possible. Else I will have to just create a custom button and use that for closing.
Comment: I actually found a EditorWindow.OnDestory() which I wasn't able to during the whole of yesterday. But I really liked your solution - an interesting way of doing it. Thanks!

Detecting GUI window close in unity


"Good subjective, bad subjective" notice

Question: I've noticed that the "Good subjective, bad subjective" notice appears to be attached to this answer. I'm unable to find any other examples of it across the Stack Exchange network currently, but I had thought the notice is typically attached to questions. Is that the case, and The Workplace is deviating from the standard? If so, why?
Comment: i'm confused, is this something that only mods/original poster can see?
Comment: It appears the answer has been deleted, so now only mods and high-rep users (usually 10k, not sure what the threshold is for a beta site) can see the answer. The notice, though, is visible to all.
Comment: (visible to all when it is attached to a post that is not deleted)
Comment: ahh.  Ok then.  thanks.
Answer: The post notice options/comments are the same for Answers and Questions:

The reason you usually see Insufficient Explanation on questions rather than answers is to try and keep a thread, rather than a specific answer, focused and good-subjective.
In this case the question didn't appear to be attracting multiple bad-subjective answers, just the one. In addition, adding the post notice to the answer generates a notification (I think) to the answerer, making it actionable. Those last two reasons are why I post the notice on that answer. At least I think it was me.
As a side note, if you see a question or answer in need of one of these notices, flag it with an "Other" flag and explain which post notice the post needs and why. If your post has gotten a post notice and you feel you've resolved the problem with the post, flag it and a moderator can review and potentially remove the post notice.

Going through Review/low quality posts I converted  this answer to a comment. The entire content was:

Yes. You lose nothing by asking for details.
Comment: +1 for using another tool in the toolbox to help encourage great answers.


I can't make or receive calls on my IPhone 5c iOS 8.1

Question: I have a new problem with my iPhone 5c, I can't make any calls from it, but when I use my SIM on other phone it has no problem, and when I put another SIM it can't receive calls either, so obviously the problem is the phone itself. What can I do?
Thanks
Answer: Apple Support: If you can't make or receive calls on your iPhone

Check your iPhone settings

Turn airplane mode on and off. Tap Settings > Enable Airplane Mode, wait five seconds, then turn airplane mode off.
Check your Do Not Disturb settings. Tap Settings > Do Not Disturb.
Check for any blocked phone numbers. Tap Settings > Phone > Blocked.
See if Call Forwarding is turned on. Tap Settings > Phone > Call Forwarding.

Update your software

Check for a carrier settings update.
Check for an iOS software update. Some updates might require a Wi-Fi connection.

Remove and reinsert your SIM card
If your iPhone has a SIM card, remove the SIM card, then reinsert it.
Contact your carrier
When you contact your carrier, check the following:

Your account is set up to use your iPhone.
There aren't any localized service outages.
Your account doesn't have a billing-related block.
Your calls don't have errors on the carrier system.

Check your network settings

Reset your network settings. Tap Settings > General > Reset > Reset Network Settings. This will erase all current saved settings, including Wi-Fi passwords, preferred networks, and VPN settings.
Try to make or receive calls in another location.
Switch to a different network band. Tap Settings > Cellular and turn off Enable LTE, 4G, or 3G (this option will depend on your carrier and device model).

Still can't make or receive calls?
If you still can't make or receive calls, restore your iPhone as new. If restoring doesn't fix the issue, contact Apple Support or take your iPhone to an Apple Retail Store or Authorized Service Provider.
Answer: You should try to restore your iPhone to factory settings and completely wipe the software. Make sure you back up everything you need, e.g. your photos or contacts, since everything will be overwritten during this process. Then make sure you have the latest version of iTunes installed on your computer, if you have a Windows Machine, search for "Apple Software Update" in your Applications, or download the latest version of iTunes from the Apple Homepage https://apple.com/itunes. On a Mac you'd just have to check "Software Update" (in the Apple menu at the top left) until OS X 10.6., or the App Store (from OS X 10.7). Then connect your device, open it in iTunes and click "Restore Firmware". It will do a complete software update, follow the onscreen instructions, and everything should be fine afterwards.
Answer: Happened to me with new phone. I turned it off and back on and it is fine.
Comment: We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.
Answer: My iPhone 5 was not receiving or making calls and I noticed that my TTY was turned on (phone icon in top right corner). I turned TTY off by going to Settings > General > Accessibility > TTY. You will need to turn off both Software and Hardware TTY buttons. My phone had also somehow (we will not speculate how) got International Roaming turned on and I never travel outside the country, and no children have been playing with my phone. But I turned this off by going into Settings > Cellular > Cellular Data Options > Turn off Roaming/International Roaming.
The combination of these two things fixed my iPhone 5 and I can now call and be called. There was no unusual activity on my phone or no one playing with it when all of a sudden one day I woke up and my phone wouldn't call out or get calls. After 36 hours of searching and reading and resetting and a million other things nothing worked but this. Again, still don't know how they got turned on but they are now off.


In the imperative what is right to say:" remember to not do" or "remember not to do" something?

Question: My question is my doubt. What is the correct structure?
Answer: I believe both are grammatically correct.
IMO, "not to do" puts more emphasis on negation whereas "to not do" focuses on the verb itself. For your sake of using imperative as a prohibition/restriction, here are my suggestions as samples:

I told you not to take it outside! (Remember not to take it outside)
I told you to not throw it out! (Remember to not throw it out)

In terms of speech, stress would play a big role to convey the style and clarity.
P.S. When in doubt, always think back to Hamlet:

To be, or not to be...
Comment: My guess is that "not to do" is the normal thing and "to not do" is a variant that is not so frequent. But there is no difference. It seems that some speakers prefer the second variant.
Comment: But if I'm giving an advice "I told you" doesn't seem to fit well. Can I use it as imperative even being in the past? Is it normal to say that?
Comment: @IWannaKnow "imperative in the past" seems to be a reinforcement or correction to an existing order to me (hence you used _Remember_). Two versions were provided for comparison sake. Besides being normal, I think it depends heavily on your _style/intention_.
Comment: That's what I thougth. It's used as a reinforcement. Thanks for answering.
Answer: Both will probably succeed in expressing what you want. I would recommend: "remember to not" however because of a distinction that probably won't matter here but has philosophical import.
In Latin and medieval philosophy, there's a distinction between volo, non volo, and nolo ("I will", "I do not will", "I will against" or "I will not to"). In the case of verbs of will, there's a clear distinction between cases where you will to do something, you will to not do something, and you will not to  / will against doing something. In such cases the sequence matters as to what's being negated.

I will to eat ice cream
I will to not eat ice cream
I will not to eat ice cream

Depending on the language user, a distinction might be meant between the second two with "will to not" being an act of will whose content is "to not eat ice cream" whereas the latter becomes a negating act of will against the idea of eating ice cream.
My sense, however, is that this distinction will be utterly lost and meaningless in all but the most technical contexts and then only for a subset of verbs related to willing and thinking. I think remembering might qualify as one of those.
So I would recommend "remember to not ..." and would not recommend "remember not to" for fear that the negation will be applied to the remembering rather than to that which is to be remembered.
Comment: I undestood your point but I guess the context will not allow people imagine we are telling them to not remember when saying "remember not to..."
Answer: In my view there is no difference. Normally the negative infinitive has the structure  not to do as in Hamlet's to be or not to be. Some speakers seem to prefer the variant to not do, but it is by far not so frequent as the first structure.
Answer: a classic negative "do this" dialog comes from Hamlet:
For who that's but a queen,
fair, sober, wise...
would from a paddock,
from a bat, a gib...
such dear concernings hide?
Who would do so? No...
in despite of sense and secrecy...
unpeg the basket on the house's top...
let the birds fly,
and like the famous ape...
to try conclusions
in the basket creep...
and break your own neck down.
Hamlet tells mom (Gertrude) "go ahead and squeal on me to that rat king like any reasonable person would..."
Modern English equivalent:
For who but a queen
that's fair, sober, wise…
would hide from a toad,
from a bat, a tomcat...
such important secrets?
Who would do so? No...
give in to common sense and the urge to tell…
open the basket on the rooftop…
let the birds fly away,
and like the famous ape…
to try to fly yourself
climb into the basket…
and break your own neck
on the way down.


Halo 4 Campaign Multiplayer

Question: Before I start I don't have a lot of friends who play halo 4 on Xbox.
So my question is it possible to play the campaign with other players/strangers. I want to know about this so I can buy a gold membership.
P.S : I use Xbox 360
Answer: You can play an online co-op campaign, but only through using invites, and before starting a game. Players cannot join a session-in-progress during campaign. This is due to certain aspects of levels needing to be re-loaded when more than one player is present. The co-op partner does not have to be on your friends list to be able to play in campaign (or matchmaking) with the host.

Halo 4 Campaign Multiplayer


Windows 8 upgrade fails

Question: Upgrading windows 8 keeping programs and settings is not working. It fails at 47% of migrating settings and rolls back.
This is the relevant part of the log (Sources/Panther/setuperr.log):
2013-02-03 00:02:02, Error      [0x0803b6] MIG    Can't retrieve group information for user NT SERVICE\MSSQLFDLauncher. NetUserGetLocalGroups failed 0x000008AD
2013-02-03 00:30:39, Error                 MIG    COnlineWinNTPlatform::AddPathToSearchIndexer - Failed to create CSearchManager instance, error: 0x80070422[gle=0x000003f0]
2013-02-03 00:32:02, Error      [0x0808fe] MIG    Plugin {ee036dc0-f9b7-4d2d-bb94-3dd3102c5804}: BRIDGEMIG: ParseRegistryIfBridgeExists: query bridge presence key failed 0x139f, bridge present = 0
2013-02-03 00:32:02, Error      [0x08038d] MIG    Failure while calling IPostApply->ApplySuccess for Plugin={ServerPath="%windir%\system32\Migration\netiomig.dll", CLSID={ea51459a-a30d-4a33-b294-0e0163551c75}, ThreadingModel=Apartment}. Error: 0x8007000D
2013-02-03 00:32:02, Error                        Error READ, 0x0000000D while gathering/applying object: apply-success, Action,CMXEPlugin,C:\$WINDOWS.~BT\Sources\WorkDir\MachineSpecific\Working\agentmgr\CCSIAgent,%windir%\system32\Migration\netiomig.dll,{ea51459a-a30d-4a33-b294-0e0163551c75},Apartment. Will return 2[gle=0x000000cb]
2013-02-03 00:32:02, Error      [0x08038d] MIG    Failure while calling IPostApply->ApplySuccess for Plugin={ServerPath="Microsoft-Windows-DirectoryServices-ADAM-Client\adammigrate.dll", CLSID={43CCF250-2A74-48c6-9620-FC312EC475D6}, ThreadingModel=Apartment}. Error: 0x80070002
2013-02-03 00:32:02, Error                        Error READ, 0x00000002 while gathering/applying object: apply-success, Action,CMXEPlugin,C:\$WINDOWS.~BT\Sources\ReplacementManifests,Microsoft-Windows-DirectoryServices-ADAM-Client\adammigrate.dll,{43CCF250-2A74-48c6-9620-FC312EC475D6},Apartment. Will return 2[gle=0x000000cb]
2013-02-03 00:32:02, Error      [0x0808fe] MIG    Plugin {C939EC0F-2F56-4CE8-AF56-2336596A5FA7}: failed to get pnpx db file size
2013-02-03 00:32:02, Error      [0x0808fe] MIG    Plugin {C939EC0F-2F56-4CE8-AF56-2336596A5FA7}: Failed to migrate the pnpx db
2013-02-03 00:42:09, Error      [0x0803b6] MIG    Can't retrieve group information for user NT SERVICE\MSSQLFDLauncher. NetUserGetLocalGroups failed 0x000008AD
2013-02-03 00:48:34, Error                        Error WRITE, 0x00000005 while gathering/applying object: File, C:\Users\Yishai\Pictures [1.JPG]. Will return 0[gle=0x00000005]
2013-02-03 00:48:34, Error                 MIG    Error 5 while applying object C:\Users\Yishai\Pictures\1.JPG. Shell application requested abort[gle=0x00000005]
2013-02-03 00:48:34, Error      [0x08097b] MIG    Abandoning apply due to error for object: C:\Users\Yishai\Pictures\1.JPG[gle=0x00000005]
2013-02-03 00:48:34, Error                        pUpgLayerDoOnlineApply: Apply operation failed. Error: 0x0000002C
2013-02-03 00:48:34, Error      [0x0802f5] MIG    CMediaManager::Close: m_pSelectedTransport->Close(1) failed with Exception Win32Exception: Device was open with readonly access.: Access is denied. [0x00000005] void __cdecl Mig::CMediaManager::CloseTransport(int)
void __cdecl Mig::CUNCTransport::Close(int).
2013-02-03 00:48:34, Error                        MigCloseCurrentStore caught exception: Win32Exception: Device was open with readonly access.: Access is denied. [0x00000005] void __cdecl Mig::CMediaManager::CloseTransport(int)
void __cdecl Mig::CUNCTransport::Close(int)
2013-02-03 00:48:34, Error                 CONX   Apply: Migration phase failed.[gle=0x00000003]

Before it was complaining about things in the Music directory. I deleted the whole thing, now it moved on to Pictures, so clearly the problem is not the file. I tried resetting the permissions on the Users folder, and it went through most of them (it complained about some things being unchangable, but not the pictures folder.
What could be the soure of the problem?
Edit: Disk space shows 109GB used out of 138GB total, 28.8GB available, this is with Windows 8 already downloaded and using up about 2GB of space.
Comment: How much free space does the drive have?
Comment: 28.8G free of 138GB. That is with Windows 8 already downloaded.
Answer: It looks like file permission problems (Read/Write). You can try to reset the Windows permissions to default. I had some issues that caused Windows to fail while installing updates.
Run command prompt as Admin and change the directory to the drive root by typing the following.
CD "C:\"

Then copy and paste this command
icacls * /T /Q /C /RESET

This worked in my case and updates went smoothly.
Answer: @cbabb's answer didn't end up doing the trick. This is what I ended up doing (modified advice from Microsoft's technical support). I moved (cut/paste) the documents, music, photos and videos folders to a C:\backup folder that I made. Interestingly everything still worked (the shortcuts in explorer, etc. - I could have just left them there for the long term). I then did the upgrade and it worked. I then moved them back after the Windows 8 upgrade was done.

Windows 8 upgrade fails


How to set up sshfs to use www-data

Question: I have 2 Debian systems, prod1 and prod2, with their respective users, prod1 and prod2 as well. I want to setup an sshfs with autofs to have a directory on prod1 in the /home/prod1/ that the user www-data could use independently on one server or the other. I want the owner of the content to be www-data. I want to use ssh from the prod2 user to prod1 user, not directly www-data. How would I configure /etc/fstab, /etc/auto.master and /etc/auto.sshfs ?
Comment: Look at this answer [-o allow_other](https://stackoverflow.com/questions/29330382/how-to-enable-writing-to-sshfs-directory-in-php)
Answer: cat /etc/fuse.conf
# mount_max = 1000
# user_allow_other

Uncomment the user_allow_other line and then this will be work.
Answer: auto.master:
/mnt/ssh /etc/auto.sshfs        uid=www-data,gid=www-data,--timeout=30,--ghost

auto.sshfs:
prod1     -fstype=fuse,rw,nodev,nonempty,noatime,allow_other,max_read=65536 :sshfs\#prod1@prod1\:

you can use e.g. /var/www/ssh instead of /mnt/ssh, this directory becomes a special directory where access will trigger auto-mount ...
reconsider security implications and adjusting permissions

HTH, Zrin
Comment: prod1 gets created automatically and belongs to root but then whatever I try to do (ls) returns No such file or directory
Comment: make sure that root has needed private key in `/root/.ssh/id_dsa`, try `ssh prod1@prod1` from root
Comment: sorry, tried all sorts of things and eventually gave up. sshing directly as www-data. Dunno what the etiquette says in this case but marking your answer as correct for your efforts.

How to set up sshfs to use www-data


I would like to make engine play specific openings

Question: I would like to organize an engine tournament on Arena and restrict it only to one opening. How do I do that?
Answer: When you set up a tournament in Arena, there should be a tab "Options" and within that a selection thing for Starting position. There you can select to load the starting position from a pgn file.
If you do not have a pgn yet of the opening you want them to play you can e.g. play the desired opening line in Arena and then File -> Save as pgn. If you want the tournament to test multiple variations you can create a fresh board, play the next line and then save it to the same pgn.


Are there market makers for OTC stocks?

Question: Will I always be able to find a willing buyer/seller for stocks that trade on the OTC markets? In other words, are there market makers for OTC stocks similar to the market makers for NYSE and NASDAQ listed stocks? I am particularly interested in the situation for stocks on OTC Markets' OTCQX and OTCQB tiers.
Answer: Probably not.
OTC markets (also known as 'Pink Sheets') tend to have names that do not meet the listing criteria for larger exchanges.  As a result there is less liquidity and less incentives for market makers to participate in those names.
That is not to say that market makers won't make markets in the name, they may choose to do so. The OTC markets may adopt schemes to encourage market makers to make markets, but it is unlikely there would be a guarantee that there would be market makers willing to make markets in such a name with a reasonable spread.

Are there market makers for OTC stocks?


Is "gossip surveillance" processing personal data under the GDPR?

Question: The Guardian has an article on "gossip surveillance" where strangers report on social media private conversations they are not party to in the hope of exposing duplicity from the speakers in reference to a third person who is not present.  This nesaseraly requires releasing publically enough details to identify the subject of conversation, and likely to identify the speakers as well.
Would these actions be covered by the GDPR, such that the uploader would be a data controller/processor and this behaviour be potentially infringing?
One defence could be the the processing was of "household nature", but I would interpret the case of the Dutch grandmother who shared publicly photos of their children and it was held that exemption did not apply because posting photographs on social media made them available to a wider audience.  This would seem to apply even more here.
Answer: Almost surely
It's clearly personal data and it's clearly not "purely personal" or "household" processing of data. Therefore, the GDPR applies and the poster is a data controller and a data processor.


Add Objects in LWJGL without using glTranslationf function

Question: It is possible to add an object in LWJGL without using translation function (glTranslatef) ? and if it is possible does this improve somehow performance ?
Comment: LWJGL has no concept of an "object".
Answer: glTranslatef doesn't add objects in LWJGL but translates OpenGL's built-in modelViewProjection matrix. Based on the fact that you're using glTranslatef I would say that you're using legacy OpenGL where this is the only way of matrix translations and these calls are not hardware accelerated.
Possibly the best way to improve your performance is to switch to modern OpenGL, bring your own math library with your own matrices (LWJGL's utility library provides you with these but you can look for other libraries if you want to) and start using shaders.
Answer: glTranslate is deprecated and slow, so you shouldn't use that function anyway and rather use the matrix operations, like Matrix4f.translate(modelPos, modelMatrix, modelMatrix);
to transform your models.
see: http://lwjgl.org/wiki/index.php?title=The_Quad_with_Projection,_View_and_Model_matrices
and feed a complete Model-View-Projection matrix to the shader as described in the link above. Another way to gain a little more performance would also be to use Uniform Buffers instead, but I'm not sure if lwjgl does support that, yet.
Comment: Why is glTranslatef slow?
Comment: @BWG because it uses the immediate mode, that means the command is executed on the GPU when the CPU calls it or even a little later due to command buffering. Also the transformation data has to be pushed all the time, where as with matrices you can push it once and the shader uses it all the time. Also a big factor is driver overhead, for each transformation you have to go through the driver which costs quite some time.
Comment: @BWG `glTranslatef` itself is not slow, but it's part of the older fixed-function pipeline, which doesn't support the newest performance-enhancing features. (Although it might well be good enough if you're not looking for anything fancy - Minecraft uses it, for example)
Comment: @immibis Minecraft also runs pretty terrible.
Comment: @pfannkuchen_gesicht At least old versions (before they started adding layers of abstraction everywhere) ran okay. Not *great*, not as efficiently as possible, but definitely acceptably.


During reflection does the emitted photon have same properties?

Question: When light (photon) is reflected the the original photon is absorbed by an electron and then emitted again. Does this "new" photon have the same wavelength, frequency etc. as the original?
Comment: What you are describing is not reflection, but photoluminescence. What you want is called Compton scattering.
Comment: @Hans-Peter E. Kristiansen Is reflection a similar process to photoluminescence?
Comment: Depends on what you mean by similar. In both cases there is an incoming and outgoing photon and an electron(within an atom) involved. You can read about both processes on wikipedia.
Comment: see John Rennie's answer ... the others are misleading
Comment: a good perspective is to see the photon as a wave in the EM field, free electrons in a metal simply reflect this wave.
Answer: Like any quantum field you can approximate light as either a particle or a wave. However you need to be clear that both are just approximations to the true nature of light and like all approximations they work well in some circumstances and badly in others.
In this case the photon model is a poor way to describe the process of reflection. Reflection doesn't involve photons being absorbed then re-emitted. You're correct that the oscillating light wave of the light interacts with electrons in the reflector, and the resulting oscillating dipoles reradiate light. However, while this is easily described using a wave model it's hard to describe using photons. As a general rule the photon model works well when light is exchanging energy with something so for example it would be a good model if the light was ejecting photoelectrons from the mirror. When we're studying the propagation of light the wave model is a far better approximation.
So I don't think your question can usefully be answered as it's currently phrased. However we can say that the reflected light has approximately the same frequency as the incident light. A say approximately because in principle there are effects that could change the frequency. For example if the mirror is floating in zero-G then the momentum change when the light is reflected will cause the mirror to accelerate by a tiny amount and therefore red shift the reflected light by a tiny amount. In most circumstances we can ignore these small effects.
Comment: Assuming the mirror was stationary in the first place. And let's not get into choices of reference frame here, shall we? Assume, as I believe the OP does, that the measurements are done in the frame of the emitter.
Comment: @WhatRoughBeast: the problem with the original question is that propagating light is poorly described as photons. The reflected wave will be the same as the incident wave except of course that its momentum points in a different direction.
Answer: There is no absorption and re-emission involved in reflection.  None whatsoever.
This can be proved with a laser; any colored laser.
Using a collimated expanded laser beam, incident on the reflecting surface, at an angle, you will get interference between the incident wave and the reflected wave. That is only possible if the two are coherent, which means the incident wave is refracted, and not absorbed.   The reflecting surface is not a lasing medium, so there couldn't be any coherent stimulated emission, and moreover, be so for any incident wavelength.
The photons are not absorbed during reflection.
Comment: If that's true, then there can be no absorption by a laser beam being transmitted through an atmosphere. In that case laser beams must propagate through an atmosphere at c. And they don't. You might want to rethink (or restate) that one.
Answer:
During reflection does the emitted photon have same properties?

During reflection the color does not change and the phases do not changes otherwise the reflected images would be fuzzy.
I will complete the other answers by examining the mirror material.
Not all materials reflect. Reflecting materials are materials where the microscipic  domains in the solid are coherent  forming crystal structures. A highly polished metal mirror, for example reflects classically because of the very high reflection coefficient. That is why all mirrors are glass backed be some type of metal in highly reflective mode. (Glass itself, as water too, have a transmission coefficient which reduces the reflection coefficient to a very small number except at certain angles).
Photons are a different framework, a quantum mechanical framework . In quantum mechanics we have solutions of equations with boundary conditions for each given problem. The problem of "a photon hits a highly reflective metal surface and is reflected" has a very specific solution with the given boundary conditions. As you know quantum mechanics has specific energy states that ensure that there is no dissipation of energy at that energy state. Thus, if the photon is reflected and its energy(color)  is still the same  it means that a total state ( photon/ metal crystal) gave the solution of an elastic scatter where no energy was lost ( within the heisenberg uncertainty principle). Nature is very good at analogue solving of problems :). Good reflectors have many states that can accommodate a solution for reflection,( metals mainly because of the bands of electrons not attached to individual molecules and atoms).
So both classically and quantum mechanically there is consistency: the photon does not lose its energy in interacting with the whole crystal/domain structure of the reflector.
Answer: Your title and question has some in-consistency, for example, photon can also have spin, and the field itself can also carry orbital angular momentum et.al. But from fresnel equation:

r=(n-1+ik)/(n+1+ik)

where n and k are the real part and imaginary part for the materials, you can see the reflection spectra already contain the dispersion of the materials, and not only the amplitude, the reflection phase is also changed, from those information one can detect the properties of the materials: what human eyes see most is those reflected light, right? The photon reflected can also carry information for the spin and orbital angular momentum of the materials et.al.
Comment: "The photon reflected can also carry information for the spin and orbital angular momentum of the materials et.al"
does this mean the photon can also carry the chemical makeup of the material it reflected off of? could we see this in the spectrum of light the same way we see what stars are made of? (i'm not an expert, just curious)
Answer: Richard Feynman in his lectures "Today's answers to Newton's Queries about light" in 1979 stated that light goes only straight and reflected light is a new photon. So whatever people say - I trust Richard Feynman.


Is there any bijective mapping between a non-convex polygon and a convex polygon?

Question: Given an arbitrary non-convex polygon (2d) with $n$ vertices, is there any procedure by which to map it to a single convex polygon, and then back again? Maybe operating somehow on the angles between edges to map the image to the right (below) to the image to the left? If so, is there any generalization to polytopes (>2d)? Any guidance is appreciated.
Comment: search for "generalized barycentric coordinates concave".  Lots of literature, e.g https://core.ac.uk/download/pdf/85209106.pdf and https://doc.cgal.org/latest/Barycentric_coordinates_2/index.html.
Comment: After I rolled back a suggested edit to remove the graph-theory tag, I received a downvote and vote to close. It's my understanding that polygons are particular undirected graphs. If I'm wrong, fair enough; you're welcome to explain that. Otherwise I'm casting the widest net I can.
Answer: If both polygons have a similar triangulation, i.e. can be decomposed to the same number of nondegenerate triangles with the same connectivity graph, then yes.
(And such mapping is trivial, as it is a set of mappings between corresponding triangles.)
Whether this is a necessary (and not just sufficient) condition, I do not know.
This extends trivially to higher dimensions. In 2D, each cell in the grid is a 2-simplex, i.e. triangle; in 3D, a 3-simplex, i.e. a tetrahedron; in 4D, a 4-simplex, i.e. a 5-cell, and so on.
In the example case, the two have a similar triangulation using three triangles, giving a trivial bijective mapping between the two:

When morphing between images, the shapes are covered by a (triangular) grid where grid vertices are at similar details, and the mapping itself is usually bicubic (using coordinates of more than one grid cell, so that grid cells are less visible in the morphed output).

Edited to describe the affine (linear) map between triangles:
An affine map between two triangles is trivial, by using barycentric coordinates $(u, v, w)$: If $\vec{p}_u$, $\vec{p}_v$, and $\vec{p}_w$ are the vertices of the triangle, then barycentric coordinates $(u, v, w)$ correspond to point $u \vec{p}_u + v \vec{p}_v + w \vec{p}_w$.
By definition, $u + v + w = 1$.  Point $(u, v, w)$ is within the triangle if and only if $0 \le u \le 1$, $0 \le v \le 1$, and $0 \le w \le 1$.
Because $u + v + w = 1$ by definition, one of them (usually $w$, via $w = 1 - u - v$) is left out for simplicity.
If we have a triangle with vertex $\vec{p}_0 = (x_0 , y_0)$, and the other two vertices at $\vec{p}_u = (x_0 + x_u , y_0 + y_u)$ and $\vec{p}_v = (x_0 + x_v , y_0 + y_v)$, then
$$\left\lbrace\begin{aligned}
x(u, v) &= x_0 + u x_u + v x_v \\
y(u, v) &= y_0 + u y_u + v y_v \\
\end{aligned}\right. \quad \iff \quad \left\lbrace\begin{aligned}
u(x, y) &= \displaystyle \frac{(x - x_0)v_y - (y - y_0)v_x}{u_x v_y - u_y v_x} \\
v(x, y) &= \displaystyle \frac{u_x (y - y_0) - u_y (x - x_0)}{u_x v_y - u_y v_x} \\
\end{aligned}\right.$$
In a computer program, you'll want to use form
$$\left\lbrace\begin{aligned}
u_i &= (x - X_i) A_i + (y - Y_i) B_i \\
v_i &= (x - X_i) C_i + (y - Y_i) D_i \\
\end{aligned}\right.$$
for each source triangle $i$, the correct one being the one for which $0 \le u_i \le 1$, $0 \le v_i \le 1$, $0 \le u_i + v_i \le 1$.  The six constants ($X_i$, $Y_i$, $A_i$, $B_i$, $C_i$, $D_i$) are calculated from the three vertices of triangle $i$, $(x_0, y_0)$, $(x_1, y_1)$, and $(x_2, y_2)$, via
$$\begin{aligned}
X_i &= x_0 \\
Y_i &= y_0 \\
A_i &= \displaystyle\frac{y_2 - y_0}{(x_1 - x_0)(y_2 - y_0) - (y_1 - y_0)(x_2 - x_0)} \\
B_i &= \displaystyle\frac{x_0 - x_2}{(x_1 - x_0)(y_2 - y_0) - (y_1 - y_0)(x_2 - x_0)} \\
C_i &= \displaystyle\frac{y_0 - y_1}{(x_1 - x_0)(y_2 - y_0) - (y_1 - y_0)(x_2 - x_0)} \\
D_i &= \displaystyle\frac{x_1 - x_0}{(x_1 - x_0)(y_2 - y_0) - (y_1 - y_0)(x_2 - x_0)} \\
\end{aligned}$$
This is numerically stable and accurate with floating-point numbers (noting that it will fail for degenerate triangles, because the denominator will be zero), and fast enough to find the correct source triangle when given an arbitrary point $(x, y)$ that may or may not be inside the polygon.
When the source triangle $i$ is known, the inverse is trivial. The point corresponding to $(u, v)$ in the target triangle with vertices at $(x_0, y_0)$, $(x_1, y_1)$, $(x_2, y_2)$, is
$$\left\lbrace\begin{aligned}
x &= (1 - u - v) x_0 + u x_1 + v x_2 \\
y &= (1 - u - v) y_0 + u y_1 + v y_2 \\
\end{aligned}\right.$$
which is also numerically stable for points within the triangle.
Therefore, for each triangle, you'll need to store the vertex coordinates and the four helper constants, for a total of ten floating-point numbers (scalars) per triangle.
Whenever you have two corresponding triangles (no matter which is source and which target), choose the base vertex so that it is closest to a right angle in both triangles, to maximize numerical stability.

While there probably is an algorithm for obtaining a similar triangulation for two arbitrary polygons, I personally do not know it; hopefully others will pipe up and suggest some.
Comment: Thanks for the answer. This helps. I assume for cases like the example above that additional vertex could always be fixed as the centroid of the convex polygon. Once the triangulation is formed, how would one then morph between convex and concave? Like say you had triangulated the concave polygon: is there some procedure to "flip" the triangles into a concave one?
Comment: @kevinkayaks: I was wrong, in this particular case no additional vertex is needed, as the shown triangulation with just three triangles is similar for both polygons.  As shown by my ineptitude, there can be a large number of valid triangulations for each polygon, and it is not always obvious if the two have a similar one.  What do you mean by "flipping"?
Comment: Actually, you can characterize a triangulation by which chords are part of it, and for a strictly convex polygon any triangulation will be valid.
Comment: If you wanted such an idea full procedure would be : if one of the polygon has less vertices than the other, subdivide its sides to add vertices. Then, triangulate the nonconvex polygon. Then, build a triangulation on the convex polygon that has the same connectivity. Then, map each triangle to the corresponding triangle.

But this might fail if you have to subdivide the side of the convex polygon, because then you might have degenerate triangles when trying to do that.
Comment: @kevinkayaks to map a triangle into a different-shaped triangle (respecting constraints about which side goes where, so that it's coherent), the most natural way is to use an affine function. This boils down to the barycentric coordinates suggested by @ brainjam in his comment on the question, but in the simple case of a triangle.
Comment: I added the details of affine maps between two triangles, as suggested by @ brainjam and @ HugoManet above. @kevinkayaks: By "triangulations being similar", I mean that the triangular meshes must have the same number of triangles, and have the same connectivity graph.  The connectivity graphs being same means that corresponding triangles in the two meshes share edges and vertices with corresponding neighboring triangles; essentially, that you can convert one to the other by moving the mesh vertices only, without changing how they form the triangles, or causing the triangles to overlap.


login based forward proxy control for mac os x 10.6?

Question: Can I do user/login based forward proxy (for website blocking) in Mac OS X server 10.6, or know of a solution that will integrate with the Open Directory of OSX?
Answer: Pretty much any proxy will allow you to block sites and force authentication of clients against a directory .
Probably the best know proxy is Squid (http://www.squid-cache.org/), it will run on OS X or Linux and it will allo users to authenticate against LDAP/RADIUS/Kerberos.
The nice chaps at AFP 548 even have a guide on how to integrate Squid with OD.
The same principles (LDAP/RADIUS/Kerberos) will allow you to use virtually any Proxy with OD.


If a project is licensed GNU GPLv3 at top level but includes packages that are MIT are the included packages MIT?

Question: If a project is licensed GPLv3 at top level but includes packages that are MIT, do the licenses of the included packages apply?
Comment: How separate (or separable) are these packages?  Is this a vast GPLv3 project that includes MIT-licensed programs that are invoked through userspace?  Or are these MIT-licensed libraries linked into a GPLed whole?
Comment: "Do the licenses of the included packages apply?" - What do you mean by this question? Yes, all the licenses need to be read and followed.
Answer: I understand your question like this: "I received the source code for a software package. The root directory of the source code contains a COPYING file containing the GPLv3. I found a subdirectory in that tree that contains another project that has been re-used by the GPL project as sub-project. The subdirectory makes no mention of the GPL, but instead contains the MIT license. May I use code from that subdirectory according to the MIT terms?"
In that case, the answer is "most likely yes". The fact that the MIT-licensed code is re-used in an GPLv3 project does not change the license of that code. The MIT license still applies.
If the MIT-licensed source code has been modified by the authors of the GPLv3 project, they might think of their changes being licensed under the GPLv3. In my oppinion, they would have needed to adjust the license statement of the files they edited in case they don't want their changes to be subject to the MIT license. So, to be extra safe, you can try to receive the MIT-licensed source code from the original author instead of taking it from the source tree you have now.


Could a person survive a high temperature environment by only cooling the blood supply or will parts of the body eventually overheat?

Question: Obviously not temperatures above the boiling point, but could you theoretically survive in an environment hotter than a normal human could thermoregulate in if you attached a blood-cooler and if so how much hotter?
Comment: Actually, to avoid heat burns, I would recommend to heat the interior a bit, or make the change gradual, because your skin doesn't like much gradient of temperatures between inside and outside, nor between the skin and outside.
Answer: The way you see blood cooling the body is backwards of what it actually does
Blood doesn't pull external heat away from the skin, it pushes internal heat to the skin where it can be removed from the body through sweat evaporation. Sweat evaporation protects the body from both internal and external heat.
Your blood cooling system would benefit people by allowing them to work harder and longer in a controlled environment because the heat generated by the body will be removed much more efficiently than it is through sweat. Athletes around the world will praise you!
But it won't improve the body's ability to withstand external heat. Not only does the blood not pull heat from the skin,1 but the skin itself is a considerable insulator against heat.
Now, you might think that the skin's insulative abilities would benefit the body. They do! They keep the outside... outside. It's why you can walk around on a bright summer day and not boil in your own juices. But those insulative abilities have a consequence.
If you use your blood cooler to keep the interior of the body at normal body temperature (you can't lower that without serious consequences... like death...) then your body won't release sweat as early as it normally would, causing skin to burn faster, and you're only way of knowing that your skin is burning is through the pain caused by damaged nerves. Yup, you won't even feel warm. You'll just suddenly start howling because you have 1st-to-3rd degree sunburns and never knew they were happening. Everything felt normal until that moment.
And just to underscore those concepts: your body won't release sweat as soon as it normally would... so you will burn faster.
Conclusion
While I generally like the idea, and can see some clever uses of it for stories, such a system would not significantly (if at all) improve a person's ability to withstand hotter environments. On the contrary, the human would suffer more for not knowing how those environments were affecting them.

1 Think about it, where would the heat go? Since the body evolved without anywhere for heat drawn from the skin to go, the system can't be significantly benefited by giving the heat somewhere to go without changing the entire system. That means changing the distribution of arteries, veins, and capillaries in the body to better capture the heat from the skin, which means pushing them closer to the surface of the skin, which has its own ugly set of consequences. The body is absolutely amazing. Which is why artificially changing it rarely improves it.
Comment: You're right when it comes to unimpeded sweating, but I think the proposal would be effective in situations where the sweat system isn't useful, e.g. while wearing a suit that prevents water evaporation or air movement. Anecdotally, when I've been on IV fluids (at room temp), I was constantly bloody freezing, and the volume of fluid there was minimal.
Comment: @Ottie You're completely right, but remember I said it would be bad to cool the body below average body temperature. That freezing sensation you felt was your body telling you something was wrong. I might see your point about suits that prevent sweating - but the heat still needs to go somewhere. On the other side of a cooling system is a large radiator and (usually) a fan pushing heat into the atmosphere. A rational reason is needed to justify the suit but still allow the radiator. Might depend on the reason for the suit.
Answer: I think you have just tried to reinvent sweating.
Sweating achieves exactly what you intend to do:

sweat secreted by the sweat glands reaches the surface of the skin
it evaporates, subtracting heat to the surface
this cools down the blood flowing in the capillars irrorating the body surface
as a result the entire body is cooled down

It is a very clever way of managing excess heat, because the skin is one of the largest surfaces available to the body.
Comment: There are circumstances where sweating becomes ineffective (or at least, not effective enough) though. Such as high temperature combined with high humidity, or high temperature combined with hard work/extreme sports. In this situation, I imagine OP's idea could achieve some additional cooling (assuming the body's thermoregulation doesn't work against it too much).
Answer: When you can't sweat, or if the core body temperature is high, having some extra cooling could be useful. A few years ago Stanford University investigated cooling gloves with the idea of being able to lower the core body temp. They also found it useful to heal warm people up who had been cooled down for certain surgeries. I think it has been commercialized to help athletes in post recovery after exercise.
They apparently were inspired by bears coming out of hibernation and wondering how they regulated heat when they had a thick layer of insulating fat.

Heller and Grahn discovered that bears and, in fact, nearly all mammals have built-in radiators: hairless areas of the body that feature extensive networks of veins very close to the surface of the skin.

Rabbits have them in their ears, rats have them in their tails, dogs have them in their tongues. Heat transfer with the environment overwhelmingly occurs on these relatively small patches of skin. When you look at a thermal scan of a bear, the animal is mostly indistinguishable from the background. But the pads of the bear's feet and the tip of the nose look like they're on fire.

These networks of veins, known as AVAs (arteriovenous anastomoses) seem exclusively devoted to rapid temperature management. They don't supply nutrition to the skin, and they have highly variable blood flow, ranging from negligible in cold weather to as much as 60 percent of total cardiac output during hot weather or exercise.

Their device basically a glove that cools the blood going through the hand had two features:

They understood where the body lost heat by having larger blood vessels near the surface of the skin. In this case they chose the palm of the hand.
They understood vasoconstriction as a function of temperature , if they cooled the hand too much, then the blood vessels close up too much and you just get a cold hand.

So depending on how far you pushed the concept in effect your blood cooler could be some kind of device that could help radiate heat away from the body. Although you would have concerns like JBH mentioned, and it seems like cooling suits are a little simpler. But it is your world to build and if you can solve things like blood clotting issues etc. why not?


How do i notify iphone app when user cancel SSO process?

Question: I have an issue with SSO facebook in my iphone app. I have searched but no userful result for me.
My app have two functions: login/sigup using facebook.
My problem is how do i notify my app that user cancel SSO? the steps follow describe for it:

User click on "Connect using facebook", then app switch user to Facebook app.
When facebook validation process not done, user press Home button (on his device) and go back my app.
--> How to notify my app what happen here. i have found in Facebook SDK but no mentions for it.

Thank for reading.
GE.
Comment: for SSO implementation you save your facebook key in NSUserDefault (i guess because it is internal Facebook)
Comment: I found the reason for it, the reason is unthinkable.

That is before alow Facebook dialog show i show an alert confirm to user. I using method clickedButtonAtIndex of UIAlertViewDelegate to handle user's option. When user chooses "OK" facebook dialog will show, but alert view will dismiss after it so it dismiss facebook dialog also.

The solution is using didDismissWithButtonIndex method to call Facebook dialog show after alert dismiss.

--------------------------------
Answer: For SSO implementation you save your facebook key in NSUserDefault (I guess because it is internal Facebook or cookies of www.facebook.com exist or not.)
So when you launch your app please check in callback method applicationDidBecomeActive  that
your NSUserDefault or Cookie exist or not  and show popup accordingly.
Comment: Thank for your quickly answer, i'll try it.


Customer count map (Google maps?)

Question: I have a two column list consisting of a US zipcode and a count (number of customers in this case). I want to put this data onto a map.  Would Google maps API be a good fit for this?
It seems like this would be a common enough type of problem to already have an existing (preferably Java based) solution without having to re-invent the wheel.
Any suggestions?
Answer: Found my answer: Google Fusion Tables
http://tables.googlelabs.com/Home
Comment: This link is dead. Is there an updated way to do this?

Customer count map (Google maps?)


what is the difference between Struts and Tapestry framework

Question: Can any one explain me the difference between Struts and Tapestry framework or may be the comparison between them?
Regards,
Mahendra Athneria
Mumbai
India
Answer: The Tapestry tutorial is updated here: http://tapestry.apache.org/tapestry-tutorial.html
In terms of differences, they are vast.
Struts is an action-oriented framework; it rounds out a few of the roughest edges of the Servlet API and makes it marginally easier to link Actions (the Struts equivalent of a Servlet) to views (usually JSPs).  However, it leaves all the heavy lifting to you.
Tapestry is a component oriented framework: it does all the heavy lifting. Components mean that Tapestry knows much more about the structure of your application, and can do lots of busy work and plumbing such as figuring out good URLs and responding to them automatically: you just concern yourself with your page classes and methods.  It does tons more besides.
Tapestry does a lot, but also tries to stay our of your way when you don't want it.
Finally, Struts has productivity features that are unmatched anywhere: the best exception reporting for when things go wrong, and live class reloading so that you can change your code and immediately see the change in your browser.
Comment: Or rather, Tapestry is the one that has good exception reporting and live class reloading.
Answer: I don't think you will find an experienced and unbiased developer of both frameworks to give you the answer. I guess you will have to invest some time in getting your hands dirty with both of the frameworks  to get a feeling wheter you like action based or component based approach.
There is a short introduction for Struts developers at Tapestry old site which explains major differences.
Comment: thanks bbcooper for your reply.i think that link would solve my query.
Answer: Here you been through the tutorial for each? I would have that would illustrate the differences better than someone trying to explain it:
Tapestry 5:
http://tapestry.apache.org/tapestry5.1/tutorial1/
Struts 2:
https://cwiki.apache.org/WW/getting-started.html


Select multiple anchor object in text frame InDesign CC

Question: Is there a way to select multiple anchored images within a text frame? I am just wanting to scale down these 3 circles and am wanting to scale them simultaneously so that they are all the same. I am trying to shift+click but its not working.
Answer: No, it's not possible to select multiple anchored objects.
As it says in Adobe's help page on anchored objects:

Using the Selection tool, you can select only one anchored object at a time. Using the Type tool, you can select a range of text with multiple anchored object markers. When you select multiple anchor markers with the Type tool, you can change the position options for all the anchored objects at once.

Selecting with the type won't be helpful in your case as it won't allow you to scale the items.
A few workarounds

If the text frame only contains the anchored objects you want to scale or if all your text is tightly formatted. Scale the whole text frame and afterwards Clear Overrides for both the Object Style of the frame and for the Paragraphs Styles within the frame and drag the frame back to its original size.

If you want to setup a document where anchored objects can be scaled globally, you could look into using Object Styles. A group can be Pasted Into a square graphic/unassigned frame which is pasted into a text frame. That container frame can have its Frame Fitting Options set to Fit Content Proportionally and have its size set in Size and Position Options. That way you can resize all frames of that kind in one go.