ZLIB is the way to go if you're programming with PHP. I use the gzinflate() and gzdeflate() calls all the time in combination with base64_encode() and base64_decode().
ie: $this = base64_encode(gzdeflate($this));
$this is now a nicely gz packed string that can be stuffed to the db without worring about calling addslashes or anything, and it's binary safe, too.
And if you want to execute a string of PHP code, it's: eval(base64_decode(gzinflate($this)));
(just make sure there are no <? tags)
I zip, then encode base64, to stuff in db and remove from db with inflate. It works out to cost about as much as a print or echo statement, or at least it seems that way to me.
As long as I'm under.05 seconds to execute, I'm happy.:)
Much of my code is compartmentalized in MySQL site-section tables, to let me add extra security stuff in there, and other things (like documentation).
I have found speed increases by using this approach of over 600%. Gzip is cool.
Ah, but the RIAA don't want informed shoppers, because that would mean that Indies would actually become a new, global competitor with the power of the people behind it, instead of just cash.
A) I am getting this document and all the comments here and putting it aside as my defense if I'm ever accused of P2P downloading of copyright material.
As soon as they said, "This joint helps pay for terrorism", I knew they were full of shit on everything. As for why it's not played out as much, I'm sure one of the press agents for Bush leaned over and said, "maybe we should let go of this foolish idea about the cash waterfall of dope flowing only to terrorism; I mean, sir... lots of dope is made by good upstanding Americans who just want to relax after a hard day of ass kissing! Plus, you lost a point in the polls every time you espoused this dopey dogma, and every time you played up on the evils "out there", you gained a point."
It's like pac man, I tell you! That's the game of politics...
... is get the address info of all the child porn hosts and do police raids on them nonstop until it's shut down for good. Then we can tell the RIAA that there are illegal mp3s on those machines! Man watch the child porn disappear!!!!
But the tricky thing is separating the baby from the bathwater, if you catch my meaning. Some sites are hosted on IP blocks that share with kiddie-pron sites. I for one, would like to be aware if my ISP was allowing this kind of hosting going on and I would want to stop it.
I'm all for the blue ribbon campaign, but I'm certain it doesn't protect kiddie porn dealers (scum).
Fining a poor single mother $2000 USD, sets a pretty good example for the rest of us heathens, right? Wrong. It just makes me angry.
What a terrible thing for such a big company to do!
I think we should all boycott any band affiliated with the RIAA until the RIAA agrees to pay the child's way through the college of her choice. A nice set of CDs from her favourite artists would be an added touch, too.
She's poor and they're picking on her!
The RIAA is just a nasty group of miscreants that I would love to see vanish from history as a failed example of another misuse of economic power.
Yeah, but what happens when it's installed? What kind of maintenance does it require?
Can Linux be a "fire and forget" system, like windows is SUPPOSED to be? That was my question, and I think it's a valid one.
The only computer topics that I'm super ignorant about are Linux and AMD. That's because for the longest time, I wouldn't take my head out of PHP info, and MySQL db tweaking. Since about 1996, I've been working on hobby gaming, which takes up 95% of my waking time.
Running Linux is one of these things I was hoping to do sometime, but I've never put aside enough time to actually commit to that kind of relationship. Every detail about Linux makes me, the average Windoze user, feel overwhelmed, and confused.
Maybe I could go buy an O'reilly book about it, but still... Windows is easy enough to figure out without having to study it. Is Linux the same way, or am I going to find myself sitting around my apartment staring at a blank screen after five hours of trying to get the thing started?
It's a real concern for me, and that specifically is what has kept me from running Linux for so long.
The thing I like about Mac, is that it's a total system. It has that whole package feel about it, that is quite attractive to me. It seems quite simple. The last time I used a Mac, it just made me feel like computers were easy, even just doing photoshop stuff on it, and web design. All the programs worked without crashing and the time involved was time well spent.
Forgive my possible ignorance, but what I want to know, is when will we get a version of Linux that installs from a cd? Lindows?
I'm a PC guy by default, not by choice. My use of windows is solely for the convenience for setting it up to work with my hardware; and it's not as convenient as Mac, I'm told. Mac seems to have their game together more and more, in my estimations, and since games like Doom 3 will run pretty nicely on a beefed up G5, I'm thinking G5 right now as my next computer. The computer I own currently has this nasty cold, where it sounds like it's been smoking for fifteen years, and it's buzzing on and off, this irritating loud hum-noise.
So my point is, it's time for me to get a new system, and while I have always wanted to run Linux, I don't have the patience to learn all the commands to get it set up, and I'm not into the sheer difficulty that appears to be the whole Linux path to righteousness. I would like to run Linux, but I haven't got the patience for it, I'm afraid.
Mac, has hardly any viruses at all, and the ones that do exist were on MS products. To me, this spells a relief! Is there any company building systems with Linux that are low-maintenance?
Not possible. It's a mod for Doom 3, so it makes sense to have the name Doom in the title; I don't think it's an infringement, unless we were going to try and sell it. We're not. It's free.
We're doing a Doom 3 total conversion because of things like this. They blamed doom for columbine, so that's what we've titled our mod: Doom for Columbine.
I hope you all love it when we release this sucker, but only time will tell what the dumbasses around the globe think about it. I'm guessing lynch mob...:)
I know someone who did this approach! They knew all the students and they simply gave them the marks they deserved, not the marks they earned or didn't earn. But that would require knowing your students, and sadly most today have strayed from the Socrates philosophy of teaching, to actually tap into the minds and engage the student. This is teaching.
The other method, to focus on results and on statistics, is far cry from teaching. There is in fact, usually, no teaching in this other method, just impassionate regurgitation in a swift manner.
I tend to disagree. By eliminating the time it takes to grade papers, professors have many more hours to spend with students *doing* the humanizing. I'm a teacher, and any teacher worth their salt will know if the machine is wrong, because they'll know their students, and what each one deserves (without even reading the damn papers they at least know what to expect, so if the machine is off, they will know). Now for higher level papers, such as university level papers, the machines should be only used as a guide, like comment moderation at slashdot. Not all the moderation is in fact, correct, and I'm sure that profs will also know that the same is true with these devices.
Re:This shows how geeky Im am...
on
Goodbye, Galileo
·
· Score: 1
Science SPENDS money. Sports spend and make it.
Maybe if COMPANIES would spend money on science more than they do, this wouldn't be the case. I guess that's the difference between football coaches and nerdy science professors... when footballers ask for cash, they'd better get it or it's time for punishment!!
The governments in question have the freedom to their own tyranny, under the philosophy of the forefathers of the USA. The USA fights against tyranny, but the true meaning of freedom isn't "freedom to" or "freedom from"; it's anarchy in it's finest form... to have anarchy in a state where it appears as if none exists.
Governments under socialist principles can and do own companies that operate at a loss to serve a better purpose. Hydro is one, even in many friendly states. The idea is that if software is a commodity, it is this commodity that ought be accessible to the public at large. It's about time that government started to incorporate computer technology in it's fold, like it would power and water technology. The freedom to create your own software under these umbrellas would be a better notion, as well.
We all know that operating systems can go on without major viral attacks and huge bugs causing havoc in the world. Linux. Mac.
So you tell me then, why is it that MS has one worldwide catastrophe every two months? It's because it's profitable for companies like Symantec and McAfee and the like to sell "protection" from the miscreants who would turn systems off if they could. That actual profit-cycle is set in a kind of catch 22.
That is the catch 22 that is going to bite Bill Gates in the arse.
I have to first take offense to Microsoft's philosophy that if it's not broken, fix it and charge more for it... and if it's broken, ignore it until something terrible happens.
That said, this latest call that it's unfair for countries to divert the giant cash waterfall from MS, I find the notion preposterous. Similar arguments have been used by MS lawyers for years now to defend against accusations of shenanigans. The point being, that free market is the underlying theme and MS can't cry about the free market deciding they are too greedy, and the demand can be met on less expensive systems that don't cause massive havoc every time some child gets a hold of their latest gaping hole.
Amphibian cars have sunk before on several occasions. What's stopping this one? And what happens when the car rusts out? I'm guessing they have compensated for water usage, but I'm of the school that believes that boats are designed to be boats and cars are designed to be cars. Combining the two isn't going to make for a top-quality full-use vehicle. And plus...
How many of you own boats? After even one season, they smell like mildew. You can use spray-nine to clean it, but it's still a boat smell, which is wonderful for a weekend or a couple weeks here and there, but in all honesty, do you want your car smelling like that? I can see some guy on a date...
Stud: "Do you like my James Bond super-car? It goes 100mph on land and 30 in the water!"
Date (pinching nose): "It smells like a zoo. Can I go home now?"
It's called TXT... and I think I like it. PHP can parse it quick so if you need to work from home and still be somewhat authenticated (secure pipe optional). You can do a l/p over a PHP site and do work in the backend, using PHP as a tool to possibly replace Office. Things go on the DB unformatted in their simplest form, and things come off however the CSS decides at the time of viewing. A good PHP designer could make something that would simulate anything Office does, IMHO.
Purge and backup occurs on the admin's schedule, not when the next virus takes hold of the network and the sales guys scramble for shelter from the giant PHB's shitstorm.
Plus you know your data is safe, and you can share it with whomever you want. Want to send a quote to your buddy from X company? Shoot him a URL with a customer password. Simple. He could even "sign off" on it. No viruses in the db because it's text.
The company I used to do part time work for lost their whole customer databases, from all their sales guys, because it was an unogranized client-only slugfest, designed by the secretary who moved to Calgary a couple years ago.
Big fat client with all the data in files on each respective machines. There was an option for sync, but did they use it? No. Too much effort!!!
They figured if each sales person kept their own customer contacts on their own machine, it would be a brilliant way to save money (from implementing it the *right* way). They were all instructed (by memo) to backup. WTF does that mean to a salesguy? It means... be careful.
You'd be surprised how many companies face this kind of thing every time there is another round of MS upgrades (aka wormfest).
Well, you could say, that's why I polished my resume and jumped ship!
What if it's wrong? What if you really paid for the software and someone *else* cracked it and passed it around?
Some of the appz/games in stores get cracked and put back on shelves. It happens all the time. And how many of you keep your sales receipt, box or even CD? I have software running that is paid for but I don't have evidence that I bought some of it; I still have a right to run it.
The problem is that while this monitoring is a good idea in theory, there are too many variables that would trigger reasonable doubt in court. This would tie up a court for quite some time with possibly unreliable evidence garnered as reasonable.
ERRATA
/.
eval(base64_decode(gzinflate($this)));
is actually:
eval(gzinflate(base64_decode($this)));
Sorry about that. Future note to self: don't drink and
ie: $this = base64_encode(gzdeflate($this));
$this is now a nicely gz packed string that can be stuffed to the db without worring about calling addslashes or anything, and it's binary safe, too.
And if you want to execute a string of PHP code, it's:
eval(base64_decode(gzinflate($this)));
(just make sure there are no <? tags)
I zip, then encode base64, to stuff in db and remove from db with inflate. It works out to cost about as much as a print or echo statement, or at least it seems that way to me.
As long as I'm under .05 seconds to execute, I'm happy. :)
Much of my code is compartmentalized in MySQL site-section tables, to let me add extra security stuff in there, and other things (like documentation).
I have found speed increases by using this approach of over 600%. Gzip is cool.
Ah, but the RIAA don't want informed shoppers, because that would mean that Indies would actually become a new, global competitor with the power of the people behind it, instead of just cash.
A) I am getting this document and all the comments here and putting it aside as my defense if I'm ever accused of P2P downloading of copyright material.
B) Let's just face it, it's the new radio.
C) I'll countersue for obstruction of justice.
China and spam make strange bedfellows.
About the horsemen, I wanted to address this.
As soon as they said, "This joint helps pay for terrorism", I knew they were full of shit on everything. As for why it's not played out as much, I'm sure one of the press agents for Bush leaned over and said, "maybe we should let go of this foolish idea about the cash waterfall of dope flowing only to terrorism; I mean, sir... lots of dope is made by good upstanding Americans who just want to relax after a hard day of ass kissing! Plus, you lost a point in the polls every time you espoused this dopey dogma, and every time you played up on the evils "out there", you gained a point."
It's like pac man, I tell you! That's the game of politics...
I wonder who the ghosts are.
... is get the address info of all the child porn hosts and do police raids on them nonstop until it's shut down for good. Then we can tell the RIAA that there are illegal mp3s on those machines! Man watch the child porn disappear!!!!
But the tricky thing is separating the baby from the bathwater, if you catch my meaning. Some sites are hosted on IP blocks that share with kiddie-pron sites. I for one, would like to be aware if my ISP was allowing this kind of hosting going on and I would want to stop it.
I'm all for the blue ribbon campaign, but I'm certain it doesn't protect kiddie porn dealers (scum).
Fining a poor single mother $2000 USD, sets a pretty good example for the rest of us heathens, right? Wrong. It just makes me angry.
What a terrible thing for such a big company to do!
I think we should all boycott any band affiliated with the RIAA until the RIAA agrees to pay the child's way through the college of her choice. A nice set of CDs from her favourite artists would be an added touch, too.
She's poor and they're picking on her!
The RIAA is just a nasty group of miscreants that I would love to see vanish from history as a failed example of another misuse of economic power.
So you're suggesting that innovative thinkers today, not only have to invent something useful, but they have to add legal defenses to it?
Makes sense to me. Now if we could just uninvent big companies!
Yeah, but what happens when it's installed? What kind of maintenance does it require?
Can Linux be a "fire and forget" system, like windows is SUPPOSED to be? That was my question, and I think it's a valid one.
The only computer topics that I'm super ignorant about are Linux and AMD. That's because for the longest time, I wouldn't take my head out of PHP info, and MySQL db tweaking. Since about 1996, I've been working on hobby gaming, which takes up 95% of my waking time.
Running Linux is one of these things I was hoping to do sometime, but I've never put aside enough time to actually commit to that kind of relationship. Every detail about Linux makes me, the average Windoze user, feel overwhelmed, and confused.
Maybe I could go buy an O'reilly book about it, but still... Windows is easy enough to figure out without having to study it. Is Linux the same way, or am I going to find myself sitting around my apartment staring at a blank screen after five hours of trying to get the thing started?
It's a real concern for me, and that specifically is what has kept me from running Linux for so long.
The thing I like about Mac, is that it's a total system. It has that whole package feel about it, that is quite attractive to me. It seems quite simple. The last time I used a Mac, it just made me feel like computers were easy, even just doing photoshop stuff on it, and web design. All the programs worked without crashing and the time involved was time well spent.
Demographically, maybe I'm just not a Linux user.
Forgive my possible ignorance, but what I want to know, is when will we get a version of Linux that installs from a cd? Lindows?
:)
I'm a PC guy by default, not by choice. My use of windows is solely for the convenience for setting it up to work with my hardware; and it's not as convenient as Mac, I'm told. Mac seems to have their game together more and more, in my estimations, and since games like Doom 3 will run pretty nicely on a beefed up G5, I'm thinking G5 right now as my next computer. The computer I own currently has this nasty cold, where it sounds like it's been smoking for fifteen years, and it's buzzing on and off, this irritating loud hum-noise.
So my point is, it's time for me to get a new system, and while I have always wanted to run Linux, I don't have the patience to learn all the commands to get it set up, and I'm not into the sheer difficulty that appears to be the whole Linux path to righteousness. I would like to run Linux, but I haven't got the patience for it, I'm afraid.
Mac, has hardly any viruses at all, and the ones that do exist were on MS products. To me, this spells a relief! Is there any company building systems with Linux that are low-maintenance?
URLs please!
Not possible. It's a mod for Doom 3, so it makes sense to have the name Doom in the title; I don't think it's an infringement, unless we were going to try and sell it. We're not. It's free.
I hope you all love it when we release this sucker, but only time will tell what the dumbasses around the globe think about it. I'm guessing lynch mob... :)
More info about Doom for Columbine: http://bowling.moddb.com
http://executebusiness.com
I know someone who did this approach! They knew all the students and they simply gave them the marks they deserved, not the marks they earned or didn't earn. But that would require knowing your students, and sadly most today have strayed from the Socrates philosophy of teaching, to actually tap into the minds and engage the student. This is teaching.
The other method, to focus on results and on statistics, is far cry from teaching. There is in fact, usually, no teaching in this other method, just impassionate regurgitation in a swift manner.
I tend to disagree. By eliminating the time it takes to grade papers, professors have many more hours to spend with students *doing* the humanizing. I'm a teacher, and any teacher worth their salt will know if the machine is wrong, because they'll know their students, and what each one deserves (without even reading the damn papers they at least know what to expect, so if the machine is off, they will know). Now for higher level papers, such as university level papers, the machines should be only used as a guide, like comment moderation at slashdot. Not all the moderation is in fact, correct, and I'm sure that profs will also know that the same is true with these devices.
Science SPENDS money. Sports spend and make it.
Maybe if COMPANIES would spend money on science more than they do, this wouldn't be the case. I guess that's the difference between football coaches and nerdy science professors... when footballers ask for cash, they'd better get it or it's time for punishment!!
The governments in question have the freedom to their own tyranny, under the philosophy of the forefathers of the USA. The USA fights against tyranny, but the true meaning of freedom isn't "freedom to" or "freedom from"; it's anarchy in it's finest form... to have anarchy in a state where it appears as if none exists.
Governments under socialist principles can and do own companies that operate at a loss to serve a better purpose. Hydro is one, even in many friendly states. The idea is that if software is a commodity, it is this commodity that ought be accessible to the public at large. It's about time that government started to incorporate computer technology in it's fold, like it would power and water technology. The freedom to create your own software under these umbrellas would be a better notion, as well.
We all know that operating systems can go on without major viral attacks and huge bugs causing havoc in the world. Linux. Mac.
So you tell me then, why is it that MS has one worldwide catastrophe every two months? It's because it's profitable for companies like Symantec and McAfee and the like to sell "protection" from the miscreants who would turn systems off if they could. That actual profit-cycle is set in a kind of catch 22.
That is the catch 22 that is going to bite Bill Gates in the arse.
I have to first take offense to Microsoft's philosophy that if it's not broken, fix it and charge more for it... and if it's broken, ignore it until something terrible happens.
That said, this latest call that it's unfair for countries to divert the giant cash waterfall from MS, I find the notion preposterous. Similar arguments have been used by MS lawyers for years now to defend against accusations of shenanigans. The point being, that free market is the underlying theme and MS can't cry about the free market deciding they are too greedy, and the demand can be met on less expensive systems that don't cause massive havoc every time some child gets a hold of their latest gaping hole.
Pink Floyd would have a field day with this. Except in this case, the giant meat grinder would be an NT server from hell!
They want everyone on some sick file database so they can target them for future annihilation.
Anyone who falls for this is stupid. It's a trick. You'll wind up on some forgotten orbital platform mining dilithium!
Amphibian cars have sunk before on several occasions. What's stopping this one? And what happens when the car rusts out? I'm guessing they have compensated for water usage, but I'm of the school that believes that boats are designed to be boats and cars are designed to be cars. Combining the two isn't going to make for a top-quality full-use vehicle. And plus...
How many of you own boats? After even one season, they smell like mildew. You can use spray-nine to clean it, but it's still a boat smell, which is wonderful for a weekend or a couple weeks here and there, but in all honesty, do you want your car smelling like that? I can see some guy on a date...
Stud: "Do you like my James Bond super-car? It goes 100mph on land and 30 in the water!"
Date (pinching nose): "It smells like a zoo. Can I go home now?"
Mostly cold.
It's called TXT... and I think I like it. PHP can parse it quick so if you need to work from home and still be somewhat authenticated (secure pipe optional). You can do a l/p over a PHP site and do work in the backend, using PHP as a tool to possibly replace Office. Things go on the DB unformatted in their simplest form, and things come off however the CSS decides at the time of viewing. A good PHP designer could make something that would simulate anything Office does, IMHO.
Purge and backup occurs on the admin's schedule, not when the next virus takes hold of the network and the sales guys scramble for shelter from the giant PHB's shitstorm.
Plus you know your data is safe, and you can share it with whomever you want. Want to send a quote to your buddy from X company? Shoot him a URL with a customer password. Simple. He could even "sign off" on it. No viruses in the db because it's text.
The company I used to do part time work for lost their whole customer databases, from all their sales guys, because it was an unogranized client-only slugfest, designed by the secretary who moved to Calgary a couple years ago.
Big fat client with all the data in files on each respective machines. There was an option for sync, but did they use it? No. Too much effort!!!
They figured if each sales person kept their own customer contacts on their own machine, it would be a brilliant way to save money (from implementing it the *right* way). They were all instructed (by memo) to backup. WTF does that mean to a salesguy? It means... be careful.
You'd be surprised how many companies face this kind of thing every time there is another round of MS upgrades (aka wormfest).
Well, you could say, that's why I polished my resume and jumped ship!
This is a change from the Kevin Mitnick days when ppl would be incarcerated for even *thinking* about cracking a gov system.
Mad props to Georgia for being cool about this.
What if it's wrong? What if you really paid for the software and someone *else* cracked it and passed it around?
Some of the appz/games in stores get cracked and put back on shelves. It happens all the time. And how many of you keep your sales receipt, box or even CD? I have software running that is paid for but I don't have evidence that I bought some of it; I still have a right to run it.
The problem is that while this monitoring is a good idea in theory, there are too many variables that would trigger reasonable doubt in court. This would tie up a court for quite some time with possibly unreliable evidence garnered as reasonable.
Scottish cops are just plain smarter than your average American cop. It's not the system, it's the users.