久々のポストです。(そういやFxGlassFishMonitorの解説も1回書いただけでさぼってるなー。こちらも早くまとめねば) 今、仕事で完全に社内向けの管理用Webアプリケーションを作っているのですが、どうせ完全に内部向けなら古いブラウザなんか気にせずHTML5で追加されたフォームをばんばん使っちゃえ♪ って感じで作っています。 で、ふと、「JavaFXのWebViewはWebKitベースなんだけど対応状況はどうなんだろう?」と思って調べてみたら意外に対応状況が優秀だったことがわかりました。さすがにChromeには負けますが、Safariよりは対応が進んでいたりします。と言うわけでその点についてまとめてみます。 以下のコードを表示してみることにします。 <!DOCTYPE html> <html lang="ja"> <head> <meta http-equiv="Content-T
KVS界隈ではすっかりおなじみ(?)のRedisですが、当社でも徐々にそのニーズが高まってきました。 標準機能として、レプリケーション、Pub/Sub、ソート等の便利機能が満載のRedisですが、サービスに投入する際に冗長構成をどう組むかといった点が気になっている方もいるのではないでしょうか。 まだまだ検証中ではあるのですが、Redisに実装されているRedisSentinelを用いて冗長構成を組んだ際にハマった所をご紹介したいと思います。 RedisSentinelとは Redisに標準実装されている機能の一つで、Redisのステータス監視、通知、自動フェイルオーバーが行なえます。 詳細な仕様、設定に関しては以下のドキュメントをご確認下さい。 http://redis.io/topics/sentinel RedisSentinel導入前の構成 特に何の変哲も無い構成です。 Redisサ
tl;dr Send your socket fd over a UNIX domain socket: syscall/passfd_test.go. When your server holds long running connections (WebSocket, long-running HTTP, IRC, XMPP, etc) you often want to be able to upgrade the server without dropping the connections (zero downtime upgrade). In UNIX there are at least two ways to do this: Inherit the file descriptor Send the file descriptor over a domain socket
Several months ago while doing engineering work at a startup, I ran into a problem that demanded an efficient backend that could scale up/out/etc. The existing implementation was part of a Rails app, and we couldn’t reasonably grow within that framework. The company had almost no non-Rails code, so a larger question arose about which language we should use. While at Google, I spent the better part
For my recent LambdaJam workshop on learning Clojure macros from first principles, I created a set of materials exploring the basic concepts. To really understand macros, you first need to have a good understanding of what makes them so powerful — homoiconicity. In this post, we’ll explore that property of the language. Code Is Data; Data Is Code Clojure is a lisp, one of a family of languages kno
If $x$ is a positive rational number, but not an integer, then can $x^{x^{x^x}}$ be a rational number ? We can prove that if $x$ is a positive rational number but not an integer, then $x^x$ can not be rational: Denote $x=\dfrac{b}{a},(a,b)=1,x^x=\dfrac{d}{c},(c,d)=1,$ $$\left(\dfrac{b}{a}\right)^\dfrac{b}{a}=\dfrac{d}{c} \hspace{12pt}\Rightarrow \hspace{12pt}\left(\dfrac{b}{a}\right)^b=\left(\dfra
Procedural content generators are bits of code written into your game that can create new pieces of game content at any time - even when the game is running! Game developers have tried to procedurally generate everything from 3D worlds to musical soundtracks. Adding some generation to your game is a great way to plug in extra value: players love it because they get new, unpredictable and exciting
ant の scriptdef タスクを使うとタスクの実装を JavaScript で書くことができます。 それを使ってとある Web サービスを使う build.xml を書いてみました。 背景 mBaaS に分類される Kii Cloud というサービス を使うにあたって、ちょっとしたツールが必要になりました。テストに使うユーザを作成したり、テストが終わったら消したりするツールです。それらの操作には REST API を叩く必要があります。もちろん Kii Cloud には Android用とかiOS用のライブラリが提供されているのですが、今はテスト用ツールということでそれらのライブラリを作ってアプリを作るよりは、直接 REST API を叩いてしまったほうが良いという状況でした。 しかしそのために Python や Ruby なんかでスクリプトを書いても、このツールを使う人にそれらの
allcolors.js # (view raw) Print out all colors from computed styles used in elements on the page. Uses styled console.log calls to visualize each color. // allcolors.js // https://github.com/bgrins/devtools-snippets // Print out CSS colors used in elements on the page. (function () { // Should include colors from elements that have a border color but have a zero width? var includeBorderColorsWit
I’m working on a random level generator for a game that, although written in C++, is modular such that the level generator can be written in something more high-level. As C++ isn’t always the most fun and productive language to program in, I set out to benchmark some potential alternatives, using a simple Roguelike level generation benchmark that relies heavily on iteration and conditionals and he
著作 SCRUM BOOT CAMP THE BOOK 著者/訳者:西村直人 永瀬美穂 吉羽龍太郎 出版社:翔泳社( 2013-02-13 ) 定価:¥ 2,520 スクラム初心者に向けて基本的な考え方の解説から始まり、プロジェクトでの実際の進め方やよく起こる問題への対応法まで幅広く解説。マンガと文章のセットでスクラムを短期間で理解できます。スクラムの概要を正しく理解したい人、もう一度おさらいしたい人にオススメ。 CakePHPで学ぶ継続的インテグレーション 著者/訳者:渡辺 一宏 吉羽 龍太郎 岸田 健一郎 穴澤 康裕 出版社:インプレス( 2014-09-19 ) 定価:¥ 4,320 Webアプリケーション開発における継続的インテグレーションについて、CakePHPのサンプルをベースにして、その概要から使用ツール解説、導入方法、メンテナンスまでを解説 Chef実践入門 ~コードによる
A collection of sloppy snippets for scientific computing and data visualization in Python. In Chapter 6 of the book Natural Language Processing with Python there is a nice example where is showed how to train and test a Naive Bayes classifier that can identify the dialogue act types of instant messages. Th classifier is trained on the NPS Chat Corpus which consists of over 10,000 posts from instan
自分の研究に間接的に使うことになって、最近勉強したのでメモ テキストセグメンテーションとは? 自然言語処理の一種で、ブログなどの色々なトピックがごちゃまぜに書かれている非構造な文書を、ニュースのようにトピックごとに分割する手法です。 例 こんな感じに、段落ごとにコロコロとトピックが変わる節操のないブログが記事があったとします。 旅行 旅行 スポーツ 仕事 スポーツ 旅行 旅行 テキストセグメンテーションはこのような非構造な文書を、トピックが変わったところで分割してくれます。 旅行 旅行 スポーツ 仕事 スポーツ 旅行 旅行 応用先 ではテキストセグメンテーションができると何がうれしいのか? 有望な応用先は、評判抽出、検索、要約といった他の自然言語処理の前処理に使用することです。自然言語処理の様々な手法は、1つ1つの文書に対して処理を行うように考えられていますが、あらかじめトピックごとに分割
A rough summary in English which might sound too more direct than the original Japanese version. Sorry if you feel attacked: pro came in and did great jobs, while a volunteer felt burnt out. Probably this kind of things happens in the world everyday, in OSS, in football, in finance, or in everything. But if he had been excluded from the project for pro's quick market domination..., it would not be
April 6, 2012 Volume 10, issue 4 PDF CPU DB: Recording Microprocessor History With this open database, you can mine microprocessor trends over the past 40 years. Andrew Danowitz, Kyle Kelley, James Mao, John P. Stevenson, Mark Horowitz, Stanford University In November 1971, Intel introduced the world’s first single-chip microprocessor, the Intel 4004. It had 2,300 transistors, ran at a clock speed
I've been spending a lot of time in JavaScript land lately. It's not totally unexpected – when I first applied for a job with Mozilla, I was warned only semi-jokingly that "they hire all the best Python programmers and then force them to write JavaScript". I've no deep love or hate for it as a language, but JavaScript is pretty interesting to me as a platform, as a kind of runs-everywhere lowest-c
One of the difficulties inherent in machine learning techniques is that the most accurate algorithms refuse to tell a story: we can discuss the confusion matrix, testing and training data, accuracy and the like, but it’s often hard to explain in simple terms what’s really going on. Practically speaking this isn’t a big issue from an engineering perspective, but in a general political sense it is-
Licensing in a Post Copyright World written on Tuesday, July 23, 2013 The GPL used to be the cornerstone of the Open Source movement. At least it always felt that way. Clearly if you looked closer the situation has always been a situation of many licenses and the GNU GPL was only a small part of it. In recent years however it has become painfully obvious that a lot of developers have built up an o
More than 5,000 organizations trust O’Reilly to help their teams learn the technologies of today—and be ready for what’s next. We can help yours too. It’s time to upskill your teams to leverage generative AI LLMs aren’t just the future of work—they’re the now. Learning to use large language models is vital for every business and every knowledge worker. O’Reilly has all the resources your team need
(追記:2014-3-3) Gvizについてのまとめ頁を作りました。 Gvizの目次 - Rubyの世界からGraphvizの世界にこんにちは! (追記:2013-08-09) Gvizバージョンアップによりgvizコマンドの仕様が変更になりました(version0.2.0)。詳細は以下の記事を参照してください。 ピクミンがGraphvizにやって来た! RubyによるGraphvizラッパーGvizのversion0.0.7を公開しました。 gviz | RubyGems.org | your community gem host Gvizを使えば簡単に有向グラフや米国統計地図や地下鉄路線図が書けます。 インストール Graphvizが必要です。自分のプラットフォームに合ったものを以下から入手して下さい。 Download. | Graphviz - Graph Visualizatio
Most of the time developers blame Laravel for using too much static. This claim is not true in case of Laravel 4, let’s dig in and discuss why and how. What is static?In PHP you call it like this Class::$property. As the name suggests, it preserves the state. Static variables preserve their values across the lifetime of the running application(in our case request). In a class if a static property
vim タブページ みなさんvimのタブページ機能を使っていますか? この一番上のバーに出ている、ブラウザなどでよくある「タブ」のことです。↓ これはvim 7.3から導入された機能なのですが、なぜかあまり使われていません。 Google検索 vim タブページ しかし、これはめちゃめちゃ便利です! 今までtmuxでvimを複数個立ち上げており、ちょっと別の作業をするときは別のvimを起動していたのですが、タブページを利用することによって1つのvimで作業することができ、更にヤンクももちろんタブ間で共有されるので開発効率がかなり上がりました。 あまり使われていない原因はおそらく、デフォルトの状態だと、タブ間の移動がかなりめんどくさいからだと思います。 デフォルトはこんな感じ 右側のタブに移動するたびに :tabnext ラストのタブに移動するには :tablast など打っていられません。
ちょうどいくつかプレゼン用の資料を作らなきゃと思っていてなんかいいテンプレートないかな〜って探していたらのでreveal.jsが超絶に良かったのでメモ reveal.js htmlで綺麗でカッコいいプレゼンテーションを作れるフレームワークです。 3Dでグィングィン動きます デモ画面見ればどんな風にグィングィン動くかわかります(開いたら右スクロールボタンを押してみてください) Escキー押すとプレゼンテーションのドキュメント一覧が見れます それがまたカッコよく3Dでみれます。 PDFへのエキスポートが楽チンです 書いたドキュメントをプリントしてメンバーに配布とかってシーンがあるとおもいますが reveal.jsなら綺麗にできます。 使い方 zipパッケージで落としてくる hakimel/reveal.jsにいって 「Download ZIP」をポチッと押します。 書きたい内容をindex.h
「ざっくりわかる DevOps ~ ビジネスよ!これがおれたちの力だ!」に参加してきた #agilesamurai #横浜道場 横浜道場 特別編 「ざっくりわかる DevOps ~ ビジネスよ!これがおれたちの力だ!」 - アジャイルサムライ読書会 横浜道場 | Doorkeeper 2013/07/23 #agilesamurai #横浜道場 特別編 「ざっくりわかる DevOps ~ ビジネスよ!これがおれたちの力だ!」 - Togetter 『DevOps』。こちらのキーワードも、最近IT業界で良く聞くようになって来ております。とは言うものの、中々捉えづらい部分もあったり、また実際現場に採り入れてみてはいるものの思った成果が...という方も多いのでは無いでしょうか。 そんな折、"ざっくりわかる"と題して長沢 智治さんによるDevOps入門的位置付けとも言えるような講演が『アジャイルサ
Little Lisp is an interpreter that supports function invocation, lambdas, lets, ifs, numbers, strings, a few library functions, and lists. I wrote it for a lightning talk at Hacker School to show how easy it is to write an interpreter. The code is 116 lines of JavaScript. I will explain how it works. First, let’s learn some Lisp. Basic Lisp This is an atom, the simplest Lisp form: 1 This is anothe
Typically any time the topic of security and software packages, in my case typically Python packages, comes up someone seems to come up with the "helpful" suggestion of "Just Use X!", where X is typically GPG but can be any of a wide range of signing technologies. Quite often the people suggesting it have latched onto signing packages as some sort of voodoo you can throw at the problem and magical
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く