Month: November 2014

iOS : Getting NSDate from NSString


Vinay Putta

Very useful, yet short and simple, code snippet on how to rip the NSDate from NSString using NSDateFormatter:

NSString *dateString = @”2014-01-19″;

NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];

// this is imporant – we set our input date format to match our input string, if format doesn’t match you’ll get nil from your string, so be careful

[dateFormatter setDateFormat:@”yyyy-MM-dd”];

NSDate *dateFromString = [[NSDate alloc] init];

dateFromString = [dateFormatter dateFromString:dateString];

View original post

Advertisements

Difference between Category and Class Extension?


Sachinkumaram

1.category

-> In objective c, when you want to add some more functionality to a class without inheritance, you simply use category for it.
-> it come with its own .h and .m file
-> Category use to add new method not properties.

2.class extension

-> In objective c, when you want to make behaviour of some property private you use class extension.
->its come with .h file only.
->mainly for properties.

View original post

appendGrid-The dynamic table input jQuery plugin


Gatelockservice

appendGrid

The dynamic table input jQuery plugin

The appendGrid showed below demonstrated the basic functions. You can add/remove/move up/move down records! You may click on the “Load Data” button to simulate loading data into appendGrid!

View original post

Install Apache2, PHP5 And MySQL Support On CentOS 6.5 (LAMP)


SkrinHitam

Bismillahirrahmanirrahim..

LAMP is short for Linux, Apache, MySQL, PHP. This tutorial shows how you can install an Apache2 webserver on a CentOS 6.4 server with PHP5 support (mod_php) and MySQL support.

I do not issue any guarantee that this will work for you!

1 Preliminary Note
In this tutorial I use the hostname server1.example.com with the IP address 192.168.0.100. These settings might differ for you, so you have to replace them where appropriate.

2 Installing MySQL 5
To install MySQL, we do this:

yum -y install mysql mysql-server

Then we create the system startup links for MySQL (so that MySQL starts automatically whenever the system boots) and start the MySQL server:

chkconfig --levels 235 mysqld on
/etc/init.d/mysqld start

Set passwords for the MySQL root account:

mysql_secure_installation

[root@server1 ~]# mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!

View original post 860 more words

Inter-Process Communication on Mac – Know How part3 (Apple Events)


mac developers

In  Part 1 of this blog series we discussed about various techniques available for Inter-Process Communication (IPC) on Mac OS X.

As discussed in the previous post Apple Events are the only IPC mechanism which is universally supported by GUI applications on Mac OS X for remote control. Operation like opening a application or telling a application to open a file or to quit etc. can be done using these.
AppleScript is a scripting language built on top of Apple Events which can be used using scripting bridge in a Mac application.

Here in this blog we will see the implementation  of IPC using apple events.

View original post 350 more words

AppleScript – Get file information as shown in Get Info


TechKnowMore

On Mac OS X , Information such as “creation date” , “type” , “size” etc. about a file or folder can be easily seen by cmd+click and selecting “Get Info” for the selected file in a panel as shown in the figure.

Get Info Panel

Let’s see how can we get the information programmatically using AppleScript.

View original post 221 more words

File constructure when server receives from client


Lập trình ngay và luôn

protected '_name' =>string'iTools0925E.zip'(length=15)protected '_tmp' =>string'/tmp/phpUDlMei'(length=14)protected '_size' =>int3489568protected '_type' =>string'application/zip'(length=15)protected '_real_type' =>nullprotected '_error' =>intprotected '_key' =>string'zipFile'(length=7)protected '_extension' =>string'zip'(length=3)

View original post 1 more word