Search found 18 matches

by akamicah
Sun Aug 13, 2023 12:46 pm
Forum: Tricks 'n' Tips
Topic: UUID Module (RFC 4122 Compliant) - V3-5 Cross Platform
Replies: 0
Views: 1119

UUID Module (RFC 4122 Compliant) - V3-5 Cross Platform

Another little addition to https://github.com/akamicah/puresilo

Generate RFC 4122 Compliant UUIDs version 3, 4 and 5 - completely platform agnostic (no api calls).

There's a few snippets for the creation of uuids on the forum, but the ones I've found were not rfc compliant so could break things ...
by akamicah
Sat May 14, 2022 8:31 pm
Forum: General Discussion
Topic: Silo of Reusable Code (Contributors wanted)
Replies: 10
Views: 1216

Re: Silo of Reusable Code (Contributors wanted)

Thorsten1867 wrote: Sat May 14, 2022 7:57 pm I also have a small silo of PureBasic modules. ;-)

https://github.com/Hoeppner1867/PureBasic

Very nice :)
by akamicah
Sat May 14, 2022 7:50 pm
Forum: General Discussion
Topic: Silo of Reusable Code (Contributors wanted)
Replies: 10
Views: 1216

Re: Silo of Reusable Code (Contributors wanted)

skywalk wrote: Sat May 14, 2022 7:27 pm I'm suggesting something similar to the now open source IDE?
Ahhh gotcha. That'd be really good
by akamicah
Sat May 14, 2022 4:37 pm
Forum: General Discussion
Topic: Silo of Reusable Code (Contributors wanted)
Replies: 10
Views: 1216

Re: Silo of Reusable Code (Contributors wanted)


[*]It seems to be inconsistent to define methods for doubles and floats, but returning always a double in functions like Length, Dot, Distance, ... .
They should return floats as well, when float-vectors are used, to avoid unnecessary type conversions.
[/list]


Merged an update breaking those ...
by akamicah
Sat May 14, 2022 3:44 pm
Forum: General Discussion
Topic: Silo of Reusable Code (Contributors wanted)
Replies: 10
Views: 1216

Re: Silo of Reusable Code (Contributors wanted)


Hi akamicah,
I really wish you much success with your project. But, without demotivating you, I would like to point out that there are already several similar offers on github. What they all have in common is that after an initial phase of euphoria, the expansion and updating very quickly came to ...
by akamicah
Sat May 14, 2022 3:11 pm
Forum: General Discussion
Topic: Silo of Reusable Code (Contributors wanted)
Replies: 10
Views: 1216

Re: Silo of Reusable Code (Contributors wanted)


I just looked over it quickly, but I want to mention some issues:

You define a function RSqr(Number.d), the reciprocal square root. However, the definition is wrong:
Procedure.d RSqr(Number.d)
ProcedureReturn 1.0 / Number ; << should be 1.0 / Sqr(Number)
EndProcedure
Similar issue in ...
by akamicah
Sat May 14, 2022 2:17 pm
Forum: General Discussion
Topic: Silo of Reusable Code (Contributors wanted)
Replies: 10
Views: 1216

Silo of Reusable Code (Contributors wanted)

Hi all,

I'm piecing together a library of reusable code to accelerate application development in Purebasic, as I've tinkered with PureBasic since the very early days and one thing that kinda held me back developing more ambitious projects with it was having to dig around my own mega repository of ...
by akamicah
Fri May 13, 2022 11:29 am
Forum: Tricks 'n' Tips
Topic: General purpose logging library
Replies: 4
Views: 1245

Re: General purpose logging library

Future development of this module can be found here: https://github.com/akamicah/puresilo
by akamicah
Fri May 13, 2022 10:36 am
Forum: Tricks 'n' Tips
Topic: General purpose logging library
Replies: 4
Views: 1245

Re: General purpose logging library

infratec wrote: Fri May 13, 2022 7:14 am You can extend it to send logs also to a syslog server:

https://www.purebasic.fr/english/viewto ... 91#p314991
Nice :) Definitely achievable by creating a custom log output and attaching it with Log::AttachLogOutput(...)
by akamicah
Thu May 12, 2022 9:48 pm
Forum: Tricks 'n' Tips
Topic: General purpose logging library
Replies: 4
Views: 1245

General purpose logging library

A versatile log library for all use cases allowing you to add logging to your application, specify custom log targets/outputs, as well as integrated console output.

Log messages can be formatted using masked variables utilising FormatDate with variables for log type, originating module, originating ...
by akamicah
Thu May 12, 2022 11:49 am
Forum: Feature Requests and Wishlists
Topic: Additional include directories
Replies: 13
Views: 3113

Re: Additional include directories


What's wrong with using "IncludePath" in your code to point to an external folder of files? It does what you want.


Hard-coded paths in code that fall outside the project's folder/scope is a very ugly and bad practice, especially if you distribute your code.

Say your project is in /home/micah ...
by akamicah
Thu May 12, 2022 10:06 am
Forum: Feature Requests and Wishlists
Topic: Additional include directories
Replies: 13
Views: 3113

Re: Additional include directories


In terms of how it would work, upon an include/xinclude, if the file doesn't exist relative to the project/file directory, then the compiler could go through the list of additional included directories to find the file before declaring it missing.
I don't think that's a good idea, because then ...
by akamicah
Thu May 12, 2022 9:58 am
Forum: Tricks 'n' Tips
Topic: PureTelegram (framework for using the Telegram API)
Replies: 101
Views: 31741

Re: PureTelegram (framework for using the Telegram API)


If you mean the updates from Telegram get saved to file... Telegram will only send an update once. If your code crashes before/during processing that update, it won't be able to request it again. Therefore, I thought it was best to save all updates to file before beginning to process them.


That ...
by akamicah
Wed May 11, 2022 2:43 pm
Forum: Feature Requests and Wishlists
Topic: Additional include directories
Replies: 13
Views: 3113

Additional include directories

Hello!

Reusable code is great, but can be tedious when wanting to use the same reusable code across multiple projects, especially if changing something in that code library and needing the change to be available to all projects.

Of course there is using compiler constants like the PB home ...
by akamicah
Wed May 11, 2022 2:35 pm
Forum: Tricks 'n' Tips
Topic: PureTelegram (framework for using the Telegram API)
Replies: 101
Views: 31741

Re: PureTelegram (framework for using the Telegram API)

Handy!

Couple of points;

Can I ask why are you saving all requests to disk before processing them, also you might want to hide your personal bot API key in the example code :P