Originally posted in 2014, some things have changed in those 4 years. Pete Hunt tweeted a little jsfiddle showing how you could render a React component to an iFrame. It was simple, yet powerful and exactly what we needed for our Embeddables platform here at Zendesk. Why would you render to an iFrame?There are several reasons you would want to render to an iFrame but the main benefit is style enca
この記事について Google HTTP(S) LoadBalancerのバックエンドをバケットにできて試してみたので設定方法を記載します。 GCSへアップする。 とりあえずGCSが必要なので作っておく。 配信したい静的コンテンツをアップしておく。 今回jsを全て配信したいとする。 バケットにjsというディレクトリを作り helloworld.jsとtest.jsを置いておく。 ここで必要なのは公開リンクにチェックを入れておくこと。 試してはないが以下で デフォルトで公開できるように設定が可能 https://cloud.google.com/storage/docs/gsutil/commands/acl から。 LBの設定 ネットワーク->負荷分散->ロードバランサを作成でHTTP(S)負荷分散を選択する バックエンドバケットの作成 バックエンドの設定からバックエンドバケットを作成する
canonical(カノニカル)タグは、<link rel="canonical" href="○○">のように使われます。そもそもcanonical属性とは検索エンジンに対してどんな意味を持ったタグなのでしょうか? 基本情報からSEOで活用すべきシーンなどを事例で紹介します。 ヤフー、グーグル、そしてMSN Live Search(マイクロソフト)は、新しい「URL正規化タグ」をサポートすると発表した。 このタグを使えば、ウェブマスターやサイトオーナーが検索エンジンのインデックス内での重複コンテンツ問題を解消できる(ただし、自サイト内の問題のせいで生じる重複インデックスのみ)。 僕が思うに、これはSEOのベストプラクティスにとって、サイトマップの登場以来最大の変化だと思う。SEOmozでは最新ニュースを届けることより戦略について論じることに重点を置いているから、このブログで検索エンジン関
オヒサシブリデース。 ついにはてなブログに移行しました。インポート楽ちんでよいですね。 ここのところあんまり新しいことしてなかったので書くことなかったんですが、 久々に触ったことなかったライブラリに触ったので覚書までに。 HTMLをパースする案件がありまして、以下のパーサを触ったんですが、 割と精度も使い勝手もパフォーマンスもよかったjsoupを紹介してみます。 jsoup jericho HtmlCleaner Validator.nu HTMLEditorKit TagSoup HTML Parser NekoHtml JTidy 準備 mavenでビルドするのを想定して、まずはpom.xmlに以下を追記します。 <dependency> <groupId>org.jsoup</groupId> <artifactId>jsoup</artifactId> <version>1.7
Constantly updating and maintaining the HtmlUnit code base already takes a lot of time. I would like to make 2 major extensions in the next few months Add HTTP/2 support Replace the Rhino based JavaScript engine For doing this I need your Sponsoring. HtmlUnit is a "GUI-Less browser for Java programs". It models HTML documents and provides an API that allows you to invoke pages, fill out forms, cli
Jericho HTML Parser is a java library allowing analysis and manipulation of parts of an HTML document, including server-side tags, while reproducing verbatim any unrecognised or invalid HTML. It also provides high-level HTML form manipulation functions. It is an open source library released under the Eclipse Public License (EPL), GNU Lesser General Public License (LGPL), and Apache Licence. You ar
ちょっと大量のHTMLファイルをチェックする作業があって、grep/Perl One Linerで頑張るのも厳しいよなぁと思い、HTMLファイルをJavaでパースしてどうにかしようと思い立ちました、今日。 で、JavaでHTMLパーサといえば、個人的にはパッと思い浮かぶのがNekoHTML。 CyberNeko HTML Parser http://nekohtml.sourceforge.net/ が、いかんせんこれは古い。HTML5にも対応していませんし。 よって、他のパーサを探してみました。2つほど見つかったので、ご紹介します。 HTMLをパースするので、以下のような閉じタグがないHTMLもパースできなければなりません。 index.html <!DOCTYPE html> <html> <head> <title>タイトル</title> </head> <body> <div i
jsoup: Java HTML Parser jsoup is a Java library that simplifies working with real-world HTML and XML. It offers an easy-to-use API for URL fetching, data parsing, extraction, and manipulation using DOM API methods, CSS, and xpath selectors. jsoup implements the WHATWG HTML5 specification, and parses HTML to the same DOM as modern browsers. scrape and parse HTML from a URL, file, or string find and
Schema.org is a collaborative, community activity with a mission to create, maintain, and promote schemas for structured data on the Internet, on web pages, in email messages, and beyond. Schema.org vocabulary can be used with many different encodings, including RDFa, Microdata and JSON-LD. These vocabularies cover entities, relationships between entities and actions, and can easily be extended th
Beautifully DRY, well-indented, clear markup: templating haiku. Download Haml Latest: 6.3.0 - What's New? .erb <section class="container"> <h1><%= post.title %></h1> <h2><%= post.subtitle %></h2> <div class="content"> <%= post.content %> </div> </section> What is it? Haml (HTML abstraction markup language) is based on one primary principle: markup should be beautiful. It’s not just beauty for beau
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く