See live traffic from a remote Linux machine in Wireshark on Windows

First, download plink (part of the putty suite).

Install tcpdump on the remote Linux server.

Then issue (command has been broken into multiple lines for better readability):

C:\somedir>plink.exe -ssh -pw password username@hostname.com
 "tcpdump -s0 -U -w - -i eth0 not port 22" |
 "c:\program files\wireshark\wireshark.exe" -i - -k

(-U is important to force tcpdump not to buffer output)

Posted in Uncategorized | Comments Off on See live traffic from a remote Linux machine in Wireshark on Windows

Debian Linux: Networking not up when rc2.d scripts are starting upon boot

Some of my network daemons failed to start (bind a port) on a (VirtualBox) Debian Squeeze machine. The reason was that at the time of daemon start (runlevel 2) networking was not up yet (except for the loopback interface)!

Changing

allow-hotplug eth0

to

auto eth0

in /etc/network/interfaces helped.

Posted in Uncategorized | Comments Off on Debian Linux: Networking not up when rc2.d scripts are starting upon boot

View experts-exchange.com solutions for free

My colleague recently noticed that if you come to experts-exchange.com by clicking a Google search result, the answers are visible at the bottom of the page, unblurred.

The answers are not visible if you navigate to the same URL directly (probably they’re checking for the Referrer).

Try it yourself:

https://www.google.com/search?q=…

http://www.experts-exchange.com/Hardware/Misc/Q_21330754.html

This is caused by Google’s policy that prohibits a site to show different content to the public and their crawlers.

Posted in Uncategorized | 1 Comment

Program Compatiblity Assistant on Windows 7 complains “This program might not have installed correctly” despite an application manifest present

For Windows Vista embedding this application manifest is sufficient to prevent the PCA dialog:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> 
  <description>Description of your application</description> 
  <!-- Identify the application security requirements. -->
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
    <security>
      <requestedPrivileges>
        <requestedExecutionLevel
          level="asInvoker"
          uiAccess="false"/>
        </requestedPrivileges>
       </security>
  </trustInfo>
</assembly>

However, for Windows 7 the following elements need to be added into <assembly/> (sadly, this is not documented well on the MS pages):

<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
  <application>
    <!--The ID below indicates application support for Windows Vista -->
      <supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
    <!--The ID below indicates application support for Windows 7 -->
      <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
  </application>
</compatibility>

I used the mt.exe tool to add the manifest as follows:

mt.exe -manifest app_name.manifest -outputresource:app_name.exe;#1
Posted in Uncategorized | Comments Off on Program Compatiblity Assistant on Windows 7 complains “This program might not have installed correctly” despite an application manifest present

Shortening Logrotate period does not remove old logfiles

Just a fact I noticed… When you shorten the period given by the “rotate” keyword, logrorate will not delete logs from before the period automatically (on next rotation).

/var/log/some/*.log {
 daily
 rotate 30
 compress
}

You need to delete the older ones manually.

Posted in Uncategorized | Comments Off on Shortening Logrotate period does not remove old logfiles

Skype icon missing in Windows 7’s taskbar

This article has a solution (problem with a corrupted icon cache).

Short:

Kill explorer.exe

CD /d %userprofile%\AppData\Local
DEL IconCache.db /a

Start explorer.exe again

 

Posted in Uncategorized | Comments Off on Skype icon missing in Windows 7’s taskbar

IPv6-only connectivity in Windows 7 using Hurricane Electric’s DNS server results in “No Internet Connectivity”

My IPv6-only router is connected to the IPv6 internet using Hurricane Electric’s Tunnel broker. They also provide a DNS service at 2001:470:20::2. Even though IPv6 connectivity worked fine (DNS, web) a Windows 7 client machine indicated “No Internet Connectivity” in the Tray.

The solution was to use Google’s public IPv6 DNS server instead; then Windows 7 successfully indicated “Internet access”.

Posted in IPv6 | Comments Off on IPv6-only connectivity in Windows 7 using Hurricane Electric’s DNS server results in “No Internet Connectivity”

BIRT reporting engine: Populating a Report variable from the database

My goal was to read some value from a Data set into a Report variable to be able to use it in subsequent Javascript calculations. Took me quite some while to figure this out…

1. Define a Report variable (in the “Outline/Variables” branch) named “Foo”.
2. Define a Data set “FooDataSet” returning a column named “Foo”.
3. Drag the column “Foo” from the “Outline/Data sets/FooDataSet” branch into your report to create a Data element.
4. Create a new Label (e.g. by dragging from the “Report Items” palette; will be used to demonstrate reading of the variable)

Open the Data element’s properties and enter the following into the “OnCreate” property:

vars["Foo"] = this.getRowData().getColumnValue("Foo");

Open the Label element’s properties and enter the following into the “OnCreate” property:

this.text = vars["Foo"];

This causes the value to be read from the Data set and displayed in the Label.

Posted in BIRT | Comments Off on BIRT reporting engine: Populating a Report variable from the database

How many pages of your site are in the Google index?

One way to find out is to use Google Webmaster Tools and submit a Sitemap of your site (under “Site Configuration”). The number of currently indexed pages is reported in theURLs in web index column.

Posted in SEO | Comments Off on How many pages of your site are in the Google index?

VMWare: Fixing the “Unable to obtain hardware information for the selected machine” error

I tried to use VMWare Converter Standalone Client 5.0.0 to convert a virtual machine created in VMWare Player 4.x and encountered the following error:

"Unable to obtain hardware information for the selected machine"

The vmware-converter-worker.log said the following:

[03944 error 'Default'] Sysimgbase_DiskLib_OpenWithPassPhrase failed on disk file 'C:\MIP Ubuntu 11.04\MIP Ubuntu 11.04.vmdk' with 'Disk encoding error' (error code:61)
[03944 info 'Default'] [,0] Sysimgbase_DiskLib_OpenWithPassPhrase failed with 'Disk encoding error' (error code:61)
[03944 info 'Default'] [,0] Error 61 opening disk C:\MIP Ubuntu 11.04\MIP Ubuntu 11.04.vmdk.
[03944 error 'Default'] [BaseDiskSetComputer::DoOpen] OpenDisks failed, mntapi error: 978
[03944 error 'Default'] [BaseDiskSetComputer::AnalyzeErrorAndThrow] Error occurred when opening disk set, MNTAPI_ERROR = 978 MNTAPI errorType = 2, errorCode = 61

The solution was to use VMWare Converter version 4.0.1 – worked with no problem.

Posted in Uncategorized | 2 Comments