B4J Tutorials

[BANano] (v7) Using Background Workers in your WebApps (introduction)

The next release of BANano will have the possibility to use background workers in your WebApps. It can not be added in a BANanoLibrary, so it must be done in your final project. Background...
 
Last edited:

[BANano] (v7) Running Cron Jobs (in the background)

The next version of BANano (7) will have the ability to run Cron jobs!

A Cron is Timer like functionality that runs a certain job automatically at a specified time following a predifined...
 
Last edited:

[BANano] (v7) New object BANanoRouter

BANanoRouter is a full blown Router with paths that will be standard included in the next release of BANano. It allows you to better organize your code in a PWA/SPA WebApp. It is based on the...
 

[NLP] Sentiment analysis

1630481260757.png


The "sentiment" feature in the example project, uses NLP document categorizer feature to find whether the text is negative or positive.
The dataset for the model contains movie...
 

[NLP] Library or Question?

[B4J server apps] Guide to run a Linux as a Windows 10 Subsystem

With the latest update for Windows 10 (version 1903), you can install a Linux distro as a Windows 10 Subsystem. This is very cool for us B4J developers as we can now very easily setup an...
 
Last edited:

[Example]Using the Within Class Full Access Feature

When my assumptions are challenged I listen.
We all know Public variables and subs in a class are available to procedures external to the class.
But recently I learned from @LucaMs that...
 
Last edited:

Setting a dynamic address IP in namecheap. Program + source

Hello.
Namecheap.com is probably known to many as a domain provider. You can buy an interesting domain for our project for pennies. Some time ago I put my own small OpenMediaValue server on...
 

[B4XPages] Save the pages size and position

Add to B4XMainPage:
B4X:
Type PagePosition (Left As Int, Top As Int, Width As Int, Height As Int, IsIconified As Boolean)
Private kvs As KeyValueStore
And:
B4X:
Public Sub SavePagePosition (Page...
 

Attachments

  • Project.zip
    192.5 KB · Views: 653
Last edited:

STARTTLS - upgrading a non-tls socket to a tls socket.

Upgrading from a non-tls connection to a tls connection only makes sense when dealing with a protocol that specifically requires it. It is much simpler and also a bit more secure to start with a...
 

Attachments

  • smtp.zip
    3.3 KB · Views: 521

B4J Primes Benchmark

I found this benchmark that tests the same algorithm in multiple programming languages and decided to test it in B4J.

I've implemented the two algorithms.

B4X:
Sub Process_Globals

End Sub...
 

[example] [B4X] Control the desktop with your phone

This example shows how simple it is to create network solutions with B4J, B4A and B4i.

In this case the network communication is based on UDP.

It implements a remote desktop mouse, where the...
 

Attachments

  • RemoteDesktopControl_B4J.zip
    2.6 KB · Views: 2,531
  • RemoteDesktopControl_B4A.zip
    9.3 KB · Views: 2,483
  • RemoteDesktopControl_B4i.zip
    4.1 KB · Views: 1,703
Last edited:

[BANano] why you might need parseBool

Ola

I use a lot of parseInt and parseFloat when I code because even when I define the variables as Int, Double, Float etc, somewhere somehow mistakes happen, you find your app not working and...
 

[Tool] Integrated B4JPackager11 helper: PrepInstallerScript (with source code)

I was making the switch from Java 8 to Java 11 and wanted to use the 'Integrated B4JPackager11' as explained by @Erel in...
 

Attachments

  • PrepInstallerScript.zip
    5.5 KB · Views: 623

How to run .jar files on MacOs + VM to test (and other MacOs things)

Hi,

I had to make my application (PostChat) available on MacOs. I had no problems porting the app to Linux, but I found the port to MacOs very annoying, and had lots of issues. So I'm posting...
 

[BANano] Using an external Editor like WYSIWYG Web Builder with B4J/BANano

Attachments

  • WYSIWYGWebBuilder.zip
    177.1 KB · Views: 1,006
Last edited:

[jPOI] Migration to version 5 Mac

For Mac
as already suggested by the good @KMatle

I needed to remove the Packager property (The B4J-packager does it on it's own with the new version)

Note 1*
B4X:
'#PackagerProperty...
 
Last edited:

Tag management for UI Nodes

In B4XPages we rely heavily on tags to identify UI elements. Yet tags are valuable for connecting data to the UI, too, and it is easy to feel we are wasting tags for identification.
There is a...
 

[BANano] Why it is important to use unique names for your elements when not using AutoID?

Ola

I just spent some time nearly sweating as to why my app was not working properly. Turns out that my element names are not unique and as such a conflict arose.

1624993108777.png


Background...
 

[BANano] Creating PDF Documents with jsPDF using BANanoJsPDFAD

Ola

As you are aware, the BANanoJsPDFAD tool is out. Its developed using jsPDF and it uses the abstract designer for you to create pdf Documents.

You can insert text, triangles, images...
 
Top