ToCode
Kanalga Telegramโda oโtish
ืืืคืื ืงืฆืจืื ืืืชืื ืชืื ืืืช ืื ืื ืคืจืง
Ko'proq ko'rsatish1 418
Obunachilar
Ma'lumot yo'q24 soatlar
-17 kunlar
-430 kunlar
Postlar arxiv
1 417
ืืืฉ ืืืชืจ: ืงืืจืก Full Stack React
ืืืคืก ืื ืขืฉื ืืช ืื ืฉืื. ืืื ืืืื ืืื ืื ืืชืขืฉืืื.
ืจืืืงื ืืชืืืื ืืช ืืจืื ืืชืืจ ืกืคืจืื ืืืชืืืช ืงืืืคืื ื ืืืช ืขืื ืืคื ื ืฉืงืืืกืื ืืืืขื ื JavaScript ืืืื ืืชืืืืช ืืืจื ืืฉืชืืฉื ืืืชืื ืืืืกืก ืืืืืงืืื ืืื ืืืืืืจ ืงืืืคืื ื ืื. ืืืจ ืื ืืฉืืชื ืฉืืงืื ืกืคื ืฉื ืจืืืงื ืืื ืืืื ื ืืืงืืืชื ืขืืื ืงืืจืก.
ืืื ืื ืืืจ ืื ืืืืืงืืื ื ืจืื ืืื ืืขืืื ืืืืฉื ืื ืืืคืชืื ืจืืืงื ืฉืืื ืืฉืืจื ืืช ืืคืจืืืืืืจืง ืืชืืืื ืืงืืืกืื. ื ืืื, ืื ืื ืืฆืืืื ืืื ืืช ืคื ืืื ืืช ืื ืืืืคืฆืืืช ืฉื ืืชืื ืืืืืืงืืื ืืื ืื ืืฉืื ืฉืื ืืกืชืืจ ืืืืฉื ืืืจืจื ืืืชื ืืืงืืื ืงืืจืก ืืืฉ ืขื ืืชืื ืืืืืงืืช.
ืขืืจื ืขืื ืืื ืฉื ืื ืืืืืจืื ืืจืืืงื ืืืื ื ืฉืืช ืื ืฉืืื ืืืืืืงืืื ืื ืืคืฉืจ ืืืืืืจ ืืืืืงืืช ืืืื ืขืืจื ืืืชืื ืืืฉ ืื ืงืืืคืื ื ืื ืืื ืืขืฆื ืคืื ืงืฆืื (ืืชืื ื Hooks). ืืชืื ืื ืืคืฉืจ ืืื ืืชืืื ืืื ืืชืื ืืืช ืืืฉื ืืช ืืฉืืืืฉ ืืืืจ ืืงืื ืืืคืืื ืืืชืจ ืืื ืืืขืืืื ืื ืืื ืื ื ืืชืจื ืืจืืจื ืืื ื ืืืื ืืืจืกื ืืืฉื ื ืืกืคืช ืืงืืจืก ืจืืืงื.
ืืื ื ืฉื ืื ืืืืคืืช ืืจืื ืืืฉื ืฉืื ื ืฉืื ืืืงืืกืืกืื ืืืคืขื ืืื ื ืงืจืืช Server Components: ืืืืืืช ืืืชืื ืืคืืืงืฆืืืช Full Stack ืืืืืช ืืจืืืงื ืืืฉืจ ืงืืืคืื ื ืืืช ืืกืืืืืช ืืจืืฆืืช ืงืื ืืฆื ืฉืจืช ืืงืืืคืื ื ืืืช ืืืจืืช ืืจืืฆืืช ืงืื ืืืคืืคื, ืืืคืขืืื ืงืืืคืื ื ืืืช ืืกืืืืืช ืืจืืฆื ืื ืืฆื ืฉืจืช ืืื ืืืคืืคื. ืคืืฆืื ืื ืฉื ืกืืืืช ืืจืืฆื ืฉื ืืงืืืคืื ื ืืืช ืคืืชื ืืืื ืืืชืืช ืืืฉืืช ืขืืืจ ืกืคืจืื ืืื ืจืืืงื ืืืืคื ืืืชื, ืืขืืจืช ืืืงืืกืืกืื ืฉืกืืืื ืืืืืืื Next.JS ืืื ืืข ืืืจืืื ืืคืืชืื ืืืฉืืื Full Stack ืืืื. ืืชืืืื ืืืฉืื ืื ืกืืื ื ื AI ืืชืืืื ืืจืืืงื ืืืกืืืง ืืืืคืืืื ืฉื AI ืืืจืื ืืืื ื React, Next, Shadcn, Tailwind ื TypeScript. ืืื ืื ื ืืชืจื ืืจืืจื ืืื ืื ืื ื ืฆืจืืืื ืืืชืงืื ืขื ืจืื ืืืื.
ืื ื ืฉืื ืืืฉืืง ืืช ืงืืจืก React ืืืืฉ ืฉืงืืื ืืช ืืฉื:
Full Stack React
ืืงืืจืก ืืื ื ืืจืืื ืฉื ืืงืืจืก ืืงืืื ืืื ืคืืชืื ืืืคืก ืฉื ืื ืืื ืืื ืฉื ืงืจื ืจืืืงื ืืฆืืจื ื ืืื ื ืืืืืืื ืช ืืคืืืงืฆืืืช Full Stack. ืืงืืจืก ืชืืืื:
1. ืืื ืืืชืื ืืคืืืงืฆืืืช Full Stack ืขื React, Next, Tailwind, Shadcn ื TypeScript.
2. ืืื ืืืจืื ืืช ืืงืื ืืฆืืจื ืืืืื ืืืืชืจ ืืื ืฉืื ืืืืื ืืชืื ืื ืืฉืืืคืืืงืฆืื ืชืืื.
3. ืขืฉืจืืช ืชืื ืืืช ืืฉืืืืฉ ืืืืจ ืืงืื ืืฉืืืื ืงืื ืืืฆืื ื ืขื ืืืขืจืืช ืฉืืื.
4. ืืื ืจืืืงื ื Next ืขืืืืื ืืชืืช ืืืืกื ืืื ืืข ืืื ืฉืชืืืื ืืืฆืืจ ืืขืืืช ืืื ืืคืชืืจ ืืืชื.
5. ืืื ืืืืืช ืืืคืชืืจ ืืขืืืช ืืืฆืืขืื ืืืคืืืงืฆืืืช React ื Next.
ืื ื ืืืชื ืืื Next ืืื ืืืขืฉื ืืกื ืืื ืืฉืชืืฉืชื ื Next ืืื ืืืื ืืช ืืงืื ืกืคื ืฉื ืงืืืคืื ื ืืืช ืฆื-ืฉืจืช ืืงืืืคืื ื ืืืช ืฆื-ืืงืื. ืืคื ื ืืื ืืืื ืคืจืกืืชื ืืื ืฉืืืืืช ืื ืฉืืืื ืืืจ ืื ื React Router ืืืื ืกืคืง ืฉืื ืชืืื ืืืจื ืืืจืืืืช ืืื ืืช ืืืฉืืื Full Stack ืืจืืืงื ืืฉื ืื ืืงืจืืืืช. ืฆืจืื ืืืืื, ืื ืืชื ืืื ืื ืืคืืืงืฆืืืช Client Side ืืืื ืืจืืืงื ืืื ืืกืืจ ืืืงืืจืก ืขืืืื ืืืื ืืขืืืจ ืืื ืืืืจ ืืื ื ืืืื ืฉื ืืช ืจืืืงื ืขืฆืื ืืงืฆื ืืงืฆื ืืื ืืื ืืืฉืชืืฉ ื Next ืืื ืืืชืื ืืคืืืงืฆืืืช Client Side ืืืื.
ืื ืืชื ืื ืืืื ืืืชืจ ืืชื ืืืืืื ืืืจ ืืืชืืื ืืช ืืงืืจืก. ืื ืืชื ืื ืื ืืืื ืื ืื ืืืืื ืืืืื ืืช ืืฆืืื ืช ืืืฆืืจืฃ, ืืื ืืชื ืืืืฆืข ืืงืืจืก ืืืฉื ืื ืื ืืืื ืืื ืขืืืื ืืืื ืืชืืืื ืืืฆืื ืืืชื ืืชืงืืคืช ืืืขืืจ ืืงืจืืื ืืจืฉืืืช ืืงืืจืกืื ืืฉื React Old.
1 417
ืืื ืืืืืื ืืช ื timeout ืขื langchainrb
ืกืคืจืืืช langchainrb ืืื ืืกืื ืฉื langchain ื Ruby, ืจืง ืงืฆืช ืคืืืช ืืืื ืืืืงืืจ. ืืืช ืืืขืืืช ืฉื ืืืจืกืช ื Ruby ืืื timeout ืงืฆืจ ืืื, ืื ืฉืืืจื ืืฉืืืืชืืช ืืืืืฉื ืืฉืื ืกืื ืืืืจ ืขื ื'ืื ื ืคืจื.
ืืืืฉืง ืขืฆืื ืฉื langchainrb ืืืฉ ื ืื ืืืืืืื ืืืืชื ืืช ืืืืืืช ืืงืื ืชืืฆืื ืืชืืจ ืืืืืงื ืืฉืืขืืืจืื JSON Schema, ืืืืืจ ืงืื ืืื:
json_schema = {
type: "object",
properties: {
name: {
type: "string",
description: "Persons name"
},
age: {
type: "number",
description: "Persons age"
},
interests: {
type: "array",
items: {
type: "object",
properties: {
interest: {
type: "string",
description: "A topic of interest"
},
levelOfInterest: {
type: "number",
description: "A value between 0 and 100 of how interested the person is in this interest"
}
},
required: ["interest", "levelOfInterest"],
additionalProperties: false
},
minItems: 1,
maxItems: 3,
description: "A list of the person's interests"
}
},
required: ["name", "age", "interests"],
additionalProperties: false
}
parser = Langchain::OutputParsers::StructuredOutputParser.from_json_schema(json_schema)
prompt = Langchain::Prompt::PromptTemplate.new(template: "Generate details of a fictional character.\n{format_instructions}\nCharacter description: {description}", input_variables: ["description", "format_instructions"])
prompt_text = prompt.format(description: "Korean chemistry student", format_instructions: parser.get_format_instructions)
llm = Langchain::LLM::OpenAI.new(api_key: ENV["OPENAI_API_KEY"])
llm_response = llm.chat(messages: [{role: "user", content: prompt_text}]).completion
parser.parse(llm_response)
ืืืขืื ืืืืืื ืืื ื timeouts ืืงืฆืจืื ืืื ืืืืืืื ืืขืืืื ืขื Gemini. ืืืขืื ืืื ืืงืื ืืื ืืงืื ืืกืคืจืื:
def http_post(url, params)
http = Net::HTTP.new(url.hostname, url.port)
http.use_ssl = url.scheme == "https"
http.set_debug_output(Langchain.logger) if Langchain.logger.debug?
request = Net::HTTP::Post.new(url)
request.content_type = "application/json"
request.body = params.to_json
response = http.request(request)
JSON.parse(response.body)
end
ืฉืืืจืื ืืชืงืฉืืจืช ืขื ื'ืืื ื ืืื ืืืื ืืคืฉืจืืช ืืืืืจืช timeout.
ืื ืื ืงืืื ืื ืคืชืืชื Issue ืืื ืื ื ืืืจืชื ืฉืื ืื ื ืืจืืื ืืืืกืคืชื ืืช ืืงืืืฅ config/initializers/langchain_patch.rb ืขื ืืชืืื ืืื:
require 'langchain/llm/google_gemini'
* This module adds a dedicated \read_timeout\ attribute to the class. *
module GoogleGeminiTimeoutAttribute
# This one line creates two methods for us:
# 1. \read_timeout\ (the getter, to read the value)
# 2. \read_timeout=\ (the setter, to assign the value)
# It manages the underlying instance variable \@read_timeout\.
attr_accessor :read_timeout
# We still patch http_post to use the value from our new attribute.
def http_post(url, params)
http = Net::HTTP.new(url.hostname, url.port)
http.use_ssl = url.scheme == "https"
http.set_debug_output(Langchain.logger) if Langchain.logger.debug?
http.read_timeout = @read_timeout if @read_timeout
request = Net::HTTP::Post.new(url)
request.content_type = "application/json"
request.body = params.to_json
response = http.request(request)
JSON.parse(response.body)
end
end
Langchain::LLM::GoogleGemini.prepend(GoogleGeminiTimeoutAttribute)
ืฉืืจืช ืืืคืชื ืืื:
http.read_timeout = @read_timeout if @read_timeout
ืืืจืืจ ืฉืืื ื ืืื ืื ืื ืืืืชื ืฆืจืื ืืฉืืคื ืืช ืื ืืืืืืฉ ืฉื http_post ืืื ืื ืืคืฉืจ ืืงืื ืืื ืืืืื.
ืืขืืฉืื ืืคืฉืจ ืืืืืืจ ืืช ื timeout ืืฆืืจื ืคืฉืืื ืขื ืืื ืืชืืืช ืืขืจื ืืืืืืงื:
llm = Langchain::LLM::GoogleGemini.new(
api_key: Rails.application.credentials.google_api_key,
default_options: { chat_model: 'gemini-2.5-pro-preview-05-06' },
)1 417
ืงืืืคืื ื ืืืช ืฆื ืฉืจืช ืืืืขื ื React Router
ืืจืืข ืฉ Vercel ืืงืื ืืช ืืืืืื ืืคืืชืื ืฉื ืจืืืงื ืืื ืืจืืจ ืืื ืืืืืืื ืืื ืืกืชืืื ืืฉ React Router ืชืืืฅ ืืืืืืง ืืช ืืคืขืจ. ืงืฉื ืืืื ืืคืืชืื ืืืืช ื ืื ืืืจื ืืืืงืจื ืฉืื ื ื ืื ืืืืืื ืฉื ืืกืคืจืื ืฉืขืืืจื ืืชื ืืื ื. ืืืืฉื ืฉื ืจืืื ืคืืืจื ืก ืืืืจื ืืืจื ืืืชื ืฉ Server Components ืื ืืกืคืืง ืืฆืืืื ืืืืืื ืขื ืจืืืงืก (ืื ืจืืืงื ืจืืืืจ 7) ืืื ืืื ืฆืืจื.
ืืื ืืงืจื ืื ื ืฉืื ืืจืืืช ืฉืื ืืฉืชื ื ืืฉืืืงืืกืืกืื ืืชืืืฉืจ. ืื ืจืง ืืืืืฉ ืืช ืืืฉืืืืช ืฉื ืืื ืช ืฉืืืช ืืขืืืื ื Full Stack-ืืช ืฉื ืจืืืงื ืืืื: ืงืืืคืื ื ืืืช ืฆื ืฉืจืช ืฉืืืคืืช ืืืืข ืืงืืืคืื ื ืืืช ืฆื ืืงืื ืืืจืืืืช ืขื ืืืื ืืจืงืืืืืืช.
ืืกืงืจื ืื ืื ืจืืคื ืืืืื ืฉืืืืจืื ืืจืืืงื ืจืืืืจ ืคืจืกืื:
https://github.com/ryanflorence/rsc-movies
ืืชืืงืืืช routes/home ืื ื ืืืฆื ืืช ื Server Component ืฉื ืืฃ ืืืืช:
import { MovieGrid } from "../components/movie-grid.tsx";
import { MovieTile } from "../components/movie-tile.tsx";
export const shouldRevalidate = () => false;
export async function ServerComponent() {
let featuredMovieIds = [32932, 23643, 29915, 30895, 31472, 33411];
return (
<>
<title>RR RSC Movies</title>
<MovieGrid>
{featuredMovieIds.map((id: number) => (
<MovieTile key={id} id={id} />
))}
</MovieGrid>
</>
);
}
ืื components/add-to-favorites ืืืืื ืืงืืืคืื ื ืืช ืฆื ืืงืื:
"use client";
import { useFormStatus } from "react-dom";
export function AddToFavoritesButton({ isLiked }: { isLiked: boolean }) {
let { pending } = useFormStatus();
return (
<button
type="submit"
onClick={event => {
if (pending) event.preventDefault();
}}
className="font-instrumentSans font-semibold rounded-xl w-full text-xl border-[2px] py-2 px-5 group"
>
<span className="group-hover:scale-105 group-active:scale-100 inline-block transition-transform duration-100">
{pending
? isLiked
? "Removing..."
: "Adding..."
: isLiked
? "Remove from favorites"
: "Add to favorites"}
</span>
</button>
);
}
ื .ื. ืืืืื ืืื ืื ื ืืกืืื ืขืืืื ืขื ืงืืจืก ืจืืืงื ืืืฉ ืืืชืจ ืฉืืชืืกืก ืขื ืชืื ืืช ื Client/Server ืืืืื ืืช ืืกืืืง ืืืืคืืืื ืฉื React / Next / TypeScript / Shadcn / Tailwind. ืื ื ืืืื ืฉืืืืชื ืืืืื ืืืืชืขืงืฉืืช ืฉื ืจืืืงื ืจืืืืจ ืขื ืชืื ืืช ื loaders ืฉืืื ืืืืื ืฉืื ืฉืืกืืฃ ืื ืืฆืืืื ืืืชืงืื ืืืฉืื ืืช ื loaders ืขื ืืื ืืชืฉืชืืช ืืจืืืงืืืช. ืขืืืื ืืกืืืจ ืขื ืืงืืจืก ืืขืื ืืฉืืืื ืืืื ืื ืจืื ืืืจื ืืื.1 417
ืืืค ื ืงืกื - ืืืืืจืื displayName ืืคื ื ื memo
ืืช ืืืืืื ืืืืช ืื ื ืืืื ืฉืื ื ืื ืืืืจื ืืืื ืืื ืืคืจืกื ืืคื ืชืฆืคืืช. ืืงืื ืจืืืงื ืฆื-ืืงืื ืจืืื ื vite ืืืืชื ืจืืื ืืืชืื:
import { memo } from 'react';
const NewMessage = memo(() => {
return <p>demo</p>;
})
NewMessage.displayName = "foo";
export default NewMessage;
ืืืงืืืคืื ื ืื ืืืื ืืคืืชืื ืืืคืืขื ืขื ืืฉื foo. ืืื ืืจืื ืืืงืจืื ืืืื ืืืืืจ ืฉื ืืช ืฉื ืืงืืืคืื ื ืื ืืืงืืจื ืืื ืฉืืื ืชืืงืจื ืืฉื ืืืืืชื ืฉืื ืืื ืืืืื _c ืขื ืชืืกืคืช Memo.
ืืฉืืขืืจืชื ืืช ืืืชื ืงืื ื next ืื ืื ืขืื ืืฉื ืืงืืืคืื ื ืื ืฉืืืคืืข ืืืื ืืคืืชืื ืืื _c. ืืคืืชืจืื ืืื ืืืืืืจ ืืช ื displayName ืขื ืืงืืืคืื ื ืื ืืคื ื ืฉืืคืขืืืื memo ืืืืคื ืืื:
'use client';
import { memo } from 'react';
const NewMessage = () => {
return <p>demo</p>;
}
NewMessage.displayName = 'foo';
export default memo(NewMessage);
ื AI ืืืฉืื ืืช ืื ืื ืื ื build ืฉื next, ืืื ืื ื ืื ืืืื ืฉืืื ืฆืืืง. ืื ืืฉ ืืื ืจืขืืื ืืช ืื ืชืชืืืืฉื ืืฉืชืฃ ืืชืืืืืช.1 417
ืื ืืืจ ืื ืฆืจืื State Management Library ืืจืืืงื?
ืืืงืฉืชื ื lovable ืืฉืืคื ืืช ืืืจืืก. ืืื ืืื ืืก ืืช ืจืืืงื ืจืืืืจ, ืืช ืจืืืงื ืงืืืจื, ืืช ืืืืืืืื ื ืืืืื ืืื ืืช Shadnc. ืืื ืื ืืืืง ืืช ืืืฉืืง ืืงืืืคืื ื ืืืช ืืฆืืจื ืืกืืืจืช ืืืคืจืื ืืช ืืืืืืงื ืืงืืืฅ hook ื ืคืจื. ืื ื ืื ืืืงืฉืชื ืฉืื ืืืจ ืืื.
ืขื ืกืคืจืืืช ื ืืืื ืกืืืื ืืื ืืืืชืจ. ืื v0 ืื ืืฉื ืฉืื ืืฉืื, ืืื base44 ืืืืชืจ ืขื ืื. ืื ื ืืื ืื ื ืื ืืืื ืฉืฆืจืื ืืืืื ื AI ืืืืื ืกืคืจืืืช ืืืฉืชืืฉ ืืื ืืฉ ืืื ื ืงืืื. ืืื ืืชืื ืืืช ืฉืื ืื ื ืจืืืื ืืืื:
1. ืกืืืื ืืืืืืื ืื ืืื ืืจื ืงืื ืืงืกื (ืืืืืื React Query) ืืฆืืจื ืฉืงืืคื. ืืคืฉืจ ืืืืื ืฉืืืงืื ืืืืง ืืช ืืืคืืืงืฆืื ื slices ืืกืื ืื ืจืืืืงืก ืื ืื ื ืืืืงืื ืืืชื ื"ืชืืืื ืืืจืืืช ืืืืืืืืื" ืืฉืื ืชืืื ืืืจืืืช ืื ืืื ืขื ืืื ืกืคืจืื ื ืคืจืืช.
2. ืืื ื ืฉืืื ืฉื ืงืืืคืื ื ืื ืจืืฉืืช ืฉืื ืืืช ืกืืืื ืืืขืืืจื ืืืชื ืืชืืจ prop ืืืืืื, ืืืงืื ืขืฅ ืขืืืง ืฉื ืงืืืคืื ื ืืืช.
3. ืืกืชืืืืช ืืืืื ืืืชืจ ืขื ืงืื ืฆื ืฉืจืช ืืขืืืื ืืกืืืื ืืฉืืจืืช ืืงืืืคืื ื ืืืช ืืืืฆืขืืช Web Sockets ืื SSE.
4. ืืชืื ืืช ืืงืืืกืืช ืฉื ื ืงืกื - ืงืจืืืช ืืืืข ื DB ืืงืืืคืื ื ืืช ืฆื ืฉืจืช ืืืขืืจื ืืชืืจ prop ืืงืืืคืื ื ืืช ืฆื ืืงืื, ืฉืืืจื ืืืจื ืืฉืจืช ืขื Server Action ืืขืืืื ืกืืืื ืืงืืื ืืงืืืคืื ื ืืืช.
ืืื ืืชืื? ืขืืืื ืืฉืชืืฉืื ืืจืืืืงืก ืื ืกืคืจืืืช ืืืืืช? ืื ืื ืืฉืื ืืฉืืืข ืืชืืืืืช ืืืืื ืฆืจืืื ืืื ื ืืกืืชื ืคืชืจืื ืืช ืืืจืื?
1 417
ืกืืืื ืืืืื ืจ GenAI ืืชืืื ืืืช ืืืืฉื
ืืชืืื ืืขืืจืชื ืืื ืืืืื ืจ ืจืืฉืื ืืืจื ืชืงืืคื ืืจืืื ืฉื ืืคืกืงื ืืืกืืจืช ืงืืืฆืช ืืืืื GenAI. ืงืฆืช ืืืคืชืขืชื ืืืืืช ืืื ืฉืื ืืืืืืื ืืืืืช ืืื ืฉืื ืฉืืืจ ืืฉืชืืฉืื ืืืื AI ืืคืืชืื.
ืืืืจื ื ืขื ืืื ืืฉืื AI ืืชืืืื ืืชืืืช ืืงืื ืืจืืื ื ืืกืคืจ ืืกืืจืืืืืช-
1. ืืจืืืชื ืฉืืงืื ืืคืจืืืงื ืฉืื ื ืืื ืืืง ืืืคืจืืืคื, ืืืื ืืจื ืืืช ืืงืื ืชืืฆืืืช ืืืืืช ืืืชืจ ืื AI ืืื ืืฉืคืจ ืืช ืืืืืช ืืงืื ืื ืืื ืืช ืืกืืจืช ืืืืืช ืืคืืชืื ืคืืฆ'ืจืื.
2. ืืืง ืืืืฉืชืชืคืื ืืืืืจื ืฉืื ืืกืืืื ืืืืืื ืืืืืช ืคืจืืืคื, ืืฉืื ืืฆืืืืื ืืืืืข ืืชืืฆืืืช ืืืืืช ืืขืืจืช ืืชืืืช ืืืคืืื ืืกืืืจ ืืคืจืืืงื ืืืคืืฆ'ืจ, ืืืขืืจืืช ื AI ืืื ืืฉืคืจ ืืช ืืืืคืืื ืืืกืืฃ ืืฉืืืชื ืืืคืืื ืืืืข ืืจืืช ืคืืจืื ืืืืืง ืืกืคืืง ืืืื ืื ื ืืชื ืื ื AI ืืืืฉ.
3. ืืจืืืชื ืืช Ask Mode ืฉื ืืื ืืคืืชืื ืืืืืฆืชื ืืืฉืชืืฉ ืื ืืื ืืืืื ืืืชืจ ืขื ืืคืจืืืงื ืืชืื ื Cursor ืื ื VS Code. ืืืืืื ืืื ืืฉืจืช ืฉืชื ืืืจืืช, ืื ื ืืชื ืื ื ื ืงืืืช ืืื ื ืืกืคืช ืขื ืืคืจืืืงื ืืื ืืื ืคืืืช ืืฉืื ืขืืืจ ืื ื ืืืืื ืืื ื AI ืงืืจื ืืช ืืคืจืืืงื ืฉืื ื. ืืจืื ืคืขืืื ืฉืืื ืืกืื ืฉืืืืช ืืืื ื Ask Mode ืืงืืืฅ Markdown (ืืืืืจ ืืืงืฉ ืื AI ืืกืื ืืฉืืืื ื) ืืื ืืคืฉืจ ืืฆืจืฃ ืืช ืืงืืืฅ ืืื ืืืงืฉืืช ืขืชืืืืืช.
ืืืชื ืื ืืกืืื ืฉืืืงืฆืืข ืฉืื ื ืขืืืจ ืืืคืื ืืฉืื ืื ื ืื ืืืืืื ืืื ืืจืื ืชืืืื ืืชืืืช ืงืื ืืขืชืื.
ืขืืฉืื ืืืื ืืืืฉื:
1. ืืืชื ืืขื ืืช ืืืื ืืืื ื ืจืื ืฉืืชื ืจืืฆืื ืืจืืืช ืขืื ืืืืืืืช ืืื ืืื ืชืืื ืื ื ืืืฉืื ืืช ืืืืืื ืจ ืืชืืจ ืคืืืฉื ืฉืืืขืืช.
2. ืฉืืืข ืืื ืืฆืื ืืืคืื ืืขืืืื ืขื AI ืขื ืคืจืืืงื ืงืืื ืืจื ืืืกืคืช ืคืืฆ'ืจ ืืืชืจ ืืืงืื: ื ืชืืื ืืืืกืืฃ ืืฃ ื ืืืชื ืืงืืืฆืช ืืืืื ื AI ืฉื ืืื ืืืืฉื ืืืืงืจ. ืื ื ืืงืืื ืฉืขื ืกืืฃ ืืฉืขื ืืืฃ ืืคืืื ืืืื ืืืืืืจ. ืืืคืืฉ ืืืื ืืืื ืืืืชื ืืื ืง.
3. ืืืกืืื ืืงืฉื ืืื - ืื ื ืืืื ืืฉืื ืืจืืืช ืืื ืืชื ืขืืืืื ืขื AI ืืชืื Cursor ืื VS Code. ืื ืืืืชื ืืชืืื (ืืื ืื ืื) ืืืชื ืืืื ืื ืฉืืืข ืืื ืืืฆืื 5-10 ืืงืืช ืืื ืืชื ืขืืืืื ืขื AI ืืจื ืคืืฆ'ืจ ืงืื ืืชืื ืื ืื ืชืื. ืืคืฉืจ ืืจื ืืฃ ืฆืืจ ืงืฉืจ ืคื ืืืชืจ.
1 417
ืืืงืจ ืืื ืขืื ืืืฉ ืืงืืช ืืชืืืืื ืืืืื ืจ ืขื ืืืื ืืงืืืื ืขื AI ืื ืืืื ืง
https://us06web.zoom.us/j/86295492018?pwd=7lGAenxpaXM7oe25PqcDzFkWrhNqpS.1
1 417
ืืืค npm - ืชืืื ืืืืืง ืืกืคืจื ืืืืืืช ืืืืืืื
ืื ืื ื ืืืืข ืื ืื ืืืืืง ืืืค ืื ืื ื ืจืง ืืืกืืฃ ืืื ืขืืืื, ืืื ืชืงืฉืืื ืจืืข ืื ืื ืืฉืื. ืฆ'ืืจืื ืืจืืงืกืื ืคืจืกื ืืชืืืืช ืืืืืฉ ืืช ืืืืฆื ืืื:
https://www.aikido.dev/blog/catching-a-rat-remote-access-trojian-rand-user-agent-supply-chain-compromise
ืืงืฆืจื ืืืฉืื ืืฆื ืืืืืช npm ืืฉื rand-user-agent ืฉืืืจ ืื ื ืชืืืช ืืื ืืืงื ืืขืืืื ืฉืื ืืื ืคืจืืฅ, ืืงื ืืช ืืืืงื ืืืชืืื ืืคืจืกื ืืืจืกืืืช "ืืืฉืืช" ืฉื ืืกืคืจืื ืฉืืืื ืกืืก ืืจืืืื ื. ืื ืฉืืจืืฅ ืืช ืืืชื ืืืจืกืืืช ืืืฉืืช ืืฆืืจื Web Scraping ืืืจืื ืืืืฉื ืฉืื ืขืฆืื ืืืคืื ืืืืืื ืขืืืจ ืืจืื ืืฉืืืื ืืืืื ืฉื ืืืชื ืืคืจืกื ืืืจืกืืืช ืืกืชืืจื.
ืืื ืืกืืื ืื ืืืฉืืืื ืืืื ืืืืืื:
1. ืืื ืืกืืื ืช ืืชืืจ "Deprecated"
2. ืืคื ืืชืืขืื ืืืืจืกื ืืืืจืื ื ืืืืจื ืืืืืช 2.0.82 ืืื ื npm ืืื ืืืจืกืืืช ืืืฉืืช ืืืชืจ.
3. ืืงืืฉืืจ ืืืืืืื ืืืืื ืืืฃ ืจืืง.
ืื ื ืืืืข ืฉืืชื ืืืจ ืืกืชืืืื ืขื ืกืืืื Deprecated ืืื ืืืืชื ืืืงืืื ืืืืื ืฉืืืจ ืื ื ืชืืืช, ืืื ืืกืชืืจ ืฉืืกืคืจ ืืืืจืกื ืืื ืื ืกืืื ืืืืจื ืงื: ืื ืกื ืืืืืืื ืฉื ืืคืจืืืงื (ืชืืื ืืฉ ืืื ืง ื npm) ืืชืจืื ืื ืืืืจืกื ืืื ืขืืื ืืช ืืื ืื ืชืืื ืืื ืฉืืชื ืจืืืื ื npm. ืืืืืื ืืืช ืืืืืื ืื ืืืืื ืก ืืจืฉืืืช ืืงืืืืืื ืืืจืืืช ืื ืืฉ ืชืืจื ืงืื ืืืฉ ืืืืจืกืืืช ืืืืจืื ืืช, ืื ืื ื'ืืช AI ืืืืืื ืืืจ ืืืชืื ืกืืื AI ืฉืืขืฉื ืืช ืื ืืฉืืืืื ืืื ืืืืืืืช ื package-lock.json.
1 417
ืืืขืื ืขื default scope ื Rails
ืืกืืคืืจ ืฉื ืืืื ืืื ืขื Rails ืื ืจืืืืก ืืื ืืื ืคืืกืืืื ื ืืืืคืฉืจืช ืืขืฆื ืืช ืืคืจืืืงื ืืื ืฉืจืืฆืื, ืืื ืงืื ืฉืืืืชืืช ืืจืืืืก ืืืื ืืืืืช ืืคืืืจ ืืื ืืจืื ืงืืฆืื. ืืื ืืกืืคืืจ ืืื ืื ืขื AI ืืืื ืืื ืคืืชืื ืืืืกืกื AI ืืืืืื ืืขืืืจ ืื ืืืคืชืืื ืขืฆืื ืื ืืืชืื ืงืื ื ืืื ืืืชืจ. ืืืืช ืื ืืืืื ืืช ืืืื ืืืืืืจ ืฉืืืจ ืืืืงืจ ืื ื ืืขืืืจ ืืืืื ืจ ืขื ืขืืืื ืขื ืืื AI ืืคืืชืื ืฉืืืืขื ืืืชืืืืื. ืืฉืื ืืจืืืช ืื ืืชืื ืฉื (ืืืื ืง ืืขืื ืืงืืืฆืช ืืืืจื ืืืืืฉื ืืืืงืจ ืื ืฉืชืฉืืื ืื ืืืื ืืืฉืื ืืื). ืขืืฉืื ื ืืืืจ ืืจืืืืก.
ื Rails ืืฉืืื ืืฉืืืฃ ืืืืข ืืืกืืก ืื ืชืื ืื ืื ื ืืฉืชืืฉ ืืฉืืืช ORM ืฉื ืงืจืืช Active Record. ืืืืืื ื ืืงื ืฉืชื ืืืืืืช, ืืืช ืฉื ืืืฆืจืื ืืืืช ืฉื ืงืืืืจืืืช, ืืืืืืช ืืืืฆืจืื ืืฉ ืขืืืืช ืืฉืงื. ืืืฃ ืืงืืืืจืื ืขืืื ื ืืืฆืื ืืช ืืืืฆืจืื ืืกืืืจืื ืืคื ืืฉืงื ืืืงืื ืืืืื.
ืืคืฉืจ ืืืชืื ืืช ืืืืจืช ื ORM ืืจืืืืก ืืืืคื ืืื:
class Category < ApplicationRecord
has_many :products
end
class Product < ApplicationRecord
belongs_to :category
# Default scope to always order products by weight
default_scope { order(:weight) }
end
ืืื ืืงืื ืฉื ืืขืืื ื ืืื ืืืกืชืื ืขื ืจืฉืืืช ืืืืฆืจืื ืืืืคื ืืื:
category = Category.first
category.products
ืืืื ืขืืื ืืืืฆื ืืคื ืืกืืจ ืื ืืื. ืื ืืืคื ืคื ืืืขืื? ืขืืฉืื ืื ืืืงืื ืืืจ ืืงืื ืื ื ืจืืฆื ืืืฆืื ืืช ืืืืฆืจืื ืืกืืจ ืืคืื ืื ื ืืืจ ืื ืืืื ืกืชื ืืฉืืืฃ ืืืชื ืืืกืืก ืื ืชืื ืื ืขื:
category.products.order(weight: :desc)
ืืื ืฆืจืื ืืืื ืืช ื order ืฉื ืืกืงืืค ืืืืคืืืื ืงืืื ืขื:
category.products.unscope(:order).order(weight: :desc)
ืืขืฆื ืจืืืืก ืืืืจ ืื ื - ืชืืืจื, ืื ืฉืชืงืืื ืืช ื order ืืืื ื ืืื ืืฉืืืืชืืช ืืื ืชืฆืืจืื ืืขืืื ืงืฉื ืืฉืชืจืฆื ืืฉืื ืขื order ืืืจ, ืื ืฉืชืฆืืจืื ืืืชืื ืขืื ืืืื ืฉื order ืืื ืฉืืืืชื ืฉืฆืจืืื ืืช ืืืืฆืจืื ืืคื ืกืืจ.
ืืืขืื ืืื ืืื ืฉืืืขืจืืช ืงืืืืช ืืคืืื ืื ืืืืื ืืจืื ืืืชืจ ืงื ืืืืืืจ default scope ืืืงืื ืืช ื order ืื ืืื ืืื ืืืขืจืืช ืืืื ืืืช ืืืฉืจ ืืืืืืจ order ืขื ืื ืฉืืืืชื, ืืื ืืืืจื ืืืืช ืชืืื ืืืืืืช ืืขืื ืืืืฉ (ืื ืืื ืืืืฉืื) ืืฉื ืฆืืจื ืืืืกืืฃ ืฉืืืืชื ืืืฉื ืืื ื ืืืืจ ืืช ืืืื ืืจืืจืช ืืืืื.
ืืคื ื ืื ืก ืืชืืื ื ืืืืจ ืฉืื ืงืืื: ืื ืืจืืข ืฉืื ืื ื ืขืืืืื ืขื ืืื ืคืืชืื ืืืืกืกื AI ืืืืืขืื ืื ืกื ืืช ืืืชืืจ ืืืืจืืืืงืืืจื ืฉืื ืื ื ืจืืฆืื, ืืขืืื order ืขื ืื ืืฉืืืืชืืช ืืคืจืืืงื ื ืืื ืงื ืืื ืืืืกืืฃ default scope - ืืืฆืืจื ืืืืช ืืฉ ืืืชืจ ืืืืืืฆืื ืืืืืข ืืงืื ืื ืืื.1 417
ืฆืืจืืื ืืืืื ืืืื ืื ื ืืืืืจ ืืืื ืืืืฉื ืืืืงืจ ืืขืืืจ ืืืืื ืจ ืืืื ื ืืืจืื ืืื ืืื ืืงืื ืงืื ืืื ื AI (ืืื ืื ืืืจื ืืคืจืืืคืืื ืฉืืื ืืืืฆืจ ืงืื ืืื ืื ื ืื ืืคืืื ืืจืืข)
ืืืืืง ืคื ืืช ืืืื ืง ืืืืืฉื ืืืืงืจ ืืื ืืืื ืืืจ ืืฉืจืืื ืืืืื
Endi mavjud! Telegram Tadqiqoti 2025 โ yilning asosiy insaytlari 
