Refused to display https://googleads.g.doubleclick.net/pagead/…

Adsense, Web
This article shows how to solve the "Refused to display..." error when using Adsense Error message Refused to display 'https://googleads.g.doubleclick.net/pagead/...' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN': [caption id="attachment_643" align="alignnone" width="706"] Refused to display googleads[/caption] Possibls solutions If you get this error when using Adsense on your site there are a few important things you need to check. If you are using Chrome, be sure you use the latest version. There has been a bug concerning this issue in older versions of Chrome. If you are using Chrome in combination with the "Google Publisher Toolbar", you can check this: Do you see the same error in other browsers (Firefox, IE...)? Do you see the error if you disable the "Google Publisher Toolbar" or if you start an incognito…
Read More

CSS padding Property

CSS, Web
The CSS padding properties define the space between the element border and the element content. The padding clears an area around the content (inside the border) of an element. The padding is affected by the background color of the element. The top, right, bottom, and left padding can be changed independently using separate properties. A shorthand padding property can also be used, to change all paddings at once. Possible ValuesDescription lengthDefines a fixed padding (in pixels, pt, em, etc.) %Defines a padding in % of the containing element Negative values are not allowed. Padding all sides equally In CSS, it is possible to specify one padding value for all sides: [crayon-5b740563aba89718891956/] Padding individual sides In CSS, it is possible to specify different padding for different sides: [crayon-5b740563aba93579911372/] This can however…
Read More

How to create a new Sinopia user

JavaScript, Web
This tutorial will show you how to create a new Sinopia user. In a previous tutorial we saw how to setup a private NMP repository with Sinopia. Now we will see how to create a new Sinopia user in that private repository. You can easily create a user both on the server and on the client by issuing this command: [crayon-5b740563ac4c1399783022/] Change the host and port appropriately. On the next prompt: specify the name and the password (twice). Next you can specify an email address to be used for notifications. Press enter to complete the user registration. You can find the list of users and their hashed passwords in the htpasswd file which is located in the root folder of the Sinopia installation. The newly created user cannot publish to…
Read More

How to setup a private NPM repository with Sinopia

JavaScript, Web
This tutorial shows you how to setup a private NPM repository server with Sinopia in 4 easy steps. [caption id="attachment_629" align="alignnone" width="274"] sinopia on NPM[/caption] Sinopia is a private/caching NPM repository server. It allows you to have a local NPM registry with zero configuration. 1. Installation and Initial Configuration of Sinopia on a server Make sure you have nodejs installed on your server. On your server create a folder called sinopia. Open a shell in this folder and type [crayon-5b740563acca4918450645/] From this new directory, start Sinopia to build the initial configuration file. On initial startup in an empty directory, the output will resemble the following: [crayon-5b740563accaa414939265/] Note that the server is running and you should be able to access it at http://localhost:4873. Unless you want to use this Sinopia server…
Read More

How to enable the web interface in Sinopia

NPM, Web
This tutorial will show you how to enable the web interface in Sinopia. The web interface in Sinopia is a work-in-progress , though it is already usable. In a previous tutorial we saw how to setup a private NMP repository with Sinopia. Now we will see how to enable the web interface in Sinopia. Try accessing the web interface After installing the Sinopia server we can immediately access the web interface. If you navigate to http://localhost:4873/ you will see a message like: [crayon-5b740563ad712371169788/] Enable the web interface In order to enable the web interface we need to change the following setting to the config.yaml file which is located in the root of the Sinopia installation. Scroll to a section named the web and set enabled to true. [crayon-5b740563ad718722105823/] After you…
Read More

How to improve your Google rank

Web
This tutorials provides some insight in how to improve your Google page rank. 1. Pool your referrals. Often business owners don’t realize that http://www.yourdomain.com and http://yourdomain.com are seen as different pages by search engines. This can result in any links that you receive being diluted between the two pages. The solution to this common problem is to tell Google that you want all the votes from http://yourdomain.com to be counted towards http://www.yourdomain.com. This can be easily implemented by using a permanent (known as a 301) redirect from one of the pages to the other. In order to redirect all of the requests for http://yourdomain.com to http://www.yourdomain.com, you should set the appropriate rewrite rule. This can be done by adding the following lines at the beginning of the .htaccess file in…
Read More

Watch any member of an object or a list.

AngularJS, JavaScript, Web
If you watch a list or an object with the objectEquality parameter not set, then the $watch callback function won’t be triggered if the object is only updated partially. [crayon-5b740563ae146334821799/] Setting the objectEquality parameter to true will trigger the $watch callback function on modification of any member. [crayon-5b740563ae14d591835270/] Using this the objectEquality parameter has performance impact, so use carefully.
Read More

How to add a widget area to the bottom of every post.

Web, WordPress
This tutorial shows how to add a widget area to the bottom of every post. On many sites you will find a standard text at the bottom of all WordPress posts. This is a great place to remind your readers about something you want them to do, a special promotion you are running, etc. Next we will show you how to add a widget area to the bottom of every post. Once you have the widget area in place, you can add any desired content to that area using the admin pages of WordPress. 1) Register the widget First you need to tell WordPress you want a new widget to be available. To do so, you need to add the following to your functions.php file, which is located in the…
Read More

Running JBoss AS 7 as a Windows service

Java EE, JBoss, Web
This tutorial shows you how to run a JBoss AS 7 server as a Windows Service. First of all, grab the appropriate native connectors from http://www.jboss.org/jbossweb/downloads/jboss-native-2-0-10 (x86 for 32bit host, x64 for 64bit). If you are not sure, use the 32bit version since they will work on 64bit systems also but the reverse is not true. Unzip the archive in the JBoss main folder. Then make some modifications to the service.bat file Rename the SVCNAME, SVCDISP and SVCDESC to something more meaningful. This is optional but if you plan to install multiple servers (e.g. test and production, you want different names. Modify the JAVA_OPTS to increase memory, service.bat doesn't read any other conf.bat file so it will use default memory settings and will die of memory loss for a mid-sized…
Read More

How to make a JBoss AS/EAP accessible from remote locations.

Java EE, JBoss, Web
This tutorial shows how to make a JBoss AS/EAP accessible from remote locations. Per default, a newly installed JBoss AS or EAP is only accessible from the machine it is installed on. This is done to prevent access to the Application Server before security settings are applied. Once the server is properly configured, you need to make the following changes in order to access the server from a remote address: Go to the Application Server Management page on http://127.0.0.1:9990 on the machine the server is running on (or the machine ip address if remote management is enabled) Login with the administrator account Select the "Profile" View Go to section "General Configuration > Interfaces" Select Interface "public" Change the Inet Address to "${jboss.bind.address:0.0.0.0}" Press save Restart the server. The server log…
Read More