Labels

Android (1) Apache (1) bash (2) boost (2) C (37) C++ (5) cheatsheet (2) CLion (6) css (3) Debian (34) DL (17) dns (1) Docker (3) Dreamweaver (2) Eclipse (3) fail2ban (5) git (6) GitHub (5) Hacking (4) html (8) http (1) iOS (1) iPad (1) IRC (1) Java (33) javascript (3) Linux (182) Mac (21) Machine Learning (1) mySQL (53) Netbeans (6) Networking (1) Nexus (1) OpenVMS (6) Oracle (4) Pandas (3) php (17) Postgresql (8) Python (9) raid (1) RedHat (15) Samba (2) Slackware (52) SQL (14) ssh (1) svn (1) tar (1) ThinkPad (1) Virtualbox (4) Visual Basic (2) Visual Studio (1) Windows (7) wire (1)

Thursday, 9 January 2020

Replacing postgres database

This is applicable to the Peon application, in so far as when the PAF data is updated and a new database is created, normally to a temp test database for testing, afterwhich a renaming or replacing of working database is required.

Wednesday, 11 December 2019

Java Component tab order

To set the component tab order in a java application, specifically in Netbeans;

Wednesday, 4 December 2019

multiple JAR files signed with different certificates

REF: https://docs.oracle.com/javase/8/docs/technotes/guides/javaws/developersguide/faq.html#s213

Basically, if I have multiple jar files, some of which are signed by a different certificate, then we need to create separate jnlp files for these resources.

TLDR - Signing each jar with the same certificate, seems to work, regardless if it has been signed before.

Sunday, 1 December 2019

Code signing with Certum and SimplySign

What follows are my own personal notes relating to the purchase, installation and use of Code signing with Certum and SimplySign.

Sensitive or personal information has been removed from this post.


Friday, 22 November 2019

Updating java GUI components

I've had numerous problems over the years trying to update java components such as labels before carrying out other tasks and reaearch tells me that Threads are the way to do this.

see also: java-threads.html

Connect to Windows share from Linux command line.

An example of connecting to a Windows share from Linux command line;

smbclient //IP_ADDRESS/SHARE_NAME -U username

smbclient //192.168.254.198/public -U username

Then you will be promted for the password and find yourself at the smb: \> prompt.

You can then use;
ls for a listing of files
get filename to grab a file
cd folder to change directory
...etc

exit to exit

You can use the below example to mount a Windows share in Linux:


sudo mount -t cifs -o username="windows user name" //corefile01.core.local/dalzell/Shared/IT /mnt/tmp 

Thursday, 21 November 2019

Java Threads and populating a list in real time

Thread t = new Thread(new Runnable()
            {
                @Override
                public void run()
                {
                    //do Work here...
                }

            });
            t.start();



Java jList

To create a jList and populate it in real time;

Thursday, 14 November 2019

Setup Postgres on Slackware


TODO: Add Slackware install

with user postgres run psql

CREATE DATABASE dbname;


GRANT ALL ON DATABASE dbname TO postgres;