Morten
Member since Apr 28, 2010
- Profile: /members/5928-morten.htm
- Comments: 14
Recent Blog Comments By Morten
-
MySQL Multi-Range Read (MRR) Optimization Caused A Partial Database Outage
Posted on Oct 23, 2017 at 8:14 AM
Hi Ben What happens if you do: AND ( l.targetEntityID in (...) OR l.targetEntityID = 0 ) Would it help with the scan or would MySQL optimize this back to your version or something similar?... read more »
-
Adding An ngRepeat List Delimiter In AngularJS
Posted on Feb 25, 2013 at 9:34 AM
Hi Ben, I really love your posts on angularjs. It seems that every time something new catches my eyes you either have just started looking into it or will start shortly after - Sometimes I even just wait with diving into the subject until after you have dug the hole a little deeper :) On a side not... read more »
-
jQuery Appends Multiple Elements Using Efficient Document Fragments
Posted on Nov 7, 2011 at 10:30 AM
@Ben, Yeah, your probably right - what ever solution you chose caching should be involved. I fail to see an HTML/Javascript app having a template usage that it would seriously effect your experience? I guess things like this is more of a problem when done server-side than client-side...... read more »
-
jQuery Appends Multiple Elements Using Efficient Document Fragments
Posted on Nov 3, 2011 at 7:23 AM
@Ben, Yeah, I thought as much. Do you know of any benchmarks on using 'jQuery', '.replace()', 'string concatenation' -based manipulation?... read more »
-
Using RequireJS For Asynchronous Script Loading And JavaScript Dependency Management
Posted on Nov 1, 2011 at 9:03 PM
Not being anywhere near expert on yepnope I understand it as a shortcut to conditional loading. instead of doing if(...) { require(...); }else{ require(...); } you can write: var hasAwsomeFeature = true; yepnope({ test:hasAwesomeFeature, yep: ['load.js','me.js'], nope: ['addAwesomeFeature.js'], ... read more »
-
jQuery Appends Multiple Elements Using Efficient Document Fragments
Posted on Nov 1, 2011 at 8:32 PM
Normally when I have to generate something simple like the list in your example I use $.map to create a array of strings and then follow up by $(...).append(array_of_strings.join()). Is the only reason for creating document fragments that you can manipulate them with jQuery? Or are there also other... read more »
-
The Five Secrets You Must Discover Before You Die By John Izzo
Posted on Oct 31, 2011 at 7:24 PM
Hi Ben, First of, I really enjoy your blog. You have a great talent for diving into technical stuff and relay your findings in such a way that gets me excited and want to explore futher - thanks. But blog posts like these have a tendency to hit me over the head waking me up from hour-long geeky en... read more »
-
The Sexiest Thing A Woman Can Say In An Elevator
Posted on Jul 5, 2011 at 3:47 PM
However, if the man in the elevator suffered from low self esteem he might hear the sentence a bit different: "I'm definitely glad <strog>_I_ wore deodorant today." She could add a compliment about his choice of deodorant - who doesn't like to be told they smell great?... read more »
-
Selecting The Seven Languages In Seven Weeks Winners
Posted on Feb 10, 2011 at 10:45 AM
Stupid ColdFusion! I thought the point of your blog was to make me like ColdFusion, now I am not so sure it will every happen :) /A Loser... read more »
-
Seven Languages In Seven Weeks By Bruce Tate - What An Adventure
Posted on Jan 29, 2011 at 3:10 AM
@Ben ML is a fun(ctional) language to play around with and there are quite a few implementations of it. I haven't played around with Haskell at all, but to my understanding Haskell is a pure functional language where as ML has some blurry edges when it come to that. ML also shares simila... read more »
-
Seven Languages In Seven Weeks By Bruce Tate - What An Adventure
Posted on Jan 28, 2011 at 6:16 PM
Thought I should give it a more serious try and then I remembered playing around with moscow ml some ~10 years ago... val list = ["Morten","Ben","The lot"] : string list; fun map (f, adj, nil) = nil | map (f, adj, h::t) = (f(h, adj)) :: map (f, adj, t); fun fun... read more »
-
Seven Languages In Seven Weeks By Bruce Tate - What An Adventure
Posted on Jan 28, 2011 at 4:09 PM
Just thought perl was missing. Although I am not sure the code qualifies? @d = map sprintf("%s is so %s",$_,"perlish"), ("Morten","Ben","The lot");... read more »
-
The jQuery Template Markup Language (JTML) Project
Posted on Apr 29, 2010 at 2:01 AM
My suggestions was not so much concerning syntax as it was features. <p>Error: <jtml:var onEmptyRMNode=p name=errmsg /></p> would be the same as <jtml:if test="!empty(errmsg)"> <p>Error: ${errmsg} /></p> </jtml:if> onEmptyRMNode points to a parent... read more »
-
The jQuery Template Markup Language (JTML) Project
Posted on Apr 28, 2010 at 5:27 PM
Hey Ben, great blog - been a follower for some months now. I got inspired by your markup language approach and have a few comments. How about writing variables like so <jtml:var name=variable /> instead of ${variable} I could see this syntax being extended like so <p>Error: <jtml:v... read more »