Jump to content
xisto Community

bob3695

Members
  • Content Count

    33
  • Joined

  • Last visited

1 Follower

About bob3695

  • Rank
    Member [ Level 1 ]
  1. i need one or the other. the reason is...the database is going to be accessed anywhere from 10-100 times a second. This is going to be used as a off site storage for a program called Second Life.EDIT: Can someone tell me what the max connections and the max connections per an hour are for the databases here?
  2. Hello,I am considering starting to contribute to this community and get free hosting from them but the hosting im looking for needs one of two things...1) Persistant MySQL Connections from PHPor2) A extreamly large amount of max_connections_per_hour set.If these are not offered would it be possible to get one of them with some extra points?Thanks,Rich
  3. That is sorta what I am looking for...I want to get to that adventually but for right now I am just looking for windows programming. Not just dos.Thanks
  4. I am trying to learn C++. Do you guys know of any good C++ tutorials or resource sites? I have a book but is only the basics. I am about half way through it. I am trying to put together resources for me to learn the more advanced stuff. Also how about some free compilers? Thanks
  5. Well it could be a couple of things...first: It could be unplugged (I know this is simple but it could happen). Second: You power supply could be shot. Easy fix. buy a new one. Third: The mother board might be shot. In this case you would have to buy a new one.There are a couple of others that I can't thing of right now.Thanks,Rich
  6. Web Timer Control C# Difficulty: Easy Time: 10 Minutes The aim of this tutorial is to create a Timer that works on web pages. Timers are a very useful control in Windows Applications but how can you use them in web pages. With the default controls you get in the .Net Framework there is not a Web Timer. This web timer can be used as a normal web control you will be able to drag and drop it onto Web Forms, and modify it using the properties window. This Timer Works using the JavaScript setTimeout() function which once the required time has elapsed unlike a Windows Forms Timer it post backs the page and then the Page_Load Event will handle the event. Here is the code: using System; using System.ComponentModel; using System.Text; using System.Web.UI; using System.Web.UI.WebControls; namespace WebControls{ [DefaultProperty("TimerInterval")] [ToolboxData("<{0}:TimerControl runat=server></{0}:TimerControl>")] public class TimerControl : System.Web.UI.Control, INamingContainer { [Browsable(true)] [Category("Behavior")] [DefaultValue("TimerPostBack")] [Description("The PostBack value.")] public string PostBackValue { get { object viewState = this.ViewState["PostBackValue"]; return (viewState == null) ? "TimerPostBack" : (string)viewState; } set { this.ViewState["PostBackValue"] = value; } } [Browsable(true)] [Category("Behavior")] [DefaultValue(1000)] [Description("The timer interval, in milli-seconds (1000 = 1 second).")] public double TimerInterval { get { object viewState = this.ViewState["TimerInterval"]; return (viewState == null) ? 1000 : (double)viewState; } set { this.ViewState["TimerInterval"] = value; } } protected override void OnPreRender(EventArgs e) { StringBuilder sbScript = new StringBuilder(); sbScript.Append("\n<script language=\"JavaScript\" type=\"text/javascript\">\n"); sbScript.Append("<!--\n"); sbScript.Append("\n"); sbScript.Append("function autoPostBackTimer()\n"); sbScript.Append("{\n"); sbScript.Append(" " + this.Page.GetPostBackEventReference(this, this.PostBackValue) + ";"); sbScript.Append("}\n"); sbScript.Append("// -->\n"); sbScript.Append("</script>\n"); this.Page.RegisterClientScriptBlock( "TimerControlScript", sbScript.ToString()); StringBuilder sbScript2 = new StringBuilder(); sbScript2.Append("\n<script language=\"JavaScript\" type=\"text/javascript\">\n"); sbScript2.Append("<!--\n"); sbScript2.Append("window.setTimeout('autoPostBackTimer()', " + this.TimerInterval.ToString() + ")\n"); sbScript2.Append("// -->\n"); sbScript2.Append("</script>\n"); this.Page.RegisterStartupScript( "TimerControlStartupScript", sbScript2.ToString()); } } } Just Copy and Paste it into C# Web Application or C# Web Control Project and build it. Then if you have made a web control project you may want to compile it and then add it to the Visual Studio tool box. To actually use the Web Timer Drag and Drop it onto a Web Form set the Time (1 sec = 1000), and the Post Back value, and then in the Page_Load event add this C# private void Page_Load(object sender, System.EventArgs e) { if ( this.IsPostBack ) { object eventArgument = this.Request["__EVENTARGUMENT"]; if ( (eventArgument != null) && (eventArgument.ToString().Trim() == this.TimerControl1.PostBackValue) ) { //Function or code to handle the elapse of the timer. } else { // Do Nothing } } VB Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load If Page.IsPostBack Then Dim eventarguement As Object = Me.Request("__EVENTARGUMENT") If Not eventarguement = Nothing And CStr(eventarguement).Trim() = Me.TimerControl1.PostBackValue Then 'Code to Handle event Else ' Do Nothing End If End If End Sub Adding your own code to handle the event in the appropriate place. Rich
  7. I can't find cleanup.php at mamboportal.com. Do you have a link to it?
  8. I got the theme to work but now I am trying to change permissions for a compontant. When I try and change it says "550 Could not change your parms on com_puarcade: Bad File Descripter"What does this mean and how do I fix it?Mods please merge my 2 posts
  9. The pictures are in the templates image directory. I also checked the path and it seems to be fine. It works for me in offline testing with EasyPHP but as soon as I upload it it doesn't work. When I type the link directly to the image in the address bar all it does is bring up my home page. Xisto does support gifs right?
  10. I am using Mambo 2.5.2...or what ever the newest version is. I installed a theme but none of the images show up. The CSS file works but none of the images work. I checked the format of them and they are gif. Is this the problem or is it something else?
  11. In this tutorial you will learn most of the operations you can use on a text file. They include finding if a file exists, opening/creating a file, reading/writing file, closing file, copying file, deleting file. You will need a form with two buttons on it. Use the names Step1 and Step2. First thing we are going to do is import system.IO. To do this go into the forms code view. At the very top add this line. Imports system.IO This lets us use the file operations that we need for this tutorial. Next we need to check to see if a file exists. To do this double click on the step1 button and type this code. If File.Exists("TextFile.txt") then This line just checks if the file already exists. Next type this line of code. Dim ioFile as new StreamReader("TextFile.txt") This line of code opens "TextFile.txt" for reading. Now we are going to read the file and store it into a variable. Dim ioLine as string ' Going to hold one line at a timeDim ioLines as string ' Going to hold whole fileioLine = ioFile.ReadLineioLines = ioLineWhile not ioLine = ""ioLine = ioFile.ReadLineioLines = ioLines & vbcrlf & ioLineEnd While We now have the whole text file read into ioLines. Lets display the text in a message box. MsgBox(ioLines) Now we are going to close the file. ioFile.close Now that we are done reading a file. Lets do the else statement of the if File.Exists statement. The way this code is going to be set-up is if the file exists the program reads it. If it doesn't exist it writes a file. ElseDim ioFile as new StreamWriter("TextFile.txt") We now have a file open for writting. Lets write two lines to it. ioFile.WriteLine("Hi There")ioFile.WriteLine("User") So we have some text in the file now. Lets close the file. ioFile.Close We are done with reading/writting files so lets end the if statement End If That is it for that button. Now lets move onto deleteing files. Go back to form view and double click on the second button. In the code add these lines. If File.Exists("TextFile.txt")File.Delete("TextFile.txt")elsemsgbox("File doesn't exist")end if All this code does is check for the file then if it exists deletes it. If it doesn't exist then it tells the user that it doesn't exist. Thats it for this tutorial. Thanks, Rich
  12. Some software is free because the devloper doesn't want to sell it. They just want to give it away for people that don't have the money to go out and buy a retail version of some software.Other software is free because the devloper doesn't have the money for advertising, web hosting, making cds, worring about shipping. Or just don't want to deal with e-commerence.The last group of free software devlopers are people that just program for fun. These devlopers give there software away to help the online community.There is one last group of free software devlopers. The kind that do put spyware, adware, and viruses in there software. They devlop a program that everyone will like then add in all the spyware, adware, and viruses just to torment people.
  13. I have played around with DARKbasic and Blitz3D. Blitz3D seems to be easier to use and more powerful. I didn't like DARKbasic that much because of the interface. This was a while ago so the interface might have changed. I say you go with Blitz3D.
  14. Site Address: CyberWarfare.astahost.com Theme: A Hacking Game Me and Another person is devloping. Active: Yes/No You can go there but there is nothing about the game yet. Added - m^e
  15. I just installed the mambo CMS and I try to edit the configuration file but it say "Unwriteable". How do make it writeable? It also says when I go in template install media/ Unwriteable administrator/templates/ Unwriteable templates/ Unwriteable images/stories/ UnwriteableWhat do I have to do?
×
×
  • 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.