Comment by slf on Why NSXMLDocument doesn't escape newline character (\n)
Pretty sure the same goes for attribute values
View ArticleComment by slf on How to debug heavy memory issues on a simple app
youtube.com/watch?v=m-yCfWOBqAk
View ArticleComment by slf on Easiest Way to Create A GUI in Java?
Things have changed since 2012. Intellij 2019 has some fairly good javafx integration built in, and if you want a gui builder oracle still offers theirs
View ArticleComment by slf on “kubectl exec” results in "error: unable to upgrade...
on centos you can find this variable in /etc/sysconfig/kubelet
View ArticleComment by slf on How can I get query parameters from a URL in Vue.js?
This is great. The missing piece to the puzzle is the initiation. You can do that like this: ` this.$router.push({ name: 'mypage', query: { foo: 'bar' })`
View ArticleComment by slf on Failed to install android-sdk:...
You can brew install jenv to switch between java versions, much like nvm or virtualenv and other languages
View ArticleComment by slf on How to run only one task in ansible playbook?
There is nothing wrong with using tags. If you want to know what tags a playbook has, you can with ansible-playbook playbook.yml --list-tags
View ArticleComment by slf on Default values for...
I too got bit by the "project was below find package command" demon
View ArticleComment by slf on Calling python from a c++ program for distribution
github.com/boostorg/python/blob/develop/example/quickstart/…
View ArticleComment by slf on how can i include python.h in QMake
doc.qt.io/qt-5/third-party-libraries.html
View ArticleComment by slf on Embedding Python in a Qt Creator project
pybind11.readthedocs.io/en/stable/advanced/pycpp/numpy.html
View ArticleComment by slf on Running programs in parallel using xargs
It's probably worth noting that -P 0 will use the number of cpus on the system
View ArticleAnswer by slf for Handle car animation and collision
So, after reading your question a few more times I think I understand now. You have two cars and when they collide, they both stop. You want just one car to stop, and one car to go.If you don't care...
View ArticleAnswer by slf for Apache camel,RabbitMQ how to send messages/objects
Because this it the top hit on Google for rabbitmq/camel integration I feel the need to add a bit more to the subject. The lack of simple camel examples is astonishing to me.import...
View ArticleThree.js ported to native code?
I've been playing with WebGL quite a bit lately and I really dig Three.js. It's really lightweight and just serves as something that makes wrangling most of the GL calls a bit easier, and provides a...
View ArticleAnswer by slf for Pagination in a REST web application
I agree with Fionn, but I'll go one step further and say that to me the Page is not a resource, it's a property of the request. That makes me chose option 1 query string only. It just feels right. I...
View ArticleOneDrive API createUploadSession "API not found"
According to the onedrive api docs to upload large files to OneDrive, first you create an upload session, then you send the fragments. That all makes sense, but for some reason it's telling me that my...
View ArticleAnswer by slf for Current time formatting with Javascript
There are many great libraries out there, for those interestedhttp://www.datejs.com/http://momentjs.com/https://github.com/samsonjs/strftimeThere really shouldn't be a need these days to invent your...
View ArticleUnderstanding parsing SVG file format
First off, gist hereMap.svg in the gist is the original Map I'm working with, got it off wikimedia commons.Now, there is a land mass off the eastern cost of Texas in that original svg. I removed it...
View Article