Showing posts with label Web. Show all posts
Showing posts with label Web. Show all posts

Saturday, 16 March 2019

Writing for MSDN Magazine a Primer

https://blogs.msdn.microsoft.com/msdnmagazine/2009/12/23/writing-for-msdn-magazine-a-primer/

Friday, 1 March 2019

.net core asp, new logging framework

https://dusted.codes/advanced-tips-and-tricks-for-aspnet-core-applications

Tuesday, 31 July 2018

Docker Scala - 100K Alpine Ash Scala Akka Application

https://medium.com/jeroen-rosenberg/lightweight-docker-containers-for-scala-apps-11b99cf1a666

Sunday, 18 December 2016

Microservices in Netflix

https://www.nginx.com/blog/microservices-at-netflix-architectural-best-practices/

Go vs Java Performance Comparison on 4 Core CPU

https://benchmarksgame.alioth.debian.org/u64q/go.html

fails to Java only for:

  • https://benchmarksgame.alioth.debian.org/u64q/performance.php?test=knucleotide
  • https://benchmarksgame.alioth.debian.org/u64q/performance.php?test=binarytrees

Go Language

http://www.infoworld.com/article/2928602/google-go/whats-the-go-language-really-good-for.html

The really good: Network and Web servers

The also really good: Stand-alone command-line apps or scripts

Simple HTTP Server in Java

http://stackoverflow.com/questions/3732109/simple-http-server-in-java-using-only-java-se-api

Solution # 1

package com.stackoverflow.q3732109;

import java.io.IOException;
import java.io.OutputStream;
import java.net.InetSocketAddress;

import com.sun.net.httpserver.HttpExchange;
import com.sun.net.httpserver.HttpHandler;
import com.sun.net.httpserver.HttpServer;

public class Test {

    public static void main(String[] args) throws Exception {
        HttpServer server = HttpServer.create(new InetSocketAddress(8000), 0);
        server.createContext("/test", new MyHandler());
        server.setExecutor(null); // creates a default executor
        server.start();
    }

    static class MyHandler implements HttpHandler {
        @Override
        public void handle(HttpExchange t) throws IOException {
            String response = "This is the response";
            t.sendResponseHeaders(200, response.length());
            OutputStream os = t.getResponseBody();
            os.write(response.getBytes());
            os.close();
        }
    }
}


Solution # 2

import java.io.*;
import javax.xml.ws.*;
import javax.xml.ws.http.*;
import javax.xml.transform.*;
import javax.xml.transform.stream.*;

@WebServiceProvider
@ServiceMode(value = Service.Mode.PAYLOAD)
public class Server implements Provider<Source> {

    public Source invoke(Source request) {
        return  new StreamSource(new StringReader("Hello There!

"));
    }

    public static void main(String[] args) throws InterruptedException {

        String address = "http://127.0.0.1:8080/";
        Endpoint.create(HTTPBinding.HTTP_BINDING, new Server()).publish(address);

        System.out.println("Service running at " + address);
        System.out.println("Type [CTRL]+[C] to quit!");

        Thread.sleep(Long.MAX_VALUE);
    }
}

Monday, 12 December 2016

Url trip

http://igoro.com/archive/what-really-happens-when-you-navigate-to-a-url/

Wednesday, 7 September 2016

IT - Web - JavaScript Optimizer

The best tool by opinion of Diego is the one developed by Yahoo.

Tuesday, 6 September 2016

IT - Web - ReactJS

https://github.com/reactjs

Conte considers this the best library on the market at this moment for single page applications.

Monday, 29 August 2016

GUI - Angular 2 School

http://campus.codeschool.com/courses/accelerating-through-angular-2/level/1/section/1/a-basic-component

http://www.pro-tekconsulting.com/blog/extjs-vs-angular-js/
Seems favor Ext JS.

http://blog.jhades.org/the-java-origins-of-angular-js-angular-vs-jsf-vs-gwt/
History