cdrf.net
域名年龄: 18年1个月25天HTTP/1.1 302 Found 连接:关闭 其他指令:不缓存 缓存控制:不缓存 目标网址:/ HTTP/1.1 301 永久重定向 缓存控制:max-age=900 类型:text/html 目标网址:http://ideaeng2.typepad.com/cdrf 服务器:Microsoft-IIS/7.5 ASP.NET版本:4.0.30319 语言环境:ASP.NET 访问时间:2016年09月25日 17:52:03 文件大小:0 文件时间(秒):0 连接:keep-alive HTTP/1.1 302 Found 访问时间:2016年09月25日 17:52:03 类型:text/html; charset=utf-8 文件大小:0 连接:keep-alive 设置Cookie:__cfduid=d9f4993ad6b4ea860cc07649f78f8f07e1474797124; expires=Mon, 25-Sep-17 09:52:04 GMT; path=/; domain=.typepad.com; HttpOnly X-PhApp: oak-tp-web034 X-Webserver: oak-tp-web034 目标网址:http://ideaeng2.typepad.com/cdrf/ 动作:cookie X-Varnish: 1338589871 文件时间(秒):0 代理服务器:1.1 varnish 服务器:cloudflare-nginx CF-RAY: 2e7d94c923090669-SJC HTTP/1.1 200 OK 访问时间:2016年09月25日 17:52:03 类型:text/html; charset=utf-8 文件大小:48106 连接:keep-alive 设置Cookie:__cfduid=d9f4993ad6b4ea860cc07649f78f8f07e1474797124; expires=Mon, 25-Sep-17 09:52:04 GMT; path=/; domain=.typepad.com; HttpOnly X-PhApp: oak-tp-web036 X-Webserver: oak-tp-web036 动作:cookie,Accept-Encoding Content-Encoding: gzip X-Varnish: 541371158 文件时间(秒):0 代理服务器:1.1 varnish 服务器:cloudflare-nginx CF-RAY: 2e7d94c963250669-SJC 网站编码:utf-8
tag -> FixI was frustrated that when I tried to reduce the font size on our home page with CSS, it didn't work. I had tried a bunch of things, using percent, "em" units, pixels, etc. This was a problem in both IE and Firefox. I had even tried using the FireBug plugin to debug it.It turns out that content inside of tables, which is all of the content on our home page, is set by the font-size for tbody, vs. body. Oddly, the other attributes such as font-family and color can be set just in body, but size must be set for tbody.So this will give you red text, but will NOT reduce the size of content in tables:body { color: #80000; font-size: 0.9em;}But this fixes the problem:body, tbody {color: #80000;font-size: 0.9em;}I haven't seen an explanation for this online yet, and it seems very specific to the size directive, and had the same problem in two completely different browsers. Weird.Posted at 06:20 PM in Web/Tech | Permalink|Comments (0)|TrackBack (0)June 07, 2008PHP and Julian Dates prior to 1970, UnixToJD() with negative numbers, etc.First a quick review: PHP can convert strings into numbers with the handy this handy function:$secs = strtotime( "June 18, 2008" );This will give you an integer representing the number of seconds since January 1st, 1970 (actually, just before midnight December 31st, 1969), referred to as the Unix epoch.Then you can convert this from seconds into a Julian Date / Julian Day with the PHP function UnixToJD(). The absolute value of this second number is very helpful, it'll be over 2 million, but you can reliably subtract two Julian dates to get the number of days between them.$jd = UnixToJD( $secs );Now for the problem, what about dates prior to 1970? This is where things partially break, but there is a workaround (at least for dates > 1901).First the good news, strtotime STILL WORKS, so you can do:$negativeSecs = strtotime( "June 18, 1964" );And you'll get a big negative number, which is fine.But this breaks:$jd2 = UnixToJD( $negativeSecs );You will always get the same date back, effectively UnixToJD( 0 );But the Julian date range extends way earlier than 1970, more than 2 million days earlier. So the above date in 1964 DOES have a valid, positive Julian day associated with it.Now for the workaround:Convert the Unix time, in seconds, into days by simply dividing by the number of seconds in a day, and either rounding off or truncating the value. This is valid for both positive and negative dates. I'll call this "Unix epoch days", the number of days since 1970, and for dates prior to 1970 it's just a negative value.Then just "add" the Unix days (which will be positive or negative) to the base Julian day for 1/1/1970.The only odd issue I've found is an "off by one" error caused by the timezone. So if you use this method, try it with dates after 1970 first, and compare the results to using UnixToJD().And what is the base Julian day? It's eit
© 2010 - 2020 网站综合信息查询 同IP网站查询 相关类似网站查询 网站备案查询网站地图 最新查询 最近更新 优秀网站 热门网站 全部网站 同IP查询 备案查询
2025-05-12 05:05, Process in 0.0084 second.