Thursday, July 29, 2021

Is it possible to convert from .json format to .xlsx format?

 The easiest way to do this is to use Windows Powershell as described here. It is enough if you convert .json to .csv. File format .cssv can be opened with EXCEL and saved.

This is the .json file:

============

{

   "Name": "James Bond",

   "Age": "35",

   "Profession": "Professional Killer",

   "Location": "London, UK"

}

===================

This file, JamesBond.json  is saved on my desktop.

Let us say that is the code you need to convert to from .json to .csv format

Create the above text in Notepad and save it with the extension .json (default is .txt for Notepad)


Open the Windows PowerShell ISE




Type in the following code (try to see what else you can convert from and convert to in the above images):

Get-Content C:\Users\TestUser\Desktop\JamesBond.json | ConvertFrom-Json|ConvertTo-Csv

Run the code in the Windows PowerShell ISE

You will see this result:

==========================

"Name","Age","Profession","Location"

"James Bond","35","Professional Killer","London, UK"

---------------------------------

You get the answer as shown. 

This is in CSV format and this can be opened with EXCEL.


This can be saved as .xlsx or various other formats.






Sunday, July 25, 2021

Monday, July 19, 2021

Is Hydrogen a colorless gas?

Yes, it is colorless. This is what elementary chemistry tells you. But people may be wondering why they are adding a color attribute to hydrogen.

The color attribute of hydrogen comes about by the way it is produced on an industrial scale. There are three colors presently:

Grey hydrogen:

Basically from fossil fuels such as coal or natural gas.

https://www.coalage.com/features/hydrogen-from-coal/#:~:text=H%202%20produced%20by%20steam%20methane%20reforming%20%28SMR%29,hydrogen%20that%20includes%20carbon%20abatement%2C%20such%20as%20CCUS.

https://tinyurl.com/yey9fegt


By far most of the hydrogen presently produced/used is grey hydrogen.

Green hydrogen:

Hydrogen from Electrolysis of water.

This is completely free of carbon in its production.

http://www.chem.gla.ac.uk/cronin/media/papers/Chisholm-Chapter_16_2016.pdf#:~:text=The%20production%20of%20hydrogen%20from%20water%20via%20electrolysis,has%20two%20main%20applications%20as%20an%20energy%20vector.

or

https://tinyurl.com/4y6hektf

Blue hydrogen:

It is similar to Grey hydrogen but the carbon in the process is captured and stored (so-called carbon neutral).

https://www.msn.com/en-us/news/technology/blue-gas-could-become-a-tesla-killer/ar-BB1dOsgr#:~:text=So-called%20%27blue%27%20hydrogen%20is%20the%20name%20given%20to,water%20are%20converted%20into%20hydrogen%20and%20carbon%20monoxide.

https://tinyurl.com/e5k7zrxe

Thursday, July 15, 2021

Is there an online compiler for multiple programming languages?

 Yes. There is indeed one I recently came across. It can compile a couple of programming languages as shown here (copied from its website).


I just tested a demo SQL query. It worked.

It has a simple interface. Just enter your code and click RUN and you are done.


Just click RUN after entering your code as shown (I just modified the demo query a little bit).



The result of the query is shown. I have not tested other languages.

Here is the site where you can do it. You need to register to use this program.

Thursday, June 17, 2021

How do we work with MS Access to access SQL Server Database?

 I will show you in four simple steps.

1. Create a new MS Access database file


2.    You need to provide a name instead of accepting the default.

3.    Click the Menu item 'External Data' 



4.    Go to New Data Source as shown and choose SQL Server.


Follow the red line and choose From SQL Server





Tuesday, June 8, 2021

Which of Microsoft's SQL Tools provide a Graphical User Interface?

Some people like GUIs more than scripting languages. They can still manage to work with SQL Servers.

Databases reside in the database servers. These servers may reside on your laptops, computers running with various operating systems such as Windows, Linux, and macOS. These servers may run in the cloud such as Azure. The tools, however, may not reside on the same platforms but allows you to connect to the various above-mentioned servers.

In brief, the tools are the following:

1. Azure Data Studio uses the operating systems, Windows, macOS, and Linux

This tool can run on-demand queries and save data as text, JSON, or Exel. It has a lightweight editor

2. SQL Server Management Studio (SSMS)

It is a full-featured GUI as well as it can run TSQL statements. It has tons of features.

It is a one-stop database management tool.

It can connect to the cloud, Azure SQL Database, Azure Synapse Analytics, etc.

Developers and DBMs of all skill levels can use this tool.


3. SQL Server Data Tools(SSDT) 

Using this you can build relational databases, Azure SQL databases, Analytical services, integration services, reporting services, etc

4. Visual Studio Code

Using the "mssql extension" for Visual Studio Code you can connect to SQL Servers

You can do scripting with a lightweight editor after connecting to SQL Server in Visual Studio.

You can find extensive references to complete articles on the following sister blogs:

http://hodentek.blogspot.com

http://hodentekMSSS.blogspot.com

More on GUI tools here:

https://docs.microsoft.com/en-us/sql/tools/overview-sql-tools?view=sql-server-ver15


Sunday, June 6, 2021

How do you open backdoor in Venza 2021 Limited?

 You can open the Venza 2021 Limited's backdoor in a number of ways including from inside the car. The power switch should be on.

The backdoor can be opened and closed in a number of ways. In all cases make sure your fingers are not holding on to the opening door you may get your fingers damaged while closing).

1. Using the door opening switch in the Remote Key.  You need not unlock the car but should have the  Remote key on your person.

 

2. Even if the car is locked (but you should be having the key on your person) you can open the backdoor by

   Sweeping your feet standing in the center of the car about a foot from the door. You will see the side mirrors opening and you get an audible signal that the door will open. stand away from the door.

3. Once the door is open, you can see controls that can be used to close the door or lock it in position to adjust to the height of the user.


4. Directly under the logo behind the car there are two controls, to open and close. You may need to feel them as they are not seen looking directly. This was photographed with the door open.

5. When the Power is on you can open the door from inside the car using control shown. You need to make sure that there are no obstructions or people standing nearby as the backdoor would swing-out. Probably, it is better to use this method only in an emergency and make sure you use the 360 -degree view system.