With its 25th anniversary, phrack has released vol. 67 of its magazine.
Making Squid log timestamps human readable
By default, squid uses UTC in its timestamps in its various logs (access.log, store.log, cache.log). Although there are many tools to covert UTC into a human readable format – its not always practical when running a grep over your logs for troubleshooting.
In order to change this simply add the following line to your squid conf (make sure to remove or comment any exting entries)
logformat squid %tl.%03tu %6tr %>a %Ss/%03Hs %
The new log youtput will produce something like this:
26/Oct/2010:15:38:46 +0200.538 4787 y.y.y.y TCP_MISS/200 41841 GET http://robinward.com/ - DIRECT/x.x.x.x text/html
Her is a list of the format codes:
% a literal % character
>a Client source IP address
>A Client FQDN
>p Client source port
la Local IP address (http_port)
lp Local port number (http_port)
sn Unique sequence number per log line entry
ts Seconds since epoch
tu subsecond time (milliseconds)
tl Local time. Optional strftime format argument
default %d/%b/%Y:%H:%M:%S %z
tg GMT time. Optional strftime format argument
default %d/%b/%Y:%H:%M:%S %z
tr Response time (milliseconds)
dt Total time spent making DNS lookups (milliseconds)
Use the squid documentary to apply your needs to the logfile:
Khan Academy offers video lectures for free
The Khan Academy is a not-for-profit organization with the mission of providing a high quality education to anyone, anywhere.
We have 1400+ videos on YouTube covering everything from basic arithmetic and algebra to differential equations, physics, chemistry, biology and finance which have been recorded by Salman Khan.
With a broad range of science topics, this site ist totally worth looking at.
Need to update your knowledge on algebra, calculus or physics?
Its not shiny due to the low production buget, but the information is available free under a CC3 license.
Pacman turns 30 on May 22nd!
Changing window control layout in Ubuntu 10.04 beta
Some changes in Ubuntu are really annoying. Switching from esd to pulseaudio was definitely my favorite for 2009.
The window control button change currently running in the 10.04 beta is a canidate for this award in 2010.
Here is a quick and dirty fix in order to allign your controls to the right side of the window using the gconf-editor (note to Windows Users: this is almost as using the Registry Editor):
- launch gconf-editor from a console
- switch the directory tree to apps –> metacity –> general
- find the key named button_layout
- change the value to menu:maximize,minimize,close,
- take a deep breath 🙂
Android: Using your local Amazon MP3 shop with WWE Roms
Some Android custom Roms are only available in WWE (World Wide English) which is not really a big deal. However there are a few exceptions when it comes to native characters or services based upon your locale.
Since I live in germany, i have a german Amazon account which I use for online purchase including my music.
When downloading AmazonMP3 from the market, the application will check your locale and set the Amazon Shop accordingly. In most cases of WWE Roms, this will be AmazonMP3(US) and you wont be able to purchase MP3s with your native account (DE in my case).
Using morelocale 2 you can manually set your locale to your preferred area and you should be able to use your native provider ignoring the WWE locale on your phone.
HD Playback in Ubuntu: VDPAU on an ION Netbook
GPU Video enhanced playback is becoming more and more important with the availability of low cost Netbook and Nettop CPUs.
If your device features an ION gpu (such as my Lenovo S12 netbook) you will be able to playback even 1080p HD Videos using VDPAU in Linux. These implementations are also available for Windows as DXVA (Direct X Video Accelleration) or NVIDIAs CUDA interface (which is not limited to enhancing video performance).
To use VDPAU simply follow these steps:
- make sure you are using the restricted NVIDIA drivers
- grab a trailer from http://www.h264info.com/clips.html – I used the 1080p Simpsons movie trailer
- download mplayer-nogui:
apt-get install mplayer-nogui
- playback using vdpau:
mplayer -vo vdpau -vc ffh264vdpau The\ Simpsons\ Movie\ -\ 1080p\ Trailer.mp4
For comparison: mplayer The\ Simpsons\ Movie\ -\ 1080p\ Trailer.mp4
- When using a mplayer GUI such as smplayer or gnome-mplayer, make sure to select vdpau in the video playback options
- Enjoy Full HD video playback
Good News Everyone!
Season 6 is the upcoming season of Futurama and the first season of the second run. With 26 episodes, season 6 is so far the largest season, beating season 3 during the original run, which had 22 episodes.
From a broadcasting perspective, season 6 will be the seventh and the eighth broadcast season, with 12 episodes in 2010 and 14 episodes following in 2011,[3] which would make “The Mutants Are Revolting” broadcast season 7‘s season finale as previously hinted.[4] Which will make episode 6ACV13 the season première of broadcast season 8, but given it is a holiday special,[4] broadcast season 8 may already start in December of 2010.
The première for season 6 – and thus broadcast season 7 – is scheduled for 24 June, 2010.[1][2]
Android 2.1 on HTC devices
A lot of 2.1 Roms with HTC Sense have been released for the Hero lately due to the availability of the HTC Droid Eris sources.
Stability and Speed is awesome!
Here is a quick review on VillainRom 3.1 for the HTC ( available at http://forum.xda-developers.com/showthread.php?t=622468 )
- very Stable
- great Performance
- new HTC Sense and Widget features
- Screen Overview (press Home on the Homescreen or Pinch)
- all working 2.1 features (Market, Navigation, Energy Manager)
The official release for the 2.1 Hero Rom is yet to come but regarding the VillainRom you wont have to wait any longer for the stable Android 2.1 with HTC Sense.
RFC 5782: DNS Blacklists and Whitelists
The Internet Research Task Force has released a Request for Comments for the Usage of Black and Whitelists
The rise of spam and other anti-social behavior on the Internet has led to the creation of shared blacklists and whitelists of IP addresses or domains.
The DNS has become the de-facto standard method of distributing these blacklists and whitelists. This memo documents the structure and usage of DNS-based blacklists and whitelists, and the protocol used to query them.