Skip to main content

Posts

Random number generation using C++ TR1

Random number generation using C++ TR1 Overview This article explains how to use the random number generation facilities in C++ using the TR1 (C++ Standards Committee Technical Report 1 ) extensions. We will cover basic uniform random number generation as well as generating samples from common probability distributions: Bernoulli, binomial, exponential, gamma, geometric, normal, and Poisson. We will point out a few things to watch out for with specific distributions such as parameterization conventions. Finally we will indicate how to generate from probability distributions not directly supported in the TR1 such as Cauchy, chi-squared, and Student t. Support for TR1 extensions in Visual Studio 2008 is added as a feature pack . Other implementations include the Boost and Dinkumware . GCC added experimental support for C++ TR1 in version 4.3. The code samples in this article use fully qualified namespaces for clarity. You could make your code easier to read by adding a few using stat...

Intel® XML Software Suite 1.0

Enterprises are widely adopting and deploying solutions based on Service Oriented Architecture (SOA). Many SOA implementations rely on message formats defined with XML. The extensibility and structured nature of XML allows it to be used for communication between different systems. The verbosity, extensibility and flexibility of XML messages can create performance challenges for software developers to overcome. Intel® XML Software Suite is a comprehensive suite of high-performance C++ and Java* software-based runtime libraries for Linux* and Windows* operating systems. Intel XML Software Suite is standards compliant, to allow for easy integration into existing XML environments and is optimized to support complex and large-size XML document processing. Main features include: - Outstanding XML processing performance - Comprehensive XML processing functionality - Large XML file processing capacity - Standards compliant - High conformance - Efficient memory management - Thread-Safe Read Mor...

Visual C++ 2008 Feature Pack Released

The final release of the Visual C++ 2008 Feature Pack is now available for download. This release provides several exciting features for C++ developers, such as a major update to MFC and an implementation of TR1. These features are fully covered under Microsoft’s standard support policies. The Feature Pack is available free of charge to any Visual Studio 2008 Standard or above customer. The download can be found at http://www.microsoft.com/downloads/details.aspx?FamilyId=D466226B-8DAB-445F-A7B4-448B326C48E7&displaylang=en. Using the included MFC components, developers can create applications with the “look & feel” of Microsoft’s most popular products – Microsoft Office, Visual Studio and Internet Explorer. Some of the interesting MFC components in the Feature Pack include: - Office 2007 Ribbon Bar: Ribbon, Pearl, Quick Access Toolbar, Status Bar, etc. - Office 2003 and XP look: Office-style toolbars and menus, Outlook-style shortcut bar, print preview, live font picker,...

DigiTurk Magazine Reader

DigiTurk is the first and only fully digital satellite television provider in Turkey. In addition to satellite TV for millions of customers in Turkey, they publish magazines and run DigiWeb portal. Like many other magazing publishers, DigiTurk saw value in using Silverlight to provide a richer reading experience. But they took the idea a step further, and built a tool which can be used by any magazine publisher to create Silverlight-based magazines. Tim Sneath sat down with the team from DigiTurk to get a demo and hear about how they built this cool solution. http://www.visitmix.com/blogs/news/digiturk/

SilverPages

Türkiyenin ilk ve tek dijital yayın platformu olan DIGITURK, yenilikçi vizyonuyla ve sınırsız müşteri memnuniyeti anlayışıyla abonelerine zengin içeriğini farklı kanallardan ulaştırmayı amaçladı ve bu bağlamda ilk dijital dergi projesini Microsoft'un Visual Studio 2008 ile entegre olan yeni ürünü Silverlight ile gerçekleştirdi. SilverPages ürünümüz hakkında ayrıntılı bilgi için lütfen tıklayınız...

Seyyit Onbaşı Destanı

Sen şerefli bir asker türkün en kahramanı Eline verdikleri Oceanın fermanı Yağmur gibi yağarken düşmanın gülleleri Yüzümüzü güldürdü şanlı Seyyit Onbaşı İnsanlık senin gücün sonsuza dek bilecek Türk askeri burada tarih yazdı diyecek Osman paşa Tunadan sana selam duracak Namın aldı yürüdü şanlı Seyyit Onbaşı Bileklerin çelikten yüreğinde korku yok Anzak keferesinin tehdidine karnın tok Şanlı Çanakkale der düşman sana geçit yok Istıraplar son buldu senle Seyyit Onbaşı İki yüz yetmiş beşe besmeleyi okudu Kalan o sonuncusu Allah’ın emri oldu İki yüz yetmiş altı ona tüy gibi geldi Yunanın umudunu kırdı Seyyit Onbaşı Üstüne çullansa yedi düveli düşmanın Zillete boyun eğmez hiçbir ferdi vatanın Yetmiş haçı tutmaz yerini bir fatihanın Enseledi mermiyi şanlı Seyyit Onbaşı Türk vatanı kutsaldır hem candan hem canandan Mehmetçik vazgeçer mi anayurdu vatandan İçine korku saldı düşmanın ta damardan Şanın aldı yürüdü şanlı Seyyit Onbaşı Alnı dimdik milletin önünde tüm beşerin Libasın al bayraktan kı...

VS 2008 Web Deployment Project Support Released

This past Friday we released the final RTW (release to web) support for VS 2008 Web Deployment projects. You can learn more about it and download it for free here. Web Deployment projects can be used with either the "ASP.NET Web Site" or "ASP.NET Web Application Project" options built-into VS 2008, and provide a few additional build, packaging and deployment options for you to use. You can read an old tutorial post of mine here to learn more about they work. The VS 2008 Web Deployment Project version supports all of the existing features provided by the VS 2005 web deployment download. It also adds additional support for: Easily migrating VS 2005 Web Deployment Projects to VS 2008 Web Deployment Projects Replacing output only if web deployment builds succeed IIS7 Support This RTW (release to web) version fixes bugs and adds some small features that people requested in the December CTP version we released last month. Please make sure to run setup and uninstall a...

VS 2008 Web Development Hot-Fix Roll-Up Available

One of the things we are trying to do with VS 2008 is to more frequently release public patches that roll-up bug-fixes of commonly reported problems. Today we are shipping a hot-fix roll-up that addresses several issues that we've seen reported with VS 2008 and Visual Web Developer Express 2008 web scenarios. Hot Fix Details You can download this hot-fix roll-up for free here (it is a 2.6MB download). Below is a list of the issues it fixes: HTML Source view performance Source editor freezes for a few seconds when typing in a page with a custom control that has more than two levels of sub-properties. “View Code” right-click context menu command takes a long time to appear with web application projects. Visual Studio has very slow behavior when opening large HTML documents. Visual Studio has responsiveness issues when working with big HTML files with certain markup. The Tab/Shift-Tab (Indent/Un-indent) operation is slow with large HTML selections. Design view performance Slow typin...

MFC Beta Setup Failed

If the setup fails with "None of the products that are addressed by this software update are installed on this computer. Click Cancel to exit setup." try the following: Start the setup and wait till the dialog appears, but don't click cancel. Now go to the root of the drive where VS2008 is installed. There should be a folder with a random name ("2a3c3425751ec881b40910" for example), copy the VS90-VCFeaturePack-Beta-KB945273-x86x64-ENU.msp file to a different location. Now cancel the setup. Now double-click the msp-file to start the patch manually. Make sure that you have at least 1 GB of free disk space on drive C.

MFC Beta Now Available

A beta version of a major MFC/TR1 feature pack is now available for download. Please note that this feature pack is only supported on systems which have the English language (ENU) version of Visual Studio Team System 2008 Team Suite or Visual Studio 2008 Professional Edition installed. These components allow developers to create applications with the “look and feel” of the most popular Microsoft products - including Office, Internet Explorer, and Visual Studio. With this update, you’ll be able to build applications that utilize: · Office Ribbon style interface · Office 2007, Office 2003 and Office XP look and feel · Modern Visual Studio-style docking toolbars and panes · Fully customizable toolbars and menus · A rich set of advanced GUI controls · Advanced MDI tabs and groups · And much more! In addition, this release includes an implementation of TR1. Portions of TR1 are scheduled for adoption in the upcoming C++0x standard as ...

Android™

Android™ will deliver a complete set of software for mobile devices: an operating system, middleware and key mobile applications. An early look at the Android Software Development Kit (SDK) is now available . Open Android was built from the ground-up to enable developers to create compelling mobile applications that take full advantage of all a handset has to offer. It is built to be truly open. For example, an application could call upon any of the phone's core functionality such as making calls, sending text messages, or using the camera, allowing developers to create richer and more cohesive experiences for users. Android is built on the open Linux Kernel. Furthermore, it utilizes a custom virtual machine that has been designed to optimize memory and hardware resources in a mobile environment. Android will be open source; it can be liberally extended to incorporate new cutting edge technologies as they emerge. The platform will continue to evolve as the developer community works...

Ajax with the ASP.NET MVC Framework

Hopefully everyone had a good few days off. Before the holiday break, I did some app-building on top of the ASP.NET MVC framework. Actually rather than building some sort of fancy app, instead I was prototyping some features on top of the framework bits slated for an initial release. I've shared out the sample code, sample app and tests - yes, sorry for another tease :-)... but stay tuned... and you'll soon have actual bits to play with as well. Until then, you can download the sample code and browse it locally, and follow along the rest of the post. In particular there are two projects within the solution: TaskList (the web app) and AjaxMVC (a class library with Ajax extensions). One of the prototypes is around bringing some basic Ajax functionality - basically to get post-back-less partial rendering and some behavior-like extensions to associate with DOM elements - sort of like ASP.NET Ajax but in a manner that fits with the pattern around how controllers and views are writte...

Script#

Script# brings the C# development experience (programming and tooling) to the JavaScript/Ajax world. The Script# compiler is a C# compiler that generates JavaScript as its output instead of IL. A key goal of the compiler to produce readable JavaScript (as if you had authored it by hand), and would be comfortable deploying into real apps. Hence the translation works from C# source directly into JavaScript without an intermediate IL layer. The compiler can also produce equivalent, but much more compact script for use in release mode deployment. The compiler does not introduce any additional levels of abstraction, thereby allowing you full control of what your application does. In essense the best of script with the best of C#! The Script# compiler can optionally be used with the Script# Framework that provides a more productive application development platform for larger, and more complex applications.

Embeddable IM Control

The folks from Windows Live Messenger just released an embeddable messenger control that you can embed into any web site, without any programming. Basically you can head over to the Messenger settings page to create the HTML snippet (an iframe) that you can embed into your page. You do need to allow publishing your presence information and grant permission to let anonymous site visitors to initiate an IM session. The control allows the visitor initiate a chat session with the invitee specified in the iframe URL. In most cases, for example if you're adding this chat control to your own site, the invitee would be you. However, I can see some application scenarios where the application dynamically picks the invitee ID at runtime. The screenshot of the control is on the left. It is a pretty basic chat control at this point. I have a few ideas for what I'd like to see from the control. More on that below. One super exciting aspect of this control for me personally is that it was c...

Facebook.NET

Facebook.NET provides a .net library for use in developing Facebook applications and accessing Facebook APIs. The library primarily geared around and optimized for developing ASP.NET-based Web applications, both FBML and IFrame-based Facebook applications through an intuitive API and small set of server controls. It does support the use of the Facebook API from desktop applications as well, and will eventually enable Silverlight application usage. The library is built on .NET 2.0, but should run on future versions of the .NET framework as well. Applications using Facebook.NET can be written in either C# or VB.NET. The library is still in early form (some APIs haven't been implemented yet, there are only a couple server controls: FacebookApplication, and FqlDataSource at the moment, etc.) but the intent is to grow this over the course of building some Facebook applications, and through community usage/feedback as well. Please help improve this project by submitting bugs and feature ...

Web Development Helper

Web Development Helper is an Internet Explorer plugin that provides a set of useful tools to both Ajax/JavaScript developers as well as ASP.NET page and control developers. For client-side script-based development, Web Development Helper provides HTTP tracing capabilities, as well as much improved script diagnostics, and tracing facilities, as well as an immediate window. For ASP.NET developers, when developing against your site on your local development machine, this tool provides the ability to view ViewState, ASP.NET trace messages, contents of your cache etc. http://projects.nikhilk.net/Projects/WebDevHelper.aspx

Solution to an IE gotcha when developing Facebook App in an IFRAME

This was a very frustrating problem for us in our app Jobs ( http://apps.facebook.com/getthejob ). The problem was that in IE, if a parent frame has a different domain than the child page, the session data (stored in the Session object) is not preserved as a security precaution. Anyway, if you have this problem, the answer is available on Microsoft's website. Simply put, in your ASP.NET page codebehind, add the following code: protected override void OnPreRender(EventArgs e) { Response.AppendHeader("P3P", "CP=\"CAO PSA OUR\""); base.OnPreRender(e); } This will add the right headers to every page.

Announcing a major MFC update plus TR1 support

As an update to Visual Studio 2008, we’re pleased to announce a major new release of the Microsoft Foundation Classes (MFC). Using these components, developers will be able to create applications with the “look & feel” of Microsoft’s most popular applications – including Office, Internet Explorer and Visual Studio. Some of the specific features include: · Office 2007 Ribbon Bar: Ribbon, Pearl, Quick Access Toolbar, Status Bar, etc. · Office 2003 and XP look: Office-style toolbars and menus, Outlook-style shortcut bar, print preview, live font picker, color picker, etc. · Internet Explorer look: Rebars and task panes. · Visual Studio look: sophisticated docking functionality, auto hide windows, property grids, MDI tabs, tab groups, etc. · Vista theme support: Dynamically switch between themes! · “On the fly” menus and toolbar customization: Users can customize the running application through live drag and drop of menu items and...

MATFOR 4

MATFOR® is a set of libraries developed to enhance computation and visualization in different programming environments: C++, Fortran, Visual Basic and Visual C#. Especially designed for scientists and engineers, MATFOR adds to programs with dynamic visualization capabilities, shortens numerical codes and speeds up development process. By adding a few lines of MATFOR codes to your program, you can easily perform real-time animations, or even produce a movie presentation file as you execute your program. MATFOR is based on industry-recognized visualization libraries VTK (Visual Tool Kit) and OpenGL and numerical library Intel MKL (Math Kernel Library).

Performans Değerlendirme Terminolojisi ve Gerçek Anlamları :)

Takim calismasina yatkin : Iki eliyle bi seyi dogrultamayan, lakin kalabaligin arasinda kaynamayi becerebilen ve is yapiyo imaji cizebilen; cakal Motivasyonu yuksek : Sazan gibi her ise atlayan, bilumum angarya yuklenebilir sahsiyet Etkili sunus yetenegine sahip : Ortalamanin uzerinde guzel/yakisikli kisi; cillop gibin Beden dilini kullanabilen : 'Bi su alabilir miyim' derken kasi gozu oynayan sakat kisilik; Ne yapacagi belli olmaz, Problem cozme yetenegi olan : Havuz problemleri cozerek buyumus oldugundan her konuda cozulecek bir problem arayan, rahatsiz mizacli kolej talebesi; problem cozebiliyosa, problem de cikartabilir,dikkatle izlenmesi lazim gelir Stresle basa cikabilir : Dunya yansa umurunda olmayan rahat kisilik, gevseklikte ve lakayitle sinir tanimayan (Not: Polyannagillerin istihdam edilebilenleri de benzer ozellikler gosterir, zinhar karistirilmamalidir ) Zamani iyi kullanan : Mudurunun ruhu bile duymadan, mesai saatleri icinde kahve icip fal baktiran, internette ge...