Showing posts with label ETC. Show all posts
Showing posts with label ETC. Show all posts

How to create a script to prevent gpt from Hallucination (feat. ChatGpt)

 How to create a script to prevent gpt from Hallucination (feat. ChatGpt)

This is what I asked the GPT and answered the question.

English Version

[SYSTEM INSTRUCTIONS] - All responses must be based on credible sources or academic materials. - If any information is uncertain or lacks a clear source, explicitly state that the information is uncertain. - Provide clear and specific answers; break down complex queries into step-by-step responses when necessary. - Include references or citations for the information provided whenever possible. - Limit answers to verified and reliable information; avoid speculation or assumptions.

Korean Version

[시스템 지침]
- 모든 답변은 신뢰할 수 있는 출처나 학술 자료에 근거해야 합니다. - 정보가 불확실하거나 명확한 출처가 없는 경우, 반드시 해당 정보가 불확실함을 명시해 주세요. - 구체적이고 명확한 답변을 제공하며, 필요시 복잡한 질문은 단계별로 답변해 주세요. - 가능한 경우, 제공하는 정보에 대해 참고 자료나 출처를 함께 명시해 주세요. - 검증된 정보만을 제공하며, 추측이나 가정을 피해 주세요.



ChatGPT






How to remove a square box from a blog post. (with chrome)



ISSUE:
When you read a blog post with chrome, there's an issue where a square box.

Description:
There is an issue in which a square box appears in a blog post as follows.

This issue is only visible to Chrome users and is not a blog problem or a problem with the text itself.

This issue is due to the chrome extension plug-in currently running by the reader.
It is said that a square box can be seen if there is an extension related to the pop-up or a pop-up during the chrome extension plug-in.

In my case, the issue occurred due to "Google translation" plug-in.
Therefore, the issue is solved by shutting down the plug-in or using other Internet Explorers (explorer, edge, safari, etc.).

#blog #blogIssue #squarebox

Error : Chrome search engine keyword error (Spacebar ignored)


Error : Chrome search engine keyword(Spacebar ignored)

1. Chrome Address Window in Chrome 
   
Connection : Chrome://flags 




2. Omnibox keyword search button


3. Re-run relaunch after setting Default to Disabled by default. 

#chromeerror#keyword#error



After setting the chrome keyword,
input a keyword in the address bar and process it if you pressed the space bar.
but there was no response.

Keyword error occurred (when space bar is not available)

크롬 키워드 설정 후,
주소창에 키워드 입력하고 스페이스 바를 눌렀으나 반응 없을 시에 대한 처리

키워드 에러 발생(스페이스바 안될 때)

How to get Current Function Name in python / example

How to get Current Function Name in python / example


def Print(*args): 
    func_name = "[" + sys._getframe(1).f_code.co_name + "] "
    for value in args:
        if type(value) is str:
            func_name = func_name + value
        else:
            func_name = func_name + str(value)
    
    print(func_name)


Based on where the current syntax is running,

Function called with current syntax :
sys._getframe(0).f_code.co_name

Function with current syntax :
sys._getframe(1).f_code.co_name

#Python #PyQt #Python print #function #function Name

What is Wayland?


Wayland backgound/Features/Structure/X Window differences

Wayland background
- Started as a private project by Christian Hogsberg (KRH) in 2008, the developer of Red Hat .
- X code usability and very poor scalability(very heavy and large  => difficult to develop)
Designed about 30 years ago, X adds numerous extensions. -> functionality that is not in use, and many similar features are created(history is unknown)

Wayland Features
- WAYLAND is open source friendly and should be kept to a minimum. (KMS (Kernel-Mode Setting), EVDEV, PIXMAN, and so on... : make the most of external open sources to keep the inside to a minimum.)
- Local based (remote access uses protocols such as client layer VNC)
- support only Composite API (Support Direct Rendering/ Client-Side Decoration (CSD))
- Very Simple and Light! (X appears to improve what was so heavy and so big that it was difficult to develop)

Wayland structure
basic difference of X server and Wayland(X server vs. Wayland)
- X Server : independent process
- Wayland : Library (work of a compositor as a library)

A brief illustration of the structure of operation of the X server.
x-architecture


The process of updating the screen by receiving user input from the X client is expressed in order.
1. The X server sends user input to the X client.
2. The X client updates the required screen, and notifies the X server.
3. The X server informs the compositor that the X client's screen has been updated.
4. The compositor reflects the updated screen of the X client on the final screen, and informs the X server.
5. The X server reflects the final screen updated via KMS on the framebuffer.

A brief illustration of the structure of operation of the Wayland.
wayland-architecture

- WAYLAND and composites have been combined into one, reducing unnecessary messages to and from IPC.

Structure and Working differences
X Window
- Independent Process
- The server and compositor are separated.
- The server is responsible for rendering.
- The X server intermediates all behavior between clients, compositors, and kernels.

Wayland
- Implemented in library form, reducing OS overhead.
- Servers and compositors merge into one, reducing unnecessary communication.
- The rendering is handled by the client, reducing complexity with the server.
- The server intermediates only the client and kernel.


Result : Wayland advantage
• It is a framework that is lightened and organized compared to the existing X11 (X11).
• Remove parts not used by the existing X11 and implement only the necessary parts.
• Implement as simple as possible using standard GEM/DRM stack.
- User frameworks : no longer need to be complicated by supporting DRM/GEM in a kernel
• Used on Genivi platforms(GENIVI - related vehicle).
• 1/10 the size of X11.

#Wayland backgound #Wayland Features #Wayland Structure #Wayland X Window differences #vehicle #weston #wayland #genivi

Apartment Buying Guide 2025: Shocking Red Flags You Should NEVER Ignore!

 🏙️ Apartment Buying Guide 2025: Shocking Red Flags You Should NEVER Ignore! 🚨 Are you thinking about buying an apartment in 2025? 🏢  It’...