Daniel0
Staff Alumni-
Posts
11,885 -
Joined
-
Last visited
Everything posted by Daniel0
-
"1. Netbooks aren't the world" "Initially" implies they will focus on other markets later. Also: "2. Microsoft Can Shoot to Kill" This is just the author's own speculations. Besides, the author is contradicting himself. First he says that Google cannot touch Microsoft, next he says that Google is a "powerful competitor". Both cannot be true simultaneously. "3. Google Docs is the best they can do" In my opinion, Gmail doesn't even have any competition. That's a Google product. There is also Google Reader, Google Calendar and YouTube. It beats desktop based email clients and the other webmail systems. This argument is bullshit. Most of the things I do with my computer are web based. IM could easily be a web service instead of a desktop client. The majority of computer users don't need all the power that comes with their workstations. The only exceptions are gamers, programmers, and people doing heavy stuff with audio/video. Those groups are minorities, however. "4. Chrome isn't a "real" operating system" That's not true, and the author of that article doesn't know what an operating system is. The Chrome OS is built with the Linux kernel, which makes it just as much a "real" operating system as Ubuntu, Debian, Gentoo etc. One of the things they're going to do different is the window manager (which the author apparently thinks is called an "OS"). "5. Compatibility matters" Again, bullshit. A lot of hardware works out of the box with the Linux kernel. Moreover: Then there is software compatibility, but it's irrelevant in this matter because the Chrome OS is based on cloud computing and web based services.
-
I think the recommended method of installing PHP on IIS is using FastCGI. You can (for IIS7 at least) download a free rewriting module from Microsoft: http://www.iis.net/extensions/URLRewrite I don't have anything particular against IIS, but I find Apache easier to work with. Possibly because that's what I'm accustomed to.
-
You should take a look at: http://www.php.net/manual/en/migration5.php http://www.php.net/manual/en/migration51.php http://www.php.net/manual/en/migration52.php and possibly http://www.php.net/manual/en/migration53.php if you want to go to PHP 5.3.
-
Have a table like this: votes vote_id (primary key) user_id (foreign key referencing the voter to prevent double votes) blog_id (foreign key referencing the thing that's voted on) rating (an integer in the range of 1 to 5) So when the person with user id 10 votes on the blog post with id 31 and wants to give it 4 stars you do this (after checking they didn't already vote): INSERT INTO votes (user_id, blog_id, rating) VALUES (10, 31, 4); When you want to get the score and the number of voters for blog post id 31 you do like this: SELECT SUM(v.rating)/COUNT(*) AS score, COUNT(*) AS num_votes FROM votes AS v INNER JOIN blog AS b ON b.id = v.blog_id WHERE b.id = 31 GROUP BY b.id;
-
It could theoretically work. The problem is just that many people just have a title like "halp plz urgant" and dump 1000 lines of code (without code tags) and says it "doesn't work".
-
Yeah I found a picture of her: http://daniel0.net/pics/gothapotamus.jpg
-
[SOLVED] Undefined Index/Variable & Query was empty
Daniel0 replied to twilitegxa's topic in PHP Coding Help
Essentially you just need to ensure that the index exists before trying to read from it. If it's coming from something like $_POST then you can use isset, empty or array_key_exists (the two first being preferred over the last one). -
[SOLVED] Undefined Index/Variable & Query was empty
Daniel0 replied to twilitegxa's topic in PHP Coding Help
You're trying to access an undefined index in array, just like the error message says. You're not allowed to do that. The error message also tells you on what line and in what file it's occurring. -
I suppose you can use get_defined_vars with the instanceof operator. What are you really trying to do though? Doesn't sound like it will end up with a very well designed application.
-
And I still do not see how if a "properly designed" Singleton Registry meaning the coupling done within the Singleton Registry is loose coupling, all libraries stored within the Registry are cohesive, using the registry only for abstraction, would cause issues. When you put something in a registry, it's free for all to use and you cannot know which objects are going to use it, hence the inter-dependencies and coupling.
-
It depends on how large your integers are or how much precision you need on your floats.
-
Store them in a non-publicly accessible directory or create a session handler that stores in a database instead. http://en.wikipedia.org/wiki/Secure_Sockets_Layer http://en.wikipedia.org/wiki/HTTPS
-
You can also just use sprintf to get it in another formatting. Like sprintf('%d', $largeInteger);
-
They look pretty nice. If you can create a full set (possibly also beyond the scope of our current ones) we could probably look at replacing them.
-
No. Session data is stored on the server.
-
Then either he started late, he is really slow, or he is in some sort of obscure subfield of physics. What does the army have to do with any of this? A PhD is a research degree. If you don't want to do research, getting a PhD is pointless. Good luck getting a research position at even a half-decent university without a PhD. I also wouldn't want a lecturer who only had for instance a Bachelor's. However, as I said in another topic, being highly educated just for being highly educated is a waste of time and money.
-
It's been rumored for years, but now it's been confirmed: http://googleblog.blogspot.com/2009/07/introducing-google-chrome-os.html
-
What is there to "hack" in your code snippet? DOCUMENT_ROOT comes directly from the web server. Or am I not getting things here?
-
Can I have a copy of your thesis? I'd like to know what your research has shown.
-
[SOLVED] Firefox can't login to Forums
Daniel0 replied to D.seL's topic in PHPFreaks.com Website Feedback
I'm not sure how you would do that. It's possibly hard coded into SMF. I can't find any options in the admin panel at least. -
The $_POST array cannot contain null values unless you put them there manually. Even an empty field submitted via a form won't be null, but rather an empty string. Those two things aren't the same.
-
Heh... 2022. Who says we're still using browsers like we know them today by then?
-
According to Matt Cutts (an engineer on the Google search team), only dashes are used as separators by Google and underscores aren't. That's not to say you should change from underscores to dashes if things are working fine for you though.
-
I think it's perfectly okay to set minimum requirements for your users. Do you also complain if your 8-year-old computer doesn't run a modern PC game as well as a modern computer does? If you use software that was released eight years ago you shouldn't expect that you'll have an as good experience as you would have had with modern software. A company that doesn't want to upgrade from IE6 just has lazy sysadmins, and they can be lazy because people are letting them. Maybe when websites start breaking for their users they'll start doing their job.