Skip to main content

Posts

Free database for beginners for prototype online

For free online databases suitable for beginners in India, here are some reliable options that support SQL and work well for prototyping: Firebase Realtime Database / Firestore Firebase offers a limited free tier and is easy to set up for quick prototypes. It provides both SQL-like Firestore and NoSQL Realtime Database options. The free plan includes 1GB storage and basic analytics. Firebase Console Supabase Supabase is an open-source alternative to Firebase with a PostgreSQL backend, making it a solid choice for SQL beginners. The free tier provides up to 500MB of database space, unlimited API requests, and real-time capabilities. Supabase PlanetScale Based on MySQL, PlanetScale is great for beginners and offers a free plan with 5GB storage and a user-friendly interface. It’s especially suitable for scalable prototypes and integrates well with modern frameworks. PlanetScale ElephantSQL ElephantSQL offers a free tier for PostgreSQL databases with 20MB storage. It’s easy to use and prov
Recent posts

Move zeros to End

 Index Problem is we need to move all the zeros to the right and non-zeros to the left. Move Zeros to End Approaches we can follow are: 1st Approch :  1. Your approach of swapping each 0 element with the end ( j pointer) could work, but it requires some adjustments to handle the indices correctly. However, it’s less efficient than moving the non-zero elements to the front as it repeatedly swaps each 0 with elements toward the end, making it potentially  O ( n 2 ) O(n^2) O ( n 2 ) in the worst case due to unnecessary swaps. Here's a refined version of your approach to help clarify the issues and make it function correctly: Adjusted Code Using End-Pointer Swapping Initialize j to nums.size() - 1 (the last index). Traverse from the beginning, and for each 0 , swap it with nums[j] , then decrement j . However, keep in mind that this will cause the relative order of non-zero elements to change. class Solution { public:     void moveZeroes(vector<int>& nums) {         int

how to use .json file in react

 Reading a .json file in a React application is quite straightforward. Here are the steps to do it: Create a JSON file : First, create a JSON file with some data. For example, let’s name it data.json and place it in the src folder of your React project. { "users" : [ { "id" : 1 , "name" : "John Doe" } , { "id" : 2 , "name" : "Jane Smith" } ] } Import the JSON file : In your React component, import the JSON file. import React from 'react' ; import data from './data.json' ; const App = ( ) => { return ( < div > < h1 > User List </ h1 > < ul > {data.users.map(user => ( < li key = {user.id} > {user.name} </ li > ))} </ ul > </ div > ); }; export default App ; Run your React app : Start your React application using npm start or yarn start , and yo

How to get started with vim in linux

 Vim These contains all the quick questions for a user just starting with vim and respective links of solutions for those questions or satisfactory anwsers from community. this is a best list of websites that I found online.I arranged in an order.If you like then do like to comment. Questions vim Learning steps - Jorengarenar how to use vim editor – Complete Guide quick Vim Script Tutorial Start Learning vim By Quiz  -By Morzel vim-adventure a Game how to use vim editor – Complete Guide free book to learn vim  -By Steve Losh Book Name  :  Learn Vimscript the Hard Way How to execute file I'm editing in Vi(m) How can I constantly see the current filename in vim? customize your status bar get line number on status line" howto get copy paste  from system clipboard how can i automatically highlight or fix verb tenses IF any suggestions or opinions comment down quickly

find the sum of 3 numbers to find next term

This Blog post Describe How to your may find this algorithm else where too. In this Problem Algorithm: We are given a three digits of sequence after that,we need to find the next element in the array,for Example :- [0,2,4] By suming the previous Three Elements,means [0+2+4]=next_term Hence the next term in the array is 6.Now the array is [0,2,4,6]. Intution: Here are the few conditions return mod value of the following sequence. Every time return the sum of last three numbers. def find_nth_term (n) : mod = 10 ** 9 + 7 if n<= 3 : return sequence[n- 1 ] for i in range( 4 ,n+ 1 ): next_term=sequence[- 1 ]+sequence[- 2 ]+sequence[- 3 ]%mod sequence.append(next_term) return sequence[- 1 ] n=int(input()) #Ouput the nth term modulo (10**9+7) result=find_nth_term(n) print(result)

gradlew flutter

Error signing Expert PS C:\Users\Administrator\Documents\collarlink-1\android> .\gradlew signingReport FAILURE: Build failed with an exception. * Where: Build file 'C:\Users\Administrator\Documents\collarlink-1\android\app\build.gradle' line: 2 * What went wrong: An exception occurred applying plugin request [id: 'com.android.application'] > Failed to apply plugin 'com.android.internal.application'.    > Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.       Your current JDK is located in C:\Program Files\Java\jdk1.8.0_191\jre       You can try some of the following options:        - changing the IDE settings.        - changing the JAVA_HOME environment variable.        - changing `org.gradle.java.home` in `gradle.properties`. * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. * Get more help at https:/

how to make a google signin in flutter

 In this article I will describe how  add a simple google sign  button in your flutter project. Here the Steps to make a Google Signin: St go to your  flutter project folder and then run  Run   ./android/gradlew signingReport    Just Cool Down