Tag: Business Website
Heroku | The datasource configuration “default” was not found in database.php
Heroku throwing ERROR: “The datasource configuration “default” was not found in database.php” with database configuration already present for cakephp app. In one of our cakephp projects hosted on Heroku we used PostgreSql database. For configuring the database to connect to
How to convert an object into Json String in Unity3D Script (C#)
How to convert an object into JSON String in Unity3D Script (C#)? Let’s say I have a class: class User { String firstName; String lastName; String userName; } User obj = new User { firstName = “Shalini”, lastName = “Vashist”,
Ajax call example
How to call ajax function and then fill the data received from server in a table. Suppose the is html code of view. On change in selection of the dropdown getfun() function is called that will send an ajax call
How to install .box extension Virtual Machine
To install and use .box extension machine we have to follow these steps: 1. Installing Virtualbox: $ sudo apt-get install virtualbox $ sudo apt-get install virtualbox-dkms 2. Installing vagrant: Please don’t install the repository version, because this is very old and
NetSuite API | operator undefined for search
On filtering contacts coming from Netsuite CRM based on last modified date, gives error “operator undefined for search”: Below is the code that retrieves all the contacts from Netsuite CRM: ContactSearch custSearch = new ContactSearch(); ContactSearchBasic custSearchBasic = new ContactSearchBasic();
CSS3 Viewport units vh, vw, vmin and vmax explained
CSS3 Viewport units vh, vw, vmin and vmax explained Sometimes we need to fit our webpage content into viewport (visible browser window). Some developers achieve this using Javascript by checking the size of viewport and then they resize the content
Selenium | Opening and closing browser tabs with Key controls
We can use Robot class to open and close tabs in Selenium but we also have the Key_Control concept. These are keyboard shortcuts to open and close the tabs in browser : Ctrl+t (Open New tab) Ctrl+w (Close tab) We
Selenium Locators
To locate elements in Selenium WebDriver, we can use findElement() for single element and findElements() to locate a list of elements satisfying the search criteria. List of different ways in which both the methods can be used are given below:
How to install and use command line tools in Heroku
What is Heroku Command Line: The heroku command-line tool is an interface to the Heroku Platform API and includes support for things like creating/renaming apps, running one-off dynos, taking backups, and configuring add-ons. It is generally installed in your local