Android file upload error java.net.SocketTimeoutException: timeout

//Upload data public void upload_Data(String jsons) {<!– –> // String categoryNo = “”; // String CategoryName = “”; // String location_no = “”; // JSONObject jsonObject = new JSONObject(); // jsonObject.put(“userNo”, “003”); // jsonObject.put(“categoryNo”, “”); // jsonObject.put(“categoryName”, “”); // jsonObject.put(“locationName”, “Guangzhou”); // String json = “”; showProgressDialog(“Prompt”, “Uploading, please wait…”); // System.out.println(“Test jsons:” + jsons); […]

2.Netty simple application

Introduce Maven dependencies <dependency> <groupId>io.netty</groupId> <artifactId>netty-all</artifactId> <version>4.1.49.Final</version> </dependency> Server-side pipeline processor public class NettyServerHandler extends ChannelInboundHandlerAdapter {<!– –> //Read the actual data (here we can read the message sent by the client) /* 1. ChannelHandlerContext ctx: context object, containing pipeline, channel channel, address 2. Object msg: It is the data sent by the client. The […]

ConfigureAwaitOptions in .NET 8

ConfigureAwaitOptions in .NET 8 Intro In .NET, we can set ConfigureAwait(false) for Task operations to avoid returning to the original synchronization context after the asynchronous operation is completed. .NET 8 introduced a ConfigureAwaitOptions The usage of ConfigureAwait has been further expanded. Let’s take a look at how to use it. Definition ConfigureAwaitOptions is a flag […]

Improvements to HttpLoggingMiddleware in ASP.NET 8

Improvements in HttpLoggingMiddleware in ASP.NET 8 Intro .NET 6 began to introduce an http logging middleware. We can use the http logging middleware to record request and response information, but the scalability is not very strong. In the .NET 8 version, some optimizations were made and some New configuration and HttpLoggingInterceptor make it easier to […]

Opening new doors for .NET: OpenVINO.NET open source project newly released

Preface Today, as AI applications become more and more widespread, optimizing deep learning models and deploying them for inference has become a necessary technology. The OpenVINO toolkit (Open Visual Inference and Neural network Optimization) developed by Intel is such a powerful tool. As an open source toolkit, OpenVINO provides developers with powerful deep learning model […]

Using .NET to implement WOL wake-up remote booting

Table of Contents 1. Background 2. About WOL 2.1 Working principle of WOL 2.2 Turn on the network card wake-up function 3. Quick verification 3.1 Wake on Lan application 3.2 Ubuntu’s etherwake command 4. Code implementation 4.1 Create a .NET console application 4.2 Writing code 4.3 Running the application 5. Finally 1. Background Home automation […]

Solve java.lang.SecurityException: Permission denied (missing INTERNET permission?)at java.net.Inet6Add

Table of Contents Solve java.lang.SecurityException: Permission denied (missing INTERNET permission?) at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:135) Solution to java.lang.SecurityException: Permission denied (missing INTERNET permission?) at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:135) When developing Android applications, we often encounter various exceptions. One of the common problems is java.lang.SecurityException: Permission denied (missing INTERNET permission?) at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:135). This exception is usually caused by a lack of ??INTERNET?? […]

Observability: Manual instrumentation of .NET applications using OpenTelemetry

Author: David Hope In the fast-paced world of software development, especially in the cloud-native world, DevOps and SRE teams are increasingly becoming critical partners in application stability and growth. DevOps engineers continuously optimize software delivery, while SRE teams act as stewards of application reliability, scalability, and top-level performance. challenge? These teams need a cutting-edge observability […]

Using opentelemetry in .net core6

1. Import package OpenTelemetry.Exporter.Console //Console output OpenTelemetry.Exporter.OpenTelemetryProtocol //Protocol output, can be connected to jaeger, ziplin, seq OpenTelemetry.Exporter.Prometheus.AspNetCore //Prometheus output OpenTelemetry.AutoInstrumentation.AspNetCoreBootstrapper // dotnetcore automatic injection library OpenTelemetry.Instrumentation.AspNetCore // Telemetry implementation of some functions of dotnetcore OpenTelemetry.Instrumentation.Http // Telemetry implementation related to http requests OpenTelemetry.Extensions.Hosting // Extensions System.Diagnostics.DiagnosticSource // If you want to use some models, you […]