Which is why my servers run with only trusted accounts and the db only listening locally. Yes the site currently is listening publicly, but only until I get finished migrating off the old server and only for one account from one IP.;)
Cripes, you people bitch yet wont take the time to go find the products that have been out for 2 years now to give you the "look" that you bitch is not available....
Actually I never said it wasn't available, I was asking why they decided on something that is not going to fit in with other home theater equipment.
Personally I do not like the coolermaster, I already know which case I will be using and oddly enough they have a reseller AND an OEM program so these guys could have just gone through them. And not only do they look really nice they are fanless.
When are they going to realize that if I am going to buy something meant to go into my home theater, it needs to fit in. That means is should be ~19" x 2-5" not some silly ass cube, it looks like a bookshelf unit.
I've really never gotten why people use something like Smarty
Personally I use Smarty because of the output caching, it's not the only reason, but it is the biggest.
And it just gets worse if one has to manage the output visually, such as alternating table row colors or something. How is this separating code from content?
It's not seperating code from content, it's seperating business logic from presentation logic. Just as an example directly relevant to your complaint.
Don't get me wrong, I'm not saying that everyone should use Smarty or any other template engine, but for me it works.
I can hand off all of my Smarty templates to an outside contractor, give them my docs and point them at the Smarty docs and be 100% positive that this firm can _never_ break the business logic, no matter how badly they screw up the templates.
As with anything else, use what works best for you and your project, but you should do your best to seperate the business logic from the presentation logic.
why is mod_perl so hard for hosts and mod_php so easy?
It's been a long time since I have used Perl for web dev, but isn't it a lot easier for someone writing crap code to kill an Apacge server with mod_perl than it would be with mod_php? I could be way off base and if I am I'll hear about it;)
heh, not only not a low enough threshold, I would have had to have been reading someones journal
Re:The Peoples' Hate Affair with Apple
on
Apple Quashes pBop
·
· Score: 2
umm, you do realize that I was giving the point of view of those who don't use a Mac and therefore don't like Apple, right?
I will also assume that you missed the part about my owning a PowerBook and that I only game on Windows because I already own the games...
If you walk into Best Buy, Circuit City and many small shops, you wont find any Apple software.
I did not say it was factual, but it is a common perception by the masses.
Re:The Peoples' Hate Affair with Apple
on
Apple Quashes pBop
·
· Score: 4, Interesting
I think the reasons that Apple takes a beating are:
1) People fear that which they do not understand.
2) The Mac doesn't have any software for it, it can't be any good.
3) You can't walk into just any store and buy/get help with an Apple product or software.
4) The percieved high price of Apple products.
Now, I could be way off, these are just my perceptions.
Personaly I felt the same way. Up until OS X, I never liked the pre Aqua UI, still don't.
I started watching OS X when it first came out, when OS X got strong (about 10.2) I decided it had matured enough. I just happened to be in the market for a portable, I bought a PowerBook when they first started shipping 1GHz. Never looked back.
There are still 2 things I do on my Windows box; Play games and my Finances. I already had my games for the PC and I don't want my Financials on a portable machine.
BTW: I NEVER thought I would see the word "duvet" used on Slasshdot;)
The problem is that these things are to be downloaded, a full CD in FLAC runs in the ~300M (please correct me if I'm wrong) range, you are going to burn a lot of money on bandwidth like that.
Well, how are you using Perl now? Are you coding mod_perl, using Mason, writing scripts that suck up template content from the file system and replacing tokens, putting HTML into your scripts...?
Without knowing how you work it's hard to give any decent advice.
I used to feel the same way, then one day out of boredom I started looking at Smarty, it was really odd at first, funky syntax (at the time, I don't even think about it anymore).
Then I started looking at what it can do for me. Granted I don't want some template thingy generating HTML for me, but things like date selects, selects in general.
Will generate Month Day Year drop downs that start in 2000 and end 2 years from now.
The biggest selling points for me were output caching and keeping the presentation and business seperate. But a lot of people don't think the extra overhead is worth it.
The best suggestion I can make is take a few pages out a current project of yours and redo them in one of the templating engines (not in your production tree;), you'll figure out withing a few hours if you like it or not.
Re:PHP in comparision to others
on
PHP 5 RC 1 released
·
· Score: 3, Informative
If you put a site together with a little planning and a properly setup cache and then use a template engine that supports output caching you can rival static pages depending on how often the page "needs" to hit the DB.
This really all depends on the sites content, an average ecommerce site probably only needs to hit the database once a day, slash on the other hand could cache the front page for non-logged in users for 5 minutes, which I believe they are doing now with perl.
Do yourself a favor and do not mix business and presentation...
Somewhere down the line you are going to have a person working on design that doesn't understand PHP and breaks something. Then you can either spend who knows how long to figure out what is broken or throw out their work and just roll back to what's under revision control (you use revision control, right?). Either way you wasted time. Or worst case, nobody notices the logic is broken and it makes it to production.
Go find a template engine that you like and use it. You'll be happy in the long run.
This is why I don't buy any longer. I lease and I get a car that includes service that lasts through the lease term.
I don't even want to image what it would cost to deal with a drivetrain issue on an all wheel drive "sports sedan".
Something craps out, I call, make an appointment and they fix it. Hell with my current car they will replace the wiper blades...
Lease is over, I walk, if you time things right you can switch when they are running all the nice $0 down leases.
I know, I know. You never own the car... Personally, I don't want to own it, I have one year left on my current lease and I'm already bored with the car. Too many little issues, if the instrument cluster has been replaced twice in 3 years, odds are good it's going to die again.
Fair enough. I was just saying that if the only reason you get DSL/Cable modem is to use VoIP you are probaby not saving any money, unless you make a lot of long distance calls.
If you have a cable modem and you decide that VoIP is better than *bell, it's all the better. Personally I haven't had a land line for over a year and last time I did have a land line the cheapest you could get your bill was ~$40
Pricing People think that VoIP is cheap compared to normal telephony. Average people spend around USD 200 per year on land line telephony. While VoIP might seam "free" you still have to pay around USD 300 for an ADSL connection.
If you are only getting a high speed internet connection to use VoIP, you deserve to part with your money. All of the people I know that use VoIP are doing so to avoid ugly long distance bills, if all you use the phone for is local calls to order pizza you really dont need VoIP.
Device type While it is technically feasible to install a VoIP client on a PC, it is not exactly the ideal device for a telephone. Also - remember that people usually have several phones in the house. To overcome this you would need VoIP "telephones" which look like a normal telephone. These are reletive expensive compared to normal phones, and requires a dedicated power supply.
Odd, sitting under my monitor stand and on top of a 5 port switch is this little box that I plug into my switch that I can plug any phone I want to into. Granted crappy phones do not work well, but I DO NOT need a special phone. Some people have actually piped the RJ11 out of their ATA186 into the house line effectively feeding the entire house.
Incoming calls In order to receive incoming calls you need to have you VoIP device turned on all the time and connected to the Internet.
See above.
Billing It would be nice if it was possible to make "free" VoIP calls. In most of the world however, it is the calling party who pays for the call. This means that a VoIP call terminated at a Spanish GSM phone will be charged backwards: The spanish GSM operator charges the VoIP "operator" for "terminating" the call, and the VoIP operator subsequently charges the VoIP "customer". The world has more than 1 billion GSM subscribers. In order to be able to call these you need the billing infrastructure in place even for VoIP. This requirement makes VoIP just as expensive to produce as traditional telephony.
Please follow the links provided in the original Story to the VoIP providers, this is not about using some free software you found on Freshmeat to talk to your friends.
Quality It is pretty hard to beat the delay characteristics of a normal landline phone! VoIP has severe delay problems on thin access lines such as ADSL. Usually OK for 2Mb/s and up.
I can not vouch for other providers, but on Vonage as long as you have ~95k up and no packet loss the quality is fine.
The next majer breakthrough for VoIP will be VoADSL. VoIP all the way to the customer premises. The interface to the customer however will be a normal POTS jack, full customer service and the associated billing!
Again I can not vouch for other providers, but Vonage provides online realtime usage stats, access to your voicemail from any web browser and you can actually call customer service and talk to a human when you have problems.
Sorry if I come of like a ass, but I have seen this same basic comment every time there is a VoIP story on slashdot and most of it is not true.
I have had Vonage service for roughly 2 years and the only time the quality sucked was when I was on Adelphia cable. I switched to DSL and it was fine, I am currently on Comcast/Attbi cable and it is fine.
So you don't think it's a good idea for Mr. Dick to name his daughter Anita?
;)
I laugh every time I hear the name Dick Trickle, how messed up were that guys parents.
Sincerely,
Bigus Dickus
Which is why my servers run with only trusted accounts and the db only listening locally. Yes the site currently is listening publicly, but only until I get finished migrating off the old server and only for one account from one IP. ;)
The problem is the errors should not make it out of development.
It's depressing how much crap gets spewed to the browser when you run a lot of PHP code at E_ALL and display errors.
In development:
error_reporting = E_ALL;
display_errors = On;
Inproduction:
error_reporting = E_ALL & ~E_NOTICE;
display_errors = Off;
log_errors = On;
The admin should be watching the logs and making sure that any errors are dealt with.
But to answer your question, no, they should not happen, but if one does and it happens to leak the DB password, you are fucked.
That has nothing to do with PHP.
That comes from an incompetent server admin.
Rule #1 for production PHP:
php.ini -> display_errors = Off
Actually I never said it wasn't available, I was asking why they decided on something that is not going to fit in with other home theater equipment.
Personally I do not like the coolermaster, I already know which case I will be using and oddly enough they have a reseller AND an OEM program so these guys could have just gone through them. And not only do they look really nice they are fanless.
Here's the link so you can stop bitching
When are they going to realize that if I am going to buy something meant to go into my home theater, it needs to fit in. That means is should be ~19" x 2-5" not some silly ass cube, it looks like a bookshelf unit.
You should really shop around...
InstantSSL sells 2 year certs for $89.
And they are trusted by the same 99.3% (who came up with that number) of browsers as Verisign.
You are looking in the wrong direction... Have a look over your shoulder at the players you can get for $199.
With the exception of the Rio @ 1.5G, the best you are going to do is 256M.
Still a ripoff?
Theay aren't looking to compete with their larger models, they are out to destroy the flash based market.
prefork
I want to do some more performance testing, but I don't have any spare hardware at the moment. I know I can get more out of the box though.
And how many releases of each have we gone through since June 2002?
PHP was at 4.1.2, it is currently at 4.3.4
Apache was at 2.0.39, it is currently at 2.0.49
I have a feeling there have been some significant changes over the past (almost) 2 years.
If I had a spare box around here I would do some testing. I have been using Apache2 and PHP4 exclusively for over a year and have seen no problems.
It's not seperating code from content, it's seperating business logic from presentation logic.
Just as an example directly relevant to your complaint.Don't get me wrong, I'm not saying that everyone should use Smarty or any other template engine, but for me it works.
I can hand off all of my Smarty templates to an outside contractor, give them my docs and point them at the Smarty docs and be 100% positive that this firm can _never_ break the business logic, no matter how badly they screw up the templates.
As with anything else, use what works best for you and your project, but you should do your best to seperate the business logic from the presentation logic. It's been a long time since I have used Perl for web dev, but isn't it a lot easier for someone writing crap code to kill an Apacge server with mod_perl than it would be with mod_php? I could be way off base and if I am I'll hear about it
heh, not only not a low enough threshold, I would have had to have been reading someones journal
umm, you do realize that I was giving the point of view of those who don't use a Mac and therefore don't like Apple, right?
I will also assume that you missed the part about my owning a PowerBook and that I only game on Windows because I already own the games...
If you walk into Best Buy, Circuit City and many small shops, you wont find any Apple software.
I did not say it was factual, but it is a common perception by the masses.
I think the reasons that Apple takes a beating are:
;)
1) People fear that which they do not understand.
2) The Mac doesn't have any software for it, it can't be any good.
3) You can't walk into just any store and buy/get help with an Apple product or software.
4) The percieved high price of Apple products.
Now, I could be way off, these are just my perceptions.
Personaly I felt the same way. Up until OS X, I never liked the pre Aqua UI, still don't.
I started watching OS X when it first came out, when OS X got strong (about 10.2) I decided it had matured enough. I just happened to be in the market for a portable, I bought a PowerBook when they first started shipping 1GHz. Never looked back.
There are still 2 things I do on my Windows box; Play games and my Finances. I already had my games for the PC and I don't want my Financials on a portable machine.
BTW: I NEVER thought I would see the word "duvet" used on Slasshdot
I'm sure they could use FLAC.
The problem is that these things are to be downloaded, a full CD in FLAC runs in the ~300M (please correct me if I'm wrong) range, you are going to burn a lot of money on bandwidth like that.
Have you read this book?
Is it worth ~$35?
Most of the PHP books are not worth owning, you can get great info from php.net docs.
The TOC looks like it might actually be worth purchasing, what did you think, is the content as good as the TOC makes it out to be?
Well, how are you using Perl now? Are you coding mod_perl, using Mason, writing scripts that suck up template content from the file system and replacing tokens, putting HTML into your scripts...?
Without knowing how you work it's hard to give any decent advice.
Then I started looking at what it can do for me. Granted I don't want some template thingy generating HTML for me, but things like date selects, selects in general.
My favorite has to be the date selects...Will generate Month Day Year drop downs that start in 2000 and end 2 years from now.
The biggest selling points for me were output caching and keeping the presentation and business seperate. But a lot of people don't think the extra overhead is worth it.
The best suggestion I can make is take a few pages out a current project of yours and redo them in one of the templating engines (not in your production tree
If you put a site together with a little planning and a properly setup cache and then use a template engine that supports output caching you can rival static pages depending on how often the page "needs" to hit the DB.
This really all depends on the sites content, an average ecommerce site probably only needs to hit the database once a day, slash on the other hand could cache the front page for non-logged in users for 5 minutes, which I believe they are doing now with perl.
As usual YMMV.
Do yourself a favor and do not mix business and presentation...
Somewhere down the line you are going to have a person working on design that doesn't understand PHP and breaks something. Then you can either spend who knows how long to figure out what is broken or throw out their work and just roll back to what's under revision control (you use revision control, right?). Either way you wasted time. Or worst case, nobody notices the logic is broken and it makes it to production.
Go find a template engine that you like and use it. You'll be happy in the long run.
Here's a couple to get you started.
PHPLib
Smarty
PayPal Sucks
;)
PayPal Warning
About PayPal
Google
That ougth to keep you busy for a few days
This is why I don't buy any longer. I lease and I get a car that includes service that lasts through the lease term.
I don't even want to image what it would cost to deal with a drivetrain issue on an all wheel drive "sports sedan".
Something craps out, I call, make an appointment and they fix it. Hell with my current car they will replace the wiper blades...
Lease is over, I walk, if you time things right you can switch when they are running all the nice $0 down leases.
I know, I know. You never own the car... Personally, I don't want to own it, I have one year left on my current lease and I'm already bored with the car. Too many little issues, if the instrument cluster has been replaced twice in 3 years, odds are good it's going to die again.
Fair enough. I was just saying that if the only reason you get DSL/Cable modem is to use VoIP you are probaby not saving any money, unless you make a lot of long distance calls.
If you have a cable modem and you decide that VoIP is better than *bell, it's all the better. Personally I haven't had a land line for over a year and last time I did have a land line the cheapest you could get your bill was ~$40
+5 Insightful or -1 Uninformed?
Pricing People think that VoIP is cheap compared to normal telephony. Average people spend around USD 200 per year on land line telephony. While VoIP might seam "free" you still have to pay around USD 300 for an ADSL connection.
If you are only getting a high speed internet connection to use VoIP, you deserve to part with your money. All of the people I know that use VoIP are doing so to avoid ugly long distance bills, if all you use the phone for is local calls to order pizza you really dont need VoIP.
Device type While it is technically feasible to install a VoIP client on a PC, it is not exactly the ideal device for a telephone. Also - remember that people usually have several phones in the house. To overcome this you would need VoIP "telephones" which look like a normal telephone. These are reletive expensive compared to normal phones, and requires a dedicated power supply.
Odd, sitting under my monitor stand and on top of a 5 port switch is this little box that I plug into my switch that I can plug any phone I want to into. Granted crappy phones do not work well, but I DO NOT need a special phone. Some people have actually piped the RJ11 out of their ATA186 into the house line effectively feeding the entire house.
Incoming calls In order to receive incoming calls you need to have you VoIP device turned on all the time and connected to the Internet.
See above.
Billing It would be nice if it was possible to make "free" VoIP calls. In most of the world however, it is the calling party who pays for the call. This means that a VoIP call terminated at a Spanish GSM phone will be charged backwards: The spanish GSM operator charges the VoIP "operator" for "terminating" the call, and the VoIP operator subsequently charges the VoIP "customer". The world has more than 1 billion GSM subscribers. In order to be able to call these you need the billing infrastructure in place even for VoIP. This requirement makes VoIP just as expensive to produce as traditional telephony.
Please follow the links provided in the original Story to the VoIP providers, this is not about using some free software you found on Freshmeat to talk to your friends.
Quality It is pretty hard to beat the delay characteristics of a normal landline phone! VoIP has severe delay problems on thin access lines such as ADSL. Usually OK for 2Mb/s and up.
I can not vouch for other providers, but on Vonage as long as you have ~95k up and no packet loss the quality is fine.
The next majer breakthrough for VoIP will be VoADSL. VoIP all the way to the customer premises. The interface to the customer however will be a normal POTS jack, full customer service and the associated billing!
Again I can not vouch for other providers, but Vonage provides online realtime usage stats, access to your voicemail from any web browser and you can actually call customer service and talk to a human when you have problems.
Sorry if I come of like a ass, but I have seen this same basic comment every time there is a VoIP story on slashdot and most of it is not true.
I have had Vonage service for roughly 2 years and the only time the quality sucked was when I was on Adelphia cable. I switched to DSL and it was fine, I am currently on Comcast/Attbi cable and it is fine.