Nvarchar and Nchar oracle db

NVARCHAR and NCHAR in oracle Oracle supports multiple charactersets at the same time through its use of the NLS* paramters. select * from nls_database_parameters where parameter in ('NLS_LENGTH_SEMANTICS', 'NLS_CHARACTERSET', 'NLS_NCHAR_CHARACTERSET'); There are two things to note The value of NLS_CHARACTERSET The value of NLS_NCHAR_CHARACTERSET on my system the values are the following NLS_NCHAR_CHARACTERSET = AL16UTF16 NLS_CHARACTERSET = WE8ISO8859P1 If you haven’t already guessed from the title of this article, NVARCHAR and NCHAR are two additional data types which behave similar to VARCHAR and CHAR....

May 27, 2022 · Tejaswi D Prakash

Initializing List with an array in Java

Initializing Lists Why is this List<Integer> a = new List<Integer>({1,2,3}) not possible? Simple workaround class ListInit { public static void main(String args[]){ List<Integer> a = Arrays.asList(1,2,3); } } but, Is it not possible to initialize a List with an array literal? It is! That means Arrays.asList() should work with an array literal. But the below doesn’t work. List<Integer> a = Arrays.asList({1,2,3}); Although this does with the ’new’ keyword. List<Integer> a = Arrays....

March 18, 2022 · Tejaswi D Prakash

Overview of Parametric Human Body Models

Problem with anthropometric data see: CAESAR and ANSUR II They all need to be licensed A good start to this would be check out the SMPL* body models first they have provided starter code for use with neural network libraries such as tensorflow/pytorch This blog post describes how to use the code related to these models Overview of SMPL* models and methods This is from one of their youtube videos :...

March 5, 2022 · Tejaswi D Prakash

Ray tracing in a weekend in python

From the book Raytracing in a weekend code adapted to python emacs configuration emacs (org-babel-do-load-languages 'org-babel-load-languages '((python . t))) (setq org-src-preserve-indentation t) helper functions from utilities import point3,color,ray,vec3 import math def dot(vec1, vec2): return (vec1.x * vec2.x + vec1.y * vec2.y + vec1.z * vec2.z ) import math def unit_vector(v): length = math.sqrt(v.x**2+ v.y**2+ v.z**2) return vec3(v.x/length, v.y/length, v.z/length) def ray_color(r): t = hit_sphere(point3(0,0, -1), 0.5, r) if( t > 0....

November 14, 2021 · Tejaswi D Prakash