Categories
Mastering Development

Generate a certificate request and submit to a CA using only .Net

I am trying to use only .Net code to create a certificate request and submit the request to our on premise Active Directory PKI certificate authority, and get a certificate back. I have a solution that has been working for a few years, but it uses CERTCLILib and CERTENROLLLib, and I would like to shed […]

Categories
Mastering Development

How to add default value in input text field

I bought a plugin ,the plugin is fine but I want to modify a feature ,but the support team seem too busy to help. What I’m going to do is add default value "+886" in the start of the text field.I tried add defaultvalue: "+886"in the code, but unfortunately not work. This problem has bothered […]

Categories
Mastering Development

Shader fails to draw entities?

The problem is that when I want to use the shader my objects are not rendered. I expected the output to be red entites. I have two basic shaders: #version 150 in vec2 attribute_position; out vec3 v_color; void main(void) { gl_Position = vec4(attribute_position, 0.0, 1.0); v_color = vec3(1.0, 0.0, 0.0); } and #version 150 in […]

Categories
Mastering Development

Column of array type doesn’t return from function PostgreSQL

I tried to create a function that returns nodes path from a graph. drop type if exists t_item_node cascade; create type t_item_node as (id uuid, depth numeric, weight_multiply numeric, source_path uuid[]); drop function if exists f_item_node_path_up; create or replace function f_item_node_path_up(item_node_init t_item_node[]) returns setof t_item_node as $$ begin return query WITH recursive item_path AS ( […]

Categories
Mastering Development

How to process uploaded images in new 5.4 version of Contact Form 7?

I am using Contact Form 7 (5.4) and CF7 Smart Grid Design Extension (4.10.0) in a submit form on my WordPress site to construct draft Custom Post Types. The original inspiration for this was this awesome SO post. The submission form has worked well and reliably for over a year, but with the new CF7 […]

Categories
Mastering Development

MongoDB $push in Array of Array Error: No value exists in scope for the shorthand property ‘elements’

I wish to add data into Elements but get error. How to solve this mongodb/typescript problem? Attempt 1 Error: No value exists in scope for the shorthand property ‘elements’. Either declare one or provide an initializer.ts(18004) Attempt 1 async add<T extends { id: string; parentID: string, elementNum: number, name: string, link: string}>(collectionName: string, args: T) […]

Categories
Mastering Development

D3 How to add rounded top border to a stacked bar chart

I have a project where I need to create a stacked bar chart. This bar chart needs to have a rounded border at the top. I have found some documentation on how to round the top border of bar chart. The example I followed can be found here: Rounded top corners for bar chart. It […]

Categories
Mastering Development

Search function unable to get correct item position

This is my homepage with the search funtion: public class Admin extends AppCompatActivity { ListView _admin_listview; Admin_Adapter AA; Homepage_ListView homepageListView; private final Handler handler = new Handler(); public static ArrayList<Homepage_ListView> UserArrayList = new ArrayList<>(); @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_admin); ActionBar actionBar = getSupportActionBar(); actionBar.setTitle("Admin Homepage"); _admin_listview = (ListView) findViewById(R.id.admin_listview); retrieveData(); doTheAutoRefresh(); AA […]

Categories
Mastering Development

MS Graph SDK How to Add/Update a Schema Extension property to a User object

I’m having real trouble finding any code examples in how to add a Schema Extension value against a User in Azure AD. So far I have successfully created my own schema extension, marked as ‘User’ TargetType, and updated the status as ‘Available’. This was all achieved through the MS Graph SDK Below is a screenshot […]

Categories
Mastering Development

Display data in Recyclerview from database file?

I have Quran Application which require to download a list of translations from server API to sdCard, the problem is that these files are db type files, when I download these files and click on selected item i can’t set selected file data to a recyclerview to show translation in it which is in other […]