WDmore – Want more Do more

This 60 minutes training, will allow to introduce agile in small company.  Starting from basic stuff, will allow easy understand main benefits of agile methodology. Plan of training: 1. “Shredder can not destroy 1000500 papers at same time”.  Limit of dev capacity. Normal workflow in building product: “Owner Introduce Feature” – > “Development Department Develop Feature” – > …
Read more

The Pareto principle states that 80 percent of outcomes can be attributed to 20 percent of the possible causes of a given event. Also known as the 80-20 rule, it’s relevant to almost every field of human endeavor. Application Developer In the field of software development, the principle can be summarized by saying that most …
Read more

C# Start Thread. Execute code in thread

September 18th, 2015 | Posted by uafinder in Software Development C# - (Comments Off)

To start code execution in new thread use: var task = Task.Factory.StartNew(() => { //your code }); task.Wait(TimeSpan.FromSeconds(10));  //wait till code finished in thread

Force Kill windows started service via cmd

August 25th, 2015 | Posted by uafinder in IT general | Software Development Java - (Comments Off)

Get PID of service tasklist /v Then kill by PID taskkill /f /pid [PID]

SQL Test for candidate on position Senior QA

August 13th, 2015 | Posted by uafinder in QA/Testing - (Comments Off)

Precondition: Table_1 User Id (INTEGER) UserFirstName (VARCHAR) UserLastName (VARCHAR) 1 Tim Barton 2 Sem …   Table_2 UserDetails UserId (INTEGER) Phone (VARCHAR) DOB (DATE) Address (VARCHAR) Active (INTEGER) 1 +380991221212 Kyiv  Barada Street 1 ap 355 1 2 0   Table_3 UserRelations ParentUserId (INTEGER) ChildUserId (INTEGER) 1 2 Column User.Id is primary key for UserDetails.UserId, …
Read more

How to run MSSQL as domain user

July 28th, 2015 | Posted by uafinder in IT general - (Comments Off)

To run program (ms sql) as domain user to use windows authentication to login to data base. Open CMD and start program: runas /netonly /user:domain\username “C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio\Ssms.exe”

To set custom value for header Content-Type: HttpContent body = new StringContent(“CustomBodyContent”); body.Headers.ContentType = new MediaTypeHeaderValue(“YourCustomContentType”); public class Client { private readonly HttpClient _httpClient; public Client(string url) { _httpClient = new HttpClient(new LoggingHandler(new HttpClientHandler())); var clientTimeoutSeconds = int.Parse(ConfigurationManager.AppSettings[“clientTimeout”]); _httpClient.Timeout = TimeSpan.FromSeconds(clientTimeoutSeconds); var baseUrl = new Uri(url); _httpClient.BaseAddress = baseUrl; } public HttpResponseMessage Post(string path, string bodycontent …
Read more

C# Singleton Example code

May 6th, 2015 | Posted by uafinder in Software Development C# - (Comments Off)

Here is example of singleton for class on c# using System; using System.Configuration; namespace SomeName { public class ExampleSingleton { private static readonly Lazy<ExampleSingleton> Instance = new Lazy<ExampleSingleton>(() => new ExampleSingleton ()); private ExampleSingleton(){} public static ExampleSingleton GetInstance { get { return Instance.Value; } } } }

Main Class using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Diagnostics; using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; using System.Web; ///<summary> /// Client allow to send Http request with different combination /// of Http Methods, Url Parameters, Body and Custom Headers /// <returns> /// HttpResponseMessage wich allow to extract all needed /// data, such as …
Read more

Jmeter script example

April 1st, 2015 | Posted by uafinder in QA/Testing - (Comments Off)

Here is a good example of Jmeter script for load testing. – Save to file.jmx – Open file using Jmeter <?xml version=”1.0″ encoding=”UTF-8″?> <jmeterTestPlan version=”1.2″ properties=”2.6″ jmeter=”2.11 r1554548″> <hashTree> <TestPlan guiclass=”TestPlanGui” testclass=”TestPlan” testname=”Test Plan” enabled=”true”> <stringProp name=”TestPlan.comments”></stringProp> <boolProp name=”TestPlan.functional_mode”>false</boolProp> <boolProp name=”TestPlan.serialize_threadgroups”>false</boolProp> <elementProp name=”TestPlan.user_defined_variables” elementType=”Arguments” guiclass=”ArgumentsPanel” testclass=”Arguments” testname=”User Defined Variables” enabled=”true”> <collectionProp name=”Arguments.arguments”/> </elementProp> <stringProp name=”TestPlan.user_define_classpath”></stringProp> …
Read more