Copyright © 2024 Information-technology Promotion Agency, Japan(IPA) 法人番号 5010005007126
![脆弱性対策情報 | 情報セキュリティ | IPA 独立行政法人 情報処理推進機構](https://cdn-ak-scissors.b.st-hatena.com/image/square/b9ae4e41e8b2184c612831da1241b4cf079ca73a/height=288;version=1;width=512/https%3A%2F%2Fwww.ipa.go.jp%2Fk3q2q400000050d7-img%2Fk3q2q400000050dg.png)
Python 3.7.1 and 3.6.7 are now available. Python 3.7.1 is the first maintenance release of the newest feature release of the Python language. You can find Python 3.7.1 here: See the What’s New In Python 3.7 document for more information about the many new features and optimizations included in the 3.7 series. Detailed information about the changes made in 3.7.1 can be found in its change log. We
*twitterキャンペーンの詳細は下記をご確認ください。 *「ジュエル」「ノーラ(A)」「ゆきだるま(S)」「町長(A)」は、 配信開始時点でプレゼントボックスより受け取ることが出来ます。 事前登録に関する注意事項 ・事前登録は受付時点で完了となります。 ・事前登録者数は、「ロマンシング サガ リ・ユニバース」公式事前登録キャンペーンサイト及び外部事前予約サイトでの登録総数となります。 ・特典を受け取る権利は、他人に譲渡、質入等を行うことはできません。 ・外部事前予約サイトでご登録いただきましたお客様へのご連絡は、各媒体のルールに従い行われます。 ・「ロマンシング サガ リ・ユニバース」に関する内容、正式リリース日、特典の内容等に関するお問い合わせにはお答えできません。予めご了承ください。 事前登録報酬について ・「ジュエル」は「ジュエル(無償)」となります。配信開始時点でプレゼントボッ
KDD2018の感想です。AdKDDやネット広告方面は職場のBlogに書くので、こちらは他の話を。今年は因果推論のチュートリアルが超満員だったり、予測モデルの差別、解釈性と説明性「interpretable and explainable machine learning models」が注目されたりと単に予測するのでは無く運用課題の話が増えたのが印象に残っています。 リスク予測とインセンティブデザイン 上の写真はDavid Hand氏による講演「Data Science for Financial Applications」の一場面です。自動車保険の保険料が女性に比べて男性が高い事に抵抗して行政上の性別を変更した男性*3の例が紹介されています (NEW YORK POSTの記事)。 事故を起す確率が高いと予測された顧客に高い保険料を課すのは自然なアイデアです。しかし事故発生確率と因果があ
リポジトリを横断しての開発 自分は普段いくつかの(主にマイクロサービス)リポジトリを横断しつつコーディングをしています。 その際に tmux + zsh + neovim を使っているのですが、 tmux (とzsh)を使って複数のリポジトリを横断する最高の設定を使っているので紹介します。 まず前提として、複数リポジトリのマイクロサービスを立ち上げるとめちゃくちゃコンソールが増えると思います。 自分はプロジェクト毎にローカルサーバで1-2個・エディタ1つ・シェルで1つ・REPLで1つくらいは平気で使います。ついでに一時的な検証をするワークスペースを作って5-7個くらいは平気でプロジェクトを横断することがあります。 これを tmux の window と pane だけで管理するのは辛いのでやめましょう。 tmux には session という便利な機能があるのでこれを使います。 簡単に説明
使用例 次の HTML を PDF に変換します。せっかくなので、PDF 文書っぽく二列表示に。 quanon/magica.html なお、文章は Wikipedia » 魔法少女まどか☆マギカ より引用しました。 そして pdf.css という PDF 専用の CSS も用意します。 @page { margin: 8.0rem 2.0rem; font-family: YuMincho, "Hiragino Mincho ProN", serif; @top-center { content: "魔法少女まどか☆マギカ"; vertical-align: bottom; font-size: 1.2rem; border-bottom: 0.1rem solid; margin-bottom: 1.2rem; } @bottom-right { content: counter(pa
Click Try It! to start a request and see the response here!
Django ORM の QuerySet には、select_related および prefetch_related というメソッドがありますが、イマイチ使い勝手がよく分からなかったりします。 公式ドキュメントにはこう書いてありますが、 select_related works by creating an SQL join and including the fields of the related object in the SELECT statement. For this reason, select_related gets the related objects in the same database query. However, to avoid the much larger result set that would result from joining a
Source code: Lib/unittest/mock.py unittest.mock is a library for testing in Python. It allows you to replace parts of your system under test with mock objects and make assertions about how they have been used. unittest.mock provides a core Mock class removing the need to create a host of stubs throughout your test suite. After performing an action, you can make assertions about which methods / att
Source code: Lib/unittest/mock.py unittest.mock is a library for testing in Python. It allows you to replace parts of your system under test with mock objects and make assertions about how they have been used. unittest.mock provides a core Mock class removing the need to create a host of stubs throughout your test suite. After performing an action, you can make assertions about which methods / att
Django >= 1.9 or using django-braces Django 1.9 has introduced a LoginRequiredMixin that is used thus: from django.contrib.auth.mixins import LoginRequiredMixin class MyView(LoginRequiredMixin, View): login_url = '/login/' redirect_field_name = 'redirect_to' If you are using an older version of django you can use pretty much the same mixin from django-braces - the Django version was based on the d
まあ公式ドキュメント読めばいい 参考::フォームやフィールドのバリデーション — Django v1.0 documentation 具体例 class HogeForm(forms.ModelForm): # intのフィールド hoge_int = forms.IntegerField(label=u'番号', required=False) # char のフィールド moge_char = forms.CharField(label=u'文字列', max_length=100, required=False) #単一のフォームのバリデーションチェックをする def clean_hoge_int(self): """hoge_intをバリデーションする """ hoge_int = self.cleaned_data['hoge_int'] if not 1 <= hoge_int
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く