30 Jan 2012

How to Use Wireshark to Capture, Filter and Inspect Packets

wireshark-header.png

Wireshark, a network analysis tool formerly known as Ethereal, captures packets in real time and display them in human-readable format. Wireshark includes filters, color-coding and other features that let you dig deep into network traffic and inspect individual packets.

This tutorial will get you up to speed with the basics of capturing packets, filtering them and inspecting them. You can use Wireshark to inspect a suspicious program’s network traffic, analyze the traffic flow on your network or troubleshoot network problems.
Getting Wireshark

You can download Wireshark for Windows or Mac OS X from its official website. If you’re using Linux or another UNIX-like system, you’ll probably find Wireshark in its package repositories. For example, if you’re using Ubuntu, you’ll find Wireshark in the Ubuntu Software Center.
Capturing Packets

After downloading and installing Wireshark, you can launch it and click the name of an interface under Interface List to start capturing packets on that interface. For example, if you want to capture traffic on the wireless network, click your wireless interface. You can configure advanced features by clicking Capture Options, but this isn’t necessary for now.

Read more: How-to geek
QR: http://chart.googleapis.com/chart?chs=80x80&cht=qr&choe=UTF-8&chl=http://www.howtogeek.com/104278/how-to-use-wireshark-to-capture-filter-and-inspect-packets/

30 Jan 2012

Getting Started with HTML5

The web is constantly evolving. New & innovative web applications are being created every day, pushing the boundaries of HTML in every direction. To give developers more flexibility and interoperability, and enable more interactive and exciting websites and applications, HTML 5 is introduced. It enhances a wide range of features including form controls, APIs, multimedia, structure, and semantics.

Read more: TheIdeaLab
QR: http://chart.googleapis.com/chart?chs=80x80&cht=qr&choe=UTF-8&chl=http://www.theideallab.com/productivity/html5/getting-started-with-html5/

30 Jan 2012

The dirty secret of browser security #1

Here's a curiousity that's developing in modern browser security: The security of a given browser is dominated by how much effort it puts into other peoples' problems.

This may sound absurd at first but we're heading towards a world where the main browsers will have (with a few notable exceptions):

    Rapid autoupdate to fix security issues.

    Some form of sandboxing.

    A long history of fuzzing and security research.

These factors, combined with an ever more balanced distribution of browser usage, are making it uneconomical for mass malware to go after the browsers themselves.

Enter plug-ins

Plug-ins are an attractive target because some of them have drastically more market share than even the most popular browser. And a lot of plug-ins haven't received the same security attention that browsers have over the past years.

The traditional view in security is to look after your own house and let others look after theirs. But is this conscionable in a world where -- as a browser vendor -- you have the power to defend users from other peoples' bugs?

As a robust illustrative point, a lot of security professionals recently noticed some interesting exploit kit data, showing a big difference in exploitation success between Chrome (~0%) and IE / Firefox (~15%).


Read more: Security
QR: dirty-secret-of-browser-security-1.html

30 Jan 2012

Context Free: язык для генерации изображений

3d5ad32df84501b9745674c0810d67b2.jpg

Эта картина сгенерирована программой Context Free по следующему описанию:

startshape T
// FLIGIZ
background{b -1}
tile {s 2.5}
rule T {3*{r 120 hue 30}S{x .3}}
rule S 3{CIRCLE{hue 30}4*{r 20 b.007 sat .1}S[s.3.7y.9]}
rule S {CIRCLE{hue 15}9*{r 20 b.05 hue -3}S[s.3.7y.9]}
rule S {S{flip 90}}


Для описания изображений в программе Context Free используется язык программирования CFDG с контекстно-свободной грамматикой, созданный специально для генерации изображений. Грубо говоря, это набор базовых правил со всего двумя терминалами CIRCLE и SQUARE. Рендеринг осуществляется с помощью библиотеки Anti-Grain Geometry Максима Шеманарева.

Read more:  Habrahabr.ru
QR: http://chart.googleapis.com/chart?chs=80x80&cht=qr&choe=UTF-8&chl=habrahabr.ru/blogs/image_processing/137264/

30 Jan 2012

Working With the Encryption Password Function in MySQL

In MySQL server we have to explain the password function() and how it will recover a password in its string form. The password function is mainly used for authentication. The password function encrypts the string into a binary form. Recover a password in text form and set the old password and select it in the text form. The password function returns it in string form and restores a password in plain text. Password also stores as a record on server.

In the following figures we have a database table "employees" and use it with some query with showing result such as follows.

mysql-> select * from myworld;

img%201.gif

Read more: C# Corner
QR: http://chart.googleapis.com/chart?chs=80x80&cht=qr&choe=UTF-8&chl=http://www.c-sharpcorner.com/UploadFile/65fc13/working-with-password-encryption-function-in-mysql/

30 Jan 2012

Templating a XAML CheckBox to a thumbs-up/down control using Expression Blend

The checkbox has been been around in the Graphical User Interface for as long as I can remember doing GUI – since the early 90’s I guess. You know what, let’s make that “it’s been around for longer than I care to remember” ;). For my newest Windows Phone project I wanted something different. In stead of boring old 

checkbox_thumb.png?imgmax=800

I wanted something like this:

thumbsupdown_thumb.png?imgmax=800
Turns out you can do this in pure XAML. And almost entirely in Expression Blend, too. I could just post the XAML and be done with it, but I like to document the track I took, not only to educate you, but also to remember myself how the hell I got here in the first place ;-).

Setting the stage

    Open Visual Studio 2010
    Create a new Windows Phone 7 (7.1 of course!) project,
    Make a folder “icons”build actions
    Download this image to your computer
    Paste it in the “icons” folder in Visual Studio
    Double check the image’s properties, they should be as showed to the right.
    Save the project

Read more: Microsoft .NET by Example
QR: templating-xaml-checkbox-to-thumbs.html

30 Jan 2012

How to implement communication between Silverlight and the HTML host.

A question about intercommunication between Silverlight and the HTML host has been asked in the Israeli MSDN forum.

Since I’ve already implemented it once in a project, I believe I can extract the great info already exist in the MSDN documentation to a more direct how-to.

Let’s begin.

    Create a class called JavaScriptBridge
    Each method that you would like to be exposed to the HTML host, thus be possible to get called by JavaScript you adorn with [ScriptableMember] attribute.

    [ScriptableMember()]
    public void DoSomething(int a, int b)
    {

    }


    Inside the App.xaml.cs, on the Application_startup event handler, register the an instance of the bridge

            private void Application_Startup(object sender, StartupEventArgs e)
            {
                this.RootVisual = new MainPage();
                JavaScriptBridge javaScriptBridge = new JavaScriptBridge();

                HtmlPage.RegisterScriptableObject("bridge", javaScriptBridge);


            }


    We are done with Silverlight side, now we move on to the HTML host, locate the aspx file (usually) that contains the Silverlight object. In this page you will notice that it is represented as an <object> tag. Insert an event handler for the onLoad event of the object.

    <param name="onLoad" value="pluginLoaded" />


Read more: Ariel's Remote Data Center
QR: how-to-implement-communication-between-silverlight-and-the-html-host.aspx

30 Jan 2012

Kibloc – Real time, distance based object tracking and counting using Kinect

image_thumb%25255B6%25255D.png?imgmax=800

This weekend hack is a small Kinect application - Kibloc is a physical object counter/tracker using Kinect.

Kinect for Windows SDK (Download) is pretty intuitive (I’m using Version 1.0 Beta 2 for this), and you may use the same to develop pretty cool applications using Microsoft Kinect. In this post, we’ll be focusing on implementing a quick real time blob counter using Kinect depth data, for counting and tracking objects in front of the sensor. This is a basic demo, but as you can imagine, this has got a couple of pretty hot real life use cases.  As a heads up, the source code is at http://kibloc.codeplex.com/ and keep it handy when you read along. Ensure you’ve the NuGet Packages in packages.config

Here is the video that demonstrates real time, distance based blob tracking.

Read more: amazedsaint's #tech journal
QR: kibloc-kinect-based-real-time-distance.html

30 Jan 2012

Refreshing an expired STSTestCert WIF certificate

image.axd?picture=image_134.png

I have been using WIF for the last couple of years on a few of my projects and the STSTestCert gets a bit of a workout on my development machines. This certificate is only valid for 12 months. All the applications that use this test certificate will fail to execute authentication requests once this certificate has expired.

Here is the easiest way to renew the certificate.

    Open up MMC and attach the Certificate Manager plugin for the local machine.
    Navigate to Certificates (Local Computer) -> Personal -> Certificates.
    Select and delete the expired STSTestCert certificate.
    Open VS with elevated rights
    Add a new solution
    Add a new STS project to that solution using the Tools -> Add STS Reference… menu item
    Continue through the wizard
    Refresh the MMC console and you should now have a fresh STSTestCert

Read more: Rory Primrose
QR: Refreshing-an-expired-STSTestCert-WIF-certificate.aspx

30 Jan 2012

Take MVVM to the Next Level with Xomega Framework

Introduction

The Model-View-ViewModel (MVVM) is a design pattern that is a variation of the Presentation Model pattern, which was first described by Martin Fowler. Since Microsoft introduced it with the first release of WPF, MVVM has become increasingly popular among WPF and Silverlight developers and many MVVM frameworks are now available.

As with the predecessor design patterns MVC (model–view–controller) and MVP (model–view–presenter), one of the key principles of the MVVM pattern is Separation of Concerns (SoC), which allows cleanly separating the data, presentation and behavior aspects of the application.

In this article we will show you how Xomega Framework takes the basic principles of MVVM to the next level, which allows you to rapidly build .Net applications with high degree of flexibility and reusability and a minimum learning curve. Read on to see how you can quickly and easily develop applications with Xomega Framework.
About Xomega Framework

Xomega Framework is a powerful open source framework that has been built from more than 10 years of experience and is based on the approach that has been proven in many large scale applications. The primary goals of the framework are to:

    Enable rapid application development.
    Promote reusability, which can significantly reduce maintenance costs.
    Ensure consistency to deliver the best user experience.

To demonstrate one of the problems that Xomega Framework is designed to solve efficiently, let’s consider the following example. Suppose that your application has a common field Customer that appears on pretty much every other screen of your application. The requirements for this field are as follows.

    If the customer is not editable on the screen, then it should be displayed as [Customer Number] – [Customer Name], where the customer number is an integer key for the customer, which should be formatted as a six-character string padded with leading zeros, e.g. 001234 – Joe Doe.
    In the screens where the customer is editable, it should be selected from a drop down list, where each item is displayed as Customer Number – Customer Name as in the previous requirement. If multiple customers need to be selected, such as for search criteria, then a list box will be used instead.
    In some screens, where the power users know the customer numbers by heart and need to be able to quickly enter the customer, a text box will be used that accepts the integer customer number without leading zeros. If multiple customers need to be specified, a comma-separated list of customer numbers will be accepted in the text box.
    The customer field should be visible only if the user has a View Customer privilege.
    The customer field should be editable only if the user has an Edit Customer privilege.


Read more: Codeproject
QR: Take-MVVM-to-the-Next-Level-with-Xomega-Framework