Posts

Digital Marketing

Running Visual Studio Code on macOS from the command line

You can also run VS Code from the terminal by typing 'code' after adding it to the path: Launch VS Code. Open the Command Palette (F1) and type 'shell command' to find the Shell Command: Install 'code' command in PATH command.

How to Set up Java EE GlassFish Cluster

After you configure one machine to have a GlassFish domain, open the admin console at localhost:4848 and select “Clusters” and create a new one for example i88caCluster. Once that’s created, click the cluster you’ve just created, go to the “Instances” tab and create a new server instance such as i88caSrv1. Now we have a cluster with an instance, we can start the cluster from the cluster’s “General” tab. On the second machine, make sure GlassFish is installed and create another server as follows: asadmin --host <machine1> --port <admin port> create-local-instance --cluster i88caCluster i88caSrv2 When you invoke this command, the asadmin tool on the local machine doesn’t actually execute the command; it simply asks the asadmin tool on the remote machine you specify to execute it. So if you were to type “asadmin list-instances” afterwards on machine 2, the list would be empty even though a server instance physically resides on the machine. Running the same command on the machi...

Fixed: MySQL: You are enforcing ssl conection via unix socket. Please consider switching ssl off as it does not make connection via unix socket any more secure.

A user connecting with unix socket files is necessarily coming from localhost. A user connecting with TCP could be from either localhost or from some other host. So, create one user@otherHost (or at %, or whatever) with REQUIRE SSL, and create another user@localhost which does not REQUIRE SSL. It's not perfect, because a user could connect over TCP without SSL, but only on localhost, so it's probably not that big a concern.

How to copy your file to your clipboard from command line on Linux

For example, copy your ssh public key to your clipboard: xclip -sel clip < ~/.ssh/id_rsa.pub $ mongoimport --help | xclip -sel clip See also: xclip - command line interface to X selections (clipboard)

How to copy your file to your clipboard from command line on Linux

For example, copy your ssh public key to your clipboard: xclip -sel clip < ~/.ssh/id_rsa.pub $ mongoimport --help | xclip -sel clip See also: xclip - command line interface to X selections (clipboard)

Google Hosted Libraries and Cloudflare’s CDNJS

The Google Hosted Libraries is a content distribution network for the most popular, open-source JavaScript libraries. To add a library to your site, simply use<script> tags to include the library. Available Libraries AngularJS Angular Material Dojo Ext Core jQuery jQuery Mobile jQuery UI MooTools Prototype script_aculo_us SPF SWFObject three.js Web Font Loader Cloudflare’s CDNJS boasts that it is in fact much faster than Google Hosted Libraries. It hosts much more javascript tools than what are available through Google. CDNJS seems to have a great selection. It also has the ability to add a library yourself via GitHub . See also: CDN (Content Delivery Network) providers

JConsole - a monitoring tool that complies to the Java Management Extensions (JMX) specification

The JConsole graphical user interface uses the extensive instrumentation of the Java Virtual Machine (Java VM) to provide information about the performance and resource consumption of applications running on the Java platform. You start JConsole by typing the following command at the command line. % jconsole Once you have connected JConsole to an application, JConsole is composed of six tabs. Overview: Displays overview information about the Java VM and monitored values. Memory: Displays information about memory use. Threads: Displays information about thread use. Classes: Displays information about class loading. VM: Displays information about the Java VM. MBeans: Displays information about MBeans.