In todayâs rapidly evolving tech landscape, optimizing performance is a critical factor, especially when dealing with large-scale processing on cloud platforms. Many of you might find yourselves needing to automate Chrome on a server for vâ¦
ãªãããã®è¨äºãæ¸ãã®ãï¼ ç´9å¹´ã¶ãã®æ稿ã§ãã9å¹´åãæ å ±å ¬éãé£ããä¼ç¤¾(ã¨ããFinTechä¼æ¥)ããæ å ±å ¬éã価å¤ã¨èªãã¦ãããä¼ç¤¾(gumi)ã¸è»¢è·ãããããæå±ä¼æ¥ã®ååã§è¨äºãæ¸ããããã¤ãã³ãã«ç»å£ããããã¦ãã¾ãããçµæããã®å人ããã°â¦
ä»ã¾ã§, Queue ä½ææã«æå®ãã¦ãããã©ã¼ãªã³ã°ã®ãã©ã¡ã¼ã¿ã¯å»æ¢ã«ãªã, rabbitmqctl ã³ãã³ãã§æå®ããããã«å¤æ´ãªã£ã. Perl ã® AnyEvent::RabbitMQ ã Python ã® kombu(celery) 㧠x-ha-policy ãæå®ããæ¹æ³ã¯, RabbitMQ 2.x ã¾ã§ããéç¨ããªã.â¦
ãã¼ã¿ã«è¬ã® 'A' ã¨ããåãå®ç¾©ããã¦ããã®ãåé¡. AMQP ã® Elementary domains ãè¦ãã®ã ããã© 'A' ãä½ãè¦å½ãããªãâ¦ãå©ãã¦åã人orz ã¨ãããã, amqplib 1.0.2 ã¯, 以ä¸ã®é»éè¡ã§åé¿å¯è½. kombu 2.5.0 ãã amqplib ã«ä»£ãã py-amqp ãããâ¦
åç½®ã ãã®è¨äºã¯ã2012 Pythonã¢ããã³ãã«ã¬ã³ãã¼(Webãã¬ã¼ã ã¯ã¼ã¯) - connpass ã® 9 æ¥ç®ã®è¨äºã¨ãªãã¾ãã ä»åã¯ãRails ã® Named Scope ã®çä¼¼ã Django Model ã§å®ç¾ããæ¹æ³ã¨ããããå©ç¨ããè«çåé¤ã®ç´¹ä»ãè¡ãã¾ãã Django Model 㧠Nameâ¦
ã³ã¼ãã¨çµæã¯ä¸è¨ã®éã https://gist.github.com/3193117Erlang ã§ä½ã£ããµã¼ãã« LL ã§ä½ã£ãã¯ã¼ã«ã¼ãã¶ãä¸ãããã¨èãã¦ãããã©ãããªããã¦ã§ã¤ã³ã°ãª ZeroMQ ãéã«å ¥ãã¦ã¿ããã¨æãç«ã¡ã¾ããã ãºãã©ãªç§ã¯ãZeroMQ ã«ã¯ã¼ã«ã¼ã®ãã¼ããã©â¦
ããºã«æ室ã«ã¦å¨ã®æ°å¦çã»ã³ã¹ããã¿è¤ãããããã®ã®ãè¨ç®é度ãé ãã®ã§100ãã¹è¨ç®ã家æã§ããããã«ã¨æ示ãåããã æ©éãPython ã§100ãã¹è¨ç®ã·ã¼ãã HTML å½¢å¼ã§åºåããã³ãã³ããä½æããã®ã ãã身è¿ã« Haskeller ãå± ãã®ã ãã Haskell â¦
妻ã¨å¨ãã次ã®è³ªåããããã ï¼ããã®æ°ã«ã¤ãã¦ãããããã®ä½ã®æ°åã大ãããã ãã«ãªãã¹ãæ°ããå°ãããã ãã«ãªãã¹ãæ°ãã²ãã¨ããè¨ç®ãè¡ãã¾ãã 1974 ã«ã¤ãã¦ããã®è¨ç®ã 100 åè¡ã£ãçããæ¸ããªããã 転è·å ã®ä¼ç¤¾ã§ Python ã使ããã¨â¦
æ¬æ¥(2012å¹´5æ31æ¥)ããã£ã¦ãç¾å¨ãä¸è©±ã«ãªã£ã¦ããä¼ç¤¾ãé社ããææ¥ããå¥ã®ä¼ç¤¾ã«å ¥ç¤¾ãã¾ãã ä»ææ§ã«ä¼ããã¹ãä½ããæã¡åããã¦ã¯ããªãã®ã§ãããç§ã«è·ãç´¹ä»ãã¦ãããNæ°ãç¾è·ã®æ¹ã ã次è·ã®æ¹ã ã¸ã®ç§ä¿¡ã¨ããäºã§æ £ããªãçãå·ãã¾ããâ¦
ä¸æºå å§ãã« /path/to/hello-world/project/build.scala ã次ã®ããã«ä¿®æ£ããã // ..snip.. object AndroidBuild extends Build { lazy val main = Project ( "Hello World", file("."), settings = General.fullAndroidSettings ++ AndroidNdk.settingsâ¦
æ¯åãAlertDialog ãä½ãã®ã¯é¢åãªã®ã§ã次ã®ãããªãªãã¸ã§ã¯ããä½ã£ã¦ããã package com.github.cooldaemon.HelloWorld import _root_.android.content.Context import _root_.android.app.{Dialog, AlertDialog => AAlertDialog} import _root_.androâ¦
Scalaã§Androidã¢ããªä½ææãAsyncTaskã®å¯å¤é·å¼æ°ã¡ã½ããã使ããªããã¨ã¸ã®å¯¾çã¨ãµã³ãã« â Gist ã丸ãã¯ãªãScala ã¯ãå¯å¤é·å¼æ°ãæã¤ã¡ã½ãããä¸æ¸ãã§ããªãã®ã§ãå¯å¤é·å¼æ°ãä¸æ¸ãæ¸ã¿ã® /path/to/hello-world/src/main/java/com/github/cooâ¦
ãã°ãåºåããéããã°åºåä½ç½®ã®æ å ±ãä¸ç·ã«åºåããã package com.github.cooldaemon.HelloWorld import _root_.android.util.{Log => ALog} object Log { val TAG = "HelloWorld" def e(m: String) = printlog(ALog.e, m) def w(m: String) = printlogâ¦
ActionBar ã¯ä½¿ãããããã©ãã¿ã¼ã²ããã® API Level ãä½ãå ´åã«éå®ãã ActionBarSherlock ã Scala ãã使ãã sbt ããã¸ã§ã¯ãè¨å® ã¾ãã¯ä¾åããã©ã¤ãã©ãªãæå®ãããæºåç·¨ãåèã«ä½æãããã£ã¬ã¯ã㪠/path/to/hello-world ã®ç´ä¸ã« main.sbâ¦
Toast 表示ä¸ã« Toast ã表示ããã¨åé¡ãããããã*1ã®ã§ã次ã®ãããªã©ããã¼ãªãã¸ã§ã¯ããç¨æããã package ã¯ãæºåç·¨ã§ç¨æãããã®ã package com.github.cooldaemon.HelloWorld import _root_.android.content.Context import _root_.android.widâ¦
åå¿ã¨ããåã®å¼ãç¶ãçãªã¢ã¬ãMac OSX 10.7 ä¸ã§éçºããäºãåæã¨ããã sbt ã®æºå ãã®è¾ºããè¦ãªãã sbt-launch.jar ããã¦ã³ãã¼ããã/usr/local/bin é ä¸ã« sbt-launch-0.11.3.jar ã¨ããååã§ä¿åããã ãã®ã¾ã¾ã ã¨ä½¿ãé£ãã®ã§ãä¸è¨ã® Shâ¦
ã¨ãããã使ãæ¹ã ãã¡ã¢ package com.github.cooldaemon.scalaz_test import scalaz._ object TryIteratee { import Scalaz._ import IterV._ def run { implicit val ListEnum = new Enumerator[Seq] { def apply[E, A](e: Seq[E], i: IterV[E, A]): Iterâ¦
ãã®è¨äºã¯ãScala Advent Calendar JP 2011 ã®14æ¥ç®ã§ããç¡çãè¨ã£ã¦ãäºæ¥éãæ ãé ãã¦ãã¾ãã¾ãããä»åã¯ãScalaz 6.0.3 ã® concurrent ã«ã¤ãã¦è§£èª¬ãè¡ãã¾ããå人çã«ã¯ Scalaz.concurrent ã®ä¸»å½¹ã¯ Promise ã ã¨æã£ã¦ããã®ã§ãæ©éããã®è§£â¦
ãã®è¨äºã¯ãScala Advent Calendar JP 2011 ã®13æ¥ç®ã§ããä»åã¯ãScala STM 0.4 ããå°å ¥ããã CommitBarrier ã®è§£èª¬ãè¡ãã¾ãã CommitBarrier ã®åºæ¬ ã¾ãã¯ãä¸è¨ã®ã³ã¼ããã覧ãã ããã import org.scalatest.fixture.FixtureFunSuite import scaâ¦
ååã¡ã¢ãå¿ãã¦ãã Either ã®å°ãã¿ãç´¹ä»ã ä¾ã®å¦ã scalaz ã® import ã¯å¿ é ã import scalaz._ import Scalaz._ Either ãåå¾ããå¾ãæ®éã¯ãå¦çã®åå²ãä¸è¨ã®ããã«è¨è¿°ããã 1.right[String] match { case Right(n :Int) => n + 1 case Left(sâ¦
ä¸è¨ã§åãä¸ãããã¦ãããã¿ã«ã¤ãã¦ã¡ã¢ãæ®ãã Scala ã® Either ã«ã¤ãã¦ã®èå¯ - scalaã¨ãã»ã»ã» Scalaåå¼·ä¼ç¬¬53å (EitherãScalazã®Validationã«ã¤ãã¦) - Togetter Either 㨠Scalaz Either 㯠flatMap ã¡ã½ãããæããªãã®ã§ for å¼ã§ã¯ä½¿ããªâ¦
scalaz ã® ExampleState ã« StateT ã®ãµã³ãã«ãç¡ãã£ãã®ã§è©¦ãã¦ã¿ãã æ°ãåãããããããã State ã¢ããã£ã¦ä½ãï¼ã¨ããæãã説ææ¸ãããã package com.github.cooldaemon.try_scalaz import scalaz._ object TryState { import Scalaz._ def ruâ¦
äºå¹´ååã« gen_server ã®ã³ã¼ã«ããã¯ã¢ã¸ã¥ã¼ã«å 㧠badarith ãçºçãã㨠supervisor ãã¨è½ã¨ããã ã¨ããã¡ã¢ãæ®ããã«ãé¢ãããããã£ããå 容ãå¿ãã¦ãã¾ããå¤ãª Process Design ã® poolboy*1 ã® poolboy_sup ãå®å ¨ãæ¤è¨¼ãããã®ã«æéãæãâ¦
ä»ã²ã¨ã¤ Alloy ãç解ã§ãã¦ããªãã®ã§ãErlang ã Scala ã§ä½¿ã Supervisor Tree ã®ä»æ§ãè¨è¿°ã¾ãã¯ãéåãå®ç¾©ãã¦ã¿ãã abstract sig Actor { parent : lone Supervisor } sig Worker extends Actor {} sig Supervisor extends Actor { child : Actorâ¦
ã¯ã©ã¹ã¿ãªã³ã°ããã¥ã¼ã®ãã©ã¼ãªã³ã°ã®è©³ç´°ã¯ãä¸è¨åç §ã®äºã RabbitMQ - Clustering Guide RabbitMQ - Highly Available Queues RabbitMQ ãã¯ã©ã¹ã¿ãªã³ã°ãã ä»åã¯ãµã¼ããè¤æ°ç¨æã§ããªãã£ãã®ã§ãä¸ã¤ã®ãµã¼ãä¸ã§ RabbitMQ ãäºã¤èµ·åããã % â¦
iPhone/iPad/iPod ã§æå·å(AES256 ã使ç¨)ãããã¼ã¿ããµã¼ãå´ã§å¾©å·åããã®ã«åæ¥ããã£ãã®ã§ã¡ã¢ãã¾ããObjC å´ãCCCrypt ã®è§£èª¬ã¯æ¹ã ã«åå¨ãã¦ããã®ã§å²æãIV ã« NULL ãæå®ãã¦ããã®ã§ 0x00 ã 16 Byte ã¨ããäºã«ãªãã CCCrypt( kCCEncryptâ¦
STM ã®åä½ç¢ºèªã®ãããä¸è¨ã®ãããªã³ã¼ããæ¸ããã®ã§ããâ¦*1 import org.scalatest.fixture.FixtureFlatSpec import org.scalatest.matchers.ShouldMatchers import scala.concurrent.stm._ class RefSpec extends FixtureFlatSpec with ShouldMatchers {â¦
Scala for = Haskell do (Java ã®ä¾å¤ã Either ã§å ãã å¾ã®è©±ã) ãå°ã好è©ã ã£ãã®ã§ã調åã«ä¹ã£ã¦ã¡ãããã¿ã for æ§æã使ã㨠match case ã®ãã¹ããé¿ããããããã©ãããã¼ãä¸è¨ã®ããã«æ¸ããã®ãã¨è¨ãã¨â¦ for { a <- Some(1) b <- Right(2).â¦
ãµã¼ãã®å ¥ãæ¿ããè¡ãéã«ãæéãç¡é§ã«ããã®ã§ã¡ã¢ãæ§ç°å¢ã§ã¯ãä¸è¨ã®ã³ã¼ãã§åé¡ãªãåä½ãã¦ããã®ã ã⦠// ..snip.. var r = getXMLHttpRequest(); r.open('POST', CGI_PATH, true); var args = formContents('form_id'); this.d = sendXMLHttpReâ¦
æè¿ããã£ãã㨠RabbitMQ Java Client ã® Scala Wrapper ãæ¸ãã¦ãã¾ãã Scala ãã Java ã®ã©ã¤ãã©ãªã使ãå ´åãä¾å¤å¦çã®æ±ãã«å°ãã®ã§ãããå½ç¶ãRabbitMQ Java Client ãä¾å¤æãã¾ããã§ãã ãã㧠scala.util.control.Exception.allCatch ãâ¦