Preskočiť na hlavný obsah

Príspevky

Zobrazujú sa príspevky z dátumu 2012

Util to decode multilogs

tail -f /var/.../current | tai64nlocal but if you want to see e.g. in tinydns IP addresses, use next script... #!/usr/bin/perl -w #A program to decode tinydns logfiles #Written by Sean Hunter #Copyright (c) 2001 Uncarved Systems Ltd # #This is free software released under version 2 #of the GPL without warrantees of any kind use strict ; use IPC::Open2; #Requires djb's tai64nlocal to be in the path open2(*READTAI, *WRITETAI, ' tai64nlocal ' ); my %query_type = ( ' 0001 ' => ' A ' , ' 0002 ' => ' NS ' , ' 0005 ' => ' CNAME ' , ' 0006 ' => ' SOA ' , ' 000c ' => ' PTR ' , ' 000f ' => ' MX ' , ' 0010 ' => ' TXT ' , ' 001c ' => ' AAAA ' , ' 0021 ' => ' RT ' , ' 0026 ' => ' A6 ' ,

JAVA 7: Underscores in Numeric Literals

In Java 7 an underscore characters (_) can be put anywhere between digits in a numeric literals.  If application code contains numbers with so many digits, you can use an underscore character to organize digits to the groups of three, four or as much as you want. This absolutly improves code readability. Examples: long myPayment   =  1_234_567L ; long phoneNumber = 0421_555_1234_5678L ; long niceColor   =  0x68_FE_A0 ; long someFlags   =  0b01101001_10010010 ; Rules for this feature  You can place underscore characters only between digits. You cannot place underscores in the following places: at the beginning or end of a number next to a decimal point in a floating point literal before an F or L suffix in positions where a string of digits is expected int n = _42; // WARNING! an identifier, not a literal! int n = 42_; // ERROR! underscores at the end of a literal float e = 2_.72; // ERROR! underscore before a decimal point long n = 123_L; // ERRO

LG panel L245WP HDMI display problem

If you have the LG panel L245WP-BN and have it connected over HDMI to an NVIDIA card under Windows Vista/7, you may encounter a problem where the image at resolution 1900x1200 is cropped and off-center. Here is the solution  http://www.voetsjoeba.com/misc/edid/