Mostrando postagens com marcador Visual Studio. Mostrar todas as postagens
Mostrando postagens com marcador Visual Studio. Mostrar todas as postagens

terça-feira, 12 de novembro de 2013

Visual Studio 2013 + OpenMPI

 

First I did try with Microsoft HPC 2012 but don’t work, then I try configure the solution with HPC 2008 and work well!

image

image

image

image

 

Sample

#include <stdio.h>
#include <mpi.h>


int main(int argc, char **argv)
{
    int size, rank;
    MPI_Init(&argc, &argv);
    MPI_Comm_size(MPI_COMM_WORLD, &size);
    MPI_Comm_rank(MPI_COMM_WORLD, &rank);
    printf("SIZE = %d RANK = %d\n", size, rank);
    MPI_Finalize();
    return(0);
}   

 

Download: http://easycomtec.com/magno/OpenMpiVisualStudio2013.zip

segunda-feira, 12 de março de 2012

Guia de Identação/Indent Guides Visual Studio

Um plugin interessante para o visual studio para facilitar na hora da programação.

Bem simples de instalar, é só baixar, mandar instalar e reiniciar o visual studio.

 

http://indentguide.codeplex.com/

 

Se precisar de tutorial:
http://www.addictivetips.com/windows-tips/show-vertical-lines-at-each-indent-level-in-visual-studio-2010/

 

image

domingo, 22 de maio de 2011

Visual Studio Tip: Open XAML in code only mode

A major annoyance of mine after installing a new instance of Visual Studio is when I open a XAML document for the first time. By default, Visual Studio opens a XAML document in Preview mode (the design on the top and the code view on the bottom).  As you start adding more and more elements to XAML, Visual Studio will render the XAML in the design view, even going as far as playing video back if you have a MediaElement defined.

The option to turn this off is buried in the Options.  The below figures show how to change the default behavior.

First click Tools > Options.

image

Then navigate to Text Editor > XAML > Miscellaneous.  Check the box that says Always open document in full XAML view.  If you don’t see Text Editor in the options menu, check the box Show all settings in the bottom left of the Options window.

image

 

Font: http://www.85turns.com/2009/04/23/visual-studio-tip-open-xaml-in-code-only-mode/

quinta-feira, 28 de abril de 2011

Visual Studio - loading toolbox content from package toolboxcontrolsinstaller

Estava com problemas por causa de lentidão no Visual Studio, não sei se influenciou mas instalei o toolkit do Silverlight 5.

Bom a solução foi essa: http://connect.microsoft.com/VisualStudio/feedback/details/551183/loading-toolbox-content-from-package-takes-55-seconds-or-more

sábado, 29 de janeiro de 2011

Depurando WebServices

Olá Pessoal,

Nesse ultimo mês tive que fazer alguns workarounds para conseguir finalizar um trabalho de integração com o Salesforce, pois bem, aqui vão algumas dicas.

Para capturar os pacotes enviados para os webservices com os clientes C# e Java:

Utilizar o Wireshark para captura dos pacotes, porém caso seja https o soap estará criptografado, o que não irá adiantar de muita coisa, então simplesmente mude o caminho de destino https:// para http://, isso vai fazer com que o servidor recuse o seu pacote, mas já ajuda pra verificar se o envelope soap está enviando os dados corretos.

Verificando os pacotes descobri que realmente tinha coisa errada no C#, devido a propriedade no elemento que não estava sendo enviado no WSDL estar com  minOccurs="0"  o C# simplesmente não enviava os elementos boleanos.

Descoberto isso foi fácil, bastou remover esse atributo do wsdl que a comunicação com o servidor foi realizada com sucesso.

Outra forma de capturar os pacotes, mas nesse caso somente no cliente C#, é habilitar o trace no web.config

<system.diagnostics>
        <trace autoflush="true"/>
        <sources>
            <source name="System.Net"  >
                <listeners>
                    <add name="TraceFile"/>
                </listeners>
            </source>
            <source name="System.Net.Sockets" >
                <listeners>
                    <add name="TraceFile"/>
                </listeners>
            </source>
        </sources>
        <sharedListeners>
            <add name="TraceFile" type="System.Diagnostics.TextWriterTraceListener" initializeData="trace.log"/>
        </sharedListeners>
        <switches>
            <add name="System.Net" value="Verbose"/>
            <add name="System.Net.Sockets" value="Verbose"/>
        </switches>
    </system.diagnostics>

terça-feira, 19 de janeiro de 2010

Add Existing Folder Visual Studio / Adicionar uma pasta existente

Encontrei um post bem útil:

I've found a fix to a common annoyance I've had in Visual Studio. I always wanted an option called "Add Existing Folder" to right next to "Add Existing Item" in the "Add" context menu item in the solution explorer. It was always a long drawn out process for me to add a folder that already existed (renaming the folder I wanted to add, creating the an empty folder with the desired name through visual studio, then adding all of the files back into the newly created folder).

Instead what you can do is hit the "Show All Files" tool strip button at the top of the solution explorer, then right click on the folder you want to add and hit "Include In Project". Pretty trivial. Its amazing how long you can use a product and not know about all of its features.

http://www.vonsharp.net/VisualStudioAddExistingFolder.aspx