iOSプログラマならUIImageをJPEGで保存するときには UIImageJPEGRepresentationを使うのでMacでも NSImageJPEGRepresentationがあるんだろう、と思うかもしれませんが 残念ながらありません。 自分で実装するとしたら、次のコードが一番簡単だと思います。 NSData* NSImageJPEGRepresentation(NSImage* image, CGFloat compressionQuality) { if(image == nil)return nil; NSDictionary *dict; dict = [NSDictionary dictionaryWithObjectsAndKeys : [NSNumber numberWithFloat:compressionQuality], NSImageCompress
coregraphicsを使って、PDFを作成してみる こっちのがlibharuに比べて、シンプル 理由:特別な外部フレームワークの追加が必要ない iOS標準のフレームワークだけで簡単に作成できる 利用シーンは、さっきと同じにしてみる UIImageをPDFに貼付けて作成 //libharuを使わずに、PDFを作ってみる // pathは、アプリHomeから、ファイル名を含めてたパス //pngImageは、UIImage。今回は、UIImageに入れたのが、pngだったから、そんな名前にしてみた - (void) createPDFFileOfCoreGraphics:(NSString*)path pngImage:(UIImage*)pngImage { //ファイル情報の作成 NSMutableDictionary *dic = [[NSMutableDictionary allo
I really can't wait for this to be released. I am a little pessimistic about the Vim mode. There are countless 80 or 90% complete Vim modes in various modern editors. But the absence of a truly native feeling Vim (that last 10%) is a deal breaker for many. I'd rather see more editor developers spend time finding a solution that provides a truly authentic Vim mode instead of spending countless hour
Join the official community for Google Workspace administrators In the Google Cloud Community, connect with Googlers and other Google Workspace admins like yourself. Participate in product discussions, check out the Community Articles, and learn tips and tricks that will make your work and life easier. Be the first to know what's happening with Google Workspace. ______________ Learn about more Goo
問題 継承クラスでsuperの明示的な呼び出しがなくても動くような気がしたのでちょっとメモる 環境構築 % cd % mkdir hoge % cd hoge % npm --version 1.1.62 % npm search typescript # 略 % npm install --local typescript # 前略 npm WARN prefer global typescript@0.9.7 should be installed with -g typescript@0.9.7 node_modules/typescript % vi hoge.ts class Base { constructor() { console.log('this is constructor of Base'); } } class Child extends Base { const
前回の記事ではHubotのインストール、基本的な使い方やScriptの作成、Herokuへのデプロイの方法を紹介しました。 本記事ではIdobataというチャットサービスとHubot、外部サービスを連携し、チーム開発を円滑にする環境を構築していきます。 まずは導入後の開発環境の全体図を示します。最終的にIdobataでGitHub、Travis CI、New Relicなどのサービスからの通知を受け取り、Idobata上でコマンドを実行することでHubotを通じて外部サービスの情報を表示することが出来るようになります。 今回の環境は、Webアプリケーションをチームで開発するシーンを想定して構築してみました。(記事中では1人ですが...) Webアプリケーションは、Sinatraで作成したアプリケーションをHerokuにデプロイしています。また、前回と同様、HubotはHerokuにデプロ
About a year and a half ago, Microsoft unveiled its TypeScript language to help programmers write large programs in JavaScript. Starting today, with the arrival of the first release candidate of TypeScript 1.0 and the latest update to Visual Studio 2013, it’s becoming a fully supported language in Microsoft’s IDE. That’s a strong commitment by Microsoft to TypeScript and brings it to the same leve
HOME ニュース・イベント プレスリリース ACCESSのBeaconソリューション「ACCESS™ Beacon Framework」が、 Google Glass™に対応 プレスリリース ACCESSのBeaconソリューション「ACCESS™ Beacon Framework」が、 Google Glass™に対応 株式会社ACCESS(本社:東京都千代田区、代表取締役社長:室伏伸哉、以下ACCESS)は、BLE搭載の位置情報機器「Beacon(ビーコン)※1」を用いたサービスの導入を容易に可能とするソリューション「ACCESS™ Beacon Framework(ABF)」(iOS対応)に、眼鏡型ウエアラブル端末「Google Glass™(グーグルグラス)」に連携する機能を拡張する旨を発表しました。ACCESSは本機能を提供中の「ABF」評価キットに追加し、本日より提供開始いた
By martinak15 サンフランシスコのとあるバーで、Google Glassを着用していた女性が暴力を受けたとCBS San Franciscoの系列に当たるKPIX 5が報じています。 Woman Wearing Google Glass Says She Was Attacked In San Francisco Bar « CBS San Francisco http://sanfrancisco.cbslocal.com/2014/02/25/woman-wearing-google-says-she-was-attacked-in-san-francisco-bar/ San Francisco woman allegedly assaulted and robbed for wearing Google Glass | The Verge http://www.thev
【公式】スクエニのゲーム音楽が無料で聴き放題に! / ネットの声「何この神サービス」 2012年4月12日 2011年にカナダ・フィギュアスケートのケヴィン・レイノルズ選手がゲーム『クロノ・トリガー』『クロノ・クロス』の音楽で演技を披露し、国内外で話題となった。ゲームというと子どものオモチャというイメージもあるが、その音楽はもはや芸術の域なのである。 ゲーム内の音楽でも定評のあるスクウェアエニックスが名作ゲームの音楽が聴けるチャンネルを開設したそうだ。PCやスマホで利用できるのだが、なんと無料! 無料で聴き放題なのである。これはキター! 無料でゲーム音楽が聴けるのは、スクウェアエニックスの「SQUARE ENIX AUDIO」だ。 4月12日現在、聴くことができるのは「ファイナルファンタジー」シリーズ、「聖剣伝説」シリーズ、「サガ」シリーズ、「ゼノギアス」「戦国IXA」などである。1980
最近BracketsとTypeScriptで遊んでいます。何でその組み合わせを選んだかは前回のブログで書いたので、早速技術的な話に飛び込もう。ちなみにBracketsだけじゃなくてEdge Codeでも通用します。そんでは! Brackets+TypeScript+ちゃんとしたコードヒントへの近道1.必要なパーツを揃える 最新版のBrackets(最新版に依存するわけではないけどとりあえず) ターミナルで npm install -g typescript でTypeScriptコンパイラをインストール。(Node.jsインストール済みが前提) 2.BracketsにTypeScriptプラグインを入れる ファイル → 拡張機能マネージャーを選択(右上のボタンでも開ける) 出て来るUIの検索フィールドに「typescript」を入力。 プラグインをインストールする。私は上に出てくる「Bra
Email Subscriptions are here! Get notified in your email when a new post is published to this blog We’re happy to mark another significant milestone for the TypeScript project with the release of the 1.0 Release Candidate. Since the first release in October of 2012, the TypeScript language has grown to support generics, which enables rich typing of JavaScript libraries. Last December, the releas
すべての Microsoft 製品 Global Microsoft 365 Teams Copilot Windows Surface Xbox セール 法人向け サポート ソフトウェア Windows アプリ AI OneDrive Outlook Skype OneNote Microsoft Teams PC とデバイス Xbox を購入する アクセサリ VR & 複合現実 エンタメ Xbox Game Pass Ultimate Xbox Live Gold Xbox とゲーム PC ゲーム Windows ゲーム 映画とテレビ番組 法人向け Microsoft Cloud Microsoft Security Azure Dynamics 365 一般法人向け Microsoft 365 Microsoft Industry Microsoft Power Platform W
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く