In my form I have couple of 'select' fields, among others. Now, when I update form, I need to make some fields readonly. Since I can't disable fields because then I'll get no return value, I need to find a way how can I make 'Select' fields readonly. My idea is to somehow change field type to input/text, and then make that field readonly. Is that possible? Or is there a better way? What I use on text fields: document.getElementById('id_rn_number').readOnly = true;  And I can't use (on any field type): document.getElementById('id_report_division').disabled = true;
According to HTML specs, the select tag in HTML doesn't have a readonly attribute, only a disabled attribute. So if you want to keep the user from changing the dropdown, you have to use disabled.  The only problem is that disabled HTML form inputs don't get included in the POST / GET data.  What's the best way to emulate the readonly attribute for a select tag, and still get the POST data?
What does this cryptic Bash command mean? I was reading Ubuntu Forum's warning about malicious commands and found this interesting gem:  :(){ :|:&amp; };: WARNING: The above code will crash your machine unless you have strict proc limits in place (which you probably don't) prompting a hard restart. Consider this code similar to running sudo rm -rf /.  But what does that mean? Even with my programming experience I've never seen a command that cryptic that's not assembly language. In discussing , I noted that while the statement:     Any vector space has a basis   is equivalent to the axiom of choice, I wondered if the statement that:     Any vector space either has a finite basis or an infinite set of linear independent vectors   was weaker than the axiom of choice. It feels weaker - it feels like you can inductively define a countably infinite set of linearly independent vectors without full choice, but I'm not sure if that is possible with ZF alone, or requires all of the Axiom of Choice, or is weaker but requires some form of choice. How to convert Bedrock texture pack to Java Edition Minecraft I'm trying to use a texture pack designed for the Bedrock Edition of Minecraft, on Java Edition. I looked at the texture names for a Java Edition texture pack and compared those to the names of the Bedrock Edition texture names, and they aren't the same. A lot of the texture names are flipped, such as:   Jungle Log (Java = jungle_log.png) (Bedrock = log_jungle.png)   Most of the texture names are flipped, like the Jungle Log (and all of the other log types) and there are some .json files that are different and/or not there.  Trying to open the Bedrock texture pack would result in some animated blocks not being animated, other blocks play the wrong sound (or no sound) when broken, if OptiFine is in the mix, the skybox could be missing, which I am pretty sure would result in an always black sky, along with no sun and moon textures.  Any help in finding a program or site that can do this would be helpful, because I tried doing it manually, but almost every texture is different.  Any help is appreciated! Many browsers and Internet companies have recently claimed that SSL Certificates with a signature algorithm of SHA1 will imminently no longer be considered secure.  Most notably, .  Yet I've read that since the SSL/TLS negotiation and Cipher Suite don't make use of plain SHA1 (or even MD5), and instead use SHA1 within an ; that using a Cipher Suite with SHA1 is still an acceptable security practice.  Is this the case?    While we're on it, is it also the case of using MD5 in a cipher suite? How is the value of $\pi$ ( Pi ) actually calculated? When I was a child I was taught $\pi$ (Circumference/Diameter) is an irrational number  and can be approximated to $22/7$ but $= 3.(142857)(\ldots)$.      But where does this value comes from?  In short How do I derive $\pi$? Let's say I'm running a simple server and have accept()ed a connection from a client.  What is the best way to tell when the client has disconnected? Normally, a client is supposed to send a close command, but what if it disconnects manually or loses network connection altogether? How can the server detect or handle this? Bijection from $\mathbb R$ to $\mathbb {R^N}$ How does one create an explicit bijection from the reals to the set of all sequences of reals? I know how to make a .  I have an idea but I am not sure if it will work. I will post it as my own answer because I don't want to anchor your answers and I want to see what other possible ways of doing this are. Configuring dpkg stops processing when calling an HTTP request to Adobe Flash Player I recently moved to Linux, and I am in love with the experience. Opinions apart, I am having problems when running sudo dpkg --configure -a  My computer stops processing the command here:  You may know Adobe Flash Player is no longer supported, and I believe that could be why the command is unable to load pepperflashplugin-nonfree. I have tried fixing the problem by checking older posts here, but none of them was able to fix this problem. I have a product key for windows 8.1 (Single language edition or not that i can't remember). I have currently windows 10 pro installed.  I am planning to install windows 10 Home so i activate with windows 8.1 key.  So my question is will i be able to activate it if the Product Key is Windows 8.1 Single Language and i install Windows 10 Home(Multiple language edition) or vice versa. I am wondering how to recreate some kinds of effects (you can easily do in Photoshop) in Blender.  I want to create the gradient textures like ones pictured below, should I render objects and blur them in compositor? Or can I achieve it using only material nodes? how to get user permissions for nfs share? Constraints of relativistic point particle in Hamiltonian mechanics I try to understand constructing of Hamiltonian mechanics with constraints. I decided to start with the simple case: free relativistic particle. I've constructed hamiltonian with constraint:  $$S=-m\int d\tau \sqrt{\dot x_{\nu}\dot x^{\nu}}.$$  Here $\phi=p_{\mu}p^{\mu}-m^2=0$  $-$ .  Then $$H=H_{0}+\lambda \phi=\lambda \phi.$$   So, I want to show that I can obtain from this Hamiltonian the same equation of motion, as obtained from Lagrangian.  But the problem is that I'm not sure what to do with $\lambda=\lambda(q,p)$. I tried the following thing:  $$\dot x_{\mu}=\{x_{\mu},\lambda \phi\}=\{x_{\mu},\lambda p^2\}-m^2\{x_{\mu},\lambda\}=\lambda\{x_{\mu},p^2\}+p^2\{x_{\mu},\lambda\}-m^2\{x_{\mu},\lambda\}$$$$=2\lambda \eta_{\mu b} p^b+p^2\{x_{\mu},\lambda\}-m^2\{x_{\mu},\lambda\}=2\lambda \eta_{\mu b} p^b+p^2\frac{\partial \lambda}{\partial p^{\mu}}-m^2\frac{\partial \lambda}{\partial p^{\mu}},$$  $$\dot \lambda=\{\lambda, \lambda \phi \}=\{\lambda,\lambda p^2\}-m^2\{\lambda,\lambda\}=\lambda\{\lambda,p^2\}+p^2\{\lambda,p^2\}=2\lambda\eta_{ak}p^{a}\frac{\partial \lambda}{\partial x^{k}},$$  $$\dot p_{\mu}=\{p_{\mu},\lambda p^{2}-m^2\lambda \}=p^{2}\{p_{\mu},\lambda\}-m^2\{p_{\mu},\lambda\}=-p^{2}\frac{\partial \lambda}{\partial x^{\mu}}+m^2\frac{\partial \lambda}{\partial x^{\mu}}.$$  If we recall that $p^2-m^2=0$, then we get from the third equation: $\dot p=0$, and from the first: $$\dot x_{\mu}=2\lambda\eta_{ak}p^{a}.$$  So we have    $\dot x_{\mu}=2\lambda\eta_{\mu b}p^{b}.$ $\dot \lambda=2\lambda\eta_{ak}p^{a}\frac{\partial \lambda}{\partial x^{k}}.$ $\dot p=0.$   But I don't know what to do next. Can you help me? Uninstall apps locked by phone vendor What's the limit on the no. of partitions I can have? I would like to know how many Primary and Extended Partitions I can create on a x86_64 PC with Linux running on it?     Update  : If there is a limit to the number of partitions, why is that the limit? how to set Image and text at the center of the button TeXStudio : Disable auto-completion of parentheses I cannot stand the auto-completion of TeXStudio (formerly TexMakerX) regarding parentheses, braces, etc. I agree auto-completion is useful sometimes, but here it does just not work as I would like. How can I remove it completely?  Under configuration -&gt; completion nothing is checked. From where do I remove the auto-completion of these? SEO of  in  header machine wakes only on local magic packet I've got a Debian server, which I would like to wake up remotely using a tool like wakeonlan.  I have assigned the server a static internal IP 192.168.0.14 and set up the appropriate port forwarding in the router (which otherwise has a very limited admin interface).  When I am logged in to the same network, I can wake the server using the subnet IP, but I cannot wake the server using the public IP of the router.  What I do not understand: When the server is running and I listen on the server with netcat nc -ulv -p 9, I can see the packet coming in in both cases (both when sending to the subnet IP and when sending to the public IP of the router).  If the packet arrives in both cases, why does the machine wake up only in one of them? Permission for snap applications I have some trouble with the Ubuntu notepadqq package. After opening a file from my apache webroot I cannot see any content. Saving the file is also not possible. I thougt this would be a classic permission issue. Therefore, I changed the group of the webroot from root to www-data and added my user to this group. Permissions are 775, so in theory it should now be possible for me to edit files in my webroot. But nevertheless, when I open a file of this directory with notepadqq, it still only shows an empty file.  When using gksudo notepadqq I get the following error message:  No protocol specified QXcbConnection: Could not connect to display :0   I figured out that notepadqq is a so called snap application and I wonder if this is the reason for my problems.  Can someone give me a hint how I could fix this issue (without using 777 permissions)? Looking at the following dataset:   Date        Visits   Carts      carts       Orders                       Created   converted    Created 2011-11-11    12277     161        9          36   2011-11-12    11871     93         5          19     2011-11-13    13072     107        8          8      2011-11-14    13594     112        4          34     2011-11-15    12741     129        8          43     2011-11-16    15491     261        16         57  2011-11-17    13418     186        17         42       I've been asked to plot this on a graph, using the Date has the X-Axis and the rest of the data on the Y-Axis. The problem is that the scale of the data is dramatically different. where Visits are in the thousands and Orders Created are in the low tens, the data doesn't plot well on a graph.     I was wondering what a statistician would do in this scenario, I could divide the the Visits by a 1000 and then put in the description (Visits (K)), but then I start to have the same problem with Carts Created, as they are in the hundreds and everything else is in the low tens.  What kind of thing is done in this scenario?