Replacement for BizTalk ImportExportRulestore.exe

What if you need to import a bunch of BizTalk vocabulary rules (.xml files) into the Biztalk BRE (Business Rule Engine)? You don’t want to do it one at time using the Business Rule Deployment Wizard. The real question, is why Microsoft didn’t provide a batch version of that tool that does all the same […]

BizTalk Pipeline Framework for BizTalk 2016 (and beyond)

While the GitHub says it’s only for BizTalk 2013-R2 and lower, it’s just C# code that should work with any version of BizTalk, unless BizTalk makes some breaking changes in future releases. But it’s unlikely they would do that, as many customers have pipeline components and business rules. Visual Studio 2015 Builds To get it […]

Get directory name of “My Documents”

I’m at a client that has the users “My Documents” on a share drive, so that when you logon to any computer, you have your “My Documents” available. The question is, how to get that directory/path name? Why? You might want to write a C# program to access one of the files there, or you […]

AWS re:invent reinvent 2019 – Andy Jassy CEO AWS – My Notes

Amazon AWS re:invent reinvent 2019 – Andy Jassy CEO AWS – Notes 12/04/2019 Stats: 65,000 attendees, Public Sector Using: 10,000 Academic 25,000 Non Profits AWS NHitro Decided to design and build chips Bought Annapurna Labs (Chip Designers Builders from Israel), and design build chips themselves. Graviton ARM chip announced last year (A1 Instances) Article about […]

C# Import/Using statements for Microsoft SQL

What do you need to import with the “using” statement in C# to be able to work with SQL? For Microsoft using System.Data; using System.Data.SqlClient; System.Data includes the DataReader, DataAdapter, Connetions, Commands and so on (from ADO.NET). For Oracle using System.Data; using Oracle.ManagedDataAccess.Client; using Oracle.ManagedDataAccess.Types;

Find the compute capability of your NVIDIA Graphics Card (GPU)

Run the nvidia-smi command. Get the name/model of your NVidia card, then find it on this page: https://developer.nvidia.com/cuda-gpus So below, you can see my GeForce GTX 950 has a computer power of 5.0: The reason for checking this was from a blog on Medium regarding TensorFlow. It said: Check for compatibility of your graphics card. […]

Python code to test PyTorch for CUDA GPU (NVIDIA card) capability

PyTorch is a machine learning package for Python. This code sample will test if it access to your Graphical Processing Unit (GPU) to use “CUDA” <pre>from __future__ import print_function import torch x = torch.rand(5, 3) print(x) if not torch.cuda.is_available():    print ("Cuda is available")    device_id = torch.cuda.current_device()    gpu_properties = torch.cuda.get_device_properties(device_id)    print("Found %d […]

List Nvidia Graphic Card Capabilities and Features on Windows (From Command Prompt)

C:\Program Files\NVIDIA Corporation\NVSMI>nvidia-smi Sun Nov 24 13:35:47 2019 +—————————————————————————–+ | NVIDIA-SMI 441.22 Driver Version: 441.22 CUDA Version: 10.2 | |——————————-+———————-+———————-+ | GPU Name TCC/WDDM | Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | |===============================+======================+======================| | 0 GeForce GTX 950M WDDM | 00000000:01:00.0 Off | N/A […]

How to Get Numeric Year, Month, Day from a Date in Oracle PL/SQL

Use the Oracle PL/SQL “Extract” function to extract the Year, Month, Day into separate columns for sorting/grouping: <pre> select    EXTRACT(YEAR FROM Creation_Date) as Year,    EXTRACT(MONTH FROM Creation_Date) as Month,    EXTRACT(DAY FROM Creation_Date) as Day,    Creation_Date from PO.PO_HEADERS_INTERFACE  POI </pre>

How to format a date in Oracle PL/SQL

Date fields in Oracle hold the time, but by default, the time is not displayed. Below is a sample of how to format the date with time: <pre>    TO_CHAR(CREATION_DATE, 'YYYY-MM-DD HH24:MI:SS') as CREATION_DATE </pre> Example: <pre> select Creation_Date, TO_CHAR(CREATION_DATE, 'YYYY-MM-DD HH24:MI:SS') as CREATION_DATE_Fmt from PO.PO_HEADERS_ALL where Creation_Date is not null order by Creation_Date desc […]