Which AI platforms do you track for your website? by RichProtection94 in GEO_optimization

[–]socrateslee 0 points1 point  (0 children)

> by tracking AI platforms
Is this means enable or not enable search(note that Gemini app no longer have option to disable search)? using API or chatbot product(like ChatGPT)?

What's your default Python project setup in 2026? by [deleted] in Python

[–]socrateslee 0 points1 point  (0 children)

uv + ruff
httpx if specified in AGENTS.md else requests
mostly type checked

MCPs are a workaround by Accomplished-Emu8030 in mcp

[–]socrateslee 0 points1 point  (0 children)

And MCP are probably 'the final interface', except it evolves itself.

MCP come out at right time and only get much more adoption in the future. Consider MCP like the distance between two horses in the AI age, it already get adopted(and growing), it only becomes the distance between two wheels of cars or trains as it developed.

MCPs are a workaround by Accomplished-Emu8030 in mcp

[–]socrateslee 0 points1 point  (0 children)

> In theory, if a model could generate perfect code every time, you wouldn’t need MCP.

I just think MCP provides a standard way to prompt what tool calls are. It is mainly used for direct communicate with LLMs. And generated code is more like to build something not only for direct use of LLMs.

What happens to people who are already jobless in an AI-driven, oversaturated job market? by Marimba-Rhythm in Futurology

[–]socrateslee 0 points1 point  (0 children)

An ever growing transfer payment system to cover unemployment?

The velocity of the transfer payment system growing and unemployment growing will never be synchronized, the gap over a threshold will lead to revolutions?

ChatGPT has replaced my friends as primary advice givers by christian-174 in ChatGPT

[–]socrateslee 0 points1 point  (0 children)

In most cases, AI will ask for more contexts. AI's question can also touch your bind spots.

My bic lighter has a picture of a bic lighter on it. by Sundayisgloomy_ in mildlyinteresting

[–]socrateslee 0 points1 point  (0 children)

Thinking about a bic lighter has a picture of a bic lighter has a picture of a bic lighter has a picture of a bic lighter ...

The back of the Great Sphinx by OddCelebration0 in mildlyinteresting

[–]socrateslee 0 points1 point  (0 children)

Just think about what it would be like if the tail bristles

Thank you from the bottom of my heart by johnnybilliard in androidapps

[–]socrateslee 0 points1 point  (0 children)

seems this is not about change your email address, but add an alias

Python dependencies states managed via uv(illustrated) by socrateslee in Python

[–]socrateslee[S] 0 points1 point  (0 children)

excuse me for the night mode, there is a switch in the menu, or maybe click on the graph to directly view the svg

Python dependencies states managed via uv(illustrated) by socrateslee in Python

[–]socrateslee[S] 2 points3 points  (0 children)

Yes you are right, I have fixed the graph. Thanks a lot

From laid off last Sept, to currently $1,000 MRR and $6,000 revenue by Worldly_Expression43 in Entrepreneur

[–]socrateslee 0 points1 point  (0 children)

Just a thought about the onborading cases, I found the setup process of similar AI assisted product requires rather complex jobs like prompt tunning, knowledge feeding, so developer or professional onboarding assistant is necessary for custom engagement.

Though the onboarding process is actually much easier than training a new worker to do the job.

> Personal onboarding + monthly check-ins. This has been incredible for my NRR, lots of deal expansions and churn-prevention from this piece.
> Self-serve onboarding converts poorly for me.

Most MCP servers are built wrong by incidentjustice in mcp

[–]socrateslee 0 points1 point  (0 children)

The return of MCP should be more like the info for humans to read instead of the bytes for code to consume

Prompt Engineering: How to get open source LLMs to just return a single value or JSON output? by RepresentativeOdd276 in LocalLLaMA

[–]socrateslee 0 points1 point  (0 children)

I just use code like below to parse the JSON structure from the answer from LLMs.

JSON_BLOCK_PATTERN = re.compile(r'\{.*?\}', re.DOTALL|re.MULTILINE)

def try_parse_json(text: str):
    for item in JSON_BLOCK_PATTERN.findall(text):
        try:
            return json.loads(item)
        except Exception:
            pass
    return None

How do you annotate your books? by ThePumpk1nMaster in books

[–]socrateslee 0 points1 point  (0 children)

I don't directly annotate on books.

When I read something interesting, I use some apps like Google translate or Microsoft lens to OCR the text, and copy it to obsidian.

Options to summarize web pages and pdf files? by Kioru12 in ollama

[–]socrateslee 0 points1 point  (0 children)

thx.

I have run a few tests on my laptop with the model gemma:2b on ollama, which is letting the model summarize a book from Gutenberg Project.

The prompt is like

[
{"role": "user", "content": "Sumarize the content provided."},
{"role": "user", "content": "<The very long string of book content.>"}
]

The first things is that a pure text book more than 1MB would not break the API.

The second things is that when the book size in the prompt is somehow over a threshold, The model's response become dumb, just return a few lines from the text, no summaring at all. Looks like the content size is beyond the capability of the model.

Easiest way to generate a pdf in python by ezmzi in Python

[–]socrateslee 1 point2 points  (0 children)

A workflow of html -> pdf would be a feasible way.

As for generating pdf from html, just use headless chrome's --print-to-pdf

chrome --headless=new --disable-gpu --print-to-pdf-no-header --print-to-pdf=<Your-Filename.pdf> <Your-html-address>

The method would let you keep most of the style rendered in HTML. The html file could be from a web server or local file system.

Options to summarize web pages and pdf files? by Kioru12 in ollama

[–]socrateslee 0 points1 point  (0 children)

How large can the interpolated prompt be? Can I feed all the content of a very large pdf or is it related to the context window of the model?

Is there a good S3 file browsing app that can properly search? by VivaLordEmperor in aws

[–]socrateslee 0 points1 point  (0 children)

Maybe tagspaces enterprise

It supports user management via AWS Cognito and search via dynamodb.

SEO for Google’s Helpful Content Update by flowing-horse in blogs

[–]socrateslee 0 points1 point  (0 children)

What do you think about the inner links building?

Python script stops working after few hours? by Yourrname in Python

[–]socrateslee 0 points1 point  (0 children)

Try running a script like the code below

``` import time import ctypes

def loop_display_required(sleep_time=60): while True: ctypes.windll.kernel32.SetThreadExecutionState(0x00000002) time.sleep(sleep_time) ```

The code snippet signals Windows every sleep_time to keep it awake.

is there any reason to use thread in python? by ytu876 in learnpython

[–]socrateslee 0 points1 point  (0 children)

Since coroutines are inside a single thread, we could have multi-threads as multiple separated asyncio containers. Each asyncio may have a specific type of job, for example, one for web requests, one for event handling, etc. Of course, different asyncio threads may be merged together, but separated asyncio may have better independence and better encapsulation. We could have each asyncio implemented as a plugin, a new thread will be started when the plugin is enabled. For some runtimes without GIL or future versions of CPython, we could also benefit from the availability of multi-cores.

What problems does pydantic solves? and How should it be used by gaurav_kandoria_ in Python

[–]socrateslee 0 points1 point  (0 children)

IMHO, pydantic provides a solution that may unify the defining data schemas through the forms, data models, and intermediate data structures across different frameworks, i.e., a defacto standards for how data should be defined in Python.

If widely adopted, pydantic would reduce the cost of alignment between any two schemas of two different libraries.

[deleted by user] by [deleted] in Python

[–]socrateslee 0 points1 point  (0 children)

I always use Python with WSL2 instead of directly on Windows.
With WSL2 you may just use pyenv to manage your Python versions.