| BML-S | Help Login

Last entries

    20190131.0936
  1. ambari > "Invalid KDC administrator credentials" when installing Ambari 2.7 with Kerberos - [s]

    20190212.2143
  1. hadoop|hdfs > datanode unable to start. "does not contain a valid host:port authority" - [s]

    <property><name>fs.defaultFS</name><value>file:///</value></property> <property><name>fs.file.impl</name><value>org.apache.hadoop.fs.LocalFileSystem</value></property>

  2. 20190210.1723
  3. postgres|postgresql > shard/sharding/replication with citus - [s]

  4. 20190204.0918
  5. What's New In DevTools (Chrome 73)  |  Web  |  Google Developers - [s]

    - To add a logpoint: Right-click the line number where you want to add the Logpoint. Tip! When logging out a variable (e.g. TodoApp), wrap the variable in an object (e.g. {TodoApp}) to log out its name and value in the Console. See Always Log Objects and Object Property Value Shorthand to learn more about this syntax. - Code folding The Sources and Network panels now support code folding. Press F1 to open Settings. Under Settings > Preferences > Sources enable Code folding. - Messages tab The Frames tab has been renamed to the Messages tab. This tab is only available in the Network panel when inspecting a web socket connection.

  6. 20190130.1802
  7. How do you manage journald log history on ubuntu core 16 - [s]

    journalctl --disk-usage sudo journalctl --vacuum-size=32M sudo vim /etc/systemd/journald.conf SystemMaxUse=32M ForwardToSyslog=no sudo systemctl restart systemd-journald

  8. 20190128.1238
  9. python > escape|encode|urlencode for XML|SOAP - [s]

    _statement="`echo "${_statement}" | tr '\n' ' '`" _statement="`python -c "from xml.sax.saxutils import escape;print escape(r\\\"\\\"\\\"${_statement}\\\"\\\"\\\", {\\\"'\\\":'&apos','\\\"':'"'})"`"

  10. 20190122.1538
  11. Linux|bash > hide processes from other users and ps command - nixCraft - [s]

    mount -o remount,rw,hidepid=2 /proc hidepid=1 – It means users may not access any /proc// directories, but their own. Sensitive files like cmdline, sched*, status are now protected against other users. hidepid=2 It means hidepid=1 plus all /proc/PID/ will be invisible to other users.

  12. 20190122.1235
  13. python > parse namespace-ed xml with xml - [s]

    from lxml import etree tree = etree.parse("./project.xml") root = tree.getroot() # To debug #etree.dump(root) #print(root.tag) root.xpath('.//ns0:some_tag', namespaces={'ns0':'http://xxxx'})[0] # or e = root.find(".//some_tag", root.nsmap) # to output(get) a full path to this element tree.getelementpath(e)

  14. 20190122.1157
  15. xml - xmllint debug with --debug (to see the type of element/node - [s]

  16. 20190122.1127
  17. python|xml - Convert Python ElementTree to string - Stack Overflow - [s]

    import xml.etree.ElementTree as et root = et.parse('project.xml') print(et.tostring(root.getroot()))

  18. 20190122.0745
  19. python|pandas > return particular|specific row|rows and column|columns with loc or iloc - [s]

  20. 20190122.0557
  21. Add Insecure Registry to Docker - Stack Overflow - [s]

    Resolved the issue by adding a file /etc/docker/daemon.json with following content { "insecure-registries" : [ "hostname.cloudapp.net:5000" ] }

  22. 20190121.1311
  23. macos|osx|mac > Splitting a file in linux based on content - [s]

    brew install coreutils gcsplit ./periodic.log /========/ {*} NOTE: mac's csplit does not support "{*}"

[s] hadoop (1)
[s] public (12)