Code, Career & Everything IT

Blogs about my IT work, life, and example code — from PHP and .NET to Java, career notes and tech opinions.

Q&A

IOS: Check Core Data Object is null

@property (nonatomic,retain) TipRecord*record; To check the object in the code above, that should check whether the object is nil. if(self.record == nil) Please…

Read more
Example Codes

Horizontal Stackpanel in WPF

Stackpanel is a useful layout control in WPF. If you have a set of elements need to sit side by side each other, this is your best option. For example, in my…

Read more
Example Codes

Styles in WPF

I have some styling in my WPF opensource project, AdvGen Contact Manager. That is similar with css, just state the class name like : <Grid Grid.Column="1"…

Read more
Q&A

UIAlertView Button Click in IOS

if you only have an ok button for alert view, that is easy. However, if you have more than an "OK" button, you need to implement your controller as…

Read more
Opinions

Software Subscription

Source:Open Clip ArtUsing Under Public Domain Attribution Adobe stopped to sell their software, it goes all Subscription base business model. Even Microsoft…

Read more
Q&A

Using Paypal as our payment gateway

Source:Open Clip ArtUsing Under Public Domain Attribution Paypal is my preference for online gateway. A number of people asked me why do I directly use the…

Read more
Programming

Running SQL Backup in .Net

If you are using SQL Express, you have sql agent to do the backup for you. The only way is using T-SQL in a application code to do that. I have a C# library to…

Read more
Example Codes

Creating my first MVC5 Project

In the old time, we choose the MVC project templates to create a new project. In the Visual Studio 2013, The workflow to create a new MVC5 project is different…

Read more
Programming

Visual Studio 2013 and MVC5

I just installed Visual Studio 2013. Moreover, I started to build a MVC 5 project. That is great, it is integrated with Bootstrap and css less by default. The…

Read more
Q&A

Speed up an old computer

Recently, there are a number of friends to ask me how to Speed up their old computer. They are willing to pay a small amount of money to upgrade their hardware.…

Read more
Example Codes

Defining Styles in WPF

Of course, we can put the styles for controls in each windows xaml file. But I am more prefer to all styles storing in a single file, that is more similar with…

Read more