I think that they must be factoring in this. The Wii is supposed to be geared toward those who don't usually buy games, of course, while still satisfying the needs of the people who do game.
However, it only logs people visiting gambling and porn sites, which I imagine would be quite a low number of people. I'm sure there's lots of other people wasting far more time browsing sites that aren't in this category. However I do find it kind of disturbing that people are looking at porn at work.
You can even forego the extra line of code. Here we go.
ExecWithParams("SELECT * FROM Users WHERE UserID = ? AND Password = ?",$UserID,$Password);
ExecWithParams is some function that you make yourself to prepare the statement for you, and which support any number of arguments after the initial SQL query depending on the number of parameters you have to fill in. Most languages support functions of this kind, and if they don't then just have one extra arguement that is an array, and define you array inline when executing the function.
But even if you make something more compelling than the ipod, it still doesn't help get all the ipod users over to your side because they can't bring their music that they bought on iTunes with them.
But I still have to have an MSN account, and go over the MSN network, which isn't much different than using Kopete (which is what I use) to access MSN.
How does not using GET stop anything, you can POST anything you want to a webserver just like you can GET anything you want from a webserver. Only using POST will make things a little harder, but it doesn't stop anything.
The simple solution is to use parameterized queries. I don't know why more books don't know why more books don't push this methodology, as it makes you program faster, easier to read, and also makes you invulnerable to SQL injection attacks.
I don't care about messenging services that are controlled by evil corporations. I'm care about my email address and services that go along with it being controlled by evil corporations. I don't use MSN hotmail or GMail for my email purposes. Unfortunately, I have to use MS's Service if I want to talk to others who use MS's service, so I use it. I don't have to use Hotmail or Gmail to communicate with people who choose to use those services, so I don't.
This really is kind of true. Most of the people I know use Google Groups as a way to find a lot of code. There's no point spending a hour trying to write something, or figure out some obscure feature of your programming language when you can just search Google Groups and find the answer in 5 minutes.
But like the original poster stated, it's not very obvious what it does from just looking at it, without comments stating that we are ignoring any errors produced. I mean, it's basically a hack so you don't have to write a try-catch with an empty catch statement. It's the PHP equivalent of VB's On Error GOTO Next. Why would you write code that's that unclear, when you have another way to write the code that makes it much more clear of what's actually going on? Why would you write code that just ignores errors, and does nothing about them, assuming your application won't crash later on because the error occured? I'm sure all the PHP gurus understand what it's for and all it's implications, but somebody new to the language might miss something like that when looking at code. I don't think that ignoring errors is something that good developers do.
I'm not sure how well licenses/copyright work on Javascript. Anything that you release in Javascript on the internet is basically open source. Sure you can tell people not to use it, but it's there for them to read, and use your ideas to make their own software. If they want to make something similar, they can change it just enough to look different, or they can take single functions, which aren't really that complicated, and change them just a little to look like their own code that was developed without even looking at the other code. That's why i don't get all these companies who place massive amounts of web application logic into Javascript. They are basically telling all their competitors exactly how their applications work.
I don't have a GMail account, and I don't feel like changing my email address (to one controlled by a corporation) just to get some flashy new interface. I've been screwed over too many times by companies offering great features, luring everyone to their email service, and then cutting down the features and making you pay for stuff you were previously getting for free. I use MSN exactly for the reason I said I did. Because everybody I know talks on MSN, and even those who have something else installed, also have MSN installed. I don't want to manager multiple accounts for messaging, so I just stick with what I know 100% of the people I talk to have.
Yes, I remember the days when everyone used wordstar, wordperfect, or whatever. Things weren't really any different. There was much less functionality in those formats, and computers were much slower, so things had to be easy to understand. But there was still problems with incompatibilities between processors. Just ask anybody who used AmiPro instead of wordperfect. Things didn't always convert that well.
And I can count on my two hands the number of people I've physically met that even know about Google Talk, and can count on one hand the number of people who actually use it. I don't even use it myself, and I use a lot of open source software (Linux, Firefox, OO.o,...). Why would I? There's nobody to talk to on there, and everybody I know who has GoogleTalk also has MSN installed, so it's not like I can't talk to them. Google has failed to make any impact that i've seen on the Messaging front. I can release a messanger too, but that doesn't mean that it will be popular. And the reason why MSN will continue to win out over google, is because MSN is included on almost every PC that ships from every factory.
Well, it could upwards compatible in that sense. I guess you could implement and ODF reader that would ignore any tags it didn't understand. I'm not sure how current programs are made, but I imagine that they use some kind of DTD to decide what is and what isn't allowed. The point is, is that you can't call a program ODF compliant unless the files it creates use only what is defined in the current standard. MS can't just make up their own tags, because everyone else would be "forced" to implement them. ODF is just a standard for document formatting, and doesn't define any software you want to use. If they come up with ODF version 2, and your software doesn't support it, then you are free to make your interpreter for your desired office suite, pay someone else to make it, nag your software company that sold you the software in the first place to make it or whateter. You can go ahead and make an ODF module for WordPerfect 5.1 if that's what you want to use to type your documents in.
The thing is, is that computers used to be about learning. Now a days you can use computers without knowing anything about how they work. Boot computer. Put in Game CD. Click Start. I actually had to learn how DOS handled memory (Conventional and Extended Memory, Loading TSRS) in order to get half the games working. I got ROTT working on a machine with 5 MB of Ram (yes 5). It said it required 8, but that's only because it didn't work on 4, and they didn't think there was anything between 4 and 8. Anyway, I had to learn a lot about computers in order to get half the stuff working. Today, things aren't like that. Granted you can get your games working better by tweaking the system, but you rarely have to tweak just to get the games working.
I've always had terrible study habits. My math teacher in high school stopped checking my homework because he knew I didn't do it, but couldn't really complain because I usually got above 90% on the tests. Pretty hard to justify sitting down and doing 1/2 an hour of repetitive problems every night when I already knew how to do the work. Anyway, I found the same in university. It's good I never really had to study, I probably would have failed. Classes that I probably should have studied in (mostly because the prof didn't know how to teach (I took a statistics course where half of the examples the prof showed us ended up being wrong)) I didn't do so well in. Overall, I ended up graduating Magna Cum Laude, which isn't so bad. (I don't mention my GPA, because My school had a GPA out of 10, and it doesn't make sense to anyone anyway)
No, you can't use undefined tags and still call your product ODF compliant. That's just asking for a company (MS most likely) to release MS word with a bunch of their own extensions, and maintain their monopoly because nobody else will be able to read the format. Granted, OASIS can make changes to the ODF format (ODF Version 2?) such that future programs can make use of new features we hadn't envisioned. There's no point in creating an open standard if you let everybody just change it however they like.
McDonald's is a lot worsse than it used to be. I remember 10 years ago things used to be a lot better. I think this is why McDonald's profits have been taking a dive lately. I'm more talking of the McDonald's of yesteryear, which brought them to world domination of fast food, not the McDonald's of today.
You mention MSN, but you fail to mention that MSN Messanger, is the defacto messaging standard. Some others use ICQ/AOL or Yahoo IM. They are all closed standards. There's an open standard called Jabber, yet I don't think it's managed to gain much of a foot hold. Your forget that when HTML was created, there was no Rainman (definitely, definitely no Rainman). There was no NetBEUI or AppleTalk when TCP/IP was created. I think that open standards are great, however, I'm not really aware of any real open standards that have won when proprietary standards have beat them to release. We still user MP3,MPG,JPG,GIF (which is finally patent free), DOC, and many other formats that are propriety, yet accepted as the defacto standard, because it's what people have always used.
I do live in Canada, but the food from McDonald's is still bad. But I eat there once in a while because it's fast, and I know what I'm getting. It's a consistent product. I mean, you could go to that no-name place down the road, but you never know, it could end up being worse than McDonald's.
The reason we prefer sequels is the same reason we "prefer" McDonald's. We know what we are getting. Sure it may not be the best, but there are no surprises, and we don't have to worry about the food being bad.
Exactly, Redhat WS is not equivalent to MS Windows XP. With Redhat you get a lot of stuff you don't get with Windows XP, like a full office suite, which from MS would cost more than $300.
I think that they must be factoring in this. The Wii is supposed to be geared toward those who don't usually buy games, of course, while still satisfying the needs of the people who do game.
However, it only logs people visiting gambling and porn sites, which I imagine would be quite a low number of people. I'm sure there's lots of other people wasting far more time browsing sites that aren't in this category. However I do find it kind of disturbing that people are looking at porn at work.
You can even forego the extra line of code. Here we go.
ExecWithParams("SELECT * FROM Users WHERE UserID = ? AND Password = ?",$UserID,$Password);
ExecWithParams is some function that you make yourself to prepare the statement for you, and which support any number of arguments after the initial SQL query depending on the number of parameters you have to fill in. Most languages support functions of this kind, and if they don't then just have one extra arguement that is an array, and define you array inline when executing the function.
Well, with XMLHTTPRequest, it isn't that hard to do a post with Javascript. A little hard than just constructing a url, but not that much harder.
But even if you make something more compelling than the ipod, it still doesn't help get all the ipod users over to your side because they can't bring their music that they bought on iTunes with them.
But I still have to have an MSN account, and go over the MSN network, which isn't much different than using Kopete (which is what I use) to access MSN.
How does not using GET stop anything, you can POST anything you want to a webserver just like you can GET anything you want from a webserver. Only using POST will make things a little harder, but it doesn't stop anything.
The simple solution is to use parameterized queries. I don't know why more books don't know why more books don't push this methodology, as it makes you program faster, easier to read, and also makes you invulnerable to SQL injection attacks.
I don't care about messenging services that are controlled by evil corporations. I'm care about my email address and services that go along with it being controlled by evil corporations. I don't use MSN hotmail or GMail for my email purposes. Unfortunately, I have to use MS's Service if I want to talk to others who use MS's service, so I use it. I don't have to use Hotmail or Gmail to communicate with people who choose to use those services, so I don't.
This really is kind of true. Most of the people I know use Google Groups as a way to find a lot of code. There's no point spending a hour trying to write something, or figure out some obscure feature of your programming language when you can just search Google Groups and find the answer in 5 minutes.
But like the original poster stated, it's not very obvious what it does from just looking at it, without comments stating that we are ignoring any errors produced. I mean, it's basically a hack so you don't have to write a try-catch with an empty catch statement. It's the PHP equivalent of VB's On Error GOTO Next. Why would you write code that's that unclear, when you have another way to write the code that makes it much more clear of what's actually going on? Why would you write code that just ignores errors, and does nothing about them, assuming your application won't crash later on because the error occured? I'm sure all the PHP gurus understand what it's for and all it's implications, but somebody new to the language might miss something like that when looking at code. I don't think that ignoring errors is something that good developers do.
I'm not sure how well licenses/copyright work on Javascript. Anything that you release in Javascript on the internet is basically open source. Sure you can tell people not to use it, but it's there for them to read, and use your ideas to make their own software. If they want to make something similar, they can change it just enough to look different, or they can take single functions, which aren't really that complicated, and change them just a little to look like their own code that was developed without even looking at the other code. That's why i don't get all these companies who place massive amounts of web application logic into Javascript. They are basically telling all their competitors exactly how their applications work.
I don't have a GMail account, and I don't feel like changing my email address (to one controlled by a corporation) just to get some flashy new interface. I've been screwed over too many times by companies offering great features, luring everyone to their email service, and then cutting down the features and making you pay for stuff you were previously getting for free. I use MSN exactly for the reason I said I did. Because everybody I know talks on MSN, and even those who have something else installed, also have MSN installed. I don't want to manager multiple accounts for messaging, so I just stick with what I know 100% of the people I talk to have.
Yes, I remember the days when everyone used wordstar, wordperfect, or whatever. Things weren't really any different. There was much less functionality in those formats, and computers were much slower, so things had to be easy to understand. But there was still problems with incompatibilities between processors. Just ask anybody who used AmiPro instead of wordperfect. Things didn't always convert that well.
And I can count on my two hands the number of people I've physically met that even know about Google Talk, and can count on one hand the number of people who actually use it. I don't even use it myself, and I use a lot of open source software (Linux, Firefox, OO.o,...). Why would I? There's nobody to talk to on there, and everybody I know who has GoogleTalk also has MSN installed, so it's not like I can't talk to them. Google has failed to make any impact that i've seen on the Messaging front. I can release a messanger too, but that doesn't mean that it will be popular. And the reason why MSN will continue to win out over google, is because MSN is included on almost every PC that ships from every factory.
Well, it could upwards compatible in that sense. I guess you could implement and ODF reader that would ignore any tags it didn't understand. I'm not sure how current programs are made, but I imagine that they use some kind of DTD to decide what is and what isn't allowed. The point is, is that you can't call a program ODF compliant unless the files it creates use only what is defined in the current standard. MS can't just make up their own tags, because everyone else would be "forced" to implement them. ODF is just a standard for document formatting, and doesn't define any software you want to use. If they come up with ODF version 2, and your software doesn't support it, then you are free to make your interpreter for your desired office suite, pay someone else to make it, nag your software company that sold you the software in the first place to make it or whateter. You can go ahead and make an ODF module for WordPerfect 5.1 if that's what you want to use to type your documents in.
The thing is, is that computers used to be about learning. Now a days you can use computers without knowing anything about how they work. Boot computer. Put in Game CD. Click Start. I actually had to learn how DOS handled memory (Conventional and Extended Memory, Loading TSRS) in order to get half the games working. I got ROTT working on a machine with 5 MB of Ram (yes 5). It said it required 8, but that's only because it didn't work on 4, and they didn't think there was anything between 4 and 8. Anyway, I had to learn a lot about computers in order to get half the stuff working. Today, things aren't like that. Granted you can get your games working better by tweaking the system, but you rarely have to tweak just to get the games working.
I've always had terrible study habits. My math teacher in high school stopped checking my homework because he knew I didn't do it, but couldn't really complain because I usually got above 90% on the tests. Pretty hard to justify sitting down and doing 1/2 an hour of repetitive problems every night when I already knew how to do the work. Anyway, I found the same in university. It's good I never really had to study, I probably would have failed. Classes that I probably should have studied in (mostly because the prof didn't know how to teach (I took a statistics course where half of the examples the prof showed us ended up being wrong)) I didn't do so well in. Overall, I ended up graduating Magna Cum Laude, which isn't so bad. (I don't mention my GPA, because My school had a GPA out of 10, and it doesn't make sense to anyone anyway)
No, you can't use undefined tags and still call your product ODF compliant. That's just asking for a company (MS most likely) to release MS word with a bunch of their own extensions, and maintain their monopoly because nobody else will be able to read the format. Granted, OASIS can make changes to the ODF format (ODF Version 2?) such that future programs can make use of new features we hadn't envisioned. There's no point in creating an open standard if you let everybody just change it however they like.
McDonald's is a lot worsse than it used to be. I remember 10 years ago things used to be a lot better. I think this is why McDonald's profits have been taking a dive lately. I'm more talking of the McDonald's of yesteryear, which brought them to world domination of fast food, not the McDonald's of today.
You mention MSN, but you fail to mention that MSN Messanger, is the defacto messaging standard. Some others use ICQ/AOL or Yahoo IM. They are all closed standards. There's an open standard called Jabber, yet I don't think it's managed to gain much of a foot hold. Your forget that when HTML was created, there was no Rainman (definitely, definitely no Rainman). There was no NetBEUI or AppleTalk when TCP/IP was created. I think that open standards are great, however, I'm not really aware of any real open standards that have won when proprietary standards have beat them to release. We still user MP3,MPG,JPG,GIF (which is finally patent free), DOC, and many other formats that are propriety, yet accepted as the defacto standard, because it's what people have always used.
I do live in Canada, but the food from McDonald's is still bad. But I eat there once in a while because it's fast, and I know what I'm getting. It's a consistent product. I mean, you could go to that no-name place down the road, but you never know, it could end up being worse than McDonald's.
The reason we prefer sequels is the same reason we "prefer" McDonald's. We know what we are getting. Sure it may not be the best, but there are no surprises, and we don't have to worry about the food being bad.
Exactly, Redhat WS is not equivalent to MS Windows XP. With Redhat you get a lot of stuff you don't get with Windows XP, like a full office suite, which from MS would cost more than $300.
What self respecting geek hasn't read Fermat's Enigma