Websockets in microservices architecture

Websockets A websocket connection opened by a client must eventually connect to a websocket server. API Gateway The job of the API gateway is to accept an incoming websocket connection from a client and correctly route it to a websocket server. An API gateway will redirect ALL data sent from a client websocket to the … Read more

Right mouse click in web applications: good or bad idea?

It’s generally not a good idea: Expectations Users, especially power users, expect to be able to right-click on elements in desktop applications in order to get a menu of element-specific actions. This expectation does not exist for web applications – indeed, the expectation is that right-clicking in a web page will give you the standard … Read more

Wysiwyg with image copy/paste [closed]

You might find inspiration from ScreenshotMe. Basically you need different parts: something that takes the image out of the clipboard and uploads it to the web: this could be a java applet, flash or firefox extensions. Flash or Java would have the advantage of being cross browser then you use the <canvas> tag to display … Read more

Docker : How To Dockerize And Deploy multiple instances of a LAMP Application

I recently went through analysis on Docker for this type of setup. I know there are some who view Docker as a sort of MicroVM, but my take is the Docker philosophy leans more toward single process per container. This tracks well with the Single Responsibility principle in programming. The more a Docker container does, … Read more

manifest.json vs manifest.webmanifest

There are no big difference rather than naming. Use whichever you prefer: href=”/manifest.webmanifest” or “/manifest.json”. Just don’t forget that MIME type has to be: application/manifest+json in both cases. <link rel=”manifest” href=”/manifest.webmanifest”> <link rel=”manifest” href=”/manifest.json”> Note that spec says it should be manifest.webmanifest. And later it may be important because it is under heavy development. For … Read more

What are cross-browser and cross-OS safe keyboard shortcuts usable for web application?

I wouldn’t count on it. It’s probably okay to listen for shortcuts that use the Alt modifier, but there’s still no way to be sure a keyboard shortcut is free. Users can always install programs that listen for keyboard shortcuts, or use a browser you didn’t expect. If the shortcuts can be used only when … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)