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

Change day in date through coding.

The following code changes the day from the given "date" for example: if you want to add or subtract 5 days from the date put a value 5 or -5 respectively for "timeSliceDay". -(NSString *)getTimeSliceDate:(NSString *)date format:(NSString *)fo...

How to create simple drop down navigation menu using css3

Hello readers ! This blog is about how to make a simple drop down navigation menu. First of all you need an unorder listing(ul-li) in html page as I have taken in example below. After this we come on css. Here we define all classes with...

low sound when recorded audio is played

Sometimes we record audio from AudioRecorder and when we play the same audio, it runs with a quite low volume even if volume is set to 1.0 i.e maximum. Use below lines of code to avoid such issues: AVAudioSession* audioSession = [AVAudioSessi...

Using Property Lists (Plists)

Method to get a value from plist NSString *path = [[NSBundle mainBundle] pathForResource:@"PlistX" ofType:@"plist"]; NSDictionary *dict = [[NSDictionary alloc] initWithContentsOfFile:path]; int number = [[[[dict objectForKey:@"One...

Forming Valid Query Strings in jQuery

The jQuery serialize() method turns the form values into a valid querystring, as such you can simply append to the string: firstName=Maurizio&lastName=Tarchini Useful, right? Lets take an example: <p><em></em>...

how to differentiate synchronized block and synchronized method in Java

The synchronization is the mechanism by which we can control multiple threads to access the shared resources. Without synchronization, it is possible for one thread to modify a shared resource while another thread is in the process of using or up...

Making a Blurred Mask

Making Blurred mask in Flash Masking in Flash is very easy..But when we talk about Blurred mask..Not an easy task.. So to make that easy i am posting this blog.. Lets start with "How to Mask an object", there are following steps.. 1.Open ...

Scenario Based Testing

Scenario Based Testing is categorized under Black Box tests and are most helpful when testing is concentrated on the business logic and functional behaviour of the application .Adopting SBT is effective when testing complex applications.Now eve...

Steps to download a file in android using Asynctask

Five Steps for downloading a file using AsyncTask in android Declare the reference of ProgressDialog class in your Activity globally. Ex:- ProgressDialog mProgressDialog; Instantiate the above reference in onCreate() method of activity...

Use pik in Windows

Managing multiple versions of Ruby on Windows can be a harrowing task since RVM is not present for Windows environment. And suppose you want to install different projects which require different version of Ruby and Rails on Windows. Can be a ...

REST based web service

REST(Representational State Transfer) service is basically HTTP based API. Today many sites provide REST based api to access thier data. example : google , twitter , yahoo, ebay. Each URL provide by the website represents a resource; either a...

How to install "Open Jdk" (java developement kit) in Ubuntu(Linux)

**Installation of JDK on Ubuntu is very easy just follow below Steps**: Java is typically installed in /usr/java locate the version you have and then do the following: Open Terminal. Use Command. sudo apt-get install openjdk-7-jdk Af...

Use of Find in set() function in mysql

In some cases, we use find_in_set() instead of in() in mysql. Following is an example, where we should use find_in_set() instead of in() :- Suppose we have a table 'flashdata':- fid productId 1 75,73 2 72...

Incorporate Progress Bar in Unity3D

How to make a progress bar in Unity3D Game Calling LoadLevelAsync like TheDarkVoid suggested will start the loading process. You could put it in a coroutine so other parts of the game can keep running. It returns an AsyncOperation. Example...

PhoneGap is Making life easy

Mobile industry is growing thick and fast in IT word .The war of Mobile OS is getting more and more wild .We have currently Android ,Blackberry,iOS, Windows Phone,Other software platforms,Firefox OS,Sailfish OS, Tizen,Ubuntu Touch OS in market . ...

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, including actions.Scene...

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 display—also known as a HUD—is 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 abl...

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 we’re going to to focus on the fundamental ones for now. For example, if your mobile design is pur...

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...

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 can’t 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 can’t use the ...

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 A...

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, ...
1 236
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: