b4j

  1. C

    B4J Question Encryption 1.1 library memory leak?

    I'm creating a UI b4j program and find that while iterating the filesystem and stuffing a database (9 fields) all works fine. However, when I use the MD5 feature of the encryption v1.1 library (I am getting a checksum of the files themselves) memory quickly rises out of the heap space (>8GB...
  2. DALB

    B4J Question B4J sqlite SUM(column) : java.lang.NullPointerException: Cannot invoke "String.trim()" because "in" is null

    Hello everyone. Just a thing: I wish to do a SUM of amounts in a table (column named 'montant': With this code... Dim va As Double=sql.ExecQuerySingleResult( _ ' "SELECT SUM(montant) FROM depenses WHERE idlieu = " & f ) where f is an id in a list ( 'Dim f As Int=li.Get(t)') appears...
  3. Radisk3

    B4J Question Reading PDF fields with B4J

    Dear all From the little I know about Python, I can create a code, using the "fitz", "os" and "re" libraries to open PDF and find data within it, split PDF, save files. Something simple but effective where I can find fields and extract data. Example of a Python function that searches for data...
  4. peacemaker

    B4J Tutorial jBluetooth under Linux: also works

    But if to make lots of preparations: 0. Do not forget to include into the B4J library folder file: www.b4x.com/b4j/files/bluecove-2.1.1-SNAPSHOT.jar 1. Install Linux Bluetooth Bluecove stack (the library we have, thanks, @Erel): 2. Include the user into "bluetooth" group: 4. Setup driver...
  5. MicroDrie

    Share My Creation Interactive expandable multi B4XPages Drawer menu (tested in B4J and B4A)

    In the five years that I have been using my single B4XPage expandable Drawer menu in B4J and B4A, both the IDEs and the B4X components have evolved. The time was ripe to create a new version called m3Menu. Below the result and an overview of the possibilities: The starting point was that the...
  6. peacemaker

    B4J Tutorial Creating Linux DEB-package for GUI B4J app

    This tutorial is made for Linux JDK14 set Java + JavaFX for B4J practically, AI suggestions were partially OK only. The .jar app file is compiled at Windows developer host. Very important part is the starting line of the GUI app under Linux, here the correct starting line after the...
  7. Mariano Ismael Castro

    B4J Question [PyBridge] Calling asynchronous functions in python

    Hi I'm trying to call an asynchronous function in python using the new pybridge framework but I can't get it to work. I attach part of my code and an example project, greetings Private Sub AsyncFunction As PyWrapper Dim Code As String = $" import asyncio async def AsyncFunction()...
  8. leozera

    B4J Library [B4J][EasyHTML - Simplified HTML Element Creation] 🚀

    What is EasyHTML? 🏗️ EasyHTML is a lightweight and intuitive library designed to simplify the creation of HTML elements using an object-oriented approach. With support for attributes, classes, styles, and even HTMX integration, EasyHTML makes it effortless to generate dynamic HTML structures...
  9. rgarnett1955

    Share My Creation Greenhouse Budddy: Using MySQL Database with jRDC

    I have a greenhouse which uses and STM32h7 processor to control the temperature. The controller has an ethernet port using LwIP. This port connects to a wireless bridge into my home LAN. I use a c# system tray application to get the data from the LAN an put it into an MySQL db. The ethernet...
  10. W

    B4J Library [Class] wmB4Jargs - command line arguments validation and processing

    See title. Example code (from the attached demo project): Sub AppStart (Args() As String) Dim wmB4Jargs1 As wmB4Jargs wmB4Jargs1.Initialize wmB4Jargs1.AddStandaloneArg("--nodetails", "-n", "This (optional) argument stands alone and does not need a value", False)...
  11. walterf25

    B4J Question ABMaterial JQPlots charts resizing issue

    I am working on a project and I am using a JQPlot class I found on this thread while the class works great I noticed that the charts/plots don't get resized when the entire page gets resized. I have placed each plot on a container, the container gets resized just fine but not the plots. This is...
  12. teddybear

    Share My Creation [B4J] A simple LaTeX image generator

    It is the last day of 2024, I am glad to share a simple library for LaTeX mathematical expressions. LaTeX is a typesetting system,its markup describes the content and layout of the document, the library I wrapped is only for mathematical expressions. license GPL2.0 It is very simple, only one...
  13. A

    B4J Question Shell.run no output

    I tried a few different ways, I couldn't make this shell output work. I tested .jar on ubuntu, when I run same code it works. Not raising also any exception. It is a console application. Looks like when I make shell call, application stops working. Never reaches to Log("Operation complete")...
  14. DK_Hirani

    Android Question How to fix X2BodyWrapper error ate compile time

    Hi, I am trying to compile but I am having this error : Parsing code. Error Error parsing program. Error description: Unknown type: game Are you missing a library reference? Error occurred on line: 5 (X2BodyWrapper) Public mGame As Game I have installed XUI2D internal library. Thanks in advance
  15. Global Robot Empire

    B4J Question Copy File From Phone (USB Cable) To Desktop Using B4J Code

    I have tried to search for a solution, but can't find it Does anyone know what is the FILEPATH of the Phone's Internal Storage - when connected to the Desktop? I want to Copy files from the Phone to Desktop - using B4J Code Like this example: File.Copy(Phone's FilePath of Internal Storage...
  16. C

    B4J Question Protect editing of a PDF

    Hello everyone. I use PDFBox (version 0.27) with B4J to create a PDF and I would like to protect it against modification when saving the document. Thank you for your help or for another lead
  17. alwaysbusy

    LLM's and the importance of using RAG in the chain

    I have been working on a library to use LLM's (like openAI) in B4J for our company. Using OpenAI is pretty simple to do with their REST API, but it quickly becomes quite costly as they not only make you pay for the output, but also for the input. In comes RAG (Retrieval Augmented Generation). It...
  18. D

    B4J Question Best way to handle text size and color

    Hi, Guys I am working on a project originally written in B4A and moving it to a B4Xpages project. I am currently working of the B4J version and having problems handling text size and color of an object to be inserting into a customlistview view of textItems . In B4A I use CSBuilder and passed...
  19. Schakalaka

    Italian Generatore PDF - gestire le nuove pagine

    ciao a tutti. sto provando a creare un generatore di pdf, contenente del testo semplice e dei campi da compilare in un form, prima di generarlo. sto usando la classe cPDF (https://www.b4x.com/android/forum/threads/b4x-pdf-generator-b4x-cross-platform-class-100-b4x-code.145181/#content) ma il...
  20. G

    Android Question How to read JSON files from a remote server?THANKS!

    prefdialog.LoadFromJson(File.ReadString(File.DirAssets, "Example.json"))
Top