1
cptwinky
Re: look at that ..
  • 2004/5/24 16:50

  • cptwinky

  • Just popping in

  • Posts: 37

  • Since: 2004/5/1 2


I think center aligned...Then again I can't stand anything hugging the corners...except maybe a porsche.



2
cptwinky
Re: How to decrease the xoops's mysql queries
  • 2004/5/24 15:46

  • cptwinky

  • Just popping in

  • Posts: 37

  • Since: 2004/5/1 2


That really is interesting but you didnt answer my question...Is it planned for the inclusion in 2.0.7? I would personally love to see it in the core so I can start using it in my modules. Its a very good idea.

It did however cut my queries with NewBB2 to 37 from 124.



3
cptwinky
Re: How to decrease the xoops's mysql queries
  • 2004/5/24 15:11

  • cptwinky

  • Just popping in

  • Posts: 37

  • Since: 2004/5/1 2


Yes I installed NewBB2 Beta2. I know its only beta right now but this is the route that its taking so I figured I would use that as an example, although queries for it have almost tripled since NewBB1.

I never new about the cache_on_change hack, is it something that will be added to the core or a sloppily put together hack?



4
cptwinky
Re: How to decrease the xoops's mysql queries
  • 2004/5/24 14:48

  • cptwinky

  • Just popping in

  • Posts: 37

  • Since: 2004/5/1 2


I can see it...

My homepage with the NewBB2b2 module installed produces about 124 queries per request. I have brought this up with the developers as well and we all agree that it needs to be reduced its just a matter how. One definate thing though is taking queries out of loops all together, get the data then loop over it.



5
cptwinky
Re: How to decrease the xoops's mysql queries
  • 2004/5/24 14:09

  • cptwinky

  • Just popping in

  • Posts: 37

  • Since: 2004/5/1 2


I have seen cache packages out there that allowing for partial caching of pages. This would really help with the forum so that it will cache whole pages and then on each page load only one query is neccesary, to see if there is any posts newer than the cached file, if so then recreate the cache for that page otherwise load the cached file....

I can't find the cache class now but I originally found it on phpclasses.org. Maybe smarty is capable of this though, I am not really sure. Either way its something to look into for caching pages that rely on fresh dynamic content.



6
cptwinky
Re: resume module
  • 2004/5/24 13:59

  • cptwinky

  • Just popping in

  • Posts: 37

  • Since: 2004/5/1 2


This does seem like it would be a good module to have, what exactly is CV though?

I think it would be an interesting experience to write one, do you have any php/module development experience? If not, find someone else who is willing to help out with this and I will be willing to give it a go.

I have my learning module in alpha stage right now, xMyShell so it won't take much maintenence to keep up and bring to final release standards. So I would love to put to use what I have learned so far with a module that would be usefull.



7
cptwinky
Re: Avator Upload
  • 2004/5/15 15:20

  • cptwinky

  • Just popping in

  • Posts: 37

  • Since: 2004/5/1 2


I would love that hack as well catzwolf



8
cptwinky
Re: Server Load / Status
  • 2004/5/15 3:00

  • cptwinky

  • Just popping in

  • Posts: 37

  • Since: 2004/5/1 2


I got it working, same code as above only on this site instead...http://www.nixpert.com/

I wonder what the difference is?



9
cptwinky
*Nixpert.com
  • 2004/5/15 2:33

  • cptwinky

  • Just popping in

  • Posts: 37

  • Since: 2004/5/1 2


Well, I've finally opened my doors. Everyone is welcome to come and join in. The address ishttp://www.nixpert.com/

Any critique everyone can offer would be great as well. The theme is jus a modified version of this themehttp://www.7dana.com/download/pafiledb.php?action=file&id=6

I like it for its simplicity, what do you guys think?



10
cptwinky
Re: Server Load / Status
  • 2004/5/14 14:52

  • cptwinky

  • Just popping in

  • Posts: 37

  • Since: 2004/5/1 2


<?php
// $Id: uptime.php,v 0.1.1 2004/05/14 10:27am David Wagner $                                 //
//  ------------------------------------------------------------------------ //
//  This program is free software; you can redistribute it and/or modify     //
//  it under the terms of the GNU General Public License as published by     //
//  the Free Software Foundation; either version 2 of the License, or        //
//  (at your option) any later version.                                      //
//                                                                           //
//  You may not change or alter any portion of this comment or credits       //
//  of supporting developers from this source code or any supporting         //
//  source code which is considered copyrighted (c) material of the          //
//  original comment or credit authors.                                      //
//                                                                           //
//  This program is distributed in the hope that it will be useful,          //
//  but WITHOUT ANY WARRANTY; without even the implied warranty of           //
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //
//  GNU General Public License for more details.                             //
//                                                                           //
//  You should have received a copy of the GNU General Public License        //
//  along with this program; if not, write to the Free Software              //
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
//  ------------------------------------------------------------------------ //
//
// Config Section
// Configure these values to match what you want
//
// Table BGCOLOR
        
$bgcolor '#CCCCCC';
//
// Table Border
        
$border '0';
        
$border_color '#000000';
//
// Graph image to use. Prefferably keep this to 10*2 in dimmensions.
        //$image = "{X_SITEURL}images/bar.gif";
        
$image 'images/bar.gif';

$load exec('cat /proc/loadavg');
$load explode(' ',$load);
array_pop($load);
array_pop($load);

$scale '1.5';
$total = ($load[0]*100);  
$bar $total*$scale;

echo
'<table  width="100" height="10" border="'.$border.'" bordercolor="'.$border_color.'">
    <tr>
    <td bgcolor="'
.$bgcolor.'"><img src="'.$image.'" width="'.$bar.'" height="10" border="0"></td>
  </tr>
    </table>'
;
?>


Well I have made that, which seems to work alright. I set it to use the 1 minute average but the 5 and 15 minute averages can be used by setting $load[0] to $load[1] and $load[2] respectively. The only problem I am having is when I put this into a custom php block it distorts the page badly. Any help with this from others would be great.




TopTop
(1) 2 3 4 »



Login

Who's Online

229 user(s) are online (160 user(s) are browsing Support Forums)


Members: 0


Guests: 229


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits