「false」を含む日記 RSS

はてなキーワード: falseとは

2020-03-04

navigate.serviceWorker is undefined for firefox

プライベートウインドウじゃねーかという情報しかないけど、普通にChromeとかと一緒で window.isSecureContextが false だと使えない。

MDNの serviceWorkerのページには書かれてないけど https://developer.mozilla.org/ja/docs/Web/API/Navigator/serviceWorker

安全コンテキストでのみ使用できる現在機能 といページには記載がある https://developer.mozilla.org/ja/docs/Web/Security/Secure_Contexts/features_restricted_to_secure_contexts

2020-02-28

vlookupで

falseって入れるところあるじゃん

あれっていつtrueって入れるんだろう

15年間で1度もtrueって入れたことがない

2020-02-27

Terms of use: Follower Check +

Registered users (hereinafter referred to asusers”) shall use the Service in accordance with the Terms.

These Terms of Service (hereinafter referred to as the "Terms") determine the terms of use for the services provided by the Company (hereinafter referred to as the "Services").

Article 1 (Apply)

These Terms shall apply to any relationship between you and us regarding the use of the Services.

Article 2 (Registration)

A registration applicant shall apply for use registration according to the method prescribed by the Company, and the use registration shall be completed when the Company approves this.

The Company may not approve the application for use registration if it determines that the applicant for use registration has any of the following reasons, and shall have no obligation to disclose the reason.

(1) When filing false information when applying for use registration

(2) When the application is from a person who has violated these Terms

(3) In addition, if we judge that the use registration is not appropriate

Article 3 (User ID and Password Management)

Users shall manage the user ID and password of this service at their own risk.

Users may not transfer or lend their user IDs and passwords to third parties under any circumstances. If the combination of the user ID and password matches the registered information and the user logs in, the company considers the use by the user who has registered the user ID.

Article 4 (Usage Fee and Payment Method)

Only when the user consents to the purchase to use the Service, the Company shall separately determine the price for the use of the Service and pay the usage fee displayed before the purchase of the Service by the method specified by the Company.

The free trial campaign applies only to the first registration.

No refunds will be made for any paid services purchased, regardless of the reason.

Article 5 (Prohibitions)

Users must not do any of the following when using this service:

(1) Acts that violate laws or public order and morals

(2) Acts related to criminal acts

(3) Acts that destroy or obstruct our server or network functions

(4) Acts that may interfere with the operation of our services

(5) Acts that directly or indirectly benefit anti-social forces in connection with our services

(6) Other acts deemed inappropriate by the Company

Article 6 (Suspension of provision of this service, etc.)

The Company may suspend or suspend the provision of all or a part of the Service without prior notice to the User if it determines that any of the following events occur.

(1) When performing maintenance or updating of the computer system related to this service

(2) When it becomes difficult to provide this service due to force majeure such as earthquake, lightning, fire, power outage or natural disaster

(3) When a computer or communication line stops due to an accident

(4) In addition, if we judge it is difficult to provide this service

The Company shall not be liable for any disadvantage or damage suffered by the user or any third party due to suspension or interruption of the provision of this service for any reason.

Article 7 (Restrictions on use and cancellation of registration)

In the following cases, the Company may restrict the use of this service in whole or in part, or cancel the registration as a user without prior notice.

(1) In the case of violating any provision of these Terms

(2) When it turns out that the registered items are false

(3) In addition, if we judge that the use of this service is not appropriate

The Company shall not be liable for any damages caused to Users due to the actions performed by the Company based on this section.

Article 8 (Disclaimer)

Our default liability shall be waived if not due to our intentional or gross negligence.

The Company shall not be liable for any transactions, communications or disputes arising between the User and other users or third parties with respect to the Service.

Article 9 (Changes in service content, etc.)

We may change the contents of this service or stop providing this service without notifying the user, and we do not take any responsibility for any damage caused to the user by this.

Article 10 (Change of Terms of Use)

We may change these Terms at any time, without notice, if we deem it necessary.

Article 11 (Notification or communication)

Notice or communication between the user and us shall be made in a manner determined by us.

Article 12 (Prohibition of transfer of rights and obligations)

You may not transfer or provide security to any third party without your prior written consent to your position in the terms of use or any rights or obligations under these Terms.

Article 13 (Governing law and jurisdiction)

In interpreting these Terms, the laws of Japan shall be the governing law.

In case of any dispute regarding this service, the exclusive jurisdiction of the court having jurisdiction over the location of our head office shall be exclusive

2019-12-25

anond:20191225032808

冬の条件定義からお願いします。

内容によっては増田意見trueになる場合falseになる場合があります

2019-12-04

anond:20191204173005

BOOL型と STRING型の混在プログラムよりも、STRING型で統一されたプログラムのほうが美しいじゃない?

そもそも、BOOL型には拡張性が無い。

true or false 以外に may be true とか、not so false みたいな新たな状態を示す値を定義できない問題がある。

だが、最初から文字型で定義しておけば、そのような拡張性の無さに困ることがない。


BOOL型は省メモリだ、判定が速いだと言い出す輩もいるが、現代コンピュータでは、STRING型でも十分に代用可能

処理速度がボトルネックになった時点でリファクタリングすればいい。

わざわざ、BOOL型を導入するよりも、STRING統一しておいた方が多言語への移植簡単だろう。

・・・みたいにアタマのよい人は考えているに違いないの。

false」って何て読むの?

ファースだと思ってた。

フォース

dangerダンガーと読んだことがあるので、自分発音は参考にならない。

2019-11-10

TwitterYahoo!リアルタイム検索共通で使えるフィルタ(拡張機能)作った

anond:20180609124213

Twitterフィルタ - Chrome ウェブストア

https://chrome.google.com/webstore/detail/twitter%E3%83%95%E3%82%A3%E3%83%AB%E3%82%BF/eoglgmgmfacolbkbjpkhdloieffcmnan

Twitterフィルタ – 🦊 Firefox (ja)

https://addons.mozilla.org/ja/firefox/addon/twitter%E3%83%95%E3%82%A3%E3%83%AB%E3%82%BF/

github

https://github.com/lvnkae/twitter-filter

概要

用語

機能

Twitter
Yahoo!リアルタイム検索
togetter
迷惑サイトフィルタ

使い方

基本設定
詳細設定

ユーザIDミュート詳細設定

設定済みIDダブルクリックで詳細設定へ

 ・アカウント固有の非表示ワード設定

   質問箱回答だけうざい

   NewsPick発言が痛々しい

  など。チェックはしたいアカウントだが一部気に障る発言がある場合に。

表示名ミュートの詳細設定

設定した単語ダブルクリックで詳細設定へ

 a.単語の頭に <> を付けると正規表現ON

 例)

  <>(名言|迷言|画像|図鑑|検定|ネタ|セリフ)bot$

  各種botツイートプロフィールをまとめて削除

 b.フィルタ適用方法指定

   完全一ON/OFF

   大文字/小文字区別なしON/OFF (正規化)

  をチェックボックスにて指定

 ※完全一致と正規表現排他

 ※両方設定した場合正規表現が勝ち完全一致は無視される

ワードミュートの詳細設定

 単語の頭に <> を付けると正規表現ON

 例)

  <>宇佐美 *定満

   宇佐美定満

   宇佐美 定満

   宇佐美 定満

   宇佐美  定満

  等、姓名間にスペースが0個以上ある定満はを含むツイートを削除

絵文字の扱い

[対象サイト]

URL概要ミュー対象
https://twitter.com/$(user)twitterユーザページツイート/おすすめユーザ
https://twitter.com/$(user)/status/$(tweet-id)twitterツイートスレッドリプライ
https://twitter.com/$(user)/lists/twitterリストツイート
https://twitter.com/search?=$(command)twitter検索結果ツイート/プロフィール/画像/記事
https://twitter.com/hashtag/$(hashtag)?src=hashtwitterハッシュタグ検索結果ツイート/プロフィール/画像/記事
https://search.yahoo.co.jp/realtime/search?$(command)Yahoo!リアルタイム検索ツイート
ttps://togetter.com/li/$(contentsID)togetterまとめ詳細ページツイート/リンク/コメント

備考

Twitter
amba.tobitly系(ameba)
amzn.tobitly系(amazon)
bit.ly本家
buff.lybitly系
dlvr.it
goo.glgoogle独自/API廃止されたらしい
htn.tohatena独自/19.02.28API廃止
ino.toInoreader
ift.ttbitly系(IFTTT)
is.gd
j.mpbitly系
kisu.me
lb.tobitly系(livedoor)
nav.cxnaver独自
npx.meNewsPicks独自
ow.lyhootsuite
tinyurl.comtinyurl

結果

twitter検索結果がかなりきれいになった。まとめサイトとかまず見ない。

動機

技術

短縮URL展開
右クリックメニュー

文字制限にかかったので次へ…

2019-09-28

ねえねえどうしてこれ動かないの

ティラノスクリプトswitch文書いたんだけど動かん

addEventListener('keydown', ifKeydown, false);

function ifKeydown(event){
    switch(event.keyCode){
        case '37':
            $('.player').css('left','-=80');
            break;
        case '38':
            $('.player').css('top','-=62');
            break;
        case '39':
            $('.player').css('left','+=80');
            break;
        case '40':
            $('.player').css('top','+=62');
            break;
    }
}

↓こんな感じでif文でごりごり書いてったら動くけど間にもっと処理追加したいかswitchがいい

    if(event.keyCode=='37') $('.player').css('left','-=80');
    if(event.keyCode=='38') $('.player').css('top','-=62');
    if(event.keyCode=='39') $('.player').css('left','+=80');
    if(event.keyCode=='40') $('.player').css('top','+=62');

2019-09-25

ママに聞くんだけど

public string Hoge(bool? isPiyo)
{
    if(isPiyo.HasValue)
    {
        if(isPiyo.Value)
        {
            return “trueすこ”;
        }
        else
        }
            return “falseすこ”;
        }
    }
    else
    {
        return “nullすこ”
    }
}

こういうメソッドでNullの時が例外的な処理じゃなく、正常なパターンも想定しているやつすこじゃない

みんなはすこ?

(ママに聞け)

(ママプログラムわかるわけないだろ)

(ママに聞いたんか?)

(聞いてないんご……)

(ならママに聞け)

(はい…… ママに聞きます)

2019-09-24

MITメディアラボ フード・コンピュータ 性能偽装環境汚染隠蔽疑惑

フード・コンピューター (food computer) のプレゼン配信していたTEDが、2点の批判についてページを公開した。

フード・コンピュータープレゼンのようには動かない

汚染水排出MITメディアラボオープン農業構想を州の環境保護局が調査

フード・コンピューター疑惑検証メディアラボ所長(当時)がうやむやにした疑いなど機能偽装について

Hype vs. Reality at the MIT Media Lab (The Chronicle of Higher Education)

オープン農業構想のプロジェクトリーダー Caleb Harper が建築を学んだ後この構想に至った経緯や、プレゼン偽装するよう指示された研究員が、開発していない機器無関係プロジェクト写真入りで紹介されたこと(プロジェクト担当者の水増し)も説明されている。

フード・コンピューター検証問題提起MITメディアラボ所長(当時)伊藤穣一氏がうやむやにして問題放置

As research lead, Babakinejad felt it was his responsibility to raise these issues with Harper and other members of the team, and he did so in an email. He also raised his concerns with Ito. In an email, he told the director that the Open Agriculture Initiative had not been able to create a controlled environment in the food computers, and that the devices had been sent to schools and a refugee camp without being tested to ensure that they worked. He worried that Harper was misleading funders. Ito responded by asking if he could raise these issues with Harper. Babakinejad agreed to let Ito share his general concerns. (Ito did not respond to a request for comment. A Media Lab spokeswoman declined to comment.)

プロジェクトにおけるresearch leadとして、Babakinejadはフード・コンピューター問題光合成のためのLEDによる熱で温度が安定しない、二酸化炭素酸素湿度を調整できない)を提起する責任があると感じ、その問題メールでHarperや他の研究員に提起した。その心配伊藤穣一MITメディアラボ所長(当時)にも提起した。「オープン農業構想はフード・コンピューターの中で制御された環境をつくることができていません。その装置はきちんと動作するか検証されないまま学校難民キャンプに送付されました。」Harperが資金提供者を誤解させていることが心配だった。伊藤所長は、その問題をHarperとともに提起できる(その問題をHarperに話していい)か、彼に質問しました。Babakinejadは自分懸念伊藤所長から他に伝えることを了解しました。(伊藤穣一氏にコメントを依頼したが、返答なし。メディアラボ広報担当コメント拒否

プロジェクトリーダー Caleb Harper への取材

Harper's optimism helps raise money, and without money he won’t be able to see this dream of an international network of food computers come true. His critics, he said, “are basically jealous because I raise a lot of funding while giving away knowledge for free.” Harper also said that he doesn’t mislead the public. He’s explained his progress in great detail in a series of Medium posts, he said. Some may have misinterpreted his vision as current reality, he said, but if they listened closely they would not be mistaken. “Can you email a tomato to someone today? No,” he said. “Did I say that in my TED talk? Yes. Did I say it was today? No. I said, you will be able to email a tomato.”

Harperの楽観主義資金集めに役立ちました。その資金がなければ、フード・コンピューター国際的ネットワークが実現しませんでした。Harperによれば、自分への批判基本的には嫉妬、なぜなら知識無料提供しているのに多くの資金を集めているから。Harperは、自分一般の人を誤解させていない、Medium に詳細を書いた進捗状況の記事をずっと書いているから、とも言いました。自分展望を今の現実と誤解している人がいるかも知れないが、もししっかり聞いていたなら、誤解は決してしない。「トマトメール今日送れますか?いいえ」「TEDトークで私は言ったでしょうか。ええ。それが今日だと私は言いましたか?いいえ。私は、トマトメールを将来送れるようになる、と言ったんです。」

It's true that Harper didn’t quite say that food computers can email tomatoes or apples, though you could be forgiven for thinking exactly that. He frequently leaves the impression that the project has achieved, or is on the brink of achieving, an enormous breakthrough. It’s a style that has attracted the sort of high-profile attention, not to mention corporate funding, that fuels projects at the MIT Media Lab, and his willingness to showcase food computers beset with problems feels consistent with Ito’s “deploy or die” philosophy.

かにHarperは、フード・コンピュータートマトリンゴメールできるとは言っていない。しかし今できると考えてしまうのもしかたない。彼は、自分プロジェクトがすでに大きなブレークスルーを達成したか、今すぐにも達成しそうだという印象を頻繁に残している。その方法で、いわゆる有名人やもちろん企業投資の注目を集め、MITメディアラボプロジェクト資金が集まる。問題が山積している食料コンピューターをHarperが展示し続けるというのは、伊藤穣一氏の「実装なくば死を」の考えに一致しているようだ。

M.I.T. Media Lab, Already Rattled by the Epstein Scandal, Has a New Worry (The New York Times)

You seem to think endlessly reiterating untrue claims will lend them credibility, but it won’t,” Dr. Babakinejad wrote to Mr. Harper. “By persisting in this course of action, you have been putting M.I.T. and everyone associated with you at risk and I think it’s time that you were made to face up to that and take responsibility for it.”

正しくない主張を終わることなく繰り返していればその主張に真実味が出てくると考えているようですが、ありえません」とBarakinejadは(雇用契約更新がされなかった後)Harperに書いた。「そういった行動を続けることで、MITあなた関係している全員を危険さらし続けています。それ(正しくない主張を繰り返すこと)に向き合って、責任を取るときだと思います。」

大事デモ自動のはずの光の量を人手で調節

The food computers, which researchers have envisioned selling to the public, are supposed to provide plants with just the right amount of light. But when the light function was not working, another member of the OpenAg team said, speaking on the condition of anonymity to describe sensitive events, an engineer manually rigged the device so that light would shine at the correct level during an important demonstration.

フード・コンピューターは、一般に売り込むために研究者想像したものですが、適切な光の量をちょうど植物供給すると思われていますしかし、光の装置機能しないとき匿名を条件にしたあるオープン農業構想チームの研究員によれば、大事デモとき技術者装置不正操作して、適正レベルに光らせていました

専門家によるフード・コンピューター評価

コーネル大学教授植物学)Thomas Bjorkman によると、オープン農業構想の論文が書いているような機能を持つ箱はあるが、操作するのに費用が掛かり、24キロワット240個の100ワット電球を同時に光らせる)エネルギー必要になる。

論文学術価値について、「制御環境を使った農業工場の現状はとても進んでいるので、植物栽培研究実践について影響はほとんどない。」とBjorkman教授コメントした。

MITメディアラボ伊藤穣一所長(当時)がフード・コンピューターについての訴えをうやむやに(The Chronicle of Higher Education 記事と同じ出来事

In an email exchange with Mr. Ito, Dr. Babakinejad expressed his concern about what he said were Mr. Harper’s false claims in a draft of the academic paper, the “60 Minutes” interview and lectures.
“Up to now,” Dr. Babakinejad wrote, “we have not been able to achieve a ‘controlled environment’ nor been able to create an atmosphere (Climate control) as he leads people to believe in his talks. His claims about developments such as implementations of image processing, microbiome dosing, creating different climates and collecting credible data from bots across the world are not true.”
Mr. Ito wrote in his reply: “Can I say that you have concerns about whether the food computers have been able to create a controlled environment which would put into questions some of the claims we make about the data and outcomes?”
Dr. Babakinejad replied in the affirmative, and the exchange ended.

MITメディアラボ伊藤穣一所長(当時)とやりとししたメールで、Barakinejadは論文ドラフトドキュメンタリー番組インタビュー講義でのHarperの誤った主張に関する心配を書いていました。

現在まで、Harperが講演で人々を信じさせているような、制御された環境も出来ていないし、天候の制御も出来ていない。画像処理実装マイクロバイオーム、異なる気候を作ること、世界中ボットから信頼できるデータを集めること、といった開発についての主張は正しくありません。」伊藤穣一氏の返事は「フード・コンピューター制御された環境を作れるかどうかによって、データや結果に関しての主張のいくつかに疑問が生まれる、という懸念を持っているということでしょうか」

Babakinejadは肯定的な返事を返したが、そこでやりとりは終わった。

根拠のない統計を周りが止めても、Harperは講演で使った

他に「リンゴは収穫してから店頭に並ぶまで平均11か月(最近は14か月)掛かっている」の11か月という統計根拠がないと指摘しても、Harperは止めなかった。アメリカ農務省の答え「その統計不正確」

郊外研究施設周辺の環境汚染MITによる組織隠蔽

MIT Media Lab Kept Regulators in the Dark, Dumped Chemicals in Excess of Legal Limit (Propublica and WBUR)

以下では、MITメディアラボオープン農業構想をメディアラボMIT環境健康安全オフィスMITマサチューセッツ州環境保護局を州と略記。

報道における汚染水隠蔽時系列

2015年 オープン農業構想 (Open Agriculture Initiative) がCaleb HarperによりMITメディアラボで開始

2016年8月 コンサルタントMITメディアラボ施設ディレクターメール水耕栽培用の水の窒素量を10ppm以下に抑えるなら、排水用の貯水池が最適」

2017年6月ごろ Babak BabakinejadがHarperのグループに参加

2017年10月 Babakinejadがresearch leadに昇進し、汚染水排出した施設での勤務を開始

2017年12月 マサチューセッツ州監査員が貯水池の利用に制限付き許可を出す。

2018年3月22日 ラボノートの記録によると、廃棄濃度を報告義務の限度を大幅に超える(水の量が多く、許可制限内では希釈できない)。

2018年4月研究員メディアラボ)BabakinejadがHarperにメール汚染水窒素量が制限を大幅に超えているとHarperに報告(1度目)

2018年4月16日 (研究員メディアラボMIT)Babakinejadがメール汚染水窒素量が大幅に超えているとHarperとMITに報告。HarperはBabakinejadにMITへの直接報告を禁止

2018年4月17日 MITのPhyllis CarterがHarper, Babakinejad, ほかのメンバーメール「先週のサンプルにおける窒素量は140ppm。このレベル排水許可されない。」(MITはこの時点で州の規則違反となる環境汚染を把握

時期不明 HarperはBabakinejadに勤務時間中の作業内容を30分ごとに記録するよう指示(Babakinejadは報復だと感じた)

2018年中旬 BabakinejadがHarperのグループから去る。

2019年1月 (州→MITマサチューセッツ州担当者 Joseph CeruttiがMIT環境健康安全オフィスPhyllis Carterにメールで、貯水池排出された汚染水窒素量の月例報告を催促。

MIT→州)Carterは4月から6月まで何も貯水池排出していないと返答(1-3月、7-12月の報告を送らず、無視

2019年2月(州→MITメディアラボ) 報告が届かないので、CeruttiはCarterとHarperに、2週間以内に回答がなければ、違反通知、罰金許可取り消しを警告

メディアラボ→州)HarperはCeruttiへ即座に返答「農業廃液は野外に捨てて、米国環境保護庁の地下注入管プログラム (UIC) のシステムには入れていない。これはMIT合意した手続き」(貯水池のみの利用という

2019-08-19

大学の両輪は「研究」と「教育」

山梨学院大学で労使紛争が起こっているようである

山梨学院大学で異常事態…「非常勤講師切り捨て」とモラルの崩壊(田中 圭太郎)

しかし私の興味を引いたのは、山梨学院大学教育に重きを置いて高度な研究機関となることは目指さないと公言していることに対して、田中氏が以下の批判をしている点である

言うまでもなく、大学の両輪は「研究」と「教育」であるはずだ。しかし「研究者は今後雇用しない」と受け止められる文言が、ここには堂々と書かれているのだ。

ツイッター上でも大学教員を中心に山梨学院大批判的な声が上がっているが、大学の両輪は「研究」と「教育」である、というのは現代において言うまでもない当然の前提なのだろうか。例えば、『経済学部タチバナキ教授が見たニッポンの大学教授と大学生』(橘木 俊詔)によると、「アメリカ大学ではトップ50までが研究中心の大学、それ以外は教育中心の大学と二分化」されているようである教員キャリアも、それに応じて研究中心と教育中心のそれぞれのスペシャリストとして専門分化しているようだ。

また日本においては、大学教員研究に重きを置くと第一線での研究活動多忙を極めるので、学生教育がその合間になるという実態がある、と氏は指摘する。そこで日本においても米国と同じく、研究中心か教育中心かのいずれかに教員キャリア分岐していくだろう、と氏は予想している。

世界トップ学術業績を出している米国大学研究中心と教育中心に分業しており、加えて研究を重視する教員による教育が手薄になりやすいという日本大学問題意識考慮すると、山梨学院大教育中心に舵を切るという方針は、大学存在意義否定するものとは言い難いように思う。少なくとも「言うまでもなく、大学の両輪は「研究」と「教育」であるはずだ」の一言で終わらせるのではなく、研究中心と教育中心に分化した場合にどのような弊害が生じうるのか、そして米国ではどのような弊害が生じたか、など丁寧な議論を展開した上でこの方針批判するべきだろう。

2019-07-18

anond:20190718113048

元増田の主張はこういうことなんだよ!親が居る居ないは関係ない

以下のis普通()関数の判定ロジックは正しくないのではないか?

function is普通() {
	if (!親と喋ったことある      ) return false;
	if (!親に触ったことある      ) return false;
	if (!親に相談事する          ) return false;
	if (!親は困ったら助けてくれる) return false;
	if (!親の所在がわかっている  ) return false;
	if (!親に連絡いつでも取れる  ) return false;
	return true;
}

2019-07-14

はてブTOPエントリfalse economyのやつ

こいつはこいつで言ってること所々おかしくね?別にオフィスビルが立派である必要はないだろ。部屋が涼しければ服洗わないし風呂入らないの?ジャップの非合理さには俺も辟易してるしこのおっさんには基本的賛同したい所だが、例として挙げてる話がどれもちょっと拙すぎないか

これを増田辺りで書いてもスルーされるか鼻くそみたいな反応が付くんだろうが外人が言うとありがたがるバカブクマカー共が可視化されてて不愉快痛快。

anond:20190714131638

月額課金制は長く使うほど損をするぞ これもFalse economyの弊害

2019-07-01

anond:20190701144403

あなたtrueですかっていうアンケートに「undefined」って答えたら「false」にされたことがある

いやいや「undefined」であって「false」ではないよそこんところちゃんとしてくれや

ログイン ユーザー登録
ようこそ ゲスト さん