I've been using ECM for about a year now after switching over from MyUS.com.
OK, granted it shouldn't have taken me as long as it did to troubleshoot this little gem, but it did, so I'll post about it.
package MyApp::I18N::en;
use base 'MyApp::I18N';
our %Lexicon = (
'_AUTO' => 1,
'My_Silly_String' => "Hi there! These are some brackets! [woot!]",
);
1;
$c->log->debug("About to try to localize");
$c->log->debug("Localized: ".$c->loc('My_Silly_String'));
$c->log->debug("Wasn't that nice?");
Can't use "woot!" as a method name in bracket group, in:
Hi there! These are some brackets! [woot!]
==============================^ near there
via MyApp::I18N::en, as used at /usr/local/perl-5.10.0/lib/5.10.0/Locale/Maketext/Simple.pm line 178
Save yourself the cost of running out and buying a big old bottle of Excedrin right now and promise me you won't bother to try installing straight off of CPAN.
- Get Math::Pari 2.010801 and decompress it to (e.g.) /tmp
- Get PARI/GP 2.3.4 and decompress it to /tmp
- `mv Math-Pari-2.010801 pari-2.3.4`
- `cd pari-2.3.4 && ./Configure && make` (don't have to install if you don't want to.)
- `cd Math-Pari-2.010801 && perl Makefile.PL && make && make install`
I always get the extra insurance when I rent cars. It's usually around $15/day, and for those "just in case" times, it does end up saving a lot of money. At Nippon Rentacar, they call this insurance 'CDW'.
Ridiculously simple:
1) Open firefox
2) Remove any cookies from *.cnn.com
2) Create an 'exception' and block cookies from cnn.com
3) Go to http://edition.cnn.com/live
4) Watch inauguration coverage
5) Give the finger to geoblockers.
In other browsers, just disable cookies until the CNN Flash player opens and you should be good.
Warning: These instructions for use by Americans overseas ONLY. Disabling cookies does NOT prevent your computer's IP address (analogous to the address of your home) from being cross-referenced with fingerprint information on file with the United States Department of Homeland Security. Be prepared for The Glove when next you visit.
I'm evaluating Apache Lucene for full-text indexing and searching, as well as lucene-ws as a REST frontend to the indexes. For interacting with lucene-ws, I wrote my first test app using WebService::Lucene
Out-of-the-box I had a bit of a hard time getting lucene-ws up and running, so here are my notes:
- The doco on the website and in README regarding property names is somewhat out of date. Examples of my web.xml, service.properties and index.properties files are below.
- If you specify a `properties.file` in web.xml, and this file does not exist, your other settings in web.xml will be ignored and defaults will be used. Go ahead and make a service.properties for yourself and reference it in web.xml
- To enable analysis of CJK (Chinese, Japanese, Korean) I ended up using org.apache.lucene.analysis.cjk.CJKAnalyzer and using the Lucene 2.4.0 libraries. See install notes below.
INSTALLATION:
ENABLING LOGGING:
- Install the JDK and Apache Ant if you haven't already
- Grab the lucene-ws source: `svn co -q http://dev.lucene-ws.net/svn/lucene-ws/trunk/ lucene-ws`
- Remove the Lucene 2.3.0 core library: `rm ./lucene-ws/lib/lucene-core-2.3.0.jar
- Grab the Lucene 2.4.0 distribution and decompress it (see here for mirrors)
- From your Lucene 2.4.0 distribution, copy these 2 files into the lucene-ws/lib directory: `lucene-2.4.0/lucene-core-2.4.0.jar` and `lucene-2.4.0/contrib/analyzers/lucene-analyzers-2.4.0.jar`
- In the lucene-ws directory, edit conf/web.xml accordingly
- Build the package: `ant clean && ant package`
- Copy the generated warfile to your Tomcat webapps dir: `cp ./dist/lucene-ws-1.0_03.war /opt/tomcat/webapps/lucenews.war`
- Open up the Tomcat manager and click 'lucenews' to deploy the webapp
- Save the following content into file ./webapps/lucenews/WEB-INF/classes/log4j.properties
log4j.rootLogger = DEBUG, FILE
log4j.appender.FILE=org.apache.log4j.FileAppender
log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
log4j.appender.FILE.layout.conversionPattern=%p-%m%n
log4j.appender.FILE.File=/opt/tomcat/webapps/logs/lucenews.log
- Kick Tomcat
MY web.xml:
MY service.properties:<?xml version="1.0"?>
<web-app><display-name>The Lucene Web Service</display-name>
<servlet>
<servlet-name>LuceneWebService</servlet-name>
<servlet-class>net.lucenews.LuceneWebService</servlet-class><!-- ADJUST THESE SETTINGS BELOW AS NECESSARY -->
<!--
If the presence of a 'properties.file' parameter is detected, the web
service will attempt to repopulate the parameters with those found
within the file specified as the value.
-->
<init-param>
<param-name>properties.file</param-name>
<param-value>/var/local/lucene/service.properties</param-value>
</init-param>
</servlet><servlet-mapping>
<servlet-name>LuceneWebService</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping></web-app>
MY index.properties:debug = 1
index.directories = /var/local/lucene/
service.operator.<default> = AND
service.field.<default> = all
service.title = My Lucene-WS Instance
analyzer.class.name = org.apache.lucene.analysis.cjk.CJKAnalyzer
field.<default>.names = title,subtitle,abstract,tag,publisher,blurb
field.<identifier>.name = id
document.updated = updated_date
Hopefully these notes are of some use!
I've grown so used to finding everything in google that it makes me itchy when something returns 0 results. It's simply not possible.
So I'm going to post all the search terms I think should be out there somewhere.
I'm trying to recover some data off a friend's flaky laptop drive. To be specific, I need 1 8GB Outlook.pst file off of it. Outlook should really partition those files now and again...
Anyway, I'm getting this error. I know the drive is on the verge of death, but maybe some special mount options or args to dd would help?
The exact errors resemble:
[ 1730.400000] NTFS-fs error (device hdc1): ntfs_end_buffer I/O error, logical block 0x14fe5b5.
Not In Google: "ntfs_end_buffer"
Ginza Renoir runs several cafes throughout Tokyo, including 'Renoir' and 'Cafe Miyama.'
As a mobile employee I've come to use their cafes quite often because of the fact that they have Livedoor wireless at practically every location, and on top of that they are happy to let people use their electricity!
Why they don't advertise the fact that they are a mobile worker's oasis more strongly, I don't know, but I thought I would write them a letter about it:
Ginza Renoir / Cafe Miyama
お問い合わせ 担当者 様、
Cafe Miyama店と店、Renoirのや店をよくお訪ねするnaruzoと申します。
私はモバイルで働いている者で、Cafe Miyamaの美味しいアイスコーヒーを初め、便利なLivedoorホットスポットと電源の利用を許可する心をとても感謝していることお伝えしたいと思い、メールさせていただきました。
通勤によるガソリン燃焼や、オフィスの冷暖房による電気の消費等に繋ぐ地球温暖化を防止するため、いわゆる「e-ワーク」のプログラムを推進する会社が増えていますが、世界の中もっともテクノロジーの吸収率が高い、最先端の技術を持つ東京の中でも電源が使える「外のオフィス、家の近くのオフィス」になる店が多くありません。
サービスレベルと居心地のいい、「マイオフィス」になっているカフェの運用が続きますよう、お願いいたします。
ご返事は必要ありませんが、満足している客の一人より、宜しくお願いします。
ーnaruzo
Had some issues making an account. Nice looking site, but even minor tripups like this can cause potential customers to write off a site for good.
Hello! I ordered a pair of boots from your site today, but had problems. Due to the technical issues I experienced during the account creation phase on your site, had I been able to find the same boots elsewhere, I would have bought them elsewhere. Because of this, I thought I should let you know about my experience.
I entered all of my billing/shipping/account information into the proper fields (please also note, that I would recommend accepting PayPal, or not saving customer's credit card information on your servers. It is a liability to both you and the consumer.)
Upon submitting the form, I was told the first line of my address was over 30 characters, and that my zipcode contained an illegal character. I remedied these issues and submitted a second time.
The form reappeared, this time telling me that I had to enter a state for my shipping address. When I went to select a state, the dropdown menu was empty and I could not select a state. Because of this problem I had to re-enter all of my information from the beginning, which is never fun.
After creating the account, checkout was straightforward and I look forward to receiving the boots soon.
Thank you for your time.

Hey Naruzo,I just joined the community, saw your blog and thought I would comment and stat making friends right away.... read more
on Customer support: Earth Class Mail