How to Toggle Within and Between Apps in OS X

  • Toggling between open programs is Command + Tab
  • Toggling up a minimized program is Command + Tab with Option on release
  • Toggling between tabs is Command + Shift + [ or ]
  • Opening a new tab is Command + t
  • Closing a tab or window is Command + w
  • Toggling windows of the same application is Command + (next to shift in english keyboard)

source : http://computers.tutsplus.com/tutorials/how-to-toggle-within-and-between-apps-in-os-x–mac-56503

Taking screenshot of selected area on the screen to desktop: Command + Shift + 4

Advertisements

jsf composite component update

if you have items with different namespaces in a composite component to update one from other, using standard “:” to search in namespace will not work. You will get this exception :

Cannot find component with expression “form1” referenced from ….

You should use “@composite” in the update parameter. Example :

<cc:interface>      
</cc:interface>
<cc:implementation >
    <h:form id="form1"> </h:form>
    <h:form id="form2">
         <p:commandButton update=":form1" />  <!-- ERROR -->
         <p:commandButton update="@composite:form1" />

mysql workbench export error osx

ERROR : 
Error Unhandled exception: ‘builtin_function_or_method’ object has no attribute ‘__getitem__’this error occurs even if you try to backup a single table
SOLUTION :
In the editor, / Applications / MySQLWorkbench.app / Contents / Resources / plugins / wb_admin_export.py me’ll open.
If you check the 1712 line, certainly
args.append – it has become a [‘skip-triggers’]. Because apparently is wrong this [], I’ll change it to ().
In addition, the 1715 line
args.append – so has become [‘no-create-info’], to keep repair in as well ().
Save, I’ll start the MySQL Workbench again.
Connect to the site, export! ! ! While shouting and running.
src: http://banikojp.blogspot.com.tr/2014/12/mysql-workbencherror.html

Run JIRA on port 80

One easy way of accessing JIRA over port 80 while keeping it running with its default behavior on port 8080 is to use Apache and mod_proxy.  On a modern Red Hat or Cent OS system this is as easy as:

$ sudo yum install httpd

Next, create the following file:

File:
  /etc/httpd/conf.d/jira.conf
Contents:
  # Send all web traffic to JIRA
  ProxyPass       /   http://localhost:8080/
  ProxyPassReverse    /   http://localhost:8080/

Finally, start up Apache and also set it to run automatically at boot time:

$ sudo /etc/init.d/httpd start
$ sudo chkconfig httpd on

You are all set.  JIRA will serve traffic on port 80 (via Apache) but continue to run as an unprivileged user on port 8080.

Follow up note:

After making the above changes, I realized I also needed to update Jira’s server.xml ({JIRA home}/conf/server.xml).   Find the 8080 connector port entry and add the params:

proxyName="{your server's hostname}"

proxyPort=”80″
For example: (last two params)
——————-

<Connector port="8080"
   maxThreads="150"
   minSpareThreads="25"
   connectionTimeout="20000"
   enableLookups="false"
   maxHttpHeaderSize="8192"
   protocol="HTTP/1.1"
   useBodyEncodingForURI="true"
   redirectPort="8443"
   acceptCount="100"
   disableUploadTimeout="true"
   proxyName="jira.somehost.com"
   proxyPort="80"/>

Bounce JIRA and you should be good to go.

src: https://confluence.atlassian.com/display/JIRA/Changing+JIRA%27s+TCP+Ports
in the page comment by Rick Noelle

atlassian jira osx yosemite autostart launchctl

/Library/LaunchDaemons/com.atlassian.jira.plist :

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
 <dict>
 <key>Label</key>
 <string>com.atlassian.jira</string>
 <key>ProgramArguments</key>
 <array>
 <string>......./atlassianjira6312/bin/start-jira.sh</string>
 <string>-fg</string>
 </array>
 <key>RunAtLoad</key>
 <true/>
 </dict>
</plist>
sudo chown root:wheel /Library/LaunchDaemons/com.atlassian.jira.plist
sudo chmod 644 /Library/LaunchDaemons/com.atlassian.jira.plist
sudo launchctl load -w /Library/LaunchDaemons/com.atlassian.jira.plist

mysql osx yosemite autostart launchctl

/Library/LaunchDaemons/com.mysql.mysql.plist :

<!--?xml version="1.0" encoding="UTF-8"?-->
<plist version="1.0">
  <dict>
    <key>KeepAlive</key>
    <true />
    <key>Label</key>
    <string>com.mysql.mysqld</string>
    <key>ProgramArguments</key>
    <array>
      <string>/usr/local/mysql-5.6.21-osx10.8-x86_64/bin/mysqld_safe</string>
      <string>--user=mysql</string>
    </array>        
  </dict>
</plist>
sudo chown root:wheel /Library/LaunchDaemons/com.mysql.mysql.plist
sudo chmod 644 /Library/LaunchDaemons/com.mysql.mysql.plist
sudo launchctl load -w /Library/LaunchDaemons/com.mysql.mysql.plist

source : http://stackoverflow.com/questions/26476391/how-to-auto-load-mysql-on-startup-on-osx-yosemite