Scala can be used to build Android applications, as an alternative to Java or Kotlin. Unlike them, setting up an Android project in Scala with SBT is not straightforward, and can give us some headaches to get it right. To show how this can be done, we are going to create new project template using the Android SDK Plugin for SBT.
In this article, we will show how to create a custom database-backed UserDetailsService for authentication with Spring Security. The UserDetailsService interface is used to retrieve user-related data. It has one method named loadUserByUsername() which finds a user entity based on the username and can be overridden to customize the process of finding the user.
If you are curious to find out if your Windows 10 PC has a Trusted Platform Module (TPM), here is a simple method which will help you to determine it. Just follow the steps in this article. Trusted Platform Module is a special security standard which describes a hardware chip embedded in your PC's motherboard.
You can find Tomcat and java version running on Linux either by executing the org.apache.catalina.util.ServerInfo class from catalina.jar or by executing version.sh shell script. The first solution will work on any operating system including Windows and UNIX because it's using a Java class from a catalina.jar file, which is platform independent.
This post has some example PHP code which can be used to work out which error_reporting levels are reported and which are not from an integer value. Either use the $error = error_reporting() line to work out the error reporting levels for the current setting, or use a hard-coded value, replacing 22527 in the example code...
I have some automated processes that receive updates via email attachments which are base64 encoded. The entire email is backed up into a text file, and very occasionally I need to check what was in an attachment. The command line base64 tool can help with this, either decoding a file or standard input.
Using the "ls" command to list directory contents from the command line with the -l flag will include the date and time down to the minute, but not show the seconds. This post shows how to display the seconds as well with bash on Linux and OSX.
For most system administrators, Remote Desktop is one of the most used features in Windows. As good as it is, every time you select the “Make sure that you trust this PC” option, you are taking a risk of compromising your machine by revealing your remote desktop credentials. This is particularly true if the remote system is unknown to you or if it is infected in some way.
Here’s a quick one minute video demonstration on the main Microsoft Access database tools available for your reference. This video tutorial is based on Access 2010 but it applies to all versions (albeit maybe found in other parts of the application).
One of the great things about Windows 10 (and on nearly every version of the operating system) is that you always have multiple ways to access and change settings. For example, if you need to restart, sleep, or shutdown you computer, you can access the Power options menu from the Start menu. You can right-click the Start button and select one of the options from "Shut down or sign out". You can use specific commands on Run or Command Prompt, and you can even access the Power options in the Sign-in screen.
One of Jekyll’s noteworthy new features is the ability create official themes in the form of Ruby gems. These themes can be installed by a Jekyll user to style their static blog or website with ease, leaving them to manage their content. In this tutorial, we’re going to extend upon Kezz’s post by converting our template into an official Jekyll theme gem.
File Handing in java comes under IO operations. Java IO package java.io classes are specially provided for file handling in java. Some of the common file handling operations are; Create file Delete file Read file Write file Change file permissions Let’s look into each of these file handling operations through java program example.
Some laptops come with “Wi-Fi” function keys or switches that can quickly enable or disable your Wi-Fi. If your PC doesn’t have one of these, though, you can make one with the tools built into Windows. You’ll need to start by creating a desktop or start menu shortcut. Once you’ve done that, you can invoke it with a keyboard shortcut, if you like.
To disable or bypass SSL certificate checking is never a recommended solution for SSL issues, but at test environment – sometimes you may need this. In this tutorial, I am creating instances of org.apache.http.impl.client.DefaultHttpClient available till Apache HTTP Library version 4.2 and org.apache.http.impl.client.CloseableHttpClient available since Apache HTTP Library version 4.3. DefaultHttpClient is deprecated class now, so it’s suggested to use CloseableHttpClient class.
Want to count rows and/or columns in a range with Excel no matter what content they contain? This post shows you how. Use this formula, where you want the number of rows selected from e.g. A1 to A10...
We use Zend Lucene Search on a PHP ecommerce website and ran into some issues where records added to the search index from the website interface weren't the same as when created from the command line. It turned out to be a locale issue and setting the locale fixed the problem.
To ensure that the Windows To Go workspace is able to move between computers easily, hibernation is disabled by default. This tutorial will show you how to enable or disable allowing the hibernation sleep state (S4) when started from a Windows To Go workspace USB flash drive on your Windows 10 PC.
Windows To Go is a feature available only in the Windows 10 Pro, Windows 10 Enterprise and Windows 10 Education editions that enables the creation of a Windows To Go workspace that can be booted from a USB-connected external drive on PCs (hosts). This tutorial will show you how to enable or disable allowing the sleep states (S1-S3) when started from a Windows To Go workspace USB flash drive on your Windows 10 PC.
This tutorial will show you how to add a Change Network Location desktop context menu to toggle the current network connection to be private or public in Windows 10. You must be signed in as an administrator to be able to add, remove, and use the "Change Network Location" context menu.
Ever wonder how to sync wheel rotation with a track system, like a conveyor belt to tank tracks? Well, in Cinema 4D it’s a matter of using the Mograph Cloner, Xpresso, and some maths. Shane Benson covers one method for syncing wheel rotations with a track system, where the concepts covered can be useful for a lot of different tasks.