B4J Tutorials

Enhancing Image Contrast by means of Histogram Equalization

This is a B4J version. A B4A version is here


1.png
 

Attachments

  • b4jHistEqual.zip
    339.8 KB · Views: 117

[Web] SithasoDaisy - Installing SithasoDaisy and creating you first TailwindCSS & DaisyUI WebApp using b4x

Hi there

I am publishing this reel here for anyone starting with SithasoDaisy for ease of reference.



Have fun!
 

[Web] ABMaterial vs BANanoServer: Are you confused about them?

Hi Fam

Perhaps an illustration can help.

untitled_page.png


Conclusion: Reaching the same goal

Let me explain..

1. Anyone who wants to develop Server WebApps, has 2 options with Alain's...
 

[SithasoDaisy] How to implement Facial Recognition Authentication in your Web App

Hi Fam

One is able to implement facial recognition authentication without having to use a password, email etc, but facial recognition.

You will need https://faceio.net/

It has an easy to...
 

MandelbrotOrbits

It is a B4J kickstart for MandelbrotOrbits.jar from this web posting. Explore the Mandelbrot Orbits...

B4J sample project and the jar are attached. Once started, click and hold down...
 

Attachments

  • b4jMandelbrotOrbits.zip
    1.7 KB · Views: 88
  • MandelbrotOrbits.jar
    14.2 KB · Views: 100
Last edited:

Bouncing a single ray inside a square

Sure you will figure it out. A position vector and a speed vector. When it hits a vertical wall we change the direction of the x-position vector and for a horizontal wall we change the direction...
 

Attachments

  • b4jSquareBounce.zip
    2.3 KB · Views: 57
Last edited:

Anyone for a game of Snooker

Have compiled this Github project into a Jar so that it can be kick started from within B4J. Made some minor changes to the original code to that the /res folder could be embedded...
 

Attachments

  • b4jSnooker.zip
    2.2 KB · Views: 65
  • jSnooker.jar
    392.8 KB · Views: 63
Last edited:

[Web][SithasoDaisy] Mastering Server Progressive Web Apps

Hi Fam

In this thread we will look at creating BANanoServer Applications using SithasoDaisy. BANanoServer is the equivalent of ABM but for BANano, but with the full power of using the...
 

[B4X] FirebaseFirestore - Customer Support Chat Demo

Here is a customer support chat demo of FirebaseFirestore for B4J
  • It listens to
    1. Chats
    2. Chat
    3. Products
    4. Sales
    5. Customers


You can further add...
 

Attachments

  • Project.zip
    66.9 KB · Views: 80

Colliding Balls

Converted this Github project to B4J - it is like watching snooker. A bit of physics in it to detect collisions and then change speed/direction

B4J sample project attached
Also...
 

Attachments

  • jCanvasExt.jar
    5.1 KB · Views: 58
  • jCanvasExt.xml
    35.5 KB · Views: 57
  • b4jBallCollision.zip
    4.1 KB · Views: 58

[Web][SithasoDaisy] PocketBase - Configuring & Adding Google Authentication to your Apps

Hi Fam

Step 1

1. Create client id and client secret. On the Google API, select "Credentials" > Create Credentials > OAuth Client ID

Follow these instructions here from the google api...
 

SithasoDaisy TailwindCSS - Multilanguage

Hello.

I guess sometimes there comes a time to make our application multilingual. This can be done by compiling the same project with the descriptions corrected to another language and placing it...
 

[Web] SithasoIONIC7 - Mastering File Input

Hi Family

Here we use a hidden file input, to select an image and display it. On mobile this activates the camera.

1701707747416.png
 

Attachments

  • fileinput.zip
    2.9 KB · Views: 62
  • SI7UploadImage.zip
    217.5 KB · Views: 51

Reflection of a single ray inside a circle

The circle - 0 degrees is measured from the positive x-axis
In the attached sample project the first point (pih_0) is at 324.2 degrees. The second point (phi_1) is at 144.7 degrees
We draw a line...
 

Attachments

  • b4jCircleBounce.zip
    3.5 KB · Views: 46
Last edited:

Run B4J java and javafx Applications on ARM64 Computers

To run a B4J console or GUI Application on any 64-bit ARM computer, follow these steps:

Have tested it on Raspberry Pi 4 and Orange Pi Zero 3, running Ubuntu 21.04 and 22.04 respectively...
 

Tusi Couple

A nice Optical illusion when running the B4J project - the small yellow balls all move just in a straight line.

B4J Project attached
Jar and XML for CanvasExt by @klaus attached - copy them...
 

Attachments

  • jCanvasExt.jar
    5.1 KB · Views: 59
  • jCanvasExt.xml
    35.5 KB · Views: 56
  • b4jTusiCouple.zip
    2.3 KB · Views: 54
Last edited:

[BANano][8.19+] Special commands for inline JavaScript

In BANano 8.19+, there are some special commands that make it easier to integrate JavaScript code into your WebApp. Previously all this was (is still) possible with .RunMethod and .Get/SetField...
 

[BANano] How to detect if your device browser is in Dark / Light Theme Mode

Hi Fam

I want to detect if my device browser is in dark/ light mode and apply some settings on my app.

So here we go, we have 2 methods, one to fire each time the web browser mode is changed...
 

[Web][SithasoDaisy] Bulk Email / Email Campaigns with the SithasoDaisy Mini CRM WebApp, PocketBase & GMail

Hi Fam..

With the possibility to add web hooks in PocketBase, one is able without any use of third party email sending applications use STMP configuration. We are currently using GMail and a...
 

Attachments

  • 1708173364001.png
    1708173364001.png
    7.2 KB · Views: 62

Access DB (mdb) BeginTransaction and AddNonQueryToBatch

I spent quite a bit of time tracking down an error that... wasn't in my project. To prevent you from doing it too...

I had to insert many records into an Access table.

I used a transaction...
 
Top