JCPress 自動組版

JCPressは、新聞紙面、雑誌、電子書籍などの組版を自動的に処理するシンプル、見えるなシステムです。 JCPressは、JCScribusのDTPのソフトを基にして開発した自動組版機能を持つ総合システムです。管理者が日常に作成必要な新聞媒体、紙面のテンプレートや、雑誌、電子書籍などのテンプレートまたはマスタページを作成し、PageBuilderサービスにより素材を自動的に処理を行い、最新の組版ファイル、PDFファイル、画像ファイルを生成します。組版後の結果、進捗を常に管理画面から画像で確認できます。まさに紙面、雑誌、電子書籍などに自動処理を行うための最適なクラウドシステムです。

JCWriter記者端末

JCWriterは、縦書き、原稿モードの編集機能を提供するエディタです。Html、Textフォーマットのファイルを作成、編集に便利なアプリです。携帯端末から新聞記事、雑誌、電子書籍の専門的な編集機能を提供しています。 アプリを利用すれば、ビジネスドキュメント、ニュース、小説、雑誌、電子書籍などのファイルをテンプレートにして、修正、変更できます。生産性が向上します。また、編集されたファイルはHtmlなので、そのまま配信することも可能です。

CentOSにsudoを設定

いつも su を使って、root ユーザーに切り替えてから操作していたが、セキュリティ上の配慮があるので、sudo で root ユーザー権限を利用することがだんだん普及された。 方法としては、以下の通り: 1.まず sudo がインストールされているかを確認 [test@localhost ~]$ yum list installed | grep sudo sudo.i386   1.7.2p1-14.el5_8.3   installed [test@localhost ~]$ もしインストールされていなければ、root ユーザーに切り替え、下記のようにインストール。 [root@localhost ~]$ yum install sudo 2.次に sudo を設定 sudo コマンドのヘルプを確認しましょう。 [root@localhost ~]$ man sudo 上記のコマンドを実行すると、コマンドの使い方の説明が出てくる、最後の方に関連項目がある。 stat(2), login_cap(3), sudoers(5), passwd(5), visudo(8), grep(1),su(1). visudo コマンドを使って sudo の設定を行う。 visudo(/usr/sbin/visudo)を使って、sudo できるユーザーを /etc/sudoers に追記できる。 [root@localhost ~]# visudo いくつの設定箇所があるんのだが、sudo を利用できる最小限の箇所を弄る方針として、少なくでも下記の箇所を修正する必要がある。 ① ユーザーアカウント毎に設定するには ユーザーID   ALL=(ALL)   ALL ② グループ毎に設定するには この場合、グループ名の前に%を付ける。 %wheel   ALL=(ALL)   ALL 単なるユーザーとグループを設定するには、sudo コマンドを実行できるが下記のエラーメッセージが出る可能性がある。 [test@localhost ~]$ sudo  service httpd status [sudo] password for test: sudo: service: command not found このエラーメッセージが出た原因はコマンドのパスが通れていないことを示している。この場合、以下の修正が必要となる。 # Defaults specification # # Disable “ssh hostname sudo <cmd>”, because it will show the password in clear. #         You have … Continue reading

Windows2008多ユーザリモートアクセス

レジストの設定を変更することより、マルチユーザアクセスできるようになります。 方法 スタット⇒regedit入力 レジストパスのHKEY_LOCAL_MACHINE \ SYSTEM \ CURRENTCONTROLSET \control\ TerminalServer\fSingleSessionPerUser fSingleSessionPerUser存在しない場合、新規「fSingleSessionPerUser」を作成します。 fSingleSessionPerUserの値が1の場合、単ユーザです、0はマルチユーザです。

Hadoop-2.2.10 Single nodeのセットアップ

この文書はHadoopのローカルモードではなく、1機で分散処理環境の設定を説明します。設定後以下のインスタンスを起動します。 プライマリNameNode セカンダリNameNode DataNode ResourceManager NodeManager (MapReduce)HistoryServer 目次 共通 HDFS YARN MapReduce テスト 共通 ◇アカウントの権限 sudo権限を持つアカウントで下記の手順で実行します。環境変数を保つするために、実行アカウントの.bashrcに下記のaliasを追加します。 alias sudo=’sudo -E’ ◇必要の4つアカウントを作成します hadoop以外のアカウントでは、アカウントを作成するとき、Homeディレクトリを作成しなくてもOKです。 hadoopユーザとグループの作成 分散ファイルシステムサービス管理ユーザ:hdfs リソース管理とノード管理サービスユーザ:yarn MapReduceジョブ履歴管理サービス:mapred sudo adduser hadoop sudo adduser hdfs sudo usermod -G hadoop hdfs sudo adduser mapred sudo usermod -G hadoop mapred sudo adduser yarn sudo usermod -G hadoop yarn ◇作業ディレクトリを作成します mkdir /tmp/work ◇Java JDKをインストール CentOSの場合、Java OpenJDKがすでにインストールされている可能性があります。java -versionで確認できます。この文書ではOracleのjdk-7u45-linux-x64.gzを/tmp/workにダウンロードしてインストールします。 ダウンロード後解凍してインストします。 cd /usr/local tar xvzf /tmp/work/jdk-7u45-linux-x64.gz ln -s jdk1.7.0_45 jdk ◇hadoop-2.2.0をダウロードして「/」に解凍します cd /tmp/work wget http://ftp.tsukuba.wide.ad.jp/software/apache/hadoop/common/stable2/hadoop-2.2.0.tar.gz cd / tar xvzf /tmp/hadoop-2.2.0.tar.gz chown -R root:hadoop hadoop-2.2.0 ln -s /hadoop-2.2.0 hadoop ◇環境変数の設定 各アカウントに環境変数をそれぞれ追加するより、/etc/profileに追加すると便利です。 #java jdk home export JAVA_HOME=/usr/local/jdk #hadoop environment export HADOOP_PREFIX=/hadoop export HADOOP_MAPRED_HOME=$HADOOP_PREFIX export HADOOP_COMMON_HOME=$HADOOP_PREFIX export HADOOP_HDFS_HOME=$HADOOP_PREFIX export HADOOP_YARN_HOME=$HADOOP_PREFIX export YARN_HOME=$HADOOP_MAPRED_HOME export … Continue reading

WordPressプラグイン「Multi Device Switcher」でAndroidスマホとタブレット端末のWordPressテーマ切り替え方法

WordPressプラグイン「Multi Device Switcher」は iPhone, iPod, Nexus 7 などデバイスの名称 (ブランド) をベースに WordPress のテーマを切り替えることを基本としています。 そこで問題になるのが Android OS のデバイスです。 Android はオープンソースで、メーカーは Android を自由にデバイスに組み込めるため、いろいろな Android 端末がリリースされます。ほんとうに多彩です。 現状「Multi Device Switcher」でもデフォルトのユーザーエージェント設定は、スマートフォン用のユーザーエージェントに「Android」が入っています。Android が搭載されているスマホとタブレット端末の両方がスマートフォン用テーマに切り替えられます。 そこで「Android スマホとタブレット端末別々に切り替えられないの?」「やってみたけれどうまくできなかった」とご質問をいただきます。 Android スマートフォンとタブレット端末でウェブページをブラウザで閲覧するとユーザーエージェントには両方とも「Android」の文字列が入ります。ここがくせ者になっています。 またタブレット端末は PC 用のウェブサイトが表示されることを期待している場合も。 Google ウェブマスター向け公式ブログ: タブレット端末ユーザーにはフルサイズのウェブを表示しましょう Official Google Webmaster Central Blog: Giving Tablet Users the Full-Sized Web ということで前置きが長くなりましたが、WordPressプラグイン「Multi Device Switcher」で Android に対応したテーマの切り替え方法をシェアしたいと思います。 Androidスマホとタブレット端末のWordPressテーマ切り替え設定の仕方 WordPressプラグイン「Multi Device Switcher」の新機能「Custom Switcher」を使って Android スマホとタブレット端末のテーマを切り替えます。 Android スマホはスマートフォン用テーマに切り替え、タブレット端末は PC 用ウェブサイト (通常のテーマ) を表示する WordPress メニュー「外観 > マルチデバイス」へ Custom Switcher に「Android」と入力して「追加」ボタンを押します。 タブを「ユーザーエージェント」に切り替えて「Android」の項目に「Android.*mobile」を入力。 Android.*mobile 「スマートフォン」にあるユーザーエージェント「Android」を削除。 iPhone, iPod, dream, CUPCAKE, Windows Phone, webOS, BB10, BlackBerry8707, BlackBerry9000, BlackBerry9300, BlackBerry9500, BlackBerry9530, BlackBerry9520, BlackBerry9550, BlackBerry9700, BlackBerry 93, BlackBerry 97, BlackBerry 99, BlackBerry 98 タブを「テーマ」に切り替えてテーマを選びます。Custom Switcher「Android」で Android スマホでウェブサイトを見たときに切り替えるテーマを選びます。 「タブレット端末用テーマ」で「None」を選びます。 「変更を保存」ボタンを押します。 設定完了 Android スマホはスマートフォン用テーマに切り替え、タブレット端末はタブレット端末用テーマに切り替え表示する WordPress メニュー「外観 … Continue reading

OpenXML Spreadsheet, how to copy and insert specified rows

We usually use OpenXML spreadsheet to create excel document and report. For some document and report, sometimes we hope copy and insert some rows or columns automatically. For example , we want to output a list data into excel worksheet whose element has 3 formatted rows including some merge cells etc. If list’s size is 10, we hope copy 3 formatted rows of first element 10 times and insert copied rows below the first element rows automatically. In OpenXML spreadsheet, when you copy some rows and insert copied rows into destination, there are many works to do. First, in the copied rows, maybe there are some merge cells, data validate … Continue reading

ExcelTDF, create excel report by metadata quickly

ExcelTDF provides very simple way to create complicated excel report. ExcelTDF is able to process row range, column range, block range and complicated range which including some child ranges such as list, list clone range, list-in-list range etc. You can define these ranges by Metadata. Let us show some examples. Download Metadata examples FastExcelReport 1. Create a console application project: assume it is S:\project\FastExcelReport. 2. Set ExcelTDF configuration as following. 2.1. Add ExcelTDF repository configuration file Repository.config into your project. The content of Repository.config is shown as following <?xml version="1.0" encoding="utf-8" ?> <objects xmlns="http://www.springframework.net"> <object id="mydemo" type="JanaBiz.OpenXml.Repository.FileSystemRepositoryManager, JanaBiz.OpenXml"> <property name="RepositoryName" value="mydemo"/> <property name="RepositoryUri" value="../Templates"/> </object> </objects> By the above configuration, … Continue reading

ExcelTDF Package Introduction

1. What is ExcelTDF 2. Introduction 3. Overview 3.1. How to use ExcelTDF in your solution As the following diagram shows, ExcelTDF is able to run at server-side, client-side and client-only. The interface and usage is the same wherever the ExcelTDF is running. For the both server-side and client-side, the templates of excel are managed on the server. The difference between server-side and client-side is that client-side provides auto saving functionality. 3.2. ExcelTDF Core classes ExcelTDF does almost of work for you by some core classes. Excel2007TemplateParser and Excel2007DataParser are the two of these classes. But the convenient way for you is using implementation classes of IExcelHandler or IOpenXmlHandler interface … Continue reading

Berkeley DBXML .NET Edition API Examples

下記のサンプルは、Berkeley DBXML .NET Edition APIを利用して、XMLドキュメントの作成、保存、取得、検索、クエリなどの使い方を示します。また、複雑のXMLクエリを対応しているサンプルも挙げます。 Create XmlContainer public void CreateContainer() { dirHome = @”c:\temp”; DbEnvironmentConfig eConfig=DbEnvironmentConfig.CreateDefaultConfig(); dbEnv=new DbEnvironment(dirHome,eConfig); XmlManager.SetLogLevel(LogLevel.All, true); XmlManager.SetLogCategory(LogCategory.All, true); XmlManagerConfig xmlManagerConfig = new XmlManagerConfig(); xmlManagerConfig.AllowExternalAccess = true; xmlManager = new XmlManager(dbEnv, xmlManagerConfig); XmlContainerConfig config = new XmlContainerConfig(); config.AllowValidation = false; config.ContainerType = XmlContainerType.WholeDocContainer; XmlTransaction xmlTransaction = xmlManager.CreateTransaction(); xmlContainer = xmlManager.CreateContainer(xmlTransaction, containerName, config); xmlTransaction.Commit(); xmlUpdateContext = xmlManager.CreateUpdateContext(); docConfig=new XmlDocumentConfig(); xmlQueryContext = xmlManager.CreateQueryContext(); } Put XmlDocument, query and get XmlDocument public void CreateLocalFileInputStreamUTF8() { string filename = @”..\..\input\UTF-8.xml”; xmlInputStream = xmlManager.CreateLocalFileInputStream(filename); XmlTransaction txn = xmlManager.CreateTransaction(); xmlContainer.PutDocument(txn, filename, xmlInputStream, xmlUpdateContext, docConfig); txn.Commit(); xmlInputStream.Dispose(); txn.Dispose(); txn = xmlManager.CreateTransaction(); Console.WriteLine(“Document Numbers = ” + xmlContainer.GetNumDocuments(txn)); string xpath =”/NewsML/InMClass1[text()=\"レース電文\"]“; string myQuery = “collection(‘” … Continue reading

Berkeley DBXML .NET Edition 2.5.16

What is Berkeley DBXML .NET Edition Berkeley DBXML .NET Edition is Berkeley DBXML .NET API created by C# to enable you call oracle Berkeley DBXML from .NET programs and applications. Berkeley DB XML is oracle open source product which implemented as C++ library on top of Berkeley DB. BDB XML is distributed as a shared library that is embedded into the client application. The BDB XML library exposes API’s that enable C++ and Java applications to interact with the XML data containers. Our Library provides .NET API to support .NET application to interact with XML data containers. The following figure illustrates the Berkeley DB XML system architecture. About more Berkeley … Continue reading