Sage days in Japan Sage days 39 土曜日の前半は, 初心者向けチュートリアルセッションを行います. まだSageを使ったことがないという人や 少し使ってみたけどよくわからなかったという人をターゲットとして, 概説及び演習を行います. 各自パソコンを持参してください. 土曜日の後半から日曜日午前までは, 講演やデモがメインのセッションを行います. 日曜日の午後は今後の開催方針などの打ち合わせを行う予定です. 両日とも, 九州大学伊都キャンパス 数理学研究院/マス・フォア・インダストリ研究所 大講義室3 にて行います. [アクセスなど] プログラム 5/26(土) 10:00-11:30 横山 俊一 / Shun'ichi Yokoyama (九州大学大学院 数理学府) 数式処理システム Sage への誘い / A brief tour of some of S
Boost 1.53.0 で多倍長整数ライブラリである Boost.Multiprecision が追加されたのでフィボナッチ数列を出力してみた。 コード自体はベタ書き。 [ソース] #include <iostream> #include <boost/multiprecision/cpp_int.hpp> int main(){ typedef boost::multiprecision::cpp_int int_type; int_type first = 1; int_type second = 1; for(int i = 0 ; i < 200 ; ++i){ int_type third = first + second; first = second; second = third; std::cout << third << std::endl; } return 0;
A python module to simplify reading and writing structured binary files (or file-like objects, it is also useful for reading and writing network packages for example). This module is a convenience layer on top of standard python module "struct". Tested with python 2.7 and 3.2 Quick example: import binio from binio.types import * rgbColourIO = binio.new( [ (1, t_float, 'red'), (1, t_float, 'green')
Start Writing More Classes written on Wednesday, February 13, 2013 The Python community in my mind has the dangerous opinion that classes are unnecessary fluff that should be replaced with functions wherever possible. The fact that there is a talk of the title “Stop Writing Classes” with 50.000 views on YouTube is not helping. I want to give a counter argument to this idea that classes are evil by
I am a totally blind college student who’s had several programming internships so my answer will be based off these. I use windows xp as my operating system and Jaws to read what appears on the screen to me in synthetic speech. For java programming I use eclipse, since it’s a fully featured IDE that is accessible. In my experience as a general rule java programs that use SWT as the GUI toolkit are
統計を学び始めると「t検定」というのが最初のほうで出てくると思います。 t検定は、20世紀前半に活躍した統計学者、ウィリアム・ゴセットによって「小標本問題」というのを解決するために考案されました。 小標本問題とは、正規分布の平均値の検定に正規分布を用いると、サンプルサイズが小さい場合にαエラーを過小評価してしまうという問題です。 今日はこの小標本問題とそれを解決する t検定について R によるシミュレーションを使って説明してみたいと思います。 正規分布の平均値の検定 確率変数 が正規分布に従うとき、その平均値もまた、正規分布に従います。 数式で書くと、 となります。(分散が されていることに注意) なので、正規分布の平均値の検定には正規分布を使用すれば良いように思われます。 これを R でシミュレートしてみましょう。 # 正規分布を使用して平均値が 0 と等しいかの p値を求める norm
はじめに 統計解析の手法を学ぶのに、教科書を読むのは素晴らしい学習方法です。 しかし、教科書で理論的なことを学んだだけでは、統計手法を使いこなせるようにはなりません。 統計解析手法を身につけるには、実際のデータについて手法を適用し、パラメータを変えるなどの試行錯誤を行い、結果を考察するというような経験を積むことが大切です。 それでは実際のデータをどうやって手に入れましょうか? 実験や調査をして実際のデータを得るのは大変でお金もかかります。 幸運なことに、世の中には適度なサイズの自由に使えるデータがたくさん存在します。 例えば、統計言語 R には、100以上ものデータセットがデフォルトで付属しています。 ただし、不幸なことに、それらのほとんどは英語で説明が書かれています。 英語は、いつかは乗り越えなければならない壁ですが、最初のうちはちょっと避けて通りたいところです。 というわけで、今日は、
TypeScriptのDeclarationファイルを公開しているGitHubリポジトリ 先日、REST APIのリファレンスを生成するフレームワークの記事を書いた際に、REST APIを叩くサンプルクライアントをTypeScriptで書いてみました。このサンプルではライブラリとしてjQueryとKnockoutを使ったのですが、JavaScriptで利用するときと同じように書くと、$などのキーワードが宣言されていないのでTypeScriptのコンパイルが通りません。jQueryの場合は$を、Knockoutの場合はkoをany型でアンビエント宣言してしまえばあとはいつも通りに書くだけでOKなのですが、せっかくなのでなるべく型付けして書くことにしました。 TypeScriptの場合、JavaScriptのライブラリを型付けして利用するには、Declarationファイルというインターフェー
自然言語処理の技術が盛んに研究されており,検索・翻訳・自動応答・校正など,さまざまな分野での実用化が進んでいる。IBM Research(基礎研究部門)における当分野の取り組みとして,2011年に米国のクイズ番組において人間と対戦した質問応答システム「Watson」のほか,大量の文書からビジネスに有用な知識の発見を補助するテキストマイニング技術「TAKMI」などがある。これらの成功に共通する点は,人間が苦手とする処理をコンピューターに代替させたこと,人間が持つ言語に関する知識をコンピューターに与える手段を確保したこと,そして人を驚かせる結果を出したことである。情報が日々増大する中で,どのような技術を研究開発し,また活用していくべきか,計算言語学の研究者の観点から論じる。
I've been playing the same game of Civilization II for almost 10 years. This is the result. http://imgur.com/a/rAnZs I've been playing the same game of Civ II for 10 years. Though long outdated, I grew fascinated with this particular game because by the time Civ III was released, I was already well into the distant future. I then thought that it might be interesting to see just how far into the fu
Stay on the path… The skies are dark, and the smell of oil and rot fill the air, rising up from the stagnant water permeated throughout countless sun rises, marinated in the bombs remains, the invisible death. I walk, a destination I do not know, towards an enemy I’ve never met. I have known ten and four cycles, my mother two ten and four, My father I do not know. He is ahead somewhere, having lef
I came across this image on Facebook: I was struck by the unusual surnames (“Bok” and “Lexier”), and doubly suspicious about the “x” in the surname. The premise of this image is that the left text was created independently, and then the text on the right was created from it, using awesome anagram skills. This image would be a lot less impressive if the two paragraphs were crafted at the same time,
WhiteSpace: A Different Approach to JavaScript Obfuscation DEFCON 16 August, 2008 Kolisar 1 Introduction • What led to WhiteSpace? 2 Agenda • What is “WhiteSpace”? • A Brief Survey of Current JavaScript Obfuscation Methods • The Telltale Indicators of Obfuscation • The Components of this Approach • Demo 3 What is “WhiteSpace”? • A different approach to JavaScript obfuscation • Hides the usual, tel
Boost 1.53.0時点のロックフリーキューは、要素型Tがtrivially copyable(memcpy可能な型)であることを要求します。そのため、ユーザー定義型の多くはロックフリーキューに格納できません。 #include <boost/lockfree/queue.hpp> int main() { boost::lockfree::queue<std::string> que(3); // エラー! } In file included from main.cpp:3:0: boost_1_53_0/boost/lockfree/queue.hpp: In instantiation of 'class boost::lockfree::queue<std::basic_string<char> >': main.cpp:7:41: required from here bo
この記事は Vim Advent Calendar 2012 73日目の記事になります。 今回は最近実装された neobundle.vim の遅延読み込み処理をわたしが把握している範囲で簡単にまとめてみたいと思います。 neobundle.vim でプラグインの遅延読み込み行うことで Vim の起動の高速化が期待出来ます。 [その前に] neobundle.vim 自体に関しては下記の資料を読んでみるといいと思います。 neobundle.vimについて+おまけ また、neobundle.vim の遅延読み込みに関して下記の記事と一部被っている記述があります。 全体的な Vim の起動の高速化に関してはこちらの方が参考になるかと思います。 「立て!立つんだビムー!」 - sorry, unimplemented [プラグインを読み込む] neobundle.vim でプラグインを読み込む場
Buyer Protection ProgramUndeveloped safeguards your purchase. You never have to worry! We protect every transaction through a careful escrow process, leading to 100% successful acquisitions since 2014. First, we secure the domain from its current owner. Then, we help you become the new owner. Finally, we only proceed with paying the seller out after you confirm the reception of the domain.
YAML seems to be getting a bad rap lately, and I’m not surprised. YAML was used as the attack vector to execute arbitrary code in a Rails process and was even used to steal secrets from rubygems.org. Let’s try to dissect the attack vector used, and see how YAML fits in to the picture. The Metasploit Exploit First lets cover the most widely known vector. We (the Rails Security Team) have had report
Sketch of the Day: HyperLogLog — Cornerstone of a Big Data Infrastructure Intro In the Zipfian world of AK, the HyperLogLog distinct value (DV) sketch reigns supreme. This DV sketch is the workhorse behind the majority of our DV counters (and we’re not alone) and enables us to have a real time, in memory data store with incredibly high throughput. HLL was conceived of by Flajolet et. al. in the ph
Mutexロックの最大の弱点は合成不可能なこと.(Java用語だが)あるクラスにsynchronizedメソッドが2つあったとき,それを順々に呼び出すような関数は一般にスレッドセーフでない.複数のメソッドに渡るクリティカルセクションについて考えるのはときどきめんどいことがある. そこでスマートポインタ(または一般に資源へのハンドル)をmutexのRAII的ラッパとくっつけてしまうことを考えた.そのスマポがローカル変数としてアクセスできる間は資源は排他的に利用可能.実際,関数の返り値の型をスマートポインタとすることによって,「このオブジェクトのメモリは中で新たにnewされたものだから,後でdeleteせにゃいかんよ」というメッセージを型に込める慣例は古くから(一部で)行われていた.これはそれをmutexロックに敷衍しようという試み. class UniqResource { private:
This is part one of a talk I gave January 24, 2013 at the Ottawa Python Authors Group Part Two is now also available. Both parts of this presentation are also available as a single IPython Notebook which you can download and run locally, or view with nbviewer.ipython.org. The complete source is available at https://github.com/wardi/iterables-iterators-generators A Gentle Introduction The first few
http://1a4studio.com/ This condensed version of the 1985 hit movie travels MUCH faster than 88 miles per hour. Please, do not subscribe to our channel: http://www.youtube.com/user/1a4studio Please, do not like our facebook: http://www.facebook.com/1a4Studio
Currently developing a JavaScript based animation project. I have noticed that, proper use of setInterval(), setTimeout() and even requestAnimationFrame allocates memory without my request, and causes frequent garbage collection calls. More GC calls = flickers :-( For instance; when I execute the following simple code by calling init() in Google Chrome, memory allocation + garbage collection is fi
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く