Pages: Prev 1 2 3 4 5 6 7 8 9 10 Next
How to change MTU (Windows)

Two possible scenarios:

  • You are using VPN, but some of your applications time out (MTU is too big)
  • Your OS is preconfigured for VPN by your employer, but the transfer rate can be better (MTU is too small)

In both cases the MTU needs to be adjusted:

  1. Start regedit
  2. Check all interfaces under HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces and find the one with the IP corresponding to the problem interface (e.g. the VPN tunnel interface). For example:
    IPAddress REG_MULTI_SZ 192.168.12.1
    MTU REG_DWORD 0x000005DC (1500)

    As you can see the MTU is set to 1500 what is too high for a VPN tunnel

  3. Double click on MTU
  4. Click on Decimal
  5. Enter 1400 (or 1300 to be on the safe side, or 1500 if you are not using VPN)
  6. Click OK
  7. Reconnect (if you are connected to the VPN)

Also see:

Windows 2000/XP Registry Tweaks
How to change the PPPoE MTU size in Windows XP
Change the Maximum Transmission Unit (MTU) Size (Windows NT/2000/XP)



External searching in mybb

Sometimes you need to integrate web-pages with corresponding forum threads. Here's one of the way to do it.

<?php
$keywords="MyBB integration"; // The search keywords
?>
<!– The path to mybb search.php –>

<form method="post" action="http://www.yoursite.com/mybb/search.php">
<input type="hidden" name="action" value="do_search" />
<input type="hidden" name="keywords" value="<?php echo $keywords; ?>" />
<!– search titles only –>
<input type="hidden"  name="postthread" value="2" />
<!– Search in all forums –>
<input type="hidden" name="forums[]" size="15" multiple="multiple" value="all">
<!– All dates –>
<input type="hidden" name="postdate" value="0">
<input type="hidden" name="pddir" value="1" />
<input type="hidden" name="sortby" value="lastpost">
<input type="hidden" name="sortordr" value="asc" />
<!– the result will be threads, not posts –>
<input type="hidden" name="showresults" value="threads" />
<input type="submit" class="button" name="submit" value="Forum" />
</form>


Heian Godan – tutorial and bunkai

Heian Godan by Hirokazu Kanazawa and Luca Valdesi
[read more...]



Short script for searching mail logs

Today I had to search through dozens of mail logs (syslog) located on several mail relays and find all entries related to a particular user.

Given:

  • All servers are managed via a remote tty console,
  • The ksh-script must be copy&pasteable
  • All logs are gzipped
  • I need all entries with the same message number (the ninth field) as the found log entry

This is what I came up with:

[read more...]



Wine 1.1.5 for Solaris

Wine 1.1.5 is out. So are new compiling errors:

gmake[2]: Entering directory `/var/tmp/wine-1.1.5/dlls/cryptnet'
gcc -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith -O2 -o cryptnet_main.o cryptnet_main.c
In file included from cryptnet_main.c:31:
../../include/winbase.h:1518: error: syntax error before "va_list"
../../include/winbase.h:1519: error: syntax error before "va_list"
gmake[2]: *** [cryptnet_main.o] Error 1
gmake[2]: Leaving directory `/var/tmp/wine-1.1.5/dlls/cryptnet'
gmake[1]: *** [cryptnet] Error 2
gmake[1]: Leaving directory `/var/tmp/wine-1.1.5/dlls'
gmake: *** [dlls] Error 2

The thing is, wine/debug.h must be included before any other win*.h headers in dlls/cryptnet/cryptnet_main.c

$ more dlls/cryptnet/cryptnet_main.c
. . .
#include "wine/debug.h"
#include "windef.h"
#include "winbase.h"
#include "winnt.h"
#include "winnls.h"
#include "wininet.h"
#include "objbase.h"
#define CERT_REVOCATION_PARA_HAS_EXTRA_FIELDS
#include "wincrypt.h"
. . .


How to remove frames

One of the methods to break out of frames:

<script type="text/javascript">
<!–
if (top.location.href != self.location.href)
top.location.href = self.location.href;
// –>
</script>


DNS, IP, AS, whois etc testers
  • Squish DNS (A, SOA, CNAME, NS, PTR, AAAA. ANY) tester
  • DNS-OARC Web-based DNS randomness test
  • Robtex RBL Realtime Block List, Domain Name Server records, IP Reverse DNS, C-Network, Domain
  • Whois, Route, AS Analysis, DNS graphs
  • DNSstuff IP, whois, country IP, traceroute, VectorTrace, DNS traversal, Speed tests, HTML validator
  • What's my IP IP, DNS, whois, traceroute testers, port scanner
  • w3dt DNS lookup, DNS traversal, PortScan, trace route, RBL check, MTU route, NTP test, remote process list
  • Into DNS


How to reset hung ports on a Cyclades terminal server

If you are getting no response from a device connected to a Cyclades port you can try to reset all ports by sending HUP signal to cy_ras process:

# ps -ef | grep cy_ras
114 ? root 2908 S /bin/cy_ras
2878 ttyp1 is 1664 S grep cy_ras
# kill -1 114


CPU power management

Some CPU's and system boards allow you to change operating voltage and frequency, resulting in a corresponding change in performance, and power consumed.

[read more...]



CAPTCHA's and phpBB

"Easy for bots, difficult for humans". Not that it was the idea behind Completely Automated Public Turing tests to tell Computers and Humans Apart. The proper test should:

  1. work properly out of the box
  2. work regardless of language settings
  3. be solvable for almost all humans
  4. and few Bots

But what about the implementations? Read about CAPTCHA's here.



Pages: Prev 1 2 3 4 5 6 7 8 9 10 Next