For example I have the following four versions installed: capybara (2.2.1, 2.2.0.rc1, 2.1.0, 1.1.4) Please suggest how to uninstall the capybara version 1.1.4 Answer When you do gem uninstall capybara it should give you a menu asking which one you want to uninstall. Alternatively use the -v option. Note you m…
How to move or resize X11 windows (even if they are maximized)?
I want to change position of a window. My problem is that the window can be maximized, this does not allow to change its size and location (window can belong to any application). I use KDE4. I tried to use ewmh Python module. In my case when the window is maximized I just want to move it from one monitor
Get MAC address using shell script
Currently all the solution mentioned for getting the MAC address always use eth0. But what if instead of eth0 my interfaces start with eth1. Also on OS X the interface names are different. Also the interface eth0 may be present but is unused. i.e. not active, it doesn’t have an IP. So is there a way I c…
Changing the static IP of Beagle Bone Black USB0 [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …
how to escape single quotes in grep
I found a few questions here similar to this but they are not quite identical. I want to grep for the text ‘true’ format in certain files. How do I do it? Not sure how to escape the single quotes around true. Answer Just wrap the string within double quotes: Test
Unable to claim interface: Resource busy
I am working with USB4Java (the low-level version) and am basically working from this code here. I’m working in Ubuntu, and I was running into a problem about permissions but was able to resolve by running eclipse using gksu from the terminal. Now I am having a new problem: When I get to the point in th…
Convert RBG to CMYK with use of ICC profile in PHP
I am currently building an online APP which allows users to pick a color for text from a usual javascript color picker. I want to convert the returned value to CMYK and I know there is not one simple run-of-the-mill method to achieve this, given there are ICC profiles and all that. I still want to achieve a r…
how to find Linux module path
in the linux, lsmod lists a lot of modules. but how can we find where those module loaded from. for some modules,linux command “modprobe -l” shows a path but some are not. edited i also tried “find” and “locate”. both of them lists all kind of versions Answer You can use &#…
How can I split a CA certificate bundle into separate files?
I’m working with OpenSSL and need a sane default list of CAs. I’m using Mozilla’s list of trusted CAs, as bundled by cURL. However, I need to split this bundle of CA certs, because the OpenSSL documentation says: If CApath is not NULL, it points to a directory containing CA certificates in P…
Puppet referring to a module inside a module
I’m using Puppet 3.5.1 on Linux 6 machine. I have a local module “A” that includes a sub-module “B”. Such that sub-module “B” is located in “/etc/puppet/modules/A/modules/B”. I refer to sub-module “B” in my module “A” classes: (/etc…