2016-07-01から1ヶ月間の記事一覧

Ant で git タスクを使う方法

Ant

Ant でちょっと git タスクを利用したい、という時には、必要なファイルの取得および build.xml 記述が必要です。これのための個人的なメモ。 以下のような手順で必要なファイルをダウンロードして、タスクで実行します。すると、Ant で git タスクが利用可…

メモ: クラス取得

SFDC Tooling API を使って SFDC から Apex クラスを取得する例。 public static ApexClass getApexClass(final ToolingConnection toolingConnection, final String className) throws ConnectionException { final String soql = "SELECT Id, name, FullNa…

メモ: クラス作成

SFDC Tooling API を使って SFDC に Apex クラスを新規作成する例。 public static String createApexClass(final ToolingConnection toolingConnection, final String classBody, final StringBuffer sbufErrorMsg) throws ConnectionException { final Ape…

メモ: クラス更新

SFDC Tooling API を使って SFDC に Apex クラスを更新する例。 public static boolean updateApexClass(final ToolingConnection toolingConnection, final String classId, final String classBody, final StringBuffer sbufErrorMsg) throws ConnectionEx…

認定試験メモ

SFDC: 開発者向け新資格体系と移行試験 (認定Platformデベロッパー) http://www.salesforce.com/jp/services-training/education-services/cert/dev/ 学習ガイド http://www.sfdcstatic.com/jp/assets/pdf/misc/studyguide_cert_pla_dev1.pdf Salesforce: 受…

メモ: ToolingConnection取得

SFDC Tooling API の利用前提となる ToolingConnection を取得する例。 final Properties props = new Properties(); try (Reader reader = new FileReader("build.properties")) { props.load(reader); } final ConnectorConfig connConfig = new Connector…

Mac をスクリーンロックするショートカット

ちょっと離席する場合などに Mac をロックする際に必要となるキーボードのショートカットは以下です。 control + shift + power離席をする際のルーティーンとして押す癖を組み込みたいです。 関連する日記 2016-04-07 Mac OS X でファイルサイズの大きいもの…

機械翻訳OSSメモ

Apache 孵化プロジェクトに こういうものがあるのだそうです。 Apache Joshua (Incubating) https://cwiki.apache.org/confluence/display/JOSHUA/Apache+Joshua+%28Incubating%29+Home https://github.com/apache/incubator-joshua

シンプル Visualforce サンプル

シンプルな Visualforce + Apex のコーディングを忘れがちなのでこれをメモ。 public without sharing class MySimpleClass { public String myMessage {get;set;} public MySimpleClass() { myMessage = 'Hello world!'; } } <apex:page controller="MySimpleClass"> <h1>Congratulations</h1> <p><apex:outputtext value="{!myMessage}" /></p> </apex:page>

Test で こんにちは世界

@isTest public without sharing class MySimpleTest { static testMethod void testMain001() { System.assert(false, 'テストエラーとして見える、Apex による、こんにちは世界!'); } }

Enterprise API によるSFDC接続

SFDC接続 public static EnterpriseConnection getEnterpriseConnection() throws ConnectionException { final ConnectorConfig connConfig = new ConnectorConfig(); connConfig.setUsername("UserName"); connConfig.setPassword("password"); connConfig…

購入メモ: UNIQLO ドライEX フルジップパーカ (XL)

電車などで冷房エアコンがキビシイと感じた時に UNIQLO ドライEX フルジップパーカ (XL)は、さっと羽織ることができて重宝しています。(ポリエステル100%. XL. ネイビー色)

Commons IO によるファイルI/Oコード省力化

Apache Commons IO の活用によって、自前のコーディングを省略できます。何をどう使うのか、よく忘れるのでこれをメモします。 Apache Commons IO https://commons.apache.org/proper/commons-io/ ファイルの書き込みは以下のように書きます。deprecated な…