Thursday, March 05, 2020

Installing lxml on Windows 10

lxml is a parser for XML and HTML. It binds c libraries linxml2 and licxslt to Python and should work with Python versions 2.8 through 3.8.

lxml is better than ElementTree I used with python 3.7:

https://hodentek.blogspot.com/2018/07/parsing-xml-with-python-37.html

You can download the complete and this te documentation in pdf from here:
https://lxml.de/lxmldoc-4.5.0.pdf

The HTML parsing may be available here:
https://lxml.de/index.html#download

As a parser, it builds a data structure (parse tree) given the XML. There are many programs to parse XML but this is python specific.

How do you install?

Get the lxml from here:

http://pypi.python.org/pypi/lxml/ 

 use the following public key:

https://lxml.de/3.8/pubkey.asc 

If you have Python 3.8, like I have, the lxml 3.8.0 is here:

https://lxml.de/files/lxml-3.8.0.tgz
Documentation here:
https://lxml.de/3.8/lxmldoc-3.8.0.pdf

If you are using Windows 10 and already have Python 3.8 use the following steps:


Step 1: Verify you can run 'pip' as shown here:
-------
Microsoft Windows [Version 10.0.18362.657]
(c) 2019 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>pip

Usage:
  C:\Users\Owner\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\python.exe -m pip [options]

Commands:
  install                     Install packages.
  download                    Download packages.
  uninstall                   Uninstall packages.
  freeze                      Output installed packages in requirements format.
  list                        List installed packages.
  show                        Show information about installed packages.
  check                       Verify installed packages have compatible dependencies.
  config                      Manage local and global configuration.
  search                      Search PyPI for packages.
  wheel                       Build wheels from your requirements.
  hash                        Compute hashes of package archives.
  completion                  A helper command used for command completion.
  debug                       Show information useful for debugging.
  help                        Show help for commands.

General Options:
  -h, --help                  Show help.
  --isolated                  Run pip in an isolated mode, ignoring environment variables and user configuration.
  -v, --verbose               Give more output. Option is additive, and can be used up to 3 times.
  -V, --version               Show version and exit.
  -q, --quiet                 Give less output. Option is additive, and can be used up to 3 times (corresponding to
                              WARNING, ERROR, and CRITICAL logging levels).
  --log                 Path to a verbose appending log.
  --proxy              Specify a proxy in the form [user:passwd@]proxy.server:port.
  --retries          Maximum number of retries each connection should attempt (default 5 times).
  --timeout              Set the socket timeout (default 15 seconds).
  --exists-action     Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup,
                              (a)bort.
  --trusted-host    Mark this host as trusted, even though it does not have valid or any HTTPS.
  --cert                Path to alternate CA bundle.
  --client-cert         Path to SSL client certificate, a single file containing the private key and the
                              certificate in PEM format.
  --cache-dir

           Store the cache data in.
  --no-cache-dir              Disable the cache.
  --disable-pip-version-check
                              Don't periodically check PyPI to determine whether a new version of pip is available for
                              download. Implied with --no-index.
  --no-color                  Suppress colored output
---------------------

Step 2: Use this command to install lxml:





Tuesday, February 11, 2020

MySQL is the DB of year 2019

In the DB-Engines ranking MySQL takes top place, Oracle is 2nd and Microsoft SQL Server is 3.


Read more here for the reasons:
https://db-engines.com/en/blog_post/83

Wednesday, February 05, 2020

Kirk Douglas was a legend and I loved his movies

Kirk Douglas dead at 103.

Kirk Douglas was a great actor, and I am not sure Michael will attain the heights his father reached.

Most of the movies I saw and enjoyed, were released during the 1960s and 1970s. I had fewer opportunities to watch Hollywood movies outside India in the later years.

The movies were riveting largely due to Kirk. I miss him and so does Hollywood. He was a role model for a person in the entertainment industry who was also of high moral caliber. He must have had great genes, healthy habits and discipline to live beyond 100.  I miss him, and so does Hollywood. 

May his soul RIP.

Here are some of the movies I enjoyed:

https://en.wikipedia.org/wiki/There_Was_a_Crooked_Man...--There was a crooked man
https://www.amazon.com/Ace-Hole-Kirk-Douglas/dp/B00170F0MK --Ace in the Hole
https://www.imdb.com/title/tt0054331/ --Spartacus (Stanley Kubrick)
https://www.imdb.com/title/tt0046672/?ref_=nm_flmg_act_74--20,000 leagues under the sea
https://www.imdb.com/title/tt0050468/?ref_=nm_flmg_act_68  --Gunfight at O.K. Corral
https://www.imdb.com/title/tt0047630/?ref_=nm_flmg_act_76  --Ulysses

Tuesday, February 04, 2020

Zebra bands on Windows Desktop

Well, this looks really odd. Where did these bands come from?






I wonder whether it is the problem with the display hardware. If I capture the window and look at it, it has no bands. Also, the display resolution does not have any effect.

Here is a solution from Window Central.

https://hodentekhelp.blogspot.com/2020/02/how-do-you-correct-windows-10-display.html


Friday, January 24, 2020

Query debugger is deprecated in SQL Server Management Studio v18.4

Maybe it will come back if enough people rant!

It looks like it has been deprecated in SSMS 18. I have SSMS v 18.4 installed and the icon is missing. Also missing is the Execute with Debugger drop-down menu in the query pane context.

Debug icon present in 2012 and 2017 SSMS. Missing in v18.4 in the 2019 version.


Missing in the Query drop-down menu. It should have been present below 'Execute'.


DMCA.com Protection Status