How do you 301 redirect links in Drupal via the .htaccess modredirect rules to keep spidered links?

Question: I am migrating a site to a new domain and I would like to do a 301 redirect via the .htaccess file to create a redirect rule. I have over a 1000 dynamic links generated via views so this isn't do able with a redirect module as easily. I just want to get an example modrewrite rule to put in my .htaccess file.
Answer: Also have a look at the Redirect module. Managing redirects in the database might have some advantages over putting them in a .htaccess file.
Answer: Here's what i put in my .htaccess file:
I wanted to redirect urls from: www.abc.com/buy/tennis/shoes/1232
TO: www.xyz.com/buy/tennis/shoes/1232
Line 100:
<code>RewriteRule ^buy(/?.*) http://www.xyz.us/buy$1 [R=301,L]
</code>
Note: You have to put this rule above the other rewriterules. I put it below the rewriterule ^ index.php and broke the site. just an fyi as I'm not exactly sure why it broke. if someone else can shed some light on this it would be great.


Why is the inductive effect for a protonated amino group greater than that of a nitro group?

Question: Why does $\ce{NH3+}$ have a higher $-\ce{I}$ effect ( inductive effect) than $\ce{NO2}$ even though oxygen is more electronegative? Does it have something to do with positive charge on $\ce{N}$?
Answer: The short answer is that $\ce{NH3+}$ is a cation, and any cation will always draw electrons towards it stronger than any neutral species.
The electronegativity of the species involved is only a secondary cause. However, one can safely say that $\ce{NH2}$, if nitrogen's lone pair is (somehow) impeded from excersizing it's $+\ce{M}$ effect, would have a lesser $-\ce{I}$ effect on the whatever than $\ce{NO2}$ would.
Answer: The inductive effect which you are talking about must be from the most common order given for strength of -I.
Here what you are missing is that its not $\ce{NH3+}$ but its - $\ce{NH3+}$ or $\ce{R-NH3+}$.
What I mean to say is some alkyl or aryl group will be attached to it.
Coming to your Question, -I, means that the group attached will pull electrons more towards itself, gaining partial negative charge and hence imparting partial positive charge to the alkyl or aryl group . Though $\ce{O}$ is more EN than $\ce{N}$, $\ce{NO2}$ is less EN comparatively because there is cation on $\ce{NH3+}$, so it will have more tendency to gain or pull an electron.


Logic bricks for scene objects

Question: I am trying to make the sensors and actuators work in the script with scene objects but they only work with the main object, how can i make them work with scene objects on the script?
Comment: Please include information about the _objects_, your logic editor and scripts that you are using in whatever are you doing.
Comment: Just for info: There is no "main" object. Python code gets executed by the "current controller". A controller is owned by an object (often referred as owner). A controller is connected to several sensors and actuators. Each sensor and each actuator is owned by an object (not necessarily the same object as the owner of the others). This is fixed as you can't change that while the game is running. But what the sensors detect is not fixed. This is recalculated at each single frame and can be read from the sensor e.g. via hitObjectLists().
Answer: Logic bricks are attached to a single object. You can use message actuators and sensors to get an object to respond to another objects sensor.
Using a python controller it is possible to access other objects in the scene.
<code># Loop through all other objects in the scene
sce = bge.logic.getCurrentScene()
print("Scene Objects:", sce.name)
for ob in sce.objects:
    print("   ", ob.name, ob.worldPosition)
</code>
Comment: Sorry for the late response, thx you so much for this :)

Logic bricks for scene objects


Translation of mild, medium, and hot (food spiciness)

Question: In English, salsa, hot sauce, or other spicy foods are often classified as either mild (not very spicy), medium (moderately spicy), or hot (very spicy). Does Spanish have similar adjectives to describe the range of spiciness of food?
Comment: Even though the answer you selected works for any Spanish speaking country bare in mind that you will hear different ways of referring to the same thing since this will depend a lot of the region/city/country.
Answer: This is a common way of speaking about spiciness

poco/ligeramente picante- mild
picante - medium
muy picante - hot

If something is not spicy or slightly spicy we would say it is "suave".
Answer: For years in South Texas my Mexican friends would say Muy Milo for very mild? I cannot find that referred to anywhere as a real word?
Comment: @DorothyHall: I would be careful with the use of this term since it might be (emphasis on "might") a "creation" of Mexicans living in the US. Another less likely possibility is that it may be used on a specific region of the country but I have never heard it, never in Mexico City where I'm from nor anywhere else and I did travel a lot within the country while I lived there.
Comment: Not a word used in Mexico at least
Answer: Suave, mediana, and muy picante would be understood, provided the context makes the reference to spiciness obvious.  Example: one word on the label of a salsa jar,  the sort of word that's red for hot, yellow for medium, and green for mild.
Answer: I would use:

leve - mild
medio - medium
muy picante - hot
Comment: I'd use "poco/ligeramente picante", "picante" and "muy picante". "leve" and "medio" are not natural ways for speaking about spiciness. If something is not spicy or slightly spicy we would say it is "suave".
Comment: @Juanillo: Feel free to post another answer with your suggestions so people can up/down vote those as well.
Comment: My native friend from Peru also suggested the translations I gave. Maybe a regional thing?
Comment: I am with juanillo on this one: ligeramente picante, picante y muy picante are more appropriate than 'medio'. Medio sounds more like an americanization of the term.


What is the peak time when most number of people are online in PSE?

Question: I just want to know, usually at what time the most number of people come online, so I can have more interaction with them?When I am typing , I found very less people answering questions. People who uses this website are not equally distributed all over the globe. So there should be sometime where most of them are active in this website. Someone might be having this statistics. Share if possible.
Answer: For real-time interaction, it's chat you want.
Not the main site.
Not this meta site.
But chat. That's what it's there for.
And on the chat info page for the chat room you're interested in (e.g. the main physics chat room), you can find statistics about number of visitors by hour of the day, and by day of the week.
Answer: You can get information on the time of day when questions and answers are posted from the Stack Exchange Data Explorer, using e.g. this query. Based on this metric, the most active time is around 1600 UTC. It should also be possible to add in the times when comments are posted if you're interested.
There is no data available on page views with better than daily resolution, at least not through the tools SE provides.
Comment: Or, dare I say, should we look at [comments](http://data.stackexchange.com/physics/query/edit/91532#graph)? Nice peak at 16 UTC as well ;-)
Answer: As a side note to David's answer: Trying to figure out when most people are online isn't really the best way to get answers to your questions. If you ask really nice questions, more people will vote/answer. You may want to read how to ask to help improve your questions :)


EEA family permit visa

Question: I'm having a permit which reads "residence card of a family member of a union citizen" issued to me by Italian authorities when my mum acquired Italian citizenship.I will like to know if i should apply for EEA family permit or i can travel with her to UK without the EEA family permit.Thank you.
Comment: Are you under 21 years old?  If not, are you dependent on your mother?
Answer: You can travel to the UK without an EEA family permit.  See Entering the UK as the holder of an Article 10 residence card:

If you are a non-EEA national who holds a valid genuine residence card, issued to you as the family member of an EEA national who is exercising free movement rights in another EEA State (i.e. not your EEA relative's Member State of nationality) under Article 10 of Directive 2004/38/EC (the 'Free Movement Directive'), you may use this document for travel to the UK if you are accompanying your EEA national relative here, or joining your EEA national relative in the UK.

There are four sections with details of the process.  In particular, you should note the required evidence, which includes your birth certificate, to prove your relationship with your mother.  If you are over 21, you should also provide evidence that you are still dependent on your mother.
There is anecdotal evidence on this site that the immigration officer is not likely to ask for this evidence, but you probably want to avoid a situation in which you are asked for it and don't have it.  I suppose that the older you are, the more likely you are to be asked.
Answer: EEA regulation 2016 says a child can travel with him/her one of parent who is a European Union Citizen.
In your case :
1. You hold a Article 10/20 residence card
2. Your mother have Italian citizenship
If you are under 21 and dependent on your mother then you can travel to uk with her without a visa.
I have seen cases like dependent son of age 30 was permitted to enter with Italian(achieved) Father.
Have a look :
UK guidance on residence card 10/20

EEA family permit visa


How can I find out if I can add a bedroom to my home without violating any rules/ordinances?

Question: I think I heard somewhere when I bought my home that we weren't allowed to add any permanent (concrete foundation) fixtures on my property, such as a shed on a concrete foundation.  Well, adding a bedroom to my home would do exactly this, does anyone know who I can contact to find out if this is even allowed?  Such as maybe an official city agency of some sort?
Comment: Is this prohibition a) city ordinance b) county ordinance c) gated community CC&R? The first two require checking with your local planning office, the last requires you to petition your community association.
Comment: Some municipalities have percentage limits of building coverage (land usage), which can be appealed to the zoning board for a variance (most town are loath to discourage an increase in tax base).
Answer: Building regulations are generally controlled by either

the municipality (city/town/township/village) if you live in one, or
the county

Start with the first. Most often there is a planning or zoning office that regulates both commercial and residential construction.
Or you could consult a local builder and ask him or her what permissions you need (but double check any answer that you get; some unscrupulous builders will say you don't need any, and post construction, you may have a problem).
Comment: The way the question is worded, it's probably a CC&R. They have some silly requirements you buy into, such as requiring a wood shake roof for visual perfection despite the fact you are in a wildland interface zone where fire is a major concern (yes we have such a bunch of weirdos here, and the one resident had to fight mightily to get them to let him do a tile roof to abate fire danger)
Comment: @FiascoLabs An excellent point. The restriction would then be contractual and might even be a restriction on your deed.
Comment: @FiascoLabs What's CC&R?
Comment: Codes, Covenants & Restrictions. An excellent way that Americans have found to give away their property rights. It's supposed to keep your neighborhood from becoming trashy, but often is the source cause of much acrimony. For instance, you cannot change your house color (no bright pink) but there are times when your dictatorial neighborhood association will even demand that the paint be an exact match as in no change in tint. It can be a good thing, but often as with all micromanaging, leaves an opening for right gits to control every aspect of your life.
Comment: Covenants, Conditions and Restrictions. They are private contract property rules in addition to publicly mandated building codes and ordinances.


How should large organisations manage credentials?

Question: How should large companies store credentials for important systems, such as root access to an integral machine (e.g. high-traffic web server), or social media accounts?
Comment: Tons of ways, most of them crappy. The only good strategy is to use a password manager that supports multiple accounts sharing passwords. Do you have a problem you are looking to solve or are you just curious>?
Comment: To expand on schroeder's comment: what do you mean by "important"? Root access to a machine that is air-gapped and otherwise isolated may or may not be "important". Login credentials for a company Twitter account are definitely important while my personal Facebook login credentials are probably not. Another hint: narrow your question down instead of trying to get a "fit all"-answer, the answer is probably more interesting.
Comment: "What do you all use?" Is not a good question fit here. "What's commonly used?" Is borderline. Can you expand your question to explain what you are trying to accomplish and, for instance, what you mean by "large companies"? Are you looking for best practices? Tools?
Comment: Look up things like CyberArk - basically, high end password managers
Comment: Thanks for your responses, I have tried to improve the quality of the question and clarify. @NeilSmithline I'm just curious.
Comment: There's also LastPass Enterprise that supports secure password sharing.
Answer: First, root access to a machine does not require to be shared. The number of human beings that need to be administrators should be small before the number of users that the machine can accept. Said differently, each administrator of a machine should have personal credentials for that machine, that should allow him/her to require administrative priviledges. That is the only way to be able to know who is responsable for what in case of trouble. And that comes out of the box for Unix-Linux systems as well as Microsoft ones.
In the opposite it is no harm in having the same credentials allow access to a group of machines. Single Sign On systems can be found everywhere, from the good old Kerberos to Microsoft Active Directory or LDAP. What matters is that the group of machines must be identified. Even inside a datacenter, it is common for administators to share same credentials for all machines of one security zone.
That does not mean that companies pretending to be serious never do security horrors like installing the credentials for a bunch of machines (mainly machines belonging to their clients) in some relay host. Nor does that mean that credentials for the company facebook account is not written on a paperboard in the communication service office, but those are definitely poor security practices.
Answer: In short; most likely (hopefully) some kind of password manager would be used here. As mentioned by Neil Smithline there are tons of ways of actually doing this and most ways are quite awful.
The only "good" method is a password manager of some kind, whether it be KeePass or perhaps an online password manager such as LastPass or DashLane. Realistically it doesn't matter what password manager I give you as an example, ideally, you need to research what would suit your requirements (if you do have a specific problem to solve) these are just examples of what you could use. I am in no way advising you do use them or ill-advising them.
However, as mentioned this is a broad question & it's quite hard to answer as it stands.


What is the difference between Electro and House?

Question: I am wondering what the difference is between House, Electro and perhaps Progressive House in precise musical terms (not in terms of what it feels like/which musicians are examples of the respective genres).
Comment: Hi. Please sign up to the Music Fans SE at http://area51.stackexchange.com/proposals/61574/music-fans. It is currently in commitment phase. Questions like these will be a better fit there.
Comment: Also some musical genres aren't about the music, they're about the audience, or the drugs they're taking.
Comment: Find an electro music playlist, find a house music playlist.  Listen to them.  What were the differences?  (Hoping that the guys that compile playlists on youtube know their genres)
Comment: @LeeKowalkowski Which genre is not about the music but about the "drugs they are taking"?
Comment: @JCPedroza, such a genre will overlap greatly (music for drugs, about drugs, or from drugs)! But historically, new popularity of a drug often comes with a new music scene (or two if necessary, e.g. high-energy dance music, plus music for a "chill-out" area) http://en.wikipedia.org/wiki/Psychedelic_music ... the drugs aren't necessary, incidentally! I've never used them, music is my drug.
Comment: This is off topic here. It is on topic at Music Fans, but that site didn't exist when the question was asked.
Answer: A lot of the defining sound of electro (and related styles) comes from harmonically rich sounds. You'll find distortion and waveforms with many harmonics. In contrast, house tends to be more conservative in that regard.
And that's pretty much it. Electro will also tend to be more "intense", with faster tempos and louder sounds, but I don't think that tendency is a defining pattern since house can also get to those tempos and loudness and electro can be very chill and relaxed.
You could say that, in general, the difference between house and electro is in the timbre of the sounds. This might come as simplistic, but I can't think of another difference at this point of time. There used to be differences in, for example, instruments. Electro used 808s and 909s, but that's not necessarily the case anymore. Sometimes the only difference I find in the genre labeling between house and electro is a sawtooth bassline.
Pattern-wise, progressive house is more trance than house. It uses resources like pads (string-ensemble-like sounds), chord progressions (not very common in house), and loves synthesized melodic lines and time-based effects.
You could say that, in general, the difference between house and progressive house is in the harmonic dynamism (there is more movement, more change in what's going on musically in progressive house) and density (not only more movement, but more things going on, more voices), and effects used (delay and reverb are used not only more, but more prominently in progressive house, for example).
As usual when talking about genres and styles, there are exceptions, blends, mixtures, and labels might (and will) change (sometimes drastically) depending on context and who you ask.
Answer: Ok so let me give a try, I might be wrong so don't hesitate to comment below.
Back to the basics, electro comes from electro-funk. Now, there is always a missunderstanding, as Stephen did, between musical genres : in everyone's opinion, house, progressive house, trance, etc... are all under the same barrier : electro or techno. This is wrong. When people don't manage to identify PRECISELY the genre of a song between house, progressive, Drum n' bass or etc, they will name them EDM (Electronic Dance Music) if it's something you can dance on, or "Chill" if it is... well, chill :) .
Now back to your question. House music is known by everyone. It is something that you were used to hear almost exclusively in nightclubs, and it is derivated from disco, that's why the tempo will be +10bpm higher than in dance music in general. Drumly speaking, the specificity of house is a huge, deep, loud kick on every beat, the well known four-to-the-flour! Then it is basically a disco rythm :
Kick -------   Kick  ------    Kick   ------   Kick -------
------------- S/C --------------------S/C --------  (Snare or Clap)
CHH OHH CHH OHH CHH OHH CHH OHH    (Closed High Hat / Open High Hat)
Finally, house music is played with synthesizers most of all, BUT in house music, a lot of samples from funk, soul, gospel or even latina music are used. And THIS is the difference between house music and techno. In techno, they will exclusively use synthesizers.
To end with house music, it is now more and more confused with Electro-house, bigroom or progressive house. This is the more common thing you hear now in nightclubs. Electro-House is way more electronic than house (you don't say?) because it is a merged genre between house and minimal techno. Madeon, Deadmau5 are all a part of this genre. I don't really know the difference between Big Room and Electro-House, but if you want a more precise idea on Big Room, i'll suggest you to listen to Avicii, Swedish House Mafie, Hardwell...
Finally, Progressive House is House + Trance basically.
And to answer to Stephen, to compose an EDM song and respect the conventions is really, really hard. To really well understand this genre would mean a deep historical research, because genres evolved as society evolved.
Answer:
I am wondering what the difference is between House, Electro and
  perhaps Progressive House in precise musical terms.

To be facetious, that's like asking about the difference between a straight and winding wooden staircase in precise arboreal terms.
There may be some correlation with the kind of wood you choose for the kind of stresses some architectural design demands, but by the time you arrive at a finished product, the actual building material is rather detached from what characterizes the result.
Bach's "Toccata and Fugue d minor BWV565" has been transplanted into a host of different genres with much of the material from the original score (which would be subject to "description in precise musical terms") remaining identifiable intact.
Answer: Electro is a sub-genre of house music.  That's all it is.  Electro IS house.  At least that is what "electro" today is used for.  There are several genres called electro, actually.

Electro(funk) is a form of post-disco that developed as a competitor to hiphop.  Using optimistic themes to contrast the harsher realities that would later be discussed in hiphop, a sense of romanticism is imbued with notions of adventuring and exploring, as was commonly encountered in science fiction movies and novels.  This peaked in the 80s in New York City.
Electro/Elektro is a form of EBM, using uptempo, marching rhythms to contrast the more stomping, sideways dance that characterised EBM.  This music developed in the late 80s and saw its biggest rise in the 90s in Germany and Benelux.
Electro(bass) is a derivative of Miami Bass.  Artists in the late 1980s wanted to experiment with the electrofunk sound of New York City but using the rhythms of Florida.  This also meant using faster and harder rhythms. This music saw its peak in the 1990s.
Nu-electro is again a derivative of Electrofunk but this time it was mostly in Europe in the mid 1990s.  Artists wanted the breakbeat rhythm but with the sounds used in trance so this came about.  I-F was important as well as Anthony Rother and Carl A. Finlow.
Electroclash is a form of synthpop that drew heavily from I-F's work.  Resembling house and garage music, this music came out of New York City but eventually saw Paris, Berlin and Toronto producing many of the big names.  Synths sounds were modeled after 80s synths, especially Korg synthesizers (as opposed to Roland synthesizers which dominated the rave scene.)  This meant using simple pulse and sawtooth waveforms with various static pulse-width modulations.
Electro(house) is house music that draws its sound palette from electroclash.  This music is currently what holds the title of "electro".  It started in the early 2000s and the first big hit was Alter Ego's "Rocker".  Electro is entirely distinguished by the means of which it is synthesized.  It has several affectations that draw nods to chiptunes and other minimal-wave composition methods.

So note the lack of 808s and 909s, as opposed to what others have suggested.  Electrohouse typically is a sound that does away with the addiction to Roland synthesisers, instead of prefering the more "retro" sounds of other synthesisers.  Some electro tunes do have the thump that resembles the 909, but they are often synthesised differently.


Is there any way to remove hydraulic cement from a concrete slab without ruining the concrete?

Question: So the previous owners of my house put hydraulic cement along the edges of the wall in the garage and it looks pretty ugly.  Is there any way to remove it?  I've seen these Portland Cement dissolving sprays online, would that work?  Or would it damage the concrete slab?  Thanks
Answer: If the area sweats DO NOT remove the hydraulic cement the hydraulic cement is holding some water back removing it may create a spring in your garage, if you don't like they it looks get some 2 part epoxy paint and seal the area prior to it sweating. This has worked for me on several homes that had damp/wet floors.
Answer: Anything that dissolves concrete is pretty dubious to put on concrete that you want to preserve, it's probably just a strong acid and has no brains about what you want it to dissolve and what you want it to leave alone.
Try a wide, flat masonry chisel at a low angle. The bond between the two different bits of masonry is probably not that great. Any bits that are stubbornly stuck you can go back over with a silicon carbide grinding block unless you are one of those folks who prefers to save almost no time using a $100 electric tool (grinder) to do what a $9 hand tool will do just about as fast, and with less mess and noise.
Or, wait a year and see if you suddenly understand the "ugly" choice. People are forever moving in, undoing things they don't "get", and then finding that there was actually a reason for them. Perhaps you've been there for years, but that's not clear from your question.
Comment: Thanks for the answer!  I'll try chiseling around and see if I can pry most of it loose.  I mentioned ugliness because when it gets around springtime/wet weather, the concrete seems to condense (sweat) on the spots that have the hydraulic cement on it and make it darker (and nowhere on the regular concrete).  Is this dangerous, or is this something I should be able to live with?  This is in the garage btw so the aesthetics aren't that big a deal.
Comment: So this is just isolated spots, not a ridge all around the walls forming a gutter/canal? You may find that there are more active leaks when you remove the cement - I doubt it was put there for the purpose of causing leaks. But perhaps you can do a better job fixing them on the next round, if that proves to be the case.


How does a OBD II misfire detection monitor know "exactly" which cylinder is misfiring?

Question: I do know that magnetic pick-up coils are used to detect crankshaft position and these sensors are used to tell which cylinder is misfiring. These magnetic pick-coils do not produce a smooth & consistent sine wave when there is nothing wrong with them. Also... as far as I know this is the only sensing mechanism that OBD II uses to isolate a misfire to a particular cylinder. When I have changed a faulty magnetic pick-up sensor it was for intermittent and random cylinder misfire and I was able to fix the problem. When a particular cylinder has a repeat fault code for that same cylinder and the engine runs fine, a leak down test shown to be within factory specs, pressure test of crankcase was within factory specs, pressure testing of intake manifold shown that there was no leaks and pressure testing of cooling system proved to be within specs and from time to time as well as over the coarse of two years this same machine produces a error code for that same cylinder. There is "no" Issues as to the running performance of this engine. Just do to the fact that this machine runs fine I want to make sure that the only sensing mechanism is the crank shaft sensor that OBD II uses.
Comment: Do you think the knock sensor will detect the "firing pulse" of each cylinder? And those could be compared to other cyclic information? Engineers like to hedge their bets... unless you have access to the full code run in the ecu how do you know what is tested, checked or compared? One thing we used to say (and still do) is some "mechanics" are just fitters ie they fit what yhe computer tells them to... how many posts do we see on here where they have changed components A to Z and still not found the issue.
Answer: From this link:
The misfire detection monitor runs during normal engine operating and driving conditions and is used by the PCM to determine whether the engine is malfunctioning to the point where it is releasing excess pollutants into the atmosphere. The OBD II system detects misfires on most vehicles by monitoring variations in the speed of the crankshaft through the crankshaft position sensor.
A single misfire will cause a subtle change in the speed of the crank. The PCM tracks each misfire, adding them up and averaging them over time to determine if the rate of misfire is high enough to cause the vehicle to exceed the federal emissions limit
There is another website explaining how OBD system check the misfiring:

Underhood.com
Motor.com
From another Thread


Is it possible to show mathematical symbols in the terminal?

Question: I want to do some program that can help me to check scientific formulars via terminal. It is possible or not if i want to show mathematical symbols (e.g. integral, diff Greek's Alphabets) on Linux's terminal. And if not what is the best way to represent the mathematical symbols when you working on terminal?
Answer: To display most mathematical symbols in your terminal you need a terminal that supports Unicode and and you need a font with the glyphs for those mathematical symbols. You need this in order to interpret and display the characters correctly.
Ucs-fonts is an interesting font project that tries to cover a large range of character sets. It is an extension of the standard -misc-fixed-* font that is found on most Linux systems, and it is a bitmap font you can use in both X terminal emulators and in TTYs for displaying mathematical symbols or other things.
Here's an example:

You can use xfontsel or similar tool to inspect bitmap fonts installed in your system. The ucs-font is identical to the -misc-fixed-* font, but has the encoding ISO10646-1 in the last field.
Answer: Yes, as long as you have a Unicode compliant terminal (for example, urxvt), and a font with the desired glyphs. There is a fairly extensive list of glyphs you might desire on Wikipedia.
Comment: How about square root(with a long equation)? Can?
Comment: @terces907 Yes, Unicode contains the glyphs to do that.


WindowsIdentity.Impersonate and PostBack issue

Question: I am writing an ASP website that uses Forms security and Active Directory.
I allow the user to login using the Windows API:
[DllImport("advapi32.dll", SetLastError = true)]
public static extern bool LogonUser(string pszUsername, string pszDomain, string pszPassword, int dwLogonType, int dwLogonProvider, ref IntPtr phToken);

This gives me a Login Token Pointer which I than save in a session variable:
bool returnValue = LogonUser(txtUserName.Text, domainName, txtPassword.Text, LOGON32_LOGON_INTERACTIVE, LOGON32_PROVIDER_DEFAULT, ref TokenHandle);

    if (!returnValue)
    {
           lblErrorMessage.Text = "Incorrect Username or Password";
           lblErrorMessage.Visible = true;
            return;
    }
    Session["TokenHandle"] = TokenHandle;

Now when I get redirected back to my Default.aspx page I want to Impersonate the user that has logged in.  This way I don't have to hard code a SQL connection string user name, I can just use integrated security.  I do this on Page Load as follows:
if (Session["TokenHandle"] != null)
            {
                IntPtr tokenHandle = new IntPtr(0);
                tokenHandle = (IntPtr)Session["TokenHandle"];
                WindowsIdentity.Impersonate(tokenHandle);
            }

Here is the problem:
It all works great the first time I hit Default.aspx however as soon as I do a postback it looses the impersonation and I get an error:
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
Now I know this code should work, I have used it in other project.  I am just missing something here.
Also I am using DevExpress.Web.ASPxGridView.v9.2 component, I am not sure if it has anything to do with it.
Please help.
Answer: The issue you are going to have is the fact that the Application Pool running your website isn't trusted for Delegation therefore CANNOT Impersonate an AD user account.  In AD you need to manually allow delegation to the Domain User running the Application Pool.
Then you'll be able to impersonate the user.
Comment: I am not sure this is it.  I if I remove all teh DevExpress components and replace them with regular ASP.NET components (gridview) everything works.  Its the DevExpress that is causing it.


Robos.txt & enable-cookies in Magento

Question: From last 2 weeks a hacker / brute forces are attacking on our Magento website. First they have changed our emails, password may be for any kind of information because every time when we change passwords of server or admin panel we receive an email. Then they have changed the email (PayPal) for payments. I have searched for that on internet and i have deleted the extension (mag pleasure) because i haven't installed that extension then deleted also some strange folders. Now they unable to change the email but i think they are trying because every morning i see that somebody changes the permissions of these folders /media/css and csssecure and js. And in the history of customers i see these strange urls.
www.domainname.org/enable-cookies and www.domainname.org/robots.txt -
Anybody can give me suggestions?
Comment: I strongly suggest you a two-factor auth. https://github.com/magespecialist/MSP_TwoFactorAuthentication_M1 . But you should perform a security assestment.
Answer: You should also contact your hosting provider for help, especially if/how those file permissions can still change.
Given that you're talking about updated e-mail addresses for the server, admin panel and also PayPal, it seems they already found several ways to compromise your setup.
It sounds like your shop is still compromised so you need to bring it back to a secure state.
First steps to take may include:

Contact your hosting provider
Set up a firewall/web application firewall (together with the hosting provider)
Get a new (virtual) server, the old one might have some backdoors open
Always use SFTP and no plain FTP
Recover your new setup from a secure state from your version control for development (i hope you have that available)
Update to the lastest version (currently Magento CE 126.96.36.199) or apply all secrity patches (on the new and clean version!)
Install a 2-Factor Authentication (as also suggested in the comment)
Hire a Magento/Security specialist to help you.

Good luck!

Robos.txt & enable-cookies in Magento


Binding checkboxes to object values in AngularJs

Question: The problem is in binding the state of the checkbox (checked/unchecked) to the object values.
HTML:

     {{letter}} and {{number}}
     <input type="checkbox" ng:model="obj[letter]">

Controller:

function Ctrl() {
    this.obj = {a:true,b:true};
};

When the first checkbox is clicked it affects the state of the second checkbox, but the model is correct, so obj becomes {a:false, b:true}.
Example can be found at
http://jsfiddle.net/alexpetrov/tRxzr/
How to fix this?
Answer: Bind ng-repeat to objects rather than primitive types.
function Ctrl() {
    this.obj = [{id: 'a', checked: true}, {id: 'b', checked: true}];
}

http://jsfiddle.net/tRxzr/1/
Binding to primitive types confuses ng-repeat, it's a bug:
https://github.com/angular/angular.js/issues/933
Comment: Good news: this was fixed in September.
Answer: When the JSON is not entirely in your control, you get a primitive array instead of an object. You want to do an ng-repeat on the same.
To bind ng-repeats to checkboxes to a primitive array and get the selected items. See the plunker code here.
http://plnkr.co/edit/i6IiGY42h8CiOMaqT9SZ?p=preview


When connecting 3 switch in Spanning tree, Should I use Switch port or SFP ports?

Question: I have 3 Cisco switches. Should I use standard switch ports or SFP ports for spanning tree? What are the benefits to using the SFP ports?
Comment: Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you can post and accept your own answer.
Answer: Spanning-tree is spanning-tree no matter which ports you use.
Answer: spanning-tree is used in all ports in switch but if you use the SFP port, don't need to configure again and again if there is a fault in the sfp port u simply change the SFP module ( FIBER or COPPER).This Is the benefit u gain from SFP Port.
Comment: Another advantage,  ports with pluggable optics tend to be faster;  faster ports should be used to uplink to other switches (and thus run stp on them)
Answer: The first question has been answered, but I'd like to elaborate on the second.

What is the benefits of using SFP port?

There is no benefit to using an SFP port for spanning tree.  Spanning tree protocol runs over ethernet there is no difference (to the switch) between the ethernet of the copper 1000base-T and fibre-optic 1000base-SX (or LX) connection.
Of course, if you're doing a run that's over 100m to the next switch you'll need to use the SFP slot and make the connection over fibre but spanning tree will act the same that way as it would if the next switch is connected with a 10m cat-5e cable.
Comment: There is at least one BIG difference between copper and optics - copper link lost detect time can take up to 750 ms (optics have less time). it is important in topologies that uses STP. http://www.cisco.com/c/en/us/td/docs/solutions/Verticals/CPwE/CPwE_DIG/CPwE_chapter3.html (look on fig 3-11)
Comment: i am sorry, my comment has a mistake - fig. 3-11
Comment: @pyatka, you can edit your own comments...
Comment: @CraigConstantine, yep, i know ;-) and usually it`s work... but now the button("pencil" sign below my comment), is not clickable. may be it is somekind of timeout


Choosing what level of scrutiny to apply to enumerated rights

Question: In court decisions dealing with burdens on enumerated rights you often see a discussion, or at least a reference to a previous decision, as to what level of scrutiny to apply. Why, in the case of enumerated rights, is it not automatically strict scrutiny? If the rights were important enough to list, I would expect them to be given the highest level of scrutiny.
Answer: This is an opinion question, even if it doesn't seem like one. The life work of many professors is trying to explain the current system of review.  One theory that is fairly well accepted relates to the concept of deference to other political actors.  To understand this theory, we need to begin by recognizes that the Court is not unilaterally adjudicating political rights; it is one of many actors that all have some stake in making Constitutional decisions. The Court recognizes this, even if it also demands that it get last word on whether or not it gets last word.
In footnote four of Caroline Products the Court laid the foundation for the modern equal protection doctrine. That text embraced a constitutional scheme whereby rights are given judicial protection primarily if they are unlikely to be given political protection by the other branches of government.  Under this scheme, we care about groups that are politically weak or political distant from those with power. This equal protection jurisprudence is an example of deferential thinking; we trust the political branches generally unless there is reason to doubt the effectiveness of the political process.
The deferential thinking approach to constitutional law holds that we do the same for many other area of Constitutional law. A given enumerated right is only Scrutinized strictly by the courts if the courts don't trust the other political actors (States, Legislature and Executive), to adequately protect that right.
As I said, that is a theory. Not everyone agrees that this is what is going on or that this is what should be going on.  Moreover, many enumerated rights are protected under a very strict level of review. Strict review and "strict scrutiny" are similar ideas, with the latter being a term of art and the former being a reasonable description of how much attention courts will pay to protecting a given right.
Comment: I feel that almost every legal question, unless asking about a specific statute or case is an opinion question because of judicial interpretation.
Comment: I suppose that is true to an extent.  But this a slightly different sort of opinion question. Many areas have competing schools of thought, but there are relatively few areas where everyone AGREES that there is no clear answer.
Answer: Tiered scrutiny has always garnered some level of....well scrutiny....and in some ways has been controversial. A big reason this occurs is to strike a balance between the federal gov't and states' rights and individual rights. Tiers of scrutiny allow the Court to distinguish between strongly and less strongly (and, frankly, weakly) protected rights. It also allows for differentiation between protected and unprotected classes. These categories are a matter of judicial construction throughout the ever changing make-up of the Supreme Courts.
Some members of the current Supreme Court have pushed against precedent in applying long held "tiered tests" to determine the type of scrutiny to apply; and have balked at having to fit a case into formal "tiers," each with its own special "test" (rational basis review, intermediate scrutiny, strict scrutiny, etc).
I was just reading somewhere that Thurgood Marshall wanted to replace the Court's use of tiers with a balancing approach that could be adjusted on a case by case basis. On the current Supreme Court,  Kennedy has long spoken out against tiers, and instead applies his own version of a reasonableness test (see Romer v. Evans, Lawrence v. Texas, and others). Much of the Court finds Kennedy's approach contrary to precedent and frankly unorthodox, although it may be a better approach.
Different kinds of scrutiny for different kinds of rights has been the rule because, for example, your right to property is not the same as your right to speech. You can see how the government's interest in serving the best interest of the masses may override your property rights (10th amendment), but speech or civil rights are of a different ilk.
But if you read the same-sex marriage case, Obergefell v. Hodges, the Court was more Kennedy-esque, moving somehow away from formal tiers and towards more of a "reasonableness" standard. In most cases, however, the tiers will remain because there is a difference in certain types of rights: wealth and things are never going to be as unalienable as when we are talking about the the civil rights of the people.

It bears remembering when and why tiers of judicial scrutiny came into
  being in the first place. The Supreme Court constructed these tiers
  not to constrain the protection of individual rights, but to guard
  against the unjustified interference with the political process.
  Removing the tiers removes the guard. (Building the Tiers of Judicial
  Review, Kurt T. Lash.)


What happens if someone fails to not sleep for three days as punshment for a sin after making an oath?

Question: Suppose someone makes a promise to Allah (swt) not to sleep for 3 days as a punishment for a sin and ask Allah (swt) not to forgive him if he break it.  While he tried not to sleep, he could not control it, what is the penalty, or can Allah (swt) still forgive the person?
Answer: That's very weird!
But I think this promise is not allowed and does not include any punishment.
Because human beings are not allowed to hurt themselves. It's analogous to promising Allah to cut your legs! Is it possible that Allah accepts that and wants you to cut your legs or consider any punishment for you?


Why does Jobs save my cover letter between applications, but not my preferred skills in search?

Question: This seems completely backwards - I want to craft a unique cover letter for each application, but I'd like to be able to run the same search day after day!
Answer: Thank you for your feedback.
Explicitly saving searches in the Jobs user interface is on our radar, but it's not the very next project on our list.  So, I'll be marking this one status-deferred.  In the meantime, two options that might help you:

The "Recent Searches" sidebar should show the last four searches you have run.  Of course, if you use more than four searches on a daily basis, this feature is less useful.  Also, we are aware that Recent Searches might save unwanted searches, another issue that's on our radar.
You can create a Job Alert and have your search results sent to you by email.  Once you have performed the search you want, click the "Create Alert" button as shown and follow the prompts.

Thanks again for your feedback, as it helps us know what to prioritize.
Comment: Thanks; that helps! Any news on the cover letters?
Comment: @ekolis Applicants who change their cover letters for each job application are in the minority, and about one-fourth of applicants never change their cover letters when applying to multiple jobs.  We used to avoid re-populating the cover letter on subsequent applications, but we changed that decision in part due to the data I just cited.  Perhaps we can look at a better user experience than requiring deleting the entire cover letter manually for users who wish to craft unique cover letters, but it's probably further away than a saved-searches feature.


Can I make potato dauphinoise/potato gratin/gratin dauphinoise without cream and just milk?

Question: Tonight I'm going to make potato dauphinoise but I don't have any cream - at all - and all the recipes call for it!  I should also note I have no creme fraiche or fromage frais or plain yoghurt e.t.c just milk and cheese (cheddar, unfortunately no gruyere or ementhal). Can I make it without cream or should I make a bechamel instead?
Answer: At first I thought there wouldn't be enough moisture in a potato/bechamel combination to cook the potatoes, but a little searching on Google reveals a few recipes with non-parboiled potatoes and bechamel sauce - so go for it.
Example:
Bechamel Potatoes
Comment: I don't think I'll do the whole 'bechamel' thing for pure laziness and just use milk... but thanks for the effort anyway I really appreciate it!
Comment: I do gratin potatoes this way all the time. Make a béchamel sauce, add grated cheese, add more milk so it's runnier than if you were using it for a typical cheese sauce, fill a baking dish with thinly sliced raw potatoes, pour the sauce over, tap the dish on the counter to help the sauce settle, and bake. Fantastic!
Answer: If you are not making this for the Queen, then you can use milk. Because it is an open gratin dish, the excess liquid should bubble away.  You may want to add a little extra butter for richness.
Or if you have evaporated milk available, that will be a little closer to the original, although still not the same.
The problem of making it with a bechamel is that the liquid is tied up with the flour and is not as available to cook into the potatoes.  That said, many potato au gratin recipes are made with milk and flour, which is very similar to what you are trying to do with this.
No matter what you do, it will not be the same dish, but should be nearly as tasty, if not as rich, as the original.
Comment: I'm probably going to do what you said: normal recipe but milk and a few tbsp extra butter. instead of cream. Thanks, that really helps!
Answer: OK, so I'm a couple of years too late but: What you want is "Boulangère Potatoes".

Potatoes sliced thin
Onion sliced thin
Fresh herbs (Sage, Thyme, Flat-leaf parsley or similar). Chopped fine.
A little butter for the top
Stock (chicken or vegetable).

Layers of potatoes followed by a small amount of onion and some fresh herbs + salt/pepper. Repeat. Dot the last layet with butter. Pour on stock to just almost but not quite reach the top layer of potatoes.
Bake for 1h to 1h30 in a medium-hot oven. Increase the heat at the end if you want it even more crispy.
I have one in the oven right now!


How fast should I expect to render the silhouette of a 20k triangle model?

Question: Using VTK 7.0 I have found that rendering a 20k triangle STL model takes approximately 17ms on my Nvidia GTX970. However, I am only interested in the silhouette of this model (like the image below) and was wondering if: a) such speeds are reasonable for this model size, and b) since I am not really interested in a full render, is there a much faster way to compute just that silhouette? I considered a ray tracing approach where I just compute whether or not each pixel hits the model, but since I am only interested in speed I do not know if this is a good route to pursue. As a side note, these questions need not be specific to VTK - I am really just conerned with the fastest way to utilize a GPU to compute a silhouette (suggestions algorithms, theory, or libraries are all all welcome!) and what reasonable times I can expect for such model sizes.
Comment: 17 milliseconds sounds more like the synchronisation to screen refresh rate than a actual rendering speed since that would be 1/60 (or well 16.666ms) of a second. So most likely your render is faster than that is just that displaying is restricted to one cycle. You can disable screen sync or render to a offscreen buffer for a more representative rendertime.
Comment: sounds indeed like a vsync, turn it off and try again or render it several times to see when you get any slowdown.
Answer: OpenGL (scanline rendering) is always going to be way faster than ray tracing.
Ray tracing computes pixels one by one using physics (at least a good 90% of the time it's going to be real physics). Although some of it can now be done with a GPU, it is not really helping as much as one would expect. Calculating speculative lightning is not something you can easily do in parallel (ray 1 will bounce from object A to object B, ray 2 will bounce from object A to object C... you can't parallelize the computations on B and C.) The GPU helps with the matrix math, though.
In comparison, OpenGL is a total fake in comparison. It renders triangles really fast with shades coming from textures and fast gradient computations from your various light sources.
Comment: You can raytrace a silhouette without any kind of shading. No need to involve physics. Also, scanline rendering is not always faster. The algorithmic complexity is different so there are cases where a raytracer will win.


Does items/modules breaks or malfunction in KSP?

Question: I've played for more than 100 hours, nothing stop working so far, but does it happen?
Answer: The answer is no and yes. No, parts don't break randomly, unless you install a mod. Yes, parts randomly break if you drive/fly recklessly.
I'll start with NO because that's easier:
Parts don't randomly fail in the same that Elon Musk's rockets do. There is a mod called Dang it! that can be used to simulate what I call "SpaceX mode" that will cause ...

...parts on your ship to fail randomly, and you will need to repair them before you can use them again. Be careful... some failures might be relatively harmless, but others might seriously ruin your day. The more you use a part, the less reliable it will become: so don't be too throttle happy with those mainsails!

But unless you have that mod, parts won't randomly fail.

Now for YES part:
Sometimes, moving parts can move into other parts (it's called "clipping") and it can destroy parts - especially solar panels and landing legs. I've had this happen to me on my current mission, I have solar panels that are stored in a service module... something went wrong and now the panels won't extend.

Also hard impacts and high speed can break parts - especially wheels. But if you've been playing for 100 hours, you know that.
Answer: Yes it happens.  Sometimes more than others.  KSP has never been 100% stable.
Comment: I read the question as asking about *deliberate* equipment malfunctions, to model the occasional unreliability of real rockets and spacecraft. (AFAIK, nothing like that is included in stock KSP, although I'm sure there's a mod for it somewhere...)
Answer: No, in terms of game simulating random rocket hardware failure.
Everything works perfectly in stock KSP. Though if you're looking for some, there's a mod called Dang it!


Whom am I buying bitcoin futures from?

Question: Since Bitcoin futures are a thing since this week I took a closer look at futures and could not find out who I am buying these from. Since this future is "virtual" there is now "farmer" who I am giving my money and get a product back after the contract expires. Who takes over this role?
Considering that in this future there are limited resources how does the seller select a price?
Comment: You might want a buying future, but another person might want a selling future. The exchange matching these orders together, takes a fee, then waits for the contracts to end.
Answer: Chak is not entirely correct. The exchange is the matching engine, but there will be someone else on the other side of the trade. The exchange does not have its own position in futures.
That said, legally each party to the future has the exchange as the counterparty (i.e. there are two separate contracts). This all but eliminates counterparty risk. Compare this with a forward, which is effectively a future struck direct between two parties, with no exchange.
Most exchanges have what are called market makers, which in return for being spared some or all exchange fees, commit to providing a buy and sell price for all (or a high proportion) of the time the exchange is running. So most people in practice are trading with a market maker who is bearing the risk of being on the wrong end of the trade. But you could be trading with anyone, either an individual or an institution who wants the opposite exposure to you.
Update As Max Vernon says, the Bitcoin futures on CBOE are cash-settled, not physically-settled. Physically-settled would be a poor choice for Bitcoin, because there could end up a situation where not all futures can be settled given the liquidity available. And as the price rocketed as (some) futures sellers had to buy bitcoin, everyone else would hang on to it.
Comment: To which you might add that settling a BTC Futures Contract thought CBOE is completely settled in cash; that is no actual bitcoin ever changes hands.   See http://cfe.cboe.com/cfe-products/xbt-cboe-bitcoin-futures/contract-specifications for full details.
Answer: You buy from a seller. Technically you are entering into a contract to buy at a specified future time at a specified price. The exchange is an intermediary which facilities the transaction and acts to secure both parties as to the settlement in the future (a "settling up" in everyday language). In effect, you are making a bet with the seller as to the price at a future date. Even with traditional physical products, very few futures contracts are settled by physical delivery, so it's easy to have entirely-virtual products such as cryptocurrencies. I haven't looked specifically at the details of bitcoin futures, but in general futures settlement may, depending on the exchange and commodity, allow settlement either by delivery by the seller, or entirely in cash. If an exchange allowed bitcoin settlement by delivery, well, that's easy enough for the seller.
Note that even in traditional commodities, the majority of futures sellers are not producers or warehousers of the commodity, but speculators
Answer: Bitcoin futures are issued by the exchange itself. So you are betting against the exchange. Futures are like a contract between you and the exchange.
When the contract expires, you as the buyer is obligated to buy bitcoin at a predetermined price and the seller(exchange) is obligated to sell bitcoin to that predetermined price.

Whom am I buying bitcoin futures from?


How come none of the VIX ETFs track the index exactly?

Question: For example the VXX ETF (https://finance.yahoo.com/quote/VXX) does not track the index exactly (https://finance.yahoo.com/quote/%5EVIX/)
Answer: The VIX is an index that is computed from the prices of assets (options) and the time (days to expiration), and is not itself the price of any asset or portfolio of assets. Thus, the VIX is not investable and no ETF can track it.
This is also reflected in the mean-reverting tendency of the VIX, which can only be sustained because it is not investable. The VIX rarely goes below 10, so everyone would want to buy it below 10 and await the inevitable bounce.
Instead, only futures and options on the VIX trade, and they discount the foreseeable part of the move. So at best, an ETF (holding those futures and options) can capture the unforeseeable short-term fluctuations (stochastic component), but will systematically diverge from the VIX.
A similar example is a short-term interest rate like the federal funds rate. It can often have very predictable trends (when the Fed is on a hiking or easing trajectory), but the investable futures discount these trends.


Intermittent Network Share Speeds

Question: I have a 2008 Server box that is running file sharing between 2 Apple G5's.  When I try to upload a file say one that is 500 MB.  The upload will start, immediately jump to about 60 megs, slows down on the transfer down to 0 for a few seconds, then picks back up to full transfer rate, then repeats the cycle for the rest of the transfer.  Any ideas on what is wrong here?
Answer: Chances are good that the G5's and Server 2008's TCP stacks aren't able to stabilize the connection. This typically a tcp-windowing fault of some kind. Microsoft rewrote the Windows TCP/IP stack with Server 2008, and that has caused various issues with older TCP/IP stacks, such as with your G5's and whatever OSX version they're running. Laying blame is tricky here since there are many ways to build a TCP/IP stack.
You may be able to tell the Windows IP stack to behave differently enough that transfers are speedy. Unfortunately, I don't the exact magic sauce that'll make it work for 10.4 or 10.5.

Intermittent Network Share Speeds


I lost my weapon... what do I do?

Question: While playing Realm of the Mad God, I lost my weapon randomly and I can't get a new one. I tried looting bags I found but none of them were for wizard class.
Comment: If you have anything on you, trading would be a good option.
Answer: Wander around the low level areas and look in bags. People leave low level weapons around all the time, just may take a bit to find one for your class.
You can probably still kill things with your spells, assuming you didn't toss out your spellbook as well. Assuming you have a decent spell, you can probably kill things of a decent level to try and get a better staff than you might find on the newbie coasts, but again with the randomization it could take a little while.
Answer: That's kind of how this game works. You are going to lose a lot more than just your weapon, pretty often. My advice would to just be loot everything you can that relates to you (even duplicates) and store them in the back at the nexus. So you have it again for repeated runs.
to answer your question there is no way to get your default weapon back without starting a new character... Or a kind soul gives you a weapon.

I lost my weapon... what do I do?


Adi Shankaracharya's biography

Question: What are good Hindi /English or Telugu translation of Adi Shankaracharya's biography, Shankara Vijayam.
Answer: The well accepted and most authentic biography of Adi Shankracharya is "Shankara Digvijaya" by Vidyaranya Madhavacharya who was 12th Jagadguru of Sringeri Sharada Peetha.

Biography of Adi Shankaracharya based on Madhaviya Shankra Digvijaya is available for reading online in five parts from Sringeri Sharada Peetha official website: Madhaviya Shankara Digvijayam
The Biography of Sri Adi Shankaracharya
Original Sanskrit work is available from Interner Archive: Shankara Digvijaya by Madhavacharya (Vidyaranya Swami) Satika [Sanskrit].

English translation of Shankara Dig Vijaya is published by Sri RamaKrishna Math Chennai, available in pdf from estudantedavedanta.net:

Adi Shankaracharya's biography


Can not focus Nikon 500mm F/5 lens with adapter on Sony A7Riii

Question: I have a vintage circa 1970 Nikon Nikkor 500mm F/5 Reflex lens that will not focus at infinity with any of the Nik-NEX adapters I have to connect this lens to my Sony A7RIII. The lens works great on a Nikon 7000 camera. The obvious problem as I see it is the adapter is just a tiny bit too long. I am an amateur astronomer and my primary use for it at this time is astrophotography and my stars are not perfect in focus with the adapter and the Sony camera. Any suggestions?
Comment: Are you sure it is an issue with infinity focus rather than an issue with lens resolving power? The D7000 is 16.2 MP. The α7rIII is 42.4 MP. Blur that looks decently sharp on a 16MP sensor may look blurrier on a 42 MP sensor.
Comment: Sample photos from both cameras demonstrating the problem, as well as photos of the lens front and mount, would be helpful.
Comment: Are you absolutely sure that the mass produced, used by many, would have junk reviews if it was too long because that would screw up a lot of lenses, adapter is the problem here? I mean, it could very well be...but do you have some actual measurements that can aid that investigation?
Answer: This from the mir.com website, I'm not sure if it's relevant but worth mentioning because of the higher resolution sensor in the a7r III:
A filter must always be in position at the rear of the lens,when the lens is mounted on the camera and ready to be used. Five filters, neutral density, UV, Yellow, Orange and Red, are supplied with the lens. These filters are specially designed to eliminate focus shift, when used interchangeably. When no correction is desired, the UV filter should be in position. L39 and ND filters can be used also for color photography; the others supplied, however are recommended and used exclusively for black-and-white photography.
Nikkor 500mm f5 Reflex
Answer: Adapters of this kind being too long is an exception - instead, they often are intentionally a bit short to allow dealing with lenses with slightly miscalibrated infinity stops.
If you think a shorter adapter will help, get a couple of cheap adapters, one of them is likely to be short ... or a "universal" adapter (like https://www.amazon.de/Universal-Adapter-Objektiv-Konica-Olympus-Polyester/dp/B019BBR7I6) which can be tuned to a random flange distance.
Answer: The infinity stop on most lenses is adjustable... often by removing a couple screws and repositioning the fixed distance scale for MF lenses.
IDK the specifics for that lens, it would require some research or take it to a skilled repair person.


Installing Xcode command line tools error: The package "DeveloperToolsCLI.pkg" is untrusted

Question: When I try to install the Xcode Command Line Tools I get the error message: "The package "DeveloperToolsCLI.pkg" is untrusted." I can't seem to find the answer to this problem anywhere, how do you fix this?
Comment: Where did you get the package from?
Comment: Does http://apple.stackexchange.com/questions/44135/command-line-tools-fail-to-install-osx-lion-10-7-3-xcode-4-3 help?
Comment: I installed the package from Xcode>Preferences>Downloads
Answer: Probably the certificate is outdated. To circumvent this the following procedure should work:

Open "System Preferences"
Hit "Security & Privacy"
Hit the tab "General"
Click the lock and enter your admin password
at "Allow applications from anywhere" mark the radio button "Anywhere"
then click the button "Allow from anywhere"

or like indicated in the screenshot above control-click individual apps/installer-apps and select "Open". This probably doesn't work for the DeveloperToolsCLI.pkg but for other apps.
Comment: I had already done exactly this a while back and somehow OS X set it back to "Mac App Store" without my consent.  Also, this didn't work.  Downloading and installing from link below in @Damian Nikodem's answer worked.
Answer: Funnily Enough I had the exact same issue as you did about 10 minutes ago and stumbled across here via google.
I still had issues after relaxing the code signing checks on OSX also.
I logged into https://developer.apple.com/downloads and downloaded the CLI package from there (then installed them directly. )
Answer: I fixed this by changing the date, klanomath's answer didn't work for me.
Seems like the problem is trusting the certs, so being Sept 2015, I started to download the tools and only after the download had started changed the date to Sept 2013 in the Date & Time dialog of the System Preferences.
You cannot change the date before the download starts, otherwise it will say the source is not trusted.
Comment: Bahahaha this is genius. Also, it's funny how they autoupdate tools, but not certificates. Defeats the whole purpose of the autoupdating

Installing Xcode command line tools error: The package “DeveloperToolsCLI.pkg” is untrusted


Does my MacBook Pro 3.5mm audio jack accept microphone input?

Question: How do I find out whether the 3.5mm audio jack on the side of my MacBook Pro (2.9 GHz Dual-Core Intel Core i5, early 2015) allows audio input from a headset microphone.  (I need a headset for Zoom).
Answer: All PowerBook and MacBook models support TRRS style audio input. Check with the vendor of your headset if you want to use any buttons or volume control if you have questions. Apple branded headphones work well, as do many third party options.
Comment: I agree with @bmike to check with the vendor that your MacBook model is supported before you buy and not simply look for a TRRS connector.  There's two common standards for wiring a TRRS plug, and a half dozen less common standards:  https://en.wikipedia.org/wiki/Phone_connector_(audio)#TRRS_standards  I would suggest considering a USB headset.  USB headsets are widely supported on Apple and Android phones, Windows, Linux, and Mac computers, and many other consumer electronics.  Alternatively consider getting Apple's USB-C to TRRS adapter to allow this headset use on things besides a MacBook.
Answer: Yes, it does support a combination of headphones and mic input on that jack (limited to Apple's spec) as indicated by the specs here:
https://support.apple.com/kb/sp719
Comment: The answer would be more accurate if it noted that while microphone input is accepted, such input is apparently limited to Apple's specification. The actual language on the Apple page cited is _Support for Apple iPhone headset with remote and microphone_.
Comment: Very good. Upvoted.
Comment: And I just discovered that the Apple spec works with any TRRS-type (3-ring) microphone plug. See this: https://apple.stackexchange.com/questions/55851/macbook-pro-audio-input-not-working-with-microphone?rq=1
Answer: In answering the more general question on headsets that will work on your MacBook Pro with Zoom I suggest considering Bluetooth and USB headsets in addition to headsets that connect by a TRRS 1/8" phone jack.
USB and Bluetooth headsets will be "future proof" since the TRRS phone jack is disappearing from new hardware.  Another "future proof" option is Apple's USB-C adapter to go with any headset that uses the TRRS 1/8" phone jack.
https://www.apple.com/shop/product/MU7E2AM/A/usb-c-to-35-mm-headphone-jack-adapter
Apple produced this USB-C adapter for their iPad Pro but it works on many other devices, including those not made by Apple.
I don't want to talk you out of a headset with a 1/8" phone jack.  I just want you to know that if you can't find a headset with a phone jack that fits your needs then there's USB and Bluetooth headsets as options.
Comment: Thanks that's a very helpful point.  I suppose I'll be paying more to get the same phone jack quality audio with USB or bluetooth...?
Comment: @Dan I have seen computers, not from Apple (yet, in my recollection), that put bothersome noise on an analog 1/8" headset output.  The noise appeared to come from a mouse or drive as the noise will come and go with mouse movement or drive access.  Using USB or Bluetooth isolated the headset from this noise.  The DAC, ADC, and amplifiers used in a USB and Bluetooth headset will be likely identical to that used in a computer.  Barring some shielding problem from an internal component like I found in a handful of instances there will be no difference in audio quality by using the 1/8" jack.
Comment: @Dan Getting a TRRS headset may or may not be cheaper than a USB or Bluetooth headset.  There's all kinds of parts that make up a headset, and the connection to the computer will be but a small part of it, and may come to nothing noticeable in price by the consumer because of things like economy of scale.  Don't assume TRRS headsets will be cheaper, or offer better audio quality.  Consider long term costs as well.  One headset that works on two devices is cheaper than two headsets for two devices.  You have only one head (I assume) and may have only a MacBook now, but may have an iPad later.


Will my turtle eat the goldfish in my pond?

Question: We have a pond in my backyard, where we have close to 50-60 medium-size goldfish. The goldfish have grown quite a bit since they've been in the pond, the youngest being about 3 inches, the oldest 4 inches. Since a turtle wouldn't be able to fit the goldfish in their mouth, would my goldfish be safe from the turtle if I placed it in our pond?
Answer: I would say that the goldfish would not be safe depending on how big the turtle is. I used to have a turtle, and every once in a while we would get some goldfish to feed him as a treat. He would usually swim around and try to nip at them. He literally would go and eat them bit by bit. It was pretty messed up. but it took him about half an hour to finish 4 or 5 medium sized goldfish.
Now, your goldfish sound a lot bigger than the bait fish I was feeding my turtle. I am not sure what type of turtle you have, but it doesn't seem like much of a stretch to say that he could easily start nipping on fins and eventually start making kills.
One thing to keep in mind is, if you are thinking of keeping a smaller turtle, like the kind that are the size of someones fist, he might be scared off by the large swarm of goldfish. Goldfish in my experience tend to swim more a less in groups. He may be overwhelmed and just leave the fish alone.


Does EV SSL certificate makes any difference while used instead of self signed ssl in case of API for android app?

Question: I understand that self signed ssl is risky incase of dns spoofing since the attacker may generate a self signed ssl himself and place it in his ip address and it will trigger a warning in the client browser.But what makes the EV SSL different from self signed ssl in case of dns spoofing?I am going to make traffic to that self signed ssl site only from my android client app, do i have make those checks myself (those checks which browser does upon getting ssl certificate)?
Answer: If you are particularly paranoid about someone spoofing dns and a certificate (self-signed, EV or otherwise), then you can statically trust the self-signed certificate by e.g. checking the fingerprint or subjectKeyId (SKI). When you initiate the connection, check the presented certificate against the known-good fingerprint/hash before proceeding.
This does have the downside that revoking a certificate requires an update to your app, something PKI is designed to avoid to a large extent.
Note that the EV attribute is not a technical difference, but a policy one. It is a promise from the CA that they've verified the identity of the company they issued the certificate to instead of just the domain name. You can only trust an EV certificate more than a regular certificate of you trust the CA who is making that statement. YMMV
Answer: Generally speaking there are three types of certificates:
Self signed certificates:
These are certificates that are often generated by an internal certificate authority (CA) where the root certificate is injected in all clients. This way when visiting an internal web application over TLS, no certificate warnings are displayed to the end user.
Signed certificates:
These are certificates that are signed by public or internet facing certificate authorities (CA). The root certificates of these CA's come with the web browser.
EV signed certificates:
An EV certificate is the same as described in the section signed certificates however, by obtaining such certificate the issuer is required to retrieve a lot more information regarding the company requesting this certificate.
Extra checks are in place before the EV certificate is handed out.

Does EV SSL certificate makes any difference while used instead of self signed SSL in case of API for android app?

Yes, it does make a difference and self signed certificates should not be used in production environments.
The difference is that with a self signed certificate, users are presented with a warning. In case of a man in the middle attack, the certificate is not valid and a user will also be presented with a warning.
Users that are taught to always accept these warnings are prone to man in the middle attacks.
When using a valid certificate, users are not displayed with certificate warnings. When a man in the middle attack takes place, the users will see a warning which should indicate something is wrong.
Nowadays there is no valid reason to use self signed certificates. Free certificates can be obtained quite easily. The use of an EV certificate would be overkill in my opinion.
Comment: what if in case of android app? My http client makes the call to my api, should i stop and show the error message to the user if the ssl is self signed?
Comment: SSL pinning should prevent man in the middle attacks.
Comment: what to use in this case, self signed ssl pinning or ev ssl pinning?
Comment: Have a look at let's encrypt - they provide free TLS certificates. Non-EV, which is not required.
Comment: what difference would it take if i make self signed ssl  pinning vs domain validated ssl pinning?  i am curious to know what security vulnerability might occur when i do self signed ssl pinning
Answer: For the purposes of securing an API for an Android app a self-signed certificate is fine. If you pin multiple certificates (or even your own CA), and use only one, you can even revoke them without an update to your app.
This is one of very few cases where self-signed, DV or EV makes no difference. Do make sure that you use at least DV on all websites associated with your app, and the API's associated with those websites, as otherwise users would be presented with a warning.


Changing Luma Panel Header CSS

Question: I am attempting to change the background color of the panel header in Luma. I want the entire header area (everything above the navigation bar) to be black. I found this similar question, which helped, but did not fix the entire issue. I included it below for reference.
I still have a huge white area that I want to be black and I can't figure out which element I need to add a style tag for. I inspected the elements and found and changed the page-wrapper, panel wrapper, and panel header to set them black. None of those items seem to be the white area. I can't figure out what the element is called or how to fix it. I'm editing this in the ADMIN > CONTENT > Design > CONFIGURATION area.
Magento 2 page-header background color
A picture of what I'm trying to change (the white and gray parts):

Any advice would be super helpful. I'm a beginner and I'm just trying to get the hang of it. I'm mainly wondering if I am completely missing the element name or if there's something else I need to change.
Here is a link to the store:
http://ec2-52-14-7-55.us-east-2.compute.amazonaws.com/
This is what I currently have in the configuration area:
<code><style type="text/css">@media (min-width: 768px), print {

.page-header {
   background-color: black
}
.panel-header {
   background-color: black
}
</style>
</code>
Answer: In order to change the color of that header use the following code:
<code>.panel.header{
 background-color: #000;
 }
</code>

Changing Luma Panel Header CSS


How to deal with masked shortened-urls?

Question: Easter eggs in Ubuntu vs. Easter eggs in Ubuntu – Spot the difference!
The second one has a shortened url; I find this downright rude.
What are your views on the usage of masked shortened-urls?
Is it wrong to edit such content and replace the shortened url with the original one?
Comment: I see you have a shortened URL in your question. Please note that as of now, we have [decided](http://meta.askubuntu.com/questions/881/how-to-deal-with-masked-shortened-urls) that those are unwelcome here. Edit your question an replace it with the full URL, so that people know where they are going. Thank you :) ... ... ... :P
Comment: @LFC_fan as I explain, shortening services add another point of failure to the system and offer no benefit to us in return. Consider them highly dangerous. Shoot on sight.
Comment: I don't understand why they're "markdown-masked". They're just masked. Unless you're getting something that I'm missing, Markdown has nothing to do with the issue.
Comment: @Oli: My bad: not my area of expertise! :) I've edited the question.
Comment: If the link title is descriptive enough, does it even matter what URL (shortened or otherwise) you are using?
Answer: Shortened URLs only have a very niche area of positive effect: communicating a long URL over a transmission where it would be costly to do it unencrypted (eg SMS).
We're on the web, we have no need for them. They hinder transparency and add more potential faults to the system (What if the shortener used goes out of business and is bought by a spammer? or just dies? The link fails.)
If you see one, comment on the post to let the poster know your incandescent rage (but be polite) and if you can, expand the link.
But yes, we should formally declare war on shortened URLs.

How to deal with masked shortened-urls?


Arsonist vs Hedge Tavern in Rivals for Catan

Question: When using the arsonist against the Hedge Tavern, where does the Hedge Tavern card go?  Does it go to the bottom of an "Era of Turmoil" stack or does it go back to its original starting position face up?
Answer: I think they key phrases to consider here are:

Choose 1 of your opponent's buildings adjacent to a settlement/city. He must place it under a draw stack of his choice

--From the instructions on the Arsonist action card.
and

In each Theme Set, there are expansion cards that must be accessible to both players. Separate these cards and place them as a face-up expansion card stack next to the draw stacks. These cards are never part of your hand.

--From page 14 of the rule booklet.
Two of these could point to an exception - the arsonist sends a building to a draw stack - and the face up expansion card stack is next to the draw stacks - implying that this stack is perhaps not defined as a draw stack itself; also most cards explicitly state that a destroyed or discarded card is placed under a matching draw stack, where the Arsonist simply says one of his choice.
If we look at the rules explaining how the Fraternal Feud event card is resolved, we see:

... you either place them both at the bottom of the same stack or at the bottom of 2 different stacks. All your opponent knows is under which draw stack(s) you placed the cards.

--From page 20 of the rule booklet.
There can be a tactical advantage to deciding which draw stack a discarded card goes under, even in the basic version of the game where there are no expansion card or theme set draw stacks to choose: a small stack may allow a player to get that card again soon (or if there's an empty stack, the player who's turn it is may be able to return the card to their hand at the end of their turn) and a large stack will guarantee that the discarded card remains out of play for a longer period of time.
The Arsonist gives the choice of the stack to the victim. This limits the power of the card by not allowing the active player to effectively "steal" a card from her opponent's principality and add it to their hand. Or at least, not without some cooperation, or exceptionally few cards remaining in the stacks.
Of course, the Hedge Tavern is one of the face-up expansion cards, and as such it "must be accessible to both players." This is further ensured by limiting principalities to only having one at a time - so the other would be accessible to the other player.
Also, whenever there are possible implicit inconsistencies in a rule set, the best practice is to rule in favour of the mandated rule, rather than the implied one. Of the phrases highlighted above, only "never part of your hand" is mandated by its wording. If the Hedge Tavern were placed under one of the theme set draw stacks, this would enable it to appear in a player's hand later in the game.
It seems clear that:

The game designers did not intend the Hedge Tavern to end up in a player's hand.
The game designers intended the Hedge Tavern to always be available to both players when playing it's Theme Set - never permanently destroyed as an option, nor held hostage by the other player.

Ergo: There's not a lot of room on that bottom line on the card. Most likely they left out the word "matching" as it wouldn't fit and seemed somewhat redundant by the time you're playing the second theme. If the Arsonist is played, and the Hedge Tavern is destroyed, it returns to the face-up Expansion Card stack.
Answer: I would play as per the wording on the Arsonist card.  Just because the Hedge Tavern has an unusual starting placement, in a face-up stack, doesn't mean it should be exempted from subsequent effects.
Given that there is an stack available with the same back as the Hedge Tavern, I see no reason why you shouldn't follow the course of action prescribed by the Arsonist card, and put the Hedge Tavern to the bottom of such a stack of the opponent's choice.
Comment: Thank you.  But the rules on page 14 state that the cards must be accessible to both players and that the cards can never be part of your hand.  If I place the cards in a "draw stack" vs. back to its face up expansion stack, then eventually the card will end up in my hand.  If I take the wording on the arsonist card literally, only cards that can be placed in the draw stack (not the expansion stack) can be affected.  Since the Hedge Tavern cannot be placed in the draw stack, does this mean that the Hedge Tavern, Merchant Guild, and University can never be burned?
Comment: http://kbp.wikidot.com/kb-rivals-turmoil-strategy-guide is an example of a page that suggests the Arsonist should be used to take out the Hedge Tavern where possible; this person seems to know his stuff so I don't think the Hedge Tavern can be immune.  Trying to get up the Rivals PDF again so I can take a look at P14...
Comment: @thesunneversets I agree the Hedge Tavern isn't immune, but I don't think it should go back into a draw stack face down. If it did, the opponent who still has a Hedge Tavern could draw the second one into their hand and simply hold onto it for the rest of the game, locking out the other player from ever building it again, thereby making many of the theme cards utterly useless to them. This would certainly be a winning strategy, but it's not mentioned on the page you linked.


Did Rogue One use screen wipes?

Question: Screen wipes are prevalent in all the other Star Wars films, but were they used in Rogue One?
Comment: No. That's why all the screens are dirty.
Comment: I vaguely remember seeing a circular wipe as the credits came in, which I think I noticed in part because I didn't remember seeing any others.
Comment: @alexwlchan - You're right. I've added it to my answer below.
Answer: There is a single iris wipe at the end of the film as we move into the credits, however (see below) this isn't true for the rest of the film.

Rogue One doesn't use any of the trademark "Star Wars Wipes" that you see in the other Star Wars films. It tends to make extensive use of audio J-Cuts to introduce minor scene transitions and visual Match-cuts to introduce major scene transitions in place of where the 'wipes' would usually go.
The yellow light on Jyn's face matches the colour and shape of the Rogue One logo

The circular window in Saw Garrerra's apartment matching the shape of the planet

The triangle formed by Tarkin's head and body matches the shape of the pyramid on Yavin

The blue lighting on Mon Mothma's face matches the blue of hyperspace

The interior lighting on Jyn's face matches the black/red of Mustafar

This was a highly conscious choice by the film's director and producer to put a unique "stamp" onto the film as being separate and distinct from the main continuity films.

Producer Kathleen Kennedy was very supportive of Edwards' desire to
experiment and to give the film its own unique personality: "The Star
Wars saga films have a responsibility to maintain a continuity of tone
and stylistic device. Things like the crawl at the beginning, and the
wipes. But with the standalone films we're relaxing some of those
rules so that we can try stylistic and tonal experiments that depart a
bit from what we've seen and are exciting."
Director Gareth Edwards puts own stamp to Star Wars with "Rogue One"
Comment: "Tarkin's head matching the shape of the pyramid on Yavin" - uh ... that requires a *lot* of fantasy to recignize.
Comment: @O.R.Mapper - This might help - https://i.stack.imgur.com/24ODL.png
Comment: @Valorum: Well, I guess that works for almost any two images that feature some contours ;)
Comment: @Valorum I'm getting a certificate warning for your imgur link.
Comment: @O.R.Mapper -Indeed, and if it wasn't **one example out of half a dozen**, you could certainly argue that it was a coincidence.
Comment: @jcm - Weird. It's working fine for me. Possibly a browser issue?
Answer: Screen wipe happened once when introducing death star, it wasn't a wipe necessarily, but the immense shadow over a star destroyer
Comment: I think the point was that it **wasn't a wipe**. The director used shadow to make it look like a wipe was happening, then subverted it.

Did Rogue One use screen wipes?


How did British queens get power over kings despite a male-dominant society?

Question: I am not a history guy. But, from what I have collected from movies, TV shows and people, I see that old British society was male-dominant and there were female rights issues too. But, I also see some powerful queens in the history and the "for Queen and the Country" thing. Where's the catch? These two things don't look compatible.
Comment: When there is a queen regnant, such as Queens Elizabeth I & II, Queen Victoria, there is no King. So the queen didn't really "get power over King"
Comment: The answers provided thus far have given examples of inheritance of the English crown and the titles of their spouses. But the underlying question (why the English monarchy was different from continental monarchies) has not been addressed. Remember, William IV, King of England, was also King of Hannover, but Victoria,his successor in England, was disqualified from the latter title.
Comment: @LouisRhys Well, I guess this is the answer then..
Answer: Until now, British law has given priority to male over female heirs of kings. But where there were no male heirs, a girl got the nod.
For instance, King Henry VIII had three (surviving, legitimate) children; Edward (the youngest), Mary, and Elizabeth. Edward, the boy, was crowned king ahead of his two older sisters. He died in adolescence (without children), so his older sister Mary was crowned Queen Regnant (a female king), and when she died childless in middle age, the middle child was crowned as Queen Elizabeth I.
Centuries later, King George VI had "only" two daughters, Elizabeth, and Margaret, so the former was crowned Elizabeth II. But if Margaret had been a boy named Mark, then "Mark" would have been crowned king over Elizabeth.
Going forward, Kate Middleton's first child was a boy, but even if it had been a girl, under the newest laws, the girl would (assuming she lived long enough) have been crowned Queen (Regnant), even ahead of any younger brothers she might have had.
Comment: Thanks. Perfect answer.. No confusion... :)
Answer: Britain's order of succession is determined by male-preference cognatic primogeniture (in the future it will be equal primogeniture). This allows a female to ascend the throne as queen regnant (queen in her own right, as opposed to being a consort to a king). Queens Elizabeth I & II and Queen Victoria are example of such queens. In their cases, there is no king - spouses of Queen Victoria and Queen Elizabeth II are titled "prince consort", and they are merely consorts to their queens.
On the other hand, queen consorts, such as the spouses of Kings George V & VI, did not have the same position as Queen Victoria's.
Answer: Under English law and tradition, just as the spouse of a King is a Queen consort rather than a Queen Regnant, the spouse of a Queen Regnant is a King Consort and not a King Regnant or Monarch.
Other dynastic and national traditions may vary, as for example for Catherine the Great in Russia as well as her grand-mother-in-law Tsarina Catherine I.
Update:
In regards the English tradition of referring to the spouse of a Queen Monarch as a *Prince Consort:

Queen Victoria (reigned 1837–1901) wanted to make her husband Albert king consort, but the British government refused to introduce a bill allowing it, as Albert was a foreigner. She instead gave him the title of Prince Consort in 1857.

Note from this that there was apparently no opposition to the title King Consort being used, only to it being held by a foreigner.
Comment: In the UK, there is no King Consort, the spouse of a queen regnant is a [prince consort](http://en.wikipedia.org/wiki/Prince_consort). I guess the reason is to prevent the consort from appearing to outrank the queen.
Comment: Philip of Spain (Mary Tudor's husband) and William of Orange (Mary Stuart's husband) were each King of England etc. where their wives were the heirs, while George of Denmark, Albert of Saxe-Coburg-Gotha and Philip of Greece were not, so it is difficult to say that there has been a consistent rule.
Comment: @Henry Philip of Spain's position of power over England as a foreigner was feared by locals. William gained power through the Glorious Revolution. It could be argued that the rest were titled Prince Consort precisely to avoid the fear of foreign dominance exhibited in the other two cases.
Comment: @LouisRhys: see my update. *Prince Consort* is the more usual title in the UK, but *King Consort* is an equivalent and alternative titular designation for the same role.
Answer: There was actually one time when England had a King and a Queen both regnant.  When William of Orange was urged to come and overthrow the Catholic Stuart kings, he became King and his wife Mary, who had the blood ties to the kingship, became Queen and they ruled jointly.  This situation continued until Mary died and her he became sole King.
On his death, Mary's sister Anne became Queen.  Her husband was not named King, but was a Prince Consort.
Comment: William also had 'blood ties to the kingship', being the son of Charles II and James II's sister Princess Mary.


Transfer SC2 Installation from Mac OSX to PC

Question: I am trying to transfer the Starcraft II install folder from Mac OSX to a Windows PC. The disk didn't work on my Windows PC as it stopped at 51% but it installed perfectly on the Mac computer. The "Starcraft II" folder is in my Program Files (I put it there, by copying it directly from he OSX install). Is there any way I can make the application itself work on Windows without having to download the client? The internet where I am is very slow and expensive, and I don't want to download a 6-12GB file. Thanks much!
Comment: I don't think there are 2 different clients for mac/windows for no reason. Saying, a Mac installation won't run on a windows client.
Comment: I had the same issue on release date. Either just try to install again or try to copy the whole DVD on your computer. Create a new folder SC2 on your Desktop. Open the DVD and copy all files to the new folder. Start your installation from the folder.
Comment: If your disk won't work then your only solution is to use online installer.
Answer: Yes. You will have to download some things, however.
First, download the windows installer from blizzard.net. Let it start up and initialize the install - Once it gets to 1% of the actual download, you can close it.
Once it's closed, copy all of the data files from the OS X install over the newly created datafiles in the windows install. This only matters for files that have the same name and folder structure, so drag & drop is usually sufficient as long as the folders are merged. Tell it 'yes' on overwriting any files.
Start the installer back up, and let it rescan and continue the install. It won't be 100% done, but it should be very close. Just let it finish downloading the last bit from the internet.
This method works for SC2, WoW, and D3, and it works both ways. I use it frequently when I have an up-to-date blizzard game on my windows desktop, and need to make a copy on my mac book pro for when I travel. Mind if you're using OS X to do the copy, because it likes to replace folders instead of merging them when they have the same name.
There is no way to make the actual code of the client work 100% on another operating system, but this will save you the bulk of the download.
Answer: No, you cannot make compiled code for OSX run on a windows machine without recompiling or emulating.
If you run a Mac OSX emulator/virtual machine inside your windows machine, then the Mac OSX version will run inside that virtual OSX environment.
However, as Darth Android points out, it seems you can copy your data files across to an in-progress PC download. This means you only have to actually download the executable (which is small) rather than the entire game.
Comment: This is certainly a true statement in the generic sense, but it is an incorrect answer (not your fault, since you didn't have all the information). Both versions include nearly all the necessary executable files for both platforms, as per Darth Android's answer.
Comment: Technically, you do still have to download the client, just not the data files! :) But avoiding downloading the data makes that not a problem.


New wheel for 700x23c tire

Question: I need a new wheel for my bike. I do not know how to tell what the rim size is. My tire size is 700x23c. It is my back wheel. I tried to have it trued which started breaking the rim. Rim finally broke all the way and is unusable now. I have asked local bicycle shops all they want to do is quote price of rim. I know I can find a cheaper wheel online if I knew what to look for. Any help is appreciated.
Comment: It's often cheaper to buy a whole wheel than to buy just the rim, unless you are an experienced wheel builder.  Plus, many rims that are sold as just rims are high end, as there isn't much of a market for people who want to assemble their own wheel (or pay someone to do so) and cheap out on parts at the same time.
Comment: ok fair enough the wheel is actually what I am buying. but does not include the cassette. I will change that out myself
Comment: ok first of all how is it cheaper to buy whole wheel. I finally found the answer. it is a 700c rim that I need. Found it 50.00us dollars brand new. So I have to change the cassette out that is actually relatively easy to do. Since there is nothing wrong with my tire or inertube how is that more expensive than buying wheel with cassette, inertube and tire.
Comment: You are confused. The rim is the outer part of the wheel. The wheel is the hub, spokes, and rim.
Comment: The bike guy I go to explained quite simply why a whole wheel is often cheaper than the rim. It is purely down to the labour it takes to rebuild a wheel so it runs true. Factories producing wheels have loads of labour-saving kit, plus they're usually based in low-wage economies. The effect of this is that even if you do want to build your own, there's just no demand for rim-only, except at the top end, and where there's no demand, the price for those that want to will be high.
Answer: Fortunately 700c is a standard size that describes most road bikes.
As regards rim size, check out Sheldon
Comment: thank you for your help as you can see above I found the answer I need a 700c rim. found it at http://www.rei.com/product/770559/altus-rm40-alex-x101-700c-rear-wheel. Thank you again

New wheel for 700x23c tire


Mesh gets resized after parenting

Question: I followed the steps in the Character Rigging Blender 2.80 Fundamentals but every time I execute parenting the mesh to the armature it results in the mesh (human) flipped onto its back and many times enlarged.
Comment: If you scale the rig apply its rotation and scale *before* parenting. Location should be also at scene origin - 0,0,0. All transforms of the rig and object should be 0 or else you might experience something as what mentioned. If you want to add images you can do that, [edit] your post and include them, see https://meta.stackexchange.com/questions/75491/how-to-upload-an-image-to-a-post.
Answer: Make a backup of the file and apply scale and rotation on both the armature and the mesh.
Comment: Hi thanks for the reply. I don't think that applies in this case but I am very new to this. What happens is I import the collada file that was exported from Makehuman. I didn't need to resize it. When I add the rigging, that is too large so I have to scale it a little to fit the mesh. After parenting, the bones remain standing upright and at the correct size but the mesh is as I described, laying behind it. I saw that someone elsewhere mentioned accepting the transformations and I tried that too but it didn't fix the problem.
Comment: I wish I could add a photo.
Comment: @Maurice Halfhide Apply scale and rotation (and honestly, location too) anyways.  Import functions do not necessarily give you applied scale and rotation.  I'm sure the import function authors have their reasons, even if I don't understand them.  (But also, put those details in the question please.  They matter.)

Mesh gets resized after parenting