Ȥ Blog

Ruby,C#

C#

BtonicMacǤC#ǻƤߤ

ȥ饤ƤߤC#ˤiPhone,Android񥢥ץǤäʤΤMonoMacƱͤMacǥȥåǤäƤߤޤ

褯ַUIۤʤ뤫餽줾ΥץåȥեǺꤳߤɬפǤ硩פȸΤǤդUIʳʬ϶ͭǤ櫓ǡθ̤ʾǤ

PhoneGapƤߤޤץˤäƤϤΤȻפޤHTMLJavaScriptʤΤǡ줳JobsǰƤŪʵǽѤǤʤơޤ꿩ؤưޤǤʪˤäƤϤʤͭˤʤȤϻפޤ
 
 5557

ɶͭΥåȤ򴶤뤿C#Android, iPhone񥢥ץ

Ƕ᤺äȻŻ˻ơȤC#֤ʤäΤǤϤޤޤ٤᤿ΤǡƤߤäC#ˤAndroid,iPhoneץκ˥ȥ饤Ƥߤޤ
ȤϸäƤ⡢ܳŪʤΤǤϤʤŪC#Ǻ뤳Ȥˤ륳ɶͭΥåȤ̤ˤΤɤñʥץǤΤǡ´Ƥߤ褦ȤΤǤ

äƤߤΤϴñʼ񥽥եȤǤΤϡXMLWebӥȤƸƤΤѤޤ
http://www.btonic.com/ws/

AndroidiPhoneǶͭΤϼ񥵡ӥθƤӽФʬǤ
ºݤ˺äƤߤۤȤƤϡɤǤ

ñʥץäƤ櫓ǤϤʤषäܳŪʥץȤСƱɤѤǤåȤϤä礭ʤʡȴޤɤʤ㤯Ƥ50϶ͭǤǤ
ǤϤޤºݤ80%ʾ嶦ͭǤƤ롢ȤäƤҤ⤢뤽ǡ
ºݡ⡢󥿡եȤݥ饹ǤäȶͭǤʡǴꤷޤ

ʴǡäȤȤץäƤߤʡȻפʤ顢ФΤפĤʤǤ

5534


59

 

C#Spec NSpec on Mono Mac

ä.NETSpecƥȥե졼SpecFlowȤΤΤǤʤ󤫤äȰ㤦ʡȴƤϤޤפRSpecƱ褦SpecñΥƥȤäʤΤǤ SpecFlowϤɤ餫ȤȼƥȸΤΤΤ褦Ǥ͡Τ˥ɤȤ̤ˤʤ󤫥ʥꥪߤν񤯤äơʤ󤫥ɡʡȡ
ǡäѤRubyˤRSpec褦ˡC#Ĥޤ.NETˤNSpecʤΤޤ
䤬õƤΤϤäääƴ®äƤߤޤ
ȤǤNuget(VisualStudioΥѥåġߤʤġ˸ΥɥȤǤȤDLLEXEեʤΤMonoǤǤϤȤǺMonoǤ
äѤSpecƥȤϤʴɤǤ͡

20


C#RedisƤߤ

MemcachedRubyͽäɡȾʬޤRedisC#Ƥߤ뤳Ȥˤޤ ŻǤϤɤäRailsǤͽʤǡȤǿʤC#ǤäƤȤǡ

ȤꤢRedis򥤥󥹥ȡ롣

wget http://redis.googlecode.com/files/redis-2.2.11.tar.gz
tar xzvf redis-2.2.11.tar.gz
cd redis-2.2.11
make
sudo make install

ߤhttp://redis.googlecode.com/
ΥȤǤϥ֥饦ǥ󥿥饯ƥ֤RedisΥޥɤáTutorialä򤫤äǤ

RedisСưƤߤ롣
redis-server
饤ȤưƤĤŬʥޥɤáưǧ
redis-cli #饤ȵư

#rootȤ̾ satoyan ʸ򥻥å
redis 127.0.0.1:6379> set root satoyan
OK

#Ф
redis 127.0.0.1:6379> get root
"satoyan"

#queen:membersꥹȤκǸ Fready ɲ
redis 127.0.0.1:6379> rpush queen:members Fready
(integer) 1

#ƱͤBrian ɲ
redis 127.0.0.1:6379> rpush queen:members Brian
(integer) 2

#ꥹȤȤɽ 0-1ȤΤϤĤޤƬǸޤǤȤ
redis 127.0.0.1:6379> lrange queen:members 0 -1
1) "Fready"
2) "Brian"

C#Redis򰷤饤֥ɤ롣ʤ󤫴Ĥ褦ǤServiceStack.RedisȤΤǻƤߤ롣

https://github.com/ServiceStack/ServiceStack.Redis
DLL켰ɡ

MonoDevelopưŬʥץȤDLLȤɲá
ʴ

mono


http://www.infoq.com/jp/news/2011/05/Mono-II

äMonoTouchȤϤ᤿ФʤΤˡNovelAttachmateȤɥĤδȤMonoڤΤƤƤޤä褦Ǥ
ǡ꡼οͤϿҤΩ夲ƤMono³͡
Ҥϡ 
http://www.xamarin.com/

ޤȥåץڡʤߤ

⤦ʤäMicrosoftLinuxOSX.NET FrameworkФƤʤʡ
Ф졢Mono!!

Windows Vista or 7 64bitǤ PrintDialogǽʤ

äȰ.NET Framework2.0ǿäˤ˺äץǡǤʤΤľƤ졢Ȥΰ꤬ꡢĴȤɤ64ӥåǤWindowsξΤߤȯ븽ݤΤ褦
ǡ꡼󥭥פΤ뵡ǽǡץ㤹ΤWindowsAPIȤäƤ顢դʡ Ǥ⡢.NET Framework2.0饹꡼󥭥ץ㤹APIɲäƤߤʺΤäˤĤ˽񤭴ƻƤߤ褦ȤȤǡäΤǤȤ⤹Ȥʤ
ɤ PintDialog.Show ǻߤޤäƤ롢Ȥⵯʤʥ顼ˤʤ櫓Ǥʤˡ

windows 64bit PrintDialog Ǥä顢

PrintDialog.UseEXDialog ץѥƥ

 ȤΤꡢMSDNΥɥȤȡ

AMD64 ץåξ硢Υ饹ϡUseEXDialog ץѥƥ true ꤷʤưʤǽޤ
ȤΤȡ

ʤ졩 Ȼפʤ®ץѥƥTrue򥻥åȤơ¹ԤƤߤ顢äOK

1֤λԺ̵̤ä褦Ǥ
 
MSDNɤǤ⤳ΥץѥƥڤʤȤΤ 

NUnitη̤HTMLɽ

.NETǤSpecFlowɥˤäSpecƥȤ뤳ȤϤ狼äΤǤ̤HTMLɽǤߤʤȤ⥬ɤ˽񤤤Ƥޤ
ǡɤ Ȥ褯ɤǤߤ
  1. nunit-console ǥƥȥץȤ¹ԤXMLե
  2. specflow.exe HTML
ƤʼǤ褦Ǥ


ʴ
ĶMacmonoǤ


#MySpec.dllϥƥȥץ(nUnit)
nunit-console -labels -out=TestResult.txt -xml=TestResult.xml ./bin/Debug/MySpec.dll


mono specFlowषǥ쥯ȥ/tools/specflow.exe nunitexecutionreport ./MySpec.csproj


ȤäƤȡʴHTML롣
ƥ3Ĥʤ䤷features 0 äƤΤ褯狼ʤ
10



ץե

Ȥ

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

QR
QR
  • 饤֥ɥ֥