Better input method switch keystrokes under Windows? I have 3 input languages installed and it is very annoying to change them with standard Windows keys because I am often overflow the language.  I would prefer to improve this. One improvement would be to make switch like in Ubuntu, where Ctrl-Right Shift switches "right" and stop at the end of language list and Ctrl-Left Shift switches "left" and stop at the beginning of a list.  But I don't see it is possible.  Also, probably better behavior would be like Alt-Tab behavior.  Is it possible to improve?  UPDATE  I know how to set change shortcuts in Windows, the problem is that options are very poor:    Most of these combinations are used in many popular programs like Google Chrome, so they are unusable.  And in switch choice:    there is no way to disable cycling and palette is very poor. Actually I can choose between Ctrl-Shift and Alt-Shift.  I emphasize: the entire setting of language switch is nearly unusable in Windows. Most of options are conflicting with other programs and overall functionality is extremely poor.  So the question persists: how to set my own combination, not limited to this strange choice by MS? Or how to do something what I described in question?
Set shortcuts to change keyboard layout in Windows 10? Is there any way to set keyboard shortcuts to quickly change to a different language/keyboard layout? The old shortcuts still seem to work (when set back in Windows 7), but I can't seem to find anything to change it in Windows 10.
This thought occurred to me earlier and I'm surprised I hadn't considered it previously. I get the feeling that no meaningful generalization can occur in a non-separable Banach space but on the surface it seems like a meaningful generalization can be had if the Banach space is separable. Even if it's possible, convergence and other issues likely severely complicate the matter. Where is the flaw in this "proof" that 1=2? (Derivative of repeated addition) Consider the following:   $1 = 1^2$ $2 + 2 = 2^2$ $3 + 3 + 3 = 3^2$   Therefore,   $\underbrace{x + x + x + \ldots + x}_{x \textrm{ times}}= x^2$   Take the derivative of lhs and rhs and we get:   $\underbrace{1 + 1 + 1 + \ldots + 1}_{x \textrm{ times}} = 2x$   Which simplifies to:   $x = 2x$   and hence    $1 = 2$.     Clearly something is wrong but I am unable pinpoint my mistake. How to replace a string with a string containing slash with sed? I know that the Windows copy dialog (in Windows&nbsp;XP) stores the copy in memory first, and it is still copying after the dialog closes, so the time is off, but why is the estimation of the time it will take to make a copy so inaccurate, even when memory copying has been disabled (in Vista and Windows&nbsp;7)? It seems so arbitrary! How does the whole copy procedure work, and why can't Windows estimate it correctly? Make bash exit != 0 when called by AWK and interrupted with ^C I'm having an issue with the following piece of (G)AWK script:  do {     ... } while (system("sleep 10"))   My intention is to break the loop when the user presses ^C during the sleep, but it's not working.  I believe the problem is that Bash exits with 0 when interrupted with ^C, at least when it's executed by AWK's system():  $ awk 'BEGIN { print "\n" system("sleep 2") }' (let the sleep complete) 0      $ awk 'BEGIN { print "\n" system("sleep 2") }' ^C 0   Why is it so?   Is this a bug in Bash or in (G)AWK?  Is there a simple solution that doesn't involve complicated Bash-specific syntax like trap?  The best I could come up with is this:  do {     ... } while (42 == system("sleep 10 &amp;&amp; exit 42"))   which still looks like a kludge to me. Redshifting of Light and the expansion of the universe So I have learned in class that light can get red-shifted as it travels through space. As I understand it, space itself expands and stretches out the wavelength of the light. This results in the light having a lower frequency which equates to lowering its energy.  My question is, where does the energy of the light go? Energy must go somewhere!   Does the energy the light had before go into the mechanism that's expanding the space? I'm imagining that light is being stretched out when its being red-shifted. So would this mean that the energy is still there and that it is just spread out over more space? Why do the big nuts always remain at top? The Brazil-nut Effect Calculating lat/lons from PostGIS table which has projected coordinate system? I have a PostGIS table in a projected coordinate system (EPSG: 28355 or MGA94 Zone 55). In QGIS (with the PostGIS manager plugin) I calculate a coordinate by performing the following SQL:  UPDATE gisprod.buildings SET easting = x(centroid(the_geom))    Now I want to add a "lat" and "lon" field to this table and calculate the values using the appropriate coordinate system, in this case that would be (EPSG:4283 or GDA94).   Is there a way I can specify in the SQL statement to calculate the x/y coord using a different coordinate system? How to subtract days from a plain Date? Probability of area being greater than 0.5 with random lines Read binary file into a struct I'm trying to read binary data using C#. I have all the information about the layout of the data in the files I want to read. I'm able to read the data "chunk by chunk", i.e. getting the first 40 bytes of data converting it to a string, get the next 40 bytes.  Since there are at least three slightly different version of the data, I would like to read the data directly into a struct. It just feels so much more right than by reading it "line by line".  I have tried the following approach but to no avail:  StructType aStruct; int count = Marshal.SizeOf(typeof(StructType)); byte[] readBuffer = new byte[count]; BinaryReader reader = new BinaryReader(stream); readBuffer = reader.ReadBytes(count); GCHandle handle = GCHandle.Alloc(readBuffer, GCHandleType.Pinned); aStruct = (StructType) Marshal.PtrToStructure(handle.AddrOfPinnedObject(), typeof(StructType)); handle.Free();   The stream is an opened FileStream from which I have began to read from. I get an AccessViolationException when using Marshal.PtrToStructure.  The stream contains more information than I'm trying to read since I'm not interested in data at the end of the file.  The struct is defined like:  [StructLayout(LayoutKind.Explicit)] struct StructType {     [FieldOffset(0)]     public string FileDate;     [FieldOffset(8)]     public string FileTime;     [FieldOffset(16)]     public int Id1;     [FieldOffset(20)]     public string Id2; }   The examples code is changed from original to make this question shorter.  How would I read binary data from a file into a struct? A complete residue system from an arithmetic progression I'm solving a problem, and the solution makes the following statement: "The common difference of the arithmetic sequence 106, 116, 126, ..., 996 is relatively prime to 3. Therefore, given any three consecutive terms, exactly one of them is divisible by 3." Why is this statement true? Where does it come from? Is it generalizable to other numbers? I think the title says it. Did expansion of the universe steal the energy somehow? Availability of MXD file for OpenStreetMap data in Esri Geodatabase? From what I understand, an ArcGIS mxd file contains the "styling" information on how to show data.  I downloaded and imported OpenStreetMap data into my geodatabase. Now I need to show them.  Is there any available mxd file match the OpenStreetMap fields/values that I can use?  I check this question(), but the links are all dead.  ps: right now the all the highway/roads/trail display as a single line in my map. I want to use mxd to show them in a better way, like Mapnik or google. In an ideal circuit, How can there be a current b/w points a &amp; b, when there is no potential difference and thus no electric field between a &amp; b? If there is no current, then where does current across the resistor come from, because that means no charge is coming from the battery (?). calculating expected number of packets. Exporting QGIS contour attributes in DXF file? I have a .tiff data file that generates contours in QGIS. I save it as .dxf. The contours don't have any attributes or data. That's bad, because I want to make a 3D landscape in Revit using the information.   How do a save/export the contour lines from QGIS so that they have a z-elevation attribute or at least some information?    I ticked the attributes box when extracting the contours, but the attributes doesn't show in the dxf. How to enable ssh root access on Ubuntu 14.04 I´d like to enable the ssh root access on Ubuntu 14.04. Editing the /etc/ssh_config (PermitRootLogin yes) didn't affect anything. How can I change the field names (not the alias) in ArcGIS 10.2? I already found this page on ArcGIS support: &quot;&quot; but there is is not &quot;Defense Mapping&quot; on Customized Mode Categories In my ArcCatalog! Without access to Defense Mapping, how can I change the field names? Adding script conditionally