rest – RESTful Response when the POST request results in the creation of different kind of resources?

I have been working on designing an API that lets client create a product (think of product as something like website domain, something that comes into existence when client makes order for it to the service). Correspondingly with every purchase results in creation of the order object. Which means creation of two resources via a single POST request.

So afaik, the RFC standards recommends sending 201 on resource creation with URI for the resource in the Location header. But in the above scenario, we are creating two resources, domains and orders and I would want response to contain information related to both the resources.

Response would look something similar to this

POST /domains/
Request 
 body: {"domain_name": "awesome.com"},

Response
 Body: {"order_id": "1234"}
 Headers: 
   Location: http://example.com/awesome.com

But does not look very RESTful. I was wondering if there was a RESTful way to do this?

crawl errors – Google Search Console reports blocked resources from DoubleClick while rendering my pages, where do these calls come from?

Doubleclick is subsidiary of Google, which develops and provides Internet ad serving services. Using Adsense with dynamic allocation and targetting will automaticlly receive more relevant adds from the Doubleclick network.

The reason that Google Search Console is nagging is because one or several resources are blocked, these can be internal resources or external such as Doubleclick, if you take a look at the robots.txt on their server (https://static.doubleclick.net/robots.txt), you can see that they do not want their resources indexed, therefore, you see this message in your control panel.

Summary

Nothing to worry about if you are using advertising on your site.

http – Getting numerous HEAD requests by Java user agents to resources that require authentication to view within a web application. Should I block them?

I have recently started using Cloudflare’s firewall in front of a web application. This app has a limited user base of selected applicants and they must log in to view anything. There is no public registration form and nothing within the portal can be accessed without an account.

Since moving the DNS to Cloudflare I can see we are receiving numerous daily HEAD requests to paths that are only accessible within the portal.

These requests come from one of two groups of IP addresses from the United States (we are not a US-based company; our own hosting is based in AWS Ireland region and we’re pretty sure at least 99% of our users have never been US-based):

Java User Agents

Empty User Agent

  • No user agent string.
  • The ASN is listed as Amazon Web Services.
  • The IP addresses have very little reported activity and do not seem at all connected to the Java requests.

Other Notes

  • The resources being requested are dynamic URLs containing what are essentially order numbers. We generate new orders every day, and they are visible to everyone using the portal.
  • I was unable to find any of the URLs indexed by Google. They don’t seem to be publicly available anywhere. There is only one publicly accessible page of the site, which is indexed.
  • We have potentially identified one user who seems to have viewed all the pages that are showing up in the firewall logs (we know this because he shows up in our custom analytics for the web app itself). We have a working relationship with our users and we’re almost certain he’s not based in the US.

I am aware that a HEAD request in itself is nothing malicious and that browsers sometimes make HEAD requests. Does the Java user agent, or lack of a user agent in some cases, make this activity suspicious? I already block empty user agents and Java user agents through the firewall, although I think Cloudflare by default blocks Java as part of its browser integrity checks.

Questions

  1. Is there any reason why these might be legitimate requests that I shouldn’t block? The fact it’s a HEAD request from a Java user agent suggests no, right?

  2. One idea we had is that one of the users is sharing links to these internal URLs via some outside channel, to outsource work or something. Is it possible some kind of scraper or something has picked up these links and is spamming them now? As I say, I was unable to find them publicly indexed.

  3. Is it possible the user we think is connected has some sort of malware on their machine which is picking up their browser activity and then making those requests?

  4. Could the user have some sort of software that is completely innocent which would make Java based HEAD requests like this, based on their web browsing activity?

Any advice as to how I should continue this investigation? Or other thoughts about what these requests are?

🔝 Unmetered KVM Linux & Windows VPS ⏩ Dedicated Resources ⏩SSD ⏩Upto 24GB RAM 50% OFF⏩ $5 /Mo


SteadyVPS – provides customer-oriented cloud web hosting services and professional online solutions for individuals, developers, programmers, and small to large businesses. Our products and services are perfectly designed with such infrastructure, premium hardware. We provide high quality VPS hosting services and best dedicated server hosting at the cheapest possible rate for your higher satisfaction.

WHAT MAKES US STAND OUT AMONG THE SEA OF HOSTING PROVIDERS

  1. Quality – We only use top of the line servers on a top-tier facility for high quality performance.
  2. Reliability – Support technicians are always ready and on standby to assist our clients.
  3. Guaranteed Resources – We have ample of resources to cater thousands of clients, but we do not sell more than what we can provide. All the specifications and resources listed in our all of our plans are guaranteed.
  4. Price Lock Guarantee – Any plan you purchase will stay at that same price for the length of your stay with us, except if it was terminated, or if you plan to upgrade/downgrade to another plan.
  5. Premium Network – The network consists of Level3, Hurricane Electric, Global Crossing, Cogent, and more that are actively route optimized to ensure optimal latency, throughput and overall performance.

PLEASE TAKE A LOOK AT OUR PLANS BELOW

SUPER SALE: We are currently running our sale for welcoming 2020. This promotion entitles you to a 50% recurring discount on all our VPS products on any billing cycle. This promotion is valid for a limited time only or while supplies last. Take advantage now!

KVM LINUX VPS

KVM-1 $5/Month (With Coupon)

  • 3GB RAM
  • 30GB SSD Disk space
  • Unmetered Bandwidth (1Gbps Shared Speed)
  • 1 CPU Core (1.70GHz)
  • 1x IPv4 Address
  • KVM Virtualization
  • Additional discounts on 12-Month and 24-Month billing cycle
  • Use Coupon Code: “STEADY50
  • SECURE ORDER HERE

KVM-2 $10/Month (With Coupon)

  • 6GB RAM
  • 60GB SSD Disk space
  • Unmetered Bandwidth (1Gbps Shared Speed)
  • 2 CPU Cores (2 x 1.70GHz)
  • 1x IPv4 Address
  • KVM Virtualization
  • Additional discounts on 12-Month and 24-Month billing cycle
  • Use Coupon Code: “STEADY50
  • SECURE ORDER HERE

KVM-3 $13/Month (With Coupon)

  • 8GB RAM
  • 100GB SSD Disk space
  • Unmetered Bandwidth (1Gbps Shared Speed)
  • 2 CPU Cores (2 x 1.70GHz)
  • 1x IPv4 Address
  • KVM Virtualization
  • Additional discounts on 12-Month and 24-Month billing cycle
  • Use Coupon Code: “STEADY50
  • SECURE ORDER HERE

KVM-4 $5/Month (With Coupon)

  • 16GB RAM
  • 150GB SSD Disk-space
  • Unmetered Bandwidth (1Gbps Shared Speed)
  • 3 CPU Core (3 x 1.70GHz)
  • 1x IPv4 Address
  • KVM Virtualization
  • Additional discounts on 12-Month and 24-Month billing cycle
  • Use Coupon Code: “STEADY50
  • SECURE ORDER HERE

KVM-5 $21/Month (With Coupon)

  • 24GB RAM
  • 200GB SSD Disk space
  • Unmetered Bandwidth (1Gbps Shared Speed)
  • 4 CPU Core (4 x 1.70GHz)
  • 1x IPv4 Address
  • KVM Virtualization
  • Additional discounts on 12-Month and 24-Month billing cycle
  • Use Coupon Code: “STEADY50
  • SECURE ORDER HERE

Hyper-V Windows VPS


Hyper-V-1 $6/Month (With Coupon)

  • 2GB RAM
  • 20GB SSD Disk space
  • Unmetered Bandwidth (1Gbps Shared Speed)
  • 1 CPU Core (1.70GHz)
  • 1x IPv4 Address
  • Hyper-V Virtualization
  • Windows Server 2012R2/Windows Server 2016
  • Additional discounts on 12-Month and 24-Month billing cycle
  • Use Coupon Code: “STEADY50
  • SECURE ORDER HERE

Hyper-V-2 $10/Month (With Coupon)

  • 4GB RAM
  • 40GB SSD Disk space
  • Unmetered Bandwidth (1Gbps Shared Speed)
  • 2 CPU Cores (2 x 1.70GHz)
  • 1x IPv4 Address
  • Hyper-V Virtualization
  • Windows Server 2012R2/Windows Server 2016
  • Additional discounts on 12-Month and 24-Month billing cycle
  • Use Coupon Code: “STEADY50
  • SECURE ORDER HERE

Hyper-V-3 $20/Month (With Coupon)

  • 8GB RAM
  • 80GB SSD Disk space
  • Unmetered Bandwidth (1Gbps Shared Speed)
  • 2 CPU Cores (3 x 1.70GHz)
  • 1x IPv4 Address
  • Hyper-V Virtualization
  • Windows Server 2012R2/Windows Server 2016
  • Additional discounts on 12-Month and 24-Month billing cycle
  • Use Coupon Code: “STEADY50
  • SECURE ORDER HERE

We accept PayPal, Debit Card and Credit Card (through PayPal) and Bitcoin for payments. We are strictly against Spam/Bulk Mail, Warez, and CPU intensive scripts. You can view our Terms of Service here and our Privacy Policy here. For more information, head on over to our website https://steadyvps.com/

google compute engine – GCP doesn’t have enough resources to complete the request

I had to restart my ubuntu 16.04 server in the zone asia-south so I hit the stop and as i tried starting it again, it throws an error of “asia-south1-a’ does not have enough resources available to fulfill the request. Try a different zone, or try again later.” My main problem is I have my applications installed in the server and the server is in terminated state. Is there any way i can restart my server or move the instance to another nearby zone without loosing my application data?

user behavior – What are some authentic resources to find research papers on Healthcare UX?

I’m working on the digital ecosystem of Healthcare applications. Because of Covid-19 we are unable to reach out to actual users for primary research. So, it would be really helpful if someone can suggest good research papers which deal with the best practices in Healthcare UX, behavioral analysis of patients, etc

jdbc – Connection to MySQL database in Java using try with resources

I’m following a 2017 tutorial on JavaFX and Database connection and the author doesn’t use try with resources. I couldn’t figure out how to create a connection using try with resources. I guess it comes down to lack of understanding of how try with resources work in regards to the availability of what’s declared to the rest of the class. When I declared the connection with Try with resources the instance wouldn’t be available to the other methods in the class. Could you please give me some direction? Thanks!

public class DBUtil {

    private static Connection connection = null;

    private static String connStr = "jdbc:mysql://localhost:3306/employee? useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC";

    public static void dbConnect() throws SQLException, ClassNotFoundException {

        System.out.println("Driver registered!");

        try {
            connection = DriverManager.getConnection (connStr, "root", "123456");
        } catch (SQLException e) {
            e.printStackTrace();
        }
    }

    public static void dbDisconnect() throws SQLException{
        try {
            if (connection != null && !connection.isClosed()) {
                connection.close();
            }
        } catch (Exception e) {
            throw e;
        }
    }
```

online resources – Is there any website or service for showing countries / regions open for travel during Covid-19 restrictions?

As far as I know, such website / database / service covering your five points doesn’t exist.

For your first 4 points, one typically resort at manually going through https://www.iatatravelcentre.com/international-travel-document-news/1580226297.htm and ideally trying to double check the information with the country’s websites and airlines, which is error-prone and inefficient. For your last point, see Where can I find an up-to-date list of COVID-19-related curfews and business closures in different countries?. Interestingly, even though travel-related businesses are sinking, they often don’t try much to make it easier for the few remaining travelers to navigate through covid-19 restrictions.

To make it even trickier, a country may have different covid-19 rules for different areas, e.g. When flying domestically in Thailand, which (origin airport, destination airport) results in a quarantine?.

💽 Pure SSD 🧬 Huge Resources 🔨 Instant Deploy 📡 Unmetered BW 1💲 IPv4 💲 3.8$/mo 🛒Discounts [US]

We are offering some of the most reliable VM Plans here on WHT, running MS Hyper-V 2016 and SolidCP… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1810546&goto=newpost

architecture – Resources for designing a private, web-based cloud console

Imagine designing a scalable web-based application to manage a Fortune 500 company’s internal, on-prem cloud resources. These resources might be comprised of various underlying infrastructure, some virtual and some physical, mostly managed by software.

  • What would be some things to consider when designing such a system?
  • How would you orchestrate a significant number of asynchronous requests to read or modify underlying resources?
  • How would you design a system to offer up-to-date observability of a huge number of resources?
  • How to handle concurrent modifications and unreliable change requests to such a system?
  • How to handle failed resource modifications?