Are you over 18 and want to see adult content?
More Annotations
A complete backup of p-bds002.blogspot.com
Are you over 18 and want to see adult content?
A complete backup of pleasureperfect.tumblr.com
Are you over 18 and want to see adult content?
A complete backup of suplementosyculturismo.info
Are you over 18 and want to see adult content?
A complete backup of schaumstofflager.de
Are you over 18 and want to see adult content?
A complete backup of karigarijewellery.com
Are you over 18 and want to see adult content?
A complete backup of endocrino.org.br
Are you over 18 and want to see adult content?
Favourite Annotations
A complete backup of mafamillezen.com
Are you over 18 and want to see adult content?
A complete backup of weatherguard.com
Are you over 18 and want to see adult content?
A complete backup of yourengagement101.com
Are you over 18 and want to see adult content?
A complete backup of worthplaying.com
Are you over 18 and want to see adult content?
A complete backup of vacationidea.com
Are you over 18 and want to see adult content?
A complete backup of lynneknowlton.com
Are you over 18 and want to see adult content?
A complete backup of titansfootballauthentics.com
Are you over 18 and want to see adult content?
Text
LOGGING IN KOTLIN
This will work, but doesn’t look like idiomatic Kotlin to me. For starters, you are referencing both the Logger and LoggerFactory alongside the Java version of the target class. There is also the bigger problem of the fact that this will create a new logger for each instance of Something - not very efficient at all in certain cases..Companion Object
KTOR - FILE UPLOAD AND DOWNLOAD - RYAN HARRISON The documentation also includes a suspending copyTo method which can be used to save the upload to a file in a non-blocking way.. File Download. File downloads are very straightforward in Ktor.You just have to create a handle to the specified File and use the respondFilemethod:
HOW TO DYNAMICALLY CHANGE LOG LEVELS AT RUNTIME WITH How to Dynamically Change Log Levels at Runtime with Spring Boot 30 Jan 2021. As we can all probably agree, logging is a vital part of anyapplication.
WSL - CREATING A SHORTCUT TO WINDOWS DOCUMENTS - RYAN HARRISON WSL - Creating a shortcut to Windows Documents 16 Jan 2017. Due to the fact that you should never change Linux files using Windows apps and tools when running the WSL, I find myself during the vast majority of work in my Windows documents area and then accessing them directly via Bash.. Your Windows drives are accessible via /mnt using the same drive letters as found in Windows RESTFUL KOTLIN WITH KTOR AND EXPOSED As we have set up Jackson before, we can just return a basic kotlin data object and it will be converted to json without any additional work from us. Finally, we need to create the widget service to handle the logic of saving and retrieving our model. Setting up Exposed. Exposed is another JetBrains sponsored library for database interactions in Kotlin. . It is a kind of ORM, but unlike CYGWIN CHANGE HOME DIRECTORY Cygwin Change Home Directory 01 Dec 2015. In a new installation of Cygwin, your home directory will be in C:/cygwin/home//, and can be accessed by the usual ~ shortcut. Although this works just fine, it’s often useful to use the utilities provided by Cygwin in your local Windows user area C:/Users/.Manually navigating to your Windows home directory can be a tedious process as you KOTLIN & JAVA CI WITH GITHUB ACTIONS WSL2 - BETTER MANAGING SYSTEM RESOURCES - RYAN HARRISON WSL2 - Better Managing System Resources 13 May 2021. WSL2 is great, but unfortunately after moderate usage it’s easy to get in a situation where it will eat up all of your disk space and use up to 50% of your total system memory. AGGREGATING AND VISUALIZING SPRING BOOT METRICS WITH Aggregating and Visualizing Spring Boot Metrics with Prometheus and Grafana 02 Jun 2021. Note: this is a follow-up post covering the collection and visualization of Spring Boot metrics within distributed environments. Make sure to take a look at Gathering Metrics with Micrometer and Spring Boot Actuator which outlines using Micrometer to instrument your application with some of the built-in INLINE CODE IN WORDPRESS Inline code in WordPress 11 Oct 2013. When posting recently it’s become quite annoying that there is no default way of presenting inline code in posts.LOGGING IN KOTLIN
This will work, but doesn’t look like idiomatic Kotlin to me. For starters, you are referencing both the Logger and LoggerFactory alongside the Java version of the target class. There is also the bigger problem of the fact that this will create a new logger for each instance of Something - not very efficient at all in certain cases..Companion Object
KTOR - FILE UPLOAD AND DOWNLOAD - RYAN HARRISON The documentation also includes a suspending copyTo method which can be used to save the upload to a file in a non-blocking way.. File Download. File downloads are very straightforward in Ktor.You just have to create a handle to the specified File and use the respondFilemethod:
HOW TO DYNAMICALLY CHANGE LOG LEVELS AT RUNTIME WITH How to Dynamically Change Log Levels at Runtime with Spring Boot 30 Jan 2021. As we can all probably agree, logging is a vital part of anyapplication.
WSL - CREATING A SHORTCUT TO WINDOWS DOCUMENTS - RYAN HARRISON WSL - Creating a shortcut to Windows Documents 16 Jan 2017. Due to the fact that you should never change Linux files using Windows apps and tools when running the WSL, I find myself during the vast majority of work in my Windows documents area and then accessing them directly via Bash.. Your Windows drives are accessible via /mnt using the same drive letters as found in Windows RESTFUL KOTLIN WITH KTOR AND EXPOSED As we have set up Jackson before, we can just return a basic kotlin data object and it will be converted to json without any additional work from us. Finally, we need to create the widget service to handle the logic of saving and retrieving our model. Setting up Exposed. Exposed is another JetBrains sponsored library for database interactions in Kotlin. . It is a kind of ORM, but unlike CYGWIN CHANGE HOME DIRECTORY Cygwin Change Home Directory 01 Dec 2015. In a new installation of Cygwin, your home directory will be in C:/cygwin/home//, and can be accessed by the usual ~ shortcut. Although this works just fine, it’s often useful to use the utilities provided by Cygwin in your local Windows user area C:/Users/.Manually navigating to your Windows home directory can be a tedious process as you KOTLIN & JAVA CI WITH GITHUB ACTIONSRYAN HARRISON
Note: this is a follow-up post covering the collection and visualization of Spring Boot metrics within distributed environments. Make sure to take a look at Gathering Metrics with Micrometer and Spring Boot Actuator which outlines using Micrometer to instrument your application with some of the built-in Spring Boot integrations and how to start defining and capturing custom metrics. CYGWIN CHANGE HOME DIRECTORY Cygwin Change Home Directory 01 Dec 2015. In a new installation of Cygwin, your home directory will be in C:/cygwin/home//, and can be accessed by the usual ~ shortcut. Although this works just fine, it’s often useful to use the utilities provided by Cygwin in your local Windows user area C:/Users/.Manually navigating to your Windows home directory can be a tedious process as youLOGGING IN KOTLIN
This will work, but doesn’t look like idiomatic Kotlin to me. For starters, you are referencing both the Logger and LoggerFactory alongside the Java version of the target class. There is also the bigger problem of the fact that this will create a new logger for each instance of Something - not very efficient at all in certain cases..Companion Object
RESTFUL KOTLIN WITH KTOR AND EXPOSED As we have set up Jackson before, we can just return a basic kotlin data object and it will be converted to json without any additional work from us. Finally, we need to create the widget service to handle the logic of saving and retrieving our model. Setting up Exposed. Exposed is another JetBrains sponsored library for database interactions in Kotlin. . It is a kind of ORM, but unlike C# - AUTO CLICKER - RYAN HARRISON Related Posts. Aggregating and Visualizing Spring Boot Metrics with Prometheus and Grafana 02 Jun 2021 WSL2 - Better Managing System Resources 13 May 2021 Prometheus Monitoring Guide Part 2 - PromQL and Recording Rules 18 Apr 2021 MAKE HTTP REQUESTS IN KOTLIN Make HTTP Requests in Kotlin 15 Jun 2018. Updated 09/18 - Add section on the new HTTP Client in JDK 11. These days making HTTP requests in any language is a staple of many common workflows and features. This post will go through a few of the methods in which you can make such requests in Kotlin using some of the great open source librariesavailable.
ANGULAR - PROXY API REQUESTS - RYAN HARRISON Angular - Proxy API Requests 29 Feb 2020. If you are developing with Angular locally, then chances are you also have some kind of API server also running on the same machine that you need to make requeststo.
C# - THE GOOGLE CURRENCY API - RYAN HARRISON C# - The Google Currency API 15 Jul 2011. NOTE: The Google Finance API has now been deprecated so this code will no longer work. After I found myself using Google to translate currencies, I wondered whether it would be possible to utilise this functionality in a program. TESTING RESTFUL SERVICES IN KOTLIN WITH REST ASSURED Testing RESTful Services in Kotlin with Rest Assured 10 Feb 2019. If you’re not writing a Spring application, creating good integration tests for RESTful endpoints (or any other web service) isn’t always the easiest - especially when you aren’t working in a dynamicallytyped language.
JAVA - CALCULATE THE HARMONIC MEAN - RYAN HARRISON Here is a small snippet to calculate the harmonic mean of a data set.The harmonic mean is defined as:public static double harmonicMean(double data) { do WSL2 - BETTER MANAGING SYSTEM RESOURCES - RYAN HARRISON WSL2 - Better Managing System Resources 13 May 2021. WSL2 is great, but unfortunately after moderate usage it’s easy to get in a situation where it will eat up all of your disk space and use up to 50% of your total system memory. AUTOMATICALLY UPDATE DEPENDENCIES WITH GITHUB DEPENDABOT Automatically Update Dependencies with GitHub Dependabot 05 Sep 2020. With the introduction of Actions, GitHub is quickly becoming the one-stop shop for all things CI.But one, perhaps less well-known feature, is dependabot which allows you to automatically keep all your dependencies up to date. Depending on which language/framework you are using, making sure all your libraries are on AGGREGATING AND VISUALIZING SPRING BOOT METRICS WITH Aggregating and Visualizing Spring Boot Metrics with Prometheus and Grafana 02 Jun 2021. Note: this is a follow-up post covering the collection and visualization of Spring Boot metrics within distributed environments. Make sure to take a look at Gathering Metrics with Micrometer and Spring Boot Actuator which outlines using Micrometer to instrument your application with some of the built-in PROMETHEUS MONITORING GUIDE PART 2 Prometheus Monitoring Guide Part 2 - PromQL and Recording Rules 18 Apr 2021. Part 1 - Installation and Instrumentation; PromQL. Prometheus provides a functional query language called PromQL (Prometheus Query Language) that lets the user HOW TO DYNAMICALLY CHANGE LOG LEVELS AT RUNTIME WITH A lot of the same configuration changes you would previously have made in those dedicated files can now also be set as simple application properties. For example, to change the global root log level to DEBUG, we can just add the following to application.properties (or YAML equivalent): logging.level.root=DEBUG. RESTFUL KOTLIN WITH KTOR AND EXPOSED As we have set up Jackson before, we can just return a basic kotlin data object and it will be converted to json without any additional work from us. Finally, we need to create the widget service to handle the logic of saving and retrieving our model. Setting up Exposed. Exposed is another JetBrains sponsored library for database interactions in Kotlin. . It is a kind of ORM, but unlike INLINE CODE IN WORDPRESS Inline code in WordPress 11 Oct 2013. When posting recently it’s become quite annoying that there is no default way of presenting inline code in posts. WSL - CREATING A SHORTCUT TO WINDOWS DOCUMENTS - RYAN HARRISON WSL - Creating a shortcut to Windows Documents 16 Jan 2017. Due to the fact that you should never change Linux files using Windows apps and tools when running the WSL, I find myself during the vast majority of work in my Windows documents area and then accessing them directly via Bash.. Your Windows drives are accessible via /mnt using the same drive letters as found in Windows C# - AUTO CLICKER - RYAN HARRISON C# - Auto Clicker. 14 Jun 2011. I recently got a link to a Facebook app which challenges you to how many times you can click a button in 30 seconds. After a couple of tries I got to around 180, yet I thought that I must be able to do better by making the computer click for me. After a bit of research I came across two functions from MSDN named CYGWIN CHANGE HOME DIRECTORY Cygwin Change Home Directory 01 Dec 2015. In a new installation of Cygwin, your home directory will be in C:/cygwin/home//, and can be accessed by the usual ~ shortcut. Although this works just fine, it’s often useful to use the utilities provided by Cygwin in your local Windows user area C:/Users/.Manually navigating to your Windows home directory can be a tedious process as you WSL2 - BETTER MANAGING SYSTEM RESOURCES - RYAN HARRISON WSL2 - Better Managing System Resources 13 May 2021. WSL2 is great, but unfortunately after moderate usage it’s easy to get in a situation where it will eat up all of your disk space and use up to 50% of your total system memory. AUTOMATICALLY UPDATE DEPENDENCIES WITH GITHUB DEPENDABOT Automatically Update Dependencies with GitHub Dependabot 05 Sep 2020. With the introduction of Actions, GitHub is quickly becoming the one-stop shop for all things CI.But one, perhaps less well-known feature, is dependabot which allows you to automatically keep all your dependencies up to date. Depending on which language/framework you are using, making sure all your libraries are on AGGREGATING AND VISUALIZING SPRING BOOT METRICS WITH Aggregating and Visualizing Spring Boot Metrics with Prometheus and Grafana 02 Jun 2021. Note: this is a follow-up post covering the collection and visualization of Spring Boot metrics within distributed environments. Make sure to take a look at Gathering Metrics with Micrometer and Spring Boot Actuator which outlines using Micrometer to instrument your application with some of the built-in PROMETHEUS MONITORING GUIDE PART 2 Prometheus Monitoring Guide Part 2 - PromQL and Recording Rules 18 Apr 2021. Part 1 - Installation and Instrumentation; PromQL. Prometheus provides a functional query language called PromQL (Prometheus Query Language) that lets the user HOW TO DYNAMICALLY CHANGE LOG LEVELS AT RUNTIME WITH A lot of the same configuration changes you would previously have made in those dedicated files can now also be set as simple application properties. For example, to change the global root log level to DEBUG, we can just add the following to application.properties (or YAML equivalent): logging.level.root=DEBUG. RESTFUL KOTLIN WITH KTOR AND EXPOSED As we have set up Jackson before, we can just return a basic kotlin data object and it will be converted to json without any additional work from us. Finally, we need to create the widget service to handle the logic of saving and retrieving our model. Setting up Exposed. Exposed is another JetBrains sponsored library for database interactions in Kotlin. . It is a kind of ORM, but unlike INLINE CODE IN WORDPRESS Inline code in WordPress 11 Oct 2013. When posting recently it’s become quite annoying that there is no default way of presenting inline code in posts. WSL - CREATING A SHORTCUT TO WINDOWS DOCUMENTS - RYAN HARRISON WSL - Creating a shortcut to Windows Documents 16 Jan 2017. Due to the fact that you should never change Linux files using Windows apps and tools when running the WSL, I find myself during the vast majority of work in my Windows documents area and then accessing them directly via Bash.. Your Windows drives are accessible via /mnt using the same drive letters as found in Windows C# - AUTO CLICKER - RYAN HARRISON C# - Auto Clicker. 14 Jun 2011. I recently got a link to a Facebook app which challenges you to how many times you can click a button in 30 seconds. After a couple of tries I got to around 180, yet I thought that I must be able to do better by making the computer click for me. After a bit of research I came across two functions from MSDN named CYGWIN CHANGE HOME DIRECTORY Cygwin Change Home Directory 01 Dec 2015. In a new installation of Cygwin, your home directory will be in C:/cygwin/home//, and can be accessed by the usual ~ shortcut. Although this works just fine, it’s often useful to use the utilities provided by Cygwin in your local Windows user area C:/Users/.Manually navigating to your Windows home directory can be a tedious process as youRYAN HARRISON
Note: this is a follow-up post covering the collection and visualization of Spring Boot metrics within distributed environments. Make sure to take a look at Gathering Metrics with Micrometer and Spring Boot Actuator which outlines using Micrometer to instrument your application with some of the built-in Spring Boot integrations and how to start defining and capturing custom metrics. PROMETHEUS MONITORING GUIDE PART 2 Prometheus Monitoring Guide Part 2 - PromQL and Recording Rules 18 Apr 2021. Part 1 - Installation and Instrumentation; PromQL. Prometheus provides a functional query language called PromQL (Prometheus Query Language) that lets the user ANGULAR - PROXY API REQUESTS - RYAN HARRISON Angular - Proxy API Requests 29 Feb 2020. If you are developing with Angular locally, then chances are you also have some kind of API server also running on the same machine that you need to make requeststo.
KOTLIN & JAVA CI WITH GITHUB ACTIONS This just touches the surface of what you can do with Github Actions (it is a CI solution after all), focusing specifically on Kotlin or Java projects using Gradle. There are of course an ever increasing number of other supported languages/tools being added (Node, Python, Go, .NET, Ruby), alongside a number of other nice use casesintegrating
C# - AUTO CLICKER - RYAN HARRISON C# - Auto Clicker. 14 Jun 2011. I recently got a link to a Facebook app which challenges you to how many times you can click a button in 30 seconds. After a couple of tries I got to around 180, yet I thought that I must be able to do better by making the computer click for me. After a bit of research I came across two functions from MSDN named MAKE HTTP REQUESTS IN KOTLIN Make HTTP Requests in Kotlin 15 Jun 2018. Updated 09/18 - Add section on the new HTTP Client in JDK 11. These days making HTTP requests in any language is a staple of many common workflows and features. This post will go through a few of the methods in which you can make such requests in Kotlin using some of the great open source librariesavailable.
LOGGING IN KOTLIN
07 May 2018. If you’re coming into Kotlin from Java-land, you’re probably very familiar with the below statement which creates a static reference to a SLF4J logger for the current class: private static final logger = LoggerFactory.getLogger(Something.class); Even though you can of course use SLF4J in Kotlin, you can’t use the above C# - THE GOOGLE CURRENCY API - RYAN HARRISON C# - The Google Currency API 15 Jul 2011. NOTE: The Google Finance API has now been deprecated so this code will no longer work. After I found myself using Google to translate currencies, I wondered whether it would be possible to utilise this functionality in a program. JAVA - CALCULATE THE HARMONIC MEAN - RYAN HARRISON Here is a small snippet to calculate the harmonic mean of a data set.The harmonic mean is defined as:public static double harmonicMean(double data) { do JDBCTEMPLATE QUERYFORINT() IS DEPRECATED JdbcTemplate queryForInt() is deprecated 22 Jun 2014. There is a lot of Spring documentation online which makes use of the queryForInt() and queryForLong methods of the very handy JdbcTemplate class. However, using newer versions of the Spring framework, these methods have now become deprecated (apparently this has happened from version3.2.2).
WSL2 - BETTER MANAGING SYSTEM RESOURCES - RYAN HARRISON WSL2 - Better Managing System Resources 13 May 2021. WSL2 is great, but unfortunately after moderate usage it’s easy to get in a situation where it will eat up all of your disk space and use up to 50% of your total system memory. AUTOMATICALLY UPDATE DEPENDENCIES WITH GITHUB DEPENDABOT Automatically Update Dependencies with GitHub Dependabot 05 Sep 2020. With the introduction of Actions, GitHub is quickly becoming the one-stop shop for all things CI.But one, perhaps less well-known feature, is dependabot which allows you to automatically keep all your dependencies up to date. Depending on which language/framework you are using, making sure all your libraries are on AGGREGATING AND VISUALIZING SPRING BOOT METRICS WITH Aggregating and Visualizing Spring Boot Metrics with Prometheus and Grafana 02 Jun 2021. Note: this is a follow-up post covering the collection and visualization of Spring Boot metrics within distributed environments. Make sure to take a look at Gathering Metrics with Micrometer and Spring Boot Actuator which outlines using Micrometer to instrument your application with some of the built-in KOTLIN & JAVA CI WITH GITHUB ACTIONS HOW TO DYNAMICALLY CHANGE LOG LEVELS AT RUNTIME WITH A lot of the same configuration changes you would previously have made in those dedicated files can now also be set as simple application properties. For example, to change the global root log level to DEBUG, we can just add the following to application.properties (or YAML equivalent): logging.level.root=DEBUG. INLINE CODE IN WORDPRESS Inline code in WordPress 11 Oct 2013. When posting recently it’s become quite annoying that there is no default way of presenting inline code in posts. RESTFUL KOTLIN WITH KTOR AND EXPOSED As we have set up Jackson before, we can just return a basic kotlin data object and it will be converted to json without any additional work from us. Finally, we need to create the widget service to handle the logic of saving and retrieving our model. Setting up Exposed. Exposed is another JetBrains sponsored library for database interactions in Kotlin. . It is a kind of ORM, but unlike WSL - CREATING A SHORTCUT TO WINDOWS DOCUMENTS - RYAN HARRISON WSL - Creating a shortcut to Windows Documents 16 Jan 2017. Due to the fact that you should never change Linux files using Windows apps and tools when running the WSL, I find myself during the vast majority of work in my Windows documents area and then accessing them directly via Bash.. Your Windows drives are accessible via /mnt using the same drive letters as found in Windows MAKE HTTP REQUESTS IN KOTLIN Make HTTP Requests in Kotlin 15 Jun 2018. Updated 09/18 - Add section on the new HTTP Client in JDK 11. These days making HTTP requests in any language is a staple of many common workflows and features. This post will go through a few of the methods in which you can make such requests in Kotlin using some of the great open source librariesavailable.
CYGWIN CHANGE HOME DIRECTORY Cygwin Change Home Directory 01 Dec 2015. In a new installation of Cygwin, your home directory will be in C:/cygwin/home//, and can be accessed by the usual ~ shortcut. Although this works just fine, it’s often useful to use the utilities provided by Cygwin in your local Windows user area C:/Users/.Manually navigating to your Windows home directory can be a tedious process as you WSL2 - BETTER MANAGING SYSTEM RESOURCES - RYAN HARRISON WSL2 - Better Managing System Resources 13 May 2021. WSL2 is great, but unfortunately after moderate usage it’s easy to get in a situation where it will eat up all of your disk space and use up to 50% of your total system memory. AUTOMATICALLY UPDATE DEPENDENCIES WITH GITHUB DEPENDABOT Automatically Update Dependencies with GitHub Dependabot 05 Sep 2020. With the introduction of Actions, GitHub is quickly becoming the one-stop shop for all things CI.But one, perhaps less well-known feature, is dependabot which allows you to automatically keep all your dependencies up to date. Depending on which language/framework you are using, making sure all your libraries are on AGGREGATING AND VISUALIZING SPRING BOOT METRICS WITH Aggregating and Visualizing Spring Boot Metrics with Prometheus and Grafana 02 Jun 2021. Note: this is a follow-up post covering the collection and visualization of Spring Boot metrics within distributed environments. Make sure to take a look at Gathering Metrics with Micrometer and Spring Boot Actuator which outlines using Micrometer to instrument your application with some of the built-in KOTLIN & JAVA CI WITH GITHUB ACTIONS HOW TO DYNAMICALLY CHANGE LOG LEVELS AT RUNTIME WITH A lot of the same configuration changes you would previously have made in those dedicated files can now also be set as simple application properties. For example, to change the global root log level to DEBUG, we can just add the following to application.properties (or YAML equivalent): logging.level.root=DEBUG. INLINE CODE IN WORDPRESS Inline code in WordPress 11 Oct 2013. When posting recently it’s become quite annoying that there is no default way of presenting inline code in posts. RESTFUL KOTLIN WITH KTOR AND EXPOSED As we have set up Jackson before, we can just return a basic kotlin data object and it will be converted to json without any additional work from us. Finally, we need to create the widget service to handle the logic of saving and retrieving our model. Setting up Exposed. Exposed is another JetBrains sponsored library for database interactions in Kotlin. . It is a kind of ORM, but unlike WSL - CREATING A SHORTCUT TO WINDOWS DOCUMENTS - RYAN HARRISON WSL - Creating a shortcut to Windows Documents 16 Jan 2017. Due to the fact that you should never change Linux files using Windows apps and tools when running the WSL, I find myself during the vast majority of work in my Windows documents area and then accessing them directly via Bash.. Your Windows drives are accessible via /mnt using the same drive letters as found in Windows MAKE HTTP REQUESTS IN KOTLIN Make HTTP Requests in Kotlin 15 Jun 2018. Updated 09/18 - Add section on the new HTTP Client in JDK 11. These days making HTTP requests in any language is a staple of many common workflows and features. This post will go through a few of the methods in which you can make such requests in Kotlin using some of the great open source librariesavailable.
CYGWIN CHANGE HOME DIRECTORY Cygwin Change Home Directory 01 Dec 2015. In a new installation of Cygwin, your home directory will be in C:/cygwin/home//, and can be accessed by the usual ~ shortcut. Although this works just fine, it’s often useful to use the utilities provided by Cygwin in your local Windows user area C:/Users/.Manually navigating to your Windows home directory can be a tedious process as youRYAN HARRISON
Compact the WSL2 Virtual Disk. If you copy some large files into WSL2 and then delete them, they will disappear from the filesystem but the underlying virtual disk may have still grown in size and the extra space will not be re-used. We can run a command to optimize/vacuum the virtual disk file to reclaim some space. AGGREGATING AND VISUALIZING SPRING BOOT METRICS WITH Aggregating and Visualizing Spring Boot Metrics with Prometheus and Grafana 02 Jun 2021. Note: this is a follow-up post covering the collection and visualization of Spring Boot metrics within distributed environments. Make sure to take a look at Gathering Metrics with Micrometer and Spring Boot Actuator which outlines using Micrometer to instrument your application with some of the built-in PROMETHEUS MONITORING GUIDE PART 1 Prometheus Monitoring Guide Part 1 - Installation and Instrumentation. 05 Apr 2021. Part 2 - PromQL and Recording Rules. An open-source systems monitoring and alerting toolkit. Now a standalone open source project and maintained independently of any company. Analyse how your applications and infrastructure is performing based on the metrics PROMETHEUS MONITORING GUIDE PART 2 Prometheus Monitoring Guide Part 2 - PromQL and Recording Rules 18 Apr 2021. Part 1 - Installation and Instrumentation; PromQL. Prometheus provides a functional query language called PromQL (Prometheus Query Language) that lets the user ANGULAR - PROXY API REQUESTS - RYAN HARRISON Angular - Proxy API Requests 29 Feb 2020. If you are developing with Angular locally, then chances are you also have some kind of API server also running on the same machine that you need to make requeststo.
RESTFUL KOTLIN WITH KTOR AND EXPOSED As we have set up Jackson before, we can just return a basic kotlin data object and it will be converted to json without any additional work from us. Finally, we need to create the widget service to handle the logic of saving and retrieving our model. Setting up Exposed. Exposed is another JetBrains sponsored library for database interactions in Kotlin. . It is a kind of ORM, but unlike C# - AUTO CLICKER - RYAN HARRISON C# - Auto Clicker. 14 Jun 2011. I recently got a link to a Facebook app which challenges you to how many times you can click a button in 30 seconds. After a couple of tries I got to around 180, yet I thought that I must be able to do better by making the computer click for me. After a bit of research I came across two functions from MSDN named CYGWIN CHANGE HOME DIRECTORY Cygwin Change Home Directory 01 Dec 2015. In a new installation of Cygwin, your home directory will be in C:/cygwin/home//, and can be accessed by the usual ~ shortcut. Although this works just fine, it’s often useful to use the utilities provided by Cygwin in your local Windows user area C:/Users/.Manually navigating to your Windows home directory can be a tedious process as you C# - THE GOOGLE CURRENCY API - RYAN HARRISON C# - The Google Currency API 15 Jul 2011. NOTE: The Google Finance API has now been deprecated so this code will no longer work. After I found myself using Google to translate currencies, I wondered whether it would be possible to utilise this functionality in a program. JAVA - CALCULATE THE HARMONIC MEAN - RYAN HARRISON Here is a small snippet to calculate the harmonic mean of a data set.The harmonic mean is defined as:public static double harmonicMean(double data) { do WSL2 - BETTER MANAGING SYSTEM RESOURCES - RYAN HARRISON WSL2 - Better Managing System Resources 13 May 2021. WSL2 is great, but unfortunately after moderate usage it’s easy to get in a situation where it will eat up all of your disk space and use up to 50% of your total system memory. AGGREGATING AND VISUALIZING SPRING BOOT METRICS WITH Aggregating and Visualizing Spring Boot Metrics with Prometheus and Grafana 02 Jun 2021. Note: this is a follow-up post covering the collection and visualization of Spring Boot metrics within distributed environments. Make sure to take a look at Gathering Metrics with Micrometer and Spring Boot Actuator which outlines using Micrometer to instrument your application with some of the built-in AUTOMATICALLY UPDATE DEPENDENCIES WITH GITHUB DEPENDABOT Automatically Update Dependencies with GitHub Dependabot 05 Sep 2020. With the introduction of Actions, GitHub is quickly becoming the one-stop shop for all things CI.But one, perhaps less well-known feature, is dependabot which allows you to automatically keep all your dependencies up to date. Depending on which language/framework you are using, making sure all your libraries are on HOW TO DYNAMICALLY CHANGE LOG LEVELS AT RUNTIME WITH A lot of the same configuration changes you would previously have made in those dedicated files can now also be set as simple application properties. For example, to change the global root log level to DEBUG, we can just add the following to application.properties (or YAML equivalent): logging.level.root=DEBUG. RESTFUL KOTLIN WITH KTOR AND EXPOSED As we have set up Jackson before, we can just return a basic kotlin data object and it will be converted to json without any additional work from us. Finally, we need to create the widget service to handle the logic of saving and retrieving our model. Setting up Exposed. Exposed is another JetBrains sponsored library for database interactions in Kotlin. . It is a kind of ORM, but unlike WSL - CREATING A SHORTCUT TO WINDOWS DOCUMENTS - RYAN HARRISON WSL - Creating a shortcut to Windows Documents 16 Jan 2017. Due to the fact that you should never change Linux files using Windows apps and tools when running the WSL, I find myself during the vast majority of work in my Windows documents area and then accessing them directly via Bash.. Your Windows drives are accessible via /mnt using the same drive letters as found in Windows INLINE CODE IN WORDPRESS Inline code in WordPress 11 Oct 2013. When posting recently it’s become quite annoying that there is no default way of presenting inline code in posts. MAKE HTTP REQUESTS IN KOTLIN Make HTTP Requests in Kotlin 15 Jun 2018. Updated 09/18 - Add section on the new HTTP Client in JDK 11. These days making HTTP requests in any language is a staple of many common workflows and features. This post will go through a few of the methods in which you can make such requests in Kotlin using some of the great open source librariesavailable.
C# - AUTO CLICKER - RYAN HARRISON C# - Auto Clicker. 14 Jun 2011. I recently got a link to a Facebook app which challenges you to how many times you can click a button in 30 seconds. After a couple of tries I got to around 180, yet I thought that I must be able to do better by making the computer click for me. After a bit of research I came across two functions from MSDN named CYGWIN CHANGE HOME DIRECTORY Cygwin Change Home Directory 01 Dec 2015. In a new installation of Cygwin, your home directory will be in C:/cygwin/home//, and can be accessed by the usual ~ shortcut. Although this works just fine, it’s often useful to use the utilities provided by Cygwin in your local Windows user area C:/Users/.Manually navigating to your Windows home directory can be a tedious process as you WSL2 - BETTER MANAGING SYSTEM RESOURCES - RYAN HARRISON WSL2 - Better Managing System Resources 13 May 2021. WSL2 is great, but unfortunately after moderate usage it’s easy to get in a situation where it will eat up all of your disk space and use up to 50% of your total system memory. AGGREGATING AND VISUALIZING SPRING BOOT METRICS WITH Aggregating and Visualizing Spring Boot Metrics with Prometheus and Grafana 02 Jun 2021. Note: this is a follow-up post covering the collection and visualization of Spring Boot metrics within distributed environments. Make sure to take a look at Gathering Metrics with Micrometer and Spring Boot Actuator which outlines using Micrometer to instrument your application with some of the built-in AUTOMATICALLY UPDATE DEPENDENCIES WITH GITHUB DEPENDABOT Automatically Update Dependencies with GitHub Dependabot 05 Sep 2020. With the introduction of Actions, GitHub is quickly becoming the one-stop shop for all things CI.But one, perhaps less well-known feature, is dependabot which allows you to automatically keep all your dependencies up to date. Depending on which language/framework you are using, making sure all your libraries are on HOW TO DYNAMICALLY CHANGE LOG LEVELS AT RUNTIME WITH A lot of the same configuration changes you would previously have made in those dedicated files can now also be set as simple application properties. For example, to change the global root log level to DEBUG, we can just add the following to application.properties (or YAML equivalent): logging.level.root=DEBUG. RESTFUL KOTLIN WITH KTOR AND EXPOSED As we have set up Jackson before, we can just return a basic kotlin data object and it will be converted to json without any additional work from us. Finally, we need to create the widget service to handle the logic of saving and retrieving our model. Setting up Exposed. Exposed is another JetBrains sponsored library for database interactions in Kotlin. . It is a kind of ORM, but unlike WSL - CREATING A SHORTCUT TO WINDOWS DOCUMENTS - RYAN HARRISON WSL - Creating a shortcut to Windows Documents 16 Jan 2017. Due to the fact that you should never change Linux files using Windows apps and tools when running the WSL, I find myself during the vast majority of work in my Windows documents area and then accessing them directly via Bash.. Your Windows drives are accessible via /mnt using the same drive letters as found in Windows INLINE CODE IN WORDPRESS Inline code in WordPress 11 Oct 2013. When posting recently it’s become quite annoying that there is no default way of presenting inline code in posts. MAKE HTTP REQUESTS IN KOTLIN Make HTTP Requests in Kotlin 15 Jun 2018. Updated 09/18 - Add section on the new HTTP Client in JDK 11. These days making HTTP requests in any language is a staple of many common workflows and features. This post will go through a few of the methods in which you can make such requests in Kotlin using some of the great open source librariesavailable.
C# - AUTO CLICKER - RYAN HARRISON C# - Auto Clicker. 14 Jun 2011. I recently got a link to a Facebook app which challenges you to how many times you can click a button in 30 seconds. After a couple of tries I got to around 180, yet I thought that I must be able to do better by making the computer click for me. After a bit of research I came across two functions from MSDN named CYGWIN CHANGE HOME DIRECTORY Cygwin Change Home Directory 01 Dec 2015. In a new installation of Cygwin, your home directory will be in C:/cygwin/home//, and can be accessed by the usual ~ shortcut. Although this works just fine, it’s often useful to use the utilities provided by Cygwin in your local Windows user area C:/Users/.Manually navigating to your Windows home directory can be a tedious process as youRYAN HARRISON
Compact the WSL2 Virtual Disk. If you copy some large files into WSL2 and then delete them, they will disappear from the filesystem but the underlying virtual disk may have still grown in size and the extra space will not be re-used. We can run a command to optimize/vacuum the virtual disk file to reclaim some space. PROMETHEUS MONITORING CHEAT SHEET Prometheus Monitoring Cheat Sheet. 05 Apr 2021. An open-source systems monitoring and alerting toolkit. Now a standalone open source project and maintained independently of any company. Analyse how your applications and infrastructure is performing based on the metrics they publish. Particularly suitable for large distributed systems with PROMETHEUS MONITORING GUIDE PART 2 Prometheus Monitoring Guide Part 2 - PromQL and Recording Rules 18 Apr 2021. Part 1 - Installation and Instrumentation; PromQL. Prometheus provides a functional query language called PromQL (Prometheus Query Language) that lets the user C# - AUTO CLICKER - RYAN HARRISON C# - Auto Clicker. 14 Jun 2011. I recently got a link to a Facebook app which challenges you to how many times you can click a button in 30 seconds. After a couple of tries I got to around 180, yet I thought that I must be able to do better by making the computer click for me. After a bit of research I came across two functions from MSDN named RESTFUL KOTLIN WITH KTOR AND EXPOSED As we have set up Jackson before, we can just return a basic kotlin data object and it will be converted to json without any additional work from us. Finally, we need to create the widget service to handle the logic of saving and retrieving our model. Setting up Exposed. Exposed is another JetBrains sponsored library for database interactions in Kotlin. . It is a kind of ORM, but unlike MAKE HTTP REQUESTS IN KOTLIN Make HTTP Requests in Kotlin 15 Jun 2018. Updated 09/18 - Add section on the new HTTP Client in JDK 11. These days making HTTP requests in any language is a staple of many common workflows and features. This post will go through a few of the methods in which you can make such requests in Kotlin using some of the great open source librariesavailable.
C# - THE GOOGLE CURRENCY API - RYAN HARRISON C# - The Google Currency API 15 Jul 2011. NOTE: The Google Finance API has now been deprecated so this code will no longer work. After I found myself using Google to translate currencies, I wondered whether it would be possible to utilise this functionality in a program. INSTALLING JEKYLL USING THE WSL Installing Jekyll using the WSL 21 Jan 2017. Note: As of writing file watching is currently not implemented in the WSL so you won’t be able to use jekyll serve --watch.If you are on an insider preview #14942 you will have access to this feature (request page)Thanks to the awesomeness that is the WSL Windows Subsystem for Linux, you can now install and use a load of tools on Windows just as JAVA - CALCULATE THE HARMONIC MEAN - RYAN HARRISON Here is a small snippet to calculate the harmonic mean of a data set.The harmonic mean is defined as:public static double harmonicMean(double data) { do JDBCTEMPLATE QUERYFORINT() IS DEPRECATED JdbcTemplate queryForInt() is deprecated 22 Jun 2014. There is a lot of Spring documentation online which makes use of the queryForInt() and queryForLong methods of the very handy JdbcTemplate class. However, using newer versions of the Spring framework, these methods have now become deprecated (apparently this has happened from version3.2.2).
Home Contact Me About SearchArchive GitHub
Currently v1.0.0
2019. All rights reserved. RYAN HARRISON MY BLOG, PORTFOLIO AND TECHNOLOGY RELATED RAMBLINGS SCROLL TO TOP BUTTON WITH NO JQUERY16 Dec 2019
Dynamic scroll to top buttons have become quite common amongst a lot of webpages now, but most guides online require the use of jQuery to achieve the functionality of smooth scrolling plus fade in/out. In modern browsers however, you can get much the same effect without the additional ~30kb+ library overhead if you are already using a separateframework.
CREATE THE BUTTON
First step is to create an element representing the actual button. This takes the form of a very simple div element (upon which dynamic styles will be attached) and a nested img pointing to whatever arrow etc you need. The button element can be as complex as you need as long as you wrap in a single div like below. The scroll to top button for this site is a simple 45x45px arrow image which works well.ADD STYLING
Without any styling, the image above will just appear at the bottom of your page. We need to add some CSS to ensure that the button always appears in the same position on the bottom right hand corner of the screen regardless of the current scroll position:#topcontrol {
@media (max-width: 38rem) {display: none;
}
position: fixed;
bottom: 10px;
right: 20px;
opacity: 0;
cursor: pointer;
}
The above SCSS selector (which can be translated to standard CSS as well), positions the element in a fixed position on the bottom right corner of the screen, sets the opacity to zero (to hide by default) and ensures that your cursor becomes a pointer when hovering over the button as you would expect.JAVASCRIPT HANDLER
Finally, to get the desired behaviour when the button is clicked, a small JavaScript segment is needed. The below snippet uses the scrollTo function on window to scroll the page to the top whenever the button is clicked. The new smooth behaviour controls the animatedeffect.
Because the button is hidden by default due to opacity: 0 above, we also need to add an event handler to be called whenever the page is scrolled. If the current position is above a default threshold (100 in this case), the scroll to top button becomes visible and vice versa. (function(document) { const topbutton = document.getElementById("topcontrol"); topbutton.onclick = function(e) { window.scrollTo({top: 0, behavior: "smooth"});}
window.onscroll = function() { if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) { topbutton.style.opacity = "1";} else {
topbutton.style.opacity = "0";}
};
})(document);
FADE IN/OUT
The above code will get all the behaviour we need, but the button will jump in and out of the page depending on the page position. To make it a little less jarring, some fade in/out can be added in. This is very similar to the el.fadeIn() methods you can find in jQuery. Because we are controlling the visibility solely based on opacity, we can make use of CSS transitions to animate the change across a number of milliseconds. Adding the below to the CSS selector above is a simple way to replicate the effect: -webkit-transition: opacity 400ms ease-in-out; -moz-transition: opacity 400ms ease-in-out; -o-transition: opacity 400ms ease-in-out; transition: opacity 400ms ease-in-out;Read More
HOW TO CAPTURE FULL PAGE SCREENSHOTS IN CHROME17 Nov 2019
Capturing full page screenshots of a webpage within Chrome can be useful, but most solutions to this involve having to install obnoxious extensions. Turns out however that this can easily be done within the base Chrome install itself - no extensions or extra programs needed. There are two methods of doing so depending on whether or not you want a screenshot capturing exactly what you see on screen, or want to emulate the view from a different device/screen resolution. 1. COMMAND MENU - CAPTURE FULL SCREENSHOT The first and easiest method will capture a PNG screenshot of the full page as you see it within your browser. * Open up the Chrome Devtools by pressing F12, CTRL + SHIFT + I or Right-Click anywhere -> Inspect * Open up the devtools command menu panel by pressing CTRL + SHIFT + P (this is a commonly missed feature similar to the VS Code Command Pallete that gives you quick access to pretty much all devtoolsfeatures)
* Start typing capture in the menu - you will see options to capture a full size screenshot or even just a defined area of the page ifneeded.
2. DEVICE MODE
The second, slightly more involved option, lets you capture screenshots through the built in Chrome device mode which allows you to view webpages as though you were using other devices such as phonesor tablets.
* Open up the Chrome Devtools by pressing F12, CTRL + SHIFT + I or Right-Click anywhere -> Inspect * Enable the Device Mode by pressing the button directly to the left of the Elements tab or keyboard shortcut CTRL + SHIFT + M * After selecting your preferred device options, resolution etc, press the hamburger menu on the top right of the page and select Capture full size screenshot.Read More
HOW TO BACKUP AND RESTORE SMS MESSAGES IN ANDROID03 Aug 2019
Moving all of your apps and data over to a new device has thankfully got a lot easier these days as everything is now stored in the cloud. But there is a glaring omission in the automated process Google provides on Android devices - restoring your SMS/MMS messages and call logs. Not sure why this is still left out considering pretty much all other messaging apps will automatically migrate your data and preferences seamlessly. The good news is there is of course “an app for that”. A lot of the guides on the web direct you to paid apps, but there are numerous free alternatives on the Play Store. SMS BACKUP & RESTORE Probably the most popular currently on the store and still actively developed - it’s a simple app that backs up and restores your phone’s SMS and MMS messages and call logs. I just went through the process of migrating everything over to a new Android phone and this app did the job just fine. Basically, it will backup all of your messages and call logs into two separate XML files which can later be restored by using the same app on the new device. There are a bunch of options to setup automated backups etc. if that’s useful for you. Within the app just select where you want the backups to be stored - Google Drive probably being the best choice and hit the ‘Back Up’ button - that’s it for your old device. On your new device I found it easiest to download the two XML files onto your local storage and then point the app to them within the restore tab. After a little processing, everything should look identical between the two devices. The Messages app got a little confused at first trying to process all the new threads, but if you just leave it open for a while it will eventually sort itself out. Job done with little hassle, but Google please add this is in!Read More
USING KTOR WITH JACKSON SERIALIZATION30 Jun 2019
Although the preferred JSON serialization library used in a lot of the Ktor examples is GSON , which makes sense due to it’s simplicity and ease of use, in real-world use Jackson is probably the preferred option. It’s faster (especially when combined with the AfterBurner module) and generally more flexible. Ktor comes with a built-in feature that makes use Jackson for JSON conversion verysimple.
ADD JACKSON DEPENDENCY In your build.gradle file add a dependency to the Ktor Jacksonartifact:
dependencies {
compile "io.ktor:ktor-jackson:$ktor_version"}
This will add the Ktor JacksonConverter class which can then be used within the standard ContentNegotiation feature. It also includes an implicit dependency on the Jackson Kotlin Modulewhich must be
installed in order for Jackson to handle data classes (which do not have an empty default constructor as Jackson expects). INSTALL AS A CONVERTER Then tell Ktor to use Jackson for serialization/deserialization forJSON content:
install(ContentNegotiation) {jackson {
// extension method of ObjectMapper to allow config etc enable(SerializationFeature.INDENT_OUTPUT)}
}
which is the same as doing: install(ContentNegotiation) { register(ContentType.Application.Json, JacksonConverter())}
With the converter installed, any request to your Ktor server will be served with a JSON response as long as the Content-Type header acceptsit.
REUSE AN EXISTING MAPPER The above configuration is quick and easy, however ObjectMapper instances are heavy objects and their configuration is generally shared across various areas of your app. Therefore, instead of creating a new ObjectMapper within the Ktor feature itself, initialise one for your application and point Ktor to it. You can then reuse the same mapper when needed without re-initialising it every time: object JsonMapper { // automatically installs the Kotlin module val defaultMapper: ObjectMapper = jacksonObjectMapper()init {
defaultMapper.configure(SerializationFeature.INDENT_OUTPUT, true) defaultMapper.registerModule(JavaTimeModule())}
}
then use the alternate syntax to install the converter, passing in our pre-made ObjectMapper instance: install(ContentNegotiation) { register(ContentType.Application.Json, JacksonConverter(defaultMapper))}
You are then free to reuse the same JsonMapper.defaultMapper object across the rest of your app.Read More
UBUNTU SERVER SETUP PART 9 - SETUP A REVERSE PROXY WITH NGINX16 Jun 2019
* Part 1 - Logging In * Part 2 - Securing Login * Part 3 - Installing a Firewall * Part 4 - Setup Nginx Web Server * Part 5 - Install Git, Ruby and Jekyll * Part 6 - HTTPS With Let’s Encrypt * Part 7 - Email Forwarding with Postfix * Part 8 - Sending Email Through Gmail In the previous partwe
covered how to set-up Nginx as a web server to serve static content. In this part, we will configure Nginx as a reverse proxy (one of the main other use cases) to be able to access other services running locally on your server without opening up a dedicated port. WHAT IS A REVERSE PROXY? A reverse proxy can be thought of as a simple ‘passthrough’, whereby specific requests made to your web server get routed to other applications running locally and their responses returned as though they were all handled by the one server. For example, you wanted to give public access to a Python server you have running on port 8080. Instead of directly opening up the port and thus increasing the overall attack surface, Nginx can be configured to proxy certain requests to that server instead. This also has the advantage of easily enabling HTTPS for all services without having to configure each application separately and you get all the other advantages of a high performance web server like load balancing etc. Follow the steps in the previous tutorialto
setup Nginx and also optionally enable HTTPS.
The rest of this part assumes you have another server running on your machine listening on localhost under port 8080.CONFIGURE NGINX
Open up the main configuration file for your site: $ sudo nano /etc/nginx/sites-available/yourdomain.comserver {
listen 80;
listen :80;
server_name yourdomain.com; location /otherapp { proxy_pass http://localhost:8080/;}
}
The proxy_pass directive is what makes this configuration a reverse proxy. It specifies that all requests which match the location block (in this case the root /otherapp path) should be forwarded to port 8080 on localhost, where our other app is running. Test the new configuration to see if there are any errors$ sudo nginx -t
If there are no errors present, reload the Nginx config $ sudo nginx -s reload In a browser, navigate to your main public domain and append /otherapp to the end e.g. http://yourdomain.com/otherapp. Because the URL matches the location element in the config above, Nginx will forward the request to our other server running on port 8080.ADDITIONAL OPTIONS
For basic applications, the main proxy_pass directive should work just fine. However, as you would expect, Nginx offers a number of other options to further configure the behaviour of the reverse proxy. In the below configuration, proxy buffering is switched off - this means that the request body will be forwarded to the proxied server immediately as it is received, which can be useful for some real-time apps. A custom header X-Original-IP is also set on the forwarded request, containing the IP from the original request (which can then be picked up by the other server as needed). location /otherapp { proxy_pass http://localhost:8080/; proxy_buffering off; proxy_set_header X-Original-IP $remote_addr;}
Read More
Older Newer __ __
__
__ __
Details
Copyright © 2024 ArchiveBay.com. All rights reserved. Terms of Use | Privacy Policy | DMCA | 2021 | Feedback | Advertising | RSS 2.0