Wednesday, March 11, 2015

[ StockReleaser | Tips ] Multiple releases at once!

The most useful feature of service StockReleaser.com is multi-release support. This service allows you to build property releases for multiple number of images (arts, photos, pictures) at once. Such feature could really save your time and will make this process faster and easier.



To use it, just upload all images which have to be released and add description for them. Then, fill out all Author and Witness fields which are common for all images. For each uploaded image service StockReleaser will create it's own property release. All common Author and Witness fields will have the same values for different releases, but image-specific fields like image itself and it's description - will be different. Finally, StockReleaser will pack property releases inside one ZIP-archive.

How to use StockReleaser:

Support Team: support@stockreleaser.com

Thursday, March 5, 2015

[ StockReleaser | Tips ] How to place signatures on property release

Most difficult step in filling-in property releases using StockReleaser service is to put images with signatures for Owner/Author and Witness on release template. Below, I listed most important requirements for signatures and described how service process them.

There are just a few requirements:
  • Signature should be written over transparent background
  • Signature should be saved as image in PNG file format (.png) with transparent layer support
  • Recommended proportions for signature images are: 500x100
Actual image size doesn't really matter, because StockReleaser service proportionally scales images automatically to fit a place. Just make sure that there are no too large indents in your signature image, otherwise image will look too small.

Here is an example of signature image:



Try to build your own property release easy, fast and effective:


Support Team:
support@stockreleaser.com

Wednesday, February 25, 2015

[ StockReleaser ] Owner address now available in PropertyRelease

Today we did another one step to make such process as creating property release easier and faster!



Now, StockReleaser allows to fill owner address data in property release template. Such address will be placed in both sections: Photographer/Filmmaker and Ownership. We suppose that author of shot/picture/art and owner is the same person.

Try our service to build your own property release easy and fast:
http://stockreleaser.com/

Here you could find tutorial 'How to build property release using StockReleaser service':
http://cyber-fall.blogspot.com/2015/02/property-release-builder.html

And send your feedback to our support team:
support@stockreleaser.com

Monday, February 9, 2015

[ StockReleaser ] Property Release Builder

What's the case?

It's always a bit routine to create a new property release file each time when you want to upload your art, picture or photo on stock sites. And one obvious idea comes to your mind: "can't believe that there is no any service to do this automatically!"

But, there is a one - StockReleaser [ http://stockreleaser.com ]

How to use it?

This service does all this job easily!
All you need is to fill all the fields with appropriate values, upload signs and upload one or several pictures to build release for. Then just push "Build Release" button and wait until building process is finished. Finally, just click on link to download property-release as result file (ZIP file). That's it! Inside this ZIP file you will find property-release files for each uploaded picture with all filled fields.

Also, watch this guide video on youtube:

Application design was already modified a little, but general steps are the same.

Property Release fields

Owner fields:
  • Sign. Drop box field. Picture with owner's sign on transparent background saved as PNG.
  • Name. Text field with owner's first and last names.
  • Phone. Text field with owner's contact phone number.
  • E-mail. Text field with owner's contact email address.
Witness fields:
  • Sign. Drop box field. Picture with witness's sign on transparent background saved as PNG.
  • Name. Text field with witness's first and last names.
Pictures:
  • Drop box field. Pictures to build release for. This field allows to upload multiple number of pictures. Each picture could optionally have description.

How it works..

This service receives all input data required to fill the property-release template. It converts all text fields to images. Then, it places these images, images with signs and pictures-to-release upon property-release template picture. Finally, it saves result as new picture.
StockReleaser allows to upload multiple pictures-to-release per one time. In this case, new property release would be created for each next picture. As result, it will build ZIP file with multiple property-releases inside.

Feedback

If you have some suggestions, feedback or if you find some problems with this service (it doesn't work correctly, stock site rejected property releases and so on) - send a feedback to developers on this e-mail: support@stockreleaser.com

Wednesday, February 20, 2013

[ Selenium 2.0 | WebDriver | Best practices ] How to check by URL that image exists


Purpose

Check that URL leeds to existent image. For example, when you need to check that image was really uploaded.
Actually, you could use such solution to check any URL and it's response.

Description

The Idea is to send an HTTP request by image-URL and check that response statuse code is OK (200)

Code sample

    // just look at your cookie's content (e.g. using browser) and import these settings from it
    private static final String SESSION_COOKIE_NAME = "JSESSIONID";
    private static final String DOMAIN = "domain.here.com";
    private static final String COOKIE_PATH = "/cookie/path/here";

    protected boolean isResourceAvailableByUrl(String resourceUrl) {
        HttpClient httpClient = new DefaultHttpClient();
        HttpContext localContext = new BasicHttpContext();
        BasicCookieStore cookieStore = new BasicCookieStore();
        cookieStore.addCookie(getSessionCookie());
        localContext.setAttribute(ClientContext.COOKIE_STORE, cookieStore);
        // resourceUrl - is url which leads to image
        HttpGet httpGet = new HttpGet(resourceUrl);

        try {
            HttpResponse httpResponse = httpClient.execute(httpGet, localContext);
            return httpResponse.getStatusLine().getStatusCode() == HttpStatus.SC_OK;
        } catch (IOException e) {
            return false;
        }
    }

    protected BasicClientCookie getSessionCookie() {
        Cookie originalCookie = webDriver.manage().getCookieNamed(SESSION_COOKIE_NAME);

        if (originalCookie == null) {
            return null;
        }


        String cookieName = originalCookie.getName();
        String cookieValue = originalCookie.getValue();
        BasicClientCookie resultCookie = new BasicClientCookie(cookieName, cookieValue);
        resultCookie.setDomain(DOMAIN);
        resultCookie.setExpiryDate(originalCookie.getExpiry());
        resultCookie.setPath(COOKIE_PATH);
        return resultCookie;
    }

Tuesday, February 19, 2013

[ Selenium 2.0 | WebDriver | Best practices ] Clear input element's value


Purpose

Clear value of HTML input element.
It should work successfully for browsers: Google Chrome, Firefox, IE, Safari.

Code sample


    protected void clearInput(WebElement webElement) {
        // isIE() - just checks is it IE or not - use your own implementation
        if (isIE() && "file".equals(webElement.getAttribute("type"))) {
            // workaround
            // if IE and input's type is file - do not try to clear it.
            // If you send:
            // - empty string - it will find file by empty path
            // - backspace char - it will process like a non-visible char
            // In both cases it will throw a bug.
            // 
            // Just replace it with new value when it is need to.
        } else {
            // if you have no StringUtils in project, check value still empty yet
            while (!StringUtils.isEmpty(webElement.getAttribute("value"))) {
                // "\u0008" - is backspace char
                webElement.sendKeys("\u0008");
            }
        }
    }


Notes

As for me, standard webElement.clear() doesn't work for all browsers. Commonly, it could not clear value and throws bug that element is not able to be clean:

Caused by: org.openqa.selenium.InvalidElementStateException: Element must not be hidden, disabled or read-only

Saturday, October 22, 2011

[ Tools | Linux | SVN ] Generate statistics about SVN commits for selected period of time.

It's very difficult and routine to gather statistics about how many lines of code were added, removed or changed by SVN commits for selected period of time in past.
I will explain how you may do it and also will share my shell script to you.

Thursday, October 13, 2011

[ RUS | Manual | Linux | Network ] Настройка утилиты openvpn для создания VPN соединения

В этой статье я опишу, как настроить и использовать openvpn для создания VPN соединения.

Нам понадобится выполнить следующее:
  • установить утилиту openvpn
  • подготовить *.crt файл, содержащий цифровой ключ
  • подготовить файл с настройками соединения
  • настроить шлюз
Итак, приступим.

Tuesday, October 11, 2011

[ Manual | Linux | Network ] Setup openvpn utility to connect via VPN

This post describes how to setup openvpn utility to connect via VPN.

You need to:
  • install openvpn
  • prepare *.crt file with digital sign
  • prepare configuration file
  • setup gateway
So, let's start.

Saturday, October 8, 2011

[ RUS | Manual | Project ] Project's directory/package structure

Структура пакетов и папок в проекте.
В первый раз, когда сталкиваешься с задачей создания структуры папок/пакетов внутри своего проекта - долго не можешь понять - зачем создавать такие сложные бессмысленные вложенности, как например 'src/main/java', а потом делать еще не менее непонятные вложенности вроде 'com.makeappinc.calculator.context'. Неужели не проще сразу располагать все свои пакеты и классы/файлы/ресурсы в корневой папке 'src'? Зачем делать параллельную ветку каталогов 'src/main/resources'?

Отвечаю:
Не проще, подобные мелочи сразу избавляют тебя от огромных проблем в будущем. Делай так и будешь счастлив!
А сейчас я объясню почему :)

Friday, October 7, 2011

[ Manual | Project ] Project's directory/package structure

Project's directory/package structure.

In first time, it is very unclear for developers, why they should create such directories as 'src/main/java' or 'src/main/resources'. Also, if you are new in developing, you will be probably confused in first time when you find such package names as 'com.makeappinc.calculator.context'.

In such moments you want to cry and ask - "Is it really more useful instead of using only 'src' directory as root path of project?".
I say, "Yes, it is very useful! Do such and you will be happy!".
Now I will explain why.

Sunday, August 29, 2010

Альтернативный источник энергии

Проводя свой отпуск, истоптав и преодолев поражающие сознание расстояния, внезапно озадачился :)
Меня вдруг осенило - столько людей ежесекундно обречены давить своими подошвами на тротуары, плитки, аллеи и асфальты.. Огромнейшая, просто умопомрачительная масса народу гарантированно ходит по одним и тем же местам, наступая на чужие следы, где только что, буквально мгновение назад ступала чужая стопа.


Wednesday, April 7, 2010

[ AI ] Первая попытка осознания

Искусственный Интеллект кажется таким фантастическим и нереальным. Мы, зачастую, произнося это словосочетание, сразу же рисуем себе образы, что же это такое... o_O
Оооо! Оно саморазвивается!!! Непойми что творится у него в... вообщем в :)
Так вот постараюсь выразить то, до чего я дошел в своих умозаключениях.
Сразу говорю, я статьи не читаю и вообще мой доступ к инфе такого рода узок(поэтому буду благодарен публикации).
Наверняка открытий я не сделаю xD и скорее всего повторю чьи нибудь уже озвученные идеи, при том основополагающие и элементарные. Но меня это к несчастью мало волнует.