Categories
Game Creation Mastering Development

How to pass an argument with ref keyword to a local funtion/ how to work around it?

Unity 2019.3 I am writing a few extension methods to make my life a little bit easier, but this one is bogging me down. I am loading stuff with Unity’s Addressable system, and I would like use it by extension methods. I am passing in my variables (reference type & value type, doesn’t matter) to […]

Categories
Mastering Development

How to use the navigation drawer menu without loading it each time?

I’m trying to add a side menu to my application. The class signature of my menu activity is: public class MenuActivity extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener Once the user logged in, the first window he see is the main dashboard. The dashboard activity extends the menu activity in order to have the side menu: public class […]

Categories
Mastering Development

ESP32 Doesn’t see Wifi network while scanning?

I am trying to use ESP32 to scan networks. While my code running on ESP32-Wrover-kit works without problem and returns lots of networks, same code od ESP32 Wrover-IB doesn’t do that, it only returns one. What would be the reason that old ESP32 on kit works and new one doesn’t. New ESP32 datasheet: https://hr.mouser.com/datasheet/2/891/esp32-wrover-b_datasheet_en-1384674.pdf ESP32 […]

Categories
CMS Magento Mastering Development

eav_attribute_option and eav_attribute_option_value not getting updated after adding custom attribute to customer admin

Basically I have been trying to add custom attribute in customer admin using upgrade data and customer setup. But here I can see in my db that my new custom attribute have been added successfully in eav_attribute,customer_eav_attribute,eav_entity_attribute also I am able to see that attribute in customer/admin/edit form in account information tab where I wanted […]

Categories
Mastering Development

I don’t know how to use codeblocks win32 gui

I used win32 GUI and managed to make some sort of interface after some googling but i don’t know how to make a button do something or to make an integer get value from a textbox in the GUI. This is the main #include <windows.h> #include <commctrl.h> #include <stdio.h> #include “resource.h” HINSTANCE hInst; BOOL CALLBACK […]

Categories
Mastering Development

sleep methods hang the program threads in C pthreads

I created a C program with pthreads, and it works perfectly until I add any sort of sleep function, whether it’s be sleep() or usleep() or nanosleep(). Yes, before you ask, I know usleep() is deprecated and I have copied the correct usage of nanosleep() from another stackoferflow post, but even sleep() doesn’t work. The […]

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 widget area 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’ […]

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 widget area 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’ […]

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 widget area 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’ […]

Categories
Mastering Development

Same notifications is repeated with user after each exit from application

I use Service in my app to send Notifications to user after the user exits the application; it’s work but I have one problem after user exits from app every time he gets last notification received each time he enters and leaves, the same notice is repeated even if there is no new notice. This […]