Apple Iphone 3G Available
Wow. I will buy one of these beauties.
Wow. I will buy one of these beauties.
Up to 62 characters long x .com domains are taken
http://www.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.com
A common myth amongst programmers is the use of comments in the script file. Although very useful, some believes that it actually slows down the script. I checked this out for myself today.
Here’s the results:
| Time | Memory Usage | |
|---|---|---|
| Control Average | 0.83961215 | 144 |
| Inline Comments | 0.90110895 | 144 |
| Multiline Comments | 0.91172699 | 144 |
| Both Comments | 0.91420751 | 144 |
As you can see there are slightly different values for the inline, multiline comments. Now, I’m not a PHP source code expert, I don’t know how the comments are exactly parsed by the engine, but the script file with the comments is a littlebit slower than the file without it.
What is interesting that when I first ran the script files with the comments, no matter if it was an inline or multiline comment, the script took above 1 second to finish. I suppose this is where PHP converts the script file and caches it…
I live this optimization up to you to decide. I surely will use comments in my code for better management, the difference in the results are too tiny…
I used PHP 5.2.5 and Apache 2.0.63 without any memcache or any other optimizer installed.
One last thought, in the production enviroment it is advised that we optimize the code as much as we can. We can, and we should create code that optimizes our source and deploying it from development or from staging enviroment into production.
Why people do what they do?
Why most of the people work, but they don’t enjoy what they do?
The simple answer would be, because they don’t have the guts. They don’t have the guts to quit their jobs, reorganize their life. They just simply looking at it and how it goes by in front of them.
I had the opportunity to see such people, heck I was one of them. But one day I told myself, it’s enough. I won’t do things that I don’t like anymore. I mean things that are affecting my life, not things like going to buy milk on a Sunday afternoon
I’m not here to talk about, or to convince you that what you’re doing (and you don’t like it) is probably wrong, Leo Babauta from zenhabits could tell you one thing or two
I’m simply writing that most people don’t have the guts to make their life better, to live on a tropical island serving cocktails for turists for ex.
And why? The fact is school really kills creativity in people which is a sad thing. People are afraid of the unknown, because from giving up your day job to making your dreams come true is somewhat a long, dangerous and unknown path that everyone must walk through.
And I don’t want to write big words and big thoughts here, but I honestly consider that is the problem. If anybody has more thoughts on this then you’re welcome to comment on this post.
Enjoy.
Because the InnoDB doesn’t support FULLTEXT. This can be used with MyISAM.
And MyISAM doesn’t support foreign key constraints, this can be used with InnoDB.
And I need both. I didn’t figured out how to do it just yet. So if anybody knows please let me know in the comments.
Thanks.
I found one thing that is common in all the browsers, no matter the platform, version or company.
It is the CTRL+T hotkey for opening new tabs. Of course this is where tabs are available.
Sad. Also visit and help http://savethedevelopers.org/
That I’m looking for hosting companies using my e-mail address and getting spam about hosting plans on my other e-mail address…
And the addresses are not even on the same domain.
Why it’s importand to unset, destroy your objects and unset database results?
Simply, because you free up used memory and you leave more processing power for other processes.
If you don’t use a variable, array, etc. but you need to process something else simply unset that element.
If you don’t use an object anymore create a __destruct function for it.
Old marketing - focus groups
New marketing - launch and learn
Meatball Sundae - Seth Godin
Mac OS X is a Unix based operating system, so by default we get all the goodness that a *nix system has to offer.
I prefer developing on mac. The whole GUI is nice. The main downfall of developing on this system would be that you cannot test the website / web application on IE, only in a virtual server enviroment. There’s Bootcamp, but that’s just not the same.
Of course there’s another type of programmer who prefers Linux coding in a command line :) “Because real programmers do it on the line!”
Another good reason to switch development to a mac is the “built-in” apache and php that comes with every Mac OS X, you only have to install a database of some sort.