RSSAmplifier

Blog

mobiarch

Mobile architecture blog

mobiarch.wordpress.comRSS feed ↗10 posts

Latest posts

Creating a Java EE Web App Using Gradle

Today we will look at how to generate a new Java EE application using Gradle. Create a Java Project Convert the Project to a WAR Open app/build.gradle. Change the plugin id to war. Add Java EE Web API to the dependency. Delete the application { mainClass = ... } configuration block. Optionally, configure the name [ ]

A Minimal Windows Socket Program

If you re getting started with sockets programming in Windows a simple program can help. It shows you what header file to include, library to link to and how to initialize the library. I hope this helps. A Simple Client The code below connects to example.com and sends a HTTP request. It then prints out the [ ]

Visual C++ Command Line Compilation

For quick proof of concept experiments it is easier to compile from command line than use the Visual C++ IDE. In this article we will set up command line compilation. PowerShell Terminal Shortcut When you install Visual C++ a Terminal profile is created for command line development. Just open a new tab using that profile. [ ]

Summing Floating Point Numbers Accurately

Due to the way floating point numbers are added, summing a large list of floating point numbers can accumulate a good deal of inaccuracy. The Kahan summation algorithm is one way to improve accuracy. In today s article we will observe the effect of this algorithm using a simple test case. The code below takes a [ ]

Fun with EML (Exp-Minus-Log)

A paper is proposing that most elementary functions such as sin, cos, 1/x can be expressed as a combination of the following function and the constant 1. eml(x,y)=exp(x)−ln(y)eml(x,y) = exp(x) ln(y) For example ln(x) can be written as eml(1, eml(eml(1, x), 1)). Let s do a few experiments with this. A Basic Test Let s write [ ]

Negative Scaling in SVG

Negative scaling is used to flip a shape horizontally or vertically. The process is a little counterintuitive. Let s explore it here. Example Scenario Let us say that we have an orange arrow like this. The tip is at (300, 100) and the tail is at (100, 100). The SVG can be like this. After we [ ]

Parse XML Using XMLLite

In this tutorial we will learn to use the XMLLite library to parse a XML file from a Win32 application. XMLLite is built into Windows and you do not need to install any additional packages to use it. The library uses an interesting pull parser which is different from SAX or DOM type parsing. Create [ ]

My Experiments with AI Coding

I recently shot a roll of EASTMAN DOUBLE-X motion picture film. My developer scanned the images as 16bit greyscale TIFF files. The high bit rate was great for post processing. The downside is that Google Photos doesn t support those TIFFs. I needed to convert them to PNG. I saw this as a chance to create [ ]

Lifecycle Script for SageMaker Studio

SageMaker Studio spaces preserve your own files in between restarts. But, all custom packages installed using pip are lost when you stop and start a space. You can use a lifecycle script to re-install these packages every time a space is started. But the process of setting up lifecycle script is full of hidden problems [ ]

Install vLLM in WSL

vLLM install guide mentions using WSL to run vLLM on Windows. I found that several additional steps are needed to get vLLM working in WSL. Here, we will learn how to run vLLM in WSL for a machine that has an NVIDIA GPU. Install a WSL Distro Install a fresh new Ubuntu WSL instance. Apply [ ]