Virtual Box Tips
Mount a shared folder on a linux (Debian) guest: Make sure you have already installed the Virtual Box Guest Additions. Set up a ‘transient’ folder via the Virtual Box GUI (Devices > Shared Folders) In a terminal window in the…
sharing the power of code
sharing the power of code
Mount a shared folder on a linux (Debian) guest: Make sure you have already installed the Virtual Box Guest Additions. Set up a ‘transient’ folder via the Virtual Box GUI (Devices > Shared Folders) In a terminal window in the…
If you have to encode a reserved character (such as ‘/’ or ‘@’) so that it can be passed in a URI path, you may need to encode it twice: Example: const ticker = ‘@SMC/2018’, encodedTicker = encodeURIComponent(encodeURIComponent(ticker)), uri =…
This is an example of ‘security through obscurity‘. This assumes you’ve already installed WordPress. Backup DB Make a backup of your WordPress database. Edit wp-config.php Edit this line in file wp-config.php: $table_prefix = ‘wp_’; so that ‘wp_’ has some short…
Recursion in programming can be a mind bender. Here are two examples of recursive functions coded in JavaScript. These examples are dependent on lodash methods. Hopefully these code patterns are useful to you. I find them useful as starting points…
This outputs your stuff in a folder called ‘packageName’: tar -xvzf packageName.tar.gz This can help tell you what version of linux or at least linux kernel you are running: uname -a Find a process and kill it: Run…
Worth Reading: Especially this at the very bottom of that page: By ‘expose an API’, they mean ‘add some this.doSomething() {…} functions to the controller that are reachable from outside the controller’. Like public class methods. If you’re not…
If you are getting this error when trying to start a Grails Project in Intellij: Error starting Grails: com/springsource/loaded/ri/ReflectiveInterceptor try deleting the ./.slcache folder at the top level of your project: projectname/.slcache This problem came when I was trying to…
Change Drive from Command Line You are here: D:\ You want to go here: C:\ Type just: C: and hit enter. You are here: C:\Windows\System32\drivers\ You want to go here: C:\ Type: C:\ and hit enter. Notice you have to…
Assumptions: You are running Neo4J Community Edition 3.2.1 or greater on a Linux VM on Azure You have a wildcard SSL cert purchased from Azure and stored in an Azure keyvault You can run Powershell ISE on a Windows machine…