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

Submitting a form via curl

Hers's is the tutorial to submit form via curl. I am taking example of log in form for say xyz.com site. $ch = curl_init(); if($ch){ $url = 'http://www.xyz.com/logmein.php'; $postdata = array('LoginButton' => "Logon", ...

Custom query in magento

Write custom query in magento - $resource = Mage::getSingleton('core/resource'); //---create a connection $readConnection = $resource->getConnection('core_read'); //-----------read mode connection (fetch data)-------- $writeConnection ...

WAMP 2.2 configuration problem with php_curl

I installed new wamp on windows 7. It has some dependency on some microsoft tool "vcredist_x64.exe". My installation was successful and I enabled php_curl extension from php settings but I was still getting : Call to undefined function curl_ini...

How to use Permissions in Android

Android use Permissions In android we have to set permissions in the project manifest file to get the required android resource. In a basic android application there are no permissions associated with it by default,so it cannot affect the...

E-commerce portal testing scenarios

There are following types of testing and scenarios should consider while doing e-commerce portal testing: Usability Testing Data base testing Performance testing Cross browsers compatibility testing Integration testing (payment gateway ...

How to send email in mac os

Following code can be use to send email in mac os: -(IBAction)sendEmailClicked:(id)sender { NSString *recipient; NSString *mailsender; NSString *mailsubject; NSString *mailmessage; recipient = [reciever stringValue]; ...

Autocomplete using Jquery.

Below is the code for autocomplete using Jquery . > <head> <meta charset="utf-8"> > <title>Autocomplete using > jQuery</title> <link rel="stylesheet" Contains style classes for AUTOCOMPLETE > h...

How to convert NSImage to NSImageRep

You can convert NSImage to NSImageRep by using the following method: - (NSImageRep*)bitmapImageRepresentation:(NSImage*)image { NSArray *ret =[image representations]; for(NSImageRep *rep in ret) if([rep isKindOfClass:[NSIma...

Finding Distance on basis of Longitude and Latitude from Database

Below is an example of finding all the user who are stored in db and lies in the given range of Distance on basis of Longitude and Latitude. CREATE proc [dbo].[SP_UserByDistance] ( @UserID uniqueidentifier,--UserId @Date datetime, --Date @...

The process of Content Curation

What is Content Curation? Content Curation is essentially the skill of unearthing relevant information and using it as a resource pool for developing useful content for articles which help in advertising and marketing. It is the rapid solutio...

Get the title and meta tags from a url in php

To get the title and meta tags from a website you can use the following code : <html> <head> </head> <body> <?php function getTitle($Url){ $str = file&#95;get&#95;contents($Url); if(str...

how to make URL in php using http_build_query

/* suppose we have an array consist of 4 or more than that parameters then in order to pass these parameters to URL then we can use http_bhild_query as follows */ $data = array('city'=>'delhi', 'cloth'=>'dress', ...

Agile Methodlogy,Agile Scrum

Hi All, Here I am going to explain about the agile model & how it is different from traditional model & basic introduction of Agile scrum. Agile Methodology: Agile testing is used when customer requirements are changing dynamicaly. ...

How to add ImageView to the Layout

How to add imageview to the layout and change the source of the image with the click of the button. This is a very simple android code in which we set the mage view in the layout and then use the the imageview to set the new source.This ...

How to call chargify webhooks API using .net

1.Give the http url of chargify , here the url is domainname.chargify.com then add /webhooks to this url ,/webhooks give the list of all webhooks and format is either json format or xml format var responseText=string.Empty; var httpWebReques...

Microsoft Visual Studio IDE Overview

Hello All, Below I am providing you some Important tutorial links for your help purpose, whenever you need it for your reference you can visit the link directly and definitely it will be helpful. Here is useful tutorials about visual studio:...

Datepicker open on link

Display datepicker on a link. Follow these steps:- Add jquery files: 1) http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css 2) http://code.jquery.com/jquery-1.10.1.js 3) http://code.jquery.com/ui/1.10.3/jquery-ui.js Add a jque...

Stateless Protocol Vs Stateful Protocol

In stateless protocol there is no record of the state is saved at server end.Client send request to the server and server response back according to current state. A stateless server does not keeps state between connections.So,When you send a req...

Scroll down to selected item in gridview using javascript

The blog is related to move the position of scroll according to the selected item using javascript:- Consider the following example:- Let's say you have a gridview control and a dropdown above that. If you select any item from dropdown the grid...

Service center congestion in telesign mobile sms gateway

Hi all, I am using telesignmobile sms gateway for one of my website. Everything was working properly but suddenly sms sending was stopped and I was getting "Service center congestion" in my status report. I googled it and found nothing. Then ...

Creating shapes,Boder,selector and Drawable using xml in Android

This blog will help you to Create shapes,Border,selector and Drawable using xml in Android. 1.Selector for a button: Create xml file named background_selector.xml in res/drawable and write the bellow code in that <?xml version="1.0" enco...

Multiple -Language website USING InternationalizationAND Locale

Hii friends, Many of you when you will start making a website in drupal will need to provide multiple language support.And providing so if you follow these easy steps you can easily make it. For making a multiple language site you need to conf...

Make a Multi-Language Article in drupal 7

Hii friends, many of you when you will start making a website in drupal will need to provide multiple language support.And providing so if you follow these easy steps you can easily make it. For making a multiple language site step1:-You s...

Fetch feeds from youtube in drupal 7

HTML parser and can fetch data from existing URLs. Feeds is the way to go fetch rss feeds. Some parsers for Feeds that can suit as per your need are given here . Modules required to fetch youtube feeds Feeds it import's or aggregate's ...

Pure css custom checkboxes and radio buttons

Hello guys, It's my first post and in this post I am showing you, how can we customize checkbox and radio input with the help of css. Yes, now we can customize form elements with css. It's not complicated but little tricky. So lets start ...

Using Putty and SSH Tunnel to connect to MySQL on remote server from SQLYog

To connect to a remote MYSQL server using SQLYog you can create SSH tunnel using putty following the steps. Connect to the remote server using putty. . Right Click on putty window and select the change settings option. ...

How to create a simple Timer in Android

In this tutorial we will make a simple android timer application using a Handler.In the layout of the main activity we will set a TextView to Display the timer and to Buttons for Start and Pause. We set the string resource for the timer value...

Sending email using drupal_mail()

Sending email using function drupal_mail(). All you need to do is install and configure SMTP module and then add the given code in your custom module. function sendemail(){ $to = ' xyz@gmail.com '; $from = ' abc@gmail.com...

How to make a Gridview with Horizontal scrolling

Here for the scrolling Grid View I have use SectionPagerAdapter . Simply what I have done here is that , i have created a Fragment with a layout containing a grid view. And with the help of SectonpagerAdapter the fragment will inflate as many as ...

Set up remote access to MySQL database on Ubuntu

Without database any application is almost redundant. So this post might help you to setup access to MySQL database on Ubuntu. Firstly you need to open up the MySQL server config file present at /etc/mysql/my.conf and search for the lin...

Create Incoming and Outgoing Server in OpenERP

Create Incoming Mail Server Go to Setting->Configuration->Email->Incoming Mail Servers, and create Give a Name, example: Incoming Gmail Server Select Server Type as POP/IMAP In Server Name field, give the hostname or the IP of t...

Scrapping - get Select option values and text via simple html dom

Here is the working example to get select box option value and text via Simple html dom. I assume that you have already included simple_html_dom file and have html content in $content variable $html = new simple_html_dom(); // Creating htm...

How to make UITableView separator touch ends of table in iOS7

In iOS7 separator of table view do not touch ends of the table/cell ,i.e, the separator don't cover complete length of the table/cell. For this we need to set the separatorInset property of table view. For example if we have a UITableView object ...

Add/Delete group price in magento pro-grammatically

Load product by Sku or Id - $u_product = Mage::getModel('catalog/product')->loadByAttribute('sku', $sku); 2 - Delete group price $u_product->setData('group_price',array()); $u_product->save(); 3 - Add new group...

Spring @RequestHeader Annotation

Spring @RequestHeader Annotation Spring MVC provides annotation @RequestHeader that can be used to map controller parameter to request header value. Here is the simple usage of spring @RequestHeader annotation. import org.springframework.s...

Hide certain fields from the form in Drupal

In order to hide certain fileds from form in drupal function hook&#95;form&#95;alter(&$form, &$form&#95;state, $form&#95;id) { if ($form['form&#95;id']['#id'] == 'fomr-id') { $form['field&#9...

How to create email template in OpenERP

By creating an email template one can send emails very easily and quickly as you already design it, add reports, signature. You can use these templates for any document in the OpenERP to enhance your sales, marketing, and accounting tasks. With t...

Delete files from folder in cakephp 2.X

If anyone wants to delete file from the folder can use this code. App::uses('File', 'Utility'); $file = new File(WWW&#95;ROOT .'subcategory/thumbs/abc.jpg', false, 0777); if($file->delete()) { echo "File Deleted"; }

Facade Architecture in ASP.Net

Facade Architecture in ASP.Net:- The facade is an interface that an application can use to get things done without worrying about the details. The facade decouples these layers so that they dont depend on each other, which makes each easier to...

Setting up your system as virtual host using WAMP

if anyone configure's virtual hosts on WAMP server helps to run as many separate sites as you want.This includes following quick steps 1.Go to "C:/Windows/System32/drivers/etc" and open the "hosts" file in Notepad. At the bottom of the hosts f...

Apple's substitute to bluetooth - AIRDROP

Apple's user have been bogged down by the lack of a file sharing mechanism that allows them to share files to the nearby apple users, just like bluetooth. So after a long time, apple computers have heard the plea of their users and provided them ...

Read Data From Raw Resource in Android

How to read raw data from raw resource in android. In this tutorial i am using a text file as a raw resource in res/raw/wordslist.txt .This text file is read by the activity and you can use the data whatever way you like. for eg You can...

Send Push Notification to Android Devices from Java Server Side

This blog will help you to send Push Notifications to Android devices from server side where server side code is written in Java. Follow the below steps in order to send Push Notification: Put the gcm-server.jar into your lib folder of y...

Avoiding gap in ids for a table in OpenERP PostgreSQL

Sometimes when we delete few or all records from a table, we may want ids of records to be in sync with the last record or the first one, but what we get is that new ids with a significant amount of gap have been generated, for example if it shou...

What Is The Diffrence Between Do And Do While Loop

The Main Difference Between Do And Do While Loop Is :- Do while Loop :- If we use "Do While" at least one time execute the loop and then check the Condition. While Loop:- When we Use "While" then firstly check the condition after execute ...

Import Gmail Contact

Import Gmail Contact : To import gmail contact you need to download the following DLLs :- Google.GData.Contacts; Google.GData.Client; Google.GData.Extensions; Google.Contacts; Source code to import to import gmail contact shown ...

How to count the total number of buttons in a page using QTP .

A HTML button is identified as a WebButton object by QTP. Below is the script which you Can run in QTP to find the total number of Buttons in the HTML page . First Create a Button object Set objButton = Description.create objButton(micc...

Display UIWebView from HTML string with custom font and size

Following code can be used to change the font and size of UIWebView displayed from HTML string. To implement this first change the font and size of HTML string then load the UIWebView with this string like below. UIFont *font = [UIFont fontWit...

Database Testing

Database : Database is a collection of data. Database is a secure place to store all your important data. The data need to be stored in an effecient manner or secure ware because data is very important.Testing the backend databases, like compari...

ReadyState property in QTP

The readyState property in QTP returns the loading status of the current browser . This property Will be of immense help if the AUT under test has a lot of sync issues while running the script . This property returns one of four values : ...
1 258 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: