It can take a year of programming on a project before you understand what the best design approach should’ve been. - @martinfowler
Notes: Microblog-like status updates. You can subscribe to an RSS feed of this list.
Dec 2017
-
Repost from RichRogers_:
-
Repost from jbouie:
once again, it is effectively impossible to convict a police officer for a shooting, even when there is video of that cop shooting a suspect who is on his knees with his hands in the air http://www.bbc.com/news/world-us-canada-42277309?SThisFB
-
My Facebook 2017 year in review video includes a picture of Matt Murdock and Jessica Jones knitting
-
Repost from saladinahmed:
I never realized how funny Saruman watching the ent attack in two towers is. It’s just Christopher Lee running back-and-forth on his balcony really upset. my kids are roasting him, like ‘do something you’re a wizard’ ‘he’s not even trying’ lol
-
Repost from mariachong:
“What a man had rather were true he more readily believes.” —Francis Bacon
-
Best time to find an obvious bug in your app: literally 5 minutes after first downloading it from the app store
-
Repost from newsycombinator:
One-third of all people killed by strangers in America are killed by police https://granta.com/violence-in-blue/
-
Repost from jemsfitz:
Agents of SHIELD came back with no fucks to give and pulling all the strings ready to prove that they deserve to be on air. Fuck yes. #agentsofshield
-
Repost from detalistka:
Why The Right Change Often Feels Wrong https://shar.es/1MeXLY via @berkun
-
Reply to:
@rovietoosin san ka na lilipat?
-
Repost from triketora:
The global dominance of white people is thanks to the potato https://quartzy.qz.com/1148452/
-
Repost from contriteperson:
If Wonder Woman and Spider-Man go into business together, they should call it Amazon Web Services.
-
Reply to:
@DLo_MD happy birthday! lol
-
Someone on quora asked:
Sure, easily. I mean, I love programming, but there’s also other stuff I love and can do. Such an amount = freedom to pretty much do anything else I want. I will surely miss programming, but I’m sure I can find other worthwhile things to dig into. The programmer’s attitude of always being willing to learn new things means we never run short of problems we can try to solve, even without programming per se
-
Repost from dorseyshaw:
Fixed
-
Repost from derektmead:
I have been waiting weeks for this story, which has been months in the making, and I think it’s the funniest thing we’ve ever done https://www.vice.com/en_uk/article/434gqw/i-made-my-shed-the-top-rated-restaurant-on-tripadvisor
-
Repost from scalzi:
Time chose correctly, and this is a very good article.
http://time.com/time-person-of-the-year-2017-silence-breakers/
-
I’d be more excited about this if I could actually finish megaman 9 and 10 lol
Quoted MegaMan's tweet:Get equipped with Mega Man 11, coming to Switch, PS4, Xbox One, and PC in Late 2018! Watch the #MegaMan30 livestream at http://twitch.tv/capcomunity!
-
If someone is rude to you, don’t get mad. Just imagine na baka natatae na sya
-
Agents of SHIELD came back with no fucks to give and pulling all the strings ready to prove that they deserve to be on air. Fuck yes. #agentsofshield
-
New startup idea: I read, watch, play, study, write, draw, and create whatever I want, whenever I want. How do I get funded?
Nov 2017
-
Stories like these are why I think twice about ever flying to the US
Quoted tithenai's tweet:Heyyy who wants to hear the story of why I’m crying in an airport on 3 hours of sleep? You? Gather round!
-
Repost from AnneANB:
-
Where is Thanos’ hat?
-
Repost from saffadkhan:
-
Ah the mrt3 my old nemesis we meet again
-
This doesnt matter because we already know how the house will decide
Quoted ANCALERTS's tweet:@donronX La Viña: Nobody can cross-examine De Castro; cross-examination can ferret other facts on the case. Even if the facts she proposes are right, those are not impeachable.
-
Repost from mlq3:
-
TIL about the Overton window https://en.wikipedia.org/wiki/Overton_window
-
Survey: what is the most difficult animal to pack?
-
Repost from halfadams:
She said she was just going out to get some milk… https://twitter.com/kensingtonroyal/status/935086035989655553
-
This is a follow-up to my question here: https://stackoverflow.com/questions/47449002/marklogic-template-driven-extraction-and-triples-dealing-with-array-nodes/47459250#47459250
So let’s say I have a number of documents structured like this:
declareUpdate(); xdmp.documentInsert( '/test/tde.json', { content: { name:'Joe Parent', children: [ { name: 'Bob Child' }, { name: 'Sue Child' }, { name: 'Guy Child' } ] } }, {permissions : xdmp.defaultPermissions(), collections : ['test']})
I want to define a template that would extract triples from these documents defining sibling relationships between the children. For the above example, I would want to extract the following triples (the relationship is two-way):
Bob Child sibling-of Sue Child Bob Child sibling-of Guy Child Sue Child sibling-of Bob Child Sue Child sibling-of Guy Child Guy Child sibling-of Bob Child Guy Child sibling-of Sue Child
How can i set up my template to accomplish this?
Thanks!
-
8 ppl ahead in the queue. shouldve brought a laptop for sleepy coding
-
Repost from EdimaInwang:
-
Repost from bnharrison:
“My math teacher is low-key terrified of all of us,” the tween in my house told us tonight at dinner.
And then she explained why. (thread)
-
I wish I still had time to draw regularly
-
There’s no shame in giving up for the day and trying again tomorrow
-
Repost from Zan004:
this might be my favorite gif
-
Reply to:
@tr1pnautic they believe that everyone who was part of trad politics=dilawan. never mind that some of them are his allies now. never mind that duts himself is a traditional politician
-
Repost from patio11:
Quick little tweetstorm on why, if you desire to have a small software business, you should prefer doing Boring Business Productivity SaaS to writing a video game, even if you really like videogames:
-
“You want to change the world, Shallan. That’s well and good. But be careful. The world predates you. She has seniority.”
-
I’ve been studying the examples here: https://docs.marklogic.com/guide/semantics/tde#id_25531
I have a set of documents that are structured with a parent name and an array of children nodes with their own names. I want to create a template that generates triples of the form “name1 is-a-parent-of name2”. Here’s a test I tried, with a sample of the document structure:
declareUpdate(); xdmp.documentInsert( '/test/tde.json', { content: { name:'Joe Parent', children: [ { name: 'Bob Child' }, { name: 'Sue Child' } ] } }, {permissions : xdmp.defaultPermissions(), collections : ['test']}) cts.doc('/test/tde.json') var tde = require("/MarkLogic/tde.xqy"); // Load the user template for user profile rows var template = xdmp.toJSON( { "template":{ "context":"content", "collections": [ "test" ], "triples":[ { "subject": { "val": "xs:string(name)" }, "predicate": { "val": "sem:iri('is-parent-of')" }, "object": { "val": "xs:string(children/name)" } } ] } } ); //tde.validate([template]), tde.templateInsert("/templates/test.tde", template); tde.nodeDataExtract( [cts.doc( '/test/tde.json' )] )
However, the above throws an Exception:
[javascript] TDE-EVALFAILED: tde.nodeDataExtract([cts.doc("/test/tde.json”)]) – Eval for Object='xs:string(children/name)’ returns TDE-BADVALEXPRESSION: Invalid val expression: XDMP-CAST: (err:FORG0001) Invalid cast: (fn:doc("/test/tde.json”)/content/array-node(“children”)/object-node()[1]/text(“name”), fn:doc("/test/tde.json”)/content/array-node(“children”)/object-node()[2]/text(“name”)) cast as xs:string?
What is the proper syntax for extracting array nodes into a triple?
2nd somewhat related question: say I also wanted to have triples of the form “child1 is-sibling-of child2”. For the example above it would be “Bob Child is-sibling-of Sue Child”. What would be the proper syntax for this? I’m not even sure how to begin with this one.
Is TDE even the way to go here? Or is it better to do this programmatically? i.e. on document ingestion, generate those triples inside the document directly?
(If it’s relevant, the ML version being used is 9.)
-
Apparently hindi ko pa kaya manalo ng quiz night magisa
-
What’s the point of a selling post with “Take all for 5999. Last Price 5500!”? Why bother with the 5999?
-
Reply to:
@wrongwaygoback the joke is that ninjas are supposed to be stealthy so master ninjas wont be seen
-
@_@
Quoted ComicBookNOW's tweet:‘Rurouni Kenshin’ Creator Nobuhiro Watsuki Arrested On Child Pornography Charges
http://comicbook.com/anime/2017/11/21/rurouni-kenshin-nobuhiro-watsuki-sex-crime-arrested-anime/
-
Life goals: find a quiet spot, lie down and read
-
Sometimes even our dreams tell us to move on
-
-
Repost from tinybuddha: