「Date」を含む日記 RSS

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

2017-01-14

http://anond.hatelabo.jp/20170114155348

明確な目標があるのに、もったいない

ネットだと、情報が多すぎるのかな

javascriptかな?と思ったけど、ruby

ifもforもでてこなくてスマ

eachが形を変えたforです

いろんなとこからコピペ量産して、2時間近くかかりました^^

api取得はすぐだったけど、json、hash、arrayでごにゃごにゃ)

rubyソース

# ライブラリ
require 'net/http';
require 'uri'
require 'json'

# 検索文字
$q = 'http://ci.nii.ac.jp/books/opensearch/search?q=%E7%B3%9E&format=json'

# web-apiから取得
# https://support.nii.ac.jp/ja/cib/api/b_opensearch
def search(q)
    uri = URI.parse(q)
    json = Net::HTTP.get(uri)
    result = JSON.parse(json)
end

=begin
取得データ1件サンプル
{"title":"糞土",
"link":{"@id":"http://ci.nii.ac.jp/ncid/AN00094249"},
"@id":"http://ci.nii.ac.jp/ncid/AN00094249",
"@type":"item",
"rdfs:seeAlso":{"@id":"http://ci.nii.ac.jp/ncid/AN00094249.json"},
"dc:date":"1953",
"dc:creator":"糞土会",
"dc:publisher":["糞土会"],
"prism:publicationDate":"1953",
"cinii:ownerCount":"8"},
=end

# データ整形
#
# 入力データ構造
# {"@id":"http://ci.nii.ac.jp/books/opensearch/search?q=%E7%B3%9E&format=json",
#  "@graph":[ { "items":[ ,,,
#
# 出力(ハッシュ)
# {title => dc:date ,,, }
def format(hash)
    title_date = Hash.new

    # ハッシュキー"@graph"の値の配列の先頭のハッシュキー"items"のハッシュ配列を取得
    items = hash['@graph'][0]['items']

    # タイトル出版年を取得して、戻り値ハッシュへ追加していく
    items.each do |item|
        title = item['title'].chomp
        date  = item['dc:date']
        title_date.store(title, date)
    end

    return title_date
end

# 並び替え
def sort(hash)
    hash.sort_by do |key, value|
        value
    end
end

# 出力
def print(hash)
    hash.each do |key, value|
        puts "#{value}年 #{key}"
    end
end

# メイン関数
def main
    # web-api検索して、
    result1 = search($q)
    # データを整形して、
    result2 = format(result1)
    # 出版年で並び替えて、
    result3 = sort(result2)
    # 出力する
    print(result3)
end

# 実行
main

rubyスクリプトの実行結果

C:\Users\unko\Desktop\prog>ruby webapi.rb
1848年 人欲辨 (じんよくべん)
1870年 雀糞論説
1920年 青瓷説
1933年 管内ニ於ケル鶏糞ノ利用状況
1947年 糞尿譚 : 小説1953年 糞土
1955年 黒い裾
1955年 形成
1959年 石糞
1972年 糞 : 海田真生個人文芸誌
1972年 乳幼児糞便図譜
1987年 糞尿と生活文化
1991年 皇居と糞尿と大嘗祭 : 皇居「糞尿」裁判を支える会ニュース
1995年 糞袋
2000年 糞尿史 : 遷都は糞尿汚染からの逃避だった
2005年 「糞尿」大全
2007年 糞虫たちの博物誌
2008年 うんちのはなし : う~んとげんきになる
2009年 糞神

2016-12-01

http://anond.hatelabo.jp/20161201103721

メジャーマイナーホットフィックス

てな具合に桁ごとに意味づけすると間違いおこりにくい

major.minor.hotfix.build-date

ピリオド小数点じゃないですよ」

区切り文字なだけですよ」

みたいな

やってて、桁が上がっちゃうのならどうしようもないけど

2016-11-13

「morianda stevned」は不自然名前なので偽名っぽい。たぶんこの住所は存在しないでしょう

Domain Name: nervefullmovie.com

Registry Domain ID: 2055879336_DOMAIN_COM-VRSN

Registrar WHOIS Server: whois.godaddy.com

Registrar URL: http://www.godaddy.com

Update Date: 2016-08-29T17:56:41Z

Creation Date: 2016-08-29T17:56:41Z

Registrar Registration Expiration Date: 2017-08-29T17:56:41Z

Registrar: GoDaddy.com, LLC

Registrar IANA ID: 146

Registrar Abuse Contact Email: abuse@godaddy.com

Registrar Abuse Contact Phone: +1.4806242505

Domain Status: clientTransferProhibited

http://www.icann.org/epp#clientTransferProhibited

Domain Status: clientUpdateProhibited

http://www.icann.org/epp#clientUpdateProhibited

Domain Status: clientRenewProhibited

http://www.icann.org/epp#clientRenewProhibited

Domain Status: clientDeleteProhibited

http://www.icann.org/epp#clientDeleteProhibited

Registry Registrant ID: Not Available From Registry

Registrant Name: morianda stevned

Registrant Organization: Faster games Web

Registrant Street: 158427 Silverton Ave Tujunga

Registrant Street: California

Registrant City: California

Registrant State/Province: California

Registrant Postal Code: 91042

Registrant Country: US

Registrant Phone: +1.8185584329

Registrant Phone Ext:

Registrant Fax:

Registrant Fax Ext:

Registrant Email: seolinkmaster@hotmail.com

Registry Admin ID: Not Available From Registry

Admin Name: morianda stevned

Admin Organization: Faster games Web

Admin Street: 158427 Silverton Ave Tujunga

Admin Street: California

Admin City: California

Admin State/Province: California

Admin Postal Code: 91042

Admin Country: US

Admin Phone: +1.8185584329

Admin Phone Ext:

Admin Fax:

Admin Fax Ext:

Admin Email: seolinkmaster@hotmail.com

Registry Tech ID: Not Available From Registry

Tech Name: morianda stevned

Tech Organization: Faster games Web

Tech Street: 158427 Silverton Ave Tujunga

Tech Street: California

Tech City: California

Tech State/Province: California

Tech Postal Code: 91042

Tech Country: US

Tech Phone: +1.8185584329

Tech Phone Ext:

Tech Fax:

Tech Fax Ext:

Tech Email: seolinkmaster@hotmail.com

Name Server: NS1.THEWEBCITY.COM

Name Server: NS2.THEWEBCITY.COM

DNSSEC: unsigned

2016-11-12

スリランカドメインを取る理由は?

freefullmovies.website

Domain Name: FREEFULLMOVIES.WEBSITE

Domain ID: D36011835-CNIC

WHOIS Server: whois.dynadot.com

Referral URL: http://www.dynadot.com

Updated Date: 2016-09-06T17:32:18.0Z

Creation Date: 2016-09-01T17:27:55.0Z

Registry Expiry Date: 2017-09-01T23:59:59.0Z

Sponsoring Registrar: Dynadot LLC

Sponsoring Registrar IANA ID: 472

Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited

Registrant ID: C71879366-CNIC

Registrant Name: Roshan

Registrant Organization:

Registrant Street: 44/1 park raod colombo 3

Registrant City: colombo

Registrant State/Province: westran

Registrant Postal Code: 9400

Registrant Country: LK

Registrant Phone: +1.448511

Registrant Phone Ext:

Registrant Fax:

Registrant Fax Ext:

Registrant Email: lasdikhernas@yandex.com

Admin ID: C71879366-CNIC

Admin Name: Roshan

Admin Organization:

Admin Street: 44/1 park raod colombo 3

Admin City: colombo

Admin State/Province: westran

Admin Postal Code: 9400

Admin Country: LK

Admin Phone: +1.448511

Admin Phone Ext:

Admin Fax:

Admin Fax Ext:

Admin Email: lasdikhernas@yandex.com

Tech ID: C71879366-CNIC

Tech Name: Roshan

Tech Organization:

Tech Street: 44/1 park raod colombo 3

Tech City: colombo

Tech State/Province: westran

Tech Postal Code: 9400

Tech Country: LK

Tech Phone: +1.448511

Tech Phone Ext:

Tech Fax:

Tech Fax Ext:

Tech Email: lasdikhernas@yandex.com

Name Server: NS1.THEWEBCITY.COM

Name Server: NS2.THEWEBCITY.COM

DNSSEC: unsigned

Billing ID: C71879366-CNIC

Billing Name: Roshan

Billing Organization:

Billing Street: 44/1 park raod colombo 3

Billing City: colombo

Billing State/Province: westran

Billing Postal Code: 9400

Billing Country: LK

Billing Phone: +1.448511

Billing Phone Ext:

Billing Fax:

Billing Fax Ext:

Billing Email: lasdikhernas@yandex.com

>>> Last update of WHOIS database: 2016-11-12T13:55:02.0Z <<<

For more information on Whois status codes, please visit https://icann.org/epp

This whois service is provided by CentralNic Ltd and only contains

information pertaining to Internet domain names registered by our

our customers. By using this service you are agreeing (1) not to use any

information presented here for any purpose other than determining

ownership of domain names, (2) not to store or reproduce this data in

any way, (3) not to use any high-volume, automated, electronic processes

to obtain data from this service. Abuse of this service is monitored and

actions in contravention of these terms will result in being permanently

blacklisted. All data is (c) CentralNic Ltd https://www.centralnic.com/

Access to the whois service is rate limited. For more information, please

see https://registrar-console.centralnic.com/pub/whois_guidance.

2016-07-05

Skip to main content

简体中文 English Français Русский Español العربية Portuguese

ICANN WHOIS

ABOUT WHOIS POLICIES GET INVOLVED WHOIS COMPLAINTS KNOWLEDGE CENTER

gole.tech

Lookup

Showing results for: GOLE.TECH

Original Query: gole.tech

Contact Information

Registrant Contact

Name: guoyusheng

Organization: guoyusheng

Mailing Address: nantou, nanshanqu guangdongsheng 518052 CN

Phone: +086.075586334158

Ext:

Fax: +086.075586334158

Fax Ext:

Email: gys2008@vip.qq.com

Admin Contact

Name: guo yusheng

Organization: guoyusheng

Mailing Address: nantou, nanshanqu guangdongsheng 518052 CN

Phone: +086.075586334158

Ext:

Fax: +086.075586334158

Fax Ext:

Email: gys2008@vip.qq.com

Tech Contact

Name: guo yusheng

Organization: guoyusheng

Mailing Address: nantou, nanshanqu guangdongsheng 518052 CN

Phone: +086.075586334158

Ext:

Fax: +086.075586334158

Fax Ext:

Email: gys2008@vip.qq.com

Registrar

WHOIS Server: whois.paycenter.com.cn

URL: http://www.xinnet.com

Registrar: Xin Net Technology Corp.

IANA ID: 120

Abuse Contact Email:

Abuse Contact Phone:

Status

Domain Status: ok https://icann.org/epp#ok

Important Dates

Updated Date: 2016-04-25

Created Date: 2016-04-07

Registration Expiration Date: 2017-04-08

Name Servers

NS11.XINCACHE.COM

NS12.XINCACHE.COM

Raw WHOIS Record

Domain Name: GOLE.TECH

Domain ID: D19530286-CNIC

WHOIS Server: whois.paycenter.com.cn

Referral URL: http://www.xinnet.com

Updated Date: 2016-04-25T22:05:26.0Z

Creation Date: 2016-04-08T01:37:36.0Z

Registry Expiry Date: 2017-04-08T23:59:59.0Z

Sponsoring Registrar: Xin Net Technology Corp.

Sponsoring Registrar IANA ID: 120

Domain Status: ok https://icann.org/epp#ok

Registrant ID: C47347230-CNIC

Registrant Name: guoyusheng

Registrant Organization: guoyusheng

Registrant Street: nantou

Registrant City: nanshanqu

Registrant State/Province: guangdongsheng

Registrant Postal Code: 518052

Registrant Country: CN

Registrant Phone: +086.075586334158

Registrant Phone Ext:

Registrant Fax: +086.075586334158

Registrant Fax Ext:

Registrant Email: gys2008@vip.qq.com

Admin ID: C46402288-CNIC

Admin Name: guo yusheng

Admin Organization: guoyusheng

Admin Street: nantou

Admin City: nanshanqu

Admin State/Province: guangdongsheng

Admin Postal Code: 518052

Admin Country: CN

Admin Phone: +086.075586334158

Admin Phone Ext:

Admin Fax: +086.075586334158

Admin Fax Ext:

Admin Email: gys2008@vip.qq.com

Tech ID: C46402288-CNIC

Tech Name: guo yusheng

Tech Organization: guoyusheng

Tech Street: nantou

Tech City: nanshanqu

Tech State/Province: guangdongsheng

Tech Postal Code: 518052

Tech Country: CN

Tech Phone: +086.075586334158

Tech Phone Ext:

Tech Fax: +086.075586334158

Tech Fax Ext:

Tech Email: gys2008@vip.qq.com

Name Server: NS11.XINCACHE.COM

Name Server: NS12.XINCACHE.COM

DNSSEC: unsigned

Billing ID: C46402288-CNIC

Billing Name: guo yusheng

Billing Organization: guoyusheng

Billing Street: nantou

Billing City: nanshanqu

Billing State/Province: guangdongsheng

Billing Postal Code: 518052

Billing Country: CN

Billing Phone: +086.075586334158

Billing Phone Ext:

Billing Fax: +086.075586334158

Billing Fax Ext:

Billing Email: gys2008@vip.qq.com

>>> Last update of WHOIS database: 2016-07-04T17:33:49.0Z <<<

For more information on Whois status codes, please visit https://icann.org/epp

This whois service is provided by CentralNic Ltd and only contains

information pertaining to Internet domain names registered by our

our customers. By using this service you are agreeing (1) not to use any

information presented here for any purpose other than determining

ownership of domain names, (2) not to store or reproduce this data in

any way, (3) not to use any high-volume, automated, electronic processes

to obtain data from this service. Abuse of this service is monitored and

actions in contravention of these terms will result in being permanently

blacklisted. All data is (c) CentralNic Ltd https://www.centralnic.com/

Access to the whois service is rate limited. For more information, please

see https://registrar-console.centralnic.com/pub/whois_guidance.

Submit a Complaint for WHOIS

WHOIS Inaccuracy Complaint Form

WHOIS Service Complaint Form

WHOIS Compliance FAQs

NOTICE, DISCLAIMERS AND TERMS OF USE:

All results shown are captured from registries and/or registrars and are framed in real-time. ICANN does not generate, collect, retain or store the results shown other than for the transitory duration necessary to show these results in response to real-time queries.* These results are shown for the sole purpose of assisting you in obtaining information about domain name registration records and for no other purpose. You agree to use this data only for lawful purposes and further agree not to use this data (i) to allow, enable, or otherwise support the transmission by email, telephone, or facsimile of mass unsolicited, commercial advertising, or (ii) to enable high volume, automated, electronic processes to collect or compile this data for any purpose, including without limitation mining this data for your own personal or commercial purposes. ICANN reserves the right to restrict or terminate your access to the data if you fail to abide by these terms of use. ICANN reserves the right to modify these terms at any time. By submitting a query, you agree to abide by these terms.

There is one exception: ICANN acts as the registry operator for the .int TLD, and in that capacity it does collect, generate, retain and store information regarding registrations in the .int TLD.

© 2016 Internet Corporation for Assigned Names and Numbers Privacy Policy

2016-06-05

TSUTAYA DISCASメールの古い仕様を直さな

TSUTAYA DISCAS(以下、Tカス)のメールヘッダのDate項目の仕様が古いため、

Tカスから来るメールの日付がWebメーラで正しく表示されない。

ちなみにWebメールは、さくらレンタルサーバさくらメールボックス

原因は、RFC5322の4.3章「Obsolete Date and Time」。

これが新しいもの対応していない。

Tカスには前に問題を報告済み。

しか問題が起こってない、と言うことで対応しないとのこと。

こんなに頭と対応が悪いとは思ってもみなかった。

さくらメールボックスは動作が軽いので使っているが、クライアント側でなんとか対応できないか考えているがいい案が浮かばない。

クソッ!

2016-04-13

What is Calendar 2016?

はてな記法が一部使えますはてな記法一覧

What is Calendar 2016?

A calendar 2016 may be a system of organizing days for social, religious, business or body functions. this is often done by giving names to periods of your time, generally days, weeks, months, and years. A date is that the designation of one, specific day at intervals such a system. A calendar is additionally a physical record (often paper) of such a system. A calendar can even mean an inventory of planned events, like a court calendar or a part or absolutely written record list of documents, like a calendar of wills.

2016 Calendar

はてな記法が一部使えますはてな記法一覧はてな記法が一部使えますはてな記法一覧

We are here to bring you the 2016 calendar of important dates and events in the world. If you want from month to month, day to day if you want, you can find a click away on our website calendar year if you wish.

You can save your work to date, you can yazdılar what you consider important. Youll find all the transactions made in calendar 2016.

Twelve-month amount beginning with Jan one and ending with December 31, and that has 12 months in non bissextile years and three hundred and sixty six days in an exceedingly leap year. additionally referred to as yr.

2016-03-06

Domain Name: apvdr.com

Domain ID: 1836161033_DOMAIN_COM-VRSN

Registrar WHOIS Server: whois.discount-domain.com

Registrar URL: http://www.onamae.com

Updated Date: 2015-02-25T00:00:00Z

Creation Date: 2013-11-20T00:00:00Z

Registrar Registration Expiration Date: 2017-11-20T00:00:00Z

Registrar: GMO INTERNET, INC.

Registrar IANA ID: 49

Registrar Abuse Contact Email: abuse@gmo.jp

Registrar Abuse Contact Phone: +81.337709199

Domain Status: ok https://icann.org/epp#ok

Registrant ID: Not Available From Registry

Registrant Name: Hirohide Sano

Registrant Organization: AppVador Inc.

Registrant Street: 1-11-3 Azabujuban

Registrant Street: Toa Building 3F

Registrant City: Minato-ku

Registrant State/Province: Tokyo

Registrant Postal Code: 106-0045

Registrant Country: JP

Registrant Phone: +81.364355399

Registrant Phone Ext:

Registrant Fax: +81.364355399

Registrant Fax Ext:

Registrant Email: ops@appvador.com

Admin ID: Not Available From Registry

Admin Name: Hirohide Sano

Admin Organization: AppVador Inc.

Admin Street: 1-11-3 Azabujuban

Admin Street: Toua Bldg 3F

Admin City: Minato-ku

Admin State/Province: Tokyo

Admin Postal Code: 106-0045

Admin Country: JP

Admin Phone: +81.364355399

Admin Phone Ext:

Admin Fax:

Admin Fax Ext:

Admin Email: ops@appvador.com

Tech ID: Not Available From Registry

Tech Name: Hirohide Sano

Tech Organization: AppVador Inc.

Tech Street: 1-11-3 Azabujuban

Tech Street: Toua Bldg 3F

Tech City: Minato-ku

Tech State/Province: Tokyo

Tech Postal Code: 106-0045

Tech Country: JP

Tech Phone: +81.364355399

Tech Phone Ext:

Tech Fax:

Tech Fax Ext:

Tech Email: ops@appvador.com

Name Server: ns-1636.awsdns-12.co.uk

Name Server: ns-874.awsdns-45.net

Name Server: ns-226.awsdns-28.com

Name Server: ns-1427.awsdns-50.org

DNSSEC: unsigned

URL of the ICANN WHOIS Data Problem Reporting System: http://wdprs.internic.net/

>>> Last update of WHOIS database: 2015-02-25T00:00:00Z <<<

2016-03-04

window.OBR = window.OBR||{};(function(OBR){window.OB_releaseVer="01000501";window.OBR=window.OBR||{};OBR.k=OBR.k||;OBR.La=OBR.La||{};window.OBR$=function(d){return document.getElementById(d)};OBR.d=OBR.d||function(){var d={},a={v:function(){return d},h:function(a){d.X=a;d.cb=;d.startTime=(new Date).getTime()},startTime:function(){return d.startTime},log:function(a){var e=((new Date).getTime()-d.startTime)/1E3;1E3>d.cb.length&&d.cb.push(e+" >"+a)},printLog:function(){if(d.X.c.dj)window.console.log(d.cb.join("\n"));else{var a=d.X.b.Ia();a&&(a.innerHTML=d.cb.join("
"),a.style.display="block")}return d.cb.join("\n")}};a.h(OBR);return a}();OBR.printLog=OBR.d.printLog;OBR.H=function(){this.J=[]};OBR.H.prototype.add=function(d,a){var c;"string"===typeof d&amp;&amp;"function"===typeof a&amp;&amp;(c={},c.name=d,c.ai=a,this.J.push(c))};OBR.H.prototype.Qf=function(d){var a,c;OBR.d.log("remove event :"+d);a=0;for(c=this.J.length;a<c;a+=1)if(this.J[a]&amp;&amp;this.J[a].name&amp;&amp;this.J[a].name===d)try{this.J.splice(a,1)}catch(e){OBR.d.log("rm evnt err: "+e)}};</p&gt;

OBR.H.prototype.o=function(d,a,c){var e,b,f,g;a=a||[];c=!!c;OBR.d.log("event fire:"+d);e=0;for(b=this.J.length;e<b;e+=1)if(f=this.J&amp;&amp;this.J[e]?this.J[e].name:"",g=this.J&amp;&amp;this.J[e]?this.J[e].ai:null,f===d&amp;&g)try{g.apply(this,a)}catch(h){OBR.d.log("fire event *"+d+"* error: "+h)}!0===c&amp;&amp;this.Qf(d)};OBR.H.prototype.sa=function(){this.J=[]};OBR.b=OBR.b||function(){var d={},a={},c=document,e=OBR,b=null;a.v=function(){d.X=e;return d};a.h=function(a){e=a};a.Ba=function(){return function(){}};a.Gi=function(){var a=window.jQuery;return void 0!==a?!(/1\.(0|1|2|3|4)\.(0|1)/.test(a.fn.jquery)||/^1\.1/.test(a.fn.jquery)||/^1\.2/.test(a.fn.jquery)||/^1\.3/.test(a.fn.jquery)):!1};a.F=function(a){return null===a||isNaN(a)?null:e.n("outbrain_widget_"+a)};a.Ia=function(){return e.n("ob_holder")};a.ne=function(f){var g=a.Ia();null===g&amp;&amp;(g=e.b.createElement("div",</p&gt;

"ob_holder"),g.style.display="none",f?e.b.insertBefore(g,f):document.body.appendChild(g));return g};a.Vc=function(){if(!e.n(e.c.Pb)){var f=e.b.createElement("iframe",e.c.Pb),g=f.style;g.display="none";g.width="1px";g.height="1px";f.src="about:blank";(g=a.Ia())||(g=a.Va());e.b.Q(f,g)}};a.Va=function(){if(c.body)return c.body;var a;a=e.b.K("","","body",!0);return 0>=a.length?c.lastChild:a[0]};a.createElement=function(a,g,b,e){var d;a=c.createElement(a);"string"===typeof g&amp;&amp;a.setAttribute("id",g);"string"===

typeof b&amp;&amp;(a.style.cssText=b);for(d in e)e.hasOwnProperty(d)&amp;&amp;a.setAttribute(d,e[d]);return a};a.G=function(a){if(e.c.$d===e.c.Od)try{c.createStyleSheet().cssText=a}catch(g){OBR.d.log(g)}else{var b=c.createElement("style"),d=c.body?"string"===typeof c.body.style.WebkitAppearance:!1;b.type="text/css";c.getElementsByTagName("head")[0].appendChild(b);b[d?"innerText":"innerHTML"]=a}};a.N=function(a,g,b,d){var m=c.createElement("script");m.type=e.c.wj;m.src=a;m.charset="UTF-8";m.async=!!g;m.defer=!1;b&amp;&amp;

e.b.s(m,"load",function(a){var f=a.target;f&amp;&amp;setTimeout(function(){f.parentNode.removeChild(f)},3E3)});d&amp;&amp;e.b.s(m,"load",d);return m};a.Cl=function(a,g){var b=e.b.createElement("link",a);b.setAttribute("rel","stylesheet");b.setAttribute("type",e.c.Eh);g&amp;&amp;b.setAttribute("href",g);return b};a.ih=function(a){var g=e.n("ob_iframe");g&amp;&amp;(g.src=a)};a.Hf=function(){var a;a=isNaN(a)?1E5:a;return Math.floor(Math.random()*a)};a.nk=function(a,g,b){return a.replace(g,b)};a.Ll=function(){var f;if(f=OBR.n("objsonpp"))if(a.kj())a.Ka(f.parentNode)&amp;&amp;

f.parentNode.removeChild(f);else return OBR.n("objsonpp");f=c.createElement("iframe");f.id="objsonpp";f.tk&amp;&amp;(f.tk="seamless");(f.frameElement||f).style.cssText="width: 0; height: 0; border: 0";f.src="";c.body.appendChild(f);return f};a.R=function(a){var g,b;b=c.getElementsByTagName("head");try{b&amp;&amp;0<b.length?b[0].insertBefore(a,b[0].firstChild):(g=c.getElementsByTagName("script"),g[0].insertBefore(a,g[0].firstChild))}catch(d){e.d.log("Err insertToHead:"+d)}};a.Kl=function(a){a=a||OBR;return"function"!==</p&gt;

typeof a.H?(OBR.d.log("namespace.EventManager not function"),null):new a.H};a.O=function(a){return encodeURIComponent(a)};a.Ka=function(a){return null!==a};a.pj=function(f){var b,c=!1;if(a.Zc(f))return!1;b=f.Oe().recMode||"";f=f.Oe().dynamicWidgetLayout||"";b=e.c.rk[b]||"";"2"===b&amp;&amp;"1"===(e.c.sk[f]||"")&amp;&amp;(c=!0);c||"1"!==b&amp;&amp;"3"!==b||(c=!0);return c};a.Zc=function(a){return void 0===a||null===a};a.tj=function(b){return a.Zc(b)||""===b};a.getElementsByClassName=function(b,g){g||(g=document);return g.getElementsByClassName?

g.getElementsByClassName(b):a.K("class",b,"*",!0,!0,g)};a.K=function(b,g,e,d,m,l){var p,q,n;p=[];e=e||"*";d=!!d;m=!!a.tj(m);e=l?l.getElementsByTagName(e):c.getElementsByTagName(e);l=0;for(q=e.length;l<q;l+=1)n="class"===b?e[l].className:e[l].getAttribute(b),null!==n&amp;&amp;(!1===m&amp;&amp;(n=n.toLowerCase(),g=g.toLowerCase()),(n=""===b?!0:d?-1<n.indexOf(g):n===g)&amp;&amp;p.push(e[l]));return p};a.Wb=function(a,b,c){a.detachEvent?a.detachEvent("on"+b,c):a.removeEventListener&amp;&amp;a.removeEventListener(b,c,!1)};a.s=function(a,</p&gt;

b,c){a.attachEvent?a.attachEvent("on"+b,function(){c.call(a)}):a.addEventListener&amp;&amp;a.addEventListener(b,c,!1)};a.Q=function(a,b){try{b.appendChild(a)}catch(c){e.d.log("Fail insert into Dom:"+c)}};a.lb=function(b){b=e.n(b);!a.Zc(b)&amp;&amp;a.Ka(b.parentNode)&amp;&amp;b.parentNode.removeChild(b)};a.insertBefore=function(a,b){return b.parentNode.insertBefore(a,b)};a.isArray=function(a){return a instanceof Array?!0:"[object Array]"===Object.prototype.toString.call(a)};a.sb=function(a,b){var c=/htt(p|ps)?:\/\/127\.0\.0\.1(:\d\d\d\d)?/i;

return/^htt(p|ps)?:\/\/([\w\-]*|[\w\-]*\.[\w\-]*)\.outbrain\.com(:\d\d\d\d)?/i.test(a)||c.test(a)?a:b};a.al=function(a){a=a.replace(/^(\s*)/g,"");var b=c.createElement("div");b.innerHTML=a;return b.childNodes};a.Ua=function(a,b){return a?a.getAttribute(b):null};a.xa=function(a,b,c){a&amp;&amp;a.setAttribute(b,c)};a.I=function(a,b){var c=RegExp("[ '\"|]"+b+"[ '\"|]");a&amp;&amp;!c.test("|"+a.className+"|")&amp;&amp;(a.className+=" "+b)};a.ma=function(a,b){a&amp;&amp;typeof b===e.c.$k&amp;&amp;(a.classList?a.classList.remove(b):a.className=

a.className.replace(RegExp("(^|\\b)"+b+"(\\b|$)","gi")," "))};a.$=function(a,b){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var c,e;try{return c=RegExp("[\\?&amp;]"+a+"=([^&amp;#]*)","i"),e=c.exec(decodeURIComponent(window.location.href.replace(/\+/g," "))),null===e?b:e[1]}catch(d){return b}};a.sh=function(a){"string"===typeof a&amp;&amp;0<a.indexOf("#")&amp;&amp;(a=a.substr(0,a.lastIndexOf("#")));return a};a.ie=function(a){var b=e.c.ga+"/strip_default.png";a.src!==b&amp;&amp;(a.alt="",a.title="",a.src=b)};a.Oh=function(){var a=</p&gt;

null,b,e,d=null;if("string"===typeof window.OB_MP_feed)a=window.OB_MP_feed;else if((b=c.getElementsByTagName("head"))&amp;&amp;0<b.length)for(e=b[0].getElementsByTagName("link"),b=0;b<e.length;b+=1)if(d=e[b],null!==d.type&amp;&amp;("application/rss+xml"===d.type||"application/atom+xml"===d.type)&amp;&amp;null!==d.href&amp;&amp;""!==d.href){a=d.href;break}return a};a.D=function(a,b){var c=null;a.currentStyle?c=a.currentStyle[b]:window.getComputedStyle&amp;&amp;(c=document.defaultView.getComputedStyle(a,null).getPropertyValue(b));return c};</p&gt;

a.xk=function(){var b=a.Ia(),g,c;a.Ka(b)&amp;&amp;(g=e.b.createElement("span","ob_a"),a.insertBefore(g,b),g.innerHTML=".",c=a.D(g,"color"),a.lb("ob_a"),g=e.b.createElement("a","ob_a"),g.setAttribute("href","void(0)"),g.innerHTML=".",a.insertBefore(g,b),b=a.D(g,"color"),a.lb("ob_a"),c="rgb(0, 0, 0)"===c||"#000000"===c?"#555":c,a.G(".ob-tcolor{color:"+c+"} .ob-lcolor{color:"+b+"} .ob-bgtcolor{background-color:"+c+"} .item-link-container:hover .ob-tcolor{border-color:"+c+"} "+(document.addEventListener?"":".odb_li:hover .ob-zapping-icon,.odb_div:hover .ob-zapping-icon,.item-container:hover .ob-zapping-icon,.ob-dynamic-rec-container:hover .ob-zapping-icon,.odb_li:hover .ob-textual-zapping-icon,.odb_div:hover .ob-textual-zapping-icon,.item-container:hover .ob-textual-zapping-icon,.ob-dynamic-rec-container:hover .ob-textual-zapping-icon{display:none !important;}")))};

a.Ke=function(b){var g=a.Ie("property","og:url","meta","content");null===g&amp;&amp;(g=a.Ie("rel","canonical","link","href"));null!==g||b||(g=window.location.href);null===g&amp;&amp;(g="");return g};a.Ie=function(b,g,c,e){var d=null;b=a.K(b,g,c,!1);null!==b&amp;&amp;0<b.length&amp;&amp;(d=b[0].getAttribute(e));return d};a.jh=function(b){var g,c,d;g=b.g("tracking",!1);c=b.g("comScoreEnabled",!0);d=e.c.je;!1===g&amp;&amp;(!0===c&amp;&amp;!1===d&amp;&amp;!b.Pe())&amp;&amp;(a.Vc(),g=b.q("pid",""),b=e.n(e.c.Pb))&amp;&amp;(b.src=e.c.ga+"/"+e.c.Ub+"3rd/comScore/comScore.htm#pid="+</p&gt;

g,e.c.je=!0)};a.Ei=function(){var b=a.Lb(8);"string"===typeof window.name&amp;&amp;(""===window.name||-1<window.name.indexOf("frame"))?(window.name=b,b=window.name):"string"===typeof window.name&amp;&amp;""!==window.name&amp;&amp;(b=window.name);return b=e.b.O(b.substring(0,9))};a.Lb=function(a){var b,c;b=[];a="number"===typeof a?a:8;for(c=0;c<a;c+=1)b.push("0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz".charAt(Math.floor(61*Math.random())));return b.join("")};a.me=function(a){for(var b="",c=0;c<a.length;c++)b=</p&gt;

b.concat(a[c]?"1":"0");return parseInt(b,2)};a.Xc=function(b){var g=b.getElementsByTagName("a")[0];if(null===b.offsetParent||0===b.offsetHeight||0===b.offsetWidth||0===b.clientHeight||0===b.clientWidth||"none"===a.D(b,"display")||"hidden"===a.D(b,"visibility"))return!1;var c=parseInt(a.D(b,"padding-top"),10)+parseInt(a.D(b,"padding-bottom"),10);return 0===b.clientHeight-c||g&amp;&amp;"none"===a.D(g,"display")?!1:!0};a.Oc=function(a){for(var b in e.La)if(e.La.hasOwnProperty(b)&amp;&amp;e.La[b].l===a)return e.La[b];

return null};a.Rl=function(a){for(var b in a)if(a.hasOwnProperty(b))return!1;return!0};a.Ga=function(a,b){return"function"!==typeof a?null:void 0===b?a():a(b)};a.kj=function(){return"Microsoft Internet Explorer"===navigator.appName};a.Fh=function(a,b){return a*b};a.Ge=function(a){if(!a||""===a)return[];a=a.replace("","").replace("http://","").replace("https://","").replace("www.","").replace("www2.","").split("/");a.pop();return 0<a.length?a:[]};a.ki=function(b,g){var c=a.Ge(b),e=[],d="";if(g>=c.length)d=

c.join(".");else{e[0]=c[0];for(d=1;d<=g;d+=1)e[d]=c[d];d=e.join(".")}return d};a.ti=function(){return"http"+("https:"===c.location.protocol?"s":"")};a.si=function(){var b,g;b=c.getElementById("widgetVersionSync");null===b&amp;&amp;(b=a.createElement("iframe","widgetVersionSync"),g=a.createElement("div",null,"display:none; height:0px; width:0px; border:none;"),g.appendChild(b),a.Va().appendChild(g));return b};a.ql=function(b){var g;g=window.OB_releaseVer;isNaN(g)||(isNaN(b)||g>=b)||(b=a.ti()+"://widgets.outbrain.com/external/sync/outbrainjs.html?needToBeVer="+

b.toString(),g=a.si(),g.src=b)};a.Sg=function(b){b=b.g("widgetVersionSync",0);isNaN(b)||""===b||(b=parseInt(b,10)||0,a.ql(b))};d.Rc=function(){if(b)return b;var a;try{var g=window.localStorage;g.setItem("OBtst","");g.removeItem("OBtst");a=g}catch(c){a={$b:{},setItem:function(a,b){this.$b[a]=b},removeItem:function(a){this.$b[a]=void 0},getItem:function(a){return"undefined"!==typeof this.$b[a]?this.$b[a]:null}}}return b=a};a.hg=function(a,b){d.Rc().setItem(a,b)};a.Qc=function(a){return(a=d.Rc().getItem(a))?

a:null};a.Gh=function(){d.Rc().removeItem("OB-USER-TOKEN")};a.h(OBR);return a}();OBR.ya=function(d,a,c,e,b,f,g,h,k){var m,l;m=this;l=0;k="function"===typeof k?k:OBR.b.Fh;m.start=function(){var p;l+=1;OBR.b.Ga(d,l)?OBR.b.Ga(a,l):(p=OBR.b.Ga(h,l))?OBR.b.Ga(e,l):(p=l===f&amp;&amp;1E3!==f)?OBR.b.Ga(e,l):(OBR.b.Ga(c,l),p=g?k(l,b):b,setTimeout(function(){m.start()},p))};m.start()};OBR.re=OBR.re||{fj:function(){return"complete"===document.readyState}};

OBR.Hc=function(){var d={},a=[];d.add=function(c){a.push(c)};d.remove=function(c){a.splice(c,1)};d.top=function(){return 0<a.length?a.shift():null};d.jj=function(){return 0>=a.length};d.Jl=function(){return a};d.qh=function(){a=[]};return d};

OBR.Ra=function(){function d(e,b){a.pb="resolve"===e?function(a){a&amp;&amp;a(b)}:function(a,g){g&amp;&g(b)};a.Pa=a.kk=function(){throw Error("Promise already completed.");};for(var f,g=0;f=c[g++];)f[e]&amp;&amp;f[e](b);delete c}var a={},c=[];a.pb=function(a,b){c.push({resolve:a,reject:b})};a.Pa=function(a){d("resolve",a)};a.kk=function(a){d("reject",a)};return a};

OBR.Ag=function(d){var a={},c=null,e,b;a.onClickOrAutoplay=void 0;a.onDisplayReady=void 0;a.onError=void 0;a.fetch=function(a){null===c?(c=a,b&amp;&amp;b(c,this),b=null):(c=a,OBR.Ja.of([this]))};a.shown=function(a){e=a;OBR.Ja&amp;&amp;OBR.Ja.pl(d.widgetId,d.playerId,e)};a.stopTimer=function(){if(this.tg){window.clearInterval(this.tg);var a=document.querySelector('[data-ob-player-id="'+d.playerId+'"] .timerNumber');a&amp;&amp;(a.textContent=a.parentElement.getAttribute("data-time"))}};a.placed=function(){OBR.Ja.ol(d.playerId)};

a.uj=function(a){b=a;c&amp;&amp;b(c,this)};a.Ue=function(){return d};a.Hl=function(){return e};a.Nl=function(){return d.when};return a};OBR.Fg=function(){var d={},a="00.000",c=null,e=null,b=0;d.start=function(){null===c&amp;&amp;(c=new Date);null!==e&amp;&amp;(b+=new Date-e)};d.stop=function(){var f=new Date(new Date-c-b),g=f.getUTCSeconds(),f=f.getUTCMilliseconds();e=new Date;return a=(9<g?g:"0"+g)+"."+(99<f?f:9<f?"0"+f:"00"+f)};return d};</p&gt;

OBR.rd=OBR.rd||function(){function d(){var a=window;a.googletag=a.googletag||{};a.googletag.cmd=a.googletag.cmd||[]}function a(a,g,c,e){var d=window;d.$revee&amp;&amp;d.googletag.cmd.push(function(){d.$revee.track({obpid:a,obsid:g,obdid:c,obpu:e});b.d.log("revee fire:"+e);b.d.log("revee fire id:"+c)})}var c={},e=!0,b;c.h=function(a){b=a;c.cc={}};c.Yb=function(f){if(f&amp;&amp;!1!==f.g("activateRevee",!1)){d();var g=f.q("pid",0),h=f.q("sid",0),k=f.q("did",0),m=f.ka();e||c.cc[k]?e&amp;&amp;(e=!1,f=b.b.N(b.c.U+"rva.outbrain.com/analytics-v1.js",

!0,!0,function(){m=document.location.href;a(g,h,k,m)}),b.b.R(f)):a(g,h,k,m);c.cc[k]||(c.cc[k]=!0)}};c.B=function(){e=!0;c.cc={}};c.h(OBR);return c}();OBR.c=OBR.c||function(){var d={},a={},c=OBR,e;a.Cg="opera";a.Od="msie";a.zg="firefox";a.xg="chrome";a.Eg="safari";a.Bg="mozilla";a.Al="boolean";a.$k="string";a.Vl="object";a.gl="undefined";a.Ul="number";a.Pb="ob_iframe";a.$e=!0;a.Ff=0;a.ec="outbrain_widget_";a.wj="text/javascript";a.Eh="Permalink | トラックバック(0) | 23:14

2016-02-15

SQLで月次集計tableキーdate型で

2016-02-01

(日付の1日はダミー

みたいにするんじゃなくて

yyyymmで

201602で

number(6,0)でしまうのってどうおもいますか?



理由




個人的には数字で持ってる方が好きなんですが

2015-09-16

[]「邦画」に日本語字幕がついているのが5パーセントって

誰が言ってるの

→※文章微妙な違いに注意

しかし、発売される日本語音声があるDVDのうち、「字幕」が収録された作品はたった5%程度。

バリアフリー化のスポンサー募集しています | メディア・アクセス・サポートセンター

{{いつ|date=HTTPヘッダでもわかりません}}

http://npo-masc.org/sponsor/

2015-09-02

http://anond.hatelabo.jp/20110127065838

2015/09/01時点での追試報告。

ビデオカードの交換に合わせて、BIOS更新を行った。

更新ファイルはここから

ttp://www.msi.com/support/mb/P67AC43_B3.html#down-bios

自分が入れたのは、

Release Date:2013-01-09のVersion:5.4

このverの更新にはUSBメモリ必須で、USBメモリ上でダウンロードファイルを展開して実行すると、再起動USBメモリから起動してBIOS更新が行われた。

ちゃんとビデオカード認識されたのでよかった。ちなみに交換先はR9-390。

あとbios更新後、win7認証が入ったな。自分クリックだけで済んだけど、環境によってはオペレータ電話することになるかも。

2015-08-25

IT関係ないサラリーマンコミュニティサイト作っちゃいました。

私ごとですが、この度コミュニティサイト作成いたしました。

私の持てる知識を絞り出してなんとか完成しました。

**************************************************************************************

完成したサイトがこちらです。

LapyNetニュース

http://lapynetz.net/

**************************************************************************************

私は普段webとは関係ない仕事してます。なんとか休日を利用して、

webサービス作成しました。


メインのコードはこんな感じ

----------------------------------------------------------------------------------------------------------------------



App::uses('Sanitize', 'Utility');
class RssfeedsController extends AppController {

public $helpers = array('Html','Form','Session','Number','Cache');

public $uses = array(
'Rssfeed',
'Tweet',
'Wadai',
'Rank',
'Oracle'
);
 **************************************************************************************
public function index() {

$title_for_layout = "LapyNetニュース";
$content = "Hello World!!";

$this-&gt;set(compact('title_for_layout','content'));
if(date("G")&gt;0 and date("G") &lt; 7){
$today = date("Y-m-d", strtotime('-1 day'));
}else{
$today = date("Y-m-d");
}

$params = array(
'conditions' = &gt; array(
'and' = &gt; array(
'Rssfeed.time' = &gt; $today,
)),
'order' = &gt; 'tweets desc',
'limit' = &gt; '50'
);
$this- &gt;set('posts',$this- &gt;Rssfeed- &gt;find('all',$params));

$paramz = array(
'order' = &gt; 'Rssfeed.id desc',
'limit' = &gt; '10'
);
$this-&gt;set('posts2',$this-&gt;Rssfeed-&gt;find('all',$paramz));

$paramz = $this- &gt;Rssfeed- &gt;query('SELECT id,title FROM rssfeeds order by id desc limit 10');

$this-&gt;set('posts2', $paramz);

$parapara = $this- &gt;Oracle- &gt;query('SELECT id,title FROM oracles order by id desc limit 10');

$this- &gt;set('postx', $parapara);

$funking = $this- &gt;Rank- &gt;query('SELECT id,frank FROM ranks where creation=(select max(creation) from ranks)');

$this- &gt;set('funking', $funking);


}

 **************************************************************************************
public function mizuno() {
$parapara = array(
'order' =&gt; 'Oracle.id desc',
'limit' =&gt; '30'
);
$recent_posts = $this-&gt;Oracle-&gt;find('all',$parapara);
return $recent_posts;

}


 **************************************************************************************
public function wadai() {
if(date("G")&gt;0 and date("G") &lt; 7){
$today = date("Y-m-d", strtotime('-1 day'));
}else{
$today = date("Y-m-d");
}

$params = array(
'conditions' =&gt; array(
'and' =&gt; array(
'Rssfeed.time' =&gt; $today,
'Rssfeed.kubetu' =&gt; 4
)),
'order' =&gt; 'tweets desc',
'limit' =&gt; '100'
);
$this-&gt;set('posts',$this-&gt;Rssfeed-&gt;find('all',$params));





$this-&gt;set("title_for_layout","2CHニュース-LapyNetニュース");


$paramz = array(
'order' =&gt; 'Rssfeed.id desc',
'limit' =&gt; '10'
);
$this-&gt;set('postyy',$this-&gt;Rssfeed-&gt;find('all',$paramz));

$parapara = array(
'order' =&gt; 'Oracle.id desc',
'limit' =&gt; '10'
);


$this-&gt;set('postyx',$this-&gt;Oracle-&gt;find('all',$parapara));

$funking = $this-&gt;Rank-&gt;query('SELECT * FROM ranks where creation=(select max(creation) from ranks)');

$this-&gt;set('funking', $funking);



}
 **************************************************************************************
public function hot() {
if(date("G")&gt;0 and date("G") &lt; 7){
$today = date("Y-m-d", strtotime('-1 day'));
}else{
$today = date("Y-m-d");
}

$params = array(
'conditions' =&gt; array(
'and' =&gt; array(
'Rssfeed.time' =&gt; $today,
'Rssfeed.kubetu' =&gt; 3
)),
'order' =&gt; 'tweets desc',
'limit' =&gt; '20'
);
$title_for_layout = "LapyNetニュース";
$this-&gt;set("title_for_layout","ニュース-LapyNetニュース");
$this-&gt;set('posts',$this-&gt;Rssfeed-&gt;find('all',$params));

$parapara = array(
'order' =&gt; 'Oracle.id desc',
'limit' =&gt; '10'
);
$this-&gt;set('postxx',$this-&gt;Oracle-&gt;find('all',$parapara));

$paramz = array(
'order' =&gt; 'Rssfeed.id desc',
'limit' =&gt; '10'
);
$this-&gt;set('postsxxx',$this-&gt;Rssfeed-&gt;find('all',$paramz));

$funking = $this-&gt;Rank-&gt;query('SELECT * FROM ranks where creation=(select max(creation) from ranks)');

$this-&gt;set('funking', $funking);


}

 **************************************************************************************
public function newnew() {
if(date("G")&gt;0 and date("G") &lt; 7){
$today = date("Y-m-d", strtotime('-1 day'));
}else{
$today = date("Y-m-d");
}

$params = array(
'conditions' =&gt; array(
'and' =&gt; array(
'Rssfeed.time' =&gt; $today,
'Rssfeed.kubetu' =&gt; 2
)),
'order' =&gt; 'tweets desc',
'limit' =&gt; '20'
);
$this-&gt;set("title_for_layout","エンタメニュース-LapyNetニュース");
$this-&gt;set('posts',$this-&gt;Rssfeed-&gt;find('all',$params));

$paramz = array(
'order' =&gt; 'Rssfeed.id desc',
'limit' =&gt; '10'
);
$this-&gt;set('postszz',$this-&gt;Rssfeed-&gt;find('all',$paramz));

$paramz = $this-&gt;Oracle-&gt;query('SELECT id,title FROM rssfeeds order by id desc limit 10');

$this-&gt;set('postszz', $paramz);

$parapara = $this-&gt;Oracle-&gt;query('SELECT id,title FROM oracles order by id desc limit 10');

$this-&gt;set('postzy', $parapara);


$funking = $this-&gt;Rank-&gt;query('SELECT * FROM ranks where creation=(select max(creation) from ranks)');

$this-&gt;set('funking', $funking);



}
 **************************************************************************************
public function top() {
if(date("G")&gt;0 and date("G") &lt; 7){
$today = date("Y-m-d", strtotime('-1 day'));
}else{
$today = date("Y-m-d");
}
$params = array(
'conditions' =&gt; array(
'and' =&gt; array(
'Rssfeed.time' =&gt; $today,
'Rssfeed.kubetu' =&gt; 1
)),
'order' =&gt; 'tweets desc',
'limit' =&gt; '20'
);
$this-&gt;set('posts',$this-&gt;Rssfeed-&gt;find('all',$params));

$param = array(
'conditions' =&gt; array('times &gt; current_timestamp + interval -600 minute and Kubetu = 4'),
'order' =&gt; 'tweets desc',
'limit' =&gt; '30'
);
$this-&gt;set('posts2',$this-&gt;Rssfeed-&gt;find('all',$param));
}


 **************************************************************************************
public function view($id = null ) {
$this-&gt;Rssfeed-&gt;id = $id; //驥崎ヲ√↑荳譁・i縺励>
$user = AuthComponent::user();

$TwimStatus = ClassRegistry::init('Twim.TwimStatus');


$TwimStatus-&gt;getDataSource()-&gt;setToken(AuthComponent::user());

$statuses = $TwimStatus-&gt;tweet();
$rairai = $this-&gt;Rssfeed-&gt;read(title,$id);
$alcol = $this-&gt;Rssfeed-&gt;read();
$this-&gt;set('post', $alcol);

$this-&gt;set('post2', $user);
$this-&gt;set('post3', $statuses);
$this-&gt;set("title_for_layout",$rairai[Rssfeed][title]."-LapyNetニュース");

$paramz = array(
'order' =&gt; 'Rssfeed.id desc',
'limit' =&gt; '20'
);
$this-&gt;set('postszz',$this-&gt;Rssfeed-&gt;find('all',$paramz));

$parapara = array(
'order' =&gt; 'Oracle.id desc',
'limit' =&gt; '30'
);
$this-&gt;set('postzy',$this-&gt;Oracle-&gt;find('all',$parapara));

}
 **************************************************************************************
public function add() {

if($this-&gt;request-&gt;isPost()){
if($this-&gt;Tweet-&gt;save($this-&gt;data)) {
$this-&gt;Session-&gt;setFlash('seikou');
$this-&gt;redirect(array('controller'=&gt;'rssfeeds','action'=&gt;'view',$contents11));

}else{
$this-&gt;Session-&gt;setFlash('sipai');
$this-&gt;redirect(array('controller'=&gt;'rssfeeds','action'=&gt;'view',$contents11));
}
}
}
 **************************************************************************************
public function delete($id = null) {
$this-&gt;Rssfeed-&gt;id = $id; 
$this-&gt;set('set', $this-&gt;Rssfeed-&gt;read());
$this-&gt;redirect(array('controller'=&gt;'tweets','action'=&gt;'delete',$this-&gt;data['tweet']['rssfeed_id']));


}
 **************************************************************************************
public function oracle() {
if($this-&gt;request-&gt;is('post')) {

$user = AuthComponent::user();

$TwimStatus = ClassRegistry::init('Twim.TwimStatus');


$TwimStatus-&gt;getDataSource()-&gt;setToken(AuthComponent::user());

$contents1 = $this-&gt;request-&gt;data['Rssfeed']['contents'];
$contents2 = $this-&gt;request-&gt;data;
$statuses = $TwimStatus-&gt;tweet($contents1);


if($this-&gt;Rssfeed-&gt;save($contents2)) {
$this-&gt;Session-&gt;setFlash('成功です。');
$this-&gt;redirect(array('controller'=&gt;'rssfeeds','action'=&gt;'view',$contents11));
$this-&gt;redirect($this-&gt;referer());
}else{
$this-&gt;redirect(array('controller'=&gt;'rssfeeds','action'=&gt;'view',$contents11));
$this-&gt;Session-&gt;setFlash('失敗です。');
}
}


}
 **************************************************************************************
public function makelist() {
$rssfeeds = $this-&gt;paginate();
if ($this-&gt;request-&gt;is('requested')) {
return $rssfeeds;
} else {
$this-&gt;set('rssfeeds', $rssfeeds);
}
}

}

----------------------------------------------------------------------------------------------------------------------

rssフィードはこんな感じです。
----------------------------------------------------------------------------------------------------------------------

#!/usr/bin/php
&lt;?php

header('Content-type: text/html; charset=UTF-8');


require_once ('/var/www/html/s/magpierss/rss_fetch.inc');


define('MAGPIE_CACHE_AGE', 60*5);

define('MAGPIE_CACHE_DIR', '/var/www/html/s/cache/');

define('MAGPIE_OUTPUT_ENCODING','UTF-8');


$urls = array(
'*********************************');

$items = getRssList($urls);

echo '&lt;ul&gt;';
foreach ($items as $item) {

$href = mb_convert_encoding($item['link'], "UTF-8", "auto");

$title = mb_convert_encoding($item['title'], "UTF-8", "auto");
$description = mb_convert_encoding($item['description'], "UTF-8", "auto");
$megami = mb_convert_encoding($description, "UTF-8", "auto");

 

 **************************************************************************************


$all = 'http://urls.api.twitter.com/1/urls/count.json?url='.$href;
$Rits = file_get_contents($all);
$Olfe = mb_convert_encoding($Rits, 'UTF-8', 'auto');
$data = json_decode($Olfe);
$tweets = $data-&gt;count;

 **************************************************************************************

$checkman = db_check_urls($href);
$checkman2 = db_check_pr($title);

$nowtimes = date('Ymd');

 


if($checkman == 0 &amp;amp;&amp;amp; $checkman2 == 0){
#$hrefs = urlencode($href);
db_put_urls($nowtimes,$href,$title,$description,$tweets);
echo "&lt;li&gt;&lt;a href=$href&gt;$title&lt;/a&gt;&lt;br&gt;$megami&lt;p&gt;$tweets&lt;/p&gt;&lt;p&gt;$checkman&lt;/p&gt;&lt;/li&gt;";
}else{

}


}
echo '&lt;/ul&gt;';

 

 

 **************************************************************************************
function getRssList($urls)
{
$rssitems = array();
foreach ($urls as $url) {
$obj = fetch_rss($url);
$rssitems = array_merge($rssitems, $obj-&gt;items);
}
return $rssitems;
}

 **************************************************************************************
function db_check_pr($japanese){

$moji = mb_substr($japanese,0,2);
if($moji == 'PR'){
return 1;
}else{
return 0;
}
}
 **************************************************************************************

function db_check_urls($href){

require '/var/www/html/s/database_conf.php';

try {

$db = new PDO($dsn, $dbUser, $dbPass);
$db-&gt;setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
$db-&gt;setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);


$sql = 'SELECT count(*) AS count FROM rssfeeds WHERE urls = :language';
$prepare = $db-&gt;prepare($sql);


$languages = array($href);
foreach ($languages as $language) {

$prepare-&gt;bindValue(':language', $language, PDO::PARAM_STR);
$prepare-&gt;execute();

$result = $prepare-&gt;fetchColumn();
if ($result &gt; 0) {
return true;
}else{
return false;
}
}

} catch (PDOException $e) {
echo 'エラーが発生しました。内容: ' . h($e-&gt;getMessage());
}

function h($var) 
{
return htmlspecialchars($var, ENT_QUOTES, 'UTF-8');
}
}

 **************************************************************************************
function db_put_urls($nowtimes,$href,$title,$description,$tweets){
require '/var/www/html/s/database_conf.php';
try {

$db = new PDO($dsn, $dbUser, $dbPass);
$db-&gt;setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
$db-&gt;setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$sikibetu = 5;
$moto = "アニゲー速報VIP";

$sql = 'insert into rssfeeds (id, time,urls,title,contents,tweets,times,kubetu,teikyo) values (?, ?, ?, ?, ?, ?, ?, ?, ?)';

$prepare = $db-&gt;prepare($sql);

$prepare-&gt;bindValue(1, 0, PDO::PARAM_STR);
$prepare-&gt;bindValue(2, $nowtimes, PDO::PARAM_STR);
$prepare-&gt;bindValue(3, $href, PDO::PARAM_STR);
$prepare-&gt;bindValue(4, $title, PDO::PARAM_STR);
$prepare-&gt;bindValue(5, $description, PDO::PARAM_STR);
$prepare-&gt;bindValue(6, $tweets, PDO::PARAM_STR);
$prepare-&gt;bindValue(7, 'cast( now() as datetime)', PDO::PARAM_STR);
$prepare-&gt;bindValue(8, $sikibetu, PDO::PARAM_STR);
$prepare-&gt;bindValue(9, $moto, PDO::PARAM_STR);
$prepare-&gt;execute();

} catch (PDOException $e) {
echo 'エラーが発生しました。内容: ' . h($e-&gt;getMessage());
}
}
?&gt;

---------------------------------------------------------------------------------------------------------------------


**************************************************************************************



参考にした書籍

CakePHP2 実践入門 (WEB+DB PRESS plus)

CakePHP2 実践入門 (WEB+DB PRESS plus)

作者: 安藤祐介,岸田健一郎,新原雅司,市川快,渡辺一宏,鈴木則夫

出版社/メーカー: 技術評論社

発売日: 2012/09/29

メディア: 単行本ソフトカバー

購入: 5人 クリック: 165回

この商品を含むブログ (9件) を見る

Webアプリ開発を加速する CakePHP2定番レシピ119

Webアプリ開発を加速する CakePHP2定番レシピ119

作者: 長谷川智希,デジタルサーカス

出版社/メーカー: 秀和システム

発売日: 2013/09/28

メディア: 単行本

この商品を含むブログ (1件) を見る



**************************************************************************************


一番難しいところはtwitterログインwebサイト連結でした。

cakephp直感できに操作できていいです。

素人のわたしでも操作できましたので。

cakephpを使用しています

webからニュース収集してきます

ツイート数でランキングしてますネット話題を見つけられます


twitterアカウントログインできます

ニュースに対するコメントもできるし、

自分記事投稿できます。(画像も可)


デザインはよくわからないので、

ホームページビルダーを使用しています

今のホームページビルダーは昔と違って高機能ですね。

テンプレートも何種類もあって今はすごいです。

アマゾンawsを使用してます

サーバーWebサーバーデータベースサーバmysql)

に分かれています

今更cakephpを使っている人は少ないかもしれませんが、

データベースとの接続などは楽でした。

twitterアカウントあるといつでも参加できますので、

ニュースを通してコミュニケーション目的としたサイトを目指します。

2015-08-21

http://anond.hatelabo.jp/20150821164122

いやちょっと待ってDateじゃないよDataだよ。

登録するのは日時じゃなくてデータだよ。

何で誰も突っ込まないの!

2015-08-17

自称吉永 圭佑」と名乗るパクリブロガー

自称吉永 圭佑」

1kando.com にて無断転載記事多数

Facebook: https://www.facebook.com/1minute.story

Domain Name: 1kando.com
Registry Domain ID: 1888768854_DOMAIN_COM-VRSN
Registrar WHOIS Server: whois.star-domain.jp
Registrar URL: www.star-domain.jp
Updated Date: 2014-12-04T23:01:43Z
Creation Date: 2014-12-04T23:01:42Z
Registrar Registration Expiration Date: 2015-12-04T23:01:42Z
Registrar: Netowl, Inc.
Registrar IANA ID: 1557
Registrar Abuse Contact Email: registrar-abuse@netowl.jp
Registrar Abuse Contact Phone: +81.662928811
Domain Status: clientTransferProhibited -
https://www.icann.org/epp#clientTransferProhibited
Registry Registrant ID: 
Registrant Name: Xserver XSERVER Inc.
Registrant Organization: XSERVER Inc.
Registrant Street: GRAND FRONT OSAKA TOWER A 13F
Registrant Street: 4-20 Ofukacho, Kita-ku
Registrant City: Osaka
Registrant State/Province: Osaka
Registrant Postal Code: 5300011
Registrant Country: JP
Registrant Phone: +81.662928811
Registrant Phone Ext: 
Registrant Fax: 
Registrant Fax Ext: 
Registrant Email: info@xserver.co.jp
Registry Admin ID: 
Admin Name: Xserver XSERVER Inc.
Admin Organization: XSERVER Inc.
Admin Street: GRAND FRONT OSAKA TOWER A 13F
Admin Street: 4-20 Ofukacho, Kita-ku
Admin City: Osaka
Admin State/Province: Osaka
Admin Postal Code: 5300011
Admin Country: JP
Admin Phone: +81.662928811
Admin Phone Ext: 
Admin Fax: 
Admin Fax Ext: 
Admin Email: info@xserver.co.jp
Registry Tech ID: 
Tech Name: Xserver XSERVER Inc.
Tech Organization: XSERVER Inc.
Tech Street: GRAND FRONT OSAKA TOWER A 13F
Tech Street: 4-20 Ofukacho, Kita-ku
Tech City: Osaka
Tech State/Province: Osaka
Tech Postal Code: 5300011
Tech Country: JP
Tech Phone: +81.662928811
Tech Phone Ext: 
Tech Fax: 
Tech Fax Ext: 
Tech Email: info@xserver.co.jp
Name Server: ns1.xserver.jp
Name Server: ns2.xserver.jp
Name Server: ns3.xserver.jp
Name Server: ns4.xserver.jp
Name Server: ns5.xserver.jp
DNSSEC: Unsigned

2015-08-12

SPAM must die

body

本日13時に配達しますのでよろしくお願いします。

 

ご注文品

こだわり栽培バナナフィリピン産 40本

3920円

MONSTER エナジー 無糖 2ケース

7920円

SONNY洗濯機 ドラム式 1台

228000円

合計239840円

↓注文内容確認はコチラ↓

ttp://tbhb.w06ewk1h.com/vghe045b314xwo-e266c420JRIC1106sxk51bfa751.M0BaDbF89zW

キャンセル等お問い合わせはこちら↓

ttp://tbhb.w06ewk1h.com/Ke2b6389aKjz/341BaF48UYj+B311cQPCE28CDFC+Zn3C8857bbn

Amozon.com

---

Whois Server Version 2.0

Domain names in the .com and .net domains can now be registered

with many different competing registrars. Go to http://www.internic.net

for detailed information.

Domain Name: W06EWK1H.COM

Registrar: GMO INTERNET, INC. DBA ONAMAE.COM

Sponsoring Registrar IANA ID: 49

Whois Server: whois.discount-domain.com

Referral URL: http://www.onamae.com

Name Server: TS02.WINKL-WW.COM

Name Server: TS2.WINKL-WW.COM

Status: ok http://www.icann.org/epp#OK

Updated Date: 10-jul-2015

Creation Date: 03-apr-2015

Expiration Date: 03-apr-2016

&gt;&gt;&gt; Last update of whois database: Tue, 11 Aug 2015 15:07:03 GMT &lt;&lt;&lt;

The Registry database contains ONLY .COM, .NET, .EDU domains and

Registrars.

For more information on Whois status codes, please visit

https://www.icann.org/resources/pages/epp-status-codes-2014-06-16-en.

Domain Name: w06ewk1h.com

Registry Domain ID: 1916126422_DOMAIN_COM-VRSN

Registrar WHOIS Server: whois.discount-domain.com

Registrar URL: http://www.onamae.com

Updated Date: 2015-07-10 14:03:18

Creation Date: 2015-04-03 08:56:56.0

Registrar Registration Expiration Date: 2016-04-03 08:56:55.0

Registrar: GMO INTERNET, INC.

Registrar IANA ID: 49

Registrar Abuse Contact Email: abuse@gmo.jp

Registrar Abuse Contact Phone: +81.337709199

Domain Status: ACTIVE

Registry Registrant ID:

Registrant Name: eiji ootani

Registrant Organization: eiji ootani

Registrant Street1: 3-14-12 Ozukanishi

Registrant Street2:

Registrant City: Asaminami-ku Hiroshima-shi

Registrant State/Province: Hiroshima

Registrant Postal Code: 731-3167

Registrant Country: JP

Registrant Phone: 080-1359-5214

Registrant Phone Ext:

Registrant Fax:

Registrant Fax Ext:

Registrant Email: ozmsasssss@yahoo.co.jp

Registry Admin ID:

Admin Name: eiji ootani

Admin Organization: eiji ootani

Admin Street1: 3-14-12 Ozukanishi

Admin Street2:

Admin City: Asaminami-ku Hiroshima-shi

Admin State/Province: Hiroshima

Admin Postal Code: 731-3167

Admin Country: JP

Admin Phone: 080-1359-5214

Admin Phone Ext:

Admin Fax:

Admin Fax Ext:

Admin Email: ozmsasssss@yahoo.co.jp

Registry Tech ID:

Tech Name: Technical Contact

Tech Organization: GMO Internet Inc.

Tech Street1: 26-1 Sakuragaoka-cho

Tech Street2: Cerulean Tower 11F

Tech City: Shibuya-ku

Tech State/Province: Tokyo

Tech Postal Code: 150-8512

Tech Country: JP

Tech Phone: 03-5456-2555

Tech Phone Ext:

Tech Fax: 03-5456-2556

Tech Fax Ext:

Tech Email: admin@onamae.com

Name Server: ts2.winkl-ww.com

Name Server: ts02.winkl-ww.com

DNSSEC: Unsigned

URL of the ICANN WHOIS Data Problem Reporting System: http://wdprs.internic.net/

&gt;&gt;&gt; Last update of WHOIS database: 2015-07-10 14:03:18 &lt;&lt;&lt;

2015-08-11

XPは危ない(笑)

1:1:1:#Version: 1.5
2:2:2:#Software: Microsoft Windows Firewall
3:3:3:#Time Format: Local
4:4:4:#Fields: date time action protocol src-ip dst-ip src-port dst-port size tcpflags tcpsyn tcpack tcpwin icmptype icmpcode info path
5:5:5:
6:6:86:2015-08-10 16:10:10 DROP TCP 173.194.126.232 192.168.10.8 443 1073 40 FA 1021883895 4075389763 352 - - - RECEIVE
7:8:228:2015-08-10 16:13:43 DROP TCP 74.125.12.234 192.168.10.8 80 1140 1444 AP 3146229890 1790394543 240 - - - RECEIVE
8:9:229:2015-08-10 16:13:43 DROP TCP 74.125.12.234 192.168.10.8 80 1140 1444 A 3146248142 1790394543 240 - - - RECEIVE
9:10:230:2015-08-10 16:13:43 DROP TCP 74.125.12.234 192.168.10.8 80 1140 1444 A 3146250950 1790394543 240 - - - RECEIVE
10:11:231:2015-08-10 16:13:43 DROP TCP 74.125.12.234 192.168.10.8 80 1140 120 AP 3146252354 1790394543 240 - - - RECEIVE
11:13:859:2015-08-10 16:29:32 DROP UDP 0.0.0.0 255.255.255.255 68 67 333 - - - - - - - RECEIVE
12:15:1131:2015-08-10 16:36:35 DROP UDP 0.0.0.0 255.255.255.255 68 67 333 - - - - - - - RECEIVE
13:17:1619:2015-08-10 16:49:05 DROP UDP 0.0.0.0 255.255.255.255 68 67 328 - - - - - - - RECEIVE
46:59:1804:2015-08-10 16:53:03 INFO-EVENTS-LOST - - - - - - - - - - - - 1 -
47:63:3032:2015-08-10 17:24:14 DROP UDP 0.0.0.0 255.255.255.255 68 67 328 - - - - - - - RECEIVE
58:86:4908:2015-08-10 18:11:50 DROP UDP 0.0.0.0 255.255.255.255 68 67 333 - - - - - - - RECEIVE
59:88:5080:2015-08-10 18:15:49 DROP UDP 0.0.0.0 255.255.255.255 68 67 333 - - - - - - - RECEIVE
60:89:5181:2015-08-10 18:18:51 DROP UDP 0.0.0.0 255.255.255.255 68 67 328 - - - - - - - RECEIVE
71:114:5844:2015-08-10 18:34:04 DROP TCP 199.59.150.9 192.168.10.8 443 1143 40 R 4271020894 0 0 - - - RECEIVE
72:117:5931:2015-08-10 18:36:03 DROP TCP 199.59.148.87 192.168.10.8 443 1148 40 R 1451851690 0 0 - - - RECEIVE
73:121:8075:2015-08-10 19:31:09 DROP UDP 0.0.0.0 255.255.255.255 68 67 328 - - - - - - - RECEIVE
116:194:12094:2015-08-10 21:11:39 DROP UDP 192.168.10.8 255.255.255.255 68 67 328 - - - - - - - RECEIVE
117:195:12095:2015-08-10 21:11:42 DROP UDP 192.168.10.8 255.255.255.255 68 67 328 - - - - - - - RECEIVE
118:198:13004:2015-08-10 21:35:04 DROP TCP 199.59.150.9 192.168.10.8 443 1155 40 R 2380488032 0 0 - - - RECEIVE
119:199:13005:2015-08-10 21:35:06 DROP TCP 199.59.150.9 192.168.10.8 443 1156 40 R 1735229087 0 0 - - - RECEIVE
120:223:23789:2015-08-11 02:11:41 DROP UDP 192.168.10.8 255.255.255.255 68 67 328 - - - - - - - RECEIVE
121:224:23800:2015-08-11 02:11:44 DROP UDP 192.168.10.8 255.255.255.255 68 67 328 - - - - - - - RECEIVE
122:227:24739:2015-08-11 02:36:03 DROP TCP 199.59.148.87 192.168.10.8 443 1170 40 R 3363325047 0 0 - - - RECEIVE
123:233:27053:2015-08-11 03:35:03 DROP TCP 199.59.149.199 192.168.10.8 443 1172 40 R 205765765 0 0 - - - RECEIVE
124:234:27054:2015-08-11 03:35:05 DROP TCP 199.59.148.87 192.168.10.8 443 1173 40 R 1226012779 0 0 - - - RECEIVE
125:243:30657:2015-08-11 05:07:31 DROP UDP 0.0.0.0 255.255.255.255 68 67 333 - - - - - - - RECEIVE
126:247:32025:2015-08-11 05:42:29 DROP UDP 0.0.0.0 255.255.255.255 68 67 328 - - - - - - - RECEIVE
162:298:32926:2015-08-11 06:03:37 DROP TCP 216.58.220.163 192.168.10.8 443 1204 40 FA 2323819912 3872821897 352 - - - RECEIVE
163:301:32939:2015-08-11 06:03:48 DROP TCP 216.58.220.161 192.168.10.8 443 1220 40 FA 3799823245 873850606 352 - - - RECEIVE
164:302:32940:2015-08-11 06:03:48 DROP TCP 216.58.220.161 192.168.10.8 443 1219 40 FA 2883367852 1774051432 352 - - - RECEIVE

137,138、1900を除外したら、こんだけ

ほれ、ほーーれ

2015-07-27

jqueryバージョンが古すぎて死にたい

アサインされた案件jqueryバージョンが古すぎて死にたい

/*
 * jQuery JavaScript Library v1.3.2
 * http://jquery.com/
 *
 * Copyright (c) 2009 John Resig
 * Dual licensed under the MIT and GPL licenses.
 * http://docs.jquery.com/License
 *
 * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
 * Revision: 6246
 */

6年更新してない・・・

jqueryバージョンが古すぎて死にたい

アサインされた案件jqueryバージョンが古すぎて死にたい

/*
 * jQuery JavaScript Library v1.3.2
 * http://jquery.com/
 *
 * Copyright (c) 2009 John Resig
 * Dual licensed under the MIT and GPL licenses.
 * http://docs.jquery.com/License
 *
 * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
 * Revision: 6246
 */

6年更新してない・・・

2015-03-10

Twitterサングラススパムサイトメモ

floridaglass.net

Domain Name: FLORIDAGLASS.NET

Registry Domain ID: 1735502527_DOMAIN_NET-VRSN

Registrar WHOIS Server: whois.godaddy.com

Registrar URL: http://www.godaddy.com

Update Date: 2014-05-04T01:24:36Z

Creation Date: 2012-07-24T17:44:15Z

Registrar Registration Expiration Date: 2015-07-24T17:44:15Z

Registrar: GoDaddy.com, LLC

Registrar IANA ID: 146

Registrar Abuse Contact Email: abuse@godaddy.com

Registrar Abuse Contact Phone: +1.480-624-2505

Domain Status: clientTransferProhibited http://www.icann.org/epp#clientTransferProhibited

Domain Status: clientUpdateProhibited http://www.icann.org/epp#clientUpdateProhibited

Domain Status: clientRenewProhibited http://www.icann.org/epp#clientRenewProhibited

Domain Status: clientDeleteProhibited http://www.icann.org/epp#clientDeleteProhibited

Registry Registrant ID:

Registrant Name: Randi Shannon

Registrant Organization:

Registrant Street: PO Box 570263

Registrant City: Miami

Registrant State/Province: Florida

Registrant Postal Code: 33257

Registrant Country: United States

Registrant Phone: +1.3054914597

Registrant Phone Ext:

Registrant Fax:

Registrant Fax Ext:

Registrant Email: randishannon@gmail.com

Registry Admin ID:

Admin Name: Randi Shannon

Admin Organization:

Admin Street: PO Box 570263

Admin City: Miami

Admin State/Province: Florida

Admin Postal Code: 33257

Admin Country: United States

Admin Phone: +1.3054914597

Admin Phone Ext:

Admin Fax:

Admin Fax Ext:

Admin Email: randishannon@gmail.com

Registry Tech ID:

Tech Name: Randi Shannon

Tech Organization:

Tech Street: PO Box 570263

Tech City: Miami

Tech State/Province: Florida

Tech Postal Code: 33257

Tech Country: United States

Tech Phone: +1.3054914597

Tech Phone Ext:

Tech Fax:

Tech Fax Ext:

Tech Email: randishannon@gmail.com

Name Server: NS11.DOMAINCONTROL.COM

Name Server: NS12.DOMAINCONTROL.COM

DNSSEC: unsigned

URL of the ICANN WHOIS Data Problem Reporting System: http://wdprs.internic.net/

For more information on Whois status codes, please visit

https://www.icann.org/resources/pages/epp-status-codes-2014-06-16-en


DR-1 Statement of Organization

https://webapp.iecdb.iowa.gov/PublicView/organization/Candidates/Shannon,%20Randi_Shannon%20For%20Senate_2018_closed_2014/Shannon,%20Randi_Shannon%20For%20Senate_2018_DR1_05-21-2012.pdf

Randi Shannon

Marketing Director, Youngevity Life Sciences

319-804-9163 – RandiShannon@Gmail.Com

http://randishannon.com/nano_bio_balancer.php

http://randishannon.com

2015-02-05

[] Utility formatDate における timezone の指定について。

たぶんどこにも書いてないのでメモ

https://developers.google.com/apps-script/reference/utilities/utilities#formatDate(Date,String,String)]

timeZone のフォーマットについての言及がないが、"GMT" 以外のタイムゾーンを設定するには、たとえば +09:00 (JST) の場合

Utilities.formatDate(new Date, 'Etc/GMT-9', "yyyy-MM-dd'T'HH:mm:ss'Z'");

とすればOK。"JST" とか書いてもダメだし、GMT+9 でもダメなので注意。

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