ウェブデザインのインターフェイスからロゴデザインやビジュアルなど、インスピレーションやアイデアを探してる時に利用したい便利なサイトを紹介します。 Visual Heap [ad#ad-2] Visual HeapはDribbbleやCreatticaなどのサイトから最新のアイデアを集めたポータルサイトで、Visual Heapのサイト自体のインターフェイスも面白い作りになっています。 レイアウトは各サイトの作品が横にスライドするもので、各作品をクリックすると縦にスライドしその作品を表示します。
ウェブデザインのインターフェイスからロゴデザインやビジュアルなど、インスピレーションやアイデアを探してる時に利用したい便利なサイトを紹介します。 Visual Heap [ad#ad-2] Visual HeapはDribbbleやCreatticaなどのサイトから最新のアイデアを集めたポータルサイトで、Visual Heapのサイト自体のインターフェイスも面白い作りになっています。 レイアウトは各サイトの作品が横にスライドするもので、各作品をクリックすると縦にスライドしその作品を表示します。
2011年7月31日日曜日 ゲームプログラマの小ネタ 0x0003 Windows 7環境下でVisual Studioを用いてプログラムをデバッグ開始すると、 「出力」ウィンドウに FTH: (nnn): *** Fault tolerant heap shim applied to current process. This is usually due to previous crashes. *** と表示されることがある。 これの意味と対処法とか。 ■FTHとは FTHは、"Fault Torelant Heap"の頭文字をとっている。 Windows 7から実装された機能で、メモリ破壊を起こしたプロセスを覚えておいて 次の実行時からは、壊される領域を織り込んでメモリ確保するという仕組み。 開発者視点では、バグの再現が難しくなるだけであって、迷惑極まりない機能。 ユーザー的には、
In association with the release of curl 8.4.0, we publish a security advisory and all the details for CVE-2023-38545. This problem is the worst security problem found in curl in a long time. We set it to severity HIGH. While the advisory contains all the necessary details. I figured I would use a few additional words and expand the explanations for anyone who cares to understand how this flaw work
Heap dump とは Heap dump は現時点でどのようなオブジェクトがメモリに確保されているか解析するための機能です。 動作中のアプリの任意のタイミングでヒープのスナップショットをとる (HPROF形式のファイルとして出力する) ことができます。 このツールも Allocation Tracker と同様、Android SDKに含まれている機能なのでAndroidの開発環境が最低限整っていれば誰でも使用することができます。 今回は Eclipse Memory Analyzer (以下MAT) の使用方法を通して、 Heap dump を利用したメモリ解析について解説したいと思います。 Androidアプリのヒープ領域 ヒープ領域とは、動的に確保できるメモリ領域のことを指します。Androidのヒープ領域は Linuxヒープ (ネイティブヒープ) と Dalvikヒープ (Ja
第2回です。 なかなか更新できる時間がないですが マイペースで書いていこうと思います。 ストックやフォローをして頂けると励みになります。 さて前回はGCの仕組みの概要説明とjstatでのモニタリングでした。 今回はCGログの分析をしてみようと思います。 JVMのGCログ設定 まずはGCログが取得できるように設定しないと始まりませんね。 以下のようなオプションをjavaの起動コマンドに付与すると GCの情報を取れるようになります。 -verbose:gc [GC 919089K->41941K(943744K), 0.2300771 secs] こんな感じのGCログが出ます。 -XX:+PrintGCDetails -XX:+PrintGCDateStamps [GC2015-12-10T07:06:41.209+0900: 308.418: [ParNew: 903392K->50610K
PowerShell から ssh 経由で Linux に入って任意のコマンドを実行する。 これを可能にするために、sshをラップしたモジュールを以前書きました。 PowerShell で Chocolatey を利用して SSH 接続をする + Capistrano コマンドを Windows から発行/実行するPowerShell編 これを利用することで sshでLinux サーバーにログインする手間をかけることなく、ぽちっとLinux上のCapisranoを実行したりとか自由にできます。 裏では PowerShellからssh実行してコマンドを発行しているわけですが、今回ssh自体ができなくなる問題にあったので、対処をご紹介します。 すぐに解決できましたが、んーって悩んだのと、ssh だけじゃなく git でも起こりえるので。 目次 目次 エラーメッセージ 原因 対処 Windows
In a previous post, I wrote a bit about how Ruby objects are laid out in memory. Today we’ll use that information to write a program that will allow us to take a Ruby heap dump and visualize the layout and fragmentation of that heap. Ruby Object Layout Recap Just as a recap, Ruby objects are fixed width. That is, every Ruby object is the same size: 40 bytes. Objects are not really allocated with m
OutOfMemoryError の対応方法/Heap 分析ツール(MAT)の使い方 1. Copyright (c)2014 ITOCHU Techno-Solutions CorporationCopyright (c)2014 ITOCHU Techno-Solutions Corporation OutOfMemoryError の対応方法 / Heap 解析ツール(MAT)の使い方 ソリューションビジネス部 橋本 和俊 2014/6/24 2. Copyright (c)2014 ITOCHU Techno-Solutions Corporation はじめに • 発表する内容は個人の見解であり、所属する組織の公式 な見解ではありません。 • 資料の内容は正確を期するよう注意しておりますが、妥 当性や正確性について保証するものではありません。 • 資料に関しては以下の環境において
結論: MEMORY ストレージエンジンの index_type はデフォルトで HASH なので = or <=>演算子を使用する等価比較にのみ使用される。 >, >=, <, <=, BTWEEN を使うクエリでインデックスを使いたいときは USING BTREE をつけてインデックスを作ること。 MySQL 5.0.75 (やや古めかしい?)を使っていて、 MEMORY ストレージエンジンのテーブルに対して、 SELECT * FROM tbl WHERE col1 = 'val1' AND col2 <= 'val2';なんてクエリを実行したら妙に遅かった。 col1, col2 の順番で複合インデックスをはっているにもかかわらず。マニュアル読んだらちゃんと書いてありました。あんまり使う機会もないだろうけど(だからこそ?)メモ。 その名前からもわかるように、MEMORY テーブルは
9/22/2010 Update libc.soの置き換えは不要*1。 # adb shell setprop libc.debug.malloc 1 # adb shell stop # adb shell start 始まりはいつもandroid-porting*2。Nativeのメモリリーク調べるにはどーしたらいいの?という質問に、それDDMSで出来るよという回答*3が。ターゲットのlibc.soをlibc_debug.soに入れ替えて、ホストの~/.android/ddms.cfgに"native=true"を追加して、ddmsを起動するらしい。 とことで、早速やってみた。libc.soをlibc_debug.soに置き換えて、Androidを再起動するとlogcatにそれっぽいメッセージがでる。 I/libc ( 1376): /system/bin/sh using MALLO
It is no exaggeration to say that the bolt out of the blue commitment by US President Donald Trump to sit down for talks with North Korean leader Kim Jong-un has had a severe impact on Japan's government. A carefully crafted, US-Japan co-ordinated strategy - of unremitting political and economic pressure on North Korea - has been a replaced by a new unilateral US policy of (albeit perhaps temporar
マイクロソフトのフォーラムにて、例外 0xc0000374 でクラッシュする問題が取り上げられていました。 私はスレッドに乗り遅れタイムリーに返信することができなかったのですが、興味があったので試しに動作確認をしてみました。 デバッグの基本のところを含め、簡単に解説します。 この資料では Debugging Tools for Windows はインストールされているものとしていますので、まだお持ちで無い方はインストールしてください。 例外 0xc0000374 でクラッシュする (落ちる) 例外 0xc0000374 は ntstatus.h にて STATUS_HEAP_CORRUPTION、メッセージテキスト "A heap has been corrupted" (ヒープが壊れています) と定義されています。 (日本語メッセージは私が訳してます) すなわち、0xc0000374 で
SOCKS5 heap buffer overflow Project curl Security Advisory, October 11 2023 - Permalink VULNERABILITY This flaw makes curl overflow a heap based buffer in the SOCKS5 proxy handshake. When curl is asked to pass along the hostname to the SOCKS5 proxy to allow that to resolve the address instead of it getting done by curl itself, the maximum length that hostname can be is 255 bytes. If the hostname i
Find heap allocations and nail them down to save 0.67µs (37%) on a Raspberry Pi 3 in an inner loop Heap optimization For hot code paths, it is important to reduce heap allocations. This reduces the GC pressure and it is generally a speed optimization at the same time. We’ll see real world examples below. Reducing heap usage can be done in a few ways and I’ll show case three in this post: Favor con
I'm experiencing a bit of cognitive dissonance between C-style stack-based programming, where automatic variables live on the stack and allocated memory lives on the heap, and Python-style stack-based-programming, where the only thing that lives on the stack are references/pointers to objects on the heap. As far as I can tell, the two following functions give the same output: func myFunction() (*M
はじめに PostgreSQL の実行計画において、Bitmap Index Scan の後に実行される Bitmap Heap Scan で "Recheck cond" と出力されます。Index Scan をしているにも関わらず、なぜ Heap Scan でインデックスの検索条件を再チェックする必要があるのか解説します。 事前に以下の資料を一読頂くことをお勧めします。 Explain説明資料(第20回しくみ勉強会).pdf 特に「Bitmap Scanについて」「work_mem と lossy storage」をご確認ください。 本エントリの内容を適用できるPostgreSQLのバージョン範囲を特定できていませんが、9.4系や10系で適用できることを確認しています。実際にはもっと幅広く適用できると思われます。 解説編 本件に関し、海外のQAサイトで丁寧な解説がありました。 post
JSer.info #100 - Firebug 1.11.0がリリースされました。 Firebugのコンソール上で利用できる $() や $$() がquerySelector相当になったりinclude()でjsファイルを取り込んだり出来るようになったりしています。 また、postMessageや関数呼び出しのログ表示やSPDY対応等も含まれています。 Firebug 1.11 New Features ✩ Mozilla Hacks – the Web developer blog Navigation Timing APIやNavigation Timing APIでブラウザの処理時間を可視化するツール作ったのようなwindow.performanceのグラフィカル表示にも対応しています JavaScript アプリケーションのメモリー・リークを理解するという記事で、Chromeの
pprofのWeb UIの "heap" の数って何を表すんだろう? pic.twitter.com/JWlAgIL5Ka— k1LoW (@k1LoW) 2018年9月7日 tcprxyというTCPプロキシを作っています。 github.com 8月中旬くらいから「よし、プロダクションレディになるくらいまで開発してやろう」と、時間を見つけては設定ファイルを読めるようにしたり、server_starterと連携できるようにしたり、取得できる情報の充実を図ったりしていました。いろいろ機能を追加してみたのですがそれはまたの機会に。 そして、「あとは、常時起動していてメモリリークが発生しないことを確認すればよいだろう」と、とりあえず見よう見まねで net/http/pprof を使ってブラウザ上からプロファイルを確認してみました。 具体的には main.go を以下のように修正して、tcprxy
OutOfMemoryError のハンドリング はじめに Tiger ではじまった、ソフトウェアの管理の強化ですが、Java SE 6 ではさらに強力になっています。 強化点はいろいろあるのですが、まず第一にあげたいのが、OutOfMemroyError のハンドリングです。 第一題 OutOfMemoryError まずは、OutOfMemoryError です。 皆さんも痛い想い出がいろいろとあるのではないでしょうか。 Java SE 6 では OutOfMemoryError が出なくなる... ことはありません ^^;; Tiger までは OutOfMemoryError がどこで発生しているかいまいち分かりづらかったのではないでしょうか。 それが、Java SE 6 ではちゃんと OutOfMemoryError が発生するポイントを明示するようになりました。これはうれしい!
メモリリークに関するリソース(特にLOH周り)を順不同で、とりあえずメモメモ。 この手の問題っていつも悩まされます・・・・。 マネージ コードでのメモリ リークの識別と回避 http://msdn.microsoft.com/ja-jp/magazine/cc163491.aspx NET Frameworkのメモリ管理と断片化問題(.NETアプリケーションを長期連続実行するのは要注意) http://d.hatena.ne.jp/torutk/20100529/p1 The Dangers of the Large Object Heap http://www.simple-talk.com/dotnet/.net-framework/the-dangers-of-the-large-object-heap/ メモリの問題を調べる http://msdn.microsoft.com/ja
”HEAP"という言葉には、積み重なるという意味のほかに、コンピューター用語では、プログラムを実行するまでその大きさが決定できないメモリ部分を示す意味があります。今回のサカモト・ソーシャル・プロジェクトは、インターネット初期の『技術の実験』の時代から、ソーシャルメディアを駆使する『現象の実験』の時代へと移る瞬間の実験プロジェクトです。ひとりひとりの想いや行動が積み重なりあい、バーチャルとリアルの境界線は限りなく近くなっていきます。 その先には何があるのか、それをみんなで見つけたい。「skmts HEAP!」スペシャルボックスにはそのような想いが込められています。 このA2ポスターは、遠くから眺めると教授の手(今回の韓国公演のiTunesジャケットに使用されている「手」)に見えますが、近くでよく観察すると、小さなアルファベットでつくられていることが分かります。このアルファベットこそが、今回の
The default installation of Elasticsearch is configured with a 1 GB heap. For just about every deployment, this number is usually too small. If you are using the default heap values, your cluster is probably configured incorrectly. There are two ways to change the heap size in Elasticsearch. The easiest is to set an environment variable called ES_HEAP_SIZE. When the server process starts, it will
I haven’t done any real work on learning Javascript and D3.js since my last attempt a couple months back. To keep at it, I thought I’d try using D3.js to visualize a simple algorithm: finding the largest couple of items in a list. This problem comes up all the time when doing search and recommendation type tasks. Every time you query a search engine, it has to find the couple best scored results i
【速報】ヤバい?問題ない?エンジニアが知っておくべき「PCRE Heap Overflow / CVE-2015-3210」 こんにちは、せーのです。今日は結構影響の大きそうな脆弱性についての詳細な説明と現時点での対応状況をお知らせ致します。 PCREライブラリとは PCREライブラリというのは元々はPerlの正規表現と互換性のある正規表現を他の言語でも実現するために作られたライブラリで、現在はCentOSやFedora, RHEL等のLinux系のOSには標準でインストール出来る他、Apache,nginx等のミドルウェア、flash,mySql等のソフトウェア、PHP等このライブラリに依存しているパッケージは多く、システム構築をしたことのある方なら「error: pcre library is required」なんてエラーメッセージを見たことのある方もおおいのではないでしょうか。 ど
MG勉強会の発表があるため4.6ランキング検索の部分を読むついでに、最後のサブセクションの上位r個の要素を取り出す部分について実装してみた。 情報検索において、N個の候補集合から上位r個の要素を取り出すことが多い。 値が配列に格納されているとするとこれを実現するためのコードはもっとも単純に行うと以下のようになる //長さlenの配列arrayの中でトップr個の値をresultに挿入する void sort_method(int * array , int len, int r , vector<int> & result){ sort(array , array + len); copy(array + len - r , array + len , back_inserter(result)); } しかし、Nが大きいとき、MGの例だとN=100万のときにsortの処理にはおおよそ100
This project is a low overhead sampling profiler for Java that does not suffer from Safepoint bias problem. It features HotSpot-specific APIs to collect stack traces and to track memory allocations. The profiler works with OpenJDK and other Java runtimes based on the HotSpot JVM. async-profiler can trace the following kinds of events: CPU cycles Hardware and Software performance counters like cach
This summer, I upgraded a project from Node 18 to Node.js 20. The code was not that old, and I did not expect any problems... But as with every Node.js upgrade, unexpected behaviors happened. Why upgrade?It is common practice to keep projects up to date. Lagging behind too much may increase the work needed to upgrade when the choice isn’t yours anymore. I could have waited, but I had some time to
より便利になった JConsole はじめに JConsole は J2SE 5.0 から取り入れられた JMX に対応したソフトウェア管理のためのツールです。特に JSR-174 で策定された JVM の状態を表す MXBean を参照することができるので、とても便利なツールなのです。 しかも、Java SE 6 ではもっと便利になったのです。それをさっそくご紹介しましょう。 On Demand Attach J2SE 5.0 では JConsole で JVM の状態を参照するには、ターゲットとなる java の起動オプションが必要でした。ローカルの場合は次のようにアプリケーションを起動させます。 これはこれでいいのですが、問題はこのオプションをつけないと JConsole で見ても何も情報が得られないということです。 Mustang ではこの点が改良されて、この起動オプションをつけな
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く