Uncategorized Archives

Apple Is Now the World’s Most Valuable Brand

According to Interbrand’s 2013 global brand rankings, Apple has overtaken Coca Cola to become the world’s most valuable brand, with its value estimated at a whopping $98.3 billion.

Apple’s rise through the rankings has truly been meteoric: In 2011, the company sat at eight place with an estimated $33 billion brand value.

apple3
Google has also leaped past Coca Cola this year, and it now sits in second place, with its brand value estimated at $93.3 billion. It’s followed by Coca Cola with $79.2 billion, IBM with $78.8 billion and Microsoft with $59.5 billion.General Electric, McDonald’s, Samsung, Intel and Toyota round up the top 10.Amazon and Facebook, which are placed 19th and 52nd, have been labeled “top risers,” having risen by 27% and 43%, respectively, since last year.

CGLineCap and CGLineJoin Style in xcode

- (id)initWithCoder:(NSCoder *)coder {
	self = [super initWithCoder:coder];
	if (self) {
		_lineCap = kCGLineCapButt;
		_lineJoin = kCGLineJoinMiter;
	}
	return self;
}

- (void)setLineJoin:(CGLineJoin)lineJoin {
	if (self.lineJoin != lineJoin) {
		_lineJoin = lineJoin;
		[self setNeedsDisplay];
	}
}

- (void)setLineCap:(CGLineCap)lineCap {
	if (self.lineCap != lineCap) {
		_lineCap = lineCap;
		[self setNeedsDisplay];
	}
}

- (void)drawRect:(CGRect)rect {

	CGContextRef context = UIGraphicsGetCurrentContext();

	CGContextSetLineCap(context, self.lineCap);
	CGContextSetLineJoin(context, self.lineJoin);
	CGContextSetLineWidth(context, 20);

	CGContextMoveToPoint(context, 50, 250);
	CGContextAddLineToPoint(context, 160, 150);
	CGContextAddLineToPoint(context, 270, 250);
	CGContextStrokePath(context);
}

Adding Stroke, Shadow, Reflection and Opacity to an Image in Keynote

In keynote software, we will be able to stroke, apply shadow or reflection or opacity to an image. For this, follow these steps :

1. Click on the image.

2. Open Inspector by clicking the inspector button on the toolbar.

3. Go to Graphic tab of the image inspector.

4. Here you will see different sections for chafing the stroke, shadow, reflection and opacity. Use these options to implement those items.

You can see that what ever change you are making on the inspector is reflected simultaneously in the object.

Quartz view with different color


-(void)drawRect:(CGRect)rect {

CGContextRef context = UIGraphicsGetCurrentContext();

CGContextSetFillColorWithColor(context, THRandomColor());

CGContextFillRect(context, rect);

}

Android alert view/pop up example

AlertDialog.Builder builder = new AlertDialog.Builder(mContext);
builder.setTitle(mContext.getResources().getString(R.string.app_name));
builder.setIcon(R.drawable.ic_launcher);
builder.setMessage("your message")
					.setCancelable(true)
					.setPositiveButton("Ok", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {

				        	   dialog.dismiss();
				           }
				    });

AlertDialog alert = builder.create();
alert.show();

Disable glossy effect of the iOS app icon

The easiest way is to check the Prerendered check box on your target’s Summary tab.

//for the scrollview set the below property

[scrollview setAutoresizesSubviews:YES];
//then for every subview of the scrollview set the below property
[subview setAutoresizingMask:UIViewAutoresizingFlexibleWidth];

To set the height and width of a UITextfield

CGRect frameRect = _textfield.frame;

frameRect.size.height = height;

_textfield.frame = frameRect;

Aweber Parameters Display in WordPress

Should you wish to show the Aweber returned values in your WordPress posts or pages using shortcodes, there is a plugin now.

Aweber Params Plugin

t2t

 

How to put one div in front of a other : HTML

If you want to display the content of one div over another, you can use the following code :


<html>
    <body>
      <style>

       #div_1
       {
         position:absolute;
         left:0px;
         top:0px;
         z-index:-1;
       }
     </style>

    <div id='div_1'>
       <img src="https://www.google.co.in/images/srpr/logo3w.png" > 
    </div>

    <div style="color:#0000FF"  id='div_2'>
       <p>This is some text.</p> 
    </div>

    </body>
  </html>
Page 3 of 1412345...10...Last »