Notes: Microblog-like status updates. You can subscribe to an RSS feed of this list.
Nov 2017
-
Repost from meyerweb:
-
RT @SteveBlogs1: This is the best thing you’ll see today
-
Basically the title. The client is complaining that when he zooms in, the text labels for the nodes are quite large. Is there a way to keep the node labels at a fixed font size even when zooming in or out?
From the nodes documentation (http://visjs.org/docs/network/nodes.html), there’s a scaling.label option, but it doesn’t seem to work. I think this is only relevant if I’m using values to scale the nodes.
-
Repost from AljoDolores:
RT @AljoDolores: @EspinaNonoy @HeuyGeungGong Saan kaya napunta yung nawawalang ‘I’?
-
This reminds me of how Xander from Buffy only appears in the news nowadays when he gets arrested for domestic abuse or something https://www.dailymail.co.uk/news/article-5063683/amp/Former-Smallville-actress-second-command-sex-cult.html
-
Maybe browsing these Lazada flash sales isn’t a good idea
-
imma just ignore this #280characters thing and be pleasantly surprised when i can fit the apostrophe in my contractions
-
Reply to:
@misterorange @goodgamery The first card he saw beside Magmaw literally had Ursula from the little mermaid on it, how could anyone believe this could possibly be real
-
“I’m bored’ is a useless thing to say. You live in a great, big, vast world that you’ve seen none percent of. Even the inside of your own mind is endless. It goes on forever, inwardly - you understand? The fact the you’re alive is amazing. So you don’t get to be bored.” - LOUIS C.K.
-
Repost from cesdrilon:
What Explains U.S. Mass Shootings? International Comparisons Suggest an Answer, via @nytimes https://www.nytimes.com/2017/11/07/world/americas/mass-shootings-us-international.html?smprod=nytcore-ipad&smid=nytcore-ipad-share
-
I follow an expat on twitter who’s anti Duterte but also very pro Trump. The dissonance is jarring
-
-
Thread on agile, speed and effectiveness
Quoted MrAlanCooper's tweet:The main reason why agile methods are popular is because managers think it means doing things faster. 1
-
Repost from kottke:
America is a stuck in a Groundhog Day loop of gun violence https://kottke.org/17/11/the-united-states-of-guns-2
-
do you silently judge people who have their cellphone font be some kind of weird cursive
-
Does Roxy have support for deploying templates for use with Marklogic 9’s Template Driven Extraction?
-
Reply to:
@wrongwaygoback slog implies tedious? i heard it was pretty good
-
Reply to:
@QTPYEx its likely that posting these only encourages such behavior
-
Repost from galantawhore:
It eventually gets better, without any sort of explanation; one day u just realize that you’re no longer upset. You’re no longer mad, hurt, or bothered by the things that took so much of ur energy and thoughts. You will find yourself in a peaceful place and enjoy that feeling.
-
-
A bit annoyed by some stuff today. I’ll just watch some Brooklyn Nine-Nine to restore happiness
-
Repost from underthenettle:
How did Theseus find his way out of the Labyrinth after killing the Minotaur? THREAD:
-
Repost from WeebSimpsons:
-
Posted on r/AskReddit: What do you do, and what’s your typical day like?
-
Repost from mjg59:
I’ve been doing kernel development for over a decade and here’s the most important thing I learned in that time: it’s better to be nice
-
Repost from anildash:
RT @anildash: This is the whole conversation all of us in tech need to be having. https://twitter.com/kumailn/status/925829691776237568
-
Thread
Quoted mariachong's tweet:If a very smart person says something uncharacteristically facile, look for the bribe.
-
Repost from juanelyas:
Shibby De Guzman, 14, made it to @TIME ‘s 30 most influential teens 2017 for speaking against Duterte and Marcos
-
There’s some free Thor graphic novels you can grab off Amazon right now. Works on Kindle! https://www.amazon.com/Comics-Graphic-Novels-Kindle-eBooks/b/131-1012764-7265231?ie=UTF8&node=156104011
-
Wanting to do everything and failing to do anything
-
if I were to start a Vietnamese resto, I would name it Pho Woah
-
Reply to:
@wawam it’s strategy. he’s there to draw fire away from the principal
-
RT if you’re one of the very few
Quoted dynamicjill's tweet:TRUTH: “Given the choice, very few humans will read something if they can watch a video instead.” via @ThisIsSethsBlog #SmartHustle
Oct 2017
-
Reply to:
@jaymelynilao happy birthday!
-
I kind of want a Zangief action figure so I can have him piledriver everybody
-
Repost from insomniacgames:
Watch our brand new #SpiderManPS4 teaser trailer from #ParisGamesWeek2017 now!
-
I’m trying out the Roxy deployer. The Roxy app was created using the default app-type. I setup a new ML 9 database, and I ran “ml local bootstrap” using the default ports (8040 and 8041)
Then I setup a node application. I tried the following (sample code from https://docs.marklogic.com/jsdoc/index.html)
var marklogic = require('marklogic'); var conn = { host: '192.168.33.10', port: 8040, user: 'admin', password: 'admin', authType: 'DIGEST' } var db = marklogic.createDatabaseClient(conn); db.createCollection( '/books', {author: 'Beryl Markham'}, {author: 'WG Sebald'} ) .result(function(response) { console.log(JSON.stringify(response, null, 2)); }, function (error) { console.log(JSON.stringify(error, null, 2)); });
Running the script gave me an error like:
$ node test.js { "message": "write document list: cannot process response with 500 status", "statusCode": 500, "body": "<error:error xsi:schemaLocation=\"http://marklogic.com/xdmp/error error.xsd\" xmlns:error=\"http://marklogic.com/xdmp/error\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n <error:code>XDMP-IMPMODNS</error:code>\n <error:name>err:XQST0059</error:name>\n <error:xquery-version>1.0-ml</error:xquery-version>\n <error:message>Import module namespace mismatch</error:message>\n <error:format-string>XDMP-IMPMODNS: (err:XQST0059) Import module namespace http://marklogic.com/rest-api/endpoints/config does not match target namespace http://marklogic.com/rest-api/endpoints/config_DELETE_IF_UNUSED of imported module /MarkLogic/rest-api/endpoints/config.xqy</error:format-string>\n <error:retryable>false</error:retryable>\n <error:expr/>\n <error:data>\n <error:datum>http://marklogic.com/rest-api/endpoints/config</error:datum>\n <error:datum>http://marklogic.com/rest-api/endpoints/config_DELETE_IF_UNUSED</error:datum>\n <error:datum>/MarkLogic/rest-api/endpoints/config.xqy</error:datum>\n </error:data>\n <error:stack>\n <error:frame>\n <error:uri>/roxy/lib/rewriter-lib.xqy</error:uri>\n <error:line>5</error:line>\n <error:column>0</error:column>\n <error:xquery-version>1.0-ml</error:xquery-version>\n </error:frame>\n </error:stack>\n</error:error>\n" }
If I change the port to 8000 (the default appserver that inserts into Documents), the node function executes correctly as expected. I’m not sure if I need to configure anything else with the Roxy-created appserver so that it works with the node.js application.
I’m not sure where the “DELETE_IF_UNUSED” part in the error message is coming from either. There doesn’t seem to be any such text in the configuration files generated by Roxy.
Edit: When accessing 192.168.33.10:8040 via the browser, I get a an xml with a similar error:
<error:error xsi:schemaLocation="http://marklogic.com/xdmp/error error.xsd" xmlns:error="http://marklogic.com/xdmp/error" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <error:code>XDMP-IMPMODNS</error:code> <error:name>err:XQST0059</error:name> <error:xquery-version>1.0-ml</error:xquery-version> <error:message>Import module namespace mismatch</error:message> <error:format-string>XDMP-IMPMODNS: (err:XQST0059) Import module namespace http://marklogic.com/rest-api/endpoints/config does not match target namespace http://marklogic.com/rest-api/endpoints/config_DELETE_IF_UNUSED of imported module /MarkLogic/rest-api/endpoints/config.xqy</error:format-string> <error:retryable>false</error:retryable> <error:expr/> <error:data> <error:datum>http://marklogic.com/rest-api/endpoints/config</error:datum> <error:datum>http://marklogic.com/rest-api/endpoints/config_DELETE_IF_UNUSED</error:datum> <error:datum>/MarkLogic/rest-api/endpoints/config.xqy</error:datum> </error:data> <error:stack> <error:frame> <error:uri>/roxy/lib/rewriter-lib.xqy</error:uri> <error:line>5</error:line> <error:column>0</error:column> <error:xquery-version>1.0-ml</error:xquery-version> </error:frame> </error:stack> </error:error>
If it matters, MarkLogic version is 9.0-3.1. It’s a fresh install too.
Any advice?
-
I’m trying to migrate one of my dev envts from ML8 to ML9. I have an import script that successfully works on the ML8 version, but there’s an error when I try running it against the ML9 database. The ML9 version is 9.0.3.1. The MLCP version is 9.0.3
My MLCP options file is as follows:
import -host 192.168.33.10 -port 8041 -username admin -password admin -input_file_path d:\maroon\data\mbastest.csv -mode local -input_file_type delimited_text -uri_id ClientId -output_uri_prefix /test/records/ -output_uri_suffix .json -document_type json -transform_module /ingestion/transform.js -transform_function testTransform -transform_param test -content_encoding windows-1252 -thread_count 1
Here’s the output of a test run with only 2 records in the test CSV file:
17/10/30 14:07:33 INFO contentpump.LocalJobRunner: Content type: JSON 17/10/30 14:07:33 INFO contentpump.ContentPump: Job name: local_455168344_1 17/10/30 14:07:33 INFO contentpump.FileAndDirectoryInputFormat: Total input paths to process : 1 17/10/30 14:07:38 WARN contentpump.TransformWriter: Failed document /test/records/31.json 17/10/30 14:07:38 WARN contentpump.TransformWriter: <error:format-string xmlns:error="http://marklogic.com/xdmp/error" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">XDMP-UNEXPECTED: (err:XPST0003) Unexpected token syntax error, unexpected QName_, expecting $end or SemiColon_</error:format-string> 17/10/30 14:07:38 WARN contentpump.TransformWriter: Failed document /test/records/32.json 17/10/30 14:07:38 WARN contentpump.TransformWriter: <error:format-string xmlns:error="http://marklogic.com/xdmp/error" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">XDMP-UNEXPECTED: (err:XPST0003) Unexpected token syntax error, unexpected QName_, expecting $end or SemiColon_</error:format-string> 17/10/30 14:07:38 INFO contentpump.LocalJobRunner: completed 100% 17/10/30 14:07:38 INFO contentpump.LocalJobRunner: com.marklogic.mapreduce.MarkLogicCounter: 17/10/30 14:07:38 INFO contentpump.LocalJobRunner: INPUT_RECORDS: 2 17/10/30 14:07:38 INFO contentpump.LocalJobRunner: OUTPUT_RECORDS: 2 17/10/30 14:07:38 INFO contentpump.LocalJobRunner: OUTPUT_RECORDS_COMMITTED: 0 17/10/30 14:07:38 INFO contentpump.LocalJobRunner: OUTPUT_RECORDS_FAILED: 2 17/10/30 14:07:38 INFO contentpump.LocalJobRunner: Total execution time: 5 sec
If I remove the transform params, the import works fine.
I thought it might be a parsing issue with my transform module itself, so I tried replacing it with the following example from the documentation:
// Add a property named "NEWPROP" to any JSON input document. // Otherwise, input passes through unchanged. function addProp(content, context) { const propVal = (context.transform_param == undefined) ? "UNDEFINED" : context.transform_param; if (xdmp.nodeKind(content.value) == 'document' && content.value.documentFormat == 'JSON') { // Convert input to mutable object and add new property const newDoc = content.value.toObject(); newDoc.NEWPROP = propVal; // Convert result back into a document content.value = xdmp.unquote(xdmp.quote(newDoc)); } return content; }; exports.addProp = addProp;
(Of course I changed the params in the MLCP options file accordingly)
The issue still persists even with just this test function.
Any advice?
-
I giggled at this for some reason
Quoted IWriteMonsters's tweet:My daughter insisted on this costume. All the other parents at daycare will think I’ve never read a comic book. #HalloweenWeekend
-
Reply to:
@EkaJade you’re a staircase!
-
I’m like 90% through Kingdom Hearts 2 Final Mix and I have no idea what’s going on
-
-
Most of software development is just making a hundred thousand tiny decisions that would bore stakeholders if they had to do it themselves
-
My SFV crashed a couple of days ago but Steam still thinks it’s running I’ve gotten an extra 40 hours or so of playtime now lol
-
Reply to:
@saampahlavan I hope these were giveaways, since I totally took the second one. Thanks!
-
Repost from Iordsofiron:
-
THOR RAGNAROK spoiler-free review:
- a fun, action-packed romp that shakes up the Thor status quo significantly
- easily the best of the three Thor movies
- a number plot points are fairly predictable, yet still fun
- the Marvel formula is generally action mixed with witty banter here and there, and it’s what we get here, although some of the jokes feel like they’re stretched a bit too much
- some great-looking cinematic scenes here and there. One particular flashback scene looked really great
- I kind of like how the older franchises need to be some sort of team effort nowadays. Like Civil War, this felt a bit like some kind of mini-Avengers crossover – in space!
- speaking of space, one of the positive things about this installment is that they didn’t feel the need to tie Thor’s adventures to Earth anymore (not that the movie is 100% Earth-free), and they get to go a bit wild with space and aliens and all that
- I understand the need to highlight Hulk’s involvement as part of the film’s marketing, but man, it would have been so awesome to just find out right then and there
- This movie had that Star Wars: Last Jedi trailer I was trying to avoid D:
- 1 mid-credits scene and 1 post-credits scene
- I think Imax was good for this movie. The 3d wasn’t too much and it definitely made some scenes pop. The film is a visual delight so I think the larger screen is important too
- Magugustuhan ba ni Mama: Probably not. Maybe I should stop including this section kasi parang same na parati ang answer. Unless for some reason I decide to watch some Tagalog romcom
-
@alvinjtang @MaroonStudiosPH may blockchain na category
Quoted rrhoover's tweet:ATTN: Makers 🚨
We’re hosting a global, month-long hackathon. $250k+ in prizes, all online.
Join us 👉🏼 http://producthunt.com/hackathon
-
For me “the average family would get X” is different from “each family would get X on average”. In conclusion, this is stupid.
Quoted PressSec's tweet:The average American family would get a $4,000 raise under the President’s tax cut plan. So how could any member of Congress be against it?
-
Panawagan: meron ba akong pinahiram ng isang blue na seagate external HD?