Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Some helpful date related code

Get a date after n days -(NSDate*)getNextDayAfterDays:(int)numOfDays from:(NSDate*)date { NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar]; NSDateComponents *offsetComponents = [[NSDateCom...

Unity3D: Moving an Object with Keyboard Input

Today we're going to take a first look at the Unity3D game development engine. This engine is pretty easy to use and has gained a lot of popularity in recent years. It supports multiple languages (including C#, JavaScript ,Boo) . 1) The first ...

Inserting data from one table to another

Inserting Data from one database table to different Database table. we can insert or copy data from one database table to another table of different database in SQL Server 2008 using following query keeping one thing in mind that the datatype...

Simple CSS3 Dropdown Menu

Hello Reader ! Here is an example how to make a simple dropdown navigation menu using css3 and i also showing you how to use transition attribute of css3 . I hope this example will help you . --Html-- <ul><li>Home</...

cross-site scripting

XSS is a type of attack in computer security mainly found in web applications that enables attackers to run some script in your web browsers. In other words cross-site scripting occurs when an attacker sends a malicious code through a web page in...

Dynamicaly load more items to the ListView

To dynamically load more items to the ListView when you scroll at the bottom, we implement onScroll() method in which we can find out the which item is visible when we will reach at bottom it will load more items. Following steps are used fo...

How to install JMeter

Steps to install the latest version of JMeter: 1 Enter the URL http://jakarta.apache.org/site/downloads/downloads_jmeter.cgi 2 Click on the zip file of Binary version 3 Save the file to the required location 4 Unzip the file 5 ...

Cropping image without degrading their quality (Using CIFilter's CICrop filter)

The below mentioned code uses CIImage library's CICrop filter to crop the desired area from UIImage. The follwing code deoesn't deals with snapshot as CGContextRef rather crops the original image along with maintaining its quality and aspect rati...

Crop Images without degrading their quality (Using CGContextRef)

Often the images cropped from other images in iPhone SDK are degraded in quality. This is because we take a snapshot of the original image (of the desired area). But the below mentioned code prevents from happening the above mentioned issue. The ...

How to Animate UIView

The following code sets the desired frame to a view with animation. The animation is performed with a duration of 0.4 secs (can be set according to the requirement). [UIView animateWithDuration:0.4 animations:^{ [animateView setFram...

PNG Image masking with rotation and alignment using Imagemagick

We can mask a png image over any other image with rotation and proper alignment. Let say for example, if we need to replace the human face of an image with another face, then we need this type of masking. There are various ways and command with...

Cocos2D Scene Management

One of the building blocks of a cocos2d app is the “scene”.Now,the question arises,What scene is?A scene is specially a node that contains any other nodes visible and is responsible for everything's running on the screen, includin...

Selecting a text field with name using JQuery

JQuery has loads of selectors that can be used to select an HTML Element from a page. One of the common scenario with development for even a simple case of validation requires to check for input fields and to do so we can use a selector that s...

View Hidden Files and Folders In Macintosh

I just love to work on Mac but sometimes a small task can become a herculean task in no time. Ever wondered where is the option to view hidden files and folders on Mac just like Windows has ? Frisking through all the options I realized that the...

Using Bundler in Rails 2.3.x app

Managing Gems in Rails can be infuriating at times especially when Bundler is not present. That is what happens when you use Rails version lower than 3 as it does not come bundled with Bundler. A quick fresh up though as why we use Bundler - ...

HUD (Head Up Display) in Unity

HUD (Head Up Display) A head-up display or heads-up displayalso known as a HUDis any transparent display that presents data without requiring users to look away from their usual viewpoints. The origin of the name stems from a pilot being able ...

How to add, update and delete the records into the database using linq

UserEntities objUserEntities= new UserEntities();/*Create object of user entity /* Add records into the database */ public void AddUser(User objUser) { objUserEntities.AddToUsers(objUser); /*Linq has its own function to ...

Beginners guide to Search Engine Optimization (Part 1)

SEO- Keyword Research and Tagging (Part 1) Search engine optimization is the Godfather of online marketing. The position of your web page on the SERP (Search Engine Results Page) determines how much traffic your page has and consequently the...

Play with AJAX - Liferay

Ajax is one of those patterns that are a must have with a UI framework, so let's go ahead and jump right into doing some Ajax requests, and then we'll dive into the more complex cases. Let's prep our sandbox, the module we're going to use is c...

Input Button padding in ie 7

.button1 input[type='submit'] { background:#C30; padding:6px 30px; color:#FFF; font-size:18px; border:none; cursor:pointer; } <div class="button1"> ...

Loading an external SWF file and Instantiate Class From a swf in flex using as3

SWF files are loaded using the Loader class: 1.Create a new URLRequest object with the url of the file. 2.Create a new Loader object. 3.Call the Loader object's load() method, passing the URLRequest instance as a parameter. 4.Call the addChil...

How to resize images in responsive design

Responsive Image You can make the image auto resize to the max width of the boundary by using max-width:100% and height:auto. img { max-width: 100%; height: auto; }

Responsive web design is working on mobile device and Ipad

The Viewport Meta Tag <meta name="viewport" content=""> Within the content=" " you can enter a load of comma delimited values, but were going to to focus on the fundamental ones for now. For example, if your mobile design is purp...

Building AssetBundles

AssetBundle AssetBundles let you stream additional assets via the WWW class and instantiate them at runtime.Note that bundles are not fully compatible between platforms. A bundle built for any of the standalone platforms (including webplayer) ca...

Automation Testing

Hi All, Is there any open source tool available for testing non GUI based Application?

Avoid Strong Reference Cycles Objective C iOS sdk

How to Avoid Strong Reference Cycles Avoid strong delegates Avoid strong IBOutlet Avoid strong reference variable inside the Blocks Although strong references work well for one-way relationships between objects, you need to be carefu...

Memory management under ARC

ARC Memory management 1)Methods you cant call (or override) anymore You will have to remove all calls to these methods without substitution: 1)retain 2)retainCount 3)release 4)autorelease 5)Dealloc You also cant use the re...

Beginners guide to Search Engine Optimization (Part 2)

SEO- Keyword Research and Tagging (Part 2) In the second section of this post we throw light on some of the most important tags of SEO. If used correctly these are sure to give you a head start n the content marketing domain. Header Tags ...

Importance of Blogging

Why Should I Blog Before focusing on the main theme, I would like to share some views on why I am writing this blog the whole day i was thinking that what should I write? And the last question that hit my mind and which might be hitting m...

Publishing a website on Windows Azure

Deploying Windows Azure Website using Visual Studio Web Publish wizard Create your Windows Azure Websites (shared or reserved) and get the publish profile by selecting Download publish profile in your website`s Dashboard page on Windows Azu...

DontNetNuke 7 Setup and Installation

DotNetNuke 7 Setup and Installation is pretty much different then its previous versions. Following are the steps to setup a project in DNN latest version (7.0.4):- copy DNN Community Edition files to C:/websites/dnndev.me (dir used by templa...

How to Override Inline CSS Styles

Inline styles are those defined in the HTML itself, e.g. <p> This is an <strong style="color: red;">inline style that should be blue</strong>. </p> Inline styles have the highest priorit...

Adobe Kuler for Color themes

Adobe Kuler is an online application from Adobe Systems that lets individuals try, create and save various colour schemes, each of which consists of a set of five colours. After downloading Switchboard from Adobe Labs, users using the desktop ver...

How to install java on browser

How to install Java web plug-in? Here is an easy guide for you to install Java on your specific system: 1. Windows a. First of all you need to check whether you have Java on your system or not. b. You can simply do this by going o...

increase and decrease iphone volume

If you want to increase the volume of iphone in a specific app and then reduce it to it's current volume. The following code might get helpful:- (NOTE:Include FrameWork: MediaPlayer.framework ) -(void)exampleFuctionSample{ NSLog(@""); [s...

Sorting

NSSortDescriptor *frequencyDescriptor = [NSSortDescriptor sortDescriptorWithKey:@"" ascending:NO comparator:^(id obj1, ...

FFMPEG Auto Installer

Found a shell script that installs FFMPEG with all the required modules rightly named as FFMPEGinstaller. The script can be downloaded from http://ffmpeginstaller.com Hope this helps with the installation of FFMPEG.
1 290 292 next
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: