background preloader

Professor Cloud

Professor Cloud

VideoJS (HTML5 Video Player) Video.js is a HTML5-based video player with a built-in Flash fallback for older browsers. This means that videos can be played on nearly all devices and operating systems, provided the right codecs are used. This module is a support module for Video.js. New in version 7.x-3.x Support for Video.js 4.0.0.Support for subtitle tracks.Support for looping, hiding player controls and changing preload behavior.Setup above settings for each field and view individually, as well as width and height of the player.Load the Video.js files from the Video.js CDN - downloading and installing the player is no longer necessary! Versions More information Related modules Sponsor / Support Development of this module has been sponsored by heidisoft and nCode.

jQuery Resize And Crop (jrac) example jQuery Resize And Crop (jrac) is a jQuery plugin that build a viewport around a given image permitting to visually resize an image and place a crop. Then it is possible to use the coordinates data to be used for any purpose. Demo Move the image or the crop with the pointer, resize the crop with the pointer, use the zoom bar to scale the image or set your values into the inputs. Code Here is the code use in this page. Download C++の便利ツール・ライブラリ: DO++ フルタイムで働きはじめて4ヶ月。 いろんなことがありました。 今日はインターンが来ているということもあり日頃のC++コーディングライフの中で大変重用しているツールを紹介します。といってもどれも有名なツールでググれば解説がでてくるとは思いますので、一言ずつだけ紹介してみます。みなさんも何かよさげなライブラリ・ツールがありましたら教えてください。 - valgrind/callgrind/cachegrind プログラムの実行結果を解析するツール群。 プログラムのどのが計算量的にボトルネックになっているかを調べるにはcallgrindを使います。 cachegrindはcallgrindと同様にプログラムのどこで何回キャッシュミスしているかどうかを調べることができます。 - gtest かゆいところに手が届くGoogle製C++テストフレームワークです。 - glog Google製ロギングライブラリでサーバーなどを書いてログを吐く場合に使う。 - re2 Google便利ツール三つ目、正規表現ライブラリ。 - cmdline tanakhさんが作ってくれたコマンドラインパーサー。 - waf Pythonベースのビルドシステム。 - openMP 共有メモリ型計算機環境下においてマルチスレッドなプログラム書くのに比べ圧倒的に簡単に並列化できる。 - Eigen 最近特に使っている行列ライブラリ。

Drag'n'Drop Uploads The Drag'n'Drop Uploads module adds the ability to drag an image from your local filesystem, drop it onto a node body textarea and have the file automatically uploaded and referenced in your node. Features: Upload widgets support: [D6] Drupal core Upload module.FileField module / Drupal core File module.ImageField module / Drupal core Image module.Support for CCK / Field Formatters.Support for the WYSIWYG module.Multiple dropzones: Customizable textarea(s)/WYSIWYG(s) dropzone.Upload widget(s) dropzone.Ability to hide textarea/WYSIWYG dropzone upload widget.Upload progress bar.Native Web Browser support: Apple Safari 4+.Google Chrome 2+.Mozilla Firefox 3.6+. Recommended Modules: Custom Formatters Define your own CCK formatters to theme the output of your Drag'n'Drop upload. Todo: Add configurable multi-dropzone widget - 0% completeAdd support for multiple uploads - 0% complete Usage/Configuration Note: An Upload widget must be enabled on the Content Type before the configuration can be done.

tapmodo/Jcrop ソースコードで発見した奇妙なコメント集 コーダー・デベロッパー・プログラマーさん達はそのソースコードにわかりやすい説明書きを「コメント」として残し、後から他の人が修正・編集しやすいようにコードを書いていきます。Stackoverflowの中でなんだそりゃー!というコメントがまとめられていたのでいくつか翻訳してみます!「クライアントからのムチャぶり迷言集 」に続き久しぶりにネタ系記事です。楽しんでください! プログラマーさん達の名誉のため、先に言っておきますが、全てのプログラマーがこういったコメントを残しているわけではありませんよ! 自信を失したプログラマー達 自虐コメント多数! 日記と化したコメント達 まるで日記帳のようにプログラマーの感情が現れているソースコード。 TODOリスト プログラマーさんはソースコードにTODOリストを書くようですね! 俺のコードが最強説 そのコードはいじらないのが懸命です。 いいから仕事しなよ…っていう 全く意味のないコメント達。 その他のクスリときたコメント達 解決してません そこはよかったものの、そのコードのせいで他3箇所が動作しなかったようです。 全ては課長の気分次第 とりあえず仕事は終わった 友達と飲んだ後、家に帰って酔っ払いつつもちょっと仕事してから寝た投稿者。 しかもちゃんと動作してたそうです。 コメントの意味なし 私自身そんなコメントは見たことないのですが、「こんなの見たよ!」 元記事: What is the best comment in source code you have ever encountered? Advertisement

Insert Insert is a utility that makes inserting images and links to files into text areas or WYSIWYGs much easier. It adds a simple JavaScript-based button to FileField and ImageField widgets. When used with ImageField and ImageCache, images may be inserted into text areas with a specific ImageCache preset. This module was previously known as FileField Insert. Features Support for all major WYSIWYG editors, including tinyMCE, CKeditor, the WYSIWYG project (the recommended approach), and plain text areas.Insert images using ImageCache presetsMaximum width setting for inserted images (for combined use with the Image Resize Filter module)Per-field insert configuration See this module in action in the excellent FileField Insert / Image Resize Filter screencast by MustardSeed Media. Requirements CCK (2.5 or higher! Recommended projects Insert doesn't do much without FileField or some other supporting module installed. FileField (D6 only)ImageField (D6 only)ImageCache (D6 only)

jQuery Vector Maps - Resizable Scalable Vector Graphic (SVG) Maps for Modern Browsers cppguide 定義: ストリームは printf() や scanf() の代わりになります。 賛成意見: ストリームを使うと、プリントしているオブジェクトの型を知る必要がなくなります。書式文字列が引数リストとマッチしないといった問題は起こりません。(ただしgccだと printf でも問題は起こりません)。ストリームには自動のコンストラクタとデストラクタがあり、ファイルのオープンとクローズを自動的にやってくれます。 反対意見: ストリームを使って pread() のような動作を実現するのは困難です。 結論: ログ記録のためのインタフェースとして必要な場合を除き、ストリームを使ってはいけません。 ストリームの使用については賛否両論あります。 さらなる議論 この問題には長い議論があったので、理由についてさらに詳しく説明しておきます。 ストリームの支持者らはストリームが選ばれるのは疑う余地がないと主張しましたが、実際のところ問題はそれほど明快ではありません。 cout << this; // アドレスを出力 cout << *this; // その内容を出力 このときコンパイラはエラーを吐いてくれません。 printf は不恰好で読みにくいという人もいますが、ストリームにも同じことが言えるでしょう。 cerr << "Error connecting to '" << foo->bar()->hostname.first << ":" << foo->bar()->hostname.second << ": " << strerror(errno); fprintf(stderr, "Error connecting to '%s:%u: %s", foo->bar()->hostname.first, foo->bar()->hostname.second, strerror(errno)); 他にもいろいろと問題を挙げることができます。 どちらをとっても異なる利点と欠点があり、明らかに優れた解決策というものはありません。

Framework Framework is a blank canvas for theme developers. Use Framework as a user friendly starting point to help facilitate your theme development. Build site themes without feeling like you have to reinvent the wheel or remove unnecessary code every time. Features Framework gives general placement and formatting to basic Drupal elementsSupports one, two, and three-column layouts with source orderingSet to a 12 column grid of 960pxCSS file is highly organized, including a table of contents, section flags, alphabetical properties, etc.Includes a CSS reset and a list of CSS utility classesEm based text sizing with vertical rhythmClean and simplified code and file structureUses HTML 5 structural markup Framework is not intended to be everything to everyone.

Related: