When writing an HTTP server or client in Go, timeouts are amongst the easiest and most subtle things to get wrong: there’s many to choose from, and a mistake can have no consequences for a long time, until the network glitches and the process hangs.
seen from Japan

seen from United States

seen from United Kingdom
seen from China
seen from United States
seen from Japan
seen from Philippines
seen from Japan
seen from United States
seen from China

seen from Japan
seen from South Korea
seen from United States

seen from Japan

seen from Belgium

seen from Japan

seen from Singapore

seen from United States

seen from T1
seen from United States
When writing an HTTP server or client in Go, timeouts are amongst the easiest and most subtle things to get wrong: there’s many to choose from, and a mistake can have no consequences for a long time, until the network glitches and the process hangs.
Logo for the new site I am working on.
I may not actually use tumblr very often since I am actually working on a blogging site. The site is going to be self-hosted on my little machine. Let’s hopep it can take the traffic if there is any.
Знакомство с Node.JS: разработка чата
Знакомство с Node.JS: разработка чата
Итак, немножечко с задержкой, но мы продолжаем писать наше приложение чата на Node.JS. Мы уже вкратце познакомились с этой платформой и запустили свой первый веб-сервер на ней. Пора уже переходить к более серьезным вещам. в целом, если вы хоть немного почитали официальную документацию текущих знаний должно хватить, ну и немного терпения )
Давайте установим в наш проект еще парочку модулей которые…
View On WordPress
Знакомство с Node.JS: запускаем первый сервер
Знакомство с Node.JS: запускаем первый сервер
Доброго вам дня! Как я говорил – не затягиваю со второй статьей. Если вы не читали первую, то советую перейти к ней, а потом вернуться сюда снова. Сегодня мы снова отойдем от разработки CMS и PHP в целом. Сегодня мы погрузимся в пучину Node.JS.
Итак, в прошлый раз мы остановились на том, что разобрались вкратце что такое Node.JS и узнали, что на JavaScript можно писать не хуже чем на PHP. Но…
View On WordPress
Hauntbox
What is Hauntbox
The HAUNTBOX is a open source platform which is configured by web browser for haund and some projects.
“It is a system of parts. Sensors and outputs plug into your Hauntbox and it plugs into your network. You tell it what do by using your browser on your computer, iPad or smartphone on your home network with our simple visual interface.”
The Hauntbox supports up to 6 intput…
View On WordPress
Securing your web-app
This post is part of a series of 3 topics introduced in the post “Quick security insights”.
Now that your server is up and running it’s time to move forward and deploy your web-app (remember, it’s going to change the world !). You tested it locally, everything works the way you want it to work, your bugs are fixed (at least, you think so)… You’re ready.
Are you sure?
Are you certain there are no XSS vulnerabilities? Injection flaws? If someone were to compromise your application, would he be stopped from messing around in your server’s system?
Maybe it’s time, again, to re-consider before going live.
After host-specific security, let’s ask ourselves new questions, and let’s try to figure out if we’re likely to be hacked… In this article, we will cover, from a high-level perspective, the following points:
Web-server security and configuration;
DIY penetration test (think like a bad guy).
As in the previous post, the main idea in terms of configuration remains the need-to-have basis. Users should only be allowed to perform a restricted set of actions. You don’t want your apache user to reboot your server, nor do you want your database user to install new software on your host. All the user accounts created in the context of your web-app have a well-defined purpose: they MUST stick to it.
So, continuing from our Linux-based examples, and considering we would like to run an Apache server, we should first restrict the context in which it will be running.