Categories
CMS Mastering Development Wordpress

After adding widget the style is messing up

I add a widget area to a wordpress theme but the style is somehow not matching with html here is the image before adding widget after adding widget functions.php <?php //Adding the css and js files function gt_setup(){ wp_enqueue_style(‘google-fonts’,’https://fonts.googleapis.com/css?family=Roboto|Roboto+Condensed|Roboto+Slab’); wp_enqueue_style(‘font-awesome’,’https://use.fontawesome.com/releases/v5.1.0/css/all.css’); wp_enqueue_style(‘style’,get_stylesheet_uri()); // wp_enqueue_script($handle,$src,$deps,$ver,$in_footer); wp_enqueue_script(‘main’,get_theme_file_uri(‘/js/main.js’),NULL,’1.0′,true); } add_action(‘wp_enqueue_scripts’,’gt_setup’); //Adding theme support function gt_init(){ add_theme_support( ‘post-thumbnails’ ); add_theme_support(‘title-tag’); […]

Categories
Mastering Development

Send the file and other parameters in request body formdata

This is the postman collection of the API { “name”: “Send File”, “request”: { “method”: “POST”, “header”: [], “body”: { “mode”: “formdata”, “formdata”: [ { “key”: “file”, “description”: “csv or txt file”, “type”: “file”, “src”: “” }, { “key”: “api_key”, “value”: “replacewithyours”, “description”: “Your API Key, found in your account. (Required)”, “type”: “text” }, { […]

Categories
Mastering Development

Webpack: Set the path for my assets according to the entry name

Using webpack, I have a multiple page application which works with multiple entries. I have a project tree like this: — webpack.config.js — src/ — first/ — main.ts — helper.ts — main.css — index.html — second/ — main.ts — main.css — index.html — assets/ — myAsset1.png — myAsset2.png — myAsset3.png I wanted something tidy and […]

Categories
Mastering Development

Random error in Opengl for some reason in my include ssstream i am getting this error when i run: Unhandled exception at 0x005BA1BD

I believe this is some kind of random error thing I am getting only when I run it. I am including my shader files and main in the code below. I am getting a strange error in my include sstream and this it:Unhandled exception at 0x005BA1BD in jippy.cpp.exe: 0xC0000005: Access violation reading location 0xCCCCCCD0. occurred. […]

Categories
Mastering Development

Cannot read property ‘fromJSON’ of undefined while testing in Jest

while running jest i get the following error.I dont know why am i getting this error. TypeError: Cannot read property ‘fromJSON’ of undefined at Object. (node_modules/@grpc/proto-loader/node_modules/protobufjs/ext/descriptor/index.js:3:66) at Object. (node_modules/@grpc/proto-loader/build/src/index.js:23:20) Below is the tsconfig.json { “compilerOptions”: { “target”: “esnext”, “module”: “commonjs”, “outDir”: “dist”, “sourceMap”: true, “moduleResolution”: “node”, “declaration”: true, “experimentalDecorators”: true, “allowSyntheticDefaultImports”: true, /* Allow default […]

Categories
Mastering Development

Trying to understand a detour (hooking) function

Hi I’m trying to understand a function, it’s about Windows API hooking. I’m trying to hook LoadLibraryA to see if any cheats are trying to inject into my game. For that I’m trying to intercept any calls to LoadLibraryA. I tried to write comments to explain what I think is going on, but I’m unsure […]

Categories
Mastering Development

Is LLVM bitcast from vector of bool (i1) to i8, i16, etc. well defined?

In LLVM, can a value of type <8 x i1> be bitcasted to an i8? If so what is the expected bit order? The LLVM documentation on bitcast is not explicit on this. The claim it makes is The bitcast instruction converts value to type ty2. It is always a no-op cast because no bits […]

Categories
Mastering Development

Migrate webpack V3 to V4 on Angular V1 – SyntaxError: Unexpected token I in JSON at position 0 at JSON.parse

I am trying to upgrade an old project that uses Angular V1. I upgraded babel, webpack, and JQUERY. JQUERY was upgraded from version 2 to 3. On npm start, which is webpack-dev-server –open –config build/webpack.dev.js1 I get the error: angular.js:15570 SyntaxError: Unexpected token I in JSON at position 0 at JSON.parse (<anonymous>) at fromJson (angular.js:1476) […]

Categories
Mastering Development

How to grab a specific part of a page and Decode it

I am trying to grab a specific part of the following page then decode it so it outputs the Results but it only grabs part of it… Here is the code i am attempting to use to complete this task Goal <?php class JavaScriptUnpacker { private $unbaser; private $payload; private $symtab; private $radix; private $count; […]

Categories
CMS Mastering Development Wordpress

WordPress wp_enqueue_style and wp_enqueue_script not working

I was following a wp theme developement tutorial but somehow my wp_enqueue_style and wp_enqueue_script not working here is my code functions.php <?php //Adding the css and js files function gt_setup(){ wp_enqueue_style(‘google-fonts’,’https://fonts.googleapis.com/css?family=Roboto|Roboto+Condensed|Roboto+Slab’); wp_enqueue_style(‘font-awesome’,’https://use.fontawesome.com/releases/v5.1.0/css/all.css’); wp_enqueue_style(‘style’,get_stylesheet_uri()); // wp_enqueue_script($handle,$src,$deps,$ver,$in_footer); wp_enqueue_script(‘main’,get_theme_file_uri(‘/js/main.js’),NULL,’1.0′,true); } add_action(‘wp_enqueue_script’,’gt_setup’); ?> i have added within head in header.php and before body in footer.php here is my style.css […]