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

How to open OpenPanel in mac os

static NSArray *openFiles() { bookmarkMode = 0; NSOpenPanel *panel; NSMutableArray *extension=[[NSMutableArray alloc]init ]; [extension addObject:[[NSUserDefaults standardUserDefaults]objectForKey:@"ImageExtension" ] ]; ...

ILLUSTRATIONS ARE MAGICAL !!

Lying on the couch, thinking of the childhood days,when we use to spoil our notebooks and even walls, trawling our color pencils creating lines,circles and other geometric shapes. Parents used to call it a scrap making it come to a standstill as ...

Sys Commands in SQL

Sys Commands : 1) How to count number of procedures in a table USE [Database_Name] SELECT COUNT(*) as procedures FROM sys.procedures 2) How to get the attributes of procedure in a table USE [DatabaseName] SELECT * FROM sys.procedure...

How to Create Immutable Class in Java

How to create Immutable class in java Immutable class is a class which once created, its contents can not be changed. Immutable objects are the objects whose state can not be changed once constructed. e.g. String class Since the state of the ...

How to search records with maximum and minimum limit in MySQL

DELIMITER $$ DROP PROCEDURE IF EXISTS GetCustomerSearchResult$$ CREATE DEFINER=root@% PROCEDURE GetCustomerSearchResult( criteria INT ,searchValue VARCHAR(500) ,MinLimit INT ,MaxLimit INT ) BEGIN CASE WHEN...

Open zip file through code in mac os

Method to open zip file -(void)unZipImages:(NSArray*)arguments { NSTask *unzipTask = [[NSTask alloc] init]; [unzipTask setLaunchPath:@"/user/bin/unzip"]; //this is where the unzip application is on the system. [unzipTask setC...

Terrain in Away3D (Part 1)

Terrain in Away3D (Part 1) User are always curious with the heights of Hills, Mountains and Depth of river and wells in the game. He always thinks how these things are done. By this blog you will have a fair idea about Height Maps, Alpha Map...

Keyword test in Test Complete

TestComplete - Keyword Test TestComplete is an automation testing and quality assurance tool. It supports keyword-driven testing which allows the user to create, modify and record the tests. How to create a new Keyword test: Every projec...

How to rotate image in mac os

-(NSImage*)rotateImage:(CGFloat)degrees { NSImage *_image = [YourImageController image]; NSRect imageBounds = {NSZeroPoint, [_image size]}; NSBezierPath *boundsPath = [NSBezierPath bezierPathWithRect:imageBoun...

Commands to install packages on Linux

Linux has different flavours available in the market but can be classified into 2 major categories ie. Distros based on Debian: eg. Ubuntu etc. Distros based on RedHat: eg. Centos etc. This have different package managers to install pre-com...

Can you catch the Hummingbird- Google's latest search algorithm

The hummingbird, outsmarting the panda, the penguin and you The new google algorithm does justice to its nomenclature, its fast in its processing and furious with its accuracy. Humminbird is the freshest Google algorithm, which assimilates...

How to create reports using Base Report Designer and OpenOffice in OpenErp

Creating reports in OpenErp using OpenOffice is the easiest way. Just need to follow simple steps: Download base_report_designer module from the web or https://www.openerp.com/apps. Add to the addons and install the module. Open OpenOffice...

How to fetch Nth highest salary from a table.

There are two ways to fetch Nth highest salary/number. 1 - By using general sql query which works on all database. 2 - By using database specific sql query. Database specific sql query example Nth highest salary/number SQL Queries in ...

How to call custom scrollbar dynamically

To use custom scroll bar we have to follow below steps. Steps. 1 - First download tiny scrollbar javascript libarary by using below url. <pre>http://baijs.nl/tinyscrollbar/</pre> 2 - Include tinyscroll bar library in th...

How to create Singleton class

Sometimes, we need access of some object /data/ variable globally throughout the App. In that case, creating a singleton class which can be accessed through out the app is helpful. App Delegate is a good example of singleton class. After goog...

How to create Wizards using osv.memory in OpenErp 6.1

To create a wizard for a module, we need to create a wizard folder; this folder will be imported in our main __init__.py of the module. The wizard folder will contain another __init__.py which will import all the wizard class files. The Wizar...

Installing RVM and Creation of Gemsets Part 2

In the last tutorial we learnt how to install RVM. In this one we will take one step further by creating Gemsets. Note - Gemsets are used to eliminate Gem clutter and version mismatches. Also by creating Gemsets we can install multiple version...

Using Tar command in linux to compress and uncompress the files

One of the frequent task that we do with the increasing data on our linux boxes is to compress the files and folders and to do so there is a command tar that we can use to achieve the same. Below are the examples of how to compress files in a...

Installing RVM and Creating of Gemsets Part 1

Installing RVM and creating Gemsets can be difficult at times. Frown not because in this tutorial we will learn the basics of installing RVM and in part 2 of the tutorial we will be creating Gemsets. Quick Revision RVM helps to manage multi...

pagination in core PHP

**When there are a sufficient number of pages present, a Last Page link is added. When you navigate away from the first page, a previous page link is added. When you navigate past the second page, a first page link is added. This code hasn't b...

Share video on Facebook using ASIFormDataRequest

In facebook graph API "https://graph.facebook.com/" url is used for all APIs. But to post a video on facebook an other API url is provided. To post video on facebook you must use "https://graph-video.facebook.com/me/videos" API. Below is the c...

Share image on facebook using ASIFormDataRequest

Below is the code for sharing photo on facebook using ASIHTTPRequest. - (void)publishStoryWithImage:(UIImage*)image andMessage:(NSString*)message { NSURL *url = [NSURL URLWithString:@"https://graph.facebook.com/me/photos"]; ASIForm...

Call JavaScript Function From Action Script 3

Some time we need communication between ActionScript and the SWF container for example, an HTML page with JavaScript . So Adobe Doc has a class ExternalInterface , which solves this problem. First import : import flash.external.External...

UITableView extra spacing(padding) on the top in IOS7

When using xcode4.5 or 4.6(i.e ios6) UITableView added to xib files appears as it is. But when it comes to IOS7(i.e When you are using xcode5) along with adding the UITableView to xib you also need to add a small code which will remove that paddi...

How to know the device capabilities using as3 using flex

Capabilites of a device can be known by using Capabilities class. 1.Capabilities class is used to determine in which environment swf is running. 2.By using Capabilities class we can know the resolution of the users system, language of the u...

Show default image when image not found

When we show a profile image we get image path from database and show that image as a profile image. But if image not found or image path is not correct then we see a broken image. So we add a conditions there to show a defualt image. But if we u...

Using Auth method for login in cakephp

First of all load the component in the controller lets say UsersController using the below code $this->uses=array(Auth); login.view: <?php echo $this->Form->create('User', array('id'=>'signUpForm','name'=>'userSignu...

How to get user image from Foursquare IOS sdk

Foursquare authenticate API returns all the information related to user's fourSquare account. In this response under "user" tag there is a tag "photo" with two other tags "prefix" and "suffix" like below. photo = { prefix = "https...

Date/Time Operations in php

Sometime there is a need to perform different operation on dates for ex: You may need to : 1) Add two dates/time 2) Subtract two dates/times for ex- to calculate your age by deducting your date of birth from current date. And many m...

Formatting time

Some time you may need to find the day, hour and min and seconds for ex: *you entered a number 105 and you want 1h-45Min ago* then you can simply use the following function although you can use your custom function as well depends on the...

Get Facebook messages in Android

Note- Facebook provides 25 latest message conversation. To get Facebook chat messages in Android, following steps are used: Define the 'read_mailbox' property as below: private static final List PERMISSIONS = Arrays.asList("read_mailbo...

Decomposing the associative array in chunks based on their keys

Consider you have two arrays like the below: 1) $arr1 = Array ( [0] => 2 [1] => 2 [2] => 2 [3] => 3 [4] => 3 ) 2) $arr2 = Array ( [0] => 28 [1] => 48 [2] => 21 [3] ...

Read Google+ Activity publish date in NSDate object in IOS

In Google+ IOS sdk activities API return the activity published date in following format. "2013-11-22T11:31:47.269Z" You can use below line of code to read this date in a NSDate object. NSDate *activityDate = [[GTLDateTime dateTimeWithRFC333...

QA Checklist for Build Verification

When the Build is deployed in QA Environment ,following are the checklist for verifying the build. 1.Interface Integrity Internal and External interfaces are tested as each module or cluster is incorporated into structure.This is perform to e...

iphone and Android Push Notification API

Push notifications are messages that allow an app to notify of a message similar to how a text message pops up on your screen with a sound. Code for Android ,Iphone API push notification is given below by using urbanairship. 1.Android Push No...

How to send an e-mail with attachment and delete the attachment afterwards in C#

Sending an e-mail with an attachment through a .net application include these simple steps:- 1)- Use the following namespaces - using System.Net; using System.Net.Mail; using System.IO; 2)- Call the following function where you h...

How to create a transparent image with CSS?

<!DOCTYPE html> <html> <head><title>css3</title> <style> div.bg { width:500px; background:#000; border:2px solid #00ff00; } div.transparent-box { width:400px; margin:40px; backg...

Custom Search in ListView

In OnCreate() Method add addTextChangedListener(new TextWatcher() to an EditText View example: searchEditText.addTextChangedListener(new TextWatcher() { @Override public void onTextChanged(CharSequence s, int ...

Playing with date format in Android

We can change date format of a date as below: Here, I have defined different date formats: String FACEBOOK_DATE_FROMAT = "yyyy-MM-dd'T'HH:mm:ssZZZZZ"; String MESSAGE_DATE_FORMAT = "MM/dd/yyyy hh:mm a"; String MESSAGE_DATE_TIME_FORMAT = "M...

Gradient Mesh in Illustrator

Gradient Mesh in Illustrator: Gradient Mesh, is an advance tool that allows us to create gradients in any shapes. The result in artwork seems like as it come right from the Photoshop. Every designer have his/her own way that how they apply gra...

How to Develop an Android Game in Unity3D

When we create our game, we might want to see how it looks when we build and run it outside of the editor as a standalone or web player. Today, I will explain how to access the Build Settings and how to create different builds of your games. G...

Get all Facebook chat messages in iPhone

Note :- Facebook provides only 25 latest chat conversation messages /This is completion handler method and takes 3-4 sec to load chat messages from FB/ NSMutableArray *arrConversation = [[NSMutableArray alloc]init]; NSArray *arrPermis...

Hibernate environment in Spring

Spring comes with a family of data access frameworks that integrate with a variety of data access technologies. Whether youre persisting your data via direct JDBC, iBATIS, or an object relational mapping (ORM) framework such as Hibernate, Spring...

Salesforce web-to-lead integration in Drupal 6

Salesforce is becoming popular which is used for tracking sales leads, managing mailing lists etc. Drupal webform is a bridge module that helps to feed submitted data into salesforce. Salesforce Integration require following modules to be ins...

Agile Software Development in India - Why so much buzz about it??

Working in software/IT companies we all come across a word that is coined rampantly - the Agile development. So what is this and why do you also need to understand this was what troubled me few years back and I went onto an Online search expediti...

SQLite with Flex

Hello Readers! This blog is about how to use SQLite in Flex. Before proceeding a brief introduction to SQLite. SQLite is a relational database management system contained in a small C programming library,it is an embedded SQL database engin...

Creating a very basic module in OpenErp 6.1

Creating a module in OpenErp is very simple. All you need to know is the basic skeleton of any module to be used in the system. There are four major files that build up your module: 1.) init.py file 2.) openerp.py file 3.) mymod...

Getting MMS from an Android Device programmatically

To get MMS conversation from an Android device, use the following code: ContentResolver contentResolver = getActivity().getContentResolver(); Uri uri = Uri.parse("content://mms"); Cursor cursor = contentResolver.query(uri, null, "thread_id ...

9 simple steps to improve your technology blog

How to create good original content for a technology blog seems to be the question on everyones mind. It is to be noted that just uploading codes doesn't count as good blogging. One needs to support the code with some content which highlights its...

Download and Install Android paid app for free

Do you want to install paid application present in Google market without wasting your money? If "YES" then you can follow these steps. Step 1: Open the Google Play in your android device. Step 2: Search your desired app in search bar. St...
1 267 269
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: