full of … these

Save ‘less’ buffer to file

Posted: May 23rd, 2013 | Author: | Filed under: howto, linux | Tags: , | 1 Comment »

The site that originally hosted this useful trick is not accessible any more.

The original was at: http://kerneltrap.org/node/17043

Source of the text below is http://webcache.googleusercontent.com/search?q=cache:http://kerneltrap.org/node/17043&strip=1


to save the buffer that is being displayed by a session of `less’, use its pipe-to-shell-command capability by scrolling to the top of the file and press `|’ followed by `$’ as well as entering `tee DESTINATION_FILE’ when prompted for the shell command.


CoRD cannot connect to Windows 2008 Server

Posted: May 21st, 2013 | Author: | Filed under: howto | Tags: , , | No Comments »

It happened to me to have a colleague that could not connect to a Windows 2008 Server using his Mac.

We have tried different things like adding him to Remote Desktop Group (which is a must) and to Administrators group but the CoRD application was not showing anything immediately after connecting to the server.

So, nothing happened when we hit the button to connect to the server. The window just disappears.

After a week-end and another attempt to connect to a different remote Windows computer it came out that the Remote Desktop setting were allowing only computers with “Network Level Authentication” enabled (more secure).

Enabling the “less secure” option on Windows 2008 Server (any version of Remote Desktop) fixed the problem.

sony vayo vpceh3s6e network driver

Posted: April 17th, 2013 | Author: | Filed under: howto, idiots | Tags: , , , , | No Comments »

If you downloaded the “Ethernet Driver” from Sony’s support page and you noticed that is not good at all, here is how I made it working.

Searching for the PCI ID found in Device driver list has ended in no useful stuff, only spam results.

Going back to the source of this driver at http://www.sony.ro/support/ro/product/VPCEH3S6E_W/downloads/REDETH_00247766_0042_5704 I have seen the version of the Realtek driver:

Realtek PCIe GBE Family Controller, Version for Microsoft® Windows® 7

Searching for this sentence, I have found the HP page: http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?cc=us&lc=en&dlc=en&softwareitem=ob-94199-1

On this page is the exact version that we need:

Released: 2011-05-06
File name: sp52799.exe [1/1, 5.72M]
Microsoft Windows 7 (32-bit)
Microsoft Windows 7 (64-bit)
Enjoy the fix.

Rewrite rule without losing the initial URI

Posted: November 9th, 2012 | Author: | Filed under: howto, idiots | Tags: , , | No Comments »

Today, I had to add a rewrite rule to keep the short word (keyword) after “domain.com/”.

So, you want to keep the keyword in the address bar, but load the long URI and not showing it.

Here is my solution:

RewriteRule ^/(keyword-or-short-name)/?$ /long/i-mean-long-very-long-with-lots-of-params.htm

Happy users!


IIS error: HTTP Error 500.19 – Internal Server Error

Posted: March 18th, 2012 | Author: | Filed under: howto, idiots | Tags: , , , | No Comments »

IIS permission error suck.

I got this error on a freshly server provided by a company:

HTTP Error 500.19 – Internal Server Error
Module IIS Web Core
Notification Unknown
Handler Not yet determined
Error Code 0x80070005
Config Error Cannot read configuration file due to insufficient permissions
Config File \\?\E:\inetpub\wwwroot\web.config
Requested URL http://localhost:80/iisstart.htm
Physical Path
Logon Method Not yet determined
Logon User Not yet determined

I coul find a page with all errors and how to solve them,  but, none worked:


More testing reveled that moving the wwwroot directory from C drive to another drive, somehow affected the security and the access was denied to read the web.config file even the file was a non-existent one.

The solution, after some tests, was to not use wwwroot at all for the default web site. Instead, we created an empty directory in inetpub, and, it worked from the first try.

Also, the old configuration was working if the port 80 was changed to 8080. I have not tried other port, I was too angry to try another (e.g. 81).