{%Pragmatic Coding%} Tips and tricks for software developers.


Blocks in Objective-C: Part 2. Getting Advanced

BlocksContinuing our serie about blocks in objective-c.

In this part we'll review advanced usage of blocks with arrays, enumerators, recursion and stop to end processing.
Read the full article...


Blocks in Objective-C: Part 1. Introduction

When I have started write my blog my friend asked me if I could write something about blocks in Objective-C. So, time passed, and finally I get closer with blocks, made a review of some articles and now will write a scope af articles about using blocks in objective-c.

In a first look block are looks strange and I'm sure you will ask me why do we need to use blocks?
Read the full article...


Automatic Reference Counting (ARC) in iOS 5 – Part 1

This is part 1 on Automatic Reference Counting post. Enjoy!

Few weeks ago I have updated my environment to iOS 5 SDK and xCode 4.2 and was really surprised seeing bunch of new features added to 5th SDK. And today we will talk about one of these features.

Automatic Reference Counting (ARC) is a new feature introduced in iOS 5 SDK for programmers from having to handle memory management by making memory management the job of the compiler.  Instead of you having to remember when to retain or release an object, ARC evaluates the lifetime requirements of your objects and automatically inserts the appropriate method calls at compile time.

Ok, that's cool new stuff and it looks like makes life  easier with automatic reference counting. Great but not so fast, certainly here is a difference between standard [release] [retain] [autorelease] and new way of coding with ARC.
Read the full article...

Tagged as: ARC, iOS Continue reading

How to make a screenshot of your iPad and iPhone screen

The simple way how to take a screenshot using your iPad and iPhone, and how to transfer it to your PC or Mac.
Read the full article...


How To BackUp and Restore MySql Database

Hello dear reader!
I will give you simple ways how to restore and backup you MySql database with Command line and PHPMyAdmin.

1. Command Line. Backup Database.

Why we may want to back up or restore database from command line?
It is because PHPMyAdmin can't handle large databases. In that case straight mysql code and command line will help.
Read the full article...

Tagged as: mysql Continue reading

Moved to new domain

Hello, Dear visitor!

First of all Happy New 2012 Year!

I'm hasten to inform You that this year brought new improvements and happy changes to our blog.

From now you can reach this blog not just from http://eugene.eazysoft.info.

We got 2 new domains you can reach our blog from:

Welcome aboard! Subscribe us! Follow us! And you will be up to date with lates news, articles and tips!

Thanks for attention!


Filed under: Site No Comments

Threading in .NET guide – Part 1

Hello my dear friend!

I'm starting the collection of articles about threading|multithreading programming in C# .NET.

Why now? I'm really wanted to write such collection year ago but as usually work is on the first place. I've got new experience in programming and ready to give materials for your brain in easiest way. So, please, be patient and I'll give samples to be understandable for beginners and for advanced.

Let's get the party!

Part 1 devoted to the introduction in threading.

I have read a lot of material dedicated to threading in .NET and finally want to share my knowledge and with the same way to learn something new. Next part I plan to give you after new year and can't say for sure it's going to be about. Probably it's going to be about Lifecycle of Threads or Synchronization. Just follow me on Tweeter and you'll be in touch with all updates! Read the full article...


Simple iTunes File Sharing with iOS App

Recently I had to implement File sharing with the second version of my iPad application and it become easier than I thought.

I found out great opportunity that gives  iOS 4 +  with new functionality allowing you to enable file sharing between your apps and iTunes.  There are just a few steps that need to be done to get this functionality working just right.

So, as an example I had to made file sharing of CSV file where my application collect specific information about customers.

First of all you need to create manually CSV file you want to share in your Resources folder as shown below.

Read the full article...


Set Locale with Date Formatter

In one of my projects I was confused if it is possible or not to sep up Locale for displaying a date time.

So, by default, the NSDateFormatter uses the locale set on the device, and there is no code specific locale changes are required if you want your app to display in the current locale.

But, what if you need to display a date in a locale other than the current setting on the device. Read the full article...