my PHP code benchmark script that got some problems

here is the all 3 filesindex.php<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><HEAD><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta http-equiv="Content-Style-Type" content="text/css"> ...

Simple Benchmark script

I have been working with Linux a lot and i find myself installing a lot of linux distros, but with no way to test them.....So i crafted a script in Perl to quickly create a lot of files on the Hard Disk and delete them. The script will count the number of milliseconds it took from start till deletio ...

Ubuntu Automated copy from CD script? Total novice!

I'm very new to Linux and Ubuntu but I'm fascinated and very keen to learn.However, at the moment I really need some help to finish up a project that's way beyond where my learning curve is at right now.What I'm after is a script that will recognise when a CD is placed in the drive and automatically ...

Total execution time. Format float number

mypadding decimals with '0' questionHere is what is displayed, by my timer script:Total execution time: 0.003175 sec0.0024 secNow I like ALWAYS 6 decimals to be displayed:0.003175 sec0.002400 secWhat is the best way to do this '0'-padding?I dont need to format the part to the left of '.'just the 6 d ...

Ubuntu I have an rsync backup script set up.

And I got this error when I did a "sudo backup" (backup = name of the rsync script).total size is 60816185804 speedup is 70.55rsync warning: some files vanished before they could be transferred (code 24) at main.c(791)jason@jason:~$I just ran it again. It didn't give me the error this time ...

Auto calculate the subtraction of total earn and total deduction

Good day!I am new in javascript function.I have Javascript code for auto calculatehere is the code:<script type="text/javascript" language="javascript">function autocalearn(oText){if (isNaN(oText.value)) //filter input{alert('Numbers only!');oText.value = '';}var field, val ...

Auto calculate the subtraction of total earn and total deduction

Good day!I am new in javascript function.I have Javascript code for auto calculatehere is the code:<script type="text/javascript" language="javascript">function autocalearn(oText){if (isNaN(oText.value)) //filter input{alert('Numbers only!');oText.value = '';}var field, val ...

PHP and Memory

HelloIm building a browser based game (text and images)I have a debugger/benchmark script that I run at every opage load which gives me various information. One thing it logs is script exectution times (including how long it took for all of the php to load and execute) as well as memory usage.Im dev ...

PHP and Memory

HelloIm building a browser based game (text and images)I have a debugger/benchmark script that I run at every opage load which gives me various information. One thing it logs is script exectution times (including how long it took for all of the php to load and execute) as well as memory usage.Im dev ...

Newbie needs HELP!

I am trying to figure out javascript with 2 books I purchased with no luck. I have searched for weeks for a script on the internet that would work for me with no luck. I am posting what I have in my form and the javascript I have (it doesn't work) and maybe someone can tell me how to get this workin ...

How to sum arrays

I basically have several arrays that have integer values of let's say cats and dogs and I want to sum them.I can do it with the following code but the arrays that I am using in real life have many more objects then just the cats & dogs shown and many more names. Is there a more efficient way to ...

mysql: maximun records: how much?

i am on a win 2000 machine and i have this problem.i try with while clause to insert 30 records at a time.i run 1st time the script : total 30 records2nd: 604th: 120 5th: 127 and if a try more times it does not insert a record ...

mysql: maximun records: how many?

i am on a win 2000 machine and i have this problem.i try with while clause to insert 30 records at a time.i run 1st time the script : total 30 records2nd: 604th: 120 5th: 127 and if try more times it does not insert any record.so there must be 127 the most records in a table.-----do you know where i ...

Divide sums please help

When i enter the below script:$total = "$hitsout / 12";$total1 = "$hitsout / 100";and echo it i get the $hitsout / 12 or 100 printed e.g.:0 / 100Can anyone please help? ...

Pull value from forms hidden field.

I am new here and plan on becoming active as long as I can. This is gonna be a long post. And I appreciate your time in reading it and hope you can help me.I have used tectite formail processorhttp://www.tectite.com/This formail script can do almost everything I need it to do. It can do multi-form p ...

Oracle Performance questions on 2-node RAC +ASM

We are in the process of migrating to an Oracle 11g RAC (2 node) system. I have devised a test script to benchmark performance on the new system as compared to the old (Oracle 10g +ASM). The benchmark script performs a high volume of BLOB reads and writes across multiple concurrent requests. The dat ...

I Want to add to get total but rather script append as string ?

var subprice, rather added to total in appended ...well ?eg subprice=5 total=9 addition>59 rather 14also the third script code below is it correct ?<script type="text/javascript"> /* <![CDATA[*/function setCookie(c_name,value){document.cookie=c_name+ "=" +escape(value ...

script to get Total number of Trasnactions on sql server

Does any one has a script to capture Total number of Transactions and AVG transactions/sec.Any help is greately appreciated. ...

Need shell script that need to utilize total RAM in the server

I need to tune some swap parameters in Linux server. For this I want to test it in some test server.Is there any script that uses total memory and also need to use swap space on that test machine. So that I can test with my tuning parameters to clean up the unused old swap without doing a server reb ...

Cumulative total count script

First...I am a total newbie to writing scripts....I would like to work on a script that would allow a visitor to enter an amount into a form on my site... have a php script take that number, add it to the total-to-date (maybe in a text file), and echo the output....Application - encouraging visitors ...

Calculate total and percent of total - poll script

I received help from Thomas (tsinka) earlier with a poll script which works beautifully.Now, I'm taking one step further and I'm trying to calculate the percent of total votes cast by row.There are 6 rows or colors. Total votes cast is 41.The result of my script currently gives me the following tabl ...

Question about a publicly available script (order total and multiple radio seletions)

First off, here's the script:update-order-form-no-page-refresh (http://javascript.internet.com/forms/update-order-form-no-page-refresh.html)So, I'm really new to javascript and I'm trying to do what should be a simple task. I'm going to have several categories...so Sauce, Toppings, Bread, so on.I'm ...

RDBMS benchmark: SQL script needed

I am planning to do a benchmark on following RDBMS: MySQL vs PostgreSQL vs Informix vs Oracle.Could someone provide a good SQL script to test those RDBMS in real-life-like conditions?PS. Meanwhile I will be busy setting up the environment ;) ...

Script returning total used space for every sub directory

I am trying to write a script that return the total used space for all sub directories 1 level down. What I mean is imagine the following structure:/home/bob contains d1 (3mb) , d2 (1mb) and d3 (5 mb)home/bob/d1 contains d11 (1mb), d12 (10mb) home/bob/d2 does not have any subdirshome/bob/d3 contains ...

help requested for running total script.

Firstly, I am not a js guru.I am using a running total script, which when you input a value to a textbox, it is used as a mulitple and then the total shows up (individual cost * multiple), in a totals text box further down the script.Instead, I am trying to change the script so that selecting a radi ...

modifying 'running total' script help required.

I am using the following script to give a running total from my form. I need to add another field to the form value and therefore amend to code slightly.Here's the script. The form value is written like this : PROD_00000000001_250 and I need to change it to this:PROD_00000000001_250_99 and be able t ...

running total script saying error :(

need a break obviously!! I had the total field called 'total' in the html and 'TOTAL' in the JS.I am using his running total script which works in a normal html page but which doesn't when run in a server generated script. It throws the error:frm.TOTAL has no propertiesLine 50Here's the code and my ...

Script to total up prices on page

I have a page that I need the prices to total o the page,can someone offer a suitable script to do this, My knowledge is fairly limited, so it would need to be pretty self explanetoryhttp://users.highway1.com.au/~willis/flower/order.htm any help is greatly apprecatedDaryl ...

Make my form pick up the sum total of a script

I've built a third party shopping cart, click here if you'd like to see it:http://www.carlinart.net/shoppingcart/index.phpI want to integrate paypal so the aggregate cart amount is passed to paypal.From the online guides at paypal I can read:"If you wish, you may aggregate your entire shopping ...

How to calculate a total in Java Script and display the result in a column in a table

I have a table in a web page with 3 columns: Unit Price, Quantity,Total. How I can display the result in the column Total after multiplying the content of the column Unit Price by the Content of the column Quantity using Java Script? Any code sample would be welcome. ...

Ubuntu Can this bash script be faster (and how to benchmark it)?

I parse the following to single lines:Example something1 else2 other3 firstotherthing1 apple2 coconut3 pearto outputsomething elsesomething othersomething firstotherthing appleotherthing coconutotherthing pearI created the following script to achieve this. First I modify the file with sed to insert ...

Ubuntu total perl n00b needs help for thunderbird -> vcard script

first off, i'm not entirely sure if i'm not abusing the programming section with a drive-by practical help request; forgive my lameness if this is the case, but this seemed too perl-related to be in the "other applications" section..what i want to do is transfer my thunderbird contacts to ...

can't figure out why script won't work (total newb)

I'm only a few lessons into learning JavaScript, which is probably why I can't figure out what I'm doing wrong here...I pasted the following code into my html page:in the <head>:<script type="text/javascript" language="javascript" src="sort.js"></script ...

Get Total Months between two dates in shell script

I want total months between two date (I/p)i want exactly four batch on the basis of date , for ex.i/p Start date : 01-JUN-2005 (or format can be 20050601 - YYYYMMDD)i/p End Date : 01-OCT-2006 or format can be 20061001 - YYYYMMDD)so in this scenario each batch should be 4 months (as there are 16 mont ...

Ubuntu Script to report total folder sizes

Ever wanted to do: spud@spud-laptop:~$ dsize4G . 3G Movies115M .cache 3M .thumbnails 1M Code560K .gnome2 46K .purple I often need to know which folders are eating up all my HDD space. So I spent the day pestering the lovely people on irc.freenode.net, and ended up with this bash script:Just save it ...

Total noob needs a simple PHP script

I need a very simple script for my website but I know nothing about scripting. I'm not even sure this script is best made in PHP or Java. If anyone can help I'd really appreciate it. :thumbsup: So this is what I want:I run ads on different sites but depending on the site I want to pass along a diffe ...

Total SQL PHP script

Is it possible to show per page how many SQL queries it took to create the page? I've seen on other sites things like "Total SQL queries: XX"I did some research and some said underneath every SQL query I had to use a counter, which isn't really what I wanted.Is there an easy way, or is it ...

Simple Benchmark: sphinxapi.php vs PECL Sphinx

So I was just playing around with PECL sphinx today, and I noticed a hell of a speed up.I looked around a little for some benchmarks and didnt really see any, so I threwtogether a little script.Machine Info and Script Info Below. Not exactly a hardcore benchmark, just usingmicrotime(true) around Run ...

Total newb. Need help with email form script asap!

I am trying to get a survey form to send result directly to my email. It works sometimes, but I need it to work every time! The problem is that after submission it takes 5-10 minutes to get to my email, and sometimes it doesn't at all! I didn't write the code, I got it from Tutvideos. Can you spot a ...

Bash Script to extract the pwd from the total pwd path (url)

this shud be simple .., but i am noob to bash-scripts and have almost equal experience in using awk or sed .., so Please someone help !!!!I'll explain : I am using something like this :Code: ...

Script error - 4 total scripts running: HELP!

On the following site:http://cwcafe.com/elabWhile on the page: http://cwcafe.com/elab/iccsvcs.html , I am having the following error message appear when I navigate my arrow over the top menu:A Runtime Error has occured.Do you wish to debug?Line: 81Error: Object doesn't support this property or metho ...

jQuery putting value to html from a php script

I am new to this group and JQuery. I am reading a lot of stuff aboutit but I nee to ask a question for something that I to create.I have an area in my html page where I want to call a php script thatprints a total.Is it as simple as this:$.get("totals.php" );Am I in the rigth track? ...

jQuery Help: Carousel Showing Current & Total count

folks,I'm new to JQuery can anyone help me find how to display current &total page count on carousel.Eg: Showing 1 of 10 PageI'm currently using this http://sorgalla.com/projects/jcarousel/examples/static_controls.htmlscript.Please if anyone know help me figure out how to display text sh ...

jQuery Textboxes in asp:repeater with total row

I have a asp:repeater which repeats 2 columns of textboxes inside a table. I also have totals textboxs underneath the repeater (not in the footer of the repeater).When the user leaves a textbox (onblur), I want to set the total for that column to the sum of the textboxes in the textboxes column.I ad ...

jQuery Animation Issue with Script

I've implemented the following script http://webresourcesdepot.com/wp-content ... /standard/ into my site however the animation part of the script is not working and I'm unsure why as the code hasnt changed and the name of the <DIVS> are also correct. It's a basic add and delete shopping baske ...

jQuery I need This script to do all arithmetic functions....for

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>jQuery Calculation Plug-in</title><!---// load jQuery v1.3.1 from the GoogleA ...

Total price using jQuery

guys (and girls) !I'm trying to make a script that adds up the price of selected items and shows the total price.Something like when configuring a iMac of MacBook at the apple.com storeThere is a basic price, lets say $100.If you click on extra item #1, it gets a class .selected and the value of ite ...

Put jquery plugin script in .js file?

Hi, I'm using quite a few great jquery plugin on my site. But I noticed the javascript in my html is growing quite big. I know the normal way to use a plugin is to include jquery-->include plugin .js file--> then put something like below to my html file. I'm a total beginner to javas ...

Special Values from drop-down menu & total in Simple Form

I have the perfect form for a client - but its missing one thing. She sells hair clips in various colors. A user can select a hair clip color and quantity quite easily (as seen in the code below). My issue is that she wants to be able to give the user a 'special price' based on the quantity ordered ...

Total of Form

<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><script type='text/javascript'><!--function writeSu ...