The Data Science SE site requires syntax highlighting feature as the posts contain code from multiple languages/syntaxes including but not limited to Bash, Regex, Python, Julia, Java, R.  We collected a list of some posts which would benefit from this feature .  PS: I am one of the moderators of that site.
It seems syntax highlighting is not enabled on every SE site, but later on turns out to be rather advantageous. As an example,  may not have sounded like needing it, yet there is , and I think it's justified since many answers have code in them, e.g. JS for InDesign scripts, some GREP-regex and (rather obviously) HTML and CSS. While I'd appreciate having syntax highlighting activate on that specific site (so please upvote ), this question is more general about two points:   Why is syntax highlighting disabled on some sites at all? Are the additional resource costs really so high? Couldn't caching improve that then? How to actually proceed when it should become activated on a specific site? It seems feature requests on the specific meta site are not exactly handled quickly (the request mentioned above is from 2013!), and also appear overkill for a simple "please switch that site's config bool for syntax highlighting".
When the trace of the Frobenius homomorphism is zero? Let's consider an elliptic curve over a finite field $\mathbb F_p$.  The trace of the Frobenius homomorphism is defined as:  $$a_p=p+1-\#E(\mathbb F_p)$$  See for example .  I read that this value is zero if and only if the elliptic curve is supersingular. Unfortunately there is no proof give. So I am looking for a proof of this. (For example a good reference). I'm wondering how can I simulate a sample of n Weibull distribution lifetimes that include Type I right-censored observations. For instance lets have the n = 3, shape = 3, scale = 1 and the censoring rate = .15, and the censoring time = .88.  I know how to generate a Weibull sample but I do not know how to generate a censored data that have type I right-censored in R.  T = rweibull(3, shape=.5, scale=1) Minecraft launcher could not connect to server? What do I do? I looked at a similar question to mine and there was an answer saying to make sure Java is allowed past the firewall. So I checked and it already is. I've tried uninstalling and installing both Minecraft and Java but nothing has changed.  says that all services are fine, so what's going on? I bought a 2nd account to use as an alternative in-game account and now I can't log in.  (I cleared the email and password boxes for obvious reasons in this screenshot: security purposes) How to get IOS "tossing feature" in Wolfram IOS Player to work in Mathematica What does the number in parentheses shown after Unix command names in manpages mean? For example: man(1), find(3), updatedb(2)?   What do the numbers in parentheses (Brit. "brackets") mean? Difficulty in creating macro '\newcommand' for the beginning and end of frames in Beamer describes the first-order vs. second-order logic as follows:     First-order logic uses only variables that range over individuals (elements of the domain of discourse); second-order logic has these variables as well as additional variables that range over sets of individuals.   It gives $\forall P\,\forall x (x \in P \lor x \notin P)$ as an SO-logic formula, which makes perfect sense to me.  However, in a , the poster claimed that $\forall x\forall y(x=y\leftrightarrow\forall z(z\in x\leftrightarrow z\in y))$ is an FO formula. I think this must not be the case, since in the above formula, $x$ and $y$ are sets of individuals, while $z$ is an individual (and therefore this must be an SO formula).  I mentioned this as a comment, but two users commented that ZF can be entirely described by FO logic, and therefore $\forall x\forall y(x=y\leftrightarrow\forall z(z\in x\leftrightarrow z\in y))$ is an FO formula.  I'm confused. Could someone explain this please? Can someone please suggest a query to directly see the number of answers I posted that were accepted. Right now I have to manually count from total given answers.  Hope there is an easy way. Windows 10 Anniversary Upgrade error 0xc1900101 - 0x30018 referring to SYSPREP Scaling in object and edit mode My question is: why do Object mode scaling and Edit mode scaling seem to be incompatible? I'm quite new to blender, so I may not know sth important about these modes. The actual case is:  I create a cube, which is 2×2×2 metres in metric units by default  (it's also shown under 'dimensions')    Then, with the cube selected, I switch to Edit mode, and enable 'Edge info: Length' under 'Mesh display'    And it shows the cube's measurements, which are 2m on each edge.  Now I use the scale tool in Edit mode, making the edges 2.244m    That's good so far. Changing back to Object mode, the changes can be seen under 'dimension'    However, when I use the scale tool in Object mode, the scale and dimensions also change, but changing back to Edit mode, the measurements shown remain the same      So the question is, why does the scale tool work differently and have different effects in Ojbect mode and Edit mode? Also, how can I enter the desired size of my cube manually to get an accurate result, without using the scale tool in Edit mode, and without changing the scale ratio in object mode? What formats supporting animation are suitable for the web? Can I use a variable which has a non-linear relationship to the dependent variable in logistic regression? Let's say I am building a logistic regression model where the dependent variable is binary and can take the values $0$ or $1$. Let the independent variables be $x_1, x_2, ..., x_m$ - there are $m$ independent variables. Let's say for the $k$th independent variable, the bivariate analysis shows a U-shaped trend - i.e., if I group $x_k$ into $20$ bins each containing roughly equal number of observations and calculate the 'bad rate' for each bin - # observations where y = 0 / total observations in each bin - then I get a U shaped curve.  My questions are:   Can I directly use $x_k$ as input while estimating the beta parameters? Are any statistical assumptions violated which might cause significant error in estimating the parameters? Is it necessary to 'linearize' this variable through a transformation (log, square, product with itself, etc.)? If an polynomial has a complex root, is it necessary that the conjugate of that root is also a root of the polynomial? I am not sure about this. Please comment on this. Is an automorphism of the field of real numbers the identity map? Is an automorphism of the field of real numbers $\mathbb{R}$ the identity map? If yes, how can we prove it?  Remark An automorphism of $\mathbb{R}$ may not be continuous. how to make some border lines of a table thick and colored how to make some border lines of a table thick and colored (either vertical lines or horizental lines)?I tried Xcline but could not color it. Also I tried make the cline thick but failed. I installed Ubuntu 14.04, and I'm loving it. However, when playing a game called Garry's Mod I noticed that my CTRL and ALT keys on my wired keyboard were both being detected as Shift. I looked at the keyboard layout chart and confirmed this. I also noticed that my Windows, or Super Key, Right CTRL and Right ALT are all being mapped to Left Shift.  They're all working perfect, they're just being detected wrong. I have selected the United States layout which is what my keyboard is supposed to be and is in Windows. Can anyone help? My keyboard is being detected as a SONiX USB Keyboard (the actual keyboard brand is Avazz).   my xev -event keyboard output is this for every single one:   KeyRelease event, serial 28, synthetic NO, window 0x4a00001,     root 0xdc, subw 0x0, time 2446369, (730,547), root:(795,599),     state 0x1, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,     XLookupString gives 0 bytes:      XFilterEvent returns: False   The only thing that changes is the time. The sudo evtest command shows all the modifier keys as   type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e1v type 1 (EV_KEY), code 42 (KEY_LEFTSHIFT), value 0  for lsusb, the driver it's using is the usbhid driver.  lsusb shows something confusing; the same port as my keyboard is being shown in other commands is showing up in lsusb as my wireless mouse's driver, Logitech, Inc. Unifying Receiver. This may be the problem, but I'm probably simply mistaken in what port it is on. Due to this, I'm not sure what driver is what. I'm going to post all of them, although this might be annoying. I have a separate keyboard plugged in along side my main one to use the CTRL, Super, or ALT by the way, so don't be confused by the Logitech Classic Keyboard Driver.  Bus 001 Device 009: ID 0bda:8172 Realtek Semiconductor Corp. RTL8191SU 802.11n WLAN Adapter Bus 001 Device 008: ID 046d:c315 Logitech, Inc. Classic Keyboard 200 Bus 001 Device 007: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB Bus 001 Device 006: ID 0480:0200 Toshiba America Info. Systems, Inc.  Bus 001 Device 004: ID 0c45:6340 Microdia  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 004: ID 0d8c:013c C-Media Electronics, Inc. CM108 Audio Controller Bus 002 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver Bus 002 Device 002: ID 0c45:7603 Microdia  Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub   For lsusb -t, the driver being used is usbhid. for i in $(ls /sys/module/usbhid/parameters/); do echo -ne "$i\t"; more /sys/module/usbhid/parameters/$i; done is:  ignoreled   0 mousepoll   0 quirks  (null),(null),(null),(null)  I don't think you need this since I said it's usbhid, but here's it anyways.  for i in $(ls /sys/module/hid/parameters/); do echo -ne "$i\t"; more /sys/module/hid/parameters/$i; done's output.  debug   0 ignore_special_drivers  0 modinfo usbhid's output is:  filename:       /lib/modules/3.18.3-031803-generic/kernel/drivers/hid/usbhid/usbhid.ko license:        GPL description:    USB HID core driver author:         Jiri Kosina author:         Vojtech Pavlik author:         Andreas Gal srcversion:     A395FA22EA2729BAC1557C9 alias:          usb:v*p*d*dc*dsc*dp*ic03isc*ip*in* depends:        hid intree:         Y vermagic:       3.18.3-031803-generic SMP mod_unload modversions  signer:         Magrathea: Glacier signing key sig_key:        29:DB:FD:FC:5A:CC:82:3C:C5:2C:39:4C:C1:C7:4C:01:C3:BE:BF:78 sig_hashalgo:   sha512 parm:           mousepoll:Polling interval of mice (uint) parm:           ignoreled:Autosuspend with active leds (uint) parm:           quirks:Add/modify USB HID quirks by specifying  quirks=vendorID:productID:quirks where vendorID, productID, and quirks are all in 0x-prefixed hex (array of charp)  cat /sys/kernel/debug/usb/usbmon/2u &gt; /tmp/usb.mon.out is telling me not found even though I changed 2 to my bus ID. What am I doing wrong here? Clarify if you can please, kinda confused there. I tried putting 2, 02 and 002. The output of  sudo ls /sys/kernel/debug/usb/usbmon/ is  0s  0u    1s  1t  1u  2s  2t  2u scanf() misbehaving What does $\dot\sim$ notation (dot over tilde) mean, in the context like $x \mathrel{\dot\sim} \mathcal N(0,1)$?  Turns out it is easier to find how to typeset it correctly:  that one should type \mathrel{\dot\sim} instead of simply \dot\sim to fix the spacing issue -- than to find what it actually means. It has only been used  on CV until now; is it standard? GCD in polynomial rings with coefficients in a field extension I want to output two different views (one as a string that will be sent as an email), and the other the page displayed to a user.  Is this possible in ASP.NET MVC beta?  I've tried multiple examples:  1.      If I use this example, I receive the "Cannot redirect after HTTP   headers have been sent.".   2.      If I use this, I seem to be unable to do a redirectToAction, as it   tries to render a view that may not exist. If I do return the view, it   is completely messed up and doesn't look right at all.   Does anyone have any ideas/solutions to these issues i have, or have any suggestions for better ones?  Many thanks!  Below is an example. What I'm trying to do is create the GetViewForEmail method:  public ActionResult OrderResult(string ref) {     //Get the order     Order order = OrderService.GetOrder(ref);      //The email helper would do the meat and veg by getting the view as a string     //Pass the control name (OrderResultEmail) and the model (order)     string emailView = GetViewForEmail("OrderResultEmail", order);      //Email the order out     EmailHelper(order, emailView);     return View("OrderResult", order); }   Accepted answer from Tim Scott (changed and formatted a little by me):  public virtual string RenderViewToString(     ControllerContext controllerContext,     string viewPath,     string masterPath,     ViewDataDictionary viewData,     TempDataDictionary tempData) {     Stream filter = null;     ViewPage viewPage = new ViewPage();      //Right, create our view     viewPage.ViewContext = new ViewContext(controllerContext, new WebFormView(viewPath, masterPath), viewData, tempData);      //Get the response context, flush it and get the response filter.     var response = viewPage.ViewContext.HttpContext.Response;     response.Flush();     var oldFilter = response.Filter;      try     {         //Put a new filter into the response         filter = new MemoryStream();         response.Filter = filter;          //Now render the view into the memorystream and flush the response         viewPage.ViewContext.View.Render(viewPage.ViewContext, viewPage.ViewContext.HttpContext.Response.Output);         response.Flush();          //Now read the rendered view.         filter.Position = 0;         var reader = new StreamReader(filter, response.ContentEncoding);         return reader.ReadToEnd();     }     finally     {         //Clean up.         if (filter != null)         {             filter.Dispose();         }          //Now replace the response filter         response.Filter = oldFilter;     } }   Example usage  Assuming a call from the controller to get the order confirmation email, passing the Site.Master location.  string myString = RenderViewToString(this.ControllerContext, "~/Views/Order/OrderResultEmail.aspx", "~/Views/Shared/Site.Master", this.ViewData, this.TempData);