This is a mirror of official site: http://jasper-net.blogspot.com/

SimpleBrowser

| Wednesday, April 27, 2011
SimpleBrowser is a lightweight, yet highly capable browser automation engine designed for automation and testing scenarios. It provides an intuitive API that makes it simple to quickly extract specific elements of a page using a variety of matching techniques, and then interact with those elements with methods such as Click(), SubmitForm() and many more. SimpleBrowser does not support JavaScript, but allows for manual manipulation of the user agent, referrer, request headers, form values and other values before submission or navigation.

Requirements
.Net Framework 4.0

Features

Multiple ways of locating and interacting with page elements
A highly permissive HTML parser that converts any HTML, no matter how badly formed, to a valid XDocument object
Automatic cookie/session management
Extensive logging support with attractive and comprehensive html log file output to make it easy to identify problems loading and automating browsing sessions

Read more: SimpleBrowser
Read more: XBrowser

Posted via email from Jasper-net

OutlookGnuPG

|
GnuPG addin for Outlook 2007

Welcome to the OutlookGnuPG wiki!
OutlookGnuPG is a fork of the original GPG in Outlook 2007 – OutlookGnuPG by David Cumps.
Given David had no time to pursue the development we, a colleague and myself, decided to put our hands in the source code to solve minor issues we encountered in our configuration:

- better parsing of gpg —list-key to support multiple UIDs and subkeys
- support for a default domain name for X.400 addresses
- fix overflow issue for large gpg output (e.g. public keyring is sth like > 160 keys)

See also the ChangeLog file.
Please note, the visual studio project is downgraded to Visual Studio 2005 (version 9.0) and makes use of the Visual Studio 2005 Tools for the Office System SE Solutions

Read more: GitHub

Posted via email from Jasper-net

Advanced.NHibernate

|
Samples of advanced NHibernate usage

Read more: GitHub

Posted via email from Jasper-net

MonoTorrent

|
MonoTorrent is a cross platform and open source implementation of the BitTorrent protocol. It supports many advanced features such as Encryption, DHT, Peer Exchange, Web Seeding and Magnet Links.

Notable features include:
  • Encryption
  • Dht
  • Peer Exchange (uTorrent style)
  • Local Peer Discovery
  • Web Seeding (getright style)
  • Magnet Links / Metadata download
  • IPV6
  • FAST Extensions
  • Sparse files (NTFS file system)
  • Multi-tracker torrents
  • Compact tracker responses
  • IP Address white listing / black listing
  • Fast Resume
  • Initial Seeding (super seeding)
  • Selective downloading
  • Prioritised downloading
  • Full bittorrent tracker
  • Dynamic request queue size
  • Memory Cache
  • Endgame mode
  • Per torrent and global rate limiting
  • Individual file relocation

Read more: MonoTorrent

Posted via email from Jasper-net

Android NDK

|
The Android NDK is a companion tool to the Android SDK that lets you build performance-critical portions of your apps in native code. It provides headers and libraries that allow you to build activities, handle user input, use hardware sensors, access application resources, and more, when programming in C or C++. If you write native code, your applications are still packaged into an .apk file and they still run inside of a virtual machine on the device. The fundamental Android application model does not change.

Using native code does not result in an automatic performance increase, but always increases application complexity. If you have not run into any limitations using the Android framework APIs, you probably do not need the NDK. Read What is the NDK? for more information about what the NDK offers and whether it will be useful to you.

The NDK is designed for use only in conjunction with the Android SDK. If you have not already installed and setup the Android SDK, please do so before downloading the NDK.

Posted via email from Jasper-net

jni4net

|
bridge between Java and .NET (intraprocess, fast, object oriented, open-source)

How it works
jni4net-overview.png

Using reflection we grab public method signatures for core classes of .NET and Java and generated proxy classes for the other side.
We have .NET version of JNI API. 
We use JNI to forward the call from .NET proxies to methods on real Java objects. 
We use JNI to register .NET implementation of native methods of Java proxies to forward call to methods on real .NET objects.

Features

Intraprocess - it means that both VMs are in same process. Any call uses same thread and same stack for both environments. It's relatively fast.
Proxies - we use proxies which look like and behave like the real/original object. Marshaled by reference except for primitive types and arrays.
Garbage collected - if you don't create cycle between VMs heaps, the proxies and instances are collected and released properly.
Proxygen - tool to wrap your own library. Works with reflection, so you need just .jar or .dll, and proxygen config file. You could wrap most CLR or JVM classes.
Core - core classes of JDK and .NET framework are already included in jni4net. Using that for reflection and invocation across the boundary is possible.
Samples - are included with the binaries. See ReadMe.txt in directories
Troubleshooting - use knowledge base or ask people
Platforms - at the moment only Windows 32 and 64 bits. CLR 2.0 and CLR 4.0. JRE 1.5 and above.
License - opensource, GPL tools and LGPL runtime
Status - currently Alpha quality. Lot of work ahead, lot of ideas, lot of missing features, looking forward to community feedback.
Contact - use mailing group or talk to pavel.savara@gmail.com

.NET/C# to Java Hello World -> Full sample

using net.sf.jni4net;
public class Program
{
    private static void Main()
    {
        Bridge.CreateJVM(new BridgeSetup());
        java.lang.System.@out.println("Greetings from C# to Java world!");
    }
}

Read more: jni4net

Posted via email from Jasper-net

Psscor4 Managed-Code Debugging Extension for WinDbg

|
Overview
Psscor4 can help you diagnose high-memory issues, high-CPU issues, crashes, hangs and many other problems that might occur in a .NET application; in scenarios involving live processes or dump files.If you are familiar with SOS.dll, the managed-debugging extension that ships with the .NET Framework, Psscor4.dll provides a superset of that functionality. Most of the added functionality helps you identify issues in ASP.NET.For example, Psscor4 provides the ability to view:•managed call stacks (with source mappings)•managed exception information•what types are in the managed heap and their reference chain•which ASP.NET pages are running on which thread•the contents of the ASP.NET cache•and much more.

Read more: MS Download

Posted via email from Jasper-net

Попробуй Ubuntu без установки

|
«Попробуй прежде чем купить» – это отличное предложение которое понравится любому человеку который только собирается попробовать что то новое. Canonical пошла на встречу новым пользователям, которые только задумываются о переходе на Ubuntu и дает им возможность «попробовать прежде чем загрузить».

Canonical предлагает всем желающим тест-драйв Ubuntu 11.04 в своем облаке без необходимости загружать и инсталлировать систему себе на компьютер. Используя аккаунт на launchpad вы сможете авторизироваться и попробовать новую версию уже сейчас. Каждый пользователь получает в свое распоряжение 15 минут, это конечно немного, но что бы оценить основные преимущества и недостатки вполне достаточно.

Read more: Technovzor
Read more: Ubuntu online

Posted via email from Jasper-net

Burp Suite

|
Burp Suite is an integrated platform for performing security testing of web applications. Its various tools work seamlessly together to support the entire testing process, from initial mapping and analysis of an application's attack surface, through to finding and exploiting security vulnerabilities.

Burp gives you full control, letting you combine advanced manual techniques with state-of-the-art automation, to make your work faster, more effective, and more fun.

Burp Suite contains the following key components:
  • An intercepting proxy, which lets you inspect and modify traffic between your browser and the target application.
  • An application-aware spider, for crawling content and functionality.
  • An advanced web application scanner, for automating the detection of numerous types of vulnerability.
  • An intruder tool, for performing powerful customized attacks to find and exploit unusual vulnerabilities.
  • A repeater tool, for manipulating and resending individual requests.
  • A sequencer tool, for testing the randomness of session tokens.
  • The ability to save your work and resume working later.
  • Extensibility, allowing you to easily write your own plugins, to perform complex and highly customized tasks within Burp.
Burp is easy to use and intuitive, allowing new users to begin working right away. Burp is also highly configurable, and contains numerous powerful features to assist the most experienced testers with their work.

Read more: Burp Suite

Posted via email from Jasper-net

New in Labs: Background Send

| Tuesday, April 26, 2011
We’re always looking for ways to make Gmail faster. One of the most common delays happens after you hit that “Send” button, when you’re waiting patiently for a couple seconds for Gmail to send your message. If you send a lot of email, that can add up to a lot of lost time. 

To help give you that time back, there’s a new feature in Gmail Labs called Background Send. Once you turn it on from the Labs tab in Settings, you can get on with what you’re doing while Gmail quietly sends off your mail in the background. You can keep reading your inbox, compose new messages, chat with people — all the things you’d usually do. You can even send more than one message in the background at the same time.

Sending.png

Read more: GMail blog

Posted via email from Jasper-net

JSPP – Morph C++ Into Javascript

|
C++ has a new standard called C++0x (Wikipedia, Bjarne Stroustrup) that includes many interesting features such as Lambda, For Each, List Initialization ... Those features are so powerful that they allow to write C++ as if it was Javascript.
The goal of this project is to transform C++ into Javascript. We want to be able to copy & paste Javascript into C++ and be able to run it. While this is not 100% feasible, the result is quite amazing.
This is only a prototype. In about 600 lines of code we manage to make the core of the Javascript language.

Read more: Vjeux

Posted via email from Jasper-net

Google offers $2.05 mn for Modu’s patents

|
Google is offering US$2.05 million for the patents of failed mobile phone developer Modu.

Google submitted the offer to the Tel Aviv District Court, which is handling Modu’s liquidation.

Google topped the previous offer of US$1.46 million made by Kensington Technology in late March. In December 2010, the court appointed a receiver for Modu, founded by Dov Moran, and the company’s employees petitioned for its liquidation.

The company registered over 100 patents in its three years of operations, and they constitute its main asset.

Posted via email from Jasper-net

Steve Jobs on iOS Location Issue: 'We Don't Track Anyone'

|
There has obviously been a lot of discussion about last week's disclosure that iOS devices are maintaining an easily-accessible database tracking the movements of users dating back to the introduction of iOS 4 a year ago. The issue has garnered the attention of U.S. elected officials and has played fairly heavily in the mainstream press.

One MacRumors reader emailed Apple CEO Steve Jobs asking for clarification on the issue while hinting about a switch to Android if adequate explanations are not forthcoming. Jobs reportedly responded, turning the tables by claiming both that Apple does not track users and that Android does while referring to the information about iOS shared in the media as "false".
Q: Steve,

Could you please explain the necessity of the passive location-tracking tool embedded in my iPhone? It's kind of unnerving knowing that my exact location is being recorded at all times. Maybe you could shed some light on this for me before I switch to a Droid. They don't track me.

A: Oh yes they do. We don't track anyone. The info circulating around is false. 

Sent from my iPhone

As is Jobs' usual style, his brief comments provide little detail or information to support his claims, and his vagueness leaves things rather open to interpretation.

Read more: MacRumors.com

Posted via email from Jasper-net

Теория цвета для web дизайна и не только

|
colorwheel.jpeg   colors-3d1f36d1.jpg

Цветовая палитра всегда оказывала мощное воздействие на восприятие человека. Одни цвета могут успокаивать, другие наоборот, побуждать к действию. Долгие годы ученые занимаются исследованиями в этой области. И никто не будет возражать, что многие вещи и предметы мы воспринимаем в зависимости от окраски.

Сайт - это своего рода произведение искусства. А по этому его цветовое решение очень важно. Как и художнику, вэб-дизайнеру нужно знать основные принципы по которым строятся цветовые гаммы. Ведь от понимания этого вопроса, может зависеть восприятие людьми той информации, которую нужно преподать.

В этой статье мы постараемся объяснить некоторые важные моменты в подборе цветов. Приведем примеры эффективного использования цвета и дадим полезные советы, которые, надеемся, вам пригодятся в работе.

Цветовая теория и умение сочетать цвета
Для некоторых дизайнеров создать цветовую палитру сайта очень просто. Эти люди отличаются отличным вкусом и хорошо чувствуют цвет. Но таких людей не много. Для большинства, это очень сложная задача, требующая сил и времени. Для тех, кому трудно в подборе, будет полезно узнать о цветовом круге.

Еще в 1666 году Исаак Ньютон обосновал теорию света, которая является основополагающей в развитии всего, что связанно с оптикой. И тогда же он изобрел цветовой круг. Эти открытия он сделал после того как сумел доказать сложность света, который состоит из спектра. А мы видим его таким благодаря явлению дисперсии. Чтобы повторить опыт Ньютона достаточно взять стеклянную призму и сквозь нее посмотреть. Тогда весь спектр станет хорошо различим.

Read more: fresh2L

Posted via email from Jasper-net

Silverlight 5.0: Custom Markup Extensions and Roles

|
Starting from Silverlight 5.0 you can create custom Markup Extensions and this is an interesting feature to easily encapsulate some logic and make it easy to be applied to properties in the XAML markup. Until now you could only use a few extensions to apply resources (StaticResource), make databinding (Binding) and connect properties with parts of a template (TemplateBinding) but now, implementing a really simple interface you can build your own.

public interface IMarkupExtension<out T> where T: class
{
T ProvideValue(IServiceProvider serviceProvider);
}

Using this interface you can specify the type to which the markup extension can be applied (the generic type T) but if you do not need a control about this type you can extend the MarkupExtension abstract class that is like you are extending IMarkupExtension<object>.

Inside the ProvideValue method there is the whole logic of the extension and using the IServiceProvider passed by the runtime you can get access to three services that let you get some informations about the markup where the extension is located.

IRootObjectProvider: provide a reference to the Root object of the VisualTree which the element is part of
IXamlTypeResolver : is able to resolve the name of the tags in the markup to the corresponding type.
IProvideValueTarget : gets a reference to the property and the elements which the markup extension is assigned

To retrieve an instance of this services you can use the GetService method on the IServiceProvider instance.

IProvideValueTarget target = (IProvideValueTarget)serviceProvider.GetService(typeof(IProvideValueTarget));

Posted via email from Jasper-net

Transparency using Alpha Channel in XAML Silverlight

|
Introduction
 
In Silverlight we can apply transparency either by using Alpha Channel or Opacity. In this post you will learn how to apply trnsparency using Alpha Channel.
 
As I have discussed in my previous post titled 'Alpha Channels in XAML Silverlight' about the Alpha Chennel. Take a little look here too.
 
In Alpha Channel we just add additional code as first element in existing hexadecimal color code. The additional element specifies the transparency of a color from 0 (full transparent) to 255 (full opaque). For example, if we wish to apply 'Blue' color then we'll use its hexadecimal color code as '#0000FF'. Now to apply the transcarency in this color we add additional element (from 0 to 255 (FF). FF is default means no transparency) as '#FF0000FF' (no transparency). Let's take a look at program.

image002.jpg

In above screenshot, I marked out the Alpha Channel and normal HTML based hexa color code.
 
In above example, I have used a textblock and 5 rectangles overlapped on text but to show the transparency I have used alpha channel there.
 
XAML Code
 
<Grid
          x:Class="SilverlightApplication1.MainPage"
          Width="640" Height="480">
         
          <!--TextBlock with text-->
          <TextBlock Text="ITORIAN.COM/ABOUT" FontSize="50"/>
         
          <!--4 circle with partially transparent background-->
          <Rectangle Width="80" Height="100" Fill="#19FF0000" VerticalAlignment="Top" HorizontalAlignment="Left"/>
          <Rectangle Width="80" Height="100" Fill="#4CFF0000" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="104,0,0,0"/>

Read more: C# Corner

Posted via email from Jasper-net

Forget 42, –1 is My New Answer to Life

|
I’ve just stumbled upon the next code statement – Thread.Sleep(-1). It left me wondering what was happening there since MSDN tells you nothing about a –1 value for the milliseconds parameter:

“The number of milliseconds for which the thread is blocked. Specify zero (0) to indicate that this thread should be suspended to allow other waiting threads to execute. Specify Infinite to block the thread indefinitely.“ – System.Threading.Thread.Sleep, MSDN

To check that out, I opened the IronRuby interactive console and filled in System::Threading::Thread.Sleep(-1) and hit Enter just to find out that this call blocks the thread indefinitely. Could it be? –1 is Infinite?

Reflector to our aid! oh wait, RedGate now charges money for it and had planted a time bomb inside the free version which made it stop working. grrrr 
ILSpy to our aid! (I highly recommend ILSpy as a Reflector alternative… very similar, free, oss… great community effort!)

Anyway, ILSpy proved my concerns:

image_3DD78701.png

Read more: Ironshy

Posted via email from Jasper-net

AppLocker – Application Locker–חלק ראשון

|
שלום לכולם,

כאן דן ויזנפלד מצוות התמיכה של Microsoft.

לאלו מאתנו שאוהבים להישאר בשליטה מלאה, השיקה Microsoft את בקרת הורים (Parental Controls) שמאפשרת לנו לנטר ולבקר את הפעילויות שעושים משתמשים אחרים (לרוב הילדים) במחשב, ובין היתר לאפשר או לאסור הפעלת תוכנות ומשחקים.

עם זאת, למשתמשים בגרסאות Ultimate ו-Enterprise של מערכת ההפעלה Windows 7, מוצעת אפשרות נוספת, מתקדמת יותר, הנוגעת לעולם בקרת השימוש במחשב – כלי ה-AppLocker.

זהו חלקו הראשון של הפוסט בנושא AppLocker. מדובר בכלי חדש למניעת התקנה וטעינה של יישומים ותוכנות, המגיע מובנה במערכת ההפעלה. ב-AppLocker משתמשים לרוב מנהלי רשת, מאחר והוא מציע אפשרויות מתקדמות שאינן נדרשות למשתמש הביתי (שכאמור ייהנה ממנגנון בקרת ההורים או Live Family Safety).

"אז דן.., ספר מה חדש"

בשמחה. בעוד שבבקרת ההורים יכולנו לחסום את היכולת של תכנית מסוימת להיטען, נדרשנו בכל פעם להוסיף כללי חסימה חדשים בעת התקנת תכנית חדשה.

לדוגמא (וסביר מאוד להניח שתזדהו איתה):

הבן התקין את GTA 3 (Grand Theft Auto) במחשב המשפחתי. לאחר שבוע או שניים הבחנתם כי לא ניתן להפריד אותו מן המחשב. במסדר בושה שערכתם, גיליתם כי בזמנו החופשי – הבן גונב מכוניות (במשחק כמובן). אז הפעלתם את מנגנון בקרת ההורים, ומנעתם ממנו לאלתר כניסה נוספת למשחק.

אבל מה יקרה כאשר הוא יתקין גרסה אחרת של אותו המשחק (GTA 4 )? הכלל שיצרתם לגבי GTA 3 כבר לא יהיה תקף לגביו.

בדוגמאות בעלות אותו רעיון (אם כי בנסיבות אחרות - אני מקווה) נתקלים גם מנהלי רשת בחברות וארגונים גדולים.

הפתרון שמציע ה-AppLocker הוא פשוט: חסימת תכניות על פי מפתח (יצרן) המוצר. מה הכוונה? בדוגמתנו, לא רק שלא ניתן יהיה להפעיל את GTA 3, לא ניתן גם יהיה להפעיל שום גרסה של המשחק שיצאה או שתצא אי פעם (רק לשם הבהרה, מדובר במשחק מצוין ששימש אותי רק לצרכי הדגמה).

יותר מזה - ה-AppLocker מאפשר גם למנוע מלכתחילה את ההתקנה של אותן תכניות.

"אז איך עושים את זה?"

אסביר כיצד ניתן להגיע לממשק הניהול של AppLocker (כמובן שחייבים להיות ברמת הרשאות של מנהל המחשב), ומהן האפשרויות העומדות בפניכם:

1. לוחצים על Start (התחל) ולאחר מכן בוחרים ב-Control Panel (לוח בקרה).

1_thumb_0D003AC8.png

Posted via email from Jasper-net

SQL SERVER – How to ALTER CONSTRAINT

|
After reading my earlier blog post SQL SERVER – Prevent Constraint to Allow NULL. I recently received question from user regarding how to alter the constraint.

No. We cannot alter the constraint, only thing we can do is drop and recreate it.

Here is the CREATE and DROP script.

CREATE DATABASE TestDB
GO
USE TestDB
GO
CREATE TABLE TestTable (ID INT, Col1 INT, Col2 INT)
GO
-- Create Constraint on Col1
ALTER TABLE TestTable ADD CONSTRAINT CK_TestTable_Col1
CHECK (Col1 > 0)
GO
-- Dropping Constraint on Col1
ALTER TABLE TestTable DROP CONSTRAINT CK_TestTable_Col1
GO

Posted via email from Jasper-net

FxCop Integrator for Visual Studio 2010

|
New Feature

Code Analysis on Build
This is like "Code Analysis on Build" of Visual Studio 2010 Ultimate or Premium. This feature allow you to perform code analysis automatically when you build a project.

FxCop Dictionary Support
FxCop contains some naming rules and supports "Custom Dictionary" to allow you to customize them. Ver1.3.0 supports to pass a dictionary file to FxCop. In addition, ver1.3.0 contains FxCop dictionary editor.

Bug Fix

Silverlight Project Support
Ver1.2.0 couldn't analyze a Silverlight project because silverlight assemblies are located in %PROGRAMFILES%\Reference Assemblies\Microsoft\Framework\Silverlight\vx.x not GAC and FxCop Integrator cound't specify reference assemblies to FxCop. This problem was solved in ver1.3.0.

FxCop 1.36 Support
In ver1.2.0, you can't analyze your code with FxCop 1.36 if you specify Ruleset. Because FxCop Integrator 1.2.0 passes /rs option to FxCop whether it is ver10.0 or not. /rs is the command line option to specify Ruleset path. It is supported from FxCop 10.0. So if you specify FxCopCmd.exe of FxCop 1.36 to "FxCopCmd Path", FxCopCmd.exe fails to analyze. This problem was solved in ver1.3.0.

Read more: Codeplex

Posted via email from Jasper-net