Snippets Collections
/**
 *  Custom Translation woocommerce and wordpress only on the Frontend !!!
 */

add_action('after_setup_theme', 'register_frontend_translation_filters');

function register_frontend_translation_filters() {
    if (!is_admin()) {
        add_filter('gettext', 'translate_reply');
        add_filter('ngettext', 'translate_reply');
    }
}

function translate_reply($translated) {
    $translated = str_ireplace('Enter your e-mail', 'Введите ваш email', $translated);
    $translated = str_ireplace('Просмотр корзины', 'товар в корзине', $translated);
    $translated = str_ireplace('Filters', 'поиск и фильтр товаров', $translated);
    $translated = str_ireplace('Show', 'показать', $translated);
    $translated = str_ireplace('Cancel', 'отмена', $translated);
    return $translated;
}



/**
 *  Custom Translation only on the Frontend (exclude checkout - issue)
 */

add_action('after_setup_theme', 'register_frontend_translation_filters');

function register_frontend_translation_filters() {
    if (!is_admin()) {
        add_filter('gettext', 'translate_reply');
        add_filter('ngettext', 'translate_reply');
    }
}

function translate_reply($translated) {
    // Exclude translations on the WooCommerce checkout page
    if (function_exists('is_checkout') && is_checkout()) {
        return $translated;
    }

    // Translate other strings
    $translated = str_ireplace('Enter your e-mail', 'Введите ваш email', $translated);
    $translated = str_ireplace('Просмотр корзины', 'товар в корзине', $translated);
    $translated = str_ireplace('Filters', 'фильтр товаров', $translated);
    $translated = str_ireplace('Show', 'показать', $translated);
    $translated = str_ireplace('Cancel', 'отмена', $translated);
    $translated = str_ireplace('Размещение заказа', 'Оформить заказ', $translated);
    
    return $translated;
}
#include <stdio.h>

int main(void)
{
    int element[100];
    int number_element;
    
    
    printf("Input total number of elements required:\n");
    scanf("%d",&number_element);
    
    for(int i = 0; i < number_element; i++)
    {
       printf("Input element [%d]:\n",i); 
    }
    
    printf("\nBefore insertion:\n"); 
    
    for(int i = 0; i < number_element; i++)
    {
        scanf("%d",&element[i]);
        printf("Element [%d] is %d\n",i,element[i]); 
    }
    
    int new_value;
    int position;
    
    printf("\nInput a new value to insert:\n");
    scanf("%d",&new_value);
    printf("Input where to insert the value %d:\n",new_value);
    scanf("%d",&position);
    
    // Shift elements to make space for new value
    for(int i = number_element; i>position;i--)
    {
        element[i] = element[i-1];
    }
    
    // Insert new value at specified position
    element[position] = new_value;
    number_element ++;

    printf("After insertion:\n");

    for(int i = 0; i < number_element; i++)
    {
        scanf("%d",&element[i]);
        printf("Element [%d] is %d\n",i,element[i]);

        
    }
	return 0;
}
import i18n from "@/lang/index"

const tips = i18n.global.t('return') 
#include <stdio.h>

int main(void)
{
	int number;
	//uncomment to make it pass:
    printf("Input an odd number between 0 and 8: \n");
	scanf("%d", &number);
	switch (number)
	{
		case 1:
			{
				printf("User input ONE\n");
				break;
			}

		case 3:
			{
				printf("User input THREE\n");
				break;
			}

		case 5:
			{
				printf("User input FIVE\n");
				break;
			}

		case 7:
			{
				printf("User input SEVEN\n");
				break;
			}

		default:
			{
				printf("User input does not match ");
				printf("the requirements!\n\n");
				printf("Should be 1, 3, 5, or 7.\n");
				break;
			}
	}

	return 0;
}
internal final class TI_test23
{
    /// <summary>
    /// Class entry point. The system will call this method when a designated menu 
    /// is selected or when execution starts and this class is set as the startup class.
    /// </summary>
    /// <param name = "_args">The specified arguments.</param>
    public static void main(Args _args)
    {
        // create Advanced rule
        Name name = "test2";
        DimensionRule   DimensionRule;
        DimensionHierarchyView  DimensionHierarchyView;
        // get account structure 'SHC'
        select DimensionHierarchyView
            where DimensionHierarchyView.Name == curExt()
            && DimensionHierarchyView.UserLanguageId == xUserInfo::find().language;
        // create Advanced rule
        //DimensionRuleStorage newRuleStorage = DimensionRuleStorage::construct(name, name, DimensionHierarchyView.RecId);
        //newRuleStorage.save();

        //ttsbegin;
        //DimensionRule.initValue();
        //DimensionRule.Name = "test1";
        //DimensionRule.Description = "test1";
        //DimensionRule.AccountStructure = curExt();
        //DimensionRule.insert();
        //ttscommit;
        //DimensionAttribute dimensionAttribute = DimensionAttribute::findByName('MainAccount');
        //Info(name);
        //Info(strFmt("%1", DimensionHierarchyView.RecId));

        //DimensionRuleCriteria   DimensionRuleCriteria;
        //DimensionRule = DimensionRule::findByName(name, DimensionHierarchyView.RecId, NoYes::Yes);
        //Info(strFmt("%1", DimensionRule.RecId));

        //DimensionRuleCriteria.initValue();
        //DimensionRuleCriteria.DimensionAttribute = dimensionAttribute.RecId;
        //DimensionRuleCriteria.DimensionRule = DimensionRule.RecId;
        //DimensionRuleCriteria.RangeFrom = name;
        //DimensionRuleCriteria.RangeTo = name;
        ////DimensionRuleCriteria.WildCardString = DimensionCriteriaOperators::WildcardSQL; // 
        //DimensionRuleCriteria.insert();

        // 3
        LedgerAdvancedRuleStructureEntity   en;
        en.AccountRuleStructureName = "test3";
        en.Description = "test3";
        en.SegmentName01 = "BudgetCode";
        en.insert();
        // 2
        //boolean hierarchyCreated = DimensionHierarchyConstraint::createHierarchy(
        //    DimensionHierarchyType::AccountRuleStructure,
        //                name,
        //               name);
        //if(hierarchyCreated) Info("done");
        DimensionHierarchyConstraint d; 
        DimensionHierarchyType hierarchyType = DimensionHierarchyType::AccountRuleStructure;
        DimensionHierarchy activeDimensionHierarchy = DimensionHierarchy::findByTypeAndName(
                    hierarchyType,
                    name,
                    false,
                    true);
        Info(strFmt("%1", activeDimensionHierarchy.RecId));
        //activeDimensionHierarchy.onmo
        DimensionHierarchyConstraint::activateDraftHierarchy(5637172105);
        //DimensionRuleAppliedHierarchy

        DimensionHierarchyConstraintCriteria c;

    }

}
/*
class MK_Test2
{
    DimensionHierarchy dimHierarchy;
    DimensionConstraintTree dimConstraintTree;
    int dimLevelNum;

/// <summary>
/// Class entry point. The system will call this method when a designated menu
/// is selected or when execution starts and this class is set as the startup class.
/// </summary>
/// <param name = "_args">The specified arguments.</param>
    public static void main(Args _args)
    {
        MK_Test2 MK_Test2 = new MK_Test2();

        ttsBegin;

        MK_Test2.createHierarchy('MyHierarchy5', 'My hierarchy5');
        MK_Test2.addLevelToTree(5637145090, 'BudgetCode', 'BudgetCode', 1, '', ''); // BudgetCode
        //MK_Test2.addLevelToTree(5637145090, 'BudgetCode', 'BudgetCode', 1, '00500', '00700'); // BudgetCode

        ttsCommit;
    }

    //                          HierarchyName
    private void createHierarchy(HierarchyName _name, Description _description)
    {
        dimHierarchy.initValue();
        dimHierarchy.Description = _description;
        dimHierarchy.DraftDescription = dimHierarchy.Description ;
        dimHierarchy.Name = _name;
        dimHierarchy.IsDraft = true;
        dimHierarchy.DraftName = dimHierarchy.Name;
        dimHierarchy.StructureType = DimensionHierarchyType::AccountRuleStructure;
        dimHierarchy.insert();

        dimConstraintTree.DimensionHierarchy = dimHierarchy.RecId;
        dimConstraintTree.insert();
    }

    //
    private RefRecId addLevelToTree(DimensionAttributeRecId _attribute, Name _name, Description _description,
        DimensionOrdinal _ordinal, DimensionFromValue _from, DimensionToValue _to, boolean _additionalCriteria = false)
    {
        DimensionConstraintNodeCriteria dimConstraintNodeCriteria;
        DimensionConstraintNode dimConstraintNode;
        DimensionHierarchyLevel dimHierarchyLevel;

        if (! _additionalCriteria)
        {
            // Insert level in tree
            // ---------------------------------
            dimLevelNum++;
            dimHierarchyLevel.clear();
            dimHierarchyLevel.DimensionHierarchy = dimHierarchy.RecId;
            dimHierarchyLevel.Level = dimLevelNum;
            dimHierarchyLevel.DimensionAttribute = _attribute;
            dimHierarchyLevel.insert();
        }

        // Add range node to level
        // ------------------------
        dimConstraintNode.clear();
        dimConstraintNode.Description = _description;
        dimConstraintNode.DimensionConstraintTree = dimConstraintTree.RecId;
        dimConstraintNode.DimensionHierarchyLevel = dimHierarchyLevel.RecId;
        dimConstraintNode.IsOptional = false;
        dimConstraintNode.Name = _name;
        dimConstraintNode.Ordinal = _ordinal;
        //dimConstraintNode.ParentConstraintNode = _parentLevelId;
        dimConstraintNode.insert();

        // Add criteria to node
        dimConstraintNodeCriteria.clear();
        dimConstraintNodeCriteria.Ordinal = 1;
        dimConstraintNodeCriteria.DimensionConstraintNode = dimConstraintNode.RecId;

        if (_from || _to)
        {
            dimConstraintNodeCriteria.IsFromOpen = false;
            dimConstraintNodeCriteria.IsToOpen = false;
            dimConstraintNodeCriteria.RangeFrom = _from;
            dimConstraintNodeCriteria.RangeTo = _to;
        }
        else
        {
            dimConstraintNodeCriteria.WildCardString = '%';
            dimConstraintNodeCriteria.IsFromOpen = true;
            dimConstraintNodeCriteria.IsToOpen = true;
        }

        dimConstraintNodeCriteria.insert();
        return dimConstraintNode.RecId;
    }

}
*/
import { useEffect, useState } from "react";
import { useSupabaseClient } from "@supabase/auth-helpers-react";
import { HeadingLink, MinimalPage, PageHeading, Spinner } from "ui";
import type { Database } from "../../../types";
import dayjs from "dayjs";

const ShiftTable = () => {
  const [usersOnShift, setUsersOnShift] = useState<
    Array<{
      user: string;
      shift_start: string | undefined;
      image: string | undefined;
      fullName: string;
    }>
  >([]);
  const [loading, setLoading] = useState(true);
  const [error, setError] = useState("");
  const supabaseClient = useSupabaseClient<Database>();

  useEffect(() => {
    const fetchUsersOnShift = async () => {
      setLoading(true);
      try {
        const { data: usersData, error: usersError } = await supabaseClient
          .from("UserLastWorkedOn")
          .select("shift_start, user, users_view (email, raw_user_meta_data)")
          .not("shift_start", "is", null);

        if (usersError) {
          setError(usersError.message ?? "Failed to fetch user shift data");
          console.error(usersError);
        }

        const mappedUsers = usersData?.map((user) => {
          const userMetaData = Array.isArray(user.users_view)
            ? user.users_view[0].raw_user_meta_data
            : user.users_view?.raw_user_meta_data;
          const fullName = userMetaData
            ? userMetaData["full_name"] ?? "No Name Provided"
            : "No Name Provided";
          const image = userMetaData ? userMetaData["avatar_url"] : undefined;

          return {
            shift_start: user.shift_start
              ? dayjs(user.shift_start).format("DD-MM-YYYY | HH:mm")
              : undefined,
            user: fullName,
            image: image,
            fullName: fullName,
          };
        });

        setUsersOnShift(mappedUsers ?? []);
      } catch (err) {
        setError("Failed to fetch user shift data");
        console.error(err);
      } finally {
        setLoading(false);
      }
    };

    fetchUsersOnShift();
  }, [supabaseClient]);

  const defaultAvatar = "/path_to_default_avatar.jpg"; // Replace with actual path to your default avatar image

  return (
    <MinimalPage
      pageTitle="Shift Table | Email Interface"
      pageDescription="Spot Ship Email Interface | Shift Table"
      commandPrompt
    >
      <div className="w-full">
        <HeadingLink icon="back" text="Home" href="/secure/home" />
      </div>
      <PageHeading text="Spot Ship Shift Table" />
      <div className="flex w-full flex-col">
        {loading ? (
          <Spinner />
        ) : error ? (
          <p className="text-red-500">Error: {error}</p>
        ) : usersOnShift.length ? (
          <table className="mt-4 min-w-full">
            <thead>
              <tr>
                <th className="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-500">
                  User Name
                </th>
                <th className="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-500">
                  Shift Started
                </th>
              </tr>
            </thead>
            <tbody className="divide-white-200 divide-x ">
              {usersOnShift.map((user, index) => (
                <tr key={index}>
                  <td className="text-white-500 flex items-center px-6 py-4 text-sm">
                    <img
                      src={user.image || defaultAvatar}
                      onError={(e) => (e.currentTarget.src = defaultAvatar)}
                      alt={user.fullName}
                      style={{
                        height: 30,
                        width: 30,
                        borderRadius: "50%",
                        marginRight: "0.5rem",
                      }}
                    />
                    {user.user}
                  </td>
                  <td className="text-white-500 px-6 py-4 text-sm">
                    {user.shift_start ?? "No Data"}
                  </td>
                </tr>
              ))}
            </tbody>
          </table>
        ) : (
          <p>No users are currently on shift</p>
        )}
      </div>
    </MinimalPage>
  );
};

export default ShiftTable;
# /system.yaml

repo: 'https://pkg-repo.blendos.co/'

impl: 'https://github.com/blend-os/tracks/raw/main'

track: 'plasma'

packages:
    - 'micro' # the best text editor out there ;)
    - 'firefox'
    - 'caddy'

services:
    - 'caddy'

package-repos:
    - name: 'chaotic-aur'
      repo-url: 'https://cdn-mirror.chaotic.cx/$repo/$arch'
(?ms)<classAccesses>.*?<apexClass>CEC_ServiceAppointmentSharingQueueable</apexClass>.*?</classAccesses>
import React, { useEffect, useState } from "react";
import { useSupabaseClient } from "@supabase/auth-helpers-react";
import { HeadingLink, MinimalPage, PageHeading, Spinner } from "ui";
import dayjs from "dayjs";
import { useRouter } from "next/router";
import { getFilename } from "@/functions";
import Link from "next/link";
import { CommandInterface } from "@/components";

type User = {
  shift_start: string | null;
  break_start: string | null;
  user: any;
  image: string;
  fullName: string;
  group: string | null;
  users_view?: {
    email?: string;
    raw_user_meta_data?: {
      avatar_url?: string;
      full_name?: string;
    };
  };
  email: string;
};

const ShiftTable = () => {
  const [usersOnShift, setUsersOnShift] = useState<User[]>([]);
  const [usersOffShift, setUsersOffShift] = useState<User[]>([]);
  const [loading, setLoading] = useState(true);
  const [error, setError] = useState("");
  const supabaseClient = useSupabaseClient();
  const router = useRouter();
  const nonUser = ["2b78abeb-133d-4248-8469-21620903cbb3"];

  useEffect(() => {
    const fetchUsers = async () => {
      setLoading(true);
      setError("");

      try {
        const { data: usersData, error: fetchError } = await supabaseClient
          .from("UserLastWorkedOn")
          .select(
            "shift_start, break_start, user, users_view ( raw_user_meta_data), email,  group"
          )
          .not("user", "eq", nonUser);

        if (fetchError) {
          setError(fetchError.message || "Failed to fetch user data.");
          return;
        }

        const mappedUsers = await Promise.all(
          usersData.map(async (user) => {
            const meta_data = user.users_view as any;
            const metaData = meta_data?.raw_user_meta_data;
            const image = metaData.avatar_url || "/avatar_url.png";
            const fullName = metaData.full_name || "No Name Provided";
            const filename = await getFilename(supabaseClient, user.email);
            return {
              shift_start: user.shift_start
                ? dayjs(user.shift_start).format("DD-MM-YYYY | HH:mm")
                : null,
              break_start: user.break_start
                ? dayjs(user.break_start).format("DD-MM-YYYY | HH:mm")
                : null,
              user: user.user,
              image: image,
              fullName: fullName,
              group: user.group || "No Group",
              email: filename ?? "",
            };
          })
        );

        setUsersOnShift(
          mappedUsers.filter((user) => user.shift_start !== null)
        );
        setUsersOffShift(
          mappedUsers.filter((user) => user.shift_start === null)
        );
      } catch (err: unknown) {
        if (err instanceof Error) {
          setError("Failed to fetch user data: " + err.message);
        } else {
          setError("Failed to fetch user data: An unknown error occurred.");
        }
      } finally {
        setLoading(false);
      }
    };

    fetchUsers();
  }, [supabaseClient]);
  const countUsersInGroups = (users: User[]): Record<string, number> => {
    return users.reduce<Record<string, number>>((acc, user) => {
      const groupName = user.group || "No Group";
      acc[groupName] = (acc[groupName] || 0) + 1;
      return acc;
    }, {});
  };

  const usersOnShiftCounts = countUsersInGroups(usersOnShift);
  const usersOffShiftCounts = countUsersInGroups(usersOffShift);

  return (
    <MinimalPage
      pageTitle="Shift Table | Email Interface"
      pageDescription="Spot Ship Email Interface | Shift Table"
      commandPrompt
    >
      <CommandInterface />
      <div className="hidden">
        <PageHeading text="Homepage" />
      </div>
      <div className="w-full pl-1 pt-1"></div>
      <div className="w-full">
        <HeadingLink icon="back" text="Home" href="/secure/home" />
        <PageHeading text="Spot Ship Shift Table" />
        <div className="mb-4 text-sm text-gray-400">
          {usersOnShift.length} user(s) currently on shift (
          {Object.entries(usersOnShiftCounts)
            .map(([group, count]) => `${group}: ${count}`)
            .join(", ")}
          ). Offline users: {usersOffShift.length} (
          {Object.entries(usersOffShiftCounts)
            .map(([group, count]) => `${group}: ${count}`)
            .join(", ")}
          ).
        </div>
        {loading ? (
          <Spinner />
        ) : error ? (
          <p className="text-red-500">{error}</p>
        ) : (
          <>
            {renderUsersGrid(
              "Data Analysts",
              usersOnShift.filter((user) => user.group === "Data Analyst"),
              true,
              false
            )}
            {renderUsersGrid(
              "Senior Data Analysts",
              usersOnShift.filter(
                (user) => user.group === "Senior Data Analyst"
              ),
              true,
              false
            )}
            {renderUsersGrid(
              "Data Team Managers",
              usersOnShift.filter((user) => user.group === "Data Team Manager"),
              true,
              false
            )}
            {renderUsersGrid(
              "Europe Team",
              usersOnShift.filter((user) => user.group === "Europe Team"),
              true,
              false
            )}
            {renderUsersGrid("Offline Users", usersOffShift, false, true)}
          </>
        )}
      </div>
    </MinimalPage>
  );

  function renderUsersGrid(
    title: string,
    users: User[],
    showShiftStart: boolean,
    dim: boolean
  ) {
    return (
      <div
        className={`overflow-hidden overflow-x-auto rounded-lg shadow ${
          dim ? "opacity-50" : ""
        }`}
      >
        <h2 className="text-center text-lg font-semibold">{title}</h2>
        <div className="grid grid-cols-4 gap-4 p-4">
          {users.map((user, index) => (
            <div
              key={index}
              className={`relative flex flex-col items-center justify-center rounded-lg bg-gray-800 p-4 ${
                dim ? "bg-opacity-50" : ""
              }`}
            >
              <div className="relative h-12 w-12">
                <img
                  src={user.image || "email-interface/public/avatar_url.png"}
                  alt={user.fullName}
                  className="h-full w-full rounded-full object-cover"
                />
                {user.shift_start && !user.break_start && (
                  <span className="absolute bottom-0 right-0 block h-5 w-5 rounded-full border-2 border-black bg-green-400" />
                )}
                {user.break_start && (
                  <span className="absolute bottom-0 right-0 block h-5 w-5 rounded-full border-2 border-black bg-yellow-400" />
                )}
                {!user.shift_start && (
                  <span className="absolute bottom-0 right-0 block h-5 w-5 rounded-full border-2 border-black bg-gray-400" />
                )}
              </div>
              {user.email && (
                <Link
                  href={`/secure/review/email?filename=${user.email}`}
                  passHref
                  rel="noopener noreferrer"
                  target="_blank"
                >
                  <button className="mt-2 rounded bg-blue-500 px-2 py-1 text-xs font-bold text-white hover:bg-blue-700">
                    Working on Email
                  </button>
                </Link>
              )}
              <p className="mt-2 text-sm text-white">{user.fullName}</p>
              {showShiftStart && user.shift_start && (
                <p className="text-xs text-gray-400">{user.shift_start}</p>
              )}
            </div>
          ))}
        </div>
      </div>
    );
  }
};

export default ShiftTable;
#include<stdio.h>

#include<stdlib.h>

int main()

{

 int r[100],i,n,Tst=0,initial,count=0;

printf("Enter the number of Requests\n");

scanf("%d",&n);

printf("Enter the Requests sequence\n");

 for(i=0;i<n;i++)

scanf("%d",&r[i]);
  printf("Enter initial head position\n");

scanf("%d",&initial);

 // logic for sstf disk scheduling

 /* loop will execute until all process is completed*/

 while(count!=n)

 {

 int min=1000,d,index;

 for(i=0;i<n;i++)

 {

 d=abs(r[i]-initial);

 if(min>d)

 {

 min=d;

 index=i;

 }

 }

Tst=Tst+min;

 initial=r[index];

 // 1000 is for max

 // you can use any number

 r[index]=1000;

 count++;

 }

printf("Total head movement is %d",Tst);

 return 0;
  }
#include<stdio.h>
#include<stdlib.h>
int main()
{
 int r[100],i,n,Tst=0,initial;
printf("Enter the number of Requests\n");
scanf("%d",&n);
printf("Enter the Requests sequence\n");
 for(i=0;i<n;i++)
scanf("%d",&r[i]);
printf("Enter initial head position\n");
scanf("%d",&initial);
 // logic for FCFS disk scheduling
 for(i=0;i<n;i++)
 {
Tst=Tst+abs(r[i]-initial);
 initial=r[i];
 }
printf("Total head moment / Total Seek time is %d",Tst);
 return 0;
  }
#include<stdio.h>

int main()

{

int i,j,n,a[50],frame[10],no,k,avail,count=0;

 printf("Enter the no of pages: ");

 scanf("%d",&n);

 printf("Enter the page no: ");

 for(i=1;i<=n;i++)

 scanf("%d",&a[i]);

 printf("Enter the no of page frames: ");

 scanf("%d",&no);

 for(i=0;i<no;i++)

 frame[i]= -1;

 j=0;

 printf("\tPAGE NO\t PAGE FRAMES\n");

 for(i=1;i<=n;i++)

 {

 printf("%d\t\t",a[i]);

 avail=0;

for(k=0;k<no;k++)

 if(frame[k]==a[i])

 avail=1;

 if (avail==0)

 {
   frame[j]=a[i];

 j=(j+1)%no;

 count++;

 for(k=0;k<no;k++)

 printf("%d\t",frame[k]);

 }

 printf("\n");

}

 printf("Page Fault Is %d",count);

 return 0;

}
#include<stdio.h>

#include<unistd.h>

#include<sys/types.h>

#include<sys/wait.h>

#include<stdlib.h>

int main()

{

 int pid;

pid=fork();

 if(pid<0)

 {

printf("\nfork failed\n");

 exit(-1);

 }

 else if(pid==0)

 {

printf("welcome to parent");

execlp("/bin/ls","ls","-1",NULL);

 }

 else

 {

 wait(NULL);

printf("\nchild complete\n");

 exit(0);
   }}
import java.util.*;

class Abhi  implements Comparator<Employee>{
 public int compare(Employee a, Employee b)
    {
 
        return a.fName.compareTo(b.fName);
    }


}
public class Main  {
   
    public static void main(String[] args)
    {
        Scanner sc=new Scanner(System.in);
        LinkedList<Employee> l=new LinkedList<>();
        System.out.println("Enter The Number of Employees");
        int n=sc.nextInt();
        sc.nextLine();
        for(int i=1;i<=n;i++)
        {
            System.out.println("Enter The "+i+" Employee Details:");
            System.out.println("Enter the Firstname");
            String s1=sc.nextLine();
            System.out.println("Enter theLastname");
            String s2=sc.nextLine();
            System.out.println("Enter the Mobile");
            String s3=sc.nextLine();
            System.out.println("Enter the Email");
            String s4=sc.nextLine();
            System.out.println("Enter the Address");
            String s5=sc.nextLine();
            Employee e=new Employee(s1,s2,s3,s4,s5);
            l.add(e);
            
        }
       Collections.sort(l,new Abhi()) ;
        System.out.println("Employee List:");
        System.out.format("%-15s %-15s %-15s %-30s %-15s\n","Firstname","Lastname","Mobile","Email","Address");
        for(Employee e: l)
        {
          
            e.display();
        }
    }
    
}
public class Employee{
    public String fName;
    private String lName;
    private String mNum;
    private String eMail;
    private String address;

    public Employee(String fName,String lName,String mNum,String eMail,String address)
    {
        this.fName=fName;
        this.lName=lName;
        this.mNum=mNum;
        this.eMail=eMail;
        this.address=address;
    }
    public String getfName(){
        return fName;
    }
    public void display()
    {
        
        System.out.format("%-15s %-15s %-15s %-30s %-15s\n",fName,lName,mNum,eMail,address);
    }
}




/**
     * //this was loosely adapted from a reddit post that I basically just used their general idea of
     * //1. Find the direction from evil avatar to avatar
     * //2. Convert this direction into a unit vector
     * //3. Move the avatar
     * Source: https://www.reddit.com/r/libgdx/comments/pm6545/how_to_make_an_enemy_follow_the_player/
     * //I also added some random movements from the evil avatar so that they don't
     * end up chasing the avatar too hard so that the user immediately loses and they rage quit :(
     */
//


    public void moveEvilAvatarTowardsPlayer() {
        int newX = evilX + Integer.compare(avatarX - evilX, 0);
        int newY = evilY + Integer.compare(avatarY - evilY, 0);

        if (newX == lastEvilX && newY == lastEvilY) {
            moveRandomly(); //make sure that it will just randomly move if they choose to stay in the same position
        } else if (canMoveTo(newX, newY)) {
            moveEvilAvatar(newX, newY);
        } else {
            moveRandomly();  //when in doubt just let this thing move randomly
        }
        lastEvilX = evilX;
        lastEvilY = evilY;
    }

    private void moveRandomly() {
        List<Point> possibleMoves = new ArrayList<>();
        for (int dx = -1; dx <= 1; dx++) {
            for (int dy = -1; dy <= 1; dy++) {
                if (dx == 0 && dy == 0) continue;
                int canx = evilX + dx;
                int cany = evilY + dy;
                if (canMoveTo(canx, cany)) {
                    possibleMoves.add(new Point(canx, cany));
                }
            }
        }

        if (!possibleMoves.isEmpty()) {
            Point randomMove = possibleMoves.get(random.nextInt(possibleMoves.size()));
            moveEvilAvatar(randomMove.x, randomMove.y);
        }
    }

    private boolean canMoveTo(int x, int y) {
        return x >= 0 && x < width && y >= 0 && y < height && tiles[x][y] == Tileset.FLOOR;
    }

    private void moveEvilAvatar(int newX, int newY) {
        tiles[evilX][evilY] = Tileset.FLOOR;
        evilX = newX;
        evilY = newY;
        tiles[evilX][evilY] = Tileset.EVIL;
    }

//in main 
//sets menu and HUD
                if (currentState == GameState.MENU) {
                    handleMenuChoice(currentKey);
                    needsRender = true;
                } else if (currentState == GameState.GAME_RUNNING) {
                    gameWorld.moveAvatar(currentKey);
                    gameWorld.moveEvilAvatarTowardsPlayer();
                    needsRender = true;
                }
            }
/* Import Google font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
body{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #4285F4;
}
.container{
  width: 450px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.container h2{
  font-weight: 600;
  font-size: 1.31rem;
  padding: 1rem 1.75rem;
  border-bottom: 1px solid #d4dbe5;
}
.wrapper{
  margin: 1.25rem 1.75rem;
}
.wrapper .input-box{
  position: relative;
}
.input-box input{
  width: 100%;
  height: 53px;
  color: #000;
  background: none;
  font-size: 1.06rem;
  font-weight: 500;
  border-radius: 4px;
  letter-spacing: 1.4px;
  border: 1px solid #aaa;
  padding: 0 2.85rem 0 1rem;
}
.input-box span{
  position: absolute;
  right: 13px;
  cursor: pointer;
  line-height: 53px;
  color: #707070;
}
.input-box span:hover{
  color: #4285F4!important;
}
.wrapper .pass-indicator{
  width: 100%;
  height: 4px;
  position: relative;
  background: #dfdfdf;
  margin-top: 0.75rem;
  border-radius: 25px;
}
.pass-indicator::before{
  position: absolute;
  content: "";
  height: 100%;
  width: 50%;
  border-radius: inherit;
  transition: width 0.3s ease;
}
.pass-indicator#weak::before{
  width: 20%;
  background: #E64A4A;
}
.pass-indicator#medium::before{
  width: 50%;
  background: #f1c80b;
}
.pass-indicator#strong::before{
  width: 100%;
  background: #4285F4;
}
.wrapper .pass-length{
  margin: 1.56rem 0 1.25rem;
}
.pass-length .details{
  display: flex;
  justify-content: space-between;
}
.pass-length input{
  width: 100%;
  height: 5px;
}
.pass-settings .options{
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.pass-settings .options .option{
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  width: calc(100% / 2);
}
.options .option:first-child{
  pointer-events: none;
}
.options .option:first-child input{
  opacity: 0.7;
}
.options .option input{
  height: 16px;
  width: 16px;
  cursor: pointer;
}
.options .option label{
  cursor: pointer;
  color: #4f4f4f;
  padding-left: 0.63rem;
}
.wrapper .generate-btn{
  width: 100%;
  color: #fff;
  border: none;
  outline: none;
  cursor: pointer;
  background: #4285F4;
  font-size: 1.06rem;
  padding: 0.94rem 0;
  border-radius: 5px;
  text-transform: uppercase;
  margin: 0.94rem 0 1.3rem;
}
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  min-height: 100vh;
  background: #1BB295;
}

form {
  padding: 25px;
  background: #fff;
  max-width: 500px;
  width: 100%;
  border-radius: 7px;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}

form h2 {
  font-size: 27px;
  text-align: center;
  margin: 0px 0 30px;
}

form .form-group {
  margin-bottom: 15px;
  position: relative;
}

form label {
  display: block;
  font-size: 15px;
  margin-bottom: 7px;
}

form input,
form select {
  height: 45px;
  padding: 10px;
  width: 100%;
  font-size: 15px;
  outline: none;
  background: #fff;
  border-radius: 3px;
  border: 1px solid #bfbfbf;
}

form input:focus,
form select:focus {
  border-color: #9a9a9a;
}

form input.error,
form select.error {
  border-color: #f91919;
  background: #f9f0f1;
}

form small {
  font-size: 14px;
  margin-top: 5px;
  display: block;
  color: #f91919;
}

form .password i {
  position: absolute;
  right: 0px;
  height: 45px;
  top: 28px;
  font-size: 13px;
  line-height: 45px;
  width: 45px;
  cursor: pointer;
  color: #939393;
  text-align: center;
}

.submit-btn {
  margin-top: 30px;
}

.submit-btn input {
  color: white;
  border: none;
  height: auto;
  font-size: 16px;
  padding: 13px 0;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  text-align: center;
  background: #000000;
  transition: 0.2s ease;
}

.submit-btn input:hover {
  background: #179b81;
}
// Selecting form and input elements
const form = document.querySelector("form");
const passwordInput = document.getElementById("password");
const passToggleBtn = document.getElementById("pass-toggle-btn");

// Function to display error messages
const showError = (field, errorText) => {
    field.classList.add("error");
    const errorElement = document.createElement("small");
    errorElement.classList.add("error-text");
    errorElement.innerText = errorText;
    field.closest(".form-group").appendChild(errorElement);
}

// Function to handle form submission
const handleFormData = (e) => {
    e.preventDefault();

    // Retrieving input elements
    const fullnameInput = document.getElementById("fullname");
    const emailInput = document.getElementById("email");
    const dateInput = document.getElementById("date");
    const genderInput = document.getElementById("gender");

    // Getting trimmed values from input fields
    const fullname = fullnameInput.value.trim();
    const email = emailInput.value.trim();
    const password = passwordInput.value.trim();
    const date = dateInput.value;
    const gender = genderInput.value;

    // Regular expression pattern for email validation
    const emailPattern = /^[^ ]+@[^ ]+\.[a-z]{2,3}$/;

    // Clearing previous error messages
    document.querySelectorAll(".form-group .error").forEach(field => field.classList.remove("error"));
    document.querySelectorAll(".error-text").forEach(errorText => errorText.remove());

    // Performing validation checks
    if (fullname === "") {
        showError(fullnameInput, "Enter your full name");
    }
    if (!emailPattern.test(email)) {
        showError(emailInput, "Enter a valid email address");
    }
    if (password === "") {
        showError(passwordInput, "Enter your password");
    }
    if (date === "") {
        showError(dateInput, "Select your date of birth");
    }
    if (gender === "") {
        showError(genderInput, "Select your gender");
    }

    // Checking for any remaining errors before form submission
    const errorInputs = document.querySelectorAll(".form-group .error");
    if (errorInputs.length > 0) return;

    // Submitting the form
    form.submit();
}

// Toggling password visibility
passToggleBtn.addEventListener('click', () => {
    passToggleBtn.className = passwordInput.type === "password" ? "fa-solid fa-eye-slash" : "fa-solid fa-eye";
    passwordInput.type = passwordInput.type === "password" ? "text" : "password";
});

// Handling form submission event
form.addEventListener("submit", handleFormData);
<!DOCTYPE html>
<!-- Website - www.codingnepalweb.com -->
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Login</title>
    <style>
        /* Styles for body to match the login page background color */
        body {
            background-color: #f5f5f5; /* Match the background color of the login page */
        }

        /* Your CSS styles here */
        /* Styles for modal */
        .modal {
            display: none;
            position: fixed;
            z-index: 1;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(183, 46, 46, 0.5);
        }

        .modal-content {
            background-color: #fefefe;
            margin: 15% auto;
            padding: 20px;
            border: 1px solid #888;
            width: 80%;
            max-width: 400px;
            text-align: center;
            border-radius: 10px;
        }

        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
        }

        .close:hover,
        .close:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }

        /* Button styles */
        .btn {
            background-color: #4CAF50; /* Green */
            border: none;
            color: white;
            padding: 10px 20px;
            text-align: center;
            text-decoration: none;
            display: inline-block;
            font-size: 16px;
            margin: 4px 2px;
            transition-duration: 0.4s;
            cursor: pointer;
            border-radius: 8px;
        }

        .btn:hover {
            background-color: #45a049; /* Darker Green */
        }

        /* Form styles */
        #myForm {
            margin: 0 auto;
            padding: 20px;
            max-width: 400px;
            text-align: center;
            background-color: #fff; /* Background color for the form */
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .form-group {
            margin-bottom: 20px;
        }

        label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
        }

        input[type="text"],
        input[type="password"] {
            width: 100%;
            padding: 10px;
            border-radius: 5px;
            border: 1px solid #ccc;
        }
    </style>
    <!-- Fontawesome CDN Link For Icons -->
    <link rel="stylesheet" href="loginpage.css" />
</head>
<body>
<form id="myForm" action="drop.html" onsubmit="return validateForm()">
    <h2>Login</h2>
    <div class="form-group username">
        <label for="username">Username</label>
        <input type="text" id="username" placeholder="Enter your username" required>
    </div>
    <div class="form-group password">
        <label for="password">Password</label>
        <input type="password" id="password" placeholder="Enter your password" required>
        <i id="pass-toggle-btn" class="fa-solid fa-eye"></i>
    </div>
    <div class="form-group submit-btn">
        <input type="submit" value="Login" class="styled-btn">
    </div>
    <div class="form-group">
        <button onclick="redirectToLoginPage()" class="btn">Sign up</button>
    </div>
</form>

<!-- Popup window for random password -->
<div id="myModal" class="modal">
  <div class="modal-content">
    <span class="close">&times;</span>
    <p>Suggested Password:</p>
    <p id="randomPassword"></p>
    <button id="useRandomPassword" class="btn">Use This Password</button>
    <button id="createOwnPassword" class="btn">Create Own Password</button>
    <button id="cancelPassword" class="btn">Cancel</button>
  </div>
</div>

<script>
    // JavaScript code for generating a suggested password
    function generateSuggestedPassword() {
        var length = 10; // Change the length of the suggested password as needed
        var charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+<>?"; // Define the character set for the suggested password
        var password = "";
        for (var i = 0; i < length; i++) {
            password += charset.charAt(Math.floor(Math.random() * charset.length));
        }
        return password;
    }

    // JavaScript code to display suggested password in popup window
    document.getElementById('password').addEventListener('click', function() {
        var suggestedPassword = generateSuggestedPassword();
        document.getElementById('randomPassword').textContent = suggestedPassword;
        document.getElementById('myModal').style.display = "block";
    });

    // Close the modal when the close button is clicked
    document.getElementsByClassName('close')[0].addEventListener('click', function() {
        document.getElementById('myModal').style.display = "none";
    });

    // Close the modal when clicked outside of the modal content
    window.onclick = function(event) {
        var modal = document.getElementById('myModal');
        if (event.target == modal) {
            modal.style.display = "none";
        }
    };

    // Use the random password when the "Use This Password" button is clicked
    document.getElementById('useRandomPassword').addEventListener('click', function() {
        var suggestedPassword = document.getElementById('randomPassword').textContent;
        document.getElementById('password').value = suggestedPassword;
        document.getElementById('myModal').style.display = "none";
    });

    // Redirect to index.html when the "Create Own Password" button is clicked
    document.getElementById('createOwnPassword').addEventListener('click', function() {
        window.location.href = "index.html";
    });

    // Cancel and close the modal when the "Cancel" button is clicked
    document.getElementById('cancelPassword').addEventListener('click', function() {
        document.getElementById('myModal').style.display = "none";
    });

    // Redirect to loginpage.html when the "Login" button is clicked
    function redirectToLoginPage() {
        window.location.href = "signup.html";
    }

    // Form validation function
    function validateForm() {
        var form = document.getElementById('myForm');
        if (!form.checkValidity()) {
            // If form is invalid, prevent form submission
            event.preventDefault();
            event.stopPropagation();
        }
        form.classList.add('was-validated');
        return form.checkValidity();
    }
</script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Form Validation in HTML | </title>
    <style>
        /* Your CSS styles here */
        /* Styles for modal */
        .modal {
            display: none;
            position: fixed;
            z-index: 1;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(183, 46, 46, 0.5);
        }

        .modal-content {
            background-color: #fefefe;
            margin: 15% auto;
            padding: 20px;
            border: 1px solid #888;
            width: 80%;
            max-width: 400px;
            text-align: center;
            border-radius: 10px;
        }

        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
        }

        .close:hover,
        .close:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }

        /* Button styles */
        .btn {
            background-color: #4CAF50; /* Green */
            border: none;
            color: white;
            padding: 10px 20px;
            text-align: center;
            text-decoration: none;
            display: inline-block;
            font-size: 16px;
            margin: 4px 2px;
            transition-duration: 0.4s;
            cursor: pointer;
            border-radius: 8px;
        }

        .btn:hover {
            background-color: #45a049; /* Darker Green */
        }
    </style>
    <!-- Fontawesome CDN Link For Icons -->
    <link rel="stylesheet" href="loginpage.css" />
</head>
<body>
<form id="myForm" action="drop.html" onsubmit="return validateForm()">
    <h2>Form Validation</h2>
    <div class="form-group fullname">
        <label for="fullname">Full Name</label>
        <input type="text" id="fullname" placeholder="Enter your full name" required>
    </div>
    <div class="form-group email">
        <label for="email">Email Address</label>
        <input type="email" id="email" placeholder="Enter your email address" required>
    </div>
    <div class="form-group password">
        <label for="password">Password</label>
        <input type="password" id="password" placeholder="Click here to generate a password" required>
        <i id="pass-toggle-btn" class="fa-solid fa-eye"></i>
    </div>
    <div class="form-group date">
        <label for="date">Birth Date</label>
        <input type="date" id="date" placeholder="Select your date" required>
    </div>
    <div class="form-group gender">
        <label for="gender">Gender</label>
        <select id="gender" required>
            <option value="" selected disabled>Select your gender</option>
            <option value="Male">Male</option>
            <option value="Female">Female</option>
            <option value="Other">Other</option>
        </select>
    </div>
    <div class="form-group submit-btn">
        <input type="submit" value="Submit" class="styled-btn">
    </div>
    <div class="form-group">
        <button onclick="redirectToSignup()" class="btn">Login</button>
    </div>
</form>

<!-- Popup window for random password -->
<div id="myModal" class="modal">
  <div class="modal-content">
    <span class="close">&times;</span>
    <p>Suggested Password:</p>
    <p id="randomPassword"></p>
    <button id="useRandomPassword" class="btn">Use This Password</button>
    <a href="index.html" class="btn" id="createOwnPassword">Create Own Password</a>
    
    <button id="cancelPassword" class="btn">Cancel</button>
  </div>
</div>

<script>
    // JavaScript code for generating a suggested password
    function generateSuggestedPassword() {
        var length = 10; // Change the length of the suggested password as needed
        var charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+<>?"; // Define the character set for the suggested password
        var password = "";
        for (var i = 0; i < length; i++) {
            password += charset.charAt(Math.floor(Math.random() * charset.length));
        }
        return password;
    }

    // JavaScript code to display suggested password in popup window
    document.getElementById('password').addEventListener('click', function() {
        var suggestedPassword = generateSuggestedPassword();
        document.getElementById('randomPassword').textContent = suggestedPassword;
        document.getElementById('myModal').style.display = "block";
    });

    // Close the modal when the close button is clicked
    document.getElementsByClassName('close')[0].addEventListener('click', function() {
        document.getElementById('myModal').style.display = "none";
    });

    // Close the modal when clicked outside of the modal content
    window.onclick = function(event) {
        var modal = document.getElementById('myModal');
        if (event.target == modal) {
            modal.style.display = "none";
        }
    };

    // Use the random password when the "Use This Password" button is clicked
    document.getElementById('useRandomPassword').addEventListener('click', function() {
        var suggestedPassword = document.getElementById('randomPassword').textContent;
        document.getElementById('password').value = suggestedPassword;
        document.getElementById('myModal').style.display = "none";
    });

    // Redirect to signup.html when the "Login" button is clicked
    function redirectToSignup() {
        window.location.href = "loginpage.html";
    }

    // Cancel and close the modal when the "Cancel" button is clicked
    document.getElementById('cancelPassword').addEventListener('click', function() {
        document.getElementById('myModal').style.display = "none";
    });

    // Form validation function
    function validateForm() {
        var form = document.getElementById('myForm');
        if (!form.checkValidity()) {
            // If form is invalid, prevent form submission
            event.preventDefault();
            event.stopPropagation();
        }
        form.classList.add('was-validated');
        return form.checkValidity();
    }
</script>
</body>
</html>
List<PermissionSetAssignment> psAssignmentsToRemove = [SELECT Id 
                                                       FROM PermissionSetAssignment 
                                                       WHERE PermissionSetGroup.DeveloperName = 'CEC_JTAC_Engineer'
                                                       AND Assignee.IsActive = FALSE];
System.debug('Permission Set Assignment #: ' + psAssignmentsToRemove.size()); // Confirm # of users it will be removed from
Integer errorCounter = 0;
Database.DeleteResult[] deletedPSAssignments = Database.delete(psAssignmentsToRemove, false);
for (Database.DeleteResult result : deletedPSAssignments) {
    if (!result.isSuccess()) {
        errorCounter++;
    }
}
System.debug('Assignments not deleted: ' + errorCounter);
%%[
var @link_CatExpert, @link_CatExpert_MX, @link_CatExpert_GB
set @link_Language = AttributeValue(Language__c)
set @link_CatExpert_MX = "https://www.cat.com/en_US/by-industry/electric-power/electric-power-industries/energy-as-a-service/contact-your-dealer.html"
set @link_CatExpert_ROW = "https://www.cat.com/en_US/by-industry/electric-power/electric-power-industries/energy-as-a-service/contact-your-dealer.html"
set @link_CatExpert = Iif(@link_Language == "_MX", @link_CatExpert_MX, @link_CatExpert_ROW)
]%%
 public static void main(String[] args) {
        System.out.println("Try programiz.pro");
      int[] arr = {1,2,3,4,5};
      
      int indexToRemove = 2;
      
      int[] newArray = new int[arr.length-1];
      
      System.arraycopy(arr,0, newArray, 0,indexToRemove );
        System.arraycopy(arr,indexToRemove+1, newArray,indexToRemove,  arr.length - indexToRemove -1);
        
         System.out.println(Arrays.toString(newArray));
    }
---------------
    ArrayList<Integer> arr = new ArrayList<Integer>();
     arr.add(1);
      arr.add(2);
       arr.add(3);
        arr.add(4);
         arr.add(5);
         
         int indexToRemove = 3;
         
          arr.remove(elementToRemove);
          
          for(int num : arr){
              System.out.println(" "+ num);
          }
<!DOCTYPE html>
<html lang="ja">
 <head>
    <script async src="https://xxxxx/liquidekyc.js"></script>
    <title>申込フォーム</title>
  </head>
  <body>
    <h1>新規申込</h1>
    <form id="applicant-form">
      <div>
        <label for="last_name">姓</label>
        <input type="text" id="last_name" name="last_name" />
      </div>
      <div>
        <label for="first_name">名</label>
        <input type="text" id="first_name" name="first_name" />
      </div>
      ・・・
    </form>
    <script>
     ・・・
      function handleSubmit(e) {
       ・・・
        const data = new FormData(applicantForm);
        const params = JSON.stringify(Object.fromEntries(data));
        LIQUIDEKYC.startKYC(params)
       ・・・
      }
    </script>
  </body>
</html>
			CODE:400
			MESSAGE:Unable to create extras param, because of: 
Currency SOS not allowed for using as store currency. Use one of: DZD,ARS,AUD,BDT,BOB,BRL,GBP,CAD,CLP,CNY,COP,CRC,CZK,DKK,EGP,EUR,GTQ,HNL,HKD,HUF,ISK,INR,IDR,ILS,JPY,KES,KRW,MOP,MYR,MXN,NZD,NIO,NGN,NOK,PKR,PYG,PEN,PHP,PLN,QAR,RON,RUB,SAR,SGD,ZAR,SEK,CHF,TWD,THB,TRY,AED,UAH,USD,UYU,VEF,VND 
	 

	    <html>

	        <head>

	            <meta charset="utf-8">

	            <link rel="stylesheet" href="css/style.css">

	            <link href="https://fonts.googleapis.com/css?family=Karla" rel="stylesheet">

	            <title>slide image tutorial</title>

	        </head>

	        <body>

	        <h1>Auto - Image Slider HTML and CSS</h1>

	        <div class="slider-frame">

	            <div class="slide-images">

	                    <div class="img-container">

	                        <img src="image/image 1.jpg">

	                    </div>

	                    <div class="img-container">

	                        <img src="image/image 2.jpg">

	                    </div>

	                    <div class="img-container">

	                        <img src="image/image 3.jpg">

	                    </div>

	            </div>

	        </div>

	        </body>

	    </html>
Looking to break into the world of cryptocurrency exchange platforms? Addus Technologies has the perfect solution for you with our Binance clone script. Our script is the key to unlocking your own exchange platform that is secure, customizable, and user-friendly. With features that rival the industry leader, Binance, you can launch your own exchange and start trading digital assets in no time. Take the leap into the exciting world of cryptocurrency trading - bookmark this page now and begin your journey towards financial success!

Get Free Demo: https://www.addustechnologies.com/binance-clone-script
column_name <- "my_col"
value <- 0
dplyr::mutate(df, !!rlang::sym(column_name) := value)
sudo dpkg --configure -a
apt purge libreoffice-base libreoffice-core

dpkg -l "libreoffice" | grep "^ii"

sudo dpkg --configure -a

sudo apt-get install -f
$UpperCase=@('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z')
$LowerCase=@('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z')
$Numbers=@('1','2','3','4','5','6','7','8','9','0')
$Symbols=@('!','@','$','?','<','>','*','&')
label {
      font-family: $Josef;
      font-size: 1.5rem;
      line-height: 5.2rem;
      position: absolute;
      left: 22px;
      color: $black;
      z-index: 1;
      transition: transform .15s ease-out, font-size .15s ease-out;
    }

    &.focused {
      label {
        top: 0px;
        transform: translateY(5%);
        line-height: 1.5rem;
        font-size: 1.2rem;
        color: $black;
      }
    }
@"C:\temp4\database\01_plano_execucao_GFF-261.sql";
In case anyone else has a similar issue, I got the same error message when using a personal Microsoft account, just like OP.

So, if you are using a personal account in a registered Azure Active Directory(AAD) app, that type isn't Personal Microsoft accounts only or Accounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts (e.g., Skype, Xbox) you will get this error. Also, you need to use the correct endpoint to avoid errors.

The main problem is our account type. As a personal account, there are some restrictions to access one drive files. These restrictions are:

You can only use Oauth2 Code Flow or Oauth2 Token Flow. Both are interactive approaches. [1][2]
Your application registered in AAD needs to be Personal Microsoft accounts only or Accounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox) and each one have a different endpoint to acquire the access token (That you can see clicking on endpoint button, near the delete app button in app page). [3]
Enable these delegated permissions to your application registered in AAD: Files.Read, Files.Read.All, Files.ReadWrite, and Files.ReadWrite.All.
With these restrictions in mind, you can set up a workflow in Postman following these two steps(I'm using endpoints of Personal Microsoft accounts only app type and using Oauth2 Code Flow):

Important note: To use code flow, you need to enable Access tokens in Implicit grant and hybrid flows on Authentication ADD app sidebar menu.

Aquire access token:
https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize?client_id=YOUR_CLIENT_ID&response_type=token&redirect_uri=ONE_OF_REGISTERED_REDIRECT_URI&scope=Files.Read Files.Read.All Files.ReadWrite Files.ReadWrite.All
 Save
After you fill in your information on Postman's request, I recommend using a browser and network inspection to log in with a Microsoft account and permit the app. You are getting the access token via network inspection.

List one drive root files:
https://graph.microsoft.com/v1.0/me/drive/root/children
Add a new header:
Authorization
With value:
Bearer ACCESS_TOKE_OF_STEP_1
 Save
In my angular application, due to this interactive way restriction to access one drive files, I changed my authentication method to use Microsoft Authentication Library(MSAL) to avoid every time that need to send an API request open a popup window to authenticate a valid Microsoft account.

import numpy as np
import pandas as pd
import statsmodels.api as sm
from statsmodels.formula.api import ols

A=[10,12,13,11,10,14,15,13]
B=[9,11,10,12,13]
C=[11,12,15,14,12,13]
All_scores=A+B+C
print(All_scores)

company_name=(['A']*len(A)+['B']*len(B)+['C']*len(C))
print(company_name)

df=pd.DataFrame({'company':company_name, 'output':All_scores})
print(df)

model=ols('output~company',data=df).fit()
anova_table1=sm.stats.anova_lm(model,typ=1)
print(anova_table1)

p_val= 0.212944

if p_val>0.05:
    print('Accept H0')
else:
    print('Reject H0')
import numpy as np
import pandas as pd
import statsmodels.api as sm
from statsmodels.formula.api import ols

y=(18,15,15,17,17,16,14,14,13,16,15,14)
print(y)

v=('A','A','A','A','B','B','B','B','C','C','C','C')
print(v)

c=('I','II','III','IV','I','II','III','IV','I','II','III','IV')
print(c)

dict = {'Yield':y,'Variety':v,'Chemist':c}
print(dict)

twd = pd.DataFrame(dict)
print(twd)

model=ols('Yield~Variety+Chemist',data=twd).fit()
anova_two_able=sm.stats.anova_lm(model,typ=2)
anova_two_able
import numpy as np
import pandas as pd
from scipy import stats

df=pd.read_excel("C:/Users/vishw/OneDrive/Desktop/Book.xlsx")
df

f,p = stats.f_oneway(df['A'],df['B'],df['C'])
f,p

if p>0.05:
    print('Accept H0')
else:
    print('Reject H0')
ID tokens
ID tokens are passed to websites and native clients. ID tokens contain profile information about a user. An ID token is bound to a specific combination of user and client. ID tokens are considered valid until their expiry. Usually, a web application matches a user's session lifetime in the application to the lifetime of the ID token issued for the user. You can adjust the lifetime of an ID token to control how often the web application expires the application session, and how often it requires the user to be re-authenticated with the Microsoft identity platform (either silently or interactively).
{
  "name": "com.[company-name].[package-name]",
  "version": "1.2.3",
  "displayName": "Package Example",
  "description": "This is an example package",
  "unity": "2019.1",
  "unityRelease": "0b5",
  "documentationUrl": "https://example.com/",
  "changelogUrl": "https://example.com/changelog.html",
  "licensesUrl": "https://example.com/licensing.html",
  "dependencies": {
    "com.[company-name].some-package": "1.0.0",
    "com.[company-name].other-package": "2.0.0"
 },
 "keywords": [
    "keyword1",
    "keyword2",
    "keyword3"
  ],
  "author": {
    "name": "Unity",
    "email": "unity@example.com",
    "url": "https://www.unity3d.com"
  }
}

result = None
result = app.acquire_token_silent(config["scope"], account=None)

if not result:
    logging.info("No suitable token exists in cache. Let's get a new one from AAD.")
    result = app.acquire_token_for_client(scopes=config["scope"])
Token lifetime
Refresh tokens have a longer lifetime than access tokens. The default lifetime for the refresh tokens is 24 hours for single page apps and 90 days for all other scenarios
#include <stdio.h>
#include <stdlib.h>

int mutex = 1, full = 0, empty = 3, x = 0;

void wait(int *s)
{
   (*s)--;
}

void signal(int *s)
{
   (*s)++;
}

void producer()
{
   wait(&mutex);
   if (full == empty)
   {
      printf("Buffer is full\n");
      signal(&mutex);
      return;
   }
   empty--;
   full++;
   x++;
   printf("Producer produces the item %d\n", x);
   signal(&mutex);
}

void consumer()
{
   wait(&mutex);
   if (full == 0)
   {
      printf("Buffer is empty\n");
      signal(&mutex);
      return;
   }
   full--;
   empty++;
   printf("Consumer consumes item %d\n", x);
   x--;
   signal(&mutex);
}

int main()
{
   int n;

   printf("\n 1.Producer  \n 2.Consumer \n 3.Exit");
   while (1)
   {
      printf("\n Enter your choice:");
      scanf("%d", &n);
      switch (n)
      {
      case 1:
         if ((mutex == 1) && (empty != 0))
            producer();
         else
            printf("Buffer is full\n");
         break;
      case 2:
         if ((mutex == 1) && (full != 0))
            consumer();
         else
            printf("Buffer is empty\n");
         break;
      case 3:
         exit(0);
         break;
      }
   }
   return 0;
}
    public JedisCluster jedisCluster() {
        Set<HostAndPort> hostAndPorts = configModel.getNodes().stream().map(hp -> new HostAndPort(hp.getHost(), hp.getPort())).collect(toSet());
        if (!StringUtils.isEmpty(configModel.getPassword())) {
            return new JedisCluster(hostAndPorts, configModel.getConnectionTimeout(), configModel.getSoTimeout(),
                    configModel.getMaxAttempts(), configModel.getPassword(), configModel.getPoolConfig());
        }
        JedisCluster jedisCluster = new JedisCluster(hostAndPorts, configModel.getPoolConfig());
        log.info("jedisCluster {}", jedisCluster);
        return jedisCluster;
    }
star

Thu Apr 18 2024 15:17:47 GMT+0000 (Coordinated Universal Time)

@mastaklance

star

Thu Apr 18 2024 11:44:01 GMT+0000 (Coordinated Universal Time) https://artprojectgroup.es/tienes-infectada-tu-base-de-datos

@edujca

star

Thu Apr 18 2024 11:05:58 GMT+0000 (Coordinated Universal Time) https://codevalidator.aut.ac.nz/autmoodle1/mod/quiz/attempt.php?attempt

@meanaspotato #c

star

Thu Apr 18 2024 09:32:51 GMT+0000 (Coordinated Universal Time) https://www.jianshu.com/p/fffe291d7d3e

@adoin

star

Thu Apr 18 2024 09:15:20 GMT+0000 (Coordinated Universal Time) https://codevalidator.aut.ac.nz/autmoodle1/mod/quiz/attempt.php?attempt

@meanaspotato #c

star

Thu Apr 18 2024 09:12:19 GMT+0000 (Coordinated Universal Time)

@MinaTimo

star

Thu Apr 18 2024 09:10:45 GMT+0000 (Coordinated Universal Time)

@rafal_rydz

star

Thu Apr 18 2024 09:06:53 GMT+0000 (Coordinated Universal Time) https://blog.blendos.co/blendos-v4-alpha

@j3d1n00b

star

Thu Apr 18 2024 08:19:28 GMT+0000 (Coordinated Universal Time)

@kchan

star

Thu Apr 18 2024 07:29:38 GMT+0000 (Coordinated Universal Time)

@viinod07

star

Thu Apr 18 2024 07:28:25 GMT+0000 (Coordinated Universal Time)

@viinod07

star

Thu Apr 18 2024 07:27:28 GMT+0000 (Coordinated Universal Time)

@viinod07

star

Thu Apr 18 2024 07:25:59 GMT+0000 (Coordinated Universal Time)

@viinod07

star

Thu Apr 18 2024 07:01:31 GMT+0000 (Coordinated Universal Time)

@signup

star

Thu Apr 18 2024 05:18:32 GMT+0000 (Coordinated Universal Time)

@pineapple

star

Thu Apr 18 2024 03:56:40 GMT+0000 (Coordinated Universal Time)

@fori44w

star

Thu Apr 18 2024 03:55:34 GMT+0000 (Coordinated Universal Time)

@fori44w

star

Thu Apr 18 2024 03:55:04 GMT+0000 (Coordinated Universal Time)

@fori44w

star

Thu Apr 18 2024 03:54:41 GMT+0000 (Coordinated Universal Time)

@fori44w

star

Thu Apr 18 2024 03:53:09 GMT+0000 (Coordinated Universal Time)

@fori44w

star

Wed Apr 17 2024 22:48:43 GMT+0000 (Coordinated Universal Time) https://remagineai.com/

@remagineai #aicontentwriting #seo #blogging #copywriting #ai content creation

star

Wed Apr 17 2024 22:08:46 GMT+0000 (Coordinated Universal Time) https://editor.p5js.org/alkhasawneh/sketches/prtzYQ93-

@najeebemad #javascript

star

Wed Apr 17 2024 17:56:14 GMT+0000 (Coordinated Universal Time)

@kchan

star

Wed Apr 17 2024 16:39:20 GMT+0000 (Coordinated Universal Time)

@shirnunn

star

Wed Apr 17 2024 16:02:06 GMT+0000 (Coordinated Universal Time)

@Divya ##array

star

Wed Apr 17 2024 14:17:41 GMT+0000 (Coordinated Universal Time) https://liquidinc.asia/liquid-ekyc/

@isopet #javascript

star

Wed Apr 17 2024 13:42:55 GMT+0000 (Coordinated Universal Time) https://github.com/s-h-3-l-l/katoolin3

@j3d1n00b

star

Wed Apr 17 2024 13:20:50 GMT+0000 (Coordinated Universal Time) https://www.blockchainappfactory.com/zk-rollups-development

@zarazyana #zkrollup #zkrollupsdevelopment #zk #zkrollups #zeroknowledgerollups

star

Wed Apr 17 2024 11:40:35 GMT+0000 (Coordinated Universal Time) https://fbshops.ecwid.com/oauth/return?verification_token

@ahmed52

star

Wed Apr 17 2024 10:41:22 GMT+0000 (Coordinated Universal Time) https://tutorials-warehouse.blogspot.com/2023/01/blog-post.html?m

@_prathamgupta_

star

Tue Apr 16 2024 16:13:11 GMT+0000 (Coordinated Universal Time)

@vs #r

star

Tue Apr 16 2024 14:35:30 GMT+0000 (Coordinated Universal Time) https://phoenixnap.com/kb/fix-sub-process-usr-bin-dpkg-returned-error-code-1

@j3d1n00b

star

Tue Apr 16 2024 13:39:35 GMT+0000 (Coordinated Universal Time)

@ITProToday

star

Tue Apr 16 2024 12:14:06 GMT+0000 (Coordinated Universal Time)

@divyasoni23 #css

star

Tue Apr 16 2024 11:03:47 GMT+0000 (Coordinated Universal Time)

@hallancma #apex #oracleapex #plsql #javascript

star

Tue Apr 16 2024 10:52:55 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/46802055/tenant-does-not-have-a-spo-license

@fearless

star

Tue Apr 16 2024 10:26:29 GMT+0000 (Coordinated Universal Time)

@mrv

star

Tue Apr 16 2024 10:24:43 GMT+0000 (Coordinated Universal Time)

@mrv

star

Tue Apr 16 2024 10:21:49 GMT+0000 (Coordinated Universal Time)

@mrv

star

Tue Apr 16 2024 09:32:33 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/28360978/how-can-i-get-browser-scrollbar-width

@zaki

star

Tue Apr 16 2024 07:58:41 GMT+0000 (Coordinated Universal Time) https://learn.microsoft.com/en-us/entra/identity-platform/configurable-token-lifetimes

@fearless

star

Tue Apr 16 2024 06:21:46 GMT+0000 (Coordinated Universal Time) https://learn.microsoft.com/en-us/entra/identity-platform/scenario-daemon-app-configuration?tabs

@fearless

star

Tue Apr 16 2024 06:13:37 GMT+0000 (Coordinated Universal Time) https://docs.unity3d.com/Manual/upm-manifestPkg.html

@ZxDelt #json

star

Tue Apr 16 2024 05:27:00 GMT+0000 (Coordinated Universal Time) https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-daemon-app-python-acquire-token

@fearless

star

Tue Apr 16 2024 05:21:12 GMT+0000 (Coordinated Universal Time)

@jayzalavadiya #typescriptreact

star

Tue Apr 16 2024 05:10:56 GMT+0000 (Coordinated Universal Time) https://learn.microsoft.com/en-us/entra/identity-platform/refresh-tokens

@fearless

star

Tue Apr 16 2024 04:15:54 GMT+0000 (Coordinated Universal Time)

@prabhas

star

Tue Apr 16 2024 03:19:15 GMT+0000 (Coordinated Universal Time)

@manhmd

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension