A little bit of a strange one I know.
But recently I needed to be able to get the total of all items that another ebay user had for sale. By default they can see it but another user cannot.
Continue reading “Total all items on an ebay users sales page”
Every tried to comment out a large part of a script only to find that your /* multiline comments */ don’t work because somewhere in that file you already used /* multiline */ type comments?
... lots of code ...
Simple and quick
Today the iTunes Equilizer went walkabout on my mac. When I say it went walkabout I mean, I knew it was open because pressing F9 to show all windows proved it was open, but when I went to use it, it was somewhere up above the usable screen of my macbook. Well thanks to Dudehey and robg I found an answer.
Continue reading “Move stray windows back into view in mac OS X”
str = str.slice(0,1).toUpperCase() + str.slice(1);
If you want to convert more than one letter then you might want to use the following. As examples if you wanted the first 4 characters uppercase use (0,3) and then (4) and if you wanted the first 2 uppercase you would use (0,1) and then (2)
str = str.slice(0,3).toUpperCase + str.slice(4);
Remember that an array starts at zero so always take one from the numbers you want.
In all my time coding php I have read a lot of php coding standards.
Finally I have found one that I almost agree with completely. My only wobble is regarding the suggestion not to use getters and setters in classes.
PHP Coding standards
The PHP Coding Standard is with permission based on Todd Hoff‘s C++ Coding Standard.
Rewritten for PHP by Fredrik Kristiansen / DB Medialab, Oslo 2000-2003.