tgoirand.wordpress.com
Chrome Extension for CRX (CQ5) | Thomas Goirand's tech log
https://tgoirand.wordpress.com/2013/03/12/chrome-extension-for-crx-cq5
Thomas Goirand's tech log. Logs about Kindle, Java, Maven, CMS, Emacs and other stuff. Chrome Extension for CRX (CQ5). I’ve published today an extension for Chrome on the Google Webstore that allows to list all the CRX nodes from the current page. The extension can be especially useful for developers and testers who want to check a property name and value. It’s now possible to edit the values inline. It can be downloaded here. March 12, 2013 at 21:40. Or leave a trackback: Trackback URL. Fill in your det...
tgoirand.wordpress.com
Cleaning JCR from unused components | Thomas Goirand's tech log
https://tgoirand.wordpress.com/2013/03/12/cleaning-jcr-from-unused-components
Thomas Goirand's tech log. Logs about Kindle, Java, Maven, CMS, Emacs and other stuff. Cleaning JCR from unused components. In CQ5 if you delete a component (sling:resource) you will need to remove every reference to this resource within your content. To find all those references, use the following query:. Jcr:root/content/ *[@sling:resourceType = 'my/components/path']. To find the path as it’s used in the pages, use the ad-hoc the Chrome extension. March 12, 2013 at 21:53. Chrome Extension for CRX (CQ5).
tgoirand.wordpress.com
My emacs file | Thomas Goirand's tech log
https://tgoirand.wordpress.com/2013/07/30/my-emacs-file
Thomas Goirand's tech log. Logs about Kindle, Java, Maven, CMS, Emacs and other stuff. Running emacs on a mac with French keyboard. To install a recent version for cocoa. Brew install emacs - cocoa. Ruby (curl -fsSkL raw.github.com/mxcl/homebrew/go). My emacs file (if you need some files like emulate-mac-keyboard-mode.el stolen from Aquamacs), ask. July 30, 2013 at 17:19. Or leave a trackback: Trackback URL. Cleaning JCR from unused components. Leave a Reply Cancel reply. Enter your comment here.
tgoirand.wordpress.com
Mobipocket Algorithm for Java | Thomas Goirand's tech log
https://tgoirand.wordpress.com/2011/04/27/mobipocket-algorithm-for-java
Thomas Goirand's tech log. Logs about Kindle, Java, Maven, CMS, Emacs and other stuff. Mobipocket Algorithm for Java. I’ve implemented the mobipocket format compression algorithm for Java since it didn’t seem to exist. The aim is to have mobipocket format used by Kindle devices for opensource Java content management systems such as Nuxeo or Alfresco. It’s still experimental and before I make it public on java.net. April 27, 2011 at 11:01. Or leave a trackback: Trackback URL. Leave a Reply Cancel reply.
michid.wordpress.com
Generic array factory in Java: receipt for disaster | Michid's Weblog
https://michid.wordpress.com/2010/11/04/generic-array-factory-in-java-receipt-for-disaster
Generic array factory in Java: receipt for disaster. Let’s implement a generic factory method for arrays in Java like this:. Static T T[] createArray(T. t) { return t; }. We can use this method to create any array. For example an array of strings:. String[] strings = createArray(some, thing);. Now let’s add another twist:. Static T T[] crash(T t) { return createArray(t); } String[] outch = crash(crash, me);. Running this code will result in a ClassCastException on the last line:. Along the same lines.
michid.wordpress.com
Meta-Programming with Scala Part III: Partial function application | Michid's Weblog
https://michid.wordpress.com/2008/08/27/meta-programming-with-scala-part-iii-partial-function-application
Meta-Programming with Scala Part III: Partial function application. In my previous post. I suspected that there was no way to express partial function application in Scala’s type system. However Matt Hellige. Proofed me wrong in his comment. His solution uses a trait. For partially applying a function to some of its arguments. An abstract type. Exposed by the trait represents the resulting function which takes the remaining arguments. A full working example is available from my code page. 8230;] Level Pr...
michid.wordpress.com
Meta-Programming with Scala Part II: Multiplication | Michid's Weblog
https://michid.wordpress.com/2008/07/30/meta-programming-with-scala-part-ii-multiplication
Meta-Programming with Scala Part II: Multiplication. This was sitting on my desk for quite a while now while I was busy with other things. Finally I came around to write things up. In my last post. I showed how to encode the Church numerals. And addition on them with Scala’s. Define a lambda term for each natural number n. Stands for the n. Fold application of s. Standing for successor and z. For zero. Then the number n. Is simply the n. Fold successor of zero. Addition can now be define as. Fold success...