Jump to content
xisto Community

it01y2

Members
  • Content Count

    75
  • Joined

  • Last visited

1 Follower

About it01y2

  • Rank
    Member [Level 2]
  1. Im just wondering how i can pass multiple parameters in this instance: Prompt the user to enter a program name and then add a flag: e.g:Program Name: ls First Parameter: -l (and so on....) so... Program var is : ls, parameter var 1 = -l, parameter var 2 = etc. ...... char program[256];char *parameters=NULL;execlp(program,program,parameters, (char *)0);
  2. Can anybody help me making a simple unix shell? Using fork() and execlp commands in linux
  3. Hi, due to the fact that this if coursework for school, i dont want to post any of my code in this forum as my other coursemates may copy and use some of the code. I dont want to be done for plagarism when it is my work.Can i send the code to you more securley? Msn? passworded zip? Is that ok?
  4. C Programming I need to basically read in a file using the open system call, and then read each line and strtok each line by a space. For example - this file: Name1 1 3Name2 4 1Name3 90 20Name4 20 3Name5 56 2Name6 23 9Name7 45 13Name8 12 18Name9 78 5Name10 56 8From each of these lines i need three outputs e.g: (Name1, 1 and 3)These need to be put into an array for sorting by the third column in numerical order, producing the final output: Name2 4 1Name5 56 2Name1 1 3Name4 20 3Name9 78 5Name10 56 8Name6 23 9Name7 45 13Name8 12 18Name3 90 20I have tried to do this but it just keeps on erroring with a stack error. Any suggestions?
  5. <script>if (!document.layers)document.write('<div id="divStayTopLeft" style="position:absolute">')</script><layer id="divStayTopLeft"><!--EDIT BELOW CODE TO YOUR OWN MENU--><table border="1" width="130" cellspacing="0" cellpadding="0"> <tr> <td width="100%" bgcolor="#FFFFCC"> <p align="center"><b><font size="4">Menu</font></b></td> </tr> <tr> <td width="100%" bgcolor="#FFFFFF"> <p align="left"> <a href="http://http://www.dynamicdrive.com/ Drive</a><br> <a href="http://http://www.dynamicdrive.com/new.htm New</a><br> <a href="http://http://www.dynamicdrive.com/hot.htm Hot</a><br> <a href="http://http://www.dynamicdrive.com/faqs.htm; <a href="http://http://www.dynamicdrive.com/morezone/ Zone</a></td> </tr></table><!--END OF EDIT--></layer><script type="text/javascript">/*Floating Menu script- Roy Whittle (http://forums.xisto.com/no_longer_exists/ featured on/available at [url="http://forums.xisto.com/no_longer_exists/ notice must stay intact for use*///Enter "frombottom" or "fromtop"var verticalpos="frombottom"if (!document.layers)document.write('</div>')function JSFX_FloatTopDiv(){ var startX = 3, startY = 150; var ns = (navigator.appName.indexOf("Netscape") != -1); var d = document; function ml(id) { var el=d.getElementById?d.getElementById(id):D.all?d.all[id]:D.layers[id]; if(d.layers)el.style=el; el.sP=function(x,y){this.style.left=x;this.style.top=y;}; el.x = startX; if (verticalpos=="fromtop") el.y = startY; else{ el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight; el.y -= startY; } return el; } window.stayTopLeft=function() { if (verticalpos=="fromtop"){ var pY = ns ? pageYOffset : document.body.scrollTop; ftlObj.y += (pY + startY - ftlObj.y)/8; } else{ var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight; ftlObj.y += (pY - startY - ftlObj.y)/8; } ftlObj.sP(ftlObj.x, ftlObj.y); setTimeout("stayTopLeft()", 10); } ftlObj = ml("divStayTopLeft"); stayTopLeft();}JSFX_FloatTopDiv();</script> Can anybody help convert this into xhtml (tradition, not strict) Thanks Rob
  6. Hi my lecturer set a piece of work, I'm not sure why? With the question: "What changed on the hard disk/s?"This reffering to the steps below:1. Power up Machine (Windows XP Home)2. Login3. Shut downSo what has exactly has changed on the hard disk/s after this procedure?I'm just wondering what content has been modified or changed in any way. (I'm not sure how this is any relevant to the course I'm doing ) Any ideas, or any ideas of any commands i could use in linux or windows xp home to show modified files in the last 10 minutes or so?Thanks, Rob
  7. Is it possible in vb 6.0 to make a while statement which executes every 10 minutes?Any ideas?
  8. I am curently quarying a mysql database, however I am struggling retrieving variables from the script I have downloaded from vbmysqldirect. Here is the code: '---------------------------------------------------------------------------------------' Module : mListviewLoader' DateTime : 03/07/04 14:06' Author : Robert Rowe' Purpose : Modified to work with VBMySQLDirect'---------------------------------------------------------------------------------------'' Copyright 2003 Mike Hillyer (vbmysql.com;'' Module : mListviewLoader' DateTime : November 27, 2003' Author : MIKE HILLYER' Purpose : See ListViewLoad SubOption ExplicitDeclare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As LongPrivate Const LVM_SETITEMCOUNT As Long = 4096 + 47 Public Sub ListViewLoad(lvwData As Control, rs As MYSQL_RS, Optional Owner As Variant)'---------------------------------------------------------------------------------------' Procedure : ListViewLoad' DateTime : 03/07/04 14:09' Author : Robert Rowe' Purpose : Modified to work with VBMySQLDirect'---------------------------------------------------------------------------------------'THIS FUNCTION IS USED TO TAKE DATA FROM A ADODB RECORDSET AND LOAD IT INTO'A LISTVIEW CONTROL. PLACING A PROGRESS BAR NAMED pbrProgress ON OWNER FORM'WILL ALLOW FOR AN UPDATING PROGRESS BAR TO SHOW HOW FAR ALONG YOU ARE WHEN'OWNER PARAMETER IS SPECIFIED DURING CALL.''NOTE: LISTVIEWS ARE NOT VERY EFFICIENT WITH MEMORY, AND THIS FUNCTION'IS NOT RECCOMENDED FOR RECORDSETS WITH > 10,000 RECORDS''AUTHOR: MIKE HILLYER''USAGE: ListViewLoad lvwMyListView, rsMyRecordset[, me] On Error Resume Next Dim lngCounter As Long Dim FirstColumn As Boolean lvwData.View = lvwReport 'THESE PARAMETERS CREATE lvwData.LabelEdit = lvwManual 'A DATAGRID-LIKE APPEARANCE lvwData.GridLines = True lvwData.FullRowSelect = True lvwData.ListItems.Clear lvwData.ColumnHeaders.Clear 'POPULATE HEADERS For lngCounter = 0 To rs.FieldCount - 1 lvwData.ColumnHeaders.Add , , rs.Fields(lngCounter).Name Next 'PREALLOCATE MEMORY FOR ROWS SendMessage lvwData.hwnd, LVM_SETITEMCOUNT, rs.RecordCount, 0& Dim myitems As MSComctlLib.ListItems Dim test As String Dim Text1 As TextBox Set myitems = lvwData.ListItems Do Until rs.EOF FirstColumn = True 'FIRST COLUMN IS A LISTITEM, REST ARE LISTSUBITEMS For lngCounter = 0 To rs.FieldCount - 1 If FirstColumn Then If Not IsNull(rs.Fields(lngCounter).Value) Then 'insert data into the table myitems.Add , , rs.Fields(lngCounter).Value Else myitems.Add , , "" 'NULL FIELDS NEED A BLANK ITEM End If 'TO KEEP DATA FROM SHIFTING LEFT FirstColumn = False Else If Not IsNull(rs.Fields(lngCounter).Value) Then myitems(myitems.Count).ListSubItems.Add , , rs.Fields(lngCounter).Value Else myitems(myitems.Count).ListSubItems.Add , , "" End If End If Next If Not IsMissing(Owner) Then Owner.pbrProgress.Value = (rs.AbsolutePosition / rs.RecordCount) * 100 rs.MoveNext LoopEnd Sub This script basically displays the results in a table however I need to edit this script to give me set variables for later use. The loop loops the query intill each row has been displayed in the table. For example I want to create a variable with the queryed information from the mysql database: (example) First column Second column Third column (header) this result will be in a variable called first column 1 this result will be in a variable called second column 1 this result will be in a variable called first column 2 this result will be in a variable called second column 1 this result will be in a variable called first column 3 etc... this result will be in a variable called first column 4 etc... Please I need help, i an send you the project if you want, many thanks- Rob
  9. Hi I am trying to scale the code below so It can be used for a furniture business website successfully, heres the code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://forums.xisto.com/no_longer_exists/ http-equiv="Content-Type" content="text/html; charset=iso-8859-5" /><link rel="stylesheet" type="text/css" href="style.css" /></head><body> <div id="header"> <a href="#"><img src="images/name.jpg" alt="" width="214" height="46" /></a> <ul class="menu"> <li><a href="#"><img src="images/but1.jpg" alt="" width="43" height="30" /></a></li> <li><a href="#"><img src="images/but2.jpg" alt="" width="107" height="30" /></a></li> <li><a href="#"><img src="images/but3.jpg" alt="" width="94" height="30" /></a></li> <li><a href="#"><img src="images/but4.jpg" alt="" width="85" height="30" /></a></li> <li><a href="#"><img src="images/but5.jpg" alt="" width="138" height="30" /></a></li> </ul> </div> <div id="content"> <div class="left"> <img src="images/title1.gif" alt="" width="215" height="51" /> <p class="text"><strong>Lorem ipsum quaeque</strong><br /> eripuit probatus id usu, nec ea dos epic uri verterem, quando tempr et mei. Eam equidem erroribus an, id nam illum perse- cuti</p> <a href="#" class="read floatright">read more</a> <div class="latest"> <img src="images/title2.gif" alt="" width="71" height="20" /><br /> <div class="news"> <span class="date">12/20/2007</span> <p><strong>Lorem ipsum quaeque</strong><br /> eripuit probatus id usu, nec ea dos epicuri verterem, quando tempr <a href="#"><img src="images/ar.gif" alt="" width="8" height="5" /></a></p> </div> <div class="news"> <span class="date">12/20/2007</span> <p><strong>Lorem ipsum quaeque</strong><br /> eripuit probatus id usu, nec ea dos epicuri verterem, quando tempr <a href="#"><img src="images/ar.gif" alt="" width="8" height="5" /></a></p> </div> <a href="#" class="read floatleft">read more</a> </div> <div class="services"> <img src="images/title3.gif" alt="" width="79" height="19" /> <p><strong>Nec ea dos epicuri verterem,</strong><br /> quando tempr et mei. Eam equidem erroribus an, id </p> <ul> <li><a href="#">Nam illum persecuti suas</a></li> <li><a href="#">Facilis vim ne. Id per lorem</a></li> <li><a href="#">Aperiam suavitate, nec legimus</a></li> <li><a href="#">Debitis te. Has meis omittam</a></li> </ul> <a href="#" class="read floatleft pad">read more</a> </div> </div> <div class="flash"> <img src="images/topcorn.gif" alt="" width="466" height="3" /> <img src="images/flash.jpg" alt="" width="466" height="353" border="0" usemap="#Map" /> <img src="images/botcorn.gif" alt="" width="466" height="3" /> </div> <div class="every"> <img src="images/title4.gif" alt="" width="96" height="19" class="pad1" /> <img src="images/pic1.jpg" alt="" width="107" height="127" class="floatleft" /> <ul> <li class="border">coffee pot</li> <li class="border">microvawe</li> <li class="border">flowers</li> <li class="border">fireplaces</li> <li class="border">coffee maker</li> <li class="border">air conditioning</li> <li><strong>more</strong></li> </ul> </div> <div class="sight"> <img src="images/title5.gif" alt="" width="84" height="19" /> <p><strong>Nec ea dos epicuri verterem,</strong><br /> quando tempr et mei. Eam equidem errori- bus an, id </p> <ul> <li><a href="#">Nam illum persecuti suas</a></li> <li><a href="#">Facilis vim ne. Id per lorem</a></li> <li><a href="#">Aperiam suavitate, nec legimus</a></li> <li><a href="#">Debitis te. Has meis omittam</a></li> </ul> <a href="#" class="read floatleft pad">read more</a> </div> </div> <div id="footer"> <p>© 2007 Bed & Breakfast. All rights reserved</p> <a href="#">Terms Of Use</a> | <a href="#">Privacy Policy</a> </div> <map name="Map"> <area shape="rect" coords="9,337,74,350" href="#"> <area shape="rect" coords="416,336,459,350" href="#"> <area shape="rect" coords="156,336,169,350" href="#"> <area shape="rect" coords="171,336,183,350" href="#"> <area shape="rect" coords="185,336,197,350" href="#"> <area shape="rect" coords="199,336,211,350" href="#"> <area shape="rect" coords="213,336,224,350" href="#"> <area shape="rect" coords="226,336,237,350" href="#"> <area shape="rect" coords="239,336,251,350" href="#"> <area shape="rect" coords="253,336,265,350" href="#"> <area shape="rect" coords="267,336,279,350" href="#"> <area shape="rect" coords="281,336,299,350" href="#"> </map></body></html>
  10. I wondering if it is possible to try and make a java script to get the computer username and log it? Notice from jlhaslip: edit Topic title
  11. I dont understand you, can you write your problem in more detail so i can help you and sort out the problem.
  12. yea currently I am making a vb application but I am new to vb, but as my website got deleted by the web admin of my host, I'm really ******* off. All I want to do is make a automatic radio station which plays songs which are requested on the website which inputs into a mysql database. I need to make a script to pull the mysql data from the database into vb and then play the song.
  13. Just search in google "Slaed Engine" -wihtout the quotes, you might find something?
  14. np thanks for the help anyway, it works now, here's the code: <body><table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0"> <tr> <td style="size:auto;"> <img border="0" src="sdmenu/LEFTBOTTOM.GIF" width="10" height="25"></td> <td width="60%" style background="sdmenu/main2.GIF" style="background-repeat:repeat-x;"> <p align="right"><b><font size="1" face="Arial"> | <a target="rtop1" href="mainframe.htm">Home</a> | <a target="rtop1" href="gallery.htm">Gallery</a> | <a target="rtop1" href="aboutus.htm">About Us</a> | <a target="rtop1" href="contactus.htm">Contact Us</a> |</font></b></td> <td width="40%" style background="sdmenu/main2.GIF"> <p align="right"><font style="font-size: 8pt"> <font face="Times New Roman">Š </font>Rockin and rollin 2007</font></td> <td width="1%"><img border="0" src="sdmenu/RIGHTBOTTOM.GIF" width="10" height="25"></td> </tr></table></body>
  15. added that code didnt work?
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.