-
Content Count
399 -
Joined
-
Last visited
Everything posted by ghostrider
-
You have to move curlen into bl because the bx register is 16-bits and curlen is a byte, meaning it is 8 bits. You can't move something bigger or smaller into a register without using a special instruction, which i forget at the moment. Hope this helps.
-
No its either<script language="php"></script><?php php?>or <? ?>
-
Do you have your <?PHP and PHP?> tags?
-
Hello all. I've been programming in Assembly for about 4 years now but I still have yes to fully understand protected mode. I've read a lot of tutorials on it and even the intel docs on it and read a lot of examples too, but I still have a couple questions I need to get answered in order for me to start using it. My first question is, what is the purpose of overlapping segments? I've read in tutorials that you can overlap segments; does this mean that if you overlap a code segment and a data segment that the overlapped part then becomes a code and data segment? I think that is the answer but it sorta seems like it defeats the whole purpose of protected mode. Or perhaps this means that when you are using that segment it can be part of a segment but ignores the other segments descriptor?My second question is, the segment after the null segment in the GDT or LDT, is that considered segment zero or segment one?My third and final question is this, what is the point of an LDT. I know its the same as a GDT, but the GDT gives you 8192 segments to work with. I've read its used by applications, but how? I have yet to find an example that truly explains it.Thanks for your help.
-
I love the new look.
-
I hope to get Vista this year for my computer, it looks really sweet. I hope its better than XP is.
-
Foreign languages aren't a waste of time. In some careers talking in another language is necessary. Many police officers, firemen, and doctors speak other languages. Speaking another language can get you hirer pay, and even if you don't need another language to do your job learning one expands your horizons and your creativity, and also the amount of people you can interact and do business with. Foreign language is also an easy way to get the required credits to pass high school, and college credits which can save you money while you are in college. Also, colleges look on transcripts for people who challenge themselves, and learning another language is a challenging thing.
-
Hello and welcome to Xisto! This is the best hosting I've ever had in my entire life and I think you'll think so too. Make sure to keep your credits up; you get credits by making quality posts. There are lots of helpful and friendly people here too.
-
Emu8086 has a very nice and helpful tutorial included in the help section, along with a lot of other useful information. I'd suggest reading that first.
-
First-year Students At Medical School Were Receiving Their First
ghostrider replied to OpaQue's topic in General Discussion
That is hilarious!! Thanks for sharing that OpaQue! That made my day haha. -
Hi! Im Chris, or GhostRider from Wisconsin. Xisto is a great place to be; you'll find many helpful and nice people here. Getting your hosting is simple too, just remember to keep posting to keep your credits above zero. I've read some of your posts already and replied to them. You are very intelligent.
-
Interracial Relationships.. Problem Or Not A Problem?
ghostrider replied to qu33n.Bee//x's topic in Dating And Relationships
I went out with a black girl named Erikka in September. We didn't last too long, only 20 days, but it was still a good relationship. Race didn't affect our relationship at all, it was like the good relationships I've had with white girls. There was no akwardness at all for me and her. I think as long as people respect and love eachother for their inside and not what's on the outside any interracial relationship will work just fine. -
Have you tried putting your hard drive inside of another computer? If it works inside another computer than it might be a problem with your motherboard. If it doesn't then its a problem with your hard drive. It also could be a virus that is causing it to reboot over and over again. Have you tried reinstalling windows on that hard drive? If not, that is what I would try first.
-
Gmail's spam filter is hardly ineffective. Its built off of users marking mail as spam and then the engine searching for similar emails and addresses. I get about 200-300 spam messages a day. At most I'll see one or two spam messages in my Inbox. Its usually zero.
-
Trap17 And Server Bill? How do you guys manage...
ghostrider replied to MusicOnly's topic in General Discussion
Try looking at https://www.google.com/adsense/start/?gsessionid=SwO-hIVsePGb49Z-x-XWsw. Its a service where google places ads realvent to your page on your page and pays you for it. You need to be over 18 to use it. -
I have three New Year's Resolutions this year.1. Become a better programmer and become fluent with C/C++2. Set more reasonable goals for myself.3. Be a happier person.
-
Is Democracy Actually Dying? Break on Through
ghostrider replied to communitykat's topic in General Discussion
I don't know whether or not I think democracy is failing in America. I don't like the fact that we are still in Iraq, at first I thought that the war in Iraq was going to cause some real good in the war, like I believe a lot of people did when the war first started, but now my Dad and I share the same view; the war in Iraq is turning into another Vietnam. I've noticed a pattern with democracies, at first people are excited by the fact they are trully free and go and vote and give their opinions for important matters, and then slowly get lazier and expect the government to give them more and more. Perhaps America will be strong enough to overcome this. There hasn't been a democracy that has been as successful as us yet, and I hope it continues to be that way. By the way, if you keep posting as detailed as this post, you should have the necessary credits to get your hosting in just a couple days. -
An Indepth Look at the Winsock Control Part IV - New Module and the ID system Whats Covered in Part IV: I want to cover a lot in Part IV, considering I was grounded for a month and that really delayed the next part of my tutorial. There's going to be a lot covered. We're going to create the form where people talk to each other, create a module for data such as the name of the room and which people are in it, and also place a few more Winsock controls on the main form for UDP purposes. This is going to be a rather long part,because I'm introducing a lot of new stuff we haven't covered, and reviewing a lot too. If it gets too long I'm going to just make the original stuff planned for Part IV in Part V . If you haven't read parts I, II, and III, click here and read them. What you need for Part IV:I'm not going to post all properties and code from Part III. You caneither download the project from Part III in ZIP format, or go here and have the fun of entering all the properties and code yourself. The Module: Create a module in your project and call it modData. This module will be used for storing important data such as the name of the room, and the people in the room, along with their names and IDs.If that didn't make any sense to you at all, this is what I mean. When the user connects to the server, the server will assign them an ID, and send a message to all the other users in the room telling them that a new user has enterted the room and what there ID number is. Each Winsock control can only handle one connection. This means that we need to have an array of Winsock controls on the server. The Client only needs to have 2 Winsock controls, one for TCP communications, which is going to be used for actually sending the data, and one for UDP connections, which will be used for when a user enters and leaves the rooms. Just in case this is still somewhat confusing, I've drawn some pictures using Paint (or at least tried to draw) to aid with explaining this. This first picture shows how all the users in the chat room are connected to each other. http://forums.xisto.com/no_longer_exists/404.png The red line in these pictures are the connections between the computers. Notice that Clients 1-4 all connect to the server. In this case Client 1 would have an ID of 1, Client 2 would have an ID of two, client 3 has and ID of 3 and so on and so forth. With the system I am going to use, out chat room can support one server, and 255 clients per chat room. Advantages of connecting this way: The model I have showed you is the way many programs with one server and many clients connect. Direct X uses the same scheme for its networking, and I'm sure many other programs utilize it, too. The first reason is to save RAM and resources on the computer. TCP connections are NOT like UDP connections, they take up space and computing power. Also if every computer was connected to one another, every time someone said something, that computer would need to send that data to all the different computers and remember which computers it sent it to. That would mean un-neccessary work for us as programmers, and for the itself. The second reason is security. When every computer is connected to each other, they all know each other's IP addresses, which is a security risk. In our model, each client knows two IP addresses, its own IP address and the server's. How data is sent and the ID system: Our ID system is used for determining which computer sent what, and so that the other users in the room can figure out who said what. Below is the process of sending text. 1. User types the text and presses the send button 2. EasyChat takes the text and puts the User's ID in front of it. The ID will always be one byte long, and the server's ID is always equal to 0. 3. The data is sent to the server. 4. The server sends the data to all the other clients Below is another picture describing this process. Assume that Client 1 is the one sending the data, and Client 2 and Client 3 are receiving it. http://forums.xisto.com/no_longer_exists/404.png Why only 256 people can be in one room: The ID system uses only one byte. Each bite is comprised of 8 bits, each being either zero or one. If you look at binary (base 2), you will see this pattern 00000001 - 1 00000010 - 2 00000100 - 4 00001000 - 8 00010000 - 16 00100000 - 32 01000000 - 64 10000000 - 128 If you know your exponents, you will notice that each bit is an exponent of two. The first one is 2 the the zeroth power, the next is 2 to the first, the 3rd is 2 squared, the 4th is 2 cubed and so on. If you add up 2^7 + 2^6 + 2^5 ... + 2^0 you get 256 possible values for each byte. Finally some code: Put this code in modData Option Explicit 'Always have this in any module!Public IsServer As BooleanPublic RoomName As String * 64 'Room name can only be 64 characters long.Public TotalPeople As Byte 'While it may be easier for us to use'an integer, a byte saves on whole byte of memory, and saving'memory is always important.Type UserDataUserName As String * 16ID As Byte 'The byte values has 256 possible values, which is'perfect for the ID.IPAddress As String * 4 'When your not using the WinSock control,'an IP address is just 4 characters long; it has no periods.'This will save a HUGE amount of space if a lot of people are in'the room. Its also important to know how to use different types'not supported in Visual Basic, such as the word (2 bytes), and the'dword (double word - 4 bytes). In VB these are named the integer'and the long, respectively. THE IP ADDRESS FIELD IS ONLY FILLED'IN WHEN THE PROGRAM IS THE SERVER.Available As Boolean 'ONLY USED BY SERVER. This allows the server'to quickly find a new ID for a person who enters the room.End TypePublic Users(0 To 255) As UserData 'Our big array of usersThis code isn't that complex, it has a couple variables that tell the program what mode to run it in, and then the array for all the possible users that could be in our room. Notice that the array begins with zero. In languages other than VB, most of the time things start on zero instead of one. Go into Option1_Click() in frmStart and add this line just before End Sub IsServer = True Go into Option2_Click() in frmStart and add this line at the end of the sub IsServer = False These two options tell our program which way to operate. This part of my tutorial has gotten much longer than I expected, however it is very important that you understand ALL of this information before you go on to Part V. The rest of the stuff planned for Part IV will be finished in Part V, including the new forms. Part VI is going to cover some new concepts using a different type of networking technology, called the Windows Sockets. Part VII will be a lot of code to write, and hopefully by Part VIII we will have a working program. Happy Holidays
-
Hey-hey! D2891 Here! Intro to me RUN FOR YOUR LIVES
ghostrider replied to dan2891's topic in Introductions
Welcome to Xisto, Dan. You can create a website about almost anything, but why don't you try basing the theme of your website on something you really like. I created a sort of profile of all the computer programs I've writeen that are actually useful, and add content to it as much as I can. Good luck and happy coding. -
The bottomless bottle fo vodka sounds like a great idea . I hope bottomless drinks become a reality soon.
-
Before I talk about what subclassing actually is, I have to explain a little bit about how Windows works. Windows has the ability to send messages to eachother using the SendMessage() API function. These messages give the program important information, such as if the mouse cursor is on your program, whether it has focus or not, and when the little X on the title bar is clicked. Subclassing is another way that hackers can steal the password behind password boxes (the text boxes with **********). While I can't go into how to do that on Xisto without getting warned for exploiting stuff, subclassing is an important thing to learn for security purposes. Each program has a procedure that handles messages, for the majority of languages, like VB you don't have to write this code out. For Win32 assembly you do. Subclassing is the act of replacing the address of that procedure with the address of your procedure. Subclassing procedures follow this pattern: 1. Get the message by using the GetMessage() API function. 2. Check what the message is. 3. If you want to do something for it, write the code, and then exit the function 4. If your message doesn't relate to your procedure, return the message to the original message handler. If not your program can crash. One more important note about subclassing, make sure you return control to the original procedure before your program exits!!!! If not you can cause your system to crash and you will need to reboot. I'll be writing a tutorial on how to do this soon, using VB.
-
Unless you are really skilled with PHP, or have more than one person working with you, I wouldn't attempt to write a PHP shopping cart. I believe the Agora shopping cart is included somewhere in the cPanel. However here is what you would need to write and design.Make a database in mysql with all the items for sale, their prices, descriptions, and other stuff.Make a page that displays the items.Make a script that calculates price and delivers the order to you.Write a search engine specifically for seraching your MySQL database.Create a page for admins to change/add/remove itemsDebug it all and get all the modules to work perfectly :)You might also need a banner that displays the shopping cart of the user.A page that displays what the user is going to buy, or has already boughtA login system, and another mysql table for that dataAnd if you want to be really safe, use SSL.Hope this helps you.
-
That's crazy. With all the features in those cards, I'm suprised it doesn't cost more than 20 grand for the highest model.
-
Trading Warned Stories How did you get warned?
ghostrider replied to coolduck123456's topic in General Discussion
I got warned because my brother, Mike, decided it would be a good idea to ask someone the totally off topic question, "Did you see the movie Borat?". I happened to be in the bathroom at the time. I guess it is my fault, because I did leave my monitor on and didn't close the browser. I also got warned a while ago for posting a bunch of one lined posts.