• How to Make a Minecraft Server [Voice Tutorial]
    Articles,  Blog

    How to Make a Minecraft Server [Voice Tutorial]

    lesson that would be managed aural night republic lion nineteen eighteen sohu interests cover that is uh… lisa video dash out how to make a bankrupt server ones taking down for some reason online news flag dunno but uh… yes i decided to move unique article rio and said that the since the month of servers and america itself bakit updated to have only one point three point one of the destroyer will work with directions uh… higher than that if you’re watching for the future so yeah within ridicule it started grand abusive myself by making me u alderman that stops that we do this one plate lol they…

  • Server Sent Events  (Tutorial 01 – w/ Java Servlet and Tomcat 7 Web Server)
    Articles,  Blog

    Server Sent Events (Tutorial 01 – w/ Java Servlet and Tomcat 7 Web Server)

    What is a simple tutorial covering Server Sent Events + Java Servlet + tomcat 7? Does html 5 require a reference to a DTD? What is a JavaScript EventSource? How to handle a JavaScript EventSource onopen event? How to handle a JavaScript EventSource onmessage event? How to handle a JavaScript EventSource onerror event? When is the servlet HtmlResponse content type set to ‘text/event-stream’? How to simulate the server continuously sending update events to a client? How to setup the data to be sent to the client using server sent events?

  • What is PLCnext?
    Articles,  Blog

    What is PLCnext?

    The Internet of Things is dramatically changing our lives. Smartphones, smart cars, smart homes. All interconnected and all at our fingertips. You can’t imagine living without it. But on the factory floor… it’s a very different story. The promise of IIoT is immense; with technology and suppliers promising an amazing new world. However, anchoring this vision are the paradigms of the past: closed systems, massive historical infrastructure, and hardened institutional memory, all contributing to what could be considered automation paralysis. But there is hope. Next-generation engineers are here to unleash the power of digitalization and break loose this technological gridlock. And you guessed it – Phoenix Contact is here to…

  • Building a chat client/server system with Netty in under 15 minutes.
    Articles,  Blog

    Building a chat client/server system with Netty in under 15 minutes.

    Hi, in this screencast I’ll be showing you how to create a simple chat application using Netty in under 15 minutes. First we’ll need to create a new Java project, and I’m going to use Maven for this. For this screencast I’ll be using the netty-all library. And to avoid some runtime warnings I’m also adding the javassist library. Also since we’re not living in the dark ages anymore, I want Maven to use the latest Java 1.7 for this project. Alright, now we’re ready to get started. Let’s create a new class called the ChatClient, and we’ll need to assign it a new package. Let’s create a constructor using…

  • Computing Pi with Darts – Intro to Java Programming
    Articles,  Blog

    Computing Pi with Darts – Intro to Java Programming

    Let me show you an interesting application of random numbers. You know what pi is. It’s the area of a circle with radius one, and of course, there are formulas for computing pi to any desired precision, but that’s no fun. We’ll compute pi by shooting darts. Specifically, we’ll throw random darts into the square. Most of the time we’ll hit the circle, sometimes we’ll miss, and the ratio of the hits over the tries is going to be approximately the same as the area of the circle, over the area of the square. The square has side lengths 2, so that’s 4, and the area of the circle is…

  • WebSocket (Tutorial 01 – Java Server + JavaScript Client + GlassFish 4.0 + JDK 1.7)
    Articles,  Blog

    WebSocket (Tutorial 01 – Java Server + JavaScript Client + GlassFish 4.0 + JDK 1.7)

    What is a tutorial covering WebSocket endpoint Java Server + JavaScript client? How to update eclipse w/ the GlassFish Tools? How to define The GlassFish Server Runtime Environment on Eclipse? What does the GlassFish Server Runtime require? What is a ServerEndpoint? What is the websocket OnOpen annotation? What is the websocket OnClose annotation? What is the OnError annotation? What is the OnMessage annotation? How to send and receive websocket String messages in ServerEndpoint? What is a simple WebSocket JavaScript client? How to send and receive messages from a webSocket JavaScript client? What is a JavaScript WebSocket onopen event? What is a JavaScript WebSocket onclose event? What is a JavaScript WebSocket…