Konstantin Vlasenko

An engineer is someone who can make for a dollar what any fool could make for two. – Alan Kay

Cloud adds new statement to Manifesto for Agile Software Development

The cloud is not only a new way to more easily and cheaply get the computing power needed to do what companies and individuals are doing today… This may be the most important benefit of the cloud—it enables companies of all sizes and in all sectors, as well as governments, non-profits, and individuals, to more [...]

node.js Allow access only for logged in users

The reference to isLoggedIn in the route is an connect route middleware. Control is passed to the middleware function before the route function is called. Use isLoggedIn to verify that we have a user token in the session before we send the client the requested route. If we do not have a user token in [...]

Getting IP address by using AWK

The AWK utility is a data extraction and reporting tool that uses a data-driven scripting language consisting of a set of actions to be taken against textual data (either in files or data streams) for the purpose of producing formatted reports. ifconfig | awk ‘/inet addr:.* B/ {split($2,a,”:”); print a[2] }’

Get Spot Price History by using aws-lib

We are going to get the pricing history for t1.micro instances by using aws-lib (Extensible Node.js library for the Amazon Web Services API): var aws = require(“aws-lib”); var ec2 = aws.createEC2Client(accessKeyId, secretAccessKey); var iType = ‘t1.micro’; ec2.call(‘DescribeSpotPriceHistory’, {‘InstanceType.1′:iType}, function(result) { console.log(result.spotPriceHistorySet.item); } );

connect.bodyParser converts FORM data to JSON format

http://senchalabs.github.com/connect/middleware-bodyParser.html Client: Server: Output: login= { { name: Velaskec, password: Pa$$word } }

PowerShell: Wait for SQL Server is ready for client connections

The useful PowerShell script waiting SQL server is ready. I found that waiting for starting service while((get-service MSSQL`$INSTANCENAME).Status -ne ‘Running’){Sleep 3} is not enough. Better to check the event log entry EventID = 17126: SQL Server is now ready for client connections. This is an informational message; no user action is required. $ew = new-object [...]

PowerShell: Create CSV without Header

get-process | ConvertTo-CSV -NoTypeInformation | select -Skip 1

Программисты в первую очередь ответственны за демографию в России

Интересное интервью на fontanka.ru. Вы же не призываете население России во имя размножения сломя голову селиться в деревнях? – Нет, конечно. Речь идёт о принципиальной смене типа поселения и внешнего вида нашего жилья, его параметров. Если выделить достаточный материальный ресурс, полностью изменить стратегию расселения людей и тип жилищных поселений, то с использованием средств современных дистанционных [...]

Random Number in a batch file

The simple way to get a random number in a bacth file. @echo off & setLocal EnableDelayedExpansion echo !random!

You are smart but we don’t have a such position

Would you hire an actor without an audition? You wouldn’t last long as a director if you did. But this is exactly what almost all companies who hire software developers do today. Usually the process involves talking through an applicant’s experience with them. And that’s all. Imagine asking an aspiring actor if they enjoyed their [...]

Follow

Get every new post delivered to your Inbox.