I bought a keyboard yesterday, AZiO L40 (Model: ABG600F).   Everything works fine in Windows, but when I boot into Ubuntu, both of my Ctrl keys, Alt keys, and Super keys are recognized as left Shift key. Even my right Shift key is recognized as left Shift key.   I have tried xev, and confirmed that Ubuntu indeed recognized them all as left Shift. I tried those remapping strategy using xmodmap, but since my OS thinks they are all left Shift I can't remap them.   My OS is Ubuntu 13.10, and here is the result of lspci:  Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller  PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port  Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1  USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2  Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller  PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1  PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4  USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller  ISA bridge: Intel Corporation H67 Express Chipset Family LPC Controller (rev 05) 00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family SATA AHCI Controller  SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Tahiti PRO [Radeon HD 7950] Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Tahiti XT HDMI Audio [Radeon HD 7970 Series] Network controller: Broadcom Corporation BCM4313 802.11bgn Wireless Network Adapter Ethernet controller: Broadcom Corporation NetLink BCM57788 Gigabit Ethernet PCIe   And here is the output of lsusb:  Alcor Micro Corp. Flash Card Reader/Writer Microsoft Corp. Nano Transceiver v1.0 for Bluetooth Intel Corp. Integrated Rate Matching Hub Linux Foundation 2.0 root hub Microdia  Logitech, Inc. G400 Optical Mouse Intel Corp. Integrated Rate Matching Hub Linux Foundation 2.0 root hub   Strangely, my keyboard is connected via USB, but it is not shown here.   Is there anything I can do? If nothing works, I'll have to return the keyboard, since I can't live without Ctrl+C, Ctrl+V, and Ctrl+M.  Thank you for all your help in advance.
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
How to deal with very long lines that do not contain spaces? Change the Ubuntu program that runs when a command can't be found Background I updated my TeX Live installation on my Mac a while ago and got the error LaTeX3 Error: Mismatched LaTeX support files detected. I found a solution at .  As far as I understand it (which isn't very far), there are system formats and local formats, and TeX Live is updating the wrong one.  The fix is to update the formats. Using fmtutil-user --all worked for me.  It spewed out a load of stuff, then output fmtutil [INFO]: log file copied to: /Users/&lt;user&gt;/Library/texlive/2020/texmf-var/web2c/luatex/dvilualatex.log fmtutil [INFO]: /Users/&lt;user&gt;/Library/texlive/2020/texmf-var/web2c/luatex/dvilualatex.fmt installed.  I don't know what this tells me, but my TeX Live preferences has TeX programs set at /Library/TeX/texbin, which seems to be a link to /usr/local/texlive/2020/bin. Problem Every time I update TeX Live, I have to apply the solution again. Question Is there a way to make TeX Live use the correct formats permanently so that I don't have to keep running fmtutil-user --all after every TeX Live update?  Extra information  to  check if you have some local formats around which hide the system formats. (with eg kpsewhich --all --engine=pdftex pdflatex.fmt)  When I did that, it output /Users/&lt;user&gt;/Library/texlive/2020/texmf-var/web2c/pdftex/pdflatex.fmt /usr/local/texlive/2020/texmf-var/web2c/pdftex/pdflatex.fmt  but I don't know what that's telling me. What does the Web.Config file do in the views folder of a MVC project All group homomorphism from $ \mathbb{Z} _m $ to $ \mathbb{Z}_n $  How could I find every group homomorphism? Increase close vote weight for gold tag badge holders In order to increase the efficiency with which poor quality questions are closed, it could make sense to have weighted close votes for a small subset of qualified users.   A very good way to measure the qualified users would be to leverage the tag badges. However, it needs to be rationally limited to a set of users that are knowledgeable with the subject. A very good way to measure the top users in a tag would be to look at those who have a gold badge in the tag.  If two users who have a gold tag badge pertinent to a question issue a close vote, the question should probably be closed (or probably will be very soon under the current system). I think it would make sense to allow users with a gold tag badge to have a 3x weight for close votes in those tags.  Please keep in mind, this isn't suggesting full moderator one click closure. It only adds weight to the vote. A single user could not do it on their own. These singular users cast close votes all the time, so that aspect would not change. Some will vote to close, some wont, but the ones who do should have a stronger weight to their vote. Even with 3x it will require 2 of said votes to accomplish, or still 2 other users (meaning 3 agreed it should be closed - which is the same amount of high rep users it takes to delete a question and that has a much greater impact than closure).  tldr;  Allow gold tag badge users to have a weighted close vote in their tag Sed - unknown option to `s' Best way to build a Plugin system with Java How would you implement a Plugin-system for your Java application?  Is it possible to have an easy to use (for the developer) system which achieves the following:   Users put their plugins into a subdirectory of the app The Plugin can provide a configuration screen If you use a framework, is the license compatible with commercial developement? Are matrices and second rank tensors the same thing? Tensors are mathematical objects that are needed in physics to define certain quantities. I have a couple of questions regarding them that need to be clarified:   Are matrices and second rank tensors the same thing? If the answer to 1 is yes, then can we think of a 3rd rank tensor as an ordered set of numbers in 3D lattice (just in the same way as we can think of a matrix as an ordered set of numbers in 2D lattice)? Is it acceptable to say "fed up OF" - surely it should be "fed up WITH" or "bored WITH something" rather than "bored OF something"? I hear people using of when I have always thought it was with in the circumstances explained above.  It seems to be getting more common. find command with regex quantifier e.g. {1,2} I have been trying to create a find command string that will find all files that end with a number 1-99 but exclude all others.  e.g. I want to find myfile1 myfile99 but not myfile456 and not myfilebackup  The regex I'm thinking of is myfile[1-9]{1,2} but I can't get this to work with find.  find . -regex '.*myfile[0-9]{1,2}' OR  find . -iname 'myfile[0-9]{1,2}'  From what I can see it's the {1,2} part that is not working.  (by the way can you use -name -regex interchangably?)  Any help appreciated. Gave up waiting for root device on Ubuntu What is momentum really? The two causes for the factor 2 in Coriolis effect While reading this document on Coriolis effect , I saw the followig sentence     Two kinematic effects each contribute half of the Coriolis acceleration: relative velocity and the turning of the frame of reference.    And this is the reason why Coriolis term has that factor $2$. Unfortunately it does not specify anything about this two causes. Does anyone have some further explanation for how "relative velocity" and "turning of the frame" actually give rise to the Coriolis term? Explicit bijection between $[0,1)$ and $(0,1)$ Proving that $[0,1)$ and $(0,1)$ have the same cardinality (without assuming any previous knowledge) can be done easily using Cantor-Bernstein theorem.  However I'm wondering if someone can build an explicit bijection between these sets.  It's easy to build a bijection between $(0,1)$ and $\mathbb R$, so a bijection from $[0,1)$ to $\mathbb R$ will also fit the bill. How do I properly clean up Excel interop objects? Set a polygon's normal's orientation as the objects local rotation orientation (if every polygon is an object) The  spell says:     The spell captures some of the incoming energy, lessening its effect on you and storing it for your next melee attack. You have resistance to the triggering damage type until the start of your next turn. Also, the fist time you hit with a melee attack on your next turn, the target takes an extra 1d6 damage of the triggering type, and the spell ends.   The  cantrip says:     Lightning springs from your hand to deliver a shock to a creature you try to touch. Make a melee spell attack against the target. You have advantage on the attack roll if the target is wearing armor made of metal. On a hit, the target takes 1d8 lightning damage, and it can’t take reactions until the start of its next turn.   If I absorb fire damage with absorb elements, would I be able to add an extra 1d6 fire damage to my next shocking grasp attack? I'm refactoring my ASP.net application from ASP.net 3.5 to 4.0. Also I'm changing the URLs to user friendly URLs /product.aspx?id=100 to /product-name/100.  All my pages are indexed by search engines and the site has already been online for 6 years. I'm planning to do 301 redirect from the old pages to the new one.  I want to make sure I won't lose the rankings and traffic.  Any suggestion how to do it properly? When does reflow happen in a DOM environment? What kinds of activities will trigger reflow of web page with DOM?  It seems there are different points of view. According to ,  it happens   When you add or remove a DOM node. When you apply a style dynamically (such as element.style.width="10px"). When you retrieve a measurement that must be calculated, such as accessing offsetWidth, clientHeight, or any computed CSS value (via getComputedStyle() in DOM-compliant browsers or currentStyle in IE).   However, according to , taking measurement triggers reflow only when there is already reflow action queued.  Does anybody have any more ideas?