howto

Securty policy - blah (linode.com fall)

When you do security there are no such term as "low risk".

Example - Linode.com. Somebody install phpBB and Linode just got two step attack.

Get out everyone by falser report
Attack old forum - got it.

So, questions are:

  • Linode employes doesn't have notebooks?
  • remote administration in 2014 is something they don't know?
  • Linode don't have any remote administration?
  • Linode operate from ONE office?
  • how about different datacenters? are they affected?

So, again decentralization is good as never!

Tags:
Links:

Warning: "Headers already sent" or "Cannot modify header information"

Lets see, you install new PHP app and get bunch of warnings. It is sad, commonly you need PHP knowledge to understand them and fix. Probably you can request help from you hosting support, but they reject such problems saying "We don't fix your php applications".

Tags:
Links:

GPix with free and paid pixels at one grid

You want to grant free small regions for your customers and get money for bigger? it is simple with GPix.

  • setup price for you regions
  • set yes for "Allow free and paid regions" option
  • define maxim free area"Maximum square for free region" - for example 300 (3 blocks with 10x10)
  • review your get pixels page

Here you can see how administration settings need to look:
Free Payed configuration

Here you can see what you can expect as visible result:
Free Payed pixels

Tags:
Links:

GPix advanced options

With version 1.4, GPix have "Advaced settings" which provide you control over advanced features. You can leave them as is and GPix will work, but you can research them and choose to change for your special case.

Tags:
Links:

GPix grids iframe integraions

GPix have not index_insert.php in distribution, to integrate grid via iframe you can use grid.php
grid code will look like this:

<iframe src ="DOMAIN/PATH_TO_GPIX/grid.php" width="100%" height="1050px" style="border:0; margin:0 auto;">
  <p>Your browser does not support iframes.</p>
</iframe>

Tags:
Links:

How to change tooltip background for GPix grid

is it possible to change the background color for tooltip? sure it is possible, more it is very easy.

you need to change color definition in file templates/wz_tooltip.inc.tpl on line 4:

 ttBgColor = '#FFFFCC';  

as example you can make white background:

 ttBgColor = '#FFF';  

Tags:

Fight with empty pages or enable error reporting and debug

When users install scripts or play with functionality they can get 'white page'. Commonly page without content mean that something is wrong and you can not see errors, warnings or notices, because reports of this type disabled by php configuration.

Tags:
Links:
Syndicate content