Ȥ Blog

Ruby,C#

2011ǯ04

Javaʣѥʸ̩˥ѡ롣

Javaʸѡɬפˤʤޤ org.apache.commons.lang.time.DateUtilsȤʣΥѥǻǤ뤽ʤΤǡѤƤäƤߤ롣
Ƥ˹碌 yyyy/MM/dd Ȥ yyyy.MM.dd Ȥ yyyy-MM-dd ȤŪ˻Ѥ줽ʤĤϥǥեȤб衢ȤפΤǤJavaʤΤǥϥʤԤϤƤޤ

ǡΤ褦ʥɤ񤤤Ƥߤޤ ڤʸ /(å, .(ɥåȡˡ-(ϥեˤȤʤ̤˻ѤǤѥǤ

	import java.text.ParseException;
	import java.util.Date;
	import org.apache.commons.lang.time.DateUtils;

	public class Main {
	    public static void main(String[] args) {

	        String[] patterns = new String[] {"yyyy-MM-dd", "yyyy.MM.dd", "yyyy/MM/dd"};

	        String[] dateStringList = new String[] {"1973-05-30", "1973.5.30", "1973/5/30", "1972/16/60"};

	        for (String dateString : dateStringList) {
	            try {
	                Date d = DateUtils.parseDate(dateString, patterns);
	                System.out.printf("String=%s, Date=%s\n", dateString, d);
	            } catch (ParseException e) {
	                // TODO Auto-generated catch block
	                e.printStackTrace();
	            }
	        }
	    }
	}
	
ǡ̤
53

󡢡 1972/16/60 Ȥꤨʤդ 1973/05/30
ȤȲᤷƤƤޤƤ顼ˤ衢ȤפΤǤޤθǤϤ⤦Τʤȡ⡼ɡ

Ǥ⡢DateUtils.parseDateStrictly Ȥȸ̩˲ᤷƤ뤽
ǡäƤߤȷ̤

05

ޤ줬̤Ȼפɡ

ʤߤC#Ǥϡ⤷ʤƤ̤ꡢ
43

ޤRubyǤ
55

C#RubyʤǤ

jQuery: liveؿǤޤ¸ߤʤǤФƥ٥Ȥꤹ

AjaxѤƤȡưŪɲä줿ƥĤ˥ܥȤ󥯤ȤäơĤ˥٥ȥϥɥꤷ礬¿Ȼפޤ
ϤޤǤϡAjaxǼƥĤڡɲäˡ٥ȥϥɥꤹ륳ɤ񤤤ƤΤǤäƷ빽ɤʤäꤷޤ
Ǥ⡢ޤʤʡȤפäƤΤǤ,jQuerylive᥽åɤѤȡñ˲ǤƤޤȤȯ
ɥȤɤȡ
	Attach a handler to the event for all elements which match the current selector, now and in the future.
ߵڤӾˤ¸ߤǤФƥ٥ȥϥɥꤹ뤳ȤǤ롢ȤΤȡ
餷ȸȤ®äƤߤ롣
ɲáפ򥯥åȡAjaxʬƥĤơڡɲäơֺפ򥯥åȤǤä롢ȤäΥڡäƤߤ롣
31

liveؿѤʤϡʴǡʬƥļˡֺץ󥯤Υ٥Ȥꤹ륳ɤ񤤤Ƥޤ
	$(function(){
		
		//ɲáץ󥯤򥯥å ñDIVǤAjaxǼƥɥȤɲä
		$("#addLink").click(function(){
			$.get("./get_partial_content", function(html){
				$(document.body).append($(html));
				
				//󥯤Υ٥
				$(".deleteLink").click(function(){
					$(this).parent().remove();
				})
]			});
		});
		
	})
Ǥ⡢νȡǤɲä뤿Ӥˡ¸κ󥯤ФƤ⥤٥ȥϥɥɲä³ƤޤޤǤǤƤޤΤǡ˸볲Ϥޤ󤬡⤷顼Ȥɽ褦Ƥˤ硢٤Ʊ顼Ȥɽ褦ʺ󥯤ǤäƤޤޤ
ǤХڡ˥٥ȴϢϤޤȤꤷƤȤǤ
ǡǽˤƤΤliveؿȤ櫓ǡɤ򼡤Τ褦˽񤭴Ƥߤ롣

	$(function(){
		
		//ɲáץ󥯤򥯥å ñDIVǤAjaxǼƥɥȤɲä
		$("#addLink").click(function(){
			$.get("./get_partial_content", function(html){
				$(document.body).append($(html));
			});
		});
		
		//嵭Υ٥ȤưŪɲä줿DIVǤΡֺץ󥯤򥯥åȡʬ(ȿDIVˤɥȤ
		$(".deleteLink").live("click", function(){
			$(this).parent().remove();
		});
	})
	
ȡưŪɲä줿ƥ class="deleteLink" ǤФƤ⥤٥ȥϥɥ餬ꤵޤ

mono ΥȤPHPǺäƤ롩

.NET FrameworkΥץ󥽡ǤmonoǤۤɥȤ򸫤˹Ԥä餳ʥ顼

Fatal error: Call to a member function on a non-object in /home/mono/public_html/includes/ObjectCache.php on line 409

ASP.NET ʤΤ

Ǥ 

渶1 (̼ʸ)

ĥäʪǤ

ޥꥢ󡦥ݡ ˤäɤ٤äΤˡְ֤äƤޤä


ȥ渶1 (̼ʸ)
//Artist Ϻ
, 660 ̼
ɾ
 2011-04-15



ʥͺʪ졪βԤסϷꤤդͽΤȡϤƤʤͤǯƼԤȤʤ٤Ω夬롣Ϥ˸٤깭Ϥ롢±ĹȤơ

ơʡBOOKץǡ١ˡ

βԤͽƤȤʤǯĥáŷ̿򼨤“ζ”졢±ĹȤƬѤ򸽤Ƥ椯ϤȷƤĥä±˲ääϡϤ椨˲²ΤƤġɲڤؤäīꡢʤͺʪ줬Ϥޤ롣

ץե

Ȥ

C#ɻŻRubyФʳȯԡ
ǶDockerȤؿȤAngularJS˥ϥޤäƤ롣
¢ȤĮȤȤ˽ס

QR
QR
  • 饤֥ɥ֥