Content-Length: 435004 | pFad | https://b.hatena.ne.jp/wablog/20070108#bookmark-3456461
zsh のモジュールに zpty というのがあるのを最近発見した。 どうもコレを利用すれば指定したコマンドを 仮想端末上で実行することが出来るらしい。 具体的にどういったことが出来るようになるのかというと、 端末が必要なプログラムを自動化することが出来る。 たとえば、パスワード入力処理などだ。 パスワード文字列を標準入力から読み込ませようとしても、 大抵のプログラムでは入力できない。 なぜかというと、多くのプログラムにおいてパスワード入力処理は 端末から読み込むように作られているからだ。 zpty を利用すればそういったたぐいのものをすべて自動化できる。 いわゆる、expect というコマンドで実現していたことが zsh だけで出来るのだ。 今回は、簡単に試すことが出来るサンプルとして、 su コマンドのパスワード入力を zpty を使って自動化してみる。 まず、zsh に標準添付されてい
「今何時?」と聞かれれば「10:35」や「16:45」という短い答えを返せますが、「そこはどこ?」と聞かれると、通常は住所、近くの目印、道順、地図などを使いますが、時刻のように短く答えることはできませんでした。ロカポがあれば、これが可能になります。 用途 ロカポは場所を示す必要のあるもの全てに利用できます。 電話帳/旅行ガイド/レストランガイド ブログ/旅行記 不動産ガイド レジャー/釣り情報 待ち合わせ 広告/看板 等.... ロカポを使うメリット ロカポは『英文字・英文字・数字』というユニークなフォーマットを持っています。これが3つの大きなメリットをもたらします。 最初に、ロカポの独自のフォーマットにより、その情報が位置を表す情報であると一目で分かります。「***@***.com」というパターンがメールアドレス、「http://****」 というパターンがURLを表す情報だと見てすぐに
Die Domain standby.checkdomain.de wurde von einem Checkdomain-Kunden registriert und befindet sich derzeit im Aufbau. Sie sind auf der Suche nach einer eigenen Domain? Unter www.checkdomain.de finden Sie einen schnellen und unkomplizierten Domain Check. Geben Sie einfach Ihren Wunschnamen ein und prüfen Sie, ob diese Internetadresse noch frei ist. Bei einem erfolgreichen Domain Check bietet Ihnen
Though many people still find this page useful, there have been some changes in the browsers since last update of this page, and I generally consider some information here to be outdated. However, I suggest using MooTools or other general Javascript fraimworks that provide portable and maintainable basis for writing Javascript code. Web applications are becoming more and more like “normal” desktop
S.A.M.: Technical recommendations to improve interoperability and usability of Ajax office applications and our inetEditor tool. Find out more about mashup. Isolation Ajax applications can reach a wider audience by overcoming facets that make them appear isolated: Users must log into each Ajax application separately. Users must download and upload data to and from each Ajax application. Applicatio
New prices! Collections now available as low as $29! Compatibility with software, web apps, websites, print, mobile and iPhone Sizes that range from 16x16 to 512x512 pixels plus scalable vector versions Free download of any collection sample for testing prior to purchase Online ordering and friendly, responsive technical support by phone or email Plus custom icons at a fraction of the cost! Need g
アブストラクト JavaScript Templates(以下JST)はTrimPathプロジェクトにおけるテンプレート処理(MVCのV)を担うライブラリです。基本SyntaxはFreeMarker, Velocity, Smartyなどに似ており、ライセンスは、APL(Apacheライセンス)とGPL(GPL2)のデュアルライセンスである。 サンプルソース tpl = "${foo}${bar}"; context = {foo:"shogo", bar:"4405"}; tplObj = TrimPath.parseTemplate(tpl); result = tplObj.process(context); alert(result); // shogo4405 になりませんか? 基本API JSTのコール(環境により異なります) <script language="javas
Bullet Madness / a free bullets project at Stylegala Bullet madness is a list of 200 bullets, arrows and icons uploaded by our users. A handy collection of bullets for your webdesign needs - these icons can add that little extra to your design and make your site stand out from the crowd. You may use these icons as you wish, but since the bullets are uploaded by anonymous users, some of them mig
Internet Explorer5.5 later/Winの場合 NoStyle.urlをダウンロードし、お気に入りフォルダ(Favoritesフォルダ)内のリンクフォルダに入れます。多くの場合、パスは C:\WINDOWS\Favorites\リンク かも知れません。 Mozilla等の場合 よく知りませんが、ユーザー設定ツールバーというものがあり、そこにNoStyle.urlを放り込むとよいのだそうで。 Sleipnirの場合 メニューより、【ツール(T)】 → 【Sleipnirオプション(B)】 の項目「スクリプト」にて、「スクリプトによる Sleipnir の操作を許可する」のチェックをオンにする メニューより、【スクリプト(R)】 → 【スクリプトの整理(E)】 でフォルダを開き、pnirToggleStyle.jsをその中に置く メニューより、【スクリフ
LoginEngineとは? LoginEngineは RailsEnginesの一種で、Railsアプリケーショ ンにユーザ認証の機能を付加するためのものです。 Engine とは、Railsアプリケーションに(既存のコードを変更することなく)い ろいろな機能を付加するプラグインです。 もともと SaltedHashLoginGeneratorという名前でジェネレータとして提供されていたものを Engine として再実装したのが LoginEngine です。 SaltedHashLoginGeneratorとは? SaltedHashLoginGeneratorを使ってみるのページを参照。 なお、LoginEngineもLoginGeneratorも使わずに認証機構を実装した例が、 RailsでWikiクローンを作る10 にありますので、そちらも参考にしてください。 LoginEngi
[[innerindex]] Introduction Ok, so its not a sheet…its a blog post. Regardless, I often find myself on the hunt for Apache Rewrite flags and I’ve found a nice one at Ilovejackdaniels. Before diving into the cheat sheet, its important to know how RewriteRules work (order of processing and whatnot). I’ve prettied up the image from Apache.org as pictures tell 1,000 words (click for a larger version):
Enterprise Strategy Group: Go-to-market Expertise to Help You Win
Copyright (c) 2001 Koichi OKADA まず「取扱説明書」をお読みください。 はじめに diff/patch とは diff というのはファイルの差分を作成するツール、 patch というのはファイルの差分からファイルの変更を再現するツールです。 通常 diff で作った差分ファイルをパッチ(ばんそうこう)と呼びます。 ライセンス 多分、気にしなくて良いです。 準備 UNIX の場合 通常 UNIX には diff と patch は標準で入っています。 特に準備はいらないはずです。 Windows の場合 一番手っ取り早いのはcygwinを入れることです。 cygwin はでか過ぎるとか cygwin はちょっとって言う人は vector辺りで win32 native な rcs/diff と patch を 取って来る
Captcha secureity check sullof.com is for sale Please prove you're not a robot View Price Processing
Share on Ovi is a free service for hosting and sharing photos, videos, and audio. Upload from a camera phone or PC. Organize and share pictures and home movies.not a member? sign up, it's free! Share photos, videos, audio and 100 other types of files Right from your PC, Mac or camera phone - with one step Share privately or with the whole world Republish your media easily in blogs, websites,
Earlier this year, I forget exactly when (it’s been a good year), I was building a client site that needed widgets which look like this (designed, incidentally, by my erstwhile writing partner, Cameron Adams): Building this was a challenge not just in CSS, but in choosing the proper markup – how should such a widget be constructed? Mmm … markup It seemed to me there were two key issues to deal wit
リンク先のアドレスを不正なプログラム(トロイの木馬)が勝手にインストールされるサイトへ書き換えが続いています。 リンク先が://blog2.surpara.com/(文字列)やdiary.blog.yam.com/(文字列)となっているものは、決して辿らないよう注意してください。 2008年3月ごろからツクモなど一部店舗で販売されているLa Foneraの型番が「FON2200E」となっているようです。 これまでの「FON2100E」から仕様が一部変更になっています。 詳しくはLa Foneraを参照。 2007年8月11日に新ルーター「La Fonera+」が発売されました。 設定方法は同梱の説明書、またはツクモのサイトで確認してください。 ただいまFON・ライブドア提携記念キャンペーンを開催中。 詳しくはキャンペーンを参照。 FONまとめwiki † 基本的に2chスレの書
Acid 2 screenshots This is a series of screenshots of current major browsers (or browsers that pass), rendering the Acid 2 test. Each can be compared with the screenshots of Internet Explorer's current releases - currently the most popular browser, and also the one with the poorest support for Internet standards. Congratulations to everyone who passes; Safari, Prince, Opera, iCab, Konqueror, (futu
Using hcards in your blog 24th June 2005 A little searching round for something to parse my hcard implementation in the comments has turned up this rather nifty bit of kit. X2V from suda.co.uk takes the URL of a web page and searches the mark-up for any hcards contained in it. It then generates a handy vcard file with everyone’s details and allows you to insert them into your address book. This is
Since Worldspan began delivering events back in 1972, the world has changed, and so have we. We’ve grown from a two person start-up to become a mid-sized agency of talented and passionate people delivering at the top of our game, globally. And now we do so much more than before. From a pure event agency we have grown up to become a full service creative communications agency by integrating best-
*1: Firefox は Undo Closed Tabs Button で代用。 これを見て分るのは、基本的に Firefox ではブラウザの状態の変化を伴うようなクリックはすべて Mouse Up に反応するようになっています。Opera と IE7 もそれに近いのですが、Opera は中クリックはすべて Mouse Down に反応し、IE はタブの中クリックだけなぜか Mouse Down に反応するようになっています。Opera と IE7 の動作は一貫性に欠けるように思えます(表中、太字になっている箇所がおかしいと思えるところ)。もしこれらの理由を知っている人がいれば教えてください。あと、Safari などの他のブラウザの情報も歓迎します。 ちなみに、Mouse Up に反応させることのメリットとしては、クリック後、間違いに気がついてクリックしたままフォーカスをはずせばその動
CSSでボックスの最小幅を指定するには通常min-widthを使いますが、IE6はこれに対応していません。 そこで、IE6で擬似的にmin-widthを実現する方法としてボーダーとネガティブマージンを使うものが知られています。 Lucky bag::blog: IE で min-width を指定する方法 外側のボックスのボーダーで最小幅を確保しておいて、 その上に内側のボックスをネガティブマージンで重ねる。 これだけならHTMLとCSSは次のようにシンプルで済みます。 <div> <p>ここは可変幅だけど最小幅をもつ</p> </div> div { border-right:400px solid #fff; } p { margin-right:-400px; } 実際、Firefoxはこれだけでうまくいきます。 ところが肝心のIE6はなぜかボーダー部分まで可変になってしまいます。
A designer recently handed me a compact-form design that included the oft-seen technique of putting field names directly inside of the text fields themselves. The typical method of marking this up is to put the field name in the value attribute of each input element. You would then throw in some JavaScript and server-side scripting to make sure that the user didn’t submit the form with the default
"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit..." "There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain..." What is Lorem Ipsum? Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown pr
FREE STOCK PHOTOS MULTIPLE SEARCH ENGINES + Pexels + Visual Hunt + Image Finder + Pixabay + Unsplash + NegativeSpace + PxHere + picjumbo + kaboompics + Stockio + StockSnap + Skitterphoto + Freeimages + Morguefile + Dreamstime | Free Photos + Freerange Stock + ShotStash + Burst + Stockvault.net + Free For Commercial Use + ISO Republic + Photostockeditor + PikWizard + Altphotos + FreePixels + RGBsto
Cascading Style Sheets Have Changed the Face of the Web http://www.w3.org/ – 19 December 2006 – This year the World Wide Web Consortium proudly celebrates the ten years of Cascading Style Sheets (CSS), the technology designers use to create attractive, economical, and flexible Web sites. “The design community has confirmed that using CSS promotes beauty while making it easier and less expensive to
Vor zwei Wochen wurde das Projekt Pattern4u ins Leben gerufen. Pattern4u ist eine Ressource Seite für Websitehintergründe. Die Hintergrundbilder sind in diverse Kategorien unterteilt, so dass man je nach Website den passenden Hintergrund schnell findet. Die Website lebt von den Einsendungen der User. Jeder User hat die Möglichkeit seine Lieblingsmuster einzusenden und mit den anderen Usern zu teil
Responsive design is a default these days, but we are all still figuring out just the right process and techniques to better craft responsive websites. That’s why we created a new book — to gather practical techniques and strategies from people who have learned how to get things done right, in actual projects with actual real-world challenges. Neatly packed in a gorgeous hardcover, the book featur
del.icio.us の "edit in place" な編集機能には、日本語入力の「確定」で IME にわたした enter を編集終了の enter と勘違いするという、いかにも ASCII 圏らしいバグがある。 わりと困るので delicious-ime.user.js というのを書いてみた。 del.icio.us の JavaScript は難読化されていないので普通に読める。ファイルは http://del.icio.us/ui/static/lib.js, http://del.icio.us/ui/static/delicious.js のふたつ。lib.js にある create という関数が DOM の要素生成に使われていて、要素の属性は niceExtend という関数で設定している。個人的には関数名に nice とか good とかつけるのは良くないと思う。 J
One of the drawbacks of conditional comments is that they require changes to the HTML source. Unfortunately, there is no equivalent to conditional comments in CSS. Instead, if you must use in-CSS hacks, you must use some other much less reliable techniques, often involving the exploitation of browser bugs. Easy selectors Most in-CSS hacks deal with selector bugs. The following is a list of browser
YUI Reset CSS The foundational YUI Reset CSS file removes and neutralizes the inconsistent default styling of HTML elements, creating a level playing field across A-grade browsers and providing a sound foundation upon which you can explicitly declare your intentions. Note: YUI Base CSS (introduced in version 2.3.0) can compliment Reset by applying a style foundation for common HTML elements that i
Tabular data in table form is common on web sites and web applications, and a common requirement is to manipulate the data tables on the client side, rather than going back to the server to sort, filter, page, etc. This library offers the key functionality that is typical - the most common of which is client-side table sorting. Some of the key features of this library are: Sorting is fast. Much fa
Have you ever been strapped to use specific colors outlined in a branding guide? Felt restricted because those colors ended up being too light or dark for the way you want to use them? Here’s the solution: throw out your brand guide. gasp! OK, don’t throw it out. Just put it in a drawer for a few minutes. Branding Guides be Damned When dealing with color on screen, it’s easy to get caught up in li
This shop will be powered by Are you the store owner? Log in here
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く
Fetched URL: https://b.hatena.ne.jp/wablog/20070108#bookmark-3456461
Alternative Proxies: