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

Search In

How to get current web page url in Laravel 4.x

To get the current page url in laravel 4.x is as follow $webpageURL=URL::to('/'); By using the above code it will automatically take the web page url. Example: Lets take a example of findnerd. **http://findnerd.com/account#url=/postblog/94

next Statement in Ruby

By using next statement, control will go to next iteration of the loop. Terminates the execution of a block if it will be called in that block. Example for i in 0..8 if i < 3 then next end puts "Value of i is #{i}" end This

Drupal 7 database API

Drupal database abstraction layer allow's the use of different database servers using the same code base i.e it provides with the ability to support multiple database servers easily. The system is built a top PHP's PHP Data Objects database API and

How can we know the count/number of elements of an array?

Hello Readers In php we count the number of elements of an array by two ways: 1. sizeof() 2. count() sizeof() sizeof() function is an alias of count() and it is used to count the elements of an array. Syntax of the function sizeof(): sizeof(a

How to make print a report in OpenERP(Odoo)?

If you want to make print a report in OpenERP(Odoo) follow the below mentioned code and paste it in your model.py file: - def _get_invoice_id(self, uid, datas): ... return {’ids’: [...]} ... ’actions’: [_get_invoice_id], ’result’: {’type’:’print’,

Internet Explorer(IE) Caching Flash SWF Problem

Sometimes we need to rapidly hit the same API . Like ,"http://myAPI.php?param=123456" There is a caching problem in IE. Swf hits URL first time and store in to the cache and shows the same result in each response. So to resolved the issue we just add

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 = $resour

how to get remaining months between two dates in ruby

Below is the code to get remaining months between two dates date1 = '2011-03-31' date2 = '2011-02-25' (date1.to&#95;date.year * 12 + date1.to&#95;date.month) - (date2.to&#95;date.year * 12 + date2.to&#95;date.month) Above will gi

Creating xml from SQL query

This blog will show you how to create an xml from sql query having sql data. Write down the followng query to generate xml:- WITH XMLNAMESPACES ('http://www.dossia.org/v2.0/xml/phr' as phr) Select OrderResultID,OrderID ,PatientID ,SpecimenNumber ,Ac

How To Write Good Test Cases

Writing test cases is most important key activity performed by tester in software development life cycle(SDLC). This is the first step, followed by tester to identify, define & analyze the requirement. Test Cases: A test case is a set of conditi

1 41 282
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: