JRDC and Periodic backup of MySql database
I want to share this piece of code found on internet. Really it has nothing to deal with B4J programming, but anybody that uses JRDC will find useful to make a regular backup of the MySql database. So, it''s a batch file.
@marcick · 2017-06-13
Load A JDBC Driver Dynamically At Run Time Using Inline Java
Load A JDBC Driver Dynamically At Run Time Using Inline Java
@keirS · 2017-06-13
Google Maps API Key
Oops! Something Went Wrong! (when trying to display a Google Map in your app). You need a key. Get a browser based key.
@Harris · 2017-05-14
Persistent JDBC Session - Store session data in database [Server]
Call this sub after the server is started (srvr.Start). The sessionIds and SessionData tables will be automatically created (your database user needs to have the privileges to create tables) This is usefull if you have many instances of an app and you want the session to be shared between them. And if you restart the server you don''t lose your session data. This is for the current B4J jetty version (9.3) More about this: http://www.eclipse.org/jetty/documentation/9.3.x/session-clustering-jdbc.html
@mindful · 2017-04-21
Sqlite version
Get the Sqlite version number
@B4JExplorer · 2017-04-21
First stab at Functional Map, Reduce and Filter in B4J
First stab at Functional Map, Reduce and Filter in B4J
@B4JExplorer · 2017-04-17
JustGauge 1.2.2 Custom Component [ABMaterial]
JustGauge 1.2.2 Custom Component [ABMaterial]
@Mashiane · 2017-04-08
IsUnsignedInteger/IsSignedInteger/IsUnsignedDecima l/IsSignedDecimal/GetDecimalSeparator
Test if strings are numeric
@walt61 · 2017-04-05
delegating the response management [RDC snippet]
delegating the response management [RDC snippet]
@Cableguy · 2017-02-21
Configure Tooltip timings
I have found that the tooltip delay is too long most of the time, searching google I found this:https://gist.github.com/darmbrust/9559744d1b1dada434a3 This is a straight implementation of this code.
@stevel05 · 2017-02-17
Solitaire (simple game) with sources
Solitaire (simple game) with sources
@BeneBarros · 2017-02-15
It is not an MDI. But the idea works.
It is not an MDI. But the idea works.
@BeneBarros · 2017-02-13
Random String Password
I needed to generate a random password (string) of variable length that contains a mix of upper/lower case and numbers. It also avoids special characters. It is random and there are no checks - so there are no guarantees that it would meet complexity rules. Im sure there are better ways to do this but I just needed something quickly.
@tchart · 2017-01-31
Skins
Skins
@BeneBarros · 2017-01-23
Get URL from String using RegEx
Get URL from String using RegEx
@mindful · 2017-01-20
Password SHA512 hash and salt
Generates a SHA512 hash of a string based on a given salt
@mindful · 2017-01-08
Leds and switches
Leds and switches
@BeneBarros · 2016-12-30
Download file using HttpUtils and webView with cookies
Download file using HttpUtils and webView with cookies
@mc73 · 2016-12-04
Responsive Design - Input Footer [ABMaterial]
This is always a challenge. A phone in portrait mode is nothing like a tablet or desktop in landscape... Fortunately, we can adjust the appearance for phone or desktop. I don''t worry about tablets since they automatically take the best from both (upper and lower) screen views.
@Harris · 2016-12-01
Spinner View Change Style Arrows
The default style class of the Spinner View (since B4J 4.70), has the arrows to the right and stacked vertically. This can be changed using a different style class: arrows-on-right-horizontal, arrows-on-left-vertical, arrows-on-left-horizontal, split-arrows-vertical, split-arrows-horizontal
@rwblinn · 2016-12-01
How to set ''MainForm'' both as Utility and as Transparent
A form cannot be styled to be BOTH as UTILITY and as TRANSPARENT... So I found a little workaround
@Cableguy · 2016-11-22
Browser Window Session Store [Server] [WebSockets] [WebApp]
This is a code helper. It can be used to identify the browser window/tab and/or store attributes in session referencing that window/tab. This can be helpful if you users use your app with multiple tabs opened in one browser (because multiple tabs in the same browser share the same session).
@mindful · 2016-11-20
Check if browser has cookies enabled [Server] [WebSockets] [ABMaterial]
You can check if browser has cookies enabled using this code based on the navigator object
@mindful · 2016-11-16
Disable/Enable cache for specific static files [Server]
Disable/Enable cache for specific static files [Server]
@mindful · 2016-11-16
Form Change Cursor Image
A snippet which changes the form cursor to an image which is located in the files (dirasset) folder.
@rwblinn · 2016-11-07
IP Address validation using RegEx
IP Address validation using RegEx for IPv4 and IPv6
@mindful · 2016-11-07
Persistent sessions [Server]
Session are usually stored in memory so if you restart the server all the sessions (including their attributes) will be lost. So if you want to save sessions data on disk place the code below in the code module and call the sub ServerUsePersistentSessions.
@mindful · 2016-11-07
Session and session attribute events [Server]
Session and session attribute events [Server]
@mindful · 2016-11-07
IsEmptyString() function
Returns True if x parameter is empty string or null
@amminf · 2016-11-03
New component ABMCustomCard in 2.01 [ABMaterial]
ABMCustomCard allows you to build revealing cards using all kind of other ABMComponents.
@alwaysbusy · 2016-11-03