Why didn't Edward affix his mother's soul to the suit of armor?

Question: If Edward could affix his brother's soul, why not his mother? Did it require seeing the 'truth' to do so? Does that mean the other empty armor suits (Barry) had another person who had seen the truth affix them?
Answer: Edward couldn't affix his mother's soul, because she was already long dead. It isn't made so obvious, but actually a few years pass between the mother's death, and then the boys training with Izumi, before they try and resurrect her. He was able to attach Al's soul to the armour because it was still present, in the body of the creature they tried to transmute. The mother's soul had long since departed, and couldn't be used in alchemy.
When the mother died of her illness, we can assume Ed never considered putting her soul into another object, and even if he did he wouldn't have known how, and probably would not have had the alchemical skill to do so anyway.
Answer: Because he didn't know how to at the time.
When Ed and Al first tried to bring their mother back and Al was lost in the 2003 series, when it shows him working to get Al's soul back, he says to himself that he didn't have much time. Later, when someone (probably Winry or one of Mustang's team) sees the seal on Al's armour and asks if it was blood, he confirms it's his own blood because he didn't have a lot of time. This would indicate that the soul's passing through the Gate needs to be recent, if it is to be bound to an object.
Secondlly Ed would eventually learn that the seal is by no means a long term solution

Although never mentioned in the 2003 anime there is an even greater danger; if one's soul is bound to an inanimate object for too long, the soul and object will eventually start to repel each other. The person will start to experience moments of exhaustion, which cause that person's soul to disappear from the object, as stated by Al, who compares his body to a time bomb. This can lead to the complete destruction of the soul as it slips away to The Gate. This makes the blood rune only a temporarily effective technique.

Source: Blood Rune - Negative Effects
Remember that in the Brotherhood series the time since Al was bound to his Armour is between 2-4 years. (There are 2 years between their attempt to bring back their mother and Ed going to Liore, and however long the series progressed until Al compared himself to a time bomb, which I roughly guess to be 2 years.) Thus, this would only give Trisha a couple more years to live.
Finally even if Ed knew the process and accepted the limited time Trisha would have as a soul bound to an object, a soul bound to a suit of armour is not what they wanted. They wanted their mother fully restored back to how she was. Remember that one reason for their search for the Philosopher's Stone was to restore their bodies, and that Ed always said the first person to be restored would be Al, even if Al gained some benefits as a soul bound to armour, which Greed (mistakenly) revealed.

A person whose soul is bound to an inanimate object feels no pain, hunger, or fatigue, thus enabling them to perform immense physical feats. Also, as the person has no body, he or she can sustain more damage than normal humans, placing the person in a state of high invulnerability.

Source: Blood Rune - Positive Effects
Answer: Few thoughts, that were not covered in existing answers.
It seems, that manipulating souls is actually not common knowledge in alchemy, since it was not even practiced much. Aside of Alphonse, there were only two subjects, whose souls were attached to objects, both created by scientists, that were researching philosopher stone. Even if Ed and Al were able to recover some knowledge of human transmutation, there was no way for them to learn, how to manipulate human soul.
Taking that into account, I'm pretty sure Edward didn't know how to attach soul to object until the very moment they opened Gate of Truth. It was actually knowledge he received from Truth, same to his technique of transmuting without circles.
Answer: Alphonse soul never left the mortal world, it  bounced into the creature they made, then ed put it into the suit of armour from the dying body they transmuted.
Comment: Please include relevant sources/references. Specify specific anime episodes and manga chapters, if needed.


Microsite URL in SMS

Question: Currently for email, we use a microsite URL so when a customer clicks on the "confirm" link, the ampscript embedded in the landing page that it sends them to can connect to that specific customer and write back their confirmation status to Salesforce.
I'd like to be able to do the same with SMS, but I can't find a way to shorten the microsite URL because with email, it doesn't generate until they click on the "confirm" button. Is there a way to include a microsite URL (using ampscript) in an SMS that can be shortened to fit the 160 character limit?
Answer: You have to use third party APIs to short the Microsite URL in an SMS. You refer this link shortened URLs and in provided example they have used bit.ly API and few basic AmpScript functions to short the Microsite URL.

Microsite URL in SMS


Arcade buttons on GPIO, multiple buttons on the same ground pin

Question: I have noticed that while hooking up arcade buttons to the GPIO set on the model b board that along with the joystick I should be able (by assigning certain GPIO pins to ground) to connect 7 other buttons with individual grounds. However if I could attach multiple inputs to the same  couple of ground pins (probably something rough like soldering the ground wires together) I could connect something like 11 buttons. Would it be likely for this to cause an issue with the input buttons? I am very new to this sort of thing, thank you for your time.
Answer: you need only 1 (one) ground pin for does not matter how many input buttons. there's absolutely no reason to use any other pin as a ground as long as you have one already used.
Comment: Excellent, That is what I was hoping to hear. Thank you.
Comment: You could also hook them up to an Arduino, and then send that data via USB.


Output voltage of a rectifier

Question: Is the output DC voltage of any rectifier (Halfwave, Fullwave or bridge) simply equal to \$\sqrt{2}\$ times Phase to neutral AC input voltage? Or does every rectifier circuit have its own formula to calculate DC output voltage?
Comment: actually, the output of a rectifier is not a DC voltage
Comment: I agree with @jsotola comment but more precise: the output voltage can be a DC voltage assuming there's a smoothing capacitor and you **do not load** the DC output. Then assuming the rectifier diodes have zero voltage drop (that will never be the case) then the DC output voltage will be \$\sqrt{2}\$ the AC input voltage. Phase/neutral is irrelevant. Also before even thinking about **formulas**, concentrate on **how a circuit works**. Would I hire an EE who knows **every** formula: No. Would I hire an EE who understands circuits? Yes.
Answer: Ignoring diode losses. If you measure the output voltage of a rectifier as the Root Mean Square (RMS) voltage you are getting a reading which reflects the amount of power that the source can deliver as compared to the equivalent DC voltage.
The RMS output of a full wave rectifier is the same as the RMS the original waveform. The squared bit removes the effect of half of the original waveform being negative giving the same answer.
The RMS output of the halfwave rectifier is half the value of the original waveform. The mean bit of RMS means you are taking the mean over a full cycle and you only have half of the original waveform there.
Things change if, as normal, you put a capacitor across the output of the rectifier then you get DC. In this case the capacitor charges to   √2 times the input voltage, this is the peak of the input.
If you take a load current from this arrangement you get a pulsating DC voltage. The pulsations value depends on the frequency the size of the capacitor and the current. This is well documented in other questions. See this question.
Answer: Rectifier circuits include halfwave, fullwave, voltage doubler,
and voltage multiplier types.   A simple diode rectifier is
a halfwave type, and usually has significant forward voltage
and temperature dependence, and will have different output
current into different loads (in particular, a capacitor
load will cause higher forward-voltage losses and holds
the AC peak voltage).
There is no single formula for all rectifier/load combinations,
but there are lots of approximate ones that can be useful.
Most universal-input power supplies have voltage-doubler
rectification of 120VAC and bridge rectification of higher
voltages.   Many have phase-correcting modifications of the
input AC waveform.  Simple formulas aren't accurate in such
cases.

Output voltage of a rectifier


Is it normal for dried fava beans to have an unpleasant sour smell/taste during/after cooking? If so, how can I mitigate it?

Question: I used a pound of dried fava beans with the hull still on. The label on the bag said they were "medium" size. I soaked them for somewhere between 12 and 14 hours in 8 cups of water with 3 tbsp of salt and 1 and 3/4 tsp baking soda dissolved in it. I drained the soaking bowl, rinsed the beans, and cooked them until tender in ~5 cups water with 1 tbsp salt and 2 tsp cumin. The plan was to make foul mudammas. While they were cooking, they gave off a sort of sour smell. Almost like vinegar, but not exactly. That impression also characterized the flavor of the beans once they were done, although to a lesser extent than that to which it characterized the smell. The tbsp of salt I added to the cooking water ultimately seems to have been too much. I don't think it explains the unpleasant sourness, although it may have exacerbated the effect.
The descriptions I've encountered of favas' flavor makes me think this is unusual. I want to know from people who are experienced with cooking dried fava beans: is the sourness normal? If so, are there ways to mute it, e.g. some spice I could add that masks it well? If not, what might I have done wrong to precipitate this?
For added context, dried beans are the basis of my diet, so I'm familiar with this process in general; I just hadn't done favas before. I usually do black beans, small red, black eyed peas, or lentils, but have done urad dal and red kidney. Also, I usually start with a base of onion, celery, bell pepper and garlic sauteed in neutral oil but in this case I just boiled the beans with salt and cumin.
Comment: Where did you get the favas and what did they look like? I've gotten some from a middle eastern grocery that were quite dark in color and they had a slight background flavor that might be what you described --- if your beans were more strongly flavored or if you happen to be more sensitive than me to that particular flavor. But I haven't had that issue with the more lightly colored favas I usually buy.
Comment: I got them from Phoenicia Specialty Foods in Houston, TX. I would say they were fairly dark compared with the average color of the images I find online of dried favas. I haven't given up. I may try canned next. Just to broaden my sense of these guys.
Answer: I don't make foul that often, but I've never experienced a vinegar smell with dried fava beans.  They should smell pretty much like other dried beans, when cooking.  It sounds like you got a package of bad beans, which were maybe allowed to spoil before being dried.


Spring Boot Connection to MySQL on remote SSH server

Question: I am trying to connect to MySQL server at remote machine using spring-boot application.properties but it is failing with error o.s.b.a.orm.jpa.DatabaseLookup: Unable to determine jdbc url from datasource.
My database URL is in the correct format. Remote Server requires ssh connection and I have connected it successfully using MySQL Workbench. For connection via spring-boot app, I checked solutions and implemented JSCH solution as explained in post:
Spring Boot SSH Mysql? but still no success.
Remote Server SSH port is 202 instead of default 22. Any help on how to connect DB?
Answer: Please refer information mention here -
here
or
stackoverflow page


I'm having a hard time figuring out why I can't call from my dictionary

Question: so I'm making a space invaders game, and I can't find out what I did wrong, I'm following a tutorial, everything should be the same as there but somehow for me it's not working.
Here's my main class:
class Ship:

    def __init__(self, x, y, color, health=100):
        self.x = x
        self.y = y
        self.health = health
        self.ship_img = None
        self.laser_img = None
        self.lasers = []
        self.cool_down_counter = 0

and subclass for ships:
class Enemy(Ship):

    SHIP_COLOR = {"r": (RED_SPACESHIP, RED_LASER), "b": (BLUE_SPACESHIP, BLUE_LASER), "g": (GREEN_SPACESHIP, GREEN_LASER)}

    def __init__(self, x, y, color, health=100):
        super().__init__(x, y, health)
        self.ship_img, self.laser_img = self.SHIP_COLOR(color)
        self.mask = pygame.mask.from_surface(self.ship_img)

so what I'm trying to do is generating a random color for the ships with this line:
enemy = Enemy(random.randrange(50, WIDTH-100), random.randrange(-1500, -100), random.choice(["r", "b", "g"]))
enemies.append(enemy)

The first to input are the coordinates basically and the 3rd one should pick the colour.
Random choice should pick a pair from the dictionary for ship and laser color, either red, green or blue.
Any help is appreciated, I'm trying since yesterday morning and I get the same error every time
(TypeError: 'dict' object is not callable)
Comment: change `self.SHIP_COLOR(color)` to `self.SHIP_COLOR[color]` since SHIP_COLOR is a dictionary
Answer: The error message tells the issue:

TypeError: 'dict' object is not callable

self.SHIP_COLOR(color) tries to "call" the dictionary as if it were a function. Use [...] to index the dictionary instead by changing self.SHIP_COLOR(color) to self.SHIP_COLOR[color].
Comment: @JocoKiss you can mark this answer as accepted then.


Can a Catholic priest be tied to a single parish or other physical church his entire life?

Question: Is there any way a priest can stay in one location for his whole life?
Comment: If their superior decides that they should.
Comment: related: "[What is the history of periodically transferring parish priests?](https://christianity.stackexchange.com/q/92228/1787)"
Comment: Some priests were [anchorites](https://www.theoldie.co.uk/article/what-was-an-anchorite#:~:text=Both%20men%20and%20women%20could,in%20their%20cells%20for%20life.).
Comment: Even outside Christianity or more generally religion, do you expect anyone to be employed in the same company / branch / department their whole lives? Is there something specific to Catholicism / Christianity / religion that makes you think this?
Comment: @BCLC, I quite do. My mom is still on her first job, for four decades now, and my father has worked on one company for more than three decades.
Answer: Can a Catholic priest be tied to a single parish or other physical church his entire life?
The short answer is yes, but in our day and age it is quite rare.
Historically, most priests, had tenure in their parishes for a very long duration. Priests being the pastor of just one parish for the duration of their priesthood was the norm, in past centuries.
Nowadays, priests are generally named pastors for about five or six years. But Canon Law states that they can be pastors for an indefinite length of time.

A parish priest can stay in a parish for a number of years, depending on the diocese and the local bishop.
When priest assignments are announced each year, many wonder how long a priest can stay in a single parish.
The Code of Canon Law favors the stability of a parish pastor, making it a law that pastors are to be assigned for an "indeterminate" amount of time.

A pastor must possess stability and therefore is to be appointed for an indefinite period of time. The diocesan bishop can appoint him for a specific period only if the conference of bishops has permitted this by a decree.

Can. 522

In 1984, the USCCB made a complementary decree that limited a pastor's initial assignment to six years.

Individual ordinaries may appoint pastors to a six-year term of office. The possibility of renewing this term is left to the discretion of the diocesan bishop. The primary provision of canon 522 that pastors may be appointed for an indefinite period of time remains in force.
Sometimes a bishop will transfer a pastor before his six year term is completed. This can be for various reasons and is permitted under Canon Law.

Term limits are seen as a means of limiting the development of an unhealthy cult that can surround popular priests, while others would argue that a term limit does not allow a priest to become familiar with his flock, forcing him to move every few years.
Whatever the case may be, it is up to the local bishop and the pastoral needs of each diocese.
How long can a priest stay in a parish?

Remember that St. Jean-Baptiste-Marie Vianney (8 May 1786 – 4 August 1859) also known as the "Curé d'Ars" was the pastor of Ars for his entire priesthood. He was appointed pastor in 1818 and died in 1859. Thus he was the pastor of Ars for over 40 years. Thus was quite a common thing his day and age.
Nevertheless, newly ordained priests generally always worked as an assistant pastor for a little time, before being named the pastor of a parish on their own!
Generally speaking religious priests (such as Benedictines or Carthusians) that live in monasteries reside their whole monastic life in a single monastery (monastic church), unless they are sent to found another monastery to be the chaplain of nuns of their Order or are named to be a bishop by the will of the Holy Father.
Comment: There is an anecdote of a parish priest in the Church of England who stayed in the same post for over 70 years. When his bishop suggested he might retire he is said to have replied that, when the bishop's predecessor but five, had appointed him, there was no suggestion the appointment was temporary.
Comment: This answer leaves out states of life, such as that of canons regular or contemplative religious, which may have a priest legitimately stationed at one physical location for his entire life.
Comment: In my diocese, and this may set an example if it works, we're changing switching from 100 parishes down to about 30, so pastors may go back to being tied to their parishes for much longer (but that's less than 1/3rd of the priests in the diocese).  In that case, do you think that younger priests are going to be transferred more or less often? (I think their reason for going this route was to do less transferring, but I somehow doubt that's going to be the case)
Comment: @jaredad7 You already mentioned that in your answer, so I have no need to state it again.
Comment: @PeterTurner the reason for that change is undoubtedly there aren't enough priests or parishioners to sustain that many parishes.
Answer: A religious brother, who can become a priest, can join a monastery or abbey, which will be his home for his entire life. In some cases, he may go out into the nearby communities for missionary work or to purchase the necessities of life. In other cases, he may never leave the monastery walls. Orders like the Benedictines do this (generally, there are some exceptions).
A secular priest (which refers to any priest who is not a member of a religious order, but is subordinated to a particular bishop) stays in the same diocese, so there should be no worry that you will be sent to a city "far away." You will at most be sent to the edge of the diocese. You can look up the physical boundaries of your diocese to see how far that is.
There are also canons, who are priests who may be secular or may belong to an order, depending on the particular group. These usually serve a cathedral or some other large church, such as St. John Cantius in Chicago, IL. This is perhaps the closest sort of lifestyle to what you are asking about.
Comment: "There are also canons, who are priests which are not necessarily secular, but also do not belong to religious orders." Huh? There are secular canons (rare in the US) and these are commonly cathedral canons in Europe. There are also canons regular like those at St. John Cantius, but those do belong to an order.
Comment: I know a "hermit priest" who has been in the same isolated location (in the U.S.) for decades, and will probably be there for the rest of his career.  He also performs the services for the convent next to us.  I don't know what that makes him in the scheme above though.
Comment: Yes there are secular canons and "canons regular." Canons regular follow a rule. You are correct that secular canons are rare.
Comment: My point was that the part I quoted doesn't make sense. Not secular and doesn't belong to an order? Usually those are opposed categories (allowing for the sometime distinction between a congregation and an order properly speaking)
Comment: I'm saying canons may or may not belong to an order. I'll edit the answer to be more clear.
Comment: He probably needs special permission to do that.


Blocks aren't showing

Question: When I make a new world in Minecraft, no blocks show. When I mine them they appear in my hand but upon placing them they disappear.
I've tried texture packs, Feed-the-beast and reinstalling my game multiple times! Help!
Comment: When reinstalling the game, have you only re-downloaded the launcher, or have you also deleted the `.minecraft` folder? (don't forget to back up your saves first if you do)
Comment: try updating your video card drivers
Comment: When reinstalling I have indeed deleted the .minecraft folder. I also have update graphics card drivers and still no luck! Any other suggestions are appreciated, thanks
Comment: I've noticed that mobs have shadows and I can see the bows of skeletons. Also when I make a new world, I see the gravel falling in caves but when it hits the ground nothing. :/
Answer: I had this same problem, solved it by uninstalling my AMD drivers with Display Driver Uninstaller, and reinstalling 13.12, as opposed to the 14.1 beta build I was using. Hope this helps, I can't tell you how frustrating this issue was.
Answer: I'm not sure why this is happening, but my guess is that the game cannot allocate enough memory for the textures.
Try to edit your profile and tick the JVM arguments.
Paste this in there: -Xmx1G
The 1G is the amount of memory you would like Minecraft to use, in this case 1 Gigabyte. If your machine doesn't have that much RAM available you could try to use -Xmx512M which would only allocate 512 Megabyte.
I hope that helped!
Comment: No that still doesn't work :/ Thanks though, any other ideas would be appreciated! Thanks
Answer: The problem is probably because you're using the latest graphics card driver. Me and my friends are using the latest release and two other friends are using a slightly older version and Minecraft works. Knowing the graphics card you have would help but my guess is you're using the 14.2 beta driver of catalyst. If you downgrade to the 13.12 version the game MIGHT work. Hopefully this helped.
READ!!!
I've just looked into it and I've using driver 14.1. there's a beta driver 14.2 out which fixes the issue.
Comment: Just wanted to say, try to never downgrade a driver unless the system can't handle it.
Answer: Make a new world in Minecraft ''lobby'', then go write %appdata% and locate the ''saves'' folder then copy the corrupted file and paste it on the new saved game, also remember to clean the new game's folder before putting the copy in it. Should work in some situations, not in all. I use 1.6.4. and I had the 100 x 100 block glitch on yesterday and it fixed this. :P
Comment: To get back to 'last point' before your game crashed, use simply ''/back'' on control panel. Or if you had saved a way-point ''/home''... also there were some sort teleport for death-point but I don't remember it, sorry.
Comment: Link for simple thinkers: https://www.youtube.com/watch?v=yUl1_SzIN8A
Answer: http://support.amd.com/en-us/kb-articles/Pages/latest-catalyst-windows-beta.aspx
 Try this might work. I think this might solve your problem
Comment: Please don't just post a link to a solution.  We like it if you explain the solution in your own words, and then link the source where you found that information.
Answer: It's because one of your mods makes your world completely blank.  I've had that problem before I removed some mods, and it all went back to normal.
Comment: Hope this helps for u and i mean normal

Blocks aren't showing


Document Library Template: The language is not supported on the server

Question: We have created a document library template to facilitate the rapid deployment of multiple document libraries with identical structure. The template has been created within the same site and the same collection as where it will be deployed, but when we try to deploy it we get an error stating "The language is not supported on the server". I don't understand why the template wouldn't match the language of the site it was created in. Can anyone point me in the right direction here? Unfortunately I'm limited in a corporate environment, so I can't access the central admin or remote into the farm.
Comment: I spoke with one one the techs at our corporate host and it appears to be an issue deep within the farm. Templates aren't deploying anywhere across the corporation; I guess it's not my code after all. I'll update if we learn what it was in case anyone else runs into it.
Answer: Sounds like you are deploying as a feature?  If so, you will also need to set the Core resource file to point to the default language resource by adding the following attribute to your feature.xml file:
DefaultResourceFile="core"
Answer: What language is the installation? What language packs are deployed? What is your sharepoint development language? Check the LCID of our feature.
Answer: I am having the same error. when trying to create a document library programmatically based on a document library template. Did you solve the issue? Thx


Packing Texture Files In a Single Blend File

Question: How do I pack texture files in a single blend file in blender cycles. I am using Sheep it Render Farm to render one of my animations and I need to make sure the texture files in this single blend file are packed so it renders with them.
Answer: Blender-> File -> External Data -> Automatically pack into .blend (click to activate) and save the file as usual. The images will be packed as part of the blend file.
Comment: Does it work if you have linked objects from other files?
Comment: I'm trying to pack my blend file to take it to Sheep It, but the problem is that when I hit pack all into .blend, it says unable to pack file, source path not found. But the textures are showing up and rendering fine?
Comment: This did not work for me since I tried to pack a movie. As of Blender 2.92, this is not supported yet. Manually packing the project will return "No new files have been packed" and packing the image manually will return "Packing movies, image sequences or tiled images not supported".
Answer: For render textures in Sheepit I do the following: File, external data, unpack all into Files, create directory if needed, and then.. .copy the textures manually to the Textures folder blender creates... next, zip all into a file and upload the zip to SheepIt. And it does it !
Hope it helps


Specific Client Detection based on headers. Firefox extension?

Question: I have a website in which I want to be able to detect a certain user based upon a permanent attribute of a specific user.
My original plan was to use an ip address but those are difficult to maintain since they can change frequently.
Cookie's and Sessions are almost out of question because they expire and tend to be difficult to manipulate.
Basically what i want to be able to do is detect if the current client visiting the website is a special user without having to deal with logins / passwords. To use something more permanent.
The user agent plugin could work but then, if i ever upgrade firefox or whatever i would have to go in and manually update the user agent string.
I found this script: https://addons.mozilla.org/en-US/firefox/addon/6895 but it doesn't work for newest version of firefox 3. It would be a perfect solution because it sends special headers at specific websites.
Short of writing my own extension does anyone have ideas of what to do? Do i need an extension? Should i try to write my own?
Answer: You could generate a SSL client certificate, and have your users install it. From then on, their browser would identify them using their certificate.

HOWTO: Securing A Website With Client SSL Certificates
SSL and Certificats (IIS 6.0)


What is the pitfall to connecting with Tor on a public wifi hotspot?

Question: I often use public wifi hotspots to connect to the Internet. Is my data encrypted right before it leaves my system and so protected from network observers/snooping if I use tor?
Comment: where else do you think it would be encrypted? would not have much use if it was encrypted after it left the machine.
Comment: If a post below answered your question, please [mark it as accepted](https://security.stackexchange.com/help/someone-answers).
Answer: Yes, it is encrypted before it leaves the system. The Tor client on your computer encrypts the data three times. The first key is shared with the guard node, the second with the middle node, and the third with the exit node. Each node strips off a single layer of encryption before passing it along. The exit node strips off the last layer of encryption and sends it off to its destination. This is called onion routing. All the public WiFi can see is opaque, triple-encrypted data being sent to a Tor guard node.
Tor has hardcoded in it a list of fingerprints which it uses to verify the authenticity of the Directory Authorities (DAs). Once it has verified the authenticity of the DAs, the DAs send the Tor client a list of Tor nodes along with their own fingerprints. Your Tor client will pick a guard from that list, verify its identity through the fingerprint provided by the DA, and then connect to it. As long as your Tor client is genuine, it will be impossible for any MITM attack to occur between you and the guard.
Tor uses three layers of AES128 in CTR mode for encryption. The HMAC used to protect integrity uses SHA256. Key exchange is done with Curve25519, with the related Ed25519 used for fingerprints. More technical information is available in Tor's NTor handshake protocol specifications.
Be aware that Tor is only a tool designed to help you stay safe, not a panacea. It will not protect you from your own OPSEC failures or an advanced adversary exploiting your browser with 0days.
Answer: Yes, using Tor protects you from content inspection by the Wifi provider. However, it does NOT protect you from traffic correlation attacks (e.g. the Wifi provider can usually find out that you're using Tor and he'll know at exactly what times you use Tor and how much data you exchange with the network - this is important information to have if he can also observe the target you visit over Tor - in that case, he'll be able to prove that you're communicating, even if he doesn't know the content of the communication).
Using a bridge can help with hiding Tor from your Wifi provider, but correlation attacks are still possible even when you connect over bridge.
Comment: Do note that some types of bridges can make correlation attacks a bit more difficult, e.g. the obfs4 pluggable transport which mangles traffic at the expense of some overhead.


Semifreddo vs Ice Cream

Question: What is the difference between semifreddo and ice cream? Is it just the cooking method and the time for which they are frozen?
Answer: Google translates Semi freddo as semi cold. Half frozen is probably a bit closer in practice to an English translation of what it is, or more accurately, what it should be.
So many recipes on-line are fully frozen like ice cream, that the distinction is muddled. TRUE semifreddo is ice cream (or gelato) often mixed with something not frozen, like whipped cream, or  not hard frozen to begin with.
Jamie Oliver makes it by freezing a custard until firm, then letting it sit in the refrigerator for 20 minutes before serving it over a warm compote.
Giada De Laurentiis has a version that uses Lemoncello, which keeps the custard mixture from freezing hard.
Semifreddo is not churned like ice cream, it's usually frozen in a pan or on a sheet tray, then sliced or mixed with a non-frozen component.
Comment: +1 for not churned :) Doesn't have to be mixed with a non-frozen component though.
Comment: It doesn't have to be, just often is. I see that my answer doesn't say as such...edited.
Comment: And I must say it looks like its much easier to make :)

Semifreddo vs Ice Cream


Origin of よろしく's other meanings

Question: The other meanings I'm referring to are from noun + よろしく (as if) and よろしく ... べし (by all means). I wonder why it also lacks some meanings from よく, as よろしい is the respectful form of よい, I think. I think it may be because of the respect that よろしく has in comparison to よく. (I saw other posts on よろしく but didn't see it's origin)
Comment: Can you elaborate your question? Do you understand よろし and よし are different words? よろしく does not contain よく.
Comment: What, I thought that 宜しい was a respectful form of よい/よし I don't think that makes my question any less valid, does it?
Comment: I searched よろし up and saw that it has a less high evaluation in comparison to よし... I wonder if よろしく...べし comes from meaning 4 of よく on goo dictionary
Answer: In Old Japanese, よし meant "excellent", but よろし  was a different adjective that had mixed connotations like "satisfactory", "not bad", "so-so", "mundane", "appropriate", etc. So よろしくお願いします is a modest request for a treatment that is fair enough; it's not a word that asks for excellency.
Likewise, ~よろしく as a suffix has a connotation like "not perfect but good enough to be passable as ~". I couldn't find any explanation regarding how and when よろしく started to work as a suffix, but considering that よろし was sometimes used in a sarcastic or negative manner, it doesn't seem surprising.
よろしく meaning "by all means" seems to be a kanbun kundoku tradition. I have never seen this sense appear in normal Japanese sentences, including classical ones.
Comment: @StarPeep It is usually used sarcastically, but not always. As for "by all means", the *kanbun kundoku* tradition means that it may be related to the Chinese use of the kanji 宜 (which I know nothing about) but has little to do with the history of the Japanese adjective よろし.
Comment: I feel bummed out now that I found out that there's to clear explanation as to why よろしく as a suffix can mean an ironic as if
Comment: I'm still confused on よろしく... べし. I think よろしい is like いい加減 and then べし is setting a standard.  Actually the answer was that not excellent but not passable was the sense that the suffix よろしく meaning ように came from

Origin of よろしく's other meanings


Help with wheel lock

Question: I have a 2011 rs Chevy camaro and I do not have the wheel lock key for the wheel lock. The wheel lock has 7 spline but are uneven and I can't find it anywhere.
Answer: To remove it, the easiest way I've seen is to get a sacrificial socket of the proper size (just a bit smaller than the lug) and drive it onto the wheel lock using a hammer. If done correctly, you can then use a breaker bar to get it off of there. You can possibly drive the lock out of your socket, but it's going to take a vice and a good swing of the hammer. Yes, you'll no longer be able to use the lock, but if you don't have the key in the first place, it's about the easiest way to get them off short of destroying the wheel.
Answer: The official dealer will be able to sell you the correct replacement, owners are well-known for loosing them.
You can sometimes find them on the bay of fleas, including complete sets.
I have removed them from my car as they were a well-known failure point even if you had the correct key.
Answer: I would inquire at your shop/dealer as to whether they have the appropriate tool.  If they do, ask them to take the locking lug off.  Then buy a non-locking lug.
It would be OK to drive around for a couple of days while you get a replacement lug.  Just no road rallies.

Help with wheel lock


How to build a scalable Reporting Solution with data from a web service?

Question: I have a WCF web service that currently is recording a record to SQL Server 2005 roughly every second throughout they day. Our business reporting team runs SELECT queries against this database in live.
I want to rethink this solution, so that the business reports are not querying our table directly. This is to prevent locking or other performance hits to my WCF web service.
So I am thinking about using another database to hold the reporting data, which will be a transformed version of the source record.
Can anyone point me towards the Microsoft technologies that will allow the WCF service to maintain 100% availability, and the maximum throughput of records possible - so no performance hits.
Answer: Without having tried this myself, I would recommend you to take a look at Snapshot Isolation. From what I have read this sounds like what you might need.


What is a Parzuf?

Question: Can someone please explain in terms that a simple Jew can understand, the definition of the kabbalistic concept called a Partzuf?
Comment: http://www.chabad.org/kabbalah/article_cdo/aid/380804/jewish/Unit-of-Creation.htm
Answer: For the purpose of definition, I think you could say that the partzufim, like the sefirot, are the self-manifestations of divinity, which, behind the manifestations, is hidden and completely unknowable.
In a few key places in the Zohar, instead of talking about the ten sefirot, the text talks about other entities, called partzufim. The Ari reconciled the two terminologies by saying that after an initial state which did not endure, the sefirot of what would become Atzilut were reorganized into the partzufim.
So, for people engaged in the teachings of the Ari, the partzufim become the primary subject of learning. What they are and what it is that is being learned when one learns these teachings is elusive and not necessarily directly communicable (and there are several major streams of interpretation that take different paths).
Comment: What are some ways that "not necessarily directly communicable" is considered?  I had a thought to research that topic itself - forms of indirect communication.  Thank you
Answer: In order properly answer the question it would help to know in what context you see the word, so that the explanation can fit the context. However, in general, the Alter Rebbe of Lubavitch explains it like this:

שהוא שנתחלק' הספי' בהתפשטו' לפרטי פרטיו' טפ"ט ובכל א' ראש תוך סוף וה"ח המגדילי' עד שנעשה רמ"ח איברים

The Sefiros spread out into specific detail expression 9 times 9, each level having a head, middle and end, plus five Chassadim - levels of kindness - that create the expansion become 248.
In other words, the Sefiros combine with each other to create a more complex structure. He gives a parable for this from how the soul is enclothed in the body. There is an ability to see, an ability to hear, and ability to walk, etc.
This combination creates the ability for there to be an advantage and connection in the end to the beginning. In other words, the head has intellectual abilities that are certainly higher than the ability to walk. But still, the head cannot walk anywhere, and thus lacks an ability of the feet.
Similarly Partzufim create a reality and connection with Hashem that isn't possible in the strict orderliness of the Sefiros. He goes on to explain that this exists in Mitzvos which is why accompanying the dead takes precedence over learning Torah, and other such examples.
Comment: +1 - what's the accompanying the dead bit at the end?
Comment: @YEZ, An example of the nature of Partzufim in Torah and Mitzvos.
Comment: I mean can you explain the example - what you see from that? (Why specifically accompanying the dead? And why learning Torah should take precedence if not for Partzufim) Unless there is something obvious I am missing here.
Comment: @YEZ, that is just and example in halacha - Halvas HaMeis is before Talmud Torah. Other examples are Hachnasas Kallah being Mevatel Krias Shema (see the next page by following the links on the right side), עשה דוחה לא תעשה and others.

What is a Parzuf?


Why does Charles give error code for SSL Proxy?

Question: I have a local nginx proxy that is letting my local site work on https://fakedomain.com/endpoint. If I hit it in the browser, Charles shows the response properly.

If I use the SSL Proxy such that hitting https://www.anotherdomain.com/endpoint points at https://fakedomain.com/endpoint, it gives a Response Code of -1 with a response preview that looks like this:

I have SSL Proxying working fine, generally. If I proxy to a known https location, Charles proxy works fine.

My local site/server uses a .crt and .key file that someone else generated, which I think may be the problem. I'm on a Mac, double clicked the .crt, and got it added to my keychain. I opened it up and set it to always trust:
My guess is that Charles doesn't trust this cert when proxying, so it errors out. Just not sure how to fix this.
Note: I was redirected to this exchange from Networking stack
Answer: URL A redirects to URL B. I had my proxy set as A -> C. I changed my proxy from B -> C and it worked. Weird.


Realtek wireless problem router related

Question: I'm experiencing the infamous wireless connection drops with my Realtek RTL8821AE adapter. I've just installed Ubuntu 17.04 (Budgie, FYI), with kernel 4.10. I've tried updating the wireless driver using lwfinger/rtlwifi_new git repository, but the issue is still there.
For testing purpose, I've taken my laptop at work, connected to an access point and left there pinging google. It's a couple of hours that the ping is working, while at home it drops every couple of minutes. This made me think about something router-related. Although the wireless works flawlessly from Windows 10 with the same router.
Is it possible? Any idea about some router configuration that can cause such behavior?
Anyway, I think that the wireless card driver/firmware is still playing an important role in this issue. Maybe it's something driver+router related. If this can even be possible...
Answer: It is quite true that the router and its interaction with the wireless device and driver are crucial.
I would be certain that the firmware for your router is fully updated. Often, bugs are discovered and corrected and the fix will only appear if you update the firmware to the latest available.
Second, I suggest that you disable power saving in Network Manager. From the terminal:
sudo sed -i 's/3/2/' /etc/NetworkManager/conf.d/*

Next, check the settings in the router. WPA2-AES is preferred; not any WPA and WPA2 mixed mode and certainly not TKIP. Second, if your router is capable of N speeds, you may have better connectivity with a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz, although it is likely to affect N speeds. I also have better luck with a fixed channel, either 1, 6 or 11, rather than automatic channel selection. Also, be certain the router is not set to use N speeds only; auto B, G and N is preferred. After making these changes, reboot the router.
Next, I recommend that your regulatory domain be set explicitly. Check yours:
sudo iw reg get

If you get 00, that is a one-size-maybe-fits-all setting. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Then set it temporarily:
sudo iw reg set IS

Of course, substitute your country code if not Iceland. Set it permanently:
gksudo gedit /etc/default/crda

Use nano or kate or leafpad if you don't have the text editor gedit.
Change the last line to read:
REGDOMAIN=IS

Proofread carefully, save and close the text editor.
Next, I'd set IPv6 to Ignore in Network Manager: http://docs.fedoraproject.org/en-US/Fedora/18/html/Installation_Guide/images/netconfig/network-connections-ipv6-ignore.png  This example is for ethernet, but you want wireless.
Comment: Thanks for your detailed answer. I'll do some test this very evening. The fact that on Windows it is working correctly still bugs me; looks more like the problem is on Linux side, not on the router. The regulatory hint is really interesting; I've always installed english versions, so maybe there are settings not fully compatible with italian regulations (i.e. router settings). News soon...
Comment: Awfully, at the moment I'm using my provider modem, that doesn't provide configurations for channel width. Encription can only be WEP or WPA-PSK. I've set the regulatory domain to IT, but again no luck. Note that I'm using the default kernel driver again (reinstalled the OS). I'll try re-installing the new one.
Comment: Are there any clues in the log? `dmesg | grep rtl` As the result may be lengthy, post the result here and give us the link: http://paste.ubuntu.com

Realtek wireless problem router related


Proper order of optimizing hyperparameters in ANN

Question: I have built a neural network for approximating a certain function and decided on a metric how to evaluate the performance. Now, where do I start with optimizing to get the optimal result? I need to decide on number of layers, hidden neurons, learning rate, learning algorithms and all other hyperparameters. What is the usual  procedure and order in which to optimize all network's parameters? I guess I am looking for some kind of general guidelines to follow to obtain the best possible performance
Answer: My initial suggestion is to look in the literature for networks which have been implemented to do solve similar problems and start from there.
Then you should just try a bunch of different values for the parameters and see what works in your case.
See also this Cross Validated question: https://stats.stackexchange.com/questions/181/how-to-choose-the-number-of-hidden-layers-and-nodes-in-a-feedforward-neural-netw


unlocking a cracked phone through the computer?

Question: I cracked the screen on my Samsung Galaxy s6 Edge and now I can't unlock it. I have looked all over for a way to unlock my phone using a computer but to no avail. I have tried droid screen, some tools on xda forums and a google chrome app. None of them seem to detect my phone. I distinctly remember turning on usb debugging on my phone but I am not certain. Is there any way to check if usb debugging is enabled on my phone without actually opening it? Also if usb debugging is not enabled, is there still a way to control my phone screen through my computer? I have unsuccessfully tried to install ADB but after the first few steps of the installation I get lost in the  technicality of the language. My phone is not rooted. I am running windows 10 and I posses almost zero technical knowledge about the workings of android and how it connects to a computer. I would appreciate if somebody could point me in the right direction or explain what I need to do in simple language. Thanks!
Comment: Install adb like this :- 1. Google fastboot files 2.download them 3.unzip them 4. Hold shift and right click 5. Click open command prompt here 6. Type adb devices
Comment: adb server is out of date.  killing...
* daemon started successfully *
List of devices attached
0815f845c6c12105        offline.                                                                                This is what it says. I have no idea what this means
Comment: Do you have root?
Comment: Also what errors you get on the tools like droid screen
Comment: Android SDK manager opens up with a bunch of stuff that it says I can install. I don't know which ones to install. It says done loading packages
Comment: Google for fastboot files
Answer: Once the adb files are on your pc, all you have to do is run the command to list adb devices. If no results show up, your device does not have usb debugging enabled. If you get a result, an 8 digit number.. that means you have it enabled and the phone is connected. There is a way to enable usb debugging via command line but then, that is even nore technical. Save yourself the headache and unlock your phone with a usb mouse.
Answer: Conect a usb mouse,  you will need a usb mouse with a usb type A to microusb adapter to connect the mouse directly to your phone, provided that you can still see the area of your screen needed to unlock your phone, even if touches arent being detected.
Comment: i'm looking for a software only way to resolve this.


Show Site Admin information on Access Denied page SharePoint 2013

Question: I'm looking to add custom message on Access Denied page in SharePoint 2013 and need to add Site Admin information as each and every site's having different site owner, so message should come up with individual site owner information to whom the request is redirected for further processing.
Answer: Based on my research, we could not show site Administrator/Owner information on Access Denied page SharePoint 2013, it is by design.
However, we can enter site Administrator/Owner email in the "Send all access requests to the following e-mail address" textbox. When someone need to access the site, you can send a message to this site Administrator/Owner.
Please follow the steps:
1.Sign in the site collection as a site administrator
2.Go to the Site Settings page, click Site permissions

3.On the Site Permissions page, click "Access Request Settings" on the PERMISSIONS tab

4.On the Access Request Settings windows, select "Allow access requests" checkbox and enter the email of the site Administrator/Owner in the "Send all access requests to the following email address" textbox.

5.When someone wants to access the site, the user can send an access request to the site administrator.


Can a Syrian citizen, who holds a USA green card, travel through Germany without a visa?

Question: Can a Syrian citizen, who holds a USA green card, travel through Germany without a visa?
Comment: Welcome to the site.  When you say "travel through", do you mean you just want to transit, or you actually want to enter the country?  You tagged this with [tag:tourist-visas], does that mean you want to visit Germany for tourism?
Comment: Possible duplicate of [What conditions need to be fulfilled to enter the Schengen zone visa free?](https://travel.stackexchange.com/questions/103019/what-conditions-need-to-be-fulfilled-to-enter-the-schengen-zone-visa-free)
Comment: @JacobHorbulyk it's not clear from the question whether the traveler wants to enter the Schengen zone or to transit through a German airport.
Answer: The short answer is it depends.  To transit in Germany, you do not need a visa (even though most Syrians do).  To pass through Schengen border controls, however (that is, to leave the international zone of a German airport), you do need a visa.
Entering the Schengen zone
To enter the Schengen zone, which includes Germany, you need a short-stay visa.  The green card does not exempt you from this requirement.  This is governed by Regulation 539/2001, Annex I.  In this sense, "entering" the zone means passing through passport control.  Being present in the "international" zone of an airport (or sea port, for that matter) does not require a short-stay visa.
Transiting through a German airport
Some countries' citizens, however, require an "airport transit visa" to fly to a Schengen airport if they plan to remain in the international zone.  For some countries' citizens, this requirement exists for the entire Schengen zone, but Syria is not one of those countries.  Instead, Syria is on the list of countries where this requirement exists only in certain Schengen countries, and Germany is among the countries that have imposed an ATV requirement on Syrian citizens.
However, your green card exempts you from any requirement to hold an airport transit visa (Schengen Visa Code Annex V).
This applies only to transits where you fly to a Schengen airport from outside the Schengen area, remain in the international zone of the airport (for example, without needing to retrieve your checked luggage), and then board a flight to a destination outside the Schengen zone.  If you need to fly between two airports that are both in the Schengen zone, you will need a short-stay visa.  If you need to retrieve your luggage, you will need a short-stay visa.  If you have an overnight layover in an airport that closes at night, you will need a short-stay visa.
More information is available on this site at Do I need a visa to transit (or layover) in the Schengen area?
The EU's page on the topic is Who must apply for a Schengen visa.


Expressing time duration or time when and within

Question: I'm studying Oxford Latin Course. The book said that duration of time takes the accusative and time when and within take the ablative case. I can understand that, but does duration of time and time within take cardinal and time when take ordinal? Like, tres horas = "for three hours," decem diebus = "within ten days"?
Answer: That is exactly right:

Dominus creavit caelum et terram sex diebus.
Septimo die requievit ab operibus suis.
The Lord created heaven and earth in six days. (i.e., within, over the course of six days)
On the seventh day he rested from his work.
Answer: decem diebus is "time within which" yet decem is a cardinal number. So I think within which can take either ordinal or cardinal numbers with it.
Comment: Can you give an example with an ordinal as well?


Landing without explicit permission

Question: What will happen if civilian ATC suddenly sees unknown plane which request landing due to emergency.
Can ATC just forbid such land? If yes, what they do?
What if it's foreign military plane?
Comment: Not sure what you mean by "unknown plane", because civilian towers often don't know anything about the planes that request to land there. Also even if the plane didn't request landing clearance they wouldn't try to stop it because it's possible that the plane's radio isn't working.
Answer: ATC can't "forbid" anything really, they certainly can't enforce it - there is physically no way to stop an aircraft landing. Notwithstanding hostile intentions, in any sort of emergency ATC, civilian or military, will do everything they can to aid the safe landing of an aircraft in distress.
Remember, ATC are not "in charge", they are there to facilitate the safe, orderly flow of aircraft within the rules set out.
As for what would happen once the aircraft is on the ground, that's a whole other matter not really to do with ATC at all.
Answer: There is the incident of Viktor Belenko who defected to the West and landed a MiG-25 at Hakodate, Japan.  There is even a book ("MiG Pilot: The Final Escape of Lieutenant Belenko") about his life and defection.  As I remember, his radio didn't handle western ATC frequencies, so he couldn't even declare an emergency.  He had a close call with a airliner who was taking off, but was able to land safely.
Stopping it would require a surface-to-air missile or something roughly equivalent.
Answer: A scenario where a foreign military plane would enter the airspace of a sovereign state without its consent is a bit far fetched, although not entirely impossible.
Should the said plane declare an emergency, the ATC most likely would not, and more importantly could not prevent a landing. if the airforce and/or air defences of the state in question disagreed with the landing intentions, they could intervene and transform the landing into a crash.

Landing without explicit permission


Forcing a game to resize on launch?

Question: The good news: this totally worked to give me screen size options for some games in Ubuntu.
The bad news: I didn't take into account the menu bar at the top of the screen, and the resized game doesn't allow me to move the screen up high enough to access the "OK" button at the bottom of the screen that would let me change the screen to an even more appropriate size. So now I have a game that runs in a screen about 10% larger than the actual screen, and no way of actually clicking "OK" to confirm a smaller screen size. There doesn't seem to be any way to tab to the OK button, or to click it "below-screen" -- the mouse stops at the screen bottom.
Is there a way to force a program or game to start at a certain resolution?
Answer: While you can't drag up any higher with the title bar, have you tried holding Alt while dragging the window itself with the first mouse button? Some games and applications (VirtualBox in particular) will break this, but in general it should work.
If that doesn't work to allow you to drag the window higher so you can click OK, you
will most likely have to use a command line option to the game, if it has one, or edit its configuration externally, if it stores that in a game.ini or similar somewhere. While it is possible to generically force most applications to a certain size with some tools such as devilspie, this doesn't generally work on games and such that may need to reload assets on resolution changes, or which require preserving an aspect ratio. Games do tend to have a config file, or a command line option, to specify the resolution to use, though.

Forcing a game to resize on launch?


Multiple outlets (4), in different rooms not working

Question: Two outlets in master bath, one out on back patio, and one next to front door (exterior) aren't working.  They have no power going to them so I replaced the circuit breaker but that didn't fix them.  I tested all other outlets(gfci's working and not tripped) and they were working properly. All switches and lights are working, it is just these four random outlets. One of the two in the bathroom has three wires coming into it.  I'm assuming one is for the end of a run outlet just a few feet away and the other is for the fan above the toilet (I'm assuming). The outlet on the back patio that isnt working appears to be an end of the run outlet and has only one wire coming into it.  The outlet by the front door has two lines coming into it.  I bought new outlets but seeing that none of problem outlets has power coming into the box, I'm sure that isnt my problem.
Comment: Unless the electricity cables are older than the 90s, you should have GFCI protection for all those outlets.  If the one who did the wiring was smart, they keep the GFCI protection indoors.  Do any of the outlets have small switches/buttons on them?
Comment: Have you looked for a tripped GFCI? - these things really should not all be shared, but might be anyway, as typical for old GFCI installations where the bathrooms and exterior outlets would all get hung off a single GFCI. That might be located some non-obvious place like the garage or basement, for extra fun in finding it.
Comment: It's possible all those non-functioning receptacles are normally powered by a single GFCI device, which has tripped, and which could be anywhere, even hidden. Some GFCI's have a "blank" face with just the test and reset buttons and are easy to overlook.
Comment: I've worked in a number of houses where the gfi for the bathroom was found in the garage or somewhere non-obvious.
Answer: You have a GFCI that has opened...and you haven't found it yet.
One of my past home was wired the exact same way.  Bathroom outlet, exterior outlet by front door, exterior outlet on back porch, all fed by a GFCI in the garage.
Look behind things like storage or boxes in the garage.
I had a neighbor that waited for 3 days for the cable/ internet guy to show up because he had no internet.  The problem was the modem was on a circuit fed by a tripped GFCI in the garage that was behind a big storage closet.
Comment: Yep, my house has a GFCI outlet that controls a bunch of other outlets...in the *basement bathroom closet.*


What is the purpose of zones in sharepoint? (web application zones or authentication zones or how do they call it)

Question: I can't understand the concept and, first of all, where it belongs.
Is it solely a Shrepoint concept or more general like of ASP.NET or IIS level?
Does it only affect authentication and if so how does it affect it? Or what effect does it have on an application?
I know it is a broad question, but I've googled for about 15 minutes and haven't been able to find the answer. And it is kind a not so critical for me now but I'm curious.
Can you please give a link to a resource with an explanation of this?
Thanks!
@Edit: I mean zones like in
Authentication Provider : Forms
Zone : Intranet (Internet, Default)
@Edit: From what I've understood by now the zones have to do with the association of IIS web applications with sharepoint web applications, and with site collections for that matter. So for example you can extend a web application creating a new IIS web application but from sharepoint's point of view it is just another URL pointing to the same web application with the same set of site collections. And the extension IIS web application can have a different sharepoint zone associeted with it (or thay can be the same zone) providing a way to use a different authentication methods for different access points of the same sharepoint application.
Am I right here?
Answer: Each "zone" is essentially a new IIS Website, where each of the web sites point to a single Application Pool. Theses are also called extensions. Application pools in IIS create complete thread isolation by running separate worker proccesses.
Any Web application can be extended into multiple zones. Extending a Web application to additional zones allows users to access the same Web site through separate and independent URLs, each with its own Web.Config file and IIS application scope. Each zone is configured with its own load-balanced URL (protocol, host header, and port). This allows, for instance, one Web application to make use of many configurations including multiple authentication stores, caching scenarios, or custom HTTP modules.
Basically it allows you to treat a single site differently based on what URL is used to access the site. What is important to keep in mind is the aspect of Load Balancing, caching.
If you have a local intranet that will have, say, 500 internal users and want to extend that site so that you allow external users, say in the thousands, then these features will allow you to separate content and load balancing to limit physical access to specific servers, use custom HTTP Modules for specific zones to create unique sign on rules based on these groups of users.
Comment: Geat answer. Except for a minor correction concerning content databases. The idea with zones is to provide multiple access points to the same web application and thus the same set of content databases. Zones are not separating content in the sense of using separate content databases.
Answer: Zones represent different logical paths (URLs) of gaining access to the same Web application. You can use zones to enforce different access and policy conditions for group of users.
Zones provide a method to partition users by:

Authentication type (ex: claims-based authentication, windows authentication)
Network zone (ex: extranet, Internet)
Policy permissions (ex: allow or deny read or write access)

Each Web application can have a maximum of 5 zones.The 5 possible zones are:

Default
Intranet
Internet
Custom
Extranet

When you create a Web application, the Default zone is created. You can then extend the Web application to create other zones.
Each zone can only be selected once per Web application. For example, you can only have one Default zone in a Web application.
Each zone is represented by a different Web site in IIS.
Answer: it allows you to have different access from different urls with different security.
This allows you to set "Windows Authentication" for Intranet, "Form Authentication" for the extranet and "Form Authentication with allow anonymous" for the Internet.
The cache settings are also different depending on the zone. You can configure the cache to behave differently depending on which zone you are.
So far, those are the main differences for the different zones (including 3 different public url available).
Answer: For a Better Understanding,
A zone is a way to map multiple Web application configuration settings to a single set of content databases.
For example, you can create a Web application, create a content database, and then configure the database to use Windows authentication.
All of these settings are configured for the Default zone for the Web application. You can then extend the Web application and map it to a new zone. When you do that, you select a zone to map to, such as Intranet, Internet, Custom, or Extranet.
When you configure the second zone, you select an existing or new Internet Information Services (IIS) virtual server and a new load-balanced URL, and determine whether to use NTLM or Kerberos authentication. You can change the authentication provider, for example, to forms authentication, after the new zone is created.


Why does my new light fixture trip the circuit breaker?

Question: I have a ceiling light fixture that trips the circuit breaker every
time the single pole switch is flipped. It has three white wires and three black wires. Before installing this light fixture, which works just fine in another location, in the house this switch/old light fixture worked just fine. What are we doing wrong?
Comment: What was done wrong is that you connected something you shouldn't have, or left something exposed which is making contact that it shouldn't. Beyond that, we'd need to know exactly what you did, preferably with photos.
Comment: You first need to tell us exactly how it is wired. What wires do you have in the ceiling box? And did you un-do all the splices (a BAD thing btw) when you removed the old fixture?
Answer: Most likely - you treated a switch loop (black hot to switch, white switched hot from switch) as "hot and neutral" (since they are black and white wires) so every time you flip the switch to on, you are shorting hot to neutral. So, the circuit breaker, as it should, trips.
At this point you need to sort out what wires go where so you can sort out what they should be doing. If you'd care to save yourself or the next guy some trouble, pick up some red electrical tape and put it on the ends of that white wire from the switch, if that proves to be the case.


Does iMessage need wifi

Question: I'm concerned about it and I really want to use it. I haven't used it and I need some tips so someone please tell me if it needs wifi.
Answer: No - iMessage works over any viable network connection.
Assuming you are on an iPod touch, since WiFi is your only viable network, then it follows you need WiFi, but it's not a limitation of iMessage as much as it is of your hardware. iMessage works fine over ethernet, cellular data equally as well as WiFi.
Answer: You'll require internet for iMessage. And you can have access to internet through WIFI or 2G/3G/4G on any of the device.
Thus if you can access a website you can use iMessage.

Does iMessage need wifi


How can I tell if my wheels need replacing due to rim wear?

Question: I have v-brakes which have started to groove my rims. What is the surest way to know if they need replacing?
Answer: Most rims have a little dimple or a groove (called wear indicators) for detecting rim wear. When this dimple or groove disappears, its time to get new rims. If the wheel physically damaged, take it to a LBS for an assessment on if it needs to be replaced or can be repaired anyway (e.g. cracks, dents, etc.).
If your rim doesn't have wear indicators, take it to a bike shop, and they'll measure the rim widths with a caliper and check for deformations. I don't have a good threshold for what thickness would be considered acceptable, but I'd err on the side of caution.
If your v-brake is grooving your rims, are you sure brake pads are still good? If you hit the metal back plate, they'll start destroying rims. If the groove is on the brake pads (due to the wear indicator or misalignment), you can sand it down if theres still enough material left, or just put on new pads.
Comment: On some rims such Mavic Open Pro the rim is drilled part way through from the inside - so for these rims you need to look for the hole appearing rather than something wearing away.
Comment: Good point. This is probably the easiest way to gauge rim wear.
Comment: Some brake pads tend to attract little metal splinters or similar, scratching or grooving the rim afterwards. A wire brush is very good to brush these out of the pads.
Comment: The dimple or groove that indicates rim wear can actually reduce the lifespan of the rim. I talked about this with my bike shop the last time they replaced my wheel. They brought out a wheel that they had just replaced, which had failed along that groove. Clever idea, though.
Answer: If your rims bulge outwards under a high pressure inflation, its probably a sign they're sufficiently worn to require replacement.  This can be detected by sporadic rim brake effectiveness when brakes are correctly set, as in, rubbing during one point of the rotation, or variable braking capacity during a spin of the wheel.  It feels like shuddering.
In terms of the pressure required to detect:
on 47-559 which given my weight & use I run at 33psi / 53psi
Rim bulge was detectable at 60psi and obvious at 80 or 100psi.
Source = Failure mode of my most recent rim.
Comment: What is high pressure inflation? For some bikes, high pressure is 4 bar / 60 psi
Comment: A blip isn't really a good indication of a failing rim - often, these rims can be put into (near) perfect working condition by a bike mechanic (or yourself) with a crescent wrench and a bit of truing (certainly, if you carry a small crescent wrench, you can often do this as an on road repair then adjust it when you get home).
Comment: I went through alignment a bunch of times before watching the distortion when I pumped it up.


Download BitmapImage using Task Parallel Library

Question: Downloading a BitmapImage from a URI on the UI thread hangs up the application.
To avoid this, I'm trying to download the BitmapImage in a separate thread, would like to know if it can be made simple with TPL.
My current method is the following:
            Task.Factory.StartNew<BitmapImage>(() => new BitmapImage(myUri) { CacheOption = BitmapCacheOption.OnLoad }, CancellationToken.None, TaskCreationOptions.None, new StaTaskScheduler(1))
        .ContinueWith(t => image1.Source = t.Result, TaskScheduler.FromCurrentSynchronizationContext());

The problem with this is of course the fact, that the BitmapImage wasn't created on the same thread as the Image.
The BitmapImage loaded from URI cannot be frozen, so that wouldn't work normally.
Currently, the simplest method I can think of is creating a stream from the URI, then loading the bitmap from that stream and freeze it before returning.
That should create a really bloating code I believe.
Is there a way to keep the code small(er) and (more) readable while trying to display an image from the web?
Answer: If the image is in an XAML file and you're using binding to load it, set IsAsync to true to download it async.
Of course, then it is good practice to provide a fallback place-holder before the image shows up.  One way to do it is to use PriorityBinding.
If you must do it programatically, try creating an async ImageSource then setting the BitmapImage's source to it.


Why 2 input bias currents are equal for OpAmp?

Question: In Floyd book it says that 2 input bias currents for 2 inputs ideally equal. I understand if they are equal in a common mode, but how they can be equal in a differential mode if in this case, one input is connected to the ground, or voltages are in opposite phase which at least gives opposite directions of the currents?
Comment: In fact, ideally they're not even there!
Comment: That's what I thought too.
Comment: The authors should know better than to use "ideal" in the context of op amps when another word, like "optimally", is probably what he wants.
Answer: The basic error you made is in your understanding of bias currents: -
Bias currents are not something that YOUR input signal is responsible for so, the direction or polarity of input signals are irrelevant. Bias currents can be regarded as currents taken (or given) by the input stage of the OP-AMP and they will flow into or out of your input voltage sources irrespective of their polarity. They are self-generated within the op-amp and not to be seen as some current proportional to your input signal level.
Comment: Thanks Andy! So, bias currents will be present even if nothing is connected to the inputs? Are they generated as a reverse leakage currents for transistors in a differential amplifier stage?
Comment: With nothing connected to the inputs they can't be present of course but as soon as anything of a circuit appears on the inputs a current will flow. It's a dc current too (plus noise). For a BJT op-amp you can regard them as the current into the base of the transistors that biases them. For JFET op-amps, it is gate leakage currents but I can't explain them chapter and verse other than they will double every 10C rise in temperature. Maybe that's another question?
Comment: Sure, I meant if not input voltage is present, but inputs are connected to somewhere and not in a HighZ. Got that, thanks a lot!


Cancel file dragging on Mac

Question: Is it possible to cancel file dragging on a Mac? I've noticed that with the escape key, you can cancel file dragging within the Finder, but if you're dragging the file onto another application you can't cancel it (which in my opinion seems very annoying when you really just want to cancel the file dragging). Is there any way to cancel the file dragging in such circumstances?
Answer: You can drag the file to the menu bar (top bar) and release it. That will cancel the dragging in any app (afaik).
Answer: Whilst dragging you can command-Tab (without releasing your click-and-drag). If you command-Tab back to Finder you can then click escape. If you command-tab to any application which will not accept the dropped file then you will receive a beep alert and the drag-and-drop will be cancelled.
Comment: This doesn't seem to work on High Sierra. Does anyone know ay other methods? The accepted solution (dragging to the menu bar) works but is pretty inconvenient.

Cancel file dragging on Mac


History navigation or scripts loading problems with jQuery Mobile

Question: I'm kinda new with jQuery Mobile (and web development) and have history issues.
First, the context :

I must use jQuery Mobile
I'm using a single page template.
I've got about 10 web pages for now
In every pages, I've got a script which loads the menus (menuHeader.html + menuHeader.js).
menus are loaded on "pagecreate" event

Thing is, I'm "playing" on a page (filling some fields, using the JQM search field on a list, etc.).
When I use $.mobile.changePage to go to another page, I can go back to the first page : I've got the exact state of the page, exactly as I left it.
But, as read on JQM documentation, $.mobile.changePage only loads the first data-role=page of the other page.
=>Thus, I don't have any menus on my next page.
Another way could be to set location.href with my new URL and load my scripts in every pages (that was my first idea).
If I do that, the menus are loaded on every pages but I can't go back on a previous page without reloading it totally.
=> That implies that my forms and my lists are empty, etc.
=> Plus, if I call web services on pagecreate or document.ready, web services seem to be called once again. That's not a big deal for now but could cause performance issues in future.
Is there a method to load scripts on every pages AND being able to use history navigation properly (without having the whole previous page reloaded) ?
A kind of "super" changePage ?
My last solution is to copy my menus in every pages but I'd really like to avoid this as I don't want to have to modify every pages if a color, a label or whatever must be changed.
I'd be grateful for some help (this problem is driving me crazy for a week now)...
Thanks in advance !
Stephane
Answer: jQuery Mobile has a persistent header/footer functionality that can serve as a navigation bar.
http://jquerymobile.com/demos/1.2.0/docs/toolbars/footer-persist-a.html.
All you have to do is add the same data-id attribute value to the header footer on all the pages.


Can baking sheets continue to cook toffee?

Question: I make tons of toffee every year. And I mean tons. Never had a problem. Now this year, something so wrong. Same recipe. Same pans. Same house. Same stove. Same thermometers. I even bought new thermometers just in case. So here is the deal. Everything is fine. Cooks fine. Looks good. Smells great. Once it reaches desired temp, I pour it onto a lightly buttered baking sheet. Same as always. Cooks down. Put it in freezer. Everything is the same as I have done for YEARS!  Now when I take it out and break it up, it's perfect around the edges but super dark and almost burnt in the middle. I can't figure it out. So my question is this?  Could the baking sheet be "cooking" the mixture?  Can the pans go bad?  I don't understand how only around the edges is good. I can't stress enough how everything is the same down to the brand of ingredients. I'm about to lose my mind!  PLEASE HELP!
Comment: Don't think it's the pans. If you have been using the same ones for years, why would they suddenly go goofy just this year? Food manufacturers sometimes change processes, ingredients, or sub-suppliers for their products. It seems to me you have eliminated just about everything else. If you will list the recipe & the brands of whatever went into the toffee, maybe someone can help figure out what could be different.
Comment: Are they on a wire rack, or directly on the counter?  Have the racks or counter changed?  Is your ambient air temperature the same?
Answer: Toffee cannot continue to cook once it's been poured onto a baking sheet.  There is no heat source at this point and therefore there can be no increase in temperature.
All other factors being equal, I might suggest looking at your ingredients.  Are you using beet sugar this year when you usually use cane sugar?  It might seem like a trivial difference, but beet sugar does caramelize differently from cane sugar, so it's a relevant concern for toffee-making.
However, you might not need to get to the bottom of this mystery.  You know that the temperature you're using with the current ingredients and equipment is burning the toffee.  You could try cooking the next patch to 5-10 degrees less than your previous attempts so that it won't burn.  I'm pretty sure that 290 degree toffee will be just as crunchy and lovely as 300 degree toffee.


Temperature to bake/warm up a pumpkin pie that isnt frozen

Question: Temperature to cook/warm up a store bought pumpkin pie that is not frozen.
Comment: Pretty sure pumpkin pie is usually served cold
Comment: It has already been cooked also
Answer: Pumpkin pie is normally served at room temperature, so leaving it on the counter for a few hours should suffice. If you want to warm it slightly, 15 minutes uncovered in a 140°C oven followed by sitting on the counter for another 10 minutes should be sufficient.
To check whether it's been warmed through to your liking, here's an easy way to check the inner temperature of a thick piece of food: insert the tines of a fork straight down into the middle, leave them there for a few seconds, then remove the fork and hold the tines just over your lips. If you don't sense any heat coming off the tines, touch them to your lips. (If you're sure the food's not too hot you can jump straight to the second part, but otherwise you risk burning your lips.)


How to construct a certificate based on another

Question: I need to send a certificate through an asp.net page.
An ActiveX would read the certificate from user's PC and with a click of a button, somehow the certificate should go to server to sign a document (private key)
I was thinking of filling hidden asp input fields and reconstruct the certificate at the server.
Is this approach viable or it's a better approach? Should I try to do the same thing using silverlight?
Answer: No way. The private key in most cases is not exportable (i.e. the activex can't read the certificate's private key) and in all cases you may not transfer the private key anywhere. The proper approach is to send the hash of the signed data to the client and sign it there (on the client side).
We have Distributed Cryptography add-on in our SecureBlackbox product that does exactly what I described above. See the detailed description in this answer on SO.


How exactly should a spotter help someone get the barbell up when doing the benchpress

Question: I got so far that I should stand to the side of the head of the bencher, but how exactly am I supposed to the rerack the bench in case it gets stuck? Should I try to do a deadlift or a bicep curl or what?
Comment: You're spotting on one side of the bench, I'm assuming there's someone else at the other side? Or are you spotting alone from behind (above?) the person's head? Or are you the one being spotted? The question is not very clear.
Comment: I got confused, check now @Luciano
Answer: Assuming you are the only spotter:

Ask the lifter how they expect to be spotted. Some want lift-offs; some don't. Some are going for 1RM tests; some are going for 8RM tests. Some only want a little help if they fail; some don't care if you pull the entire bar off.
Stand behind the bench, but somewhat out of the way while the lifter moves in to position. Some people like to swing out behind the bar to get in to position, so it's best to just stand back and let them set up.
If there is a lift off, stand over the bar. You will most likely be standing directly over their head, but that's just how it is. Grab the bar in your most comfortable grip. On countdown (which should be discussed in step #1), shrug the bar off the pins. Only lift as much as the lifter needs to move off the pins. The lifter needs to perform most of the work so that they remain tight.
Stand ready to grab the bar in case they need it.
Do not touch the bar until the bar starts going down during the lifting phase of the bench press, or until the lifter tells you he or she is done.
If the lifter fails, then grab the bar and shrug the bar back up in to the locked position. Again, help only a little or a lot depending on how they asked in step #1.
Once back in the locked position, pull the bar back on to the pins.

99% of the time when someone fails a bench, they only slightly fail. So you don't have to be able to lift the entire weight. You both should be able to work together to get the weight back up on to the pins.
On very rare occasions, a lifter could get injured during the lift in which case it may be on you to lift the entire weight. If you can't then you may have to shout for someone else to come help. If not, you can move to the side and try to flip the bar off. I wouldn't worry about this happening though.


Where to add a folder on a Pi sd card to put movies from my Mac?

Question: So this seems like a obvious question but all I am finding answers to are streaming solutions. I want to play a movie from my Pi hooked up to my tv. I want to put the file from my mac to the pi's sd card so when it boots up it I can play the movie. On my Mac though it only comes up as three partitions (recovery, and 2 Boots for arch linux and raspmc) so i do not know where to put a movie folder. Any suggestions are appreciated, thanks.
Comment: You are trying to create a folder on your sd card by accessing the image? If that is the case, I think you are going about it the wrong way. You should boot up your pi and create a folder on your pi. You can use CyberDuck to transfer the movie to your pi from your mac, or simply mount your mac share on your pi.
Comment: yea i figured something was wrong. I can only see the partition images on my mac but not the sd itself. theres no way to access the empty storage without going through the pi itself? I would like to know how to move files without going through the network if possible, thanks for the help
Comment: Why not ftp the file from your mac to the sdcard? http://www.raspbmc.com/wiki/user/ftp-access/
Comment: Filezilla for mac will do it without issue http://sourceforge.net/projects/filezilla/files/FileZilla_Client/22.214.171.124/FileZilla_184.108.40.206_macosx-x86.app.tar.bz2/download?nowrap
Answer: If you want to transfer files without going through a network, you can use a USB Memory Flash drive
You can find a nice tutorial here. Since links can die, here is what the link says:
First we need to find out where our system locates the device. With the USB device not plugged in, type…
tail -f /var/log/messages

Then plug in your USB device and, looking in the new lines which appear, make a note of the ID – it will be something like sda1, sdb1, sda2, sdb2 etc.

finding the ID of USB device. Then CTRL-C to stop the tail command. In this case the usb stick id is sda1. That means the device is located in /dev/sda1.
Next, we need to create a directory under /media, so you will be able to mount your drive.
sudo mkdir /media/usbstick (usbstick can be whatever you want to call it)

Then we mount the usb stick with…
If you are logged in as root…
mount -t vfat -o rw /dev/sda1 /media/usbstick/

…where sda1 is its id from the tail command and usbstick is the directory you just made.
If you are logged in as the default Raspberry Pi debian user, pi, you will need to use…
sudo mount -t vfat -o uid=pi,gid=pi /dev/sda1 /media/usbstick/

…or you won't get read/write access (the -o stands for options, uid is user id and gid is group id).
Then you can go there and have a look…
cd /media/usbstick
ls -l

result of ls -l command

…and you should get a listing of what's on the USB stick you just mounted.
Comment: Lol haha links go to die here idk why but that's hilarious.   But thanks for your answer I guess I was hoping I could take out the SD and add files in my Mac then plug it back into the pie to read.  Do you think you could partition the SD (mines relatively big at 16gb) just for media so it could be written to by Mac.? Also is that something that needs to reformat the SD and do from the beggining? Thanks for the help
Comment: I don't think so, but you can google. But the question is why would you?
Comment: Well I'm at a school that has a wifi system set up so to do it over the network, not that I have anything bad, I just don't like the idea of sending my stuff through the community router. And with the usb it is just one extra thing you need. I already have a computer with an sd slot so i figured I can just put my media and stuff on there in a folder on the sd (i was thinking a partition both can read but couldn't find anything) and then boot it from the pi to use on my tv.


Recover iTunes username (email)

Question: Using iOS 5.1.1
I have installed an app with an iTunes account which is not currently logged-into the 'App Store' in my iPad 2. In addition, I do not remember which username (email address) I used for that account.
How can I find out, in my iPad, which account was used to buy that app?
Answer: If you sync with an iTunes library, hopefully you have authorised it with the account you used to purchase the app. If so, then the app would be in the "Apps" sidebar item. Click on it and press command+I. The General tab will tell you about which account purchased the item.
If you don't sync with an iTunes library, your only option is to go to the App Store, sign in with all the accounts you know one by one, and check the purchased items for that account.
Answer: If the app has an update available you can download that and try entering your iTunes accounts one-by-one. Trial and error.
I do not have a sure-fire way on the iPad, but if you have a computer with iTunes installed (and perhaps even through the web), you can log into your account, check the account info and see your purchases.
Hope this helps.
Comment: There is also a Purchases tab on the iPad's (and iPhone's, under Updates) App Store itself, and not just on iTunes for Mac or Windows, I believe.
Comment: I know there is a "not on this device" in the App Store app - which I think gets the information from the current iTunes account.

Recover iTunes username (email)


Decal transparency and or culling problems Blender 2.93.1 Cycles

Question: So this sounds like a known fail from my side, but i tested it so far that i realised Blender 2.82.1 is doing the right job, while 2.93.1 just give me a bad result. Is there something i just missed? I checked the material and texture. With and without alpha method it gives me the same issue. Also if i move the decal plane far from the main object i want the decal on it, the issue goes away. My problem is, i dont want to have the decal that far from my main object. Also its something that worked fine til now. This is 2.82.1 and this is 2.93.1
Answer: I dont know if this is the only solution, but the further away from the world center you go the more you get this issue. So its basically a clipping issue that goes over the transparency. Crank up the transparency bounces will not fix it. Better work on center of the world.


Android Pie AOSP default Camera orientation issue: Camera sensor roated to 90 degrees right and Display is in reverse landscape mode

Question: I am using an (Android Pie) AOSP Camera2  application. (packages/apps/Camera2)
We are using Camera module OV5640. Able to preview and capture the image and video in reverse landscape mode (But mirror enabled).
But for the mechanical enclosure fitting, camera sensor module rotated to 90 degrees right physically.
And in camera application for preview, image is coming as 90 degree left and mirror also enabled. Even after capture the image or video also same behaviour.
Please can you suggest me what changes I need to do in camera application (packages/apps/Camera2) related to:
Reverse landscpe and camera sensor module rotated to 90 Degrees right
I tried as below, this time camera image capture preview came same as in camera direction, but preview size is less. And after capturing the image image also saved in proper direction. Still mirror issue is there.
But video preview is still came as 90 degress rotated left but after capturing the video, saved video is coming properly. Still mirror issue is there.
packages/apps/Camera2/src/com/android/camera/app/OrientationManager.java
<code>            public static DeviceOrientation from(int degrees) {
        switch (degrees) {
            case 0:
                return CLOCKWISE_90;
            case 90:
                return CLOCKWISE_0;
            case 180:
                return CLOCKWISE_270;
            case 270:
                return CLOCKWISE_180;
            default:
                return CLOCKWISE_90;
           }
         }
</code>
packages/apps/Camera2/src/com/android/camera/processing/imagebackend/TaskCompressImageToJpeg.java
<code>                    final DeviceOrientation exifDerivedRotation;
                if (exifOrientation == null) {
                    // No existing rotation value is assumed to be 0
                    // rotation.
                    exifDerivedRotation = DeviceOrientation.CLOCKWISE_90;
                } else {
                    //exifDerivedRotation = DeviceOrientation
                      //      .from(exifOrientation);
                    exifDerivedRotation = DeviceOrientation.CLOCKWISE_90;
                }

    // Resulting image will be rotated so that viewers won't
    // have to rotate. That's why the resulting image will have 0
    // rotation.
            resultImage = new TaskImage(
            DeviceOrientation.CLOCKWISE_90, resultSize.getWidth(),
                      resultSize.getHeight(),
                      ImageFormat.JPEG, null);
    // Image rotation is already encoded into the bytes.
</code>
src/com/android/camera/TextureViewHelper.java
<code>            // This rotation code assumes that the aspect ratio of the content
    // (not of necessarily the surface) equals the aspect ratio of view that is receiving
    // the preview.  So, a 4:3 surface that contains 16:9 data will look correct as
    // long as the view is also 16:9.
    switch (deviceOrientation) {

        case CLOCKWISE_90:
            transform.setRectToRect(rotatedRect, desiredBounds, Matrix.ScaleToFit.FILL);
            transform.preRotate(270, mWidth / 2, mHeight / 2);
            break;
        case CLOCKWISE_180:
            transform.setRectToRect(normalRect, desiredBounds, Matrix.ScaleToFit.FILL);
            transform.preRotate(180, mWidth / 2, mHeight / 2);
            break;
        case CLOCKWISE_270:
            transform.setRectToRect(rotatedRect, desiredBounds, Matrix.ScaleToFit.FILL);
            transform.preRotate(90, mWidth / 2, mHeight / 2);
            break;
        case CLOCKWISE_0:
        default:
            transform.setRectToRect(normalRect, desiredBounds, Matrix.ScaleToFit.FILL);
            break;
</code>
Thank and Regards,
Devendra
Answer: Are you returning the correct sensor orientation values from the HAL's camera metadata?  Also, there is a general requirement in the Android CDD that the long side of the sensor must line up with the long side of the screen, which most applications expect to be true.
The Android OS also flips images from front-facing camera for preview, but should not do so for still captures or recorded video.  If this is a back-facing camera, and you are producing mirrored images from the sensor module, you need to unmirror at the HAL or hardware level.
In general, applications cannot rotate/flip images drawn into a SurfaceView, so there's not much you can do to fix this in the app.  And if you fix it in app, all 3P apps will still be broken.  This may not matter if this device is not intended to run other apps, or be certified as Android-compatible, of course.


Windows 7 RTM vhd

Question: How can i dual boot XP and Windows 7 RTM vhd file in Windows XP without using any Windows 7 DVD?
Answer: You cannot do this as Boot from VHD is a feature in the Windows 7 Boot Loader.... Also, there are many restrictions and whilst "it works" it is annoying to use a VHD as a normal OS.
Instead, what I recommend you do is download and install Microsoft Virtual PC 2007 then you can use Windows 7 virtually from within your Windows XP session.
Comment: VPC or do a real dual boot.

Windows 7 RTM vhd


How to cope with studying on online platforms

Question: I would like to know about any suggestions that the community can give about coping with online school. I have both school and my coaching classes. Hence the screen time is too high and I also require time for self study. The syllabus covered in school is the same as in the coaching institute. The teaching of my coaching is better, but attendance in school is compulsory (for internal marks). Also, currently both are through online platforms itself, so let me know how to manage my time. (School timing 6 hrs each day for 6 days a week and coaching timing 7.5 hrs in a week)
Comment: Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer.
Comment: I'm afraid you might not find a good answer here as it depends on individual factors.
Comment: You should discuss this with your school and your coach: they are the ones that can do something to change the situation.
Comment: I think it might help to add a subject and the level of study here. To much screen time may be a common problem, but the solutions vary according to what else you could be doing. For example, if the work requires coding, some quiet multitasking would be a good way to help you get through lectures that are repeating material. Unit tests really only require half attention to write.
Comment: @Clumsy cat...I am studying high school level physics, maths, chemistry, social science, mental ability, information technology and a couple of languages.
Comment: Voting to close since high-school level teaching and learning is off-topic on this SE site, which is for postgraduate studies and university-level teaching.
Answer: Clearly it's going to be a sub optimal use of time to attend both lessons and pay full attention. I will assume the coaching classes are happening because the school classes are sub-optimal, therefor in the school classes, you need a second activity to occupy you. It needs to be something that wont get you in too much trouble, so it needs to be strongly related to the class.
Using the information in the comment;

I am studying high school level physics, maths, chemistry, social science, mental ability, information technology and a couple of languages

Of these subjects, I know that maths chemistry and physics are mainly exam based, and from almost any given exam, there are lots of past papers available. You should print out exam questions of the appropriate subject and try to work through them during class. Printed exam questions, rather than reading from a screen, so that it doesn't look like you're browsing the web.
You must be able to hear the class as you do it, and if someone asks you what you are doing, apologise and answer honestly. Say you feel you have a good grasp of the material, and want to practice for the exam. Most teachers will find this answer acceptable.
Comment: Thank you for the help!!
Comment: @Anonymous it this answered your question you can accept the answer by pressing the tick to the left, so that it goes green.


Are there any statistics or web services for n-grams of frequent English words?

Question: I found this for six common subjects. But it doesn't contain the complete statistics about all common English words.
Comment: Do you want a list of the most common n-grams?  Or a way to look up the frequency of a particular n-gram?  (Google will let you do that.)  Or, like, "Give me the most frequent bigrams that begin with the word *watermelon*"?
Comment: Just most common n-grams.
Answer: Take a look at phrasesinenglish.org's "N-Grams Advanced" tool:
http://phrasesinenglish.org/explorengrams.html
It allows you to view 1- through 8-grams from the BNC (British National Corpus) in ascending or descending order, and provides a lots of granularity (filter by word pattern, POS etc.)
Answer: Google has a nice project called Google N-gram viewer. It contains around 1-million English words from all the books in Google Books Library. You can view the frequency graph of a word over the years and compare between frequency graph of different words.
The data is also available for download if you want to try some experiments over them. It consists upto 1-grams to 5-grams of data of Different forms of English (i.e. British, American) and some other Languages (Chinese, German, French ) too.
Comment: I found the data more easily on https://github.com/orgtre/google-books-ngram-frequency. Whatever people prefer :)