Search found 3477 matches

by TJF
Sep 07, 2019 7:51
Forum: Linux
Topic: Context help in Geany
Replies: 7
Views: 2473

Re: Context help in Geany

I just figured out an alternative way to have context help in Geany: A) Menu: Edit -> Preferences -> Tools -> Context action: "firefox https://freebasic.net/wiki/wikka.php?wakka=KeyPg %s " B) Menu: Edit -> Preferences -> Keybindings -> Action Editor, Context Action -> Set to e.g. Ctrl+F1 ...
by TJF
Aug 25, 2019 20:09
Forum: Linux
Topic: Is it possible to Hello world on a server
Replies: 55
Views: 2308

Re: Is it possible to Hello world on a server

by box u mean for example on my laptop so i can dev and test... I don't know the OS on your development environment. Ie. for debian based LINUX systems execute sudo apt install libfcgi-dev and i guess also i would need to install the library on the server or maybe it's already on the server... some...
by TJF
Aug 25, 2019 17:33
Forum: Linux
Topic: Is it possible to Hello world on a server
Replies: 55
Views: 2308

Re: Is it possible to Hello world on a server

The headers are included in FB. You've to install the binaries on your box.

Rgerads
by TJF
Aug 25, 2019 17:11
Forum: Linux
Topic: Is it possible to Hello world on a server
Replies: 55
Views: 2308

Re: Is it possible to Hello world on a server

i will look into this idea thanks TJF Here's some example code: /'* \file solar-fcgi.bas Copyright GPL V3 by Thomas[dot}Freiherr(At]gmx{dOT)net '/ #INCLUDE ONCE "fastcgi/fcgi_stdio.bi" #INCLUDE ONCE "solar-regler.bi" #INCLUDE ONCE "solar-output.bi" #DEFINE NO_FCGI_DEFI...
by TJF
Aug 25, 2019 16:48
Forum: General
Topic: I want to upload my software for use by others
Replies: 4
Views: 701

Re: I want to upload my software for use by others

Welcome to FreeBASIC! In order to upload your code there're three main solutions: ⋅ Small code snippets can get included in posts at this forum in code blocks (up to 1000 LOC per block, AFAIR). ⋅ Projects containing multiple files and/or bigger code blocks can get uploaded at the...
by TJF
Aug 25, 2019 16:31
Forum: Linux
Topic: Is it possible to Hello world on a server
Replies: 55
Views: 2308

Re: Is it possible to Hello world on a server

Hi owen!

You don't need php to call your FB executable (on the shell), and bypass the output.

The direct way is to compile your code against the fcgi library and let the web server directly call your binary.

Regards
by TJF
Aug 25, 2019 16:21
Forum: Linux
Topic: Non-blocking reading from /dev/input/event
Replies: 2
Views: 430

Re: Non-blocking reading from /dev/input/event

Hi maratus!

Code: Select all

open pipe "cat /dev/input/event"
Why do you use the indirect route involving the shell and the cat command?

Just open "/dev/input/event" directly, either by FB or C functions. Do asynchronous readings in a thread.

Regards
by TJF
Aug 16, 2019 15:33
Forum: Beginners
Topic: Can FB simple animations be run on a website?
Replies: 9
Views: 2066

Re: Can FB simple animations be run on a website?

Hi TimG! There's a simple and save way to run FB excutables on a webside, if the executable is compiled against GTK: just run that application under the braodway backend . Then you can connect any html5 browser to one of the broadway ports and use the browser window as a virtual screen/keyboard for ...
by TJF
Jul 10, 2019 4:22
Forum: Projects
Topic: Include Digger
Replies: 48
Views: 8336

Re: Include Digger

I love support for large projects like this. It helps everyone, and shows that FB is a serious tool. AFAICS this project provides a subset of the fbdoc features. And fbdoc is ⋅  documented (self-generating docs for Doxygen backend) ⋅  cross-platform ⋅  a text tool that...
by TJF
Jul 09, 2019 5:00
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 62468

Re: libpruio (BB D/A - I/O fast and easy)

You're welcome! In RB mode you can synchronize the second PRU in the same way as synchronizing the ARM: observe DRam[0], which is address 0x2000 for the second PRU. Note: that address is used for each (pinmuxing) operation, and reset to 0 (zero) afterwards: ⋅  First finish all configuratio...
by TJF
Jul 08, 2019 14:21
Forum: Libraries
Topic: libpruio (BB D/A - I/O fast and easy)
Replies: 379
Views: 62468

Re: libpruio (BB D/A - I/O fast and easy)

Hi tenko, welcome to the forum! Sorry, there's no feature for mixed (GPIO/ADC) data in the ring buffer. This'd lead to complex code for data readings. (Some users are overhelmed by only reading the ADC values.) Anyhow, as you mentioned the Mix member variable serves all GPIO states at one GPIO SS: 3...
by TJF
Jul 05, 2019 19:31
Forum: Libraries
Topic: python experiment
Replies: 33
Views: 2856

Re: python experiment

Also you can create a wrapper that python can use to call your FB functions. Really it's all there in the API. Been years since I last did it, but I have done it before in C. There are some tutorials (written in C of course) for using the Python C API on the main web site. In my libpruio project I ...
by TJF
Jun 28, 2019 17:44
Forum: General
Topic: smart code formatter
Replies: 9
Views: 841

Re: smart code formatter

Geany has a feature to replace tabs by spaces and vice versa, asking for the tab width before operation. It also supports addaption of line ends. Find the features in the 'document' menu.

And it supports regular expressions for search/replace.

Regards
by TJF
Jun 28, 2019 17:34
Forum: Community Discussion
Topic: any free BASIC for web/ios/android
Replies: 10
Views: 1960

Re: any free BASIC for web/ios/android

Hi! so my question is, is there any product-read, free BASIC which can write web app( for example, html5), ios or android? thanks This description isn't very precise. Perhaps there is a further solution: develop a standard GTK GUI app and run it on the server with GDK-broadway backend . Then connect...
by TJF
Jun 10, 2019 12:15
Forum: Projects
Topic: Fb minimal GUI
Replies: 11
Views: 2510

Re: Fb minimal GUI

Hi Luxan! I'm having to assume that libglade is valid on newer distributions ; I'm using Ubuntu 14.04 as the development environment as newer versions don't have a glade that utilizes libglade. libglade is obsolete. There's now support on newer systems. Glade3 doesn't support it any more. Today, it ...

Go to advanced search