Developers Club geek daily blog

Neuronet in 11 lines on Python: part 1

2 years, 11 months ago

About what article

Personally I am best of all trained by means of the small working code with which I can be played. In this benefit we will learn algorithm of the return distribution of errors on the example of the small neural network implemented on Python.

Give a code!

X = np.array([ [0,0,1],[0,1,1],[1,0,1],[1,1,1] ])
y = np.array([[0,1,1,0]]).T
syn0 = 2*np.random.random((3,4)) - 1
syn1 = 2*np.random.random((4,1)) - 1
for j in xrange(60000):
    l1 = 1/(1+np.exp(-(,syn0))))
    l2 = 1/(1+np.exp(-(,syn1))))
    l2_delta = (y - l2)*(l2*(1-l2))
    l1_delta = * (l1 * (1-l1))
    syn1 +=
    syn0 +=

It is too compressed? Let's break it into simpler parts.

Read more »

Chronicles of laboratory: as we considered ground coffee as software for the analysis of cellular structures

2 years, 11 months ago

I continue coffee subject which I began for geektimes: Hello, I am Meklon and I am caffeine - dependent. Today we will create indecencies with software for bioengineering tasks — CellProfiler. Normal people consider by it cages, plasmids, an expression of protein and other necessary things. We are dolbanuty therefore we will carry out the granulometric analysis of a grinding on a microphotograph, to beat with coffee static electricity and to think how to fasten the hair dryer to this disgrace. Well and of course we will need an adhesive tape for receipt of a decanter of a picture of particle distribution.
In general, the computer analysis of the image — piece flexible can be also applied in absolutely strange tasks. At the same time we will check whether the Turk can replace with a flask with a magnetic mixer. Eventually, the main principle of a survival in laboratory — "Is not present some coffee — there is no work") Under a cat many photos, but I tried to press down them to the decent sizes.

Read more »

GeekWeek results. How to find a job on what to develop and what systems to use

2 years, 11 months ago
Not so long ago we already wrote about GeekWeek-2015. Online conference takes place literally now, and you still can manage to take the last day of webinars. Believe, there is what to look at and to whom to listen. We, in turn, begin to sum up the results.

Fifty respondents tried to cover all hot topics of the IT present as much as possible. We spoke about languages and programming methods, imparted experience of employment, a timliding and creation of home companies, gossiped a little and quite seriously argued on perspectives of the digital world. So, about everything one after another.


Questions of creation of career were discussed at conference, perhaps, most often. Certainly, it was promoted by a situation in the country and the world, but also the level of guests in not smaller degree located to obvious questions of how to achieve the same success. Ivan Nemytchenko from Skillgrid advised not to be proud of only one university diploma, and directly during training to aim to apply skills in the real world. Vladimir Zheleznyak from IT Boost and Ewan Booth (ex-Google) passings of interviews in the large companies touched upon a subject and asked a key question: "and whether it is necessary to you?". Andrey Sidelnikov from the HR Expert on Thursday told of difficulties of transition to the head's position, and Sergey Kuryavtsev (, Evgenia Soboleva (GENIARS), Alexey Poimtsevpoimtsev (Progress Engine) and Dmitry Shkolnikov (Avito) issued some secrets of how competently to open the business, to give it powerful acceleration and, the main thing how to avoid a failure.

Speakers avoided vast reasonings that it is necessary to study, try well, to wait for the chance and to trust in a miracle, themselves and the command. For anyone to begin successful career or to cardinally change its practical data checked on others experience, far more important and more interestingly. We trust and hope that we managed to make the contribution to this work, and the exchange of IT work will be replenished with qualitatively trained staff and not less good sentences about work soon.


Second topical issue practically any IT conference: "And how you incense?". The scope for reflections gave the benefit, structure of speakers and their approaches. Also adherents of classical training and those who prefer to try new methods acted. Yury Afanasyev from in the first day of conference shared interesting opinion on advantage and harm of comments in a code, and also told why in work he uses the DRY method. Sergey Baranov and Vladimir Grinenko, in turn, told about delights of creation of the final product from procurements and integral components. It is remarkable that children represent absolutely different fields of activity.

The correspondence dispute ran high between supporters of old and modern languages of programming. The role and value of the first were upheld by the head of DriverPack Artur Kuzyakov and the founder of community Khasang and the teacher of GeekBrains Igor Dolgov. The first told about ample opportunities of application of Javascript for creation of commercial Windows applications, the second went further and gave a number of master classes for beginners of development. Other point of view Nikolay Ryzhikov who will show the principles of functional programming on the example of the clojure language not really known to a wide range of people will provide CTO Health Samurai already today.

A little IT philosophy on Monday was offered by Georgy Gadzhiyev. It predicted fast death of classical system administration and suggested to look towards DevOPS methodology. In general about the personal relations with codes a kind third of respondents told, perhaps, therefore to think really is over what.


At conference we talked also about specific products. For example, Igor Bochkaryov from "Promtekh" during the performance on Thursday urged to stop infinite dispute on benefits of meynstrimovsky mobile platforms. Certainly, to suggest to take new Ubuntu Touch as a basis. It was talked of optimization of system for the applications connected with collecting and structuring data. Said also about the Ruby on Rails, about how it is easy to pass to it and as conveniently on it is mute to work. If council for the most ruby all of them languages is necessary and to not less ruby framework — address Fateev Evgeny and Ivan Nemytchenko. Did not do without dialogs about Python and its application — initiators in Dylan Jay and the head of ITCANFLY Vladimir Filonov is mute CTO steel in PretaGov. And the day before yesterday we much and fruitfully discussed testing. Alexey Lavrenyuk's presentation was devoted to testing of graphics and performance during creation of online games in Yandex. Anton Bevzyuk told a unit tests why you should not be afraid of them of knowledge of use, and, on the contrary, actively to apply to improvement of quality of a code.

Generally, we made every effort that each registered user found a webinar on interests. It is even more interesting speakers and hot topics we will prepare for GeekWeek-2016. Thank you that were with us all this week, and do not forget to glance on the completing performances today.

Read more »

Dig only down

2 years, 12 months ago
Hello, dear readers.

Recently we were interested in Zed's series of the Show "The Hard Way" which it would be desirable to translate into Russian at least partially. As occasionally we really do not look for easy ways, it would be desirable to begin with the book about language C:

A series is oriented first of all to beginners. For those who love language C and also for their opponents believing that it is better to start with something more simply we publish a little reduced Evan Miller's article written at the end of last year. Perhaps, depending on reaction to this article, we will decide to translate and publish in addition a fragment from the book of Mr. Shaw or even his answer to the criticism stated by Tim Hentenaar for now we invite you under kat where, from our point of view, the most general reasons for benefit of relevance of this book are stated.

Read more »

Downloading of tracks with

2 years, 12 months ago
As well as many fans to travel, I find coordinates of sights of the cities on the website (further — the website). Under the needs wrote the small utility for downloading of files with sights for the subsequent filling to the navigator. The program is extremely simple, but works exactly as it was necessary for me. Besides the simplest means of economy of load time and traffic — a caching is implemented.

The program which I called AtTrackDownloader is written on Python 3 with use of Beautiful Soup — libraries for syntax analysis of the HTML files. For the graphic interface PyQt — just is used because I am familiar with Qt.

Read more »

Asynchronous Python 3.5 and Mongodb

3 years ago

It is rather loose translation of article about the main innovations of the asynchronous driver for mongodb used in tornado. The main motive which served for writing of this transfer — the innovations which appeared in this version such as support asyncio, async, await and Python 3.5. Article not, how many transfer of innovations, how many laconic examples of asynchronous work with MongoDB.

Python 3.5
async and await

Read more »

PyNSK #4 — the fourth meeting of Novosibirsk Python of community

3 years ago

There passed month from last meeting and here, will organize a new sit-round gathering for fans of Python in Novosibirsk.

On November 15th (Sunday) the fourth meeting will take place. It will go to Samovar anti-cafe and 13-00 will begin.
At a meeting you are waited by the sea of communication and 3 reports:

Read more »

Budget mailing of SMS

3 years ago
I welcome all habrozhitel!

Of course, the licked subject about mailing of SMS messages, but how to be told: "more is better than less". Somehow so it turned out that it constantly pursues me: one, other kind people will ask to take part (council, for example) in implementation of budget mailing of messages. And therefore not to vanish to the saved-up good, I will leave here, and suddenly it is useful to someone …

So - with … We lower all options of implementation based on a normal computer and an axis of NT family. And we will pass to "autonomous" systems at once.

What arduino in this direction can brag of? I will answer immediately, IT works, but there are nuances about which I will write below. Generally, we have the Chinese arduino 2560 option (it was tried practically all line) and two additional modules — the W5100 network (the stablest option) and GSM SIM 900. All this business somehow so looks.


The task was following:
— the device has to be able to communicate on http
— to send the message
— to issue result in the json format

Google shares all necessary information, and on an output we receive the following code:


Read more »

SWAPY with the new generator of a code

3 years ago
SWAPYSWAPY – the graphic utility for automation of UI for pywinauto (Python).

In version 0.4.7 the code generator is completely processed. The main opportunities, and also examples as quickly and just to create scripts of automatic testing of UI, you look under a cat.

Read more »

Event - the oriented bektesting on Python step by step. Part 5 (and the last)

3 years ago

In the previous articles we said that it is event - the oriented system of a bektesting, sorted the class hierarchy necessary for its functioning, discussed how similar systems use market data, and also perform tracking of positions and generation of orders on purchase. Besides, we described process of an assessment of performance of the tested strategy.

In today's material process of creation of the processor of API of broker system to go to real trade will be considered.

Note: As an example the author uses API of the foreign company Interactive Brokers, names of the discussed modules from here (IBExecutionHandler, etc.). ITinvest have own SmartCOM API interface which can be used at creation of systems, similar to described.

Read more »