lundi 3 janvier 2022

Can i do another website gift-code checker with python? [closed]

I want to do checker with python. Like there is a gift-code and I am interested its valid or not. I have tried many things watched many videos but does not help. I tried to get website link I want to check and create directory inside this directory open file were written code is valid or invalid

Thanks A Lot <3




I'm Facing Invalid Config with Google Indexing Api

Hello I recently created an educational blog but none of the published articles get indexed. This makes me to try using Google indexing API plugin but after I followed the documentation " all I got is "Invalid Config". Please, does it means something is missing?




Url path not changing when navigating back to previous page in flutter web

I am working on a flutter app. i have set up router in the app with named routes. on going to my home page it shows as locahost:1234/#/home. and the path is correct. but from there when a navigate back to previouse page it still showing the same path locahost:1234/#/home. the path url is not changing on navigating back. if any one has an idea? my router file is as follows:

  /* ADD REPOSITORY TO APP ROUTER */
  /* ADD REPOSITORY TO APP ROUTER */
  Repository repository;
  AppRouter() {
    repository = new Repository(apiService: ApiService());
  }

  Route generateRoute(RouteSettings settings) {
    switch (settings.name) {
      case "/":
        return MaterialPageRoute(
          settings: RouteSettings(name: '/'),
            builder: (_) => MultiBlocProvider(providers: [
                  BlocProvider<HomeCubit>(
                    create: (BuildContext context) {
                      return HomeCubit(repository: repository);
                    },
                  ),
                  BlocProvider<SearchCubit>(
                    create: (BuildContext context) =>
                        SearchCubit(repository: repository),
                  ),
                  BlocProvider<UserCubit>(
                    create: (BuildContext context) {
                      return UserCubit(repository: repository);
                    },
                  )
                ], child:userToken==null?SplashScreen():NavScreen()
                // SplashScreen()
                ));
                case "/getstarted":
                 return MaterialPageRoute(
           settings: RouteSettings(name: '/getstarted'),
            builder: (_) => BlocProvider(
                create: (BuildContext context) =>
                    ProfileCubit(repository: repository),
                child: OnboardingScreen()));
      //return MaterialPageRoute(builder: (_) => VideoDetailScreen());
      case "/register":
        return MaterialPageRoute(
           settings: RouteSettings(name: '/register'),
            builder: (_) => MultiBlocProvider(providers: [
                  BlocProvider<HomeCubit>(
                    create: (BuildContext context) {
                      return HomeCubit(repository: repository);
                    },
                  ),
                  BlocProvider<SearchCubit>(
                    create: (BuildContext context) =>
                        SearchCubit(repository: repository),
                  ),
                  BlocProvider<UserCubit>(
                    create: (BuildContext context) =>
                        UserCubit(repository: repository),
                  )
                ], child: RegisterScreen()));
      case '/home':
        return MaterialPageRoute(
           settings: RouteSettings(name: '/home'),
            builder: (_) => BlocProvider(
                create: (BuildContext context) =>
                    HomeCubit(repository: repository),
                child: NavScreen()));
      case '/signin':
        return MaterialPageRoute(
            builder: (_) => BlocProvider(
                create: (BuildContext context) =>
                    UserCubit(repository: repository),
                child: SigninScreen()),
                 settings: RouteSettings(name: '/signin'));
      default:
        return MaterialPageRoute(builder: (_) {
          return Scaffold(
            body: Center(
              child: Text('Error! No route Found...',
              style: TextStyle(color: Colors.white,fontWeight:FontWeight.bold),),
            ),
          );
        }
        );
    }
  }
}



dimanche 2 janvier 2022

Why Markdown is usually parsed in backend?

My impression is that Markdown can be parsed easily in Frontend, doing this also save server processing resources. But I have come across many web applications that parses Markdown in Backend instead, such as Gitlab, Github, FetLife.

What are the advantage for parsing Markdown in backend instead of Frontend?




samedi 1 janvier 2022

How to submit only inputs field that have disapaly: flex

Sorry if I formed the question in a wrong way, Imagine that I have inputs, some are visible(display:none) and some are not(display:flex). I can control between them using add ClassList with (display:flex).

The problem: The form is always submitted even though when I have the input fields changed to flex display and they are empty.

What I want to do: I want to check that the form is not submitted unless the active inputs (inputs with flex display) are filled.

HTML:

                    <div id="dvd" class="section dvd">
                        <div class="input-wrapper dvd-attribute">
                            <label for="" class="description">Please, Provide Disc Size(MB):</label>
                            <input type="text" required name="size" class="mySize" id="size">
                        </div>
                    </div>
                    <div id="book" class="section book">
                        <div class="input-wrapper book-attribute">
                            <label for="" class="description">Please, Provide The Book Weight:</label>
                            <input type="text" required name="weight" class="myWeight" id="weight">
                        
                        </div>
                    </div>
                    <div id="furniture" class="section furniture">
                        <div class="furniture-attribute">
                            <p class="askDimensions">Please, Provide Dimensions:</p>
                                <div class="input-wrapper">
                                    <label for="">Height: </label>
                                    <input type="text" required name="height" class="myHeight" id="height">
                                </div>
                                <div class="input-wrapper">
                                    <label for="">Width: </label>
                                    <input type="text" required name="width"  class="myWidth"  id="width">
                                </div>
                                <div class="input-wrapper">
                                    <label for="">Length: </label>
                                    <input type="text" required name="length" class="myLength" id="length">
                                </div>
                        </div>
                    </div>

SASS:

.section {

      align-items: center;
      width: 60%;
      height: 20vh;
      border: solid 2px;
      max-width: 100%;
      margin-bottom: 2rem;
      padding: 0 30px;
      display: none;

      .input-wrapper {
        margin: 0;
      }
    }

    
    .furniture {
      height: unset;
      .askDimensions {
        padding: 20px 0 50px;
        font-weight: 400;
      }
      .input-wrapper {
        margin-bottom: 1.5rem;
      }
    }
    .active {
      display: flex;
    }

JS:

document.addEventListener("DOMContentLoaded", () => {

document.querySelector(".mySwitcher").addEventListener("input", (e) => {

let selected = e.target;
if (selected.value.toLowerCase() == "dvd") {
  remove();
  document.getElementById("dvd").classList.add("active");
}
if (selected.value.toLowerCase() == "book") {
  remove();
  document.getElementById("book").classList.add("active");
}
if (selected.value.toLowerCase() == "furniture") {
  remove();
  document.getElementById("furniture").classList.add("active");
}

}); });

function remove() { document.querySelectorAll(".section, .section input").forEach((tag) => {

tag.value = " ";
tag.classList.remove("active");

}); }




I need to configure my site built in flutter

I need to configure my site built in flutter so that when I access base-url/app-ads.txt the contents of the file are shown. This is for setting up ads in apps. But I get the error below

response not found




vendredi 31 décembre 2021

Is there any way to host a WordPress website for free? Without any custom domain

I am looking for free hosting for my WordPress website which is currently running on local server.