We're trying to block the users from accessing to local files from Chrome.   We've disabled the access from Windows Explorer. However, if the users use Google Chrome, then they can easily type C: in the address bar, following which they can access local files. You can see an example below:    Does anyone know how to block the access?  I've been looking options such as:    Block the file system Configuring the user agent stylesheet, default styles, as well as the main set-up.    I'm looking in the JavaScript to edit it but I haven't found a solution. This image below is what I see, but I don't know the location for the file that gives a style or format to the local directory and I haven't found such a file in the latest Chrome version.
Is there a way to disable file:/// protocol in google chrome?  Is there some option, or some switches that can disable this feature?  Please help
What would be the best approach to get the recordtype id I know of two approaches to get the recordtype id of a particular record type   Use SOQL   RecordType RecType = [Select Id From RecordType  Where SobjectType = 'Account' and DeveloperName = 'Business'];    Benifit here is if the admin changes the name of the record type, the code still works as we can use developer name   Using Describe  Map&lt;String,Schema.RecordTypeInfo&gt; rtMapByName = d.getRecordTypeInfosByName(); Schema.RecordTypeInfo rtByName =  rtMapByName.get('Business');    Saves on SOQL limits but uses a describe call.  What would be your choice and why   EDIT : Usage is for setting up recordtype while inserting records in apex or trigger Pausing a long running program in the terminal? Is there a keyboard key combination that I can use to pause a program running in the terminal? In case it matters, I don't intend to run anything else inside that terminal while the program is paused. I just want to pause the program execution, and resume it later. How can I do this? These should work by adding spaces or removing spaces from the beginning of the current line or every line between the start and end of a text selection (inclusive).  (edited this question to supplement ) Spacing before and after section titles I know this subject has been mentioned before, but I'm still having a problem in creating a space under a section title. I used the titlesec package and then tried using the command \titlespacing{\section}...  This is my code. Can anybody help?  \documentclass[10pt]{book} \usepackage[utf8]{inputenc} \usepackage{fullpage} \usepackage[compact]{titlesec} \usepackage{setspace} \usepackage{sectsty} \chapterfont{\huge} \sectionfont{\Huge} \begin{document} \chapter*{Kapitel 1} \section*{Einleitung} \begin{large} \subsection*{1.1 Motivation} Verifying that the ideal $(x^3-y^2)$ is prime How to prove that the ideal $I=(x^3-y^2)$ in $k[x,y]$ is prime?    I have constructed a map from $k[x,y]$ to $k[t]$, which maps $x$ to $t^2$, and $y$ to $t^3$. Then, I want to show that the kernel is exactly $I$. But the difficulty is that how to prove the kernel is contained in $I$.  Could you help me? Thanks a lot! Take for example  both at SO and SU. Now that there's , (new) users asking a LaTeX question should at least be informed that there is a new Stack Exchange site dedicated to TeX and thus increases their chance of an answer. This should happen before the question is actually posted and ideally offer the option to post the question directly there instead (without the need to copy-paste).  LaTeX is just an example, there's also , ,  etc., and it is obvious that this can only be decided on a case-by-case basis which is why I certainly do not suggest migrating questions automatically when these tags are used. But informing users of that possibility would probably help the SE network in general. When I entered the value $$\frac{1}{i}$$ in my calculator, I received the answer as $-i$ whereas I was expecting the answer as $i^{-1}$. Even google calculator shows the same answer (Click  to check it out).  Is there a fault in my calculator or $\frac{1}{i}$ really equals $-i$? If it does then how? How to convert a column number (e.g. 127) into an Excel column (e.g. AA) How do you convert a numerical number to an Excel column name in C# without using automation getting the value directly from Excel.  Excel 2007 has a possible range of 1 to 16384, which is the number of columns that it supports. The resulting values should be in the form of excel column names, e.g. A, AA, AAA etc. I am struggling with this question from Halmos's text, please ignore the imperative language.  "Suppose that $L, M$  and $N$ are subspaces of a vector space. Show that the equation    $$L \cap (M + N) = (L \cap M) + (L \cap N)$$   is not necessarily true.  Since each of these subspaces has origin in them, clearly there intersections could not be empty. I wasn't able to formulate an example where this result did n't hold. Any help would be highly appreciated. Why did Littlefinger give Sansa to the Boltons? This question is about the TV show only.  In the books, Sansa is still with Littlefinger and everything that happens between Sansa and Ramsay in the show actually takes place between Ramsay and Jeyne Poole in the books.  However I don't recall why Littlefinger sends Sansa north. Apparently, in the books, it's safer to keep her traveling. So why did he do it in the show? Log out button illogical placement In the previous version the logout button is under your username, which it can be found by clicking the down arrow. However, in the new version, after a couple minutes of searching, it is under the "site-switcher" button:        This is really illogical since the logout button is usually under your username, including Google and Yahoo! services.  I suggest bringing back the  which will definitely benefit new users and even old users. Do airlines have to check the visa status before selling a ticket? "Subject, verb, direct object, object complement" versus "subject, verb, indirect object, direct object" Reading English Grammar (HarperCollins College Outline, published by HarperResource, an imprint of HarperCollinsPublishers) I found a chapter (Sentence Basics) that explains that in English there are different sentence patterns; in particular   Subject, verb, direct object, object complement Subject, verb, indirect object, direct object   The chapter reports the following example for the patterns:     Alice called Charles Professor Miller.   Alice gave Charles the rabbit.   What is the difference between the two kind of sentences? What is the difference between the object complement in the first case, and the indirect object in the second case?  PS: The question, which could appear silly, comes from the fact in my first language there is only the object complement. I have the following code and I expect the resulting angle to be 135 degrees but whatevet I try, I get 90.  \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture}  \coordinate (A) at (1,0); \coordinate (B) at (-1,1);  \pgfmathanglebetweenpoints{A}{B} \edef\angleAB{\pgfmathresult} \node at (0,0) {\angleAB};  \end{tikzpicture} \end{document}   I also tried the following command without knowing what it means, it also prints 90 except one case. The only working case is when A=(1,0) and B=(-1,0), which it prints 180.  \pgfmathanglebetweenpoints{\pgfpointanchor{A}{center}}{\pgfpointanchor{B}{center}}   Why is that? Couldn't find any reference document for "pgfmathanglebetweenpoints" by the way, that's why I am asking here.  EDIT: B is corrected from (-1,-1) to (-1,1) Including all the jars in a directory within the Java classpath I am going to Canada, I have a valid U.S. tourist visa (B1/B2). Can I transit via a U.S. airport on the way to Canada with this visa? Logically I know I can since I am allowed to enter the U.S. but I am just making sure. It is suggested as an exercise in Serge Lang's book "Algebra" to show that the commutator subgroup $G^c$ of a group $G$ is a normal subgroup.   I'd like to do that but I am afraid I need help,   I think the first thing I need to figure out is how a general element in the commutator subgroup looks like, so that I can check that the defining condition for normality is satisfied.  That is, supposing for a moment that a general element in $G^c$ is denoted by $g$, I need to show that $aga^{-1} \in G^c,$ for all $a \in G$.  But here I get stuck, first because I am unsure how to write a general element in $G^c$ - a simple product in $G^c$ is of the form $xyx^{-1}y^{-1}aba^{-1}b^{-1}$ where $a,b \in G$. I cannot see a way to simplify this - I am sure there is one, but somehow I am blind today.  The second thing then is, even if one tries out the conjugation of a simple element like $xyx^{-1}y^{-1}$ in $G^c$, again not simplification offers itself easily I think .. what am I missing ?  An alternative would be to find a homomorphism of $G$ whose kernel is precisely $G^c$ - here I tried to think of this as a map $G \times G \to G$ but whatever I cook up is not a homomorphism.  Thanks for your hints !! Changing pemalink structure to /%post_id%/%postname%/ I'm currently using permalink structure: /%year%/%monthnum%/%day%/%postname%/  I want to change that to: /%post_id%/%postname%/  I expect it to be:   faster (database is sorted by post_id?) shorter URLs (and clearly visible short verstions, just leaving the %postname%/ out) more SEO friendly - since my content is "evergreen" so publishing date is irrelevant (and written at each post, along with last update date) - so this would give shorter URLs, with no downsides compared to using year/month/day structure.   THE QUESTION: Does WordPress handle all the 301 redirects automatically? I can fix internal links to the new structure (though I'd expect that to be automatic as well), but worry about outsite links, pointing to my posts/articles.  If not, what's the best way to implement this change? Any links or full answers here are welcome.  I have about 120+ posts already, will this change affect the speed since it's not been done from the start? How to check if running on UI thread in Android? I recently updated my profile bio (from Arqade) and clicked 'Save and copy changes to all public communities'. This appears to have broken/reset my profile picture on all but Arqade. Note that I did not update my profile picture as part of my changes. Arqade:  Meta SE for comparison:  I haven't touched my profile picture in years. Is this a bug?  Update: It appears my profile pic across all communities has been set back to 'Identicon'. I went on to Stack Overflow and changed my profile picture back to 'Gravitar' and clicked 'Save and copy to all communities' again, but this did not update my profile picture anywhere but SO. (I did the same on Sustainability to be doubly sure). Update 2: This is a persistent bug - I had changed most of my SE communities back to my 'Robotnik' display pic over the past little while. Today I edited my profile again on Arqade, Clicked 'Save and copy' - and the display pic reverted back to identicon again across all sites. Update 3: I have re-uploaded my profile picture and the 'Save and copy' function worked. It appears that this is actually a bug to do with the old images from Gravatar.