Search found 5 matches

by zippo
Fri Aug 30, 2024 7:58 am
Forum: Tricks 'n' Tips
Topic: DeepSeek - API - chat
Replies: 2
Views: 1166

Re: DeepSeek - API - chat


Good example, thanks for sharing.
I asked it to translate one of your code comments and to tell me what language it was.



Prikazuje trenutni napredak preuzimanja u bajtovima

The language of the text you provided is Croatian. Here is the translation To English:

"It shows the current progress ...
by zippo
Thu Aug 29, 2024 3:04 pm
Forum: Tricks 'n' Tips
Topic: DeepSeek - API - chat
Replies: 2
Views: 1166

DeepSeek - API - chat

# v:0.3 2024-09-04 # - parsed SQL code
# v:0.2 2024-08-30 #
# v:0.1 2024-08-29 #

This code demonstrates a straightforward way to integrate an AI service into a PureBasic application, offering an alternative to more expensive options while maintaining functionality and ease of use.

This PureBasic ...
by zippo
Wed Aug 28, 2024 9:10 am
Forum: Tricks 'n' Tips
Topic: DuckDB database - small example
Replies: 6
Views: 1951

Re: DuckDB database - small example


It does look very useful, especially to parse json/CSV and filter them



Parsing a JSON input file and loading it into DuckDB can be done efficiently using SQL commands. DuckDB supports JSON parsing through its SQL functions. Below is an example of how you can parse a JSON file and insert its ...
by zippo
Wed Aug 28, 2024 7:30 am
Forum: Tricks 'n' Tips
Topic: DuckDB database - small example
Replies: 6
Views: 1951

Re: DuckDB database - small example


@zippo,

Thanks for the information about DuckDB. Do you have any opinions on DuckDB vs. SQLite, i.e., speed, robustness, in what situation does one or the other have advantages, etc.?


I haven't tested DuckDB's speed yet, but it really works fast when it comes to importing and copying data from ...
by zippo
Tue Aug 27, 2024 2:01 pm
Forum: Tricks 'n' Tips
Topic: DuckDB database - small example
Replies: 6
Views: 1951

DuckDB database - small example

Here's what it does:
Database Management: The program opens a DuckDB database file named test.db.
Table Creation: It creates a table called users with fields id and name if it doesn't already exist.
Data Insertion: Inserts sample data into the users table: (1, 'John Doe'), (2, 'Peek Snow'), (3 ...