Monday, October 24, 2011

Ubuntu 11.10 and Parallels Desktop Notes

Installed Ubuntu 11.10 Desktop x64 Edition on Parallels Desktop 1. for parallels tools to work normally. Before installing the parallels tools, add a soft link /usr/lib64 to /usr/lib sudo ln -s /usr/lib /usr/lib64 2. for Coherence to work, get the Gnome fall back package, and logout, then log back in with Gnome Classic (no effect) sudo apt-get install gnome-session-fallback

Thursday, October 20, 2011

google chrome -- why insecure content

Thanks to http://www.google.com/support/forum/p/Chrome/thread?tid=70b1d11d50817e04&hl=en


1. Right-click anywhere on your Gmail page and click "Inspect Element".
2. A debug window will take over the bottom half of your browser. Click "Console" at the bar at the top of this window.
3. Search for the words "insecure content" in the console (search bar at the top-right of the console). This line will reveal where the insecure content is coming from.
4. Disable the plug-in that is creating this message. In my case it was Zemanta, which neither one of us realized was even a gmail plug-in.




Sunday, October 16, 2011

on our way home

今天開回家的路上
廣播傳出來的音樂是
小雨打在我的身上
多少柔情多少淚
忘不了

好懷舊啊

Wednesday, August 31, 2011

Uninstall XCode

sudo <XcodeDir>/Library/uninstall-devtools --mode=all
<XcodeDir> is the Xcode installation directory. Such as /Developer.

Monday, August 29, 2011

How to install Sun Java SDK on Ubuntu 1104

$sudo add-apt-repository "deb http://archive.canonical.com/ maverick partner"
$sudo apt-get update
$sudo apt-get install sun-java6-jre sun-java6-plugin
$sudo apt-get install sun-java6-jdk
$sudo update-alternatives --config java

if your add-apt-repository is not installed

$sudo apt-get install python-software-properties

Wednesday, August 24, 2011

Jira 4.4 with MS SQL Server and Integrated Security

  1. Install your JIRA with run as service option
  2. Stop the JIRA server.
  3. Download the Microsoft SQL Server JDBC Driver 3.0
  4. Run sqljdbc_&lt;version&gt;_enu.exe
  5. Enter an install directory when prompted; it is recommended that you unpack this zip file in %ProgramFiles% with the default directory:
    Microsoft SQL Server JDBC Driver 3.0
  6. Copy C:\Program Files\Microsoft SQL Server JDBC Driver 3.0\sqljdbc_3.0\enu\sqljdbc4.jar to C:\Program Files (x86)\Atlassian\JIRA\lib or your [JIRA installation dir]/lib
    note: if you use JDK 6.0 or above, you need to use sqljdbc4.jar.
  7. Copy C:\Program Files\Microsoft SQL Server JDBC Driver 3.0\sqljdbc_3.0\enu\auth\x86\sqljdbc_auth.dll to C:\Program Files (x86)\Atlassian\JIRA\bin or your [JIRA installation dir]/bin
  8. Add your service account to the administrators group of the JIRA server.
  9. Change the account of the jira windows service to the above service account.
  10. Change the C:\Program Files (x86)\Atlassian\Application Data\JIRA\dbconfig.xml or  your [JIRA Application Data dir]/dbconfig.xml as following, the username and password need to be set, but a random string is ok. JIRA will check these two properties when starting the server.
    <?xml version="1.0" encoding="UTF-8"?>
    
    <jira-database-config>
      <name>defaultDS</name>
      <delegator-name>default</delegator-name>
      <database-type>mssql</database-type>
      <schema-name>dbo</schema-name>
      <jdbc-datasource>
        <url>jdbc:sqlserver://dbserver:dbport;databaseName=dbname;integratedSecurity=true</url>
        <driver-class>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver-class>
        <username>user@domain</username>
        <password>ooxx</password>
        <pool-size>15</pool-size>
      </jdbc-datasource>
    </jira-database-config>


  11. Start  the JIRA server

Note:


  • Not sure why the x86 version of  sqljdbc_auth.dll is required, although both my windows and JDK are x64 editions. but x64 version of sqljdbc_auth.dll just does NOT work.
  • This only applies to JIRA 4.4. For JIRA 4.3, some file location is different. for example dbconfig.xml