php-general Digest 20 Sep 2013 17:33:26 -0000 Issue 8369

Topics (messages 322111 through 322125):

Friday's Question
        322111 by: Tedd Sperling
        322112 by: Larry Martell
        322113 by: Aziz Saleh
        322114 by: Daniel Brown
        322115 by: Kirk.Johnson.zootweb.com
        322116 by: Jeff Burcher
        322117 by: Joshua Kehn
        322119 by: Jen Rasmussen
        322120 by: Larry Martell
        322121 by: Joshua Kehn
        322122 by: Larry Martell
        322123 by: Larry Martell
        322124 by: Daniel Brown
        322125 by: Sean Greenslade

Re: Apache
        322118 by: Domain nikha.org

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-gene...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
Hi gang:

Do you use a Mousepad?

My reason for asking is that I've used a Mousepad ever since mice first came 
out (back when they had one ball).

Now that mice are optical (no balls), Mousepads are not really needed -- or so 
I'll told by the college -- you see, they don't provide Mousepads for their 
student's computers.

As such, I wondered what's the percentage of programmers still using a Mousepad?

Secondly, are Mousepads used primarily by older programmers (like me) while 
younger programmers don't use Mousepads, or what?

So -- please respond with:

Age: *
Mousepad: Yes/No

Thank you,

tedd

PS: * If you don't want to provide your actual age, then indicate your age by 
stating "young", "middle-age", "old-age", "ancient", or whatever term describes 
your age.

Alternate -- I claim that you can tell a man's age by ten-times the number of 
"personal products" he routinely uses, for example:

Years Old       - Personal Products
10      Toothpaste
20      Toothpaste, Deodorant
30      Toothpaste, Deodorant, Aftershave
40      Toothpaste, Deodorant, Aftershave, Minoxidil
50      Toothpaste, Deodorant, Aftershave, Minoxidil, Preparation-H
60      Toothpaste, Deodorant, Aftershave, Minoxidil, Preparation-H, Bag Bomb
70      Toothpaste, Deodorant, Aftershave, Minoxidil, Preparation-H, Bag Bomb, 
Fixodent

So, you could indicate age by stating "Bag Bomb" like me.

_______________
tedd sperling
t...@sperling.com






--- End Message ---
--- Begin Message ---
On Fri, Sep 20, 2013 at 10:51 AM, Tedd Sperling <t...@sperling.com> wrote:
> Hi gang:
>
> Do you use a Mousepad?
>
> My reason for asking is that I've used a Mousepad ever since mice first came 
> out (back when they had one ball).
>
> Now that mice are optical (no balls), Mousepads are not really needed -- or 
> so I'll told by the college -- you see, they don't provide Mousepads for 
> their student's computers.
>
> As such, I wondered what's the percentage of programmers still using a 
> Mousepad?
>
> Secondly, are Mousepads used primarily by older programmers (like me) while 
> younger programmers don't use Mousepads, or what?
>
> So -- please respond with:
>
> Age: *
> Mousepad: Yes/No

54 Yes

--- End Message ---
--- Begin Message ---
Haha, like your product usage chart Tedd,

Age: 31
Mousepad: Webster New Dictionary of Synonyms, too lazy of having to go to
Microcenter and buy one!

Aziz


On Fri, Sep 20, 2013 at 12:58 PM, Larry Martell <la...@software-horizons.com
> wrote:

> On Fri, Sep 20, 2013 at 10:51 AM, Tedd Sperling <t...@sperling.com> wrote:
> > Hi gang:
> >
> > Do you use a Mousepad?
> >
> > My reason for asking is that I've used a Mousepad ever since mice first
> came out (back when they had one ball).
> >
> > Now that mice are optical (no balls), Mousepads are not really needed --
> or so I'll told by the college -- you see, they don't provide Mousepads for
> their student's computers.
> >
> > As such, I wondered what's the percentage of programmers still using a
> Mousepad?
> >
> > Secondly, are Mousepads used primarily by older programmers (like me)
> while younger programmers don't use Mousepads, or what?
> >
> > So -- please respond with:
> >
> > Age: *
> > Mousepad: Yes/No
>
> 54 Yes
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
On Fri, Sep 20, 2013 at 12:51 PM, Tedd Sperling <t...@sperling.com> wrote:
> Hi gang:
>
> Do you use a Mousepad?

    I'm in my mid-thirties and - despite having an optical mouse - I
do indeed still use a mousepad.  A customized one that the wife did
for me for Christmas one year: images of Futurama, the Cleveland
Browns, Minnesota Vikings, and several aircraft, all surrounding a
picture of her and our daughter.  I've found that shiny surfaces -
such as my desk - reflect too much of the laser, causing the mouse to
be far less responsive.

-- 
</Daniel P. Brown>
Network Infrastructure Manager
http://www.php.net/

--- End Message ---
--- Begin Message ---
Tedd Sperling <t...@sperling.com> wrote on 09/20/2013 10:51:49 AM:
>
> Do you use a Mousepad?

[-snip-]

Age: Bag Bomb
Mousepad: Yes

Padding for my wrist and quieter moving the mouse around - no scraping. So 
yes, I'm even too old to be plugged into an iPud or an iPeed, whatever 
they are :)

Kirk

--- End Message ---
--- Begin Message ---
> -----Original Message-----
> From: Tedd Sperling [mailto:t...@sperling.com]
> Sent: Friday, September 20, 2013 12:52 PM
> To: php-gene...@lists.php.net
> Subject: [PHP] Friday's Question
> 
> Hi gang:
> 
> Do you use a Mousepad?
> 
> My reason for asking is that I've used a Mousepad ever since mice first
came
> out (back when they had one ball).
> 
> Now that mice are optical (no balls), Mousepads are not really needed --
or
> so I'll told by the college -- you see, they don't provide Mousepads for
their
> student's computers.
> 
> As such, I wondered what's the percentage of programmers still using a
> Mousepad?
> 
> Secondly, are Mousepads used primarily by older programmers (like me)
> while younger programmers don't use Mousepads, or what?
> 
> So -- please respond with:
> 
> Age: *
> Mousepad: Yes/No
> 
> Thank you,
> 
> tedd
> 
> PS: * If you don't want to provide your actual age, then indicate your age
by
> stating "young", "middle-age", "old-age", "ancient", or whatever term
> describes your age.
> 
> Alternate -- I claim that you can tell a man's age by ten-times the number
of
> "personal products" he routinely uses, for example:
> 
> Years Old     - Personal Products
> 10    Toothpaste
> 20    Toothpaste, Deodorant
> 30    Toothpaste, Deodorant, Aftershave
> 40    Toothpaste, Deodorant, Aftershave, Minoxidil
> 50    Toothpaste, Deodorant, Aftershave, Minoxidil, Preparation-H
> 60    Toothpaste, Deodorant, Aftershave, Minoxidil, Preparation-H, Bag
> Bomb
> 70    Toothpaste, Deodorant, Aftershave, Minoxidil, Preparation-H, Bag
> Bomb, Fixodent
> 
> So, you could indicate age by stating "Bag Bomb" like me.
> 
> _______________
> tedd sperling
> t...@sperling.com
> 
> 
> 
> 
> 
> 
> --
> PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
> http://www.php.net/unsub.php
> 

 Age: 54
 Mousepad: Yes

Laser mice don't like reflective surfaces so much and if I don't carve out
desk space for my mouse with a mousepad, I find that moving my mouse over
multiple sheets of paper, paperclips, and whatnot is not very effective and
somewhat frustrating.

Jeff




--- End Message ---
--- Begin Message ---
On Sep 20, 2013, at 1:04 PM, Daniel Brown <danbr...@php.net> wrote:

>    I'm in my mid-thirties and - despite having an optical mouse - I
> do indeed still use a mousepad.  A customized one that the wife did
> for me for Christmas one year: images of Futurama, the Cleveland
> Browns, Minnesota Vikings, and several aircraft, all surrounding a
> picture of her and our daughter.  I've found that shiny surfaces -
> such as my desk - reflect too much of the laser, causing the mouse to
> be far less responsive.
> 
> -- 
> </Daniel P. Brown>
> Network Infrastructure Manager
> http://www.php.net/

I'm in my 20's and rarely, if ever, use a dedicated mouse. I've transitioned to 
having all my workstations be laptops of one sort or another and they have 
built-in trackpads. Of course I also rarely use the mouse when there are so 
many keyboard shortcuts available.

Best,

–Josh
____________________________________
Joshua Kehn | @joshkehn 
http://joshuakehn.com

--- End Message ---
--- Begin Message ---
-----Original Message-----
From: Tedd Sperling [mailto:t...@sperling.com] 
Sent: Friday, September 20, 2013 11:52 AM
To: php-gene...@lists.php.net
Subject: [PHP] Friday's Question

Hi gang:

Do you use a Mousepad?

My reason for asking is that I've used a Mousepad ever since mice first came
out (back when they had one ball).

Now that mice are optical (no balls), Mousepads are not really needed -- or
so I'll told by the college -- you see, they don't provide Mousepads for
their student's computers.

As such, I wondered what's the percentage of programmers still using a
Mousepad?

Secondly, are Mousepads used primarily by older programmers (like me) while
younger programmers don't use Mousepads, or what?

So -- please respond with:

Age: *
Mousepad: Yes/No

Thank you,

tedd

PS: * If you don't want to provide your actual age, then indicate your age
by stating "young", "middle-age", "old-age", "ancient", or whatever term
describes your age.

Alternate -- I claim that you can tell a man's age by ten-times the number
of "personal products" he routinely uses, for example:

Years Old       - Personal Products
10      Toothpaste
20      Toothpaste, Deodorant
30      Toothpaste, Deodorant, Aftershave
40      Toothpaste, Deodorant, Aftershave, Minoxidil
50      Toothpaste, Deodorant, Aftershave, Minoxidil, Preparation-H
60      Toothpaste, Deodorant, Aftershave, Minoxidil, Preparation-H, Bag
Bomb
70      Toothpaste, Deodorant, Aftershave, Minoxidil, Preparation-H, Bag
Bomb, Fixodent

So, you could indicate age by stating "Bag Bomb" like me.

_______________
tedd sperling
t...@sperling.com


41      Mouse (yes) - I already have issues with my hands from work (carpal
tunnel) so I need all the cushion I can get, and        oh yeah Fixodent
LOL. What in the heck is a Bag Bomb?

Jen


--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php




--- End Message ---
--- Begin Message ---
On Fri, Sep 20, 2013 at 11:16 AM, Joshua Kehn <josh.k...@gmail.com> wrote:
> On Sep 20, 2013, at 1:04 PM, Daniel Brown <danbr...@php.net> wrote:
>
>>    I'm in my mid-thirties and - despite having an optical mouse - I
>> do indeed still use a mousepad.  A customized one that the wife did
>> for me for Christmas one year: images of Futurama, the Cleveland
>> Browns, Minnesota Vikings, and several aircraft, all surrounding a
>> picture of her and our daughter.  I've found that shiny surfaces -
>> such as my desk - reflect too much of the laser, causing the mouse to
>> be far less responsive.

> I'm in my 20's and rarely, if ever, use a dedicated mouse. I've transitioned 
> to having all my workstations be laptops of one sort or another and they have 
> built-in trackpads. Of course I also rarely use the mouse when there are so 
> many keyboard shortcuts available.

When I'm on my MacBook (which is most of the time) I use the trackpad.
But in the unfortunate times I have to be on a Windows box I always
connect a mouse.

--- End Message ---
--- Begin Message ---
On Sep 20, 2013, at 1:23 PM, Larry Martell <la...@software-horizons.com> wrote:

> On Fri, Sep 20, 2013 at 11:16 AM, Joshua Kehn <josh.k...@gmail.com> wrote:
>> 
>> I'm in my 20's and rarely, if ever, use a dedicated mouse. I've transitioned 
>> to having all my workstations be laptops of one sort or another and they 
>> have built-in trackpads. Of course I also rarely use the mouse when there 
>> are so many keyboard shortcuts available.
> 
> When I'm on my MacBook (which is most of the time) I use the trackpad.
> But in the unfortunate times I have to be on a Windows box I always
> connect a mouse.

Slightly snobbish solution: Don't use windows.

--jk

--- End Message ---
--- Begin Message ---
On Fri, Sep 20, 2013 at 11:20 AM, Jen Rasmussen <j...@cetaceasound.com> wrote:
> -----Original Message-----
> What in the heck is a Bag Bomb?

It's a salve for cow udders. Not sure what a person would do with it.

--- End Message ---
--- Begin Message ---
On Fri, Sep 20, 2013 at 11:24 AM, Joshua Kehn <josh.k...@gmail.com> wrote:
>
> On Sep 20, 2013, at 1:23 PM, Larry Martell <la...@software-horizons.com> 
> wrote:
>
>> On Fri, Sep 20, 2013 at 11:16 AM, Joshua Kehn <josh.k...@gmail.com> wrote:
>>>
>>> I'm in my 20's and rarely, if ever, use a dedicated mouse. I've 
>>> transitioned to having all my workstations be laptops of one sort or 
>>> another and they have built-in trackpads. Of course I also rarely use the 
>>> mouse when there are so many keyboard shortcuts available.
>>
>> When I'm on my MacBook (which is most of the time) I use the trackpad.
>> But in the unfortunate times I have to be on a Windows box I always
>> connect a mouse.
>
> Slightly snobbish solution: Don't use windows.

Unfortunately required to VPN into most of my clients corporate networks.

--- End Message ---
--- Begin Message ---
On Fri, Sep 20, 2013 at 1:20 PM, Jen Rasmussen <j...@cetaceasound.com> wrote:
> LOL. What in the heck is a Bag Bomb?

    He's referring to Bag Balm.

        http://www.bagbalm.com/


-- 
</Daniel P. Brown>
Network Infrastructure Manager
http://www.php.net/

--- End Message ---
--- Begin Message ---
On Fri, Sep 20, 2013 at 12:51:49PM -0400, Tedd Sperling wrote:
> Hi gang:
> 
> Do you use a Mousepad?

College Student (Electrical Engineer, go figure).
Age: 20
Mousepad: yes

I've used both optical and laser mice (they're a bit different, but
similar tech) and I've found that I like having the pad because it
sets the "DPI" of the mouse consistently. My favorite mousepad is this
cheap as hell thin rubber and cloth one that I got from dealextreme.com
many years ago. Go figure...

--Sean

--- End Message ---
--- Begin Message ---
Hi Arno!
Seems to be the standard behaviour of Apache servers all over the
world!

I was testing this way:

First I renamed a real, proper GIF-file to "this.php.nice.gif", put it
in the root of my websites and called it with the browser. Result:
"Error 500 Internal Server Error". The logfile tells: "Premature end of
script headers: this.php.nice.gif".

Then I did infect the same GIF-file with some PHP-Code (<?php echo
"Hello, I'm evel"; ?>), renamed it to "this.php.evel.gif", put it in the
root, called it with the browser. The result was exactly the same: Error
500, Premature end of script headers.

That means, wether the file is infected or not, it IS passed to the PHP
interpreter only because it contains somewehere ".php" in his name!

Then I renamed a real PHP script to "test.php.gif". This finaly produced
the following response from my web hoster:

_QUOTE_  
Files with Extra ".php." Extension
If you were directed to this page, you probably tried viewing a file
that contains .php. in its name,   such as image.php.jpeg or image.php.
(note the extra dot at the end).
The site you were visiting uses the Apache Web server, which will
usually attempt to run such files as PHP scripts (instead of allowing
your browser to display them as images, or completely failing to run
them, as you'd probably expect).
Allowing those files to run as a PHP script is a security vulnerability,
as seen in exploits for WordPress and Joomla. Because of that, we block
requests to these files.
If you’re the owner of this site and you want to use a real image that
includes “.php.” as part of the name, please rename the file.
_END QUOTE_

Sounds reasonable. And means, you really must protect your uploadings.
A simple way:
$filename = str_replace('.php', '', $_FILES['userfile']['name']);
move_uploaded_file($_FILES['userfile']['tmp_name'],
'yourdirectory/'.$filename);

Hope, this helps,
Niklaus


Arno Kuhl am Donnerstag, 19. September 2013 - 16:14:
> Arno: If you can request that file using a web browser, and it gets
executed
> as PHP on your server then there is an error in the Apache
configuration.
> 
> Easy test: create a file in a text editor containing some PHP (<?php
> phpinfo(); ?> would be enough) and upload it to the www root of your
site
> and name it test.pgif. Then hit http://www.yourdomain.com/test.pgif in
your
> browser. If you see the PHP code or an error then you're fine. If you
see
> PHP's info page then you need to change web host as quickly as
possible. I
> don't care if they fix it - the fact their server was configured to do
this
> by default is enough for me to never trust them again.
> 
> -Stuart
> --
> 
> Thanks Stuart. I just tried it now, test.php.pgif displayed the info
while
> test.xyz.pgif returned the content, confirming the problem. My
service
> provider finally conceded the problem is on their side and are looking
for
> an urgent fix, much too complicated to consider moving service
providers in
> the short term.
> 
> As a side note, the sp said the issue is new and coincided with an
upgrade
> to fastcgi recently, I wonder if the hacker was exploiting a known
issue
> with that scenario?
> 
> Cheers
> Arno
> 
>

--- End Message ---

Reply via email to