RSS

Category Archives: macos

ATG 9.1 on Mac OS X 10.6

Using the instructions from Ronald Pulleman (which focus on ATG 2007.1), I tried installing ATG 9.1 on Mac OS X 10.6.2. Below are the instructions for reproducing what worked for me.

Make sure you know what is officially supported by ATG, since Mac OS X is not. Also make sure you have the Installation Guide handy, part of the ATG 9.1 documentation set.

Below I refer to the .profile file for adjusting environment variables. Make sure you apply these environment variable changes each time. If you do not use bash, then replace .profile with whatever your shell reads on startup.

Install and configure MySQL

  • Have MySQL installed; I picked MySQL 5.1.45 (64-bit), but 5.1.32 would have been supported.
  • Add this your .profile:

    export MYSQL_HOME=/usr/local/mysql-5.1.45-osx10.6-x86_64
    export PATH=$MYSQL_HOME/bin:$PATH

  • In your System Preferences application, start MySQL and make it start automatically at boot.
  • Change the password of the root user, for obvious reasons:

    mysqladmin -p -u root PASSWORD newpass

  • Make MySQL use the InnoDB engine by default, this is required for ATG: Create the file /etc/mysql/my.cnf with the following contents:

    [mysqld]
    default-storage-engine=innodb
    sql-mode=TRADITIONAL

Install and configure JBoss

  • Install JBoss; I used JBoss 4.2.3-GA (community edition), while the (paid) JBoss EAP 4.2.0 CP05 would be the ATG-supported version.
  • Add this to your .profile:

    export JBOSS_HOME=$HOME/jboss-4.2.3.GA
    export PATH=$JBOSS_HOME/bin:$PATH

  • Modify the JVM arguments in the startup script, if you want to comply with the ATG recommendations for JVM parameters. Edit the bin/run.sh file and modify the JAVA_OPTS setting as follows:

    JAVA_OPTS="-server -Xms2048m -Xmx3072m -XX:MaxPermSize=768m -XX:MaxNewSize=768m -Dsun.rmi.dgc.server.gcInterval=3600000 -Dsun.rmi.client.gcInterval=3600000"

Integrate MySQL with JBoss

  • Download the MySQL JDBC driver Connector/J, I got version 5.1.12.
  • Copy the Connector/J JAR file to the server/atg/lib directory under the JBoss home directory:

    cp ~/Downloads/mysql-connector-java-5.1.12/mysql-connector-java-5.1.12-bin.jar $JBOSS_HOME/server/atg/lib/

Install and configure ATG

  • Download ATG 9.1 from the ATG support site, this is a JAR file.
  • Unpack it and then execute the contained .bin file:

    unzip ATG9.1.jar
    sh ATG9.1.bin

    Choose JBoss as the application server. I suggest you make sure there is no space in the name of the destination director (I chose ~/atg-9.1).

  • Put your license keys in the home/localconfig/ directory (below the ATG installation directory).
  • Create the file home/bin/dasEnv.sh with just one line in it:

    export ATGJRE=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Commands/java

  • Create the file home/localconfig/atg/dynamo/service/jdbc/JTDataSource.properties with the following contents:

    JNDIName=java:/MySqlDS
    $class=atg.nucleus.JNDIReference

Initialize the ATG database

  • Under the JBoss directory, create the file server/atg/deploy/mysql-ds.xml with the following contents:

    <datasources>
    <local-tx-datasource>
    <jndi-name>MySqlDS</jndi-name>
    <connection-url>jdbc:mysql://127.0.0.1:3306/atg000</connection-url>
    <driver-class>com.mysql.jdbc.Driver</driver-class>
    <user-name>atg</user-name>
    <password>atgpass</password>
    <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
    <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLValidConnectionChecker</valid-connection-checker-class-name>
    <metadata>
    <type-mapping>mySQL</type-mapping>
    </metadata>
    </local-tx-datasource>
    </datasources>

  • Log in to the MySQL command line client mysql:

    mysql -p -u root

  • Create a database user for ATG:

    USE mysql
    INSERT INTO user (host, user, password) VALUES ('%', 'atg', PASSWORD('atgpass'));

  • Create a database for ATG:

    CREATE DATABASE atg000;

  • Allow the atg user all access privileges on the atg000 database:

    GRANT ALL PRIVILEGES ON atg000.* TO atg;
    FLUSH PRIVILEGES;

  • Exit the mysql client (you can use Ctrl-D).
  • Create the ATG data structures in the database by executing the DDL scripts on MySQL (this typically takes less than a minute):

    cat DAS/sql/install/mysql/das_ddl.sql DPS/sql/install/mysql/dps_ddl.sql DSS/sql/install/mysql/dss_ddl.sql DCS/sql/install/mysql/dcs_ddl.sql | mysql -D atg000 -u atg -patgpass

Run ATG

  • Deploy an ATG application to JBoss.
  • Start JBoss: Go to the JBoss directory and execute:

    bin/run.sh -c atg

  • Using a browser visit http://127.0.0.1:8080/dyn/admin/ to see the DynAdmin tool.
 
10 Comments

Posted by on 30 March 2010 in atg, darwin, jboss, mac, macos, macosx, mysql

 

The New OS Challenge: Data Integration and Synchronization

>Today’s OS challenge
In the past, operating systems had a limited function, synchronizing access to internal and external hardware, file systems, memory, processes, etc.

Nowadays, user’s demands far exceed these ‘simple’ requirements, expecting data integration and synchronization. People use different (portable) machines, applications and different (online) storage realms, and these all need to integrate in a customer-focused manner.

Examples: image manipulation, bookmarks, data exchange
For example, on Mac OS X images can be manipulated with all sorts of relatively cheap programs these days (e.g. Skitch, LittleSnapper, Acorn, Pixelmator, Picturesque, etc.) All these programs have a different focus and provide different functions, with some overlap. However, when you try combining the functions of these programs, you are facing a real challenge. What format do you use for data exchange? PNG is a good choice for one-way image manipulation, but then don’t try changing something in the middle of your process.

This challenge becomes even larger when you try exchanging vector images between multiple applications, like Keynote, Pages, NeoOffice, Novamind, Microsoft Office, etc. Both SVG and OpenDocument are formally standards, but they are currently far from practical for inter-application data exchange. On the Mac platform, EPS and PDF are typically the best bets. An established practical standard is lacking.

Another example is your bookmarks. How do you synchronize your bookmarks between Firefox, Safari, Opera and Internet Explorer? Each vendor starts to deploy his own web-based synchronization service (MobileMe, Opera Link, etc.) and there are some that go a bit further already (XMarks, Delicious) but we need one solution for all browsers that integrates with different operating systems.

Finally, notice how online data exchange services have started to emerge. For example Quicksnapper, Skitch.com, MobileMe, Flickr, YouTube, etc. These services make it easy to share data over the internet, but they are typically focused on one type of data (images or video, for example) and fail to integrate with different sorts of applications. Their focus is typically limited.

Dropbox is a positive exception here, providing a generic data exchange experience that is seamless across Mac OS X and Windows platforms, transparently working with all sorts of applications and providing limited history/backup/versioning support. However, optimally, applications should be adjusted so they recognize and support this platform.

And what if you want to view and edit your files on the fly from your mobile device, like an iPhone?

Network computer?
In the past, companies like Sun MicroSystems attempted to resolve these issues with a largely closed environment: the network computer, sporting a central server for sharing all applications and data. Although there are still (business) environments where this is an excellent solution, the majority of the customers requires more choice and an open system.

Operating system support
This is where an operating system like Mac OS X can make a big difference. OS X is already much appreciated for the system-wide services it provides, like spell checking, hyphenation, speech, etc. But these don’t go far enough.

For application interoperability, Apple should extend their vision, provide a platform and produce some guidelines. These should enable application developers to write interoperable programs that support tomorrow’s applications, collaboration and synchronization tools and data exchange methods, including versioning support.

This may require a strategic shift, as Apple is currently trying to make money off MobileMe, which is a closed and proprietary platform that has limited features and is based on an expensive yearly subscription model. Such a model is hardly suitable for large groups of customers that will look elsewhere for their data exchange requirements.

 

Espresso – First Impressions (Updated x2)

>As part of the MacHeist 3 bundle, I purchased Espresso, a neat little code editor for Mac OS X. It looks simple and intuitive and works well overall. For a code editor, the functionality is fairly limited, though.

It supports plugins, which Espresso calls sugars.

After using Espresso for just a couple of hours, here are some of the things I would suggest as improvements:

  • show that a line is wrapped by placing a special line wrap symbol at the end of the line that’s being wrapped;
  • support find in files instead of only supporting find in file names (which only works inside the current project);
  • when a search operation wraps (inside the current file) around, then have a clear visual signal indicating this, I currently have to take care that I watch the line numbers on the left;
  • allow opening new files in tabs by default, now I have to drag the tab to the main window every time;
  • allow tabs/spaces configuration per file type: I’d like to use tabs in XML files while using spaces in programming code (such as Java code);
  • include more themes in the distribution, instead of just a single one, for example one that looks like vim on a black background with syntax highlighting enabled;
  • on the theme website, show visual theme examples;
  • support theme import/translation from existing themes from other programs (e.g. Eclipse, NetBeans, vim, etc.) to Espresso;
  • make the file modified indicator stand out more (inside the tab header);
  • use common keyboard shortcuts for switching tabs, e.g. Alt-Shift-arrows (like Safari) or Cmd-Alt-arrows (like Firefox);
  • have keyboard shortcuts for moving tabs to the left or the right;
  • add Java support, including syntax highlighting and navigator-support;
  • support localization and provide support for the Dutch locale;
  • integrate visual CSS editing;
  • double-clicking on a folder in the project should open that folder;
  • workspace folders: it would be nice if a folder could be added in the workspace, for quick access;
  • MobileMe-support for publish servers would be nice to have;
  • have an option to remove trailing whitespace when saving files; in my opinion this could even be a global option for any file type, since I’d enable it for all; currently Espresso automatically inserts whitespace (to keep the indentation level) but it does not remove it;
  • when deleting an element/comment from the navigator, also delete the newline at the end – hence, if a comment occupies a line and there is nothing else on it, then the whole line should be removed;

These are things I consider bugs:

  • while searching, when I add or delete some text, the occurrence counter is not updated;
  • there are no small icon version of the “Action” and “Tools” icons, hence using the “Small icons” variant of the toolbar hardly increases the available screen estate;
  • while hovering over the icons in the toolbar, no icon title/description is shown, even if only icons are shown in the toolbar (without text below them);
  • when I click on Help -> Get Espresso Sugars the Coffee House website I’m sent to displays all sorts of errors (this is fixed as of April 9, 2009);
  • when the Settings button is clicked in the toolbar, the caption of the button changes to “Hide Settings”, moving the icon, instead the button should -in my opinion- just be visualized as depressed.

These features make Espresso stand out:

  • excellent Mac citizen: it’s fast, stable and integrates nicely in the Mac OS X environment;
  • the find/replace feature (inside a single file) works like the search feature in Safari, highlighting occurrences, while dimming the rest of the text: awesome;
  • dragging tabs between windows looks and works very nicely;
  • you can create a rectangular text selection using Cmd-Alt-mouseclick/-movement, which is very practical in some situations;
  • automatic XML ending tag completion – when you want to close an open XML element, just press the smaller-than-sign and the slash and Espresso will append the rest;
  • easy element/comment deletion: just select the tag or comment in the navigator and select Backspace – gone.

Note: Updated on April 9 and April 10, 2009, to add more details.

 
Leave a comment

Posted by on 8 April 2009 in code, edit, editor, espresso, ide, mac, macheist, macos, maxosx

 

iTerm Suggested Improvements

>iTerm is the best terminal emulator on the Mac, IMHO. It’s more customizable than the Leopard Terminal application and supports transparency, tabs, select-to-copy, middle-button-paste, a full-screen mode (with Cmd-Enter), etc.

Here are some suggestions for bringing iTerm closer to perfection, in order of (subjective) importance:

  • bug: scrolling a view while more output is added (for example when monitoring an active log file) does not work reliably, the view constantly jumps to the end of the output;
  • feature: have an option to briefly show tab titles while switching tabs; this is especially useful in full-screen mode, since the tabs are then not visible;
  • feature: have a keyboard shortcut for moving tabs to the left or to the right;
  • bug: when changing monitors (e.g. disconnect an external monitor), while iTerm is in full-screen mode, iTerm does seem to notice the resolution change, causing iTerm to show as an odd borderless window;
  • bug: if iTerm is active and you switch from the current Space to another and back, then iTerm is no longer on the foreground, but the Finder is;
  • bug: when switching to full-screen mode and a tab other than the first is active, then the contents of the first tab are briefly (~1 second) shown before the contents of the active tab are shown again.
 
Leave a comment

Posted by on 11 February 2009 in iterm, mac, macos, macosx, terminal

 

>Quick review of Pixelmator

>While still looking for a real Mac OS X image manipulation program to replace GIMP, I did a quick review of Pixelmator.

After starting Pixelmator, it’s obvious the developers have put a lot of time and effort into making this application look and feel like a charm. Although the black transparent look is not conform the standard Aqua look and feel on Mac OS X 10.5 “Leopard”, this does not reduce the usability of the application.

Pixelmator has more features than Acorn or Seashore combined together, but not as many as Photoshop or GIMP. But although there are a lot of features, for me just a few are important, since I need them on a day-to-day basis.

My findings based on a quick review:

  • There seems to be no way to remove a color profile, although color profiles can be assigned. This can be worked around by copying all and pasting from clipboard.
  • There is no Paste as New Image option.
  • An Autocrop feature seems to be unavailable.
  • A Crop to Selection features seem to be missing; and since a Paste as New Image option is also missing, this cannot be easily worked around. There is a Crop tool, but this is in my workflow not productive, since in the absence of an autocrop feature I typically (a) use the magic wand to select an outer part of an image, (b) invert the selection (c) crop to the selection.
 
3 Comments

Posted by on 8 September 2008 in image, image editor, image manipulation, mac, macos, macosx

 

>Features missing in Acorn

>I really like the looks of Acorn, a powerful little image manipulation program for Mac OS X. However, there are some hurdles for me adopting it to replace GIMP:

  • It’s not easy to remove all tranparency from an image. It requires creating a new background layer, filling it with white color and then flattening the image. In GIMP, it’s one command.
  • There is no support for viewing or removing color profiles. It seems a color profile can be removed by selecting all of the image, copying the selection to the clipboard and then creating a new image from the clipboard.
  • There is no support for quantization, to reduce the number of colors to produce an indexed color image.

Still, Acorn looks very promising. It looks and feels like an excellent Mac OS X-citizen. It seems strong in filters and automation, but that’s not what I am looking for…

 
Leave a comment

Posted by on 8 September 2008 in acorn, image editor, mac, mac os, mac os x, macos, macosx, osx

 

>Favourite Mac apps (updated x5)

>Here’s the list of my favourite Mac OS X applications:

  • Parallels Desktop — For running Windows and Linux in virtual machines. With Windows XP inside it, for testing web pages in Internet Explorer (6, 7 and 8 all have their own dedicated VM). (€80)
  • Adobe Acrobat 8 Professional — Version 9 probably runs better on my Intel Mac with Snow Leopard. I didn’t need all the extra stuff in the Professional edition, but there was no Standard edition for Mac. (version 9 is $450)
  • Cheap Impostor — For creating A3 and A4 booklets. Cheap, effective and fast. ($35)
  • NovaMind Express — For mind mapping, use it for interaction designs for web sites. ($50)
  • Firefox with the Firebug, Web Developer, Weave, CyberSearch, AdBlock Plus and SessionAlive extensions — Nothing beats the fox. (all free)
  • Acorn — Fairly simple image manipulation.
  • Skitch — Easy and simple image editing and sharing for everyone. (free)
  • GIMP — Advanced image manipulation, includingremoval of color profiles. Requires X11. (free)
  • NeoOffice — Complete office suite, based on OpenOffice.org code. No need to purchase Microsoft Office anymore, it even supports the new .docx and .xlsx file types. (free, donations welcome)
  • Skype — For video conferencing, also with non-Mac people; iChat video quality is much higher though. (free)
  • iWork — Nothing beats Keynote presentations! ($79)
  • Flip4Mac — Be able to watch Windows Media videos (WMV). (free version available)
  • iShowU — Screen video capture. ($20)
  • iTerm — Best terminal program for the Mac – beats Apple’s built-in Terminal application in terms of productivity and usability (free, donations welcome.)
  • iPartition — For dynamically changing hard drive partitions, includes resizing functionality. ($50)

And I’m considering adding the following to my toolset:

  • Pixelmator — For real Mac-style image manipulation. Question is whether it can do what I do with GIMP, including the removal of color profiles and such ($59).
  • Opacity — For creating very nice-looking icons, fast ($90).

Updates:

  • Sept. 11, 2008: Considering Pixelmator instead of Acorn, the latter just does not have enough features. And added iPartition as a favourite app.
  • Sept. 17, 2008: Added Chicken of the VNC and Chax and listed the price of iPartition.
  • March 9, 2010: Updated information on Parallels. Using a different set of Firefox extensions. Removed SuperDocker.
  • March 13, 2010: Added the SessionAlive extension for Firefox and Skitch.
  • March 31, 2010: Removed OmniPlan, Leap, Chax. Changed the link to GIMP on OS X. Added Acorn and added Web Developer extension for Firefox. Updated some descriptions.
 
Leave a comment

Posted by on 8 September 2008 in applications, apps, mac, mac os, mac os x, macos, macosx, osx