recentpopularlog in

kme : question   26

passwords - MySQL Utilities - ~/.my.cnf option file - Stack Overflow
The gist is that the other utilities ('mysqldump', for example) use different "defaults groups."
mysql  commandline  cli  sysadmin  dba  newbie  question  answered  solution 
august 2019 by kme
MySql - Is primary key unique by default? - Stack Overflow |
Primary key is always unique in every SQL. You dont have to explicitly define it as UNIQUE.

On a side note: You can only have one Primary key in a table and it never allows null values. Also you can have only one primary key constraint in the table(as the point of creating a primary key is to uniquely identify the row in your table) but you can more than one unique key constraint in your table.


An employee details table having EmpID as Primary key and EmpPhoneNo as unique key.
database  dba  sql  newbie  question  answered  primarykey 
march 2018 by kme
issue tracking - JIRA: to close or to resolve? - Stack Overflow |
Typical issue workflow is the person working on the bug resolves it, and the person who opened the bug is the one who decides if the resolution is acceptable. If it is, they close it. If not, they re-open the bug for further discussion/work/wrangling.
bitbucket  jira  issuetracking  devel  question  butwhy  solution 
october 2017 by kme
Issue 1107258: os.pathsep is wrong on Mac OS X - Python tracker
You want os.sep, not os.pathsep.
You are misunderstanding what os.path.pathsep is for. It is the string that separates paths themselves, not parts of a path. It's ':' because that is how you separate paths on Darwin and any UNIX platform (e.g., "/usr/
python  mac  osx  newbie  question  answered 
december 2016 by kme
Add recursive support for ACL module by astorije · Pull Request #150 · ansible/ansible-modules-core · GitHub

Side question: is there a reason entry would not support multiple comma-separated entries?
exactly  ansible  question  needshelp 
may 2016 by kme
linux - What is the difference between executing a bash script and sourcing a bash script? - Super User

Both sourcing and executing the script will run the commands in the script line by line, as if you typed those commands by hand line by line.

The differences are:

When you execute the script you are opening a new shell, type the commands in the new shell, copy the output back to your current shell, then close the new shell. Any changes to environment will take effect only in the new shell and will be lost once the new shell is closed.
When you source the script you are typing the commands in your current shell. Any changes to the environment will take effect and stay in your current shell.

Use source if you want the script to change the environment in your currently running shell. use execute otherwise.
bash  shellscripting  newbie  question  explained 
march 2016 by kme
bash - alias vs export for simple commands - Unix & Linux Stack Exchange -
In particular, aliases only work in interactive shells: you can’t use them in shell scripts, which you might sometimes want. bash -c 'alias ll="ls -l"; ll' won’t use the alias. – deltab May 16 '14 at 16:36
bash  shell  aliases  question  aha  solution  iguess 
march 2016 by kme
c++ - Why is "using namespace std;" considered bad practice? - Stack Overflow
*Especially* not in header files.

This is not related to performance at all. But consider this: You are using two libraries called Foo and Bar:

using namespace foo;
using namespace bar;

Everything works fine, you can call Blah() from Foo and Quux() from Bar without problems. But one day you upgrade to a new version of Foo 2.0, which now offers a function called Quux(). Now you've got a conflict: Both Foo 2.0 and Bar import Quux() into your global namespace. This is going to take some effort to fix, especially if the function parameters happen to match.

If you have used foo::Blah() and bar::Quux() then the introduction of foo::Quux() would have been a non-event.
cplusplus  namespaces  newbie  question  solution 
june 2015 by kme
unit testing - Ruby on Rails: Running Tests - Stack Overflow
When I want to run all my unit tests, I run rake test:units. To run all my functional tests, I run rake test:functionals. If I want to run all the test cases in one file, I run

ruby test/unit/username_test.rb

A few people have been telling me I should run rake instead such as

rake test:units TEST=test/unit/username_test.rb

The answer is that rake sets up the appropriate environment (rather than clobbering your production data, for instance)
rails  testing  rake  newbie  question  solution 
july 2014 by kme
Pass Variables by Reference in Javascript - Stack Overflow
There is no "pass by reference" available in JavaScript. You can pass an object (which is to say, you can pass-by-value a reference to an object) and then have a function modify the object contents:

function alterObject(obj) { = "hello world";

var myObj = { foo: "goodbye" };


alert(; // "hello world" instead of "goodbye"
javascript  idiom  programming  newbie  question  passbyreference  solution 
july 2014 by kme
Using Cygwin instead of msysGit
Wondered if msysGit used Cygwin. It doesn't. There's no cygwin1.dll. All the utilities (bash included) are just the regular GNU programs compiled for Windows to create a semi-complete mini-Unix environment
msysgit  cygwin  windows  question  answer  bash  shell 
june 2014 by kme
Ian Lance Taylor - Re: about -fpic/-fPIC option for gcc
Lin George <> writes:

> I am confused about the meaning and function of -fpic
> and -fPIC option of gcc. I am more confused when after
> reading the manual of gcc (for example, what means
> PIC, GOT, constant addresses, etc.). Could anyone
> explain to me what are their functions in easy to
> understand words?

If we could write it better, we would.

Very short and incomplete version which may suffice for your purposes:
the -fpic and -fPIC options are for generating code that will be put
into a shared library on an ELF system. GNU/Linux is an example of an
ELF system.

gcc  compileroptions  confusing  buildtools  newbie  question  answer  -fPIC 
may 2014 by kme
Is it a bad idea to use the same private ssh key on multiple computers? -
I used to use a single private key across all of my machines (and some of them I am a user only on, not an admin), but recently changed this. It works having the one key, but means if you need to revoke the key (if it is compromised), then you will need to change it on all machines.
ssh  privatekey  question  answer  security 
april 2014 by kme
In iTunes, what does the check mark next to a song or podcast do?
Hello, the checkmark designates the songs to be played or transferred to your ipod. The songs will not play if unchecked
itunes  wtf  mysterymeat  icon  ui  question  annoyance  solution 
march 2014 by kme
Introduction to Autofs in Mac OS X | Low End Mac
And I thought I was supposed to be seeing something in /home for *local* users--like a compatibility 'shim' for where the usual Unix home folders are stored--but nope. It's for network users who have logged in with an account that was authenticated via directory services.
Notice the /home entry is set to auto_home, and because it is not a full path, it is assumed to be /etc/auto_home. It is an example of an indirect map. The mount point in the local directory is defined, but the remote mounts are defined in the /etc/auto_home map file. Network users who login to the local machine will have their home directories mounted in /home according to the details in /etc/auto_home.

Here is the default /etc/auto_home file:

# Automounter map for /home
+auto_home # Use directory service
autofs  mac  osx  nfs  automount  reference  tutorial  networking  sysadmin  question  solution 
january 2014 by kme
HDMI - Wikipedia, the free encyclopedia
Trade names for CEC are Anynet+ (Samsung), Aquos Link (Sharp), BRAVIA Link and BRAVIA Sync (Sony), HDMI-CEC (Hitachi), E-link (AOC), Kuro Link (Pioneer), CE-Link and Regza Link (Toshiba), RIHD (Remote Interactive over HDMI) (Onkyo), RuncoLink (Runco International), SimpLink (LG), T-Link (ITT), HDAVI Control, EZ-Sync, VIERA Link (Panasonic), EasyLink (Philips), and NetCommand for HDMI (Mitsubishi).
audiovideo  hdmi  lg  simplink  cec  remote  question  solution 
january 2014 by kme
Wi-Fi Direct vs Ad-hoc []
Wi-Fi Direct is not the same as ad-hoc networking: The most significant difference between traditional ad-hoc wireless networking (traditional peer-to-peer networking) and Wi-Fi Direct is security. In Windows ad-hoc networks, the highest level of security supported is WEP in mixed client environments (Windows 7 will support WPA2 provided all adapters support it, as well). Wi-Fi Direct, as mentioned, supports WPA2. Another difference, Wi-Fi Direct devices can also simultaneously connect to existing wireless networks. More granular control and better discovery of devices also differentiate Wi-Fi Direct from ad-hoc networking.
question  wifi  wifidirect  wireless  networking  solution  ascomparedto  adhoc 
january 2014 by kme

Copy this bookmark:

to read