Very interesting: https://extranewsfeed.com/tolerance-is-not-a-moral-precept-1af7007d6376
Notes: Microblog-like status updates. You can subscribe to an RSS feed of this list.
Aug 2017
-
Repost from RonJeffries:
-
TIL Donald Duck was not banned in Finland for not wearing pants https://www.snopes.com/fact-check/fowled-out/ (This is important information guys!)
-
“I’ll just wait for it to appear on Netflix” is the new “I’ll just wait for it to appear on cable”
-
Repost from phil_wade:
-
Repost from barnabychuck:
RT @barnabychuck: How Mobster Turned T.V. Presenter Louis Ferrante Was Unwillingly Co-Opted into Rodrigo Duterte’s Propaganda Machine https…
-
Reply to:
@waxpancake I made @triviastorm which runs trivia questions. still very much a wip!
-
We’ve been trying to set up flexible replication in our system which uses a MarkLogic database. We followed the instructions from https://docs.marklogic.com/8.0/guide/flexrep/quick_start and have been able to set up flexible replication between two MarkLogic servers. We have verified that new documents created in the master are copied over to the replica. However, the master database currently has more than 47 million records that were there before we configured the replication. Once the replication process was triggered, we observed that the documents are being replicated to the replica very slowly. Roughly 20,000 documents were replicated within the first two hours. The rate is very slow, it would take months for the old records to be fully replicated.
Our questions are:
-
We are looking into increasing the hardware specs of the two servers, but aside from that would anyone have any advice or documentation as to how we could speed up the replication? I couldn’t find any existing documentation regarding this?
-
Failing that, would it be possible to set up flexible replication without needing to replicate the initial data set? FYI, we also tried to clone the master database and use the clone as the replica. (We thought this might mean that the older records don’t have to be replicated.) However, in this case we encountered XDMP-NEWSTAMP and XDMP-EXTIME errors on the replica server, so we gave up on this approach. A sample of the errors encountered on the replica is below:
2017-08-03 18:45:04.376 Notice: exp-rest-content-flexrep: XDMP-NEWSTAMP: Timestamp too new for forest exp-rest-content-001-1 (15017569242290900) 2017-08-03 18:45:04.376 Notice: exp-rest-content-flexrep: in /apply.xqy [1.0-ml] 2017-08-03 18:45:04.379 Notice: TaskServer: XDMP-EXTIME: try { let $raw-module-name := module-path($action-to-execute/p:module) let $module-kind := module-kind($raw-module-name) let $module-name := if ($module-kind = “xquery” or $module-kind = “javascript”) then $raw-module-name else $cpfi:xslt-action return if ($module-name = “") then fn:error((), “CPF-ACTIONNOTFOUND”, “Default success”) else if ($module-kind = “javascript”) then (xdmp:trace(“CPF Action Invoke”, fn:string-join(($caller, xdmp:get-current-user(), $uri, $state-or-status, $raw-module-name), " “)), xdmp:invoke($module-name, (fn:QName("”,“uri”), $uri, xs:QName(“cpf:document-uri”), $uri, fn:QName("”,“transition”), $chosen-transition, options-var-js($action-to-execute)), $invoke-options)) else (xdmp:trace(“CPF Action Invoke”, fn:string-join(($caller, xdmp:get-current-user(), $uri, $state-or-status, $raw-module-name), " “)), xdmp:invoke($module-name, ($vars, xs:QName(“cpf:transition”), $chosen-transition, options-var($action-to-execute), if ($module-kind = “xslt”) then (xs:QName(“cpf:stylesheet-uri”), $raw-module-name) else ()), $invoke-options)) } catch ($e) { let $trace := let $context := fn:concat($caller, " “, $uri, " action failed”) return (cpf:log(fn:string-join(($context, $e/err:format-string), " “), “error”), cpf:log(($context, $e), “fine”)) let $failure-action := ($pipelines/p:failure-action)[1] let $raw-failure-module := module-path($failure-action/p:module) let $failure-kind := module-kind($raw-failure-module) let $failure-module := if ($failure-kind = “xquery” or $failure-kind = “javascript”) then $raw-failure-module else $cpfi:xslt-action return if ($failure-module = “") then fn:error((), “CPF-ACTIONNOTFOUND”, “Default failure action”) else xdmp:invoke($failure-module, ($vars, xs:QName(“cpf:transition”), $chosen-transition, options-var($failure-action), xs:QName(“cpf:exception”), $e, if ($failure-kind = “xslt”) then (xs:QName(“cpf:stylesheet-uri”), $raw-failure-module) else ()), $invoke-options) } – Time limit exceeded 2017-08-03 18:45:04.379 Notice: TaskServer: in /MarkLogic/cpf/triggers/internal-cpf.xqy, at 213:4, 2017-08-03 18:45:04.379 Notice: TaskServer: in execute-action(“on-state-enter”, “http://marklogic.com/states/initial", “/_smslogs/5849823.xml”, (xs:QName(“trgr:uri”), “/_smslogs/5849823.xml”, xs:QName(“trgr:trigger”), …),
, (fn:doc(“http://marklogic.com/cpf/pipelines/12349495875628658916.xml")/p:pipeline, fn:doc(“http://marklogic.com/cpf/pipelines/3358424510998587926.xml")/p:pipeline, fn:doc(“http://marklogic.com/cpf/pipelines/13179541037342910978.xml")/p:pipeline, …), fn:doc(“http://marklogic.com/cpf/pipelines/3358424510998587926.xml")/p:pipeline/p:state-transition[3]/p:default-action, fn:doc(“http://marklogic.com/cpf/pipelines/3358424510998587926.xml")/p:pipeline/p:state-transition[3]) [1.0-ml] 2017-08-03 18:45:04.379 Notice: TaskServer: $caller = “on-state-enter” 2017-08-03 18:45:04.379 Notice: TaskServer:different-transaction t…
$state-or-status = “http://marklogic.com/states/initial" 2017-08-03 18:45:04.379 Notice: TaskServer: $uri = “/_smslogs/5849823.xml” 2017-08-03 18:45:04.379 Notice: TaskServer: $vars = (xs:QName(“trgr:uri”), “/_smslogs/5849823.xml”, xs:QName(“trgr:trigger”), …) 2017-08-03 18:45:04.379 Notice: TaskServer: $invoke-options = 2017-08-03 18:45:04.379 Notice: TaskServer: $pipelines = (fn:doc(“http://marklogic.com/cpf/pipelines/12349495875628658916.xml")/p:pipeline, fn:doc(“http://marklogic.com/cpf/pipelines/3358424510998587926.xml")/p:pipeline, fn:doc(“http://marklogic.com/cpf/pipelines/13179541037342910978.xml")/p:pipeline, …) 2017-08-03 18:45:04.379 Notice: TaskServer: $action-to-execute = fn:doc(“http://marklogic.com/cpf/pipelines/3358424510998587926.xml")/p:pipeline/p:state-transition[3]/p:default-action 2017-08-03 18:45:04.379 Notice: TaskServer: $chosen-transition = fn:doc(“http://marklogic.com/cpf/pipelines/3358424510998587926.xml")/p:pipeline/p:state-transition[3] 2017-08-03 18:45:04.379 Notice: TaskServer: $e = <error:error xsi:schemaLocation="http://marklogic.com/xdmp/error error.xsd” xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance” xmlns:error="http://marklogic.com/xdmp/error">error:codeXDMP-NEWSTAMP</error:code>error:name/<error:xquery…</error:error> 2017-08-03 18:45:04.379 Notice: TaskServer: in /MarkLogic/cpf/triggers/internal-cpf.xqy, at 342:6, 2017-08-03 18:45:04.379 Notice: TaskServer: in execute-transition(“on-state-enter”, “http://marklogic.com/states/initial", “/_smslogs/5849823.xml”, (xs:QName(“trgr:uri”), “/_smslogs/5849823.xml”, xs:QName(“trgr:trigger”), …), <trgr:trigger xmlns:trgr="http://marklogic.com/xdmp/triggers">trgr:trigger-id6551367241994447650</trgr:trigger-id><trgr:trig…</trgr:trigger>, (fn:doc(“http://marklogic.com/cpf/pipelines/12349495875628658916.xml")/p:pipeline, fn:doc(“http://marklogic.com/cpf/pipelines/3358424510998587926.xml")/p:pipeline, fn:doc(“http://marklogic.com/cpf/pipelines/13179541037342910978.xml")/p:pipeline, …), (fn:doc(“http://marklogic.com/cpf/pipelines/12349495875628658916.xml")/p:pipeline/p:state-transition[2], fn:doc(“http://marklogic.com/cpf/pipelines/3358424510998587926.xml")/p:pipeline/p:state-transition[3], fn:doc(“http://marklogic.com/cpf/pipelines/13179541037342910978.xml")/p:pipeline/p:state-transition[1], …), <p:null-transition xmlns:p="http://marklogic.com/cpf/pipelines"><p:state>http://marklogic.com/states/initial</p:state></p:null-transition>) [1.0-ml] 2017-08-03 18:45:04.379 Notice: TaskServer: $caller = cpf:state(“http://marklogic.com/states/initial") 2017-08-03 18:45:04.379 Notice: TaskServer: $state-or-status = () 2017-08-03 18:45:04.379 Notice: TaskServer: $uri = (xs:QName(“trgr:uri”), “/_smslogs/5849823.xml”, xs:QName(“trgr:trigger”), …) 2017-08-03 18:45:04.379 Notice: TaskServer: in /MarkLogic/cpf/triggers/internal-cpf.xqy, at 358:3, 2017-08-03 18:45:04.379 Notice: TaskServer: in int:execute-state-transition(“on-state-enter”, cpf:state(“http://marklogic.com/states/initial"), “/_smslogs/5849823.xml”, (xs:QName(“trgr:uri”), “/_smslogs/5849823.xml”, xs:QName(“trgr:trigger”), …), <trgr:trigger xmlns:trgr="http://marklogic.com/xdmp/triggers">trgr:trigger-id6551367241994447650</trgr:trigger-id><trgr:trig…</trgr:trigger>) [1.0-ml] 2017-08-03 18:45:04.379 Notice: TaskServer: $caller = cpf:state(“http://marklogic.com/states/initial") 2017-08-03 18:45:04.379 Notice: TaskServer: $state = () 2017-08-03 18:45:04.379 Notice: TaskServer: $uri = (xs:QName(“trgr:uri”), “/_smslogs/5849823.xml”, xs:QName(“trgr:trigger”), …) 2017-08-03 18:45:04.379 Notice: TaskServer: in /MarkLogic/cpf/triggers/on-state-enter.xqy, at 41:6 [1.0-ml] 2017-08-03 18:45:04.379 Notice: TaskServer: $state = cpf:state(“http://marklogic.com/states/initial") 2017-08-03 18:45:04.379 Notice: TaskServer: $trace = () 2017-08-03 18:45:04.379 Notice: TaskServer: $vars = (xs:QName(“trgr:uri”), “/_smslogs/5849823.xml”, xs:QName(“trgr:trigger”), …) 2017-08-03 18:45:04.379 Notice: TaskServer: XDMP-NEWSTAMP: Timestamp too new for forest exp-rest-content-001-1 (15017569242290900) 2017-08-03 18:45:04.379 Notice: exp-rest-content-flexrep: XDMP-NEWSTAMP: Timestamp too new for forest exp-rest-content-001-1 (15017569242290900) 2017-08-03 18:45:04.379 Notice: exp-rest-content-flexrep: in /apply.xqy [1.0-ml]different-transaction t… -
-
“If you went back and fixed all the mistakes you’ve made, you erase yourself” - Louis C.K.
-
Reply to:
-
Repost from patio11:
Do not be afraid of writing things that everybody knows. Your individual take on it has value, and there are new everybodies all the time!
-
Repost from mrc199x:
RT if gets mo na hindi law enforcement agency ang CHR
-
It’s “mul-tee-verse” not “mul-tye-verse”
-
Buti pa Singapore holiday bukas
-
Reply to:
@Westraid I doubt he’s gonna die that way :p
-
Repost from Grammarly:
Raise your hand if you need a vacation. (via @theawkwardyeti)
-
-
That’s great and all, but when is someone going to adapt Saga?
Quoted CBR's tweet:Netflix Acquires Mark Millar’s Millarworld http://cbr.st/AKFCfiR
-
Nothing like waking up and wondering if it’s almost morning and it’s like 8:40pm
-
Repost from rawrgyle:
my first in-house storyboards for the Guardians of the Galaxy animated series~
-
Chaos is a ladder
-
Rick: “To live is to risk it all; otherwise you’re just an inert chunk of randomly assembled molecules drifting wherever the universe blows you.”
-
I worked with a terrible in-house framework for more than a decade, wouldve loved the velocity Django gives for simple tasks
-
Haven’t used Django in years, still happy with how easy it makes a lot of things
-
Repost from smamol:
This is the best explanation I’ve ever seen about how programming works and why outsourcing doesn’t HT @teamsnapper http://bit.ly/2uAt99U
-
. @NetflixAsia @netflix how many retweets to get voltron legendary defender on @Netflix_PH
-
Repost from willrad:
-
We have a search application using MarkLogic node.js. We use parsedQuery like this:
qb.parsedFrom(prop.search, qb.parseBindings( qb.word('name', qb.bind('name')), qb.word('birthdate', qb.bind('birthdate')), qb.range('count', qb.datatype('float'), qb.bind('count')) ) )
The above currently supports search syntax like “count GT 50”, etc. We would like to support searching using a derived value such as age. That is, we want to support a search syntax like “age GT 10”, where the age value is not stored in the documents in the database but rather needs to be computed from the birthdate on the fly. We can’t store the age in the documents since the age changes depending on the current date.
Is this possible and if so, how? If it matters, we are using ML8
-
I don’t even have an optical drive anymore
Quoted shanselman's tweet:RT if you have a stack of these and not a damn thing to do with them
-
Repost from martinfowler:
In my Ruby code, half of my methods are just one or two lines long. 93% are under 10.
https://martinfowler.com/bliki/FunctionLength.html https://twitter.com/RonJeffries/status/893071198401290240
-
Boo :(
Quoted Polygon's tweet:The Dark Tower is boring, lifeless and close to being an absolute total disaster. Our review. https://www.polygon.com/2017/8/3/16087834/the-dark-tower-review
-
Watching NCIS Los Angeles: Kahawig ni LL Cool J si Bato
-
Is there an easy way to delete all the element range indexes on a given database?
Thanks
-
Renewed my driver’s license today. TBF it was pretty easy, alhough I just paid around P1k for a receipt and a promise
-
I wonder if the incidence of neck pains is significantly higher for programmers
-
Repost from dailyzen:
Life passes whether we want it to or not. Make peace with change.
-
Repost from AbstractCode:
Sometimes I miss the days of annoying coworkers with “net send”.
-
Repost from sama:
Jul 2017
-
Reply to:
@SeresaTagAraw saan yan?
-
Repost from existentialcoms:
The hardest things to understand:
-
Quantum Physics.
-
Hegelian Dialectics.
-
Advanced Topology.
-
How to do literally anything is CSS.
-
-
@SeresaTagAraw happy birthday!
-
Repost from jeannes_jargon:
RT @jeannes_jargon: Facebook: Essential oils. Snapchat: I’m a bunny! Instagram: I ate a hamburger. Twitter: THIS COUNTRY IS BURNING TO THE…
-
Repost from AMagicWriter:
-
Repost from RepRaskin:
What is this, Duterte’s Philippines? Putin’s Russia? Trump has no respect for the rule of law. Obscene. https://www.washingtonpost.com/news/post-nation/wp/2017/07/28/trump-tells-police-not-to-worry-about-injuring-suspects-during-arrests/?hpid=hp_hp-more-top-stories_trumptranscpript-514pm%3Ahomepage%2Fstory&utm_term=.f60fcceed104
-
Repost from zenpencils.com:
-
I won 25 orbs from @CORSAIR! Thanks!!
Quoted CORSAIR's tweet:Happy #FreeCodeFriday! RT and follow @CORSAIR & @PlayDuelyst to win 25 orbs from the newest Duelyst expansion, Unearthed Prophecy.
-
Reply to:
@SeresaTagAraw dba uk shift naman kayo? :p
-
Repost from Cpin42:
6yo: What’s it like being a grown up?
ME: You know that feeling you get when you unwrap a present and it’s not what you wanted?
-
Repost from __paullus:
-
Repost from papasuncle:
Spice up any Facebook comment with random quotation marks.
“Congrats” on your baby.
Congrats on “your” baby.
Congrats on your “baby”.
-
Reply to:
@shanselman @ben_a_adams @davkean @agincourtdb can this be configured to automatically save the image as a file in a set location?