Search found 156 matches
- Sun May 04, 2025 6:37 pm
- Forum: Linux
- Topic: Linux UDP server
- Replies: 4
- Views: 1311
Re: Linux UDP server
Okay, thanks. Building a system where I want to have programs be able to find each other locally. UDP broadcasting seemed ok. I can't believe I missed that. Not even little AI help caught that. I swear there are times when things go crazy. Yes, I feel little silly on this one. I've added the fix to ...
- Sun May 04, 2025 6:19 am
- Forum: Linux
- Topic: Linux UDP server
- Replies: 4
- Views: 1311
Linux UDP server
Hi all,
So I'm trying to make something that involves UDP for certain things. I have been at this all day and I'm not sure what might be the issue here. I've attempted to distill this down to just listening on a port and spitting out whatever text is sent. I keep getting invalid memory access ...
So I'm trying to make something that involves UDP for certain things. I have been at this all day and I'm not sure what might be the issue here. I've attempted to distill this down to just listening on a port and spitting out whatever text is sent. I keep getting invalid memory access ...
- Sun May 04, 2025 2:02 am
- Forum: Linux
- Topic: Linux and pipes
- Replies: 11
- Views: 2376
Re: Linux and pipes
Okay, thank you. I figured it was something like that. No shell spawned go it. Now that I know that I can find a way to make it work. Thanks again.
- Tue Apr 29, 2025 8:11 pm
- Forum: Linux
- Topic: Linux and pipes
- Replies: 11
- Views: 2376
Linux and pipes
In Linux on occasion one might want to pipe the output of one command to another then do something with the output. However, it seems purebasic via the run command doesn't work as I'd expect. I'm sure there some nuance I'm missing, I just can't figure it. I've resolved my problem with find a single ...
- Thu Dec 19, 2024 6:05 am
- Forum: General Discussion
- Topic: JSON parsing
- Replies: 12
- Views: 2890
Re: JSON parsing
No problem with PB:
Structure email_Structure
email.s
created.s
avatar.i
updated.s
id.s
EndStructure
Structure Test_Structure
admin.email_Structure
token.s
EndStructure
Define Test.Test_Structure
JSON$ = ~"{\"admin\":{\"email\":\"offal@pngpst.net\",\"created\":\"2024-07-23 01:32:58 ...
- Sun Dec 15, 2024 10:51 pm
- Forum: General Discussion
- Topic: JSON parsing
- Replies: 12
- Views: 2890
Re: JSON parsing
I posted the feature request ages ago and no one commented or took notice, I'm currently writing IMPBDB (in memory PB DB) which uses the feature though I'm waiting for the official solution as it's limited to X64 asm backend at the moment .
I will make a separate thread about it.
The take away ...
- Sun Dec 15, 2024 10:48 pm
- Forum: General Discussion
- Topic: JSON parsing
- Replies: 12
- Views: 2890
Re: JSON parsing
You usually use ExtractJSONStructure() to parse complex JSON, to ease things like you do in other programming language. That said, it has some limitation about field naming, so it needs to be more flexible here (we plan to add a field mapping map)
Thank you for mentioning that. I got so drawn ...
- Sun Dec 15, 2024 10:45 pm
- Forum: General Discussion
- Topic: JSON parsing
- Replies: 12
- Views: 2890
Re: JSON parsing
@kake26
can you show an example what is not possible with build in PB JSON stuff?
I'll attempt to explain this properly for you. I was saying the existing JSON handling capabilities where a difficult to use. I was trying to write a tool that would allow me to send and receive messages from a ...
- Sun Dec 15, 2024 6:19 am
- Forum: General Discussion
- Topic: JSON parsing
- Replies: 12
- Views: 2890
JSON parsing
I dunno about the rest of you, but the JSON support in PureBasic. Well, is difficult to make any decent use of. This stopped me from working on a number of projects. I needed JSON parsing that can just be used easily and quickly. So I went to work to make something that fixed this. I ended up ...
- Mon Oct 21, 2024 6:32 pm
- Forum: Linux
- Topic: Running PureBasic on non Ubuntu based distros
- Replies: 14
- Views: 6682
Re: Running PureBasic on non Ubuntu based distros
I hope this isn't construed as hijacking the thread, but with essentially the same end-goal in mind ... I wonder if an official Snap (or Flatpak ) package would be a viable way to distribute the Purebasic IDE and compiler? 🤔
Well given how a snap works. Yes, it would very likely work. Snaps are ...
- Tue Sep 24, 2024 11:25 pm
- Forum: Linux
- Topic: Linux Shared Memory
- Replies: 1
- Views: 1612
Re: Linux Shared Memory
Hi all,
Okay so I did another deep dive in the forum. After a few searches and many pages I did find this https://www.purebasic.fr/english/viewtopic.php?p=268227&hilit=Linux+shared+memory#p268227 a random post from 2008 about what I am trying to do. I copied the code and just attempted to run it ...
Okay so I did another deep dive in the forum. After a few searches and many pages I did find this https://www.purebasic.fr/english/viewtopic.php?p=268227&hilit=Linux+shared+memory#p268227 a random post from 2008 about what I am trying to do. I copied the code and just attempted to run it ...
- Tue Sep 24, 2024 10:54 pm
- Forum: Linux
- Topic: Linux Shared Memory
- Replies: 1
- Views: 1612
Linux Shared Memory
Hi all,
I have a weird issue. I'm trying get a purebasic program to use shared memory. I've looked in apifunctions.txt to see if that was there and I didn't see it, so doesn't seem that its built in. I have code that works, but only run via sudo. So at least I know the code itself can work. I've ...
I have a weird issue. I'm trying get a purebasic program to use shared memory. I've looked in apifunctions.txt to see if that was there and I didn't see it, so doesn't seem that its built in. I have code that works, but only run via sudo. So at least I know the code itself can work. I've ...
- Fri Sep 20, 2024 8:58 pm
- Forum: Linux
- Topic: Running PureBasic on non Ubuntu based distros
- Replies: 14
- Views: 6682
Re: Running PureBasic on non Ubuntu based distros
Thanks for the infos. How do you access the examples file from container ? can you modify them ?
The examples are easy to access. They will be under /opt/purebasic/examples. So when the IDE is running just do a file open and navigate to that spot. As far as modifying them yes you can, but of ...
- Fri Sep 20, 2024 9:03 am
- Forum: Linux
- Topic: Running PureBasic on non Ubuntu based distros
- Replies: 14
- Views: 6682
Re: Running PureBasic on non Ubuntu based distros
The size I will have to look to confirm, but 400 ish mb. As far as running it you can run the container in the same fashion you can run any program. A simple ./purebasic.sif from a terminal or you could make a launcher. I added it manually to my KDE menu.
- Fri Sep 20, 2024 8:43 am
- Forum: Linux
- Topic: Running PureBasic on non Ubuntu based distros
- Replies: 14
- Views: 6682
Re: Running PureBasic on non Ubuntu based distros
[...] I find myself having to run PureBasic on Linux distros which aren't based on Ubuntu [...]
Ubuntu is not a base distribution, Ubuntu is itself based on Debian which is itself the basis of many other distributions. So if you only need to learn and use one, you might as well use Debian. :wink ...