Authorguda

MSI notebook are total scrab

For MSI Notebooks

Don’t buy MSI. Look for HP, IBM or some real brand.

  1. The lid of the laptop is breaking – I have  MSI 3 laptops and all of them are broken. One of my friends has the luck to return his laptop and now he is with a nice HP machine – lucky man. It was 6 months for repairing.
  2. The wireless is loosing connection all the time. My wife is with IBM and she is chating chating chating, and I am reconnecting, reconnecting reconecting….
    Update:The MSI lan adaptor has gone away. The only way to use Internet is via the integrated broken wireless. I hate MSI.
  3. The heat is like an oven – my son don’t want to play NFS because of the heat. Me too.
  4. The LCD screen gets on some dark and light spots very soon
  5. The material for the laptop is not good – not nice to touch. The silver color is quickly gone and ugly black places are shown
  6. If you enable the 32 bit access mode Linux kernel wont work (tested till ubunto 8.10
    1. After such try you must remove the battery start the power without any AC and return the power – is this magic ?
  7. The fan of the notebook is making awfull noise. The fan costs 40EUR and there no garantee that the new fan will be the same like the old one.
    1. The fan never stops
  8. Their support is not answering on ANY of the problems pointed here. maybe all from MSI are dead. Who knows.
  9. The microphone is very quiet and the this makes it impossible to talk with skype, btw why they have put the camara then?
  10. The mouse which they give as a bonus doesnt work – both 2 are broken, missing some clicks from time to time.
  11. Try searching for “MSI fan” in google. I got this result. Internet is full of “happy” MSI owners.

CHEAP RUBBISH !

I want my money back! for all 2 laptops that I have bought.

I will publish some pictures soon.

blah

Logs monitoring

I have been asked from one my friends who hosts many websites on single machine to help him to find which vhost is doing some slow requests.

the load of the machine from 0.5 has become 1.5. and there are some apache processess eating the CPU.

It is obvious that some php file is slowing down all the machine but who?

I found this wonderfull tool in Internet

http://code.google.com/p/wtop/wiki/Installing

http://code.google.com/p/wtop/wiki/LogrepCookbook

With this script I can monitor all the pages and not sitting in the dark while some evil pages are drying the CPU power.

logrep -m tail -f 'msec>1000' -o 'ts,ip,msec,class,url' *.log

Cenite.com goes with easy to remember url

This is kind of url! You must click and never never ever forget this usefull website!

http://www.freakinghugeurl.com/refer.php?count=12&url=
Vm0wd2QyUXlVWGxXYTJoV1YwZG9WVll3Wkc5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lZyVmt
aT1VUMDk=

My new filter

I have test it very quick buy it is easy to see the differences.

without filterwith filter

Karaoke

http://zazz.bg/channel:1552

http://www.karaokeparty.com/en/song/90/katy-perry/i-kissed-a-girl

OpenX issue with Pear

OpenX is comming with its own PEAR installation.

If your hosting company has preinstalled PEAR for you you might got the error

PHP Fatal error:  Cannot redeclare _pear_call_destructors() (previously declared in /usr/share/php/PEAR.php:765) in /home/…/ads/openx-2.6.4/lib/pear/PEAR.php on line XXX

To solve this make .htaccess file in the webroot of OpenX  – dont put the .htaccess in your web root.  Here is the contents of .htaccess :

php_value include_path ".:/home/domains/guda/ads/a/lib/pear"


You must enable AllowOverride in your apache configuration

 <Directory /home/domains/guda/cenite.com/openx_webroot>
      AllowOverride all
  </Directory>

Ref: https://developer.openx.org/jira/browse/OX-1006
http://forum.openx.org/index.php?showtopic=503420381

WordPress solution

Limit the index page of your website to show only posts from certain category

The right place for this code is in index.php

  <?
   // query all the posts for each cat
 query_posts("cat=17"); // &showposts=2
  ?>
  <?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>

      <?php
        // http://codex.wordpress.org/Conditional_Tags
        // This is my second best choice! but with query_posts is nicer!
        // if (!in_category('17') && is_home()) continue;

      ?>

How to display Posts only directly connected to a category (no subcategories)

Continue reading

Managing your own ads/blocks with OpenAds

I want to track my own blocks of banners with OpenAds.

Also those blocks must be embeded in the page – so iframe is not a solution.

What I want is to have OpenAds to trigger and decide which ads block to display.

What I have done is to create a text add , take the local (php) invocation code and put it in the place where the add will be displayed. Also I have made some modifications in the original include PHP code – strip the escaping and keeping the tracking html code.

<?php
  //<!--/* OpenX Local Mode Tag v2.6.4 */-->

  define('MAX_PATH', '/home/domains/guda/ads/openx-2.6.4');

  if (@include_once(MAX_PATH . '/www/delivery/alocal.php')) {
    if (!isset($phpAds_context)) {
      $phpAds_context = array();
    }
    $phpAds_raw = view_local('', 4, 0, 0, '', '', '0', $phpAds_context, '');
  }

 if (!empty($phpAds_raw['html'])) {
	$openx_tracking = "";
	$code = preg_replace_callback('/(<div.*?<\/div>)/', create_function(
			'$matches',
			'global $openx_tracking; $openx_tracking = $matches[0];  return "";'
		), $phpAds_raw['html']);

	$code = html_entity_decode($code, ENT_QUOTES);

	ob_start();
	$payed_company = array();
	eval($code);
	$my_own_content = ob_get_contents();
	ob_end_clean();

	echo $my_own_content;
	echo $openx_tracking;
  }
?>

Notice that the code is slightly changed.

And here is the text Ad content:

$payed_company = array("id" => "3617", "title" => '', "payed" => true);
include($_SERVER{DOCUMENT_ROOT}."/panels/payVitrina.php");

As you see this way you can “connect” the ads for a company with certain element from your page.

With this code you will be able to track the impressions of your block code.

Any help on the the tracking of the clicks will be welcome.

Wonderful XPath Tutorial

It is total time saving to learn XPath from this tutorial – fast and not like the USA style books.

http://www.zvon.org/xxl/XPathTutorial/General/examples.html

I have made a mirror on the tutorial because I aways forgot XPath

mirror

One server, two bind/named process, one domain (with two nameservers)

Yes you need two bind instances

When you register a domain name you provide two nameservers.

Those nameservers the registrarar will know their ip addresses.

in my example the domain is cenite.com and the nameservers are ns1.cenite.com and ns2.cenite.com

Both nameservers are running on signle debian machine. I have started two bind processes on the machine. one is binded to the ns1.cenite.com external interface and ns2.cenite.com is to the other (backup) internet interface.

Here is a tool to check your domain name

Here is example zone file

cenite.com.db

cenite.com.ns2.db

here are the configuration files.

named2.conf

named.conf

The good think is when the first internet connection is down, the second will still serve your clients.

Bonus links

Go and switch to tinydns – people say it is much easier to configure  http://cr.yp.to/djbdns/run-server-bind.html

dns zone generator

© 2025 Gudasoft

Theme by Anders NorénUp ↑