-
Posts
14,780 -
Joined
-
Last visited
-
Days Won
43
Everything posted by .josh
-
apply concept to your code: <?php $cols = 0; echo "<table><tr>"; while ($cols < 20) { echo ($cols % 3 == 0)? "</tr><tr>" : ""; echo "<td>$cols</td>"; $cols++; } echo "</tr></table>"; ?>
-
[SOLVED] Adding Values Together Based On Another Row
.josh replied to jj20051's topic in PHP Coding Help
by removing the number_format -
renaming a file != compressing data. Thanks for playing.
-
[SOLVED] When inserting information from a form inserting time into DB.
.josh replied to Michdd's topic in PHP Coding Help
Need more info. -
I think something like that doesn't really fit in with a coding support community. We are, however, kind of sort of working on a full fledged freelance site. It's still in the pretty early stages and even though people are doing things here and there on it, I'm still unsure about how serious we are about doing it. Adding in features like buying/selling scripts might possibly be a viable option for that. As far as domain buying/selling...seems like that goes better with a hosting company/service, which would be yet another, separate thing. The owner of phpfreaks.com does happen to offer hosting and server support. They may or may not already do domain buying/selling (check out thewebfreaks and serverpowered). Maybe you'll find something along those lines there.
-
I'm telling you, I can see the future. I called it. Don't say I didn't warn you. Don't worry, when it happens, I won't rub it in.
-
I guess it depends on what computer games you're talking about. But even looking at top of the line resource devouring games.... What we've been talking about here is a shift in technology application policies and principles. But what technology is physically capable of doing has been evolving at an exponential rate every year since forever ago. That's a whole different timeline, moving along way faster than how long it will actually take to cut through the politics and propaganda and implement cloud computing. For example, I play World of Warcraft (It has its moments, but I'm not one of those diehard fanboys everybody likes to stereotype all WoW players as). Even by today's standards, I have way more processing power and memory than I really need to play the game (64 bit 2.6ghz quadcore 6gb ram). A good chunk of those "Minimum system requirements" on the back of the box is padding because game programmers know that other things (the OS at the very least) will be running on your computer at the same time as the game. If they told you their game only takes 500mb of Ram, people will happily try to play their game on computers that only have 500mb or Ram, and that's not going to be possible, because even if nothing else is running, your OS is running, and that takes Ram. Gaming companies cater to the stupid, just like everybody else. And anyways, It is not cloud computing's goal to reduce/remove Ram and processing power from your end. So that leaves us HD space to physically store the game client. Well the whole concept of server/client program for games caught on because it reduces the amount of information that has to be passed between two computers (bandwidth). Bandwidth was a very important issue way back in the day when I was just knee-high to a grasshopper. It's still important today, but nowhere near as much as then (the whole exponentially rising thing). Sure, there's still people on dial-up, but seriously, nobody really caters to them anymore. They accommodate if it doesn't cut into profits and that's about it. What I am saying is, my computer right here, right now, with my current internet connection, is capable of playing World of Warcraft with only a client the size of say...a browser, isntead of the like 10gb it is right now, should Blizzard decide to reprogram it that way. Physically capable of it. I'm sure my ISP would throw a fit if they saw an increased use of bandwidth, not because it can't handle it, but because I'd be cutting into their profits. And by cutting into their profits I mean they tell me I have unlimited 20mps internet access but they gamble on me only using a fraction of that and start charging multiple people for the same thing to maximize profits. But as things shift more towards cloud computing, you will see that my ISP will start shifting fees to the companies like Microsoft, Google, etc.. who are providing the cloud computing service, so It'll be all good. People want simplicity. They don't want to have to buy a million things from a million different places, install a million things from a million different places, pay a million different recurring fees to a million different places, when all those things are tied together (ISP, phone service, cable, internet service, hardware fees, game/phone/text subscription services, etc.. the list goes on and on). People want simplicity. They want to buy one thing and pay one recurring service fee to one place. Maybe throw out the initial hardware buying if you sign a contract, as an added bonus. People want simplicity, so companies will reshift where they get their money from in order to consolidate it down to what the people want. Service providers and software companies and even hardware companies will no longer sell to customers directly. They will sell to the cloud computing companies, who will in turn try to market their services and those products to you. We will eventually reach a point where the idea of "Getting on the computer to play games, surf the internet, etc.." or even just "Watch TV" or "Having phone service" will involve deciding which company to choose from: companyA or companyB (or C etc.. just using 2 for example sake). Standard packages will include I/O devices: - keybs/mice/joysticks to accommodate various interaction experiences. Keyb/mouse will probably standard, other peripherals optional for additional - monitor(s). One will probably be standard, maybe even 2. Can get different sizes, or get more for additional cost. Think of it as like having more than 1 computer or tv in your house right now, for diff people/rooms. - hand held device(s) that serve as household phone, music player, portable whatever-is-on-phones/pdas-these-days device. Will probably get one, maybe 2 standard. More for added cost per month or whatever. Services and connecting to the cloud network: Standard service package will include things like emailing, document editing/writing, etc.. (basically all the "free" shit that comes standard with OS's or "free" shit you get online like email or google app type things). Phone service. Television program service. You can opt for premium packages that include everything from HBO (the movie channel, not some obscure programming acronym), unlimited long distance calling (though this could possibly be part of the standard package), movies on demand, games on demand, streaming music on demand, etc.. blahblahblah. You will be able to make a profile to keep a list of favorite everythings for quick access. You will be able to make a public myspace type profile to share with friends and build a friends network for gaming, working, whatever. And soon, sooner than it will take to implement all this, the physical technology will far exceed to do all the less popular things online that SA brought up. At best, "standalone" computers will only be bought/used for very specific things (think specialized factory equipment), and will cost just enough money, so avg Joe user will probably be SoL, which is okay, because Avg Joe user does not make hollywood level animations etc.. by themselves on their home computer. Again, think from a masses perspective, not an individual perspective. And you will be assimilated.
-
Don't be jealous Anyways, no. I told you, I can see the future. It's my super power.
-
How can you be sure that you won't lose your file on your own HD? I'm sure you're more sure than the average Joe, but you aren't bulletproof. I think the reason you guys' mind on this matter is so "cloudy" (aHAHAHahAHAHHAa...erm) is because you're trying to argue/reason/logic with it as it applies to you personally, and not from a people in general perspective. [Most] Businesses have are a lot more disciplined about uptime and backup and security than the average Joe user, by a wide margin.
-
Well you won't have a choice, eventually. Microsoft, Google, and all those other companies are making things like this a reality. Music industries, Movie industries, and virtually all software companies also have a vested interest in a system like this, because it will very significantly reduce piracy. It will also significantly reduce viruses. Virtually everybody who's anybody with money will be throwing their resources into it. Most companies have tried their best to make software and hardware backwards compatible for like 99% of everything that's come out, so far. I guarantee you that this new phase of technology will change that trend of taking care of our senior silicons. People will start pulling the plug on backwards compatibility, citing virus and piracy protection. And then your standalone computers will be just like your grandpa*, sitting in the rocking chair providing endless hours of nostalgia and funny little tricks like "Grep your nose" or "Pull a quarter from your cache," but functionally being useless to the W[WW] at large. Until AI takes over. Then grandpa is gonna rip off his shirt and you'll see he's still ripped, and he's gonna tie a bandanna around his head and bust out with his .50 caliber machine gun and he's gonna kick ass and take names, because resistance is NOT futile. Go team grandpa! *Ahem: Grandpa is a multi-level metaphor. It not only represents future obsolete technology, but also all of us geeks who will desperately cling to it, while shaking angry fist at the shinies of tomorrow. It's one of those circle of life, getting older things.
-
I believe thorpe is working on something like that right now. Don't have an ETA or anything.
-
In addition to ratcateme's advice, small typo in your script that may or may not influence the outcome: You forgot the closing quote on this line: exec("java NsLookup $output");
-
Sum of diagonal elements in a prime numbers spiral
.josh replied to LovE-RicH's topic in PHP Coding Help
With a vague goal like that and lookup tables being acceptable, why not just run your code ahead of time, get the results, and then submit a program that simply echoes the string of results. WIN! -
I think instead of googling for a php help board and going through the trouble of registering so I could ask that sort of question (and then sitting around waiting for it to eventually be answered who knows when), I would have instead googled "php round up" and "php round down." Amazingly, someone else has already asked that question. Even more amazingly, lots of people have. Even more astoundingly amazing is that even the manual itself makes a guest appearance on the first page of the results. That's just crazy. X-Files crazy, even. To be fair though, I do admit I was thinking outside the box on that one, so I in no way whatsoever look down on you for not coming up with that game plan on your own. I certainly didn't. It must have been the aliens implanting thoughts into my head. Dammit, the one day I forget to wear my tinfoil hat....
-
Something gets its own forum based on how much traffic/demand there is for it. We aren't perfect, obviously, but that's the general rule of thumb we go by.
-
I'm telling you guys, I know what I'm talking about. I can see into the future. It's my super power.
-
Although...connect.php was being written to just fine for me. If it's not writing at all for you, check your file's permissions (CHMOD) make sure it has correct permissions. I did notice that the globals were not being written or else just being written as "Array" is that what you're talking about? It's because you are using double quotes instead of single in your string assignment to $stringData, so it's parsing them as variables. (sorry for triple post...I see that you're in the thread so editing posts makes it confusing)
-
okay I lied, I actually looked at the rest of the code. I believe your error is actually here: Header ('Location runsql.php'); forgot the : after Location.
-
First thing I notice is this: ?>"; should be this: ";?> edit: or actually, no ?> at all. Just ";
-
You can't do more than 1 query at a time through php....or is there a way to insert multiple rows with 1 query? I'm no sql expert, just wondering.
-
oops. I just looked in my db and there's actually 227,000 rows. But anyways, it only took a few seconds to execute when I first inserted. And you only have 10,000.
-
I did pretty much the exact same thing with about 27k lines (got an 'extended' English word list that I wanted to play around with), and it executed the script in like 2s.
-
Wouldn't it be better to ask on some car sound systems forum? I'm sure there's whole forums and websites dedicated to that sort of thing. Not saying you aren't allowed to ask here...just saying...this isn't a pimp-my-ride community...
-
Thank you for your information!!!! I know where to search and what to search, If you can't help me just leave and be busy in some other works... If you know where to search and what to search for, then why did you ask where to search and what to search for in your OP?