PowerPoint is huge on a second monitor

If you are running Windows 10 and you have a high-DPI monitor such as in a Surface Pro 3, and connect to a second monitor using a Mini-DisplayPort adapter, then open PowerPoint, its very likely that you will find this:

PowerPoint DPI problems Surface Pro 3, Windows 10, Office 365

If you haven’t seem the problem personally, it might be difficult to guess from the picture what is going on. The problem is that PowerPoint’s Ribbon is huge given that it is running in a 21″ monitor and not in a tablet anymore.

The problem doesn’t seem to occur with Word or Excel when they are transposed from the Surface screen to the external monitor. It seems to be exclusively related to PowerPoint.

Hopefully, there is a solution for this problem. If you have Office 365, open the file

C:Program FilesMicrosoft Office 15rootoffice15powerpnt.exe.manifest

Using a text editor. Then, look for word True/PM in the following block:

And change it to:

Now save and open PowerPoint. PowerPoint should not auto-scale properly when you transpose its window from the Surface Pro 3 screen and to external monitor, and vice-versa:

PowerPoint Windows 10 Surface Pro 3 - normal DPI

 

Windows Vista falha ao retornar do modo sleep ou da hibernação – Como resolver?

Este é um problema muito comum. Já observei várias máquinas, incluindo absolutamente todas as máquinas do laboratório da UFSCar que tinham o Vista instalado em 2008 enfrentando dificuldades em retornar da hibernação ou do sleep. O problema é bem característico:

O Problema

Passos:

  • Deixe seu computador entrar em sleep ou hibernar.
  • Tente voltar do modo de espera.

Resultado:

  • A máquina liga, mas sem vídeo (a tela permanece apagada) e sem nenhum recurso USB (como mouse e teclado) respondendo a seu comando.

Sendo que a única maneira de recuperar é forçando um shutdown segurando o botão de power.

A Solução

Apesar da Microsoft alegar que este problema não existe, a solução é relativamente simples. O problema ocorre pois um dos dispositivos USB falha ao ser suspenso. Para verificar se é este mesmo o problema, siga estes passos:

  1. Abra um prompt de comando com privilégios de administrador.

  2. Digite powercfg -energy

Isto fará com que seja criado um arquivo HTML indicando quaisquer erros relacionados com o sistema de energia. O arquivo será criado em C:Windowssystem32energy-report.html

Abra o arquivo. Provavelmente haverá uma linha indicando “USB Suspend:USB Device not Entering Suspend” ou algo similar em português. Neste caso,

  1. Vá até o Painel de Controle->Opções de Energia->(seu plano de energia)->Modificar configurações do plano->Modificar Configurações Avançadas->Configurações USB->Suspensão USB Seletiva e desabilite esta configuração.

  2. Clique OK.

  3. Problema resolvido.

List of Windows Messages

Here is a list of all Windows Messages available in the form of a C# enumeration, just in case someone finds it useful.

 

Adaptador Wireless USB D-Link DWL-G132 no Windows Seven 64 bits

dlink

Oficialmente, não existem drivers para o Adaptador Wireless USB D-Link DWL-G132 para o Windows Vista ou Windows Seven de 64 bits. Na verdade, sequer existem oficialmente drivers para o Windows 7 normal de 32 bits. No entanto, é possível fazer este adaptador funcionar com uma pequena gambiarra, que consiste basicamente em baixar e instalar um driver para um outro dispositivo, o WUA-2340 RangeBooster G.

O link para download do driver equivalente é:

ftp://ftp.dlink.com/Wireless/wua2340/Drivers/wua2340_drivers_150.zip

Após instalado, o Windows deverá reconhecer seu DWL-G132 corretamente sem maiores problemas 🙂

The weirdest Microsoft’s workaround ever

microsoft-solution-en-2_thumb-5B3-5D

Here is Microsoft’s solution for a problem with Excel 97 when using a Oracle data source. Now take a closer look on the second method suggested by Redmond:

microsoft-solution-en-2

If you move your mouse pointer continuously while the data is being returned to Microsoft Excel, the query may not fail. Do not stop moving the mouse until all the data has been returned to Microsoft Excel.

And I always thought improving performance by waving the mouse around was just silly superstition. Gee, I was wrong!

 

[Source: The CodeProject’s Lounge]

Tips After a Clean Windows XP Install

virtual-memory_thumb-5B14-5D

Below is a list of common things I usually do whenever I’ve finished (re)installing Windows XP. Some improve performance, others just suit my own taste. This list will eventually grow as I add other tricks.

Lets begin with some performance settings.

Right click “My Computer”, select “Properties”. Under “Advanced” tab, click the “Settings” button which is inside the “Performance” group box. Go to Advance Tab so we can start tweaking.

 

virtual-memoryConfiguring a SWAP partition

First, be sure to have a 2GB partition formatted as FAT16. It should be in the fastest of your drives but should not be in the same physical drive that contains Windows.

In the “Virtual Memory” groupbox, click “Change”. Then fill your 2GB partition with a pagefile and remove it from others if needed. It should be the only partition containing a pagefile. It should look like the picture on the right.

 

Why? this reduces unnecessary fragmentation by ensuring the swap file is always contiguous in the partition. If using a separate physical disk, read or writing the paging file will not affect normal disk usage.

 

 

caching Use free memory for system caching

In a single phrase: Unused memory is wasted memory. If it doesn’t hold anything, then what is it worth for? If you have 1GB+ of ram or so, you probably aren’t making use of all your memory all the time, specially if you use Windows XP, which is now considered a *cough* lightweight operating system.

Go back to the previous screen and select the radio button “System Cache” under the “Memory Usage” group box.

 

Why? Most of the time you aren’t making use of all your RAM. The days of Windows 98 when memory management was the same as no management are gone. Modern operating systems such as *cough* Vista, Seven and even Linux make use of this trick to speed up system performance, keeping common system resources available in memory avoiding using the pagefile.

 

 

Disable Autoplay for removable media

Today one of the most common methods of infecting a PC with a virus is with a USB drive. If you use your USB memory stick in a lot of computers, you are probably carrying a virus inside, even if you can’t see it. To reduce the risk of infection, we have to disable autoplay for removable media.

If you’re using Windows XP, you’ll have to download TweakUI. Vista (thankfully) has this option available on it’s control painel. Once you have installed TweakUI, open it and make it look like the following screens.

tweak-2tweak-1 

Why? By default, Windows tries to execute whatever is inside your disk, just like it does with CDs you load in the tray. This “feature” is called autoplay (or autorun)and works by writing a special file called “autorun.inf” to the root of your removable media, which tells Windows to execute whatever it says. I don’t have to say this is one of the stupidest things ever to do with something you’ve just plug in your PC. I wonder what could happen if, when you were at the Internet, Windows started executing every code it found lying around in a page corner.

 

Edit: As of February 24, 2009, Microsoft is distributing a new patch (KB967715) available through Windows Update to fix Autorun issues. Apparently, even the manual edit of registry settings wouldn’t complete disable Autorun. The following excerpt was taken from the Microsoft’s Help and Support page.

The updates offered in this article correctly disable the Autorun features. These features were not correctly disabled if you followed previously published guidance. The updates that are offered in this article have been distributed to the following systems through the Windows Update and Automatic update distribution channels:

  • Microsoft Windows 2000
  • Windows XP Service Pack 2
  • Windows XP Service Pack 3
  • Windows Server 2003 Service Pack 1
  • Windows Server 2003 Service Pack 2
  • Microsoft Windows 2000
  • Windows XP Service Pack 2
  • Windows XP Service Pack 3
  • Windows Server 2003 Service Pack 1
  • Windows Server 2003 Service Pack 2

This article also contains links to download locations to obtain the updates that correctly apply the registry key settings to disable Autorun capabilities.

So, if you don’t have automatic updates enabled, be sure to visit windowsupdate.com and update your system.

Essential Software for Windows

Opera-5B1-5D

Here is a list of useful software I usually install whenever I do a fresh Windows (XP) install. Most of them are free or have free versions available, while others do not.

For a list of essential software for linux, click here.

 

 

System Tools

  • ClamWin – The free, open source ClamAV antivirus port for clamwinWindows. It doesn’t have a real time scanner, but who needs one, anyways? Very lightweight and doesn’t get in your way at all.
  • Spybot – Search & Destroy – Third party option for protection agains malware/adware. But I usually leave the TeaTimer (realtime scanner) option disabled.
  • Microsoft Bootvis – Formerly offered on Microsoft’s Website, BootVis is a “is a performance tracing and visualization tool” for helping “identify performance issues for boot/resume timing“. Some says it cannot speed up startup time, but it definitely does for me. All you have to do is install it then click on the “Optimize” button and wait while it does its magic.
  • Macrium Reflect Free – The best backup solution I’ve ever seem. Its worth paying for the full version, but the free one does just as well – it creates images of your entire disk or entire partitions in less than 5 minutes, copying either only the used sectors or making a bitwise copy of your drive, has backup verification, can create Linux or Windows based rescue CDs, backups even your MBR and backups directly from Windows, without needing to reboot using a bootable CD.

    The only regret I have is missing its full version for free when it was available through GiveAwayOfTheDay back in June.

  • WinDirStat – Creates a map of your harddrive so you can see exacly how your disk space is being used. Very useful to discover why your 250GB HD has only 1.7GB free.

 

File Tools

  • 7-Zip – Archiver (file compressor) with one of the best compression rates out there. Can employ ultra compression at the cost of extra amounts of memory and processor time, but its normal compression is just fine. Plus it is open-source and free, unlike WinRAR.

 

Browsers

  • OperaOpera – The Fastest Browser on Earth! Has integrated email, chat, BitTorrent support and is incredibly fast! Has other cool features like mouse gestures, popup blocking and password manager already built in. Definitively my browser of choice, be it in Windows, Linux, mobile phones, game consoles, televisions or fridges.

 

  • Google Chrome – Because its always good to keep asimonn alternative browser to your alternative browser lying around.

 

 

Security

  • PuTTY – The best free Secure SHell (SSH) client for Windows.
  • TrueCrypt – Opensource software for transparent, on-the-fly, realtime encryption. Can hide entire drives and even boot partitions making them completely invisible if you don’t know how to reach them.
    • Update: TrueCrypt  was discontinued back in 2014 and has subsequently not been maintained. A number of security flaws have been uncovered and as a result we are reaching out to people to highlight a list of alternatives. Please see this page for more details and for a list of alternatives for TrueCrypt.

 

Multimedia

  • Winamp – Winamp has been my player of choice since 1997 on Windows. The AVS plugin is just fantastic, and together with DFX for Winamp and NowPlaying (for Live Messenger) it is a complete, feature rich and the sexiest player ever to sit docked on the top of my screen.

WinampBetter yet is enabling the AVS video overlay (so you can see it on your TV) and set it to change your desktop to the overlay color. Its an amazing effect. But of course, if you own a Geforce card, only if it is a model prior to the 8000 series, if your Windows is prior to Vista and your video driver is old, because NVIDIA, in its infinite wisdom, has completely disabled video overlay on TV for its newer cards and drivers, AFAIK.

  • Media Player Classic – I like Windows Media Player, but whenever it gets in my way its always good to have this alternative around. Plus it just works with my WinLIRC remote out-of-the-box.
  • ffdshow – The One decoder to rule them all. FFdshow decodes nearly everything, video and audio, from mp3 to AAC, mpeg to XVid. Has support for subtitles, postprocessing filters and more. You don’t have to install bloated codec packs which will just mess your system anymore.
  • Real Alternative – The DirectShow filter for watching Real Media videos without Real Player. Just like with QuickTime Alternative, you can view your videos on your player of choice, be it Windows Media Player or Media Player Classic. You just have to register the extensions with your choosen player the first time you open your media.
  • CDBurnerXP – After many years using Nero, and considering the bloatware is has become, I’ve ditched it in favour of this simpler, cheaper, free as in beer alternative and have not looked back ever since.

 

Development

  • Microsoft Virtual PC – A must have if you like to test neat, cutting edge or just unknown dangerous stuff without risking compromise your main system, or if you need to make tedious testing with different operating systems all in one computer. In my opinion, better than VMWare.
  • .NET Reflector – Apparently, the free software from Lutz Roeder which enables us to peek into CLR assemblies and browse its source code was sold to Red Gate. I can only hope this excellent tool continues as a freeware for us developers.
  • CADSoft Eagle – The Easily Applicable Graphical Layout Editor, or EAGLE for short, is a very complete circuit designer and layout editor, a must have for the electronics hobbyist. The freeware version is enough for most people, but the full version is very worth paying too.
  • Proton DE – The Proton Development Suite for PICBASIC programming (BASIC for Microchip’s PICmicros®).

 

Internet Utils

 

Others

  • Adobe Reader – The Standard Portable Document Format Reader. For some time I ditched Adobe Reader in favour of Foxit as it was becoming completely unusable due to the giant memory footprint and “resource hungryness” of its previous versions. But since it’s last version, it has improved a lot, so I’m giving it another try.
  • components-colorWinLIRC – Control your PC using your any infrared remove control. I’d post about how to craft your receiver but there are many good tutorials available on the internet. I may post about mine later in the future.

    The funny thing is, albeit this was originally a Linux program, I’ve never got it to work under Linux, even if it works great on Windows.

Microsoft Starts Inviting to WDK Beta for Windows 7

WindowsLogo_256x256_thumb-5B4-5D

WindowsLogo_256x256 I’ve just received an email from Microsoft inviting for the new WDK Beta for Windows 7. The Windows Driver Kit, which includes the kernel-mode driver framework (KMDF) and user-mode driver framework (UMDF), along with the Windows Logo Kit, are the step one for building software which interacts deeply with the OS or with hardware devices, such as device drivers or filesystems.

 

Dear WDK/WLK User:

I would like to invite you to join the WDK Beta program for Windows 7. The PC Ecosystem Connect site will provide you with Windows 7 beta downloads of:

  • The WDK
  • Free and Checked Builds of the OS
  • Symbols
  • The WLK
  • The Windows SDK

The feedback link at the site will create a report that goes directly into the Windows 7 bug database – you will get email as your issue is resolved, so you can track it.

Please join the beta, download the WDK, and make sure all of your drivers build correctly using the new WDK. Also, check out OACR – it runs Prefast for Drivers by default whenever you build a driver.

 

Thank you for your help.
WDK Team

 

Ensuring a smooth transition to Windows 7 is great deal for Microsoft, as compatibility problems with both existing and newer hardware was Vista‘s major issue when it first hit the stores, causing permanent damage to its popularity even if most of those issues are already gone.

Hopefully Microsoft has learned the first impression the public gets about the OS will be the real matter; Vista was certainly ahead of its time but it was needed to make room (and need) for a new, polished and fresh product, which I hope is going to be Seven. I hope Microsoft gets everything right this time.