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

Search In

Best AJAX path for Wordpress

Hello Reader's if you want to write a custom code for making AJAX hit then you should choose for the best path for that, Open the file admin-ajax.php All ajax request should be made there. On in first step open the template file and write the code b

How to use default_get method in OpenERP/Odoo ?

If you want to use default_get method in OpenERP use below code - self.pool.get(’sale.order.line’).default_get(cr, uid, [’product_id’,’product_uom_id’]) Note- If you want to migrating the module from OpenERP-7 to OpenERP-8(Odoo),then we have to us

Download a file programatically

In Android we can download a file from a given url so that we can use that file's data without downloading again and again so we save that file in internal or external storage of device. you can use this method to download your file, you have to pas

how to read single line and character from a file?

Read Single Line: fgets() To read a single line from a file fgets() function is used. For example: Suppose we have a file 'demo.txt'. The script given below results the first line of the file: <?php $filename = fopen("demo.txt", "r") or die("Un

How to Get My Data of Output File Sorted in Python Program?

I want writing function for sorted_average() .  I calculated average of data in input file and write them in my output file. then i want sort data of out put file. but my cod not working...   my out put file is :  mandana,7.5 ham

Upload file to server using PHP

We can use php and html to upload the file to the server. Initially the file are added to the temporary folder and then are transfer to the server by using the script. phpinfo.php define the temporary file  that is used for the upload. The fi

Dealing with Files in Ruby

In my previous blog Dealing with Directories in Ruby, I explained you, how we can play with directories in ruby. Today I am going to tell you how we can interact with files by opening them in different modes and performing read/write operations in fi

Exceptions in Ruby

Exception is a unexpected output during execution of code in programing language. Due to exception execution of program stops.In Ruby, Exceptions are basically used to handle different type of errors, which may raise during execution of program and w

How to use file_get_contents in PHP

Php offers you to send data in various ways like get, post. Using php you can also use file_get_contents to send data using url. Lets see an example below:- $information = array('http' => array( 'method' => 'POST', 'content' => 'us

Removing file using Spreadsheet in windows( Errno::EACCESS(Permission denied))

There is no close method in spreadsheet.If you opened the spreadsheet and after reading you need to delete it then FIleUtils.rm(file_name) will work smoothly in linux but in windows it will give permission error Errno::EACCESS(Permission denied)

1 6 129
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: