tag:blogger.com,1999:blog-5428232882395758357.comments2016-06-20T17:16:19.739-04:00more indirectionMore Indirectionhttp://www.blogger.com/profile/09749479501125035513noreply@blogger.comBlogger67125tag:blogger.com,1999:blog-5428232882395758357.post-49381694292954479022016-06-20T17:16:19.739-04:002016-06-20T17:16:19.739-04:00Nice blog!
I would say that 300 is still a pretty ...Nice blog!<br />I would say that 300 is still a pretty small data set to see the results.<br />Have you thought about binary splitting the iteration space?<br /><br />Editorshttps://www.blogger.com/profile/04712722055811655833noreply@blogger.comtag:blogger.com,1999:blog-5428232882395758357.post-31877759245608873892016-05-04T10:29:59.822-04:002016-05-04T10:29:59.822-04:00Hi Lucas,
That's correct - this was written f...Hi Lucas,<br /><br />That's correct - this was written for a version of Swift that's almost a year old now. Thanks for pointing this out - I just updated the post to match the code I'm actually using these days.More Indirectionhttps://www.blogger.com/profile/09749479501125035513noreply@blogger.comtag:blogger.com,1999:blog-5428232882395758357.post-82076638565617769732016-05-03T10:24:47.097-04:002016-05-03T10:24:47.097-04:00Why the implicitly unwrapped optionals? I'm gu...Why the implicitly unwrapped optionals? I'm guessing just a artifact from betas that can now be removed. I removed and it seems to work but just wanted to check to see if you thought of something I had not. (I think this will even be disallowed in Swift 3)Lucashttps://www.blogger.com/profile/05044156242567370074noreply@blogger.comtag:blogger.com,1999:blog-5428232882395758357.post-48448128475952838592016-02-25T15:47:07.640-05:002016-02-25T15:47:07.640-05:00I don't get that error. What version of Swift?...I don't get that error. What version of Swift?More Indirectionhttps://www.blogger.com/profile/09749479501125035513noreply@blogger.comtag:blogger.com,1999:blog-5428232882395758357.post-73209877797905449502016-02-24T11:48:06.111-05:002016-02-24T11:48:06.111-05:00code is not working. Operator is not defined "...code is not working. Operator is not defined "+=".Anonymoushttps://www.blogger.com/profile/10675301633337416669noreply@blogger.comtag:blogger.com,1999:blog-5428232882395758357.post-46382226070336855822016-01-11T08:31:43.169-05:002016-01-11T08:31:43.169-05:00Great suggestion - thanks!Great suggestion - thanks!More Indirectionhttps://www.blogger.com/profile/09749479501125035513noreply@blogger.comtag:blogger.com,1999:blog-5428232882395758357.post-71280200125733321482015-07-26T21:58:18.507-04:002015-07-26T21:58:18.507-04:00That's standard behavior for a closure, not sp...That's standard behavior for a closure, not specific to my code.More Indirectionhttps://www.blogger.com/profile/09749479501125035513noreply@blogger.comtag:blogger.com,1999:blog-5428232882395758357.post-61649496686884615132015-07-26T21:58:13.539-04:002015-07-26T21:58:13.539-04:00That's standard behavior for a closure, not sp...That's standard behavior for a closure, not specific to my code.More Indirectionhttps://www.blogger.com/profile/09749479501125035513noreply@blogger.comtag:blogger.com,1999:blog-5428232882395758357.post-3145414714216693062015-07-26T21:58:00.849-04:002015-07-26T21:58:00.849-04:00This comment has been removed by the author.More Indirectionhttps://www.blogger.com/profile/09749479501125035513noreply@blogger.comtag:blogger.com,1999:blog-5428232882395758357.post-30933650885195148252015-01-08T10:43:48.546-05:002015-01-08T10:43:48.546-05:00@Solomon, yep, I just encountered this issue and c...@Solomon, yep, I just encountered this issue and came back here to comment, but you beat me to it :). As you mention, I had to add [unowned self] to the closure declaration to avoid leaking my viewController.Terryhttps://www.blogger.com/profile/14909979349222819894noreply@blogger.comtag:blogger.com,1999:blog-5428232882395758357.post-15533323578749768762014-12-17T14:03:36.930-05:002014-12-17T14:03:36.930-05:00Anyone implementing this should be aware that refe...Anyone implementing this should be aware that referencing self will cause a retain cycle in the handler unless it's marked as weak.Solomonhttps://www.blogger.com/profile/02696752466166207654noreply@blogger.comtag:blogger.com,1999:blog-5428232882395758357.post-68256945080670293712014-12-08T07:51:42.722-05:002014-12-08T07:51:42.722-05:00Awesome stuff :) Have you thought about making a c...Awesome stuff :) Have you thought about making a cocoapod out of this?<br />I always prefer importing and giving credit for code written by others instead of copy-pasting and commiting in my own name.<br /><br />Quick comment about the code:<br />Trailing closures are a nice feature, but IMHO not the right fit for this. I think it would be better style to pass the block argument on directly, instead of wrapping it in another block:<br />let newToken = NSNotificationCenter.defaultCenter().addObserverForName(name, object: nil, queue: nil, usingBlock: block)<br /><br />Thanks a lot for sharing this!Anonymoushttps://www.blogger.com/profile/15437500031149791752noreply@blogger.comtag:blogger.com,1999:blog-5428232882395758357.post-70185012996742220662014-11-29T10:48:51.846-05:002014-11-29T10:48:51.846-05:00Thanks for pointing this out, Kaan. I've updat...Thanks for pointing this out, Kaan. I've updated the post.More Indirectionhttps://www.blogger.com/profile/09749479501125035513noreply@blogger.comtag:blogger.com,1999:blog-5428232882395758357.post-75115481804804035172014-11-29T10:25:07.006-05:002014-11-29T10:25:07.006-05:00Not that I've seen so far.Not that I've seen so far.More Indirectionhttps://www.blogger.com/profile/09749479501125035513noreply@blogger.comtag:blogger.com,1999:blog-5428232882395758357.post-17500778310846595562014-11-28T15:56:37.534-05:002014-11-28T15:56:37.534-05:00Thanks for the tutorial however, please change you...Thanks for the tutorial however, please change your Counter class to be public. Your CounterTest doesn't compile without Counter class being public. I was scratching my head trying to figure out what was wrong for sometime...Anonymoushttps://www.blogger.com/profile/00971805095975767678noreply@blogger.comtag:blogger.com,1999:blog-5428232882395758357.post-74072473244352355522014-11-07T12:53:28.930-05:002014-11-07T12:53:28.930-05:00This is an artifact of an earlier beta of Swift. I...This is an artifact of an earlier beta of Swift. I've updated the code so that the blocks simply return "Void" - those extra unit values are no longer necessary. Thanks for bringing this to my attention!More Indirectionhttps://www.blogger.com/profile/09749479501125035513noreply@blogger.comtag:blogger.com,1999:blog-5428232882395758357.post-57312947168854070482014-10-13T10:42:20.278-04:002014-10-13T10:42:20.278-04:00What is the difference
"block(note)"
an...What is the difference <br />"block(note)"<br />and<br />"block(note)<br /> ()" ??Anonymoushttps://www.blogger.com/profile/02557676722884473255noreply@blogger.comtag:blogger.com,1999:blog-5428232882395758357.post-54069452916178291612014-07-30T16:20:29.127-04:002014-07-30T16:20:29.127-04:00any issues with mixing in/ testing Objc classes in...any issues with mixing in/ testing Objc classes in a Swift test case?Anonymoushttps://www.blogger.com/profile/10499692064046213123noreply@blogger.comtag:blogger.com,1999:blog-5428232882395758357.post-21971912913051963122012-06-15T12:39:10.162-04:002012-06-15T12:39:10.162-04:00Following Eric@Typlab's suggestion (thanks!), ...Following Eric@Typlab's suggestion (thanks!), I'm using CodeColorer with Wordpress 3.3 and it works beautifully.<br /><br />-- Ivan @ Keera Studios<br /><br />PS. I know that this is an old thread, but it's still the first result when you google "haskell wordpress code highlighting".Ivan P. D.https://www.blogger.com/profile/07996401292031163041noreply@blogger.comtag:blogger.com,1999:blog-5428232882395758357.post-68579951919394548032011-10-14T18:53:44.662-04:002011-10-14T18:53:44.662-04:00Nice post. Have you looked at the Cake Pattern ? (...Nice post. Have you looked at the Cake Pattern ? (http://debasishg.blogspot.com/2011/03/pushing-envelope-on-oo-and-functional.html)Alexei Guevarahttps://www.blogger.com/profile/01811335196275083219noreply@blogger.comtag:blogger.com,1999:blog-5428232882395758357.post-70982799153772973192011-10-13T15:45:18.434-04:002011-10-13T15:45:18.434-04:00Nice. With scala you can also do compilation at ru...Nice. With scala you can also do compilation at run time, see e.g. my little project http://bitbucket.org/egh/ssconf, so you can change those paths, etc. without rebuilding completelyErik Hetznerhttps://www.blogger.com/profile/02479770445861858681noreply@blogger.comtag:blogger.com,1999:blog-5428232882395758357.post-54168035302861166232011-10-13T09:40:23.747-04:002011-10-13T09:40:23.747-04:00Nice solution.Nice solution.Steve Piercehttps://www.blogger.com/profile/05111167194178030567noreply@blogger.comtag:blogger.com,1999:blog-5428232882395758357.post-12999072065397646832011-10-13T02:57:59.356-04:002011-10-13T02:57:59.356-04:00Nice; thanks! This seems to be the Scala version o...Nice; thanks! This seems to be the Scala version of the "implicit configurations" technique that Oleg Kiselyov and I described in http://www.cs.rutgers.edu/~ccshan/prepose/prepose.pdf . One difference is that you don't need to translate values to types and back to values in Scala.單中杰https://www.blogger.com/profile/14754929367418830739noreply@blogger.comtag:blogger.com,1999:blog-5428232882395758357.post-84577483777342031002011-10-12T20:07:07.272-04:002011-10-12T20:07:07.272-04:00Hi, Google lost my comment after letting me log in...Hi, Google lost my comment after letting me log in... :-(<br /><br />I am new to Lift and I am not migrating from old version of sbt to the new one.<br /><br />Here are what I did:<br />- downloaded Lift 2.4-M4.<br />- downloaded sbt.<br />- ran sbt.<br />- went to '/scala_29'<br />- ran 'sbt update ~jetty-run'<br /><br />The sbt did not recognize '~jetty-run'. I googled and found your post.<br /><br />I made what all you described, then ran 'sbt update ~jetty-run' again. I got this error:<br /><br /><br />$../scala_29/build.sbt:5: error: not found: value WebPlugin<br />seq(WebPlugin.webSettings: _*)<br /> ^<br />[error] Type error in expression<br />Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? q<br /><br />Would you please help me?<br /><br />I thank you in advance.<br /><br />Best regards,<br />Hai LeHai Lehttps://www.blogger.com/profile/07595194179616206799noreply@blogger.comtag:blogger.com,1999:blog-5428232882395758357.post-80513173766858394812011-08-08T13:36:34.589-04:002011-08-08T13:36:34.589-04:00shoot, never mind, cut and paste failed me as it c...shoot, never mind, cut and paste failed me as it created two lines...I should have noticed that earlier.Dean Hillerhttps://www.blogger.com/profile/07242427596655725024noreply@blogger.com