Category Archives: Tips & tricks

Tips & tricks Utils

Fix Internet Explorer Printing Blank Pages

I just ran into an issue where three different clients in the same morning reported that Internet Explorer was printing blank pages.  A quick search on Google turned up the following article: http://www.mutterances.com/?p=83.

The problem specifically manifests itself by printing a blank page with a footer (if you haven’t turned them off) displaying the following line: “file:///C:/Users/userprofile/AppData/Local/Temp/Low/randomfilename.htm”.

To fix this issue, you’ll need to bring up a command prompt (but not with elevated permissions) and type the following commands:

mkdir %userprofile%\AppData\Local\Temp\Low
icacls %userprofile%\AppData\Local\Temp\Low /setintegritylevel low

 
UPDATE:
I’ve also found some information from Microsoft’s site to fix the problem.  They even include a Microsoft Fix It utility to fix the problem automatically: http://support.microsoft.com/kb/973479.

12/2/2014 UPDATE:
I recently had a client contact us about this very problem but the challenge was slightly different.  The web application (online credit card processing) was using framesets and IE was attempting to print an empty frameset.  Microsoft suggests turning on Compatibility Mode, however, I suggested:

  • Highlight what you’d like to print
  • Right click the selection
  • Click Print
  • Make sure to select “Selection” in the page range box
  • Click Print

 

Thanks to http://www.datacorps.com/2012/09/28/how-to-fix-internet-explorer-printing-blank-pages/

Tips & tricks Utils Windows 10

Como iniciar o Windows 10 no Modo de Segurança

A maneira mais rápida ——————————————————

  1. Digite MSCONFIG e clique em Configuração do Sistema:
    msconfig
  2. Clique na aba Inicialização do Sistema e clique em Inicialização Segura. Escolha Mínima e clique em Aplicar e depois em OK.
    inicializacao-segura
  3. Pronto! Na próxima reinicialização o Windows entrará em Modo Seguro. Posteriormente você deve voltar nesta tela de Configuração de Sistema e desclicar a opção “Inicialização segura” para o Windows carregar normalmente.

Clicando em  F8 no arranque do PC —————————————-
Quem tem saudades de pressionar a tecla F8 para entrar no em Modo de Segurança (entre outras opções) pode fazer isso no Windows 10 (e também no Windows 7 e Windows 8.x) seguindo o passo-a-passo abaixo:

  1. Clique com o botão da direita do mouse sobre o logo do Windows e clique em Prompt de Comando (Admin):
    prompt-de-comando-admin
  2. Digite bcdedit /set bootmenupolicy Legacy e tecle ENTER:
    tecla-F8-windows10
  3. Pronto! A partir de agora você pode pressionar a tecla F8 para entrar no Modo de Segurança no Windows 10:
    Como iniciar o Windows 10 no Modo de Segurança com tecla F8

Caso você queira voltar ao modo anterior (desconsiderando a tecla F8):
digite bcdedit /set {default} bootmenupolicy standard e tecle ENTER

A maneira mais técnica ———————————————————-
Abra a Central de Ações e clique em Todas as configurações:

– Agora clique em Atualização e recuperação:
– Acesse a categoria Recuperação e clique no botão Reiniciar agora exibido abaixo de Inicialização avançada:
– Se você não quer perder muito tempo nos passos acima, clique com o botão direito do mouse no botão Iniciar, mantenha a tecla shift pressionada e clique em Reiniciar:
– Na tela abaixo, selecione a opção Solução de problemas:
– Em seguida clique em Opções avançadas:
– Na tela Opções avançadas, clique em Configurações de inicialização:
– Agora clique no botão Reiniciar:
– Pressione F4 no teclado para iniciar o Windows 10 no Modo de Segurança, F5 para iniciar o sistema operacional no Modo de Segurança com Rede ou F6 para iniciar o sistema operacional no Modo de Segurança com Prompt de Comando:

Tips & tricks

Gmail and Outlook

Login to your google account then access:

https://www.google.com/settings/security/lesssecureapps

Now you can configure your mail client with your gmail account.

Follow these steps:

http://www.configuraroutlook.com

 

 

Tips & tricks

The Domain Name Expiration Process

This article focuses on the pre-release expiration process, which is now used for the majority of expired domain names.

read more »

Tips & tricks

How to configure Microsoft.AspNet.FriendlyUrls

App_code>start>RouteConfig.vb

Imports Microsoft.VisualBasic
Imports System.Web.Routing
Imports Microsoft.AspNet.FriendlyUrls

Public Class RouteConfig
    Public Shared Sub RegisterRoutes(routes As RouteCollection)
        Dim settings = New FriendlyUrlSettings()
        settings.AutoRedirectMode = RedirectMode.Permanent
        routes.EnableFriendlyUrls(settings)
    End Sub
End Class

Global.asax

<%@ Import Namespace="System.Web.Routing" %>
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
    'Friendly URLs
    RouteConfig.RegisterRoutes(RouteTable.Routes)
End Sub

Generate Friendly URLs without string concatenation


<a href="<%: FriendlyUrl.Href("~/Foo", "bar", 34) %>">Click me</a>

if error on server:

Could not load file or assembly 'Microsoft.Web.Infrastructure,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
 or one of its dependencies. The system cannot find the file specified

Run ASP.NET MVC 3 Tools Update
http://www.microsoft.com/en-us/download/confirmation.aspx?id=1491

related links:
http://www.hanselman.com/blog/CommentView.aspx?guid=724141DA-9E27-44AE-A370-9E311BAED472#73cdc003-407d-4d9a-8ea0-d397b5989cf4

http://www.hanselman.com/blog/IntroducingASPNETFriendlyUrlsCleanerURLsEasierRoutingAndMobileViewsForASPNETWebForms.aspx

Tips & tricks

Import multiple vCards to Gmail contacts manager

Need to concatenate all the VCFs in to a single file

# get a command prompt
Windows_Key + R
run: cmd
# change to the directory where all your VCFs are located
e:
cd vcf
# Run this command

copy   /B   *.vcf   all.vcf

Then upload the “all.vcf” file to google

Tips & tricks

Sendy.co, newsletter simple and cheap

Sendy is a self hosted email newsletter application that lets you send trackable emails via Amazon Simple Email Service (SES).

This makes it possible for you to send authenticated bulk emails at an insanely low price without sacrificing deliverability.

Email service Cost per 10,000
MailChimp $200
Campaign Monitor $105
Amazon SES $1

read more »

Linux Tips & tricks

Edit files on the linux command line

To edit files on the command line, you can use an editor such as vi. To open the file, run

vi /path/to/file

Now you see the contents of the file (if there is any. Please note that the file is created if it does not exist yet.).
The most important commands in vi are these:
Press i to enter the Insert mode. Now you can type in your text.
To leave the Insert mode press ESC.
To delete the character that is currently under the cursor you must press X (and you must not be in Insert mode because if you are you will insert the character x instead of deleting the character under the cursor). So if you have just opened the file with vi, you can immediately use x to delete characters. If you are in Insert mode you have to leave it first with ESC.
If you have made changes and want to save the file, press : x (again you must not be in Insert mode. If you are, press ESC to leave it).
If you haven’t made any changes, press :q to leave the file (but you must not be in Insert mode).
If you have made changes, but want to leave the file without saving the changes, press :q! (but you must not be in Insert mode).
Please note that during all these operations you can use your keyboard’s arrow keys to navigate the cursor through the text.

Tips & tricks

Check your newsletter content quality

Low quality content means, a high percentage of your emails did not get pass the ISP’s spam filters and got sent to spam immediately. ISP means the receiving end, eg. gmail, hotmail, yahoo mail, etc.

Try using this tool to check your spam score: http://www.contactology.com/check_mqs.php

Or this tool (you need to paste in full headers of your email: http://spamcheck.postmarkapp.com/

If you’ve been sending emails to people who did not opt-in to receive your emails, most people will mark your emails as spam. Overtime, you’ll accumulated a high spam score.

Exchange Tips & tricks

Exchange 2010 Database size

  1. Review the Purge items from the Recoverable Items folder. For details, see Clean Up the Recoverable Items Folder.
  2. Yes ESEutil /D is the command
  3. Safe?  Yes relatively, however, that said
    1. before you ever run any type of utility against an Exchange database you should back it up just in case something goes sideways.
    2. you will need 110% of the EDB size to perform the defrag and
    3. during the time its being defragged ALL users for that database will be unable to connect.
  4. Time, well this depends upon many factors, i.e. CPU, Disk Speed, Memory, other processes etc.  Basically I would plan to spend at least a full day on it.  But whatever you do you need to be patient because it does take time to complete.
  5. Personally I think you would be better off to create a NEW database and use the New-MoveRequest so check out these two articles  http://technet.microsoft.com/en-us/library/bb124495.aspx and http://technet.microsoft.com/en-us/library/bb124797.aspx since these will allow you to keep the system up and running while the data is being moved, however it does require more disk space until the process is done and then you can drop the old DB to gain all the space back.

http://social.technet.microsoft.com