B4J Tutorials

[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...
 

[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: 399
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: 288

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...
 

[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: 350

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...
 

H2 Database

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] 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...
 

[XLUtils] Word document with 200 charts

Attachments

  • 1.zip
    79.4 KB · Views: 365

[XLUtils] Word - bookmarks, urls and page breaks

1624261177989.png


XLUtils v2.02 adds support for urls, bookmarks and page breaks.

A paragraph tag with the PageBreak attribute will start on a new page.
B4X:
$"[p PageBreak=True]This will appear...
 

Attachments

  • WordExample.zip
    16.5 KB · Views: 339

[XLUtils] Creating MS Word Documents

1623939091609.png


XLUtils v2.00 adds support for creating MS Word documents, and converting Word documents to PDF.
It is done in a similar way to BCTextEngine, using custom BBCode. This works...
 

Attachments

  • WordExample.zip
    16 KB · Views: 600
Last edited:

[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...
 

[B4X] Proxy Server Socks 4 and Proxy Http (Source Code)

Many years ago I needed to sniff a connection and I didn't have a free sniffer available and I didn't know how to create one .... So after a long reflection I decided to create a Proxy Server in...
 

Attachments

  • Sock4.zip
    5.6 KB · Views: 323
Last edited:

[jPOI] Migration to version 5 experience (not a big thing)

Just a short note how my experience was migrating to JPOI5. Not worth a tutorial - more a "all easy note" when you migrate an important app (like mine which is used by a company).

I needed to...
 

[B4J] - Lottery for Telegram (Source)

Hi all,
Used to make a lottery in Telegram.
You can expand the UI of this app and use it like TV lotteries.
for example: (Be sure to watch the clip)

this zip file has a...
 

Attachments

  • Lottery-V1.zip
    3.9 KB · Views: 414
Last edited:
Top