SingleComponent Picker in iPad

This is the Single Component Picker application. In this application we will see how to add Single Component in iPad.

Step 1: Create a View base application using template. Give the application name  ”SingleComponent_iPad”.

Step 2: Xcode automatically creates the directory structure and adds essential frameworks to it. You can explore the directory structure to check out the content of the directory.

Step 3: Expand classes and notice Interface Builder created the SingleComponent_iPadViewController class for you. Expand Resources and notice the template generated a separate nib, SingleComponent_iPadViewController.xib, for the “SingleComponent_iPad”.

Step 4: In the SingleComponent_iPadViewController.h file , we have added DataSource and delegate protocol. Create an instance of UIPickerView class and add one IBAction method. So make the following changes.

#import <UIKit/UIKit.h>

@interface SingleComponent_iPadViewController : UIViewController
<UIPickerViewDataSource , UIPickerViewDelegate>
{
        IBOutlet UIPickerView *singlePickerComponent;
        NSArray *pickerData;
}

@property(nonatomic , retain) UIPickerView *singlePickerComponent;
@property(nonatomic , retain) NSArray *pickerData;

–(IBAction)buttonPressed;

Step 5: Double click the SingleComponent_iPadViewController.xib file, open it to the Interface Builder. First drag the Picker view from the library and place it to the view window and drag round rect button from the library and place it to the view window. Select the picker from the view window and bring up connection inspector and drag from the datasource to the file’s owner icon, do the same thing for delegate protocol. Select the round rect button and bring up Connection Inspector and drag from the Touch Up Inside to the File’s Owner icon and select buttonPressed: action. Now save the SingleComponent_iPadViewController.xib file, close it and go back to the Xcode.

Step 6: Open the SingleComponent_iPadViewController.m file and make the following changes in the file.

–(IBAction)buttonPressed
{
        NSInteger row = [singlePickerComponent selectedRowInComponent:0];
        NSString *selected = [pickerData objectAtIndex:row];
        NSString *title = [[NSString alloc] initWithFormat:
                                           @"you selected %@!", selected];
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:title
                                                                                                   message : @"Thank you for choosing."
                                                                                                   delegate:nil
                                                                                 cancelButtonTitle :@"You are Welcome"            
                                                                                 otherButtonTitles :nil];
        [alert show];
        [alert release];
        [title release];
}

// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
– (void)viewDidLoad {
        NSArray *array = [[NSArray alloc] initWithObjects:@"SunDay",@"MonDay",@"TuesDay",@"WednesDay",@"ThusDay",
                                          @"FriDay",@"SaturDay",nil];
        self.pickerData = array;
        [array release];
    [super viewDidLoad];
}

–(NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView
{
        return 1;
}

–(NSInteger)pickerView:(UIPickerView *)pickerView
numberOfRowsInComponent:(NSInteger)component
{
        return [pickerData count];
}

–(NSString *)pickerView:(UIPickerView *)pickerView
                        titleForRow:(NSInteger)row
                   forComponent:(NSInteger)component
{
        return[pickerData objectAtIndex:row];
}

Step 7: Now Compile and run the application in the Simulator.

You can Download SourceCode from here SingleComponent_iPad

WordPress tip: Close trackbacks on all posts at once

Simply run the following SQL query on your WordPress database, using the command line client or PhpMyAdmin. This will close pingbacks/trackbacks on all existing posts.
Don’t forget to backup your database before using this query.

UPDATE wp_posts SET ping_status = 'closed';

If you like to know more about WordPress SQL queries, you should have a look to this article.

Thanks to Jeff Starr for this nice piece of code!

Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you can try it for free!

WordPress tip: Close trackbacks on all posts at once

8 CSS preprocessors to speed up development time

Less CSS

Less is probably the most well known CSS preprocessor. It allow a simplified syntax and the use of variables. Less CSS is for the Ruby programming language, however it looks like Aaron Russel created an extension for creating cached stylesheets your PHP projects can use.

Get it: http://lesscss.org

Sass

On their website, Sass claims to make CSS fun again. To be honest, I must admit that what this project is capable of is very interesting. Like Less CSS, it allow the use of variables and have a simplified syntax. Sass is definitely a great tool, unfortunely only available for Ruby, as far as I know.

Get it: http://sass-lang.com/

Turbine

If like me, you’re a PHP Lover, here is a css preprocessor made for your favorite language. I haven’t tested it yet, but Turbine looks very cool. It allow a minimal syntax, automatically gzip multiple css, fix cross-browser issues, and a lot more. A must check if you’re into PHP.

Get it: http://turbine.peterkroener.de/index.php

Switch CSS

Switch is a full featured, production ready CSS preprocessor. It runs under Apache with mod_python, or as an environment-agnostic command line tool.

Get it: http://sourceforge.net/projects/switchcss/

CSS Cacheer

CSS Cacheer is a very cool preprocessor which allows developers to create plugins. It requires PHP and Apache with mod_deflate and mod_rewrite in order to work.

Get it: http://retired.haveamint.com/archive/2008/05/30/check_out_css_cacheer

CSS Preprocessor

Another interesting preprocessor, written in PHP 5. Among other things, this tool allow you to use expressions such as margin-left: (200px * 3/2 – 10px); in your stylesheets.

Get it: http://pornel.net/css

DT CSS

DtCSS speeds up CSS coding by extending the features to CSS. Such as nested selectors, color mixing and more. DtCSS reads the CSS file with special syntax written for DtCSS, and outputs the standard CSS. It also comes with a smart caching system.

Get it: http://code.google.com/p/dtcss/

CSS PP

Unfortunely, CSS PP is still in alpha status, but the authors says the code will be released very soon. One of the good points of this projects is that it will be available in PHP, Python and Ruby. Great news for developpers who work with all of these languages.

Get it: http://csspp.org/

Like CatsWhoCode? If yes, don’t hesitate to check my other blog CatsWhoBlog: It’s all about blogging!

8 CSS preprocessors to speed up development time

SingleComponent Picker in iPad

This is the Single Component Picker application. In this application we will see how to add Single Component in iPad.

Step 1: Create a View base application using template. Give the application name  ”SingleComponent_iPad”.

Step 2: Xcode automatically creates the directory structure and adds essential frameworks to it. You can explore the directory structure to check out the content of the directory.

Step 3: Expand classes and notice Interface Builder created the SingleComponent_iPadViewController class for you. Expand Resources and notice the template generated a separate nib, SingleComponent_iPadViewController.xib, for the “SingleComponent_iPad”.

Step 4: In the SingleComponent_iPadViewController.h file , we have added DataSource and delegate protocol. Create an instance of UIPickerView class and add one IBAction method. So make the following changes.

#import <UIKit/UIKit.h>

@interface SingleComponent_iPadViewController : UIViewController
<UIPickerViewDataSource , UIPickerViewDelegate>
{
        IBOutlet UIPickerView *singlePickerComponent;
        NSArray *pickerData;
}

@property(nonatomic , retain) UIPickerView *singlePickerComponent;
@property(nonatomic , retain) NSArray *pickerData;

–(IBAction)buttonPressed;

Step 5: Double click the SingleComponent_iPadViewController.xib file, open it to the Interface Builder. First drag the Picker view from the library and place it to the view window and drag round rect button from the library and place it to the view window. Select the picker from the view window and bring up connection inspector and drag from the datasource to the file’s owner icon, do the same thing for delegate protocol. Select the round rect button and bring up Connection Inspector and drag from the Touch Up Inside to the File’s Owner icon and select buttonPressed: action. Now save the SingleComponent_iPadViewController.xib file, close it and go back to the Xcode.

Step 6: Open the SingleComponent_iPadViewController.m file and make the following changes in the file.

–(IBAction)buttonPressed
{
        NSInteger row = [singlePickerComponent selectedRowInComponent:0];
        NSString *selected = [pickerData objectAtIndex:row];
        NSString *title = [[NSString alloc] initWithFormat:
                                           @"you selected %@!", selected];
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:title
                                                                                                   message : @"Thank you for choosing."
                                                                                                   delegate:nil
                                                                                 cancelButtonTitle :@"You are Welcome"            
                                                                                 otherButtonTitles :nil];
        [alert show];
        [alert release];
        [title release];
}

// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
– (void)viewDidLoad {
        NSArray *array = [[NSArray alloc] initWithObjects:@"SunDay",@"MonDay",@"TuesDay",@"WednesDay",@"ThusDay",
                                          @"FriDay",@"SaturDay",nil];
        self.pickerData = array;
        [array release];
    [super viewDidLoad];
}

–(NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView
{
        return 1;
}

–(NSInteger)pickerView:(UIPickerView *)pickerView
numberOfRowsInComponent:(NSInteger)component
{
        return [pickerData count];
}

–(NSString *)pickerView:(UIPickerView *)pickerView
                        titleForRow:(NSInteger)row
                   forComponent:(NSInteger)component
{
        return[pickerData objectAtIndex:row];
}

Step 7: Now Compile and run the application in the Simulator.

You can Download SourceCode from here SingleComponent_iPad

Application Testing

Need a responsible tester for testing small Windows shareware application (registry cleaner) on different versions of Windows (at least: XP, Vista, W7 – different editions, both 32 and 64 versions). Bid must contain list of systems (including exact editions) you are able to test. Must not be tested on emulators (like Virtual PC). We require a detailed report of complete user experience, including installation.

Setup Modules Credit Cards And Shipping Modules For Presta

Need to setup Modules for site built with PreXXXstasXXXhop.com – remove XXX

Shipping calculator and processing for fedex,ups, usps

Configure to take credit cards and paypal.

Make able to select a pickup option for shipping so the customer doesnt have to pay for shipping.

Shopping cart to also include a wish list function

Sub Categories

Search option

Product page should look like this: http://beaXXXutifulXXXdecaXXXy.com/shop/mens-tXXXshirts/30-melXXXtdown.htmlXXX – remove XXX

Make able to generate multiple discount codes/gift certificates so for instance one for 10%, 20%, free shipping and so on.

I also want the option to get an email everytime an item is sold.

Able to sign in as a guest instead of registering an account with us. like this page: https://www.glaXXXsswareXXXdreaXXXms.com

https://www.glasXXXswaXXXredrXXXeams.com is set up this has the functions needed.

Ebay Clone

Hi,
My client needs an exact clone of www.ebay.com with all functionalities and with a beautiful interface admin panel for managing all contents.
Important note: The selected provider must say that how the completed clone installs on server step by step.
The clone must be written in PHP and with Mysql Database.

please indian providers bid only.Thanks

Virtual assistant speaking spanish (2) by ff58

We need several assistants speaking spanish. tasks: put links to our sites, submit to a list of places (directories etc.) we will provide detailed training. Only Spanish speaking people, but required English writing skills for communication… (Budget: $30-250, Jobs: Copywriting, Data Entry, Data Processing, Telemarketing, Translation)