You can convert your Apache logs from common to combined with a simple sed line:
sed 's|$| "-" "-"|' yourwebsite-acces.log > yourwebsite-acces.log_combined
Twopenguins.it
Apache logs: from common to combined
Apache virtualhost: redirect a vhost from port 80 to 443 (ssl)
To redirect access to starndard www port to https one you’ve to change the default vhost configuration from VirtualHost *:80 to VirtualHost *:443 and add the “redirect section”:
I’ve added this:
<VirtualHost *:80>
ServerName example.twopenguins.it
ServerAlias www.example.twopenguins.it
<Location />
Redirect permanent / https://example.twopenguins.it
</Location>
</VirtualHost>
And changed the “old” section from :80 to :443:
<VirtualHost *:443>
ServerName example.twopenguins.it
ServerAlias www.example.twopenguins.it
SSLEngine on
ecc.. ecc..
Reload and you’re done.
PHP: Warning: date() [function.date]: It is not safe to rely on the system’s timezone settings
If you see this in one of your php page, find this line in your php.ini file:
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
;date.timezone =
decomment it and out your timezone:
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = "Europe/Rome"
United States Patent 7,617,530: Rights elevator. Microsoft patent sudo. Or only the gui to have administrator privileges?
This is ridiculous but at the same time so sad. USPTO accepted the request, and now Microsoft have the patent for that is common know as ‘sudo’. Or only for the gui?
Reading from the patent:
TECHNICAL FIELD
This invention relates to elevating a computer user’s rights.
And after:
Rights elevator 114 is capable of elevating a user’s rights; including permitting a task that is prohibited by a current user’s account or the controlled-access application. The rights elevator may enable a user to elevate his rights from that of a limited-rights account, such as a standard user (e.g., non-admin) account, to a higher-rights account, such as an administrator account. The rights elevator may enable the user to elevate his or her rights through user interface 116, such as by presenting a name of a higher-rights account and enabling submission of an authenticator for that account.
Does Microsoft invented this? Really? I don’t think so.
From the webpage of sudo:
Sudo was first conceived and implemented by Bob Coggeshall and Cliff Spencer around 1980 at the Department of Computer Science at SUNY/Buffalo. It ran on a VAX-11/750 running 4.1BSD. An updated version, credited to Phil Betchel, Cliff Spencer, Gretchen Phillips, John LoVerso and Don Gworek, was posted to the net.sources Usenet newsgroup in December of 1985.
Now, i don’t get if this patent is strictly related to the user interface that permit this temporary “privilege escalation” or if they really have the patent for the concept behind sudo, plus a graphic interface.
This patents are getting ridiculous, really.
Google announce Chrome OS
Google is working on his own operating system, an “extension of Google Chrome” called Google Chrome OS.
Target for this new Google work are netbooks and we’ll could see it at work in late 2010. As said by Google’s announce, Speed, simplicity and security are the key aspects of Google Chrome OS and the Linux kernel will be the base of that new system.
Read the official annunce.
