Jump to content
xisto Community

Hercco

Members
  • Content Count

    586
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Hercco

  1. Nice, 2048 MB of memory on a laptop! I usually ***** to people how little RAM they have, well can't do that to you.Sorry can't comment on the 3DMark results. I used to play around with a lot but haven't done so in years. By the way, how much this beast weights?
  2. Nice script. I like how you used http authentication, which IMO is the proper way of doing it. Cookies and sessions are a bit... Well you know , they work on some cases are not particularly secure.
  3. My understanding is that group policy editor and others just edit the registry, so essentially this is same as changing the registry. So you should be able to do this with home edition as well.Unfortunately I can't give any pointers since the only windows I have administrative access is 2000 pro. It has group policy editor but no options of QoS. I assume Win2000 doesn't have such functionality.
  4. This might be a dum question but does cjb.net domains work with DNS? So can you alter the name servers for the domain? See I thought they were just redirects. About your actual question, I don't think you should resort to redirects, it should be quite easy to configure the right www root for the web server.
  5. My understanding is that all SQL databases accept ALTER TABLE syntax but Oracle (and possibly others) have additional RENAME command. And I doubt no one would ask about UPDATE queries in a forum like this... I reckon that is one of the first things you learn when you get into relational databases. Which the threads title in itself is okay, database people just understand in comepletely different way.
  6. What Yordan posted was inserting a record to the database and I don't think Nightfox is after that. You are looking to change the tables structure right? Updating in database world usually means updating a single record which is done with SQL command beginning with UPDATE keyword or command or whatever. You can do all possible operations to a database with queries. Sometimes certain features might be limited (for example dropping databases might not be allowed from PHP scripts and so on) but usually you should be able to change the structure. Well provided that the user has create rights.Basically how you do it is use ALTER TABLE query. For example you can add column with query like this "ALTER TABLE tablename ADD column type". Naturally the syntax is exactly the same as for creating tables so you can everything here you can do there. You can drop columns with "ALTER TABLE tablename DROP COLUMN columnname". It is also possible to rename and change datatypes for columns, but unless I'm completely mistaken the syntax varies from DBMS to DBMS. MySQL uses CHANGE "ALTER TABLE tablename CHANGE oldname newname type". Notice that you can change the type here. To just change the type keep the name same. I have a vague memory that Oracle uses RENAME... I could be wrong though.I hope this answers your question.
  7. I have hard time understanding what HTML code would be so amazing that it needs to be encrypted. Surely it's a shame when a design that you've spent a lot of effort to do gets stolen but I don't think it can be prevented by encrypting the code. It's the ideas and the design that gets stolen not the code, although stealing the code makes the job possible for an idiot. Images on the other hand would be nice to get protected. People steal images from webpages contantly and shamelessly use them on their websites. And some don't even seem to care if they get caught. For example I've used my self made animated gifs as avatars on some discussion forums. Now the animations weren't anyhting amazing and I didn't really mind that much but some people fromt he very same forums copied and used my avatar. Without asking.
  8. These are computers/programming/designing forums, why would posting code be considered as spam. By the way did you write them yourself?They are quite neat, but I'm sorry to say that in my opinion the fact that they function only in Internet Explorer renders them practically useless. Anyways nice work.
  9. Haha! I found your image. It's located at http://forums.xisto.com/no_longer_exists/ while your code uses http://www.chapter-m.com/images/chapterm-big.jpg Curses of the copy-paste.
  10. It must the queries. Syntax-wise there's nothing wrong with them but it must be something. I recommend you print out errors generated by mysql_query, it might help to solve the issue or better yet do as the guys before proposed, run the queries directly in the database.You can run the queries easily from phpMyAdmin or from command line if you have SSH access. Or you could just create a small PHP test page that connect to the database and run the queries and print out errors. Just don't use any user input, just fixed values that will give some results. In this kind of situations debugging is usually the best option. Staring and analyzing your code tends to be quite hard. I know from experience that I tend to screw up with SQL and usually I create the query, run it on the database and then insert it into the code.
  11. MySQL might not be as feature rich as, say, Oracle, but performance wise it does really well. Considering this, it can be used in larger projects as well. I would say that a database acts on top of a hard drive. Well because it does. It basically adds the fast retrievability and organises the data. On a very basic level a text file is a database, it's just slow to search and poorly organised.
  12. A forum by its nature requires that the user inputted data, the posts that is, must be saved to somewhere in the server. There is just no way to do that with the technologies you listed as they do not run on the server and have access to the storage space there. XML would be a neat way to store the data but you must have some piece of software to write it to the server. You could though leave formatting it to a web page for the browsers to do.
  13. No it's not. It's a database management system, not a a query language. SQL is a general query language used in relational database systems and each database management system interprets in its own way; some more standard compliant some less. To put is short: SQL is a simple language, MySQL is complicated software.
  14. Yes, you can't really be sure how well the anti-virus software does the quaranteeing. The safest thing is to use another tool to make sure. When ever I've encountered a virus in my Windows system I usually go for several removal tools. That is unless I'm absolotely sure that the virus is trivial for my AV to remove. So I go and read what F-Secure and Symantec have say about the virus and download removal tools from both (if available) and run them. And then I can have good nights sleep.
  15. If you are using GPRS/EDGE data for the Internet connection then using Bluetooth to connect your cell to the computer is not the bottleneck. However, if you have access to 3G network (WCDMA) and the speed is above 800kbps then current Bluetooth devices are slower and become a bottleneck.
  16. So do you mean that by using a shorter phone cable from wall to the DSL router you get better quality connection? Essentially you'd be replacing 10m of twisted pair phone line with 10m of twisted pair ethernet.Well it might help. That is if the problem is in the 10m of the phone cable. Either the cable is bad quality or like you speculated it's interference which actually comes back to the bad cable quality. If the particular cable length is not of bad quality then 10m makes really no difference. The wireless thing then. Well the "coverage area" depends on the antenna. I'm sure you can find (or build!) antenna that radiates eaqually to every direction. Usually though the ones sold in stores and that come with the devices radiate circularly on a plane as usually the network devices are on a roughly same plane. You can notice the difference by turning your antenna to its side, pointing away from the other antenna: the signal quality gets reduced.
  17. Seriously I would have never thought I would see thread like this: trying to find a Linux version of a Windows editor. Oh dear...I think the reason why projects such as Notepad++ and other exitst is because Windows completely lacks a good built-in text editor which, if you think about it, is quite a weird thing... A text editor is an utility that you expect to find on any human usable computer.Seriously people learn to use Vi(m). At least the basics. You might find yourself in sitation where its the only alternative.
  18. I wouldn't buy a new card just for the DVI outlet. Only if your new monitor is an expensive super high quality thing and you'd want to get most out of it it. There are differences but like said before, they are quite small and depend a lot on the usage.
  19. Okay...The first one. If I encounter that kind of activity on a website I will most likely Ctrl-W it or turn NoScript for the site back to blocked mode. It just looks awful and annoying. Besides, the characters don't appear right unless you've got right charset meaning that the symbols appear just moving rectangles. The second one... Maybe I misunderstood something but isn't that like teasing the person wholes scrapbook you're flooding. And I'd guess doing something like that is against the rules of the service.So I don't think these scripts are very cool. Well to use at least. But on the other hand they show what is possible to do with Javascript and how to do these things maybe someone will learn something. And maybe then use the knowledge for something useful or truly cool.
  20. PHP is said to be more resource conservative than perl. The difference isn't nothing huge and for normal dynamic webpages it's insignificant. The approach is a bit different. Both a scripting languages yes, but PHP is almost completely geared towards dynamic webpages. PHP has many features built in that are very handy for dynamic webpage use. Then again Perl has been around so long that lot of these things are availble for it. For example the database issue you mentioned: PHP has indeed very nice database interface but I'm sure you can find bunch of those for perl. Same goes for XML parsing except that PHP XML parse is not so nice. Don't know about perl implementrations. My opinion is that you are not really missing that much. On the other hand learning PHP shouldn't be too hard for you as it has been inflence with Perl quite a lot. If you're familiar with C too that you practicalyl alredy know PHP
  21. I don't think color attribute for horizontal rule has never been in W3C recommendation. I could be wrong though.If you don't use HR for some specific trick, I'd recommend setting a consistent style for it using CSS. In normal pages HR should be used in a quite same matter and when you want to differ from it you can use special classes.
  22. Sounds quite interesting. I've toyed with the idea of doing my own "daily 5 minites" browser based game. Something like Planetarion or Dominion but probably of something completely different topics.I checked their forum for example games. Some look quite neat from the screenshots. And then some are utter crap, but what can you expect from this kind of system.Anyways if I happen to have time (i.e. no work) and it rains a lot at summer (very likely if I'm on holiday) I might give it a go. I've got couple of frieds who are quite MMORPG involved and I'm sure they'll be feeding me ideas once they hear about this.
  23. Your code syntax seems to be completely wrong. In PHP arguments to functions are give in normal parenthesis (). For example: mysql_connect(params). And like M_E said, [mysql_error] is not a PHP statement. [ ] are used to indicate elements of an array (e.g. myArray[1] would point to second element of an array called myArray). And M_E is right about <? php causing errors. If short tags is enabled, <? is considered beginning of PHP code block, thus the 'php' would be parsed as a program code token, or actually it would just cause parse error as its not a valid token. If shottags is not enabled, then the block will not be considered as PHP at all and won't go through the parser at all.
  24. The key idea in OSI model is that each layer can work without any regard of the lower layers. If the lower level addressign were used, the upper level wouldn't satisfy the condition. Ie. it would need lower layer information.If you used only physical layer addressing in the Internet the whole network would have to use same kind of devices or have very complicated address mapping systems. Either way it wouldn't just work. Using same kind of deviced for client access and backbone networks would be either inefficient or way too expensive. The mapping would basically be a mess and most likely very time consuming operation.Also IP address contains more information than the MAC address. Mac address is just a unique identifier, kind of like your social security number. No one has the same social security number as you. Well we don't know if there are NICs with same MAC addresses... There shouldn't be at least. IP on the other hand has routing information in it. It's kind of your home's address. The address is unique at least in your city, possibly entire world, but it also contains rough information how to get to you. What I'm talking about is subnetting, you get the subnet from the address and you've narrowed the possible locations hugely. In same way, if you want to get to someones real address you probably check the city, province and country first and first head there. IP addressing is a system that is possible to handle by distributing it to several locations. If we used just MAC addresses in the Internet we would have to have a huge central hub that would route all traffic. That just isn't possible with our technology and even if it were it wouldn't be sensible.
  25. I guess you mean setting certain elements visible and not on a mouse event. You do this by changing the value of CSS property display or visibility to either block (or other display mode, like inline) or none (for display) or visible or hidden (for visibility). Display and visibility work in a bit different ways. Element with visibility: hidden; takes it's space normally, it just isn't show. It is, well, invisible. Element with display: none; is treated as it didn't exist, so it doesn't take space. You can chenge the values of these properties with javascript. For example: document.getElementById( ID ).style.visibility="visible"; Where ID would be the unique id you have set for the element. I regularly use these functions: function show(item) { document.getElementById(item).style.display="block"; } function hide(item) { document.getElementById(item).style.display="none"; } Just call the function from OnClick and include the rigtt ID as parameter.
×
×
  • 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.