Hello,
I'm working on a E-commerce project with the Savoy theme in WP.
I add a custom button in the simple.php file. This button has to be enable only if the user is logged in.
Due the fact I'm not an expert of such thing can someone explai...
The below Example will show you how to read the specific property from the file in JSON format or to read the Specific property from the JSON data.
emp.txt
{
"id": 123,
"name": "Manish",
"phone": [
123456,
987654
],
...
If you are looking to capture a video for particular time interval using default camera, then follow the below code to achieve the same.
Record video from camera for 60 seconds
private void captureVideoFromCamera(){
Intent intent = ne...
For your iOS application if you want to check Push Notification status then you can check it by using the below code:-
in iOS 7
UIRemoteNotificationType types = [[UIApplication sharedApplication] enabledRemoteNotificationTypes];
if (types ...
Technology advancement has made it possible for many talented people across the globe to work as freelancers sitting at any corner of the world. Being a freelancer is often thought of pursuing a more relaxed lifestyle, but there are harsh, stark ...
It is very common that the Android's Edit text needs to clear all filled data in one hit, rather than clearing every single text using keyboard's 'X' button.
It is a good practice that enable user to clear all the text using Edit Text drawable...
If you want to make loops and special fields in OpenERP use below code -
def get_totals(self, cr, uid, ids):
countries = {}
for sale in self.browse(cr, uid, ids):
country = sale.partner_invoice_id.country
countries.setdefault(country, 0...
How to parse the below type of API Response
[
{
"id": "xxxxxx",
"displayLabel": "xxxxxxx",
"name": "xxxxxxx",
"fieldType": "Dropdown",
"mandatory": false,
"editable": true,
"description": "xxxxxx",
...
Sometimes we need to export Schema without data means table structure only. We can do this easily by providing "--no-data" option in mysqldump command.
Command:
mysqldump -u root -p --no-data database_name > database.sql
Exa...
For textfield we use attributes to give outlines to it or some times we place image view behind every textfield for its outline. We can instead use CALayer for it. I am setting an upper outline to a textfield, here is the code:-
CALayer *upper...
If you are looking to copy the text from android widgets to clipboard, you can use the below code
TextView contentTextBox=(TextView) findViewById(R.id.tv_content); //get textview from which you want to copy the content
String textToCopy = c...
If you want to get the country name of the first contact of a partner related to the ID sale order in OpenERP use below code -
country_name = sale.partner_id.address[0].country_id.name
Hello,
I have a question my Mini cart (ajax) doesn't work well.
It doesn't update.
The checkout cart works well.
I'm using Magento 1.9 latest stable version.
Does somebody knows the solution.
Thanks in advance,
Friendly regards...
How to validate text field using regex in angularjs, Text field accept only valid input.
<input type="text" name="phone"/>
Above input text field allow me to enter number only.When I enter alphabet it should not accept.
Can anyone please let me know if it is mandatory to get a GMS license from Google in case someone wishes to embed the Google Play Store & Youtube apk in thier Android dongle when it is shipped ? As per my understanding this is required for ...
ProducerConsumer problem is also known as the bounded-buffer problem.It is multi-process synchronization problem.There are two processes one is producer and another is consumer that can share a common and fixed-size buffer. The producer insert th...
Hi all im working on a game 2d , i want to make a space game on 2d and i all most did it but the problem is on axis it wont work :( so i need help here is my script in C#
public float speed = 10;
void Update()
{
float transl...
This tutorial will help a user to learn how to install mod_jk module and what is mod_jk.mod_jk is basically Apache module which is used to connect the Servlet Container [also known as Web Container] with the Web Servers (i.e. Apache, iPlanet, Sun...
Keep-Alive is a Directive in Apache that is used to maintain a persistent connection between client and server, which prevents a connection from breaking. It is also known as HTTP keep-alive, When we put KeepAlive Directive "on" it the allows sam...
Enable a system location dialog ,asking user that app needs to find the current location
This dialog is from Android Settings API
public class LocationData implements GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedL...
What is a Cookie?
A cookie can contain different data that is stored on the client browser with server specific information like user id and or user preferences.
What are Sessions?
Sessions are used to store information in the form of va...
CAPA means corrective action and preventive action . CAPA is a part of software Quality management System . CAPA is key requirement for any software development company which need FDA and ISO certification . An active CAPA program is a esse...
Hi! I'm trying to develop an application.But i'm a little bit confused about auth.I've seen more examples from github but their code are realy difficult and it's very hard to understand it .I need if it's possible,a small working example to under...
Hi , please help me to solve Android share content intent problem
I want to share a Text and link to users like if user select Facebook should share only link(as facebook only accept link from native android share), if user select other app like...
We can delete magento cache in either way -
A- Usign magento admin panel -
1) Go to magento admin
2) Go to system > cache management .
3) There you will find the list of caches available in magento
4) To clear the cache...
In UITableView every UITableViewCell contains a separator line by default. If you need to create your own custom separator line then use below code inside cellForRowAtIndexPath method.
UIView* separatorLineView = [[UIView alloc] initWithFrame:...
Some times we need to create a custom back button for Navigation Bar in iOS. If you want to create an easy navigational back button instead of creating a view and add that view in navigation bar then use below code to achieve it.
UIButton *bac...
Review Effectiveness is a software metric to calculate the number of defect uncovered during review ( SRS review + Design review + Testing review ) versus total number of defect uncovered . The value of Review Effectiveness is very important...
I have secured Rest webservice but whenever i hit that webservice it will respond No peer certificate exception like this. Please help me. Thanks in advance.
Hi Readers!
In this blog we will learn How we can Add and Delete items in dropdown in JavaScript. .In the bellow example we are going to add items in dropdown and delete selected item from the dropdown list on specific button click .
<...
It is the metrics used to calculate the number of delivery done in time against the planned delivery .Delivery schedule adherence is usually calculated by project manager or QA manager so that he can evaluate the performance of his team . The o...
hi all i am use tomcat 8 and my war file initially i want write a file a .properties file, here the code:
Boolean wflag = false;
String wnomfile="my.properties"
Properties prop = new Properties();
OutputStream output = null;
System.ou...
Has developed a PhoneGap application with in-app purchase. I am using PhoneGap Build. But how do I test so that in-app purchases work now?
Has created an in-app purchase on the iTunes Connect and downloaded the app from the PhoneGap Build to m...
Making a good website design is very important. First impressions are important after all. In the multitudes of website available at the disposal of the millions of customers who come looking for such websites it is very important to make an impr...
Hello Reader,
We have three cakephp callback function which generally used into the cakephp projects.
1> beforeFilter(): beforeFilter() is the cakephp callback function which can be used in AppController or in Controller and this functio...
In my previous blog I have explained you about Social Bookmarking and it's Importance. So if you are looking for social bookmarking sites below are some of the Top Bookmarking sites which I preferred.
Reddit
...
Hello,
I have a problem to run the next code. I have a glassfish server and I add servlet api.
The problem is when I try to run it this error occurs:
In-place deployment at /Users/jakublemiszewski/NetBeansProjects/JspServletTutorial/build/we...
In today's online marketing world every marketer opts for different strategy for the identical goal - Get higher SERP. One of the most common and important strategies is doing Social Bookmarking (SB). Posting content on social med...
Hello Friends, The below code will show you how you can read System Environments Variables and System Properties by Using Spring applicationContext.
We have to create SystemVariables Class and create the property systemVariables
SystemVaria...
Generic Methods:- The Below code will helps you to implement Generic Method using the Generic Programming in Java. The generic methods enable us to specify, with a single method declaration and use with different data types. we can write a single...
Here the Below Example will show you how you can construct your own Collection(ArrayList) in Java. The below example will show you that our Class Generics will behave like the ArrayList. I have use the Generic Programming to Implement the concept...
Javascript is a prototype-based language. It works on objects. Each object has an internal property called prototype,from which other objects inherit properties. It extends the functionalities of class. The prototype object has a prototype...
One of the oldest and the worlds largest open-source web application framework, DotNetNuke (DNN) has been helping its clients manage information on their respective websites, intranets, and extranets since long utilizing Microsofts ASP.NET quite ...
In Odoo Search View is easy to use that is provided on every list view. With a module, you can add additional filter options that make it easier for users to find the information they are looking for and user can select the filter in Odoo.
To ...
Hello all,
Working with HTML and JavaScript we usually keep our JavaScript code in separate files to keep our code organized and manageable.
If we are using various plugins in our website which has lots of JavaScript files with it, in that ...
Hello guys,
I am writing a blog to validate the HTML form by angularJS. We can validate the many thing by angularJs on real time basis for example-
required field, maximum length, minimum lenght and text pattern etc..
Now, create a form...
change the color of a bullets in a list
Hello friends,
Some times we need to provide color in <ul> or <ol> List for that you can simply use the below code.
<ul>
<li style="color: red;"><span style="color: gr...
In iOS apps when we need to hide control center appears in iPhone device on swipe up gesture or forced to hide UIStatusBar then use below code.
Write below lines in your viewDidLoad method.
if ([self respondsToSelector:@selector(setNeedsSta...