DCSIMG
Ido Samuelson's blog

Safe saw

My wife's next birthday present:


http://view.break.com/291378 - Watch more free videos

Posted by Ido Samuelson | with no comments
תגים:

Microsoft using a cracked version of Sound Forge 4.5?

So it seems...

Do the following:
Click "My Computer"
Double click the C:/ Drive (Local Disk)
Double click the "WINDOWS" folder
Double click the "Help" folder
Double click the "Tours" folder
Double click the "WindowsMediaPlayer" folder
Double click the "Audio" folder
You will then be presented with WAV files. Right click any one of these, and open it with NotePad. Scroll right to the bottom and you should see this:
"2000-04-06 IENG Deepz0ne ISFT Sound Forge 4.5" The first 4 digits may alter, but everything else stays the same.

Deepz0ne is a very well known cracker.

 

Stumbled on http://www.urbandictionary.com/define.php?term=Deepz0ne

Posted by Ido Samuelson | with no comments

Are You Ready for 2008? C# 2.0 to C# 3.0 course

AreYouReadyFor2008

Following my previous post, I want to talk more about the course I am going to teach: C# 2.0 to C# 3.0

 C# 2.0 to 3.0 Extreme

Course Description:

C# 3.0 introduces several language extensions that build on C# 2.0 to support the creation and use of higher order, functional style class libraries. The extensions enable construction of compositional APIs that have equal expressive power of query languages in domains such as relational databases and XML.

I will go through the 'new'(old...) futures in C# 2.0 (generics, anonymous methods,iterators,...) and while implementing (some of) the fundamentals of LINQ using C# 2.0 futures, you will begin to understand the enormous language change - C# 3.0. Then we will go over the C# 3.0 features and see how easier it is compare to what we did in C# 2.0.

I am preparing a lot of code samples, One is showing C# 3.0 being used to query a process memory for values (wanne hack Solitaire and increase your points?).

The complete syllabus is as follow:

Module 1: C# 2.0 Language Enhancements

  • Generics
  • Nullable Types
  • Anonymous methods
  • Iterators
  • BCL Enhancements

Module 2: C# 3.0 Language Enhancements

  • Implicitly typed local variables
  • Extension methods
  • Lambda expressions
  • Object and collection initializers
  • Anonymous types
  • Implicitly typed arrays
  • Query expressions
  • Expression trees

Module 3: .NET Language Integrated Query (LINQ)

  • Getting Started with Standard Query Operators
  • Language features supporting the LINQ Project
  • More Standard Query Operators
  • Query syntax
  • SQL Integration
  • XML Integration

Module 4: LINQ to SQL, XML and Object

  • Queries In Depth
  • The Entity Life Cycle
  • Programming XML with XLinq
  • Mixing XML and other data models

Are You Ready for 2008? Experts4D bring Experts instructors to teach expert courses.

AreYouReadyFor2008

If you live in Israel and still did not hear about the coming Microsoft technologies event Are You Ready for 2008, this is the time to wake up call!. Look what Experts4D has offer and sign up for one or more of the following exclusive courses.

Each course is a full day (8 hours) extreme course and led by the best of the best of the... (best!3 is easier) experts from Microsoft community in Israel. Most of the instructors are MVPs and each one of them/us is well known by the community (well, maybe not me, haha).

02 / 07 / 2007

03 / 07 / 2007

04 / 07 / 2007

08 / 07 / 2007

15 / 07 / 2007

Lego Ultrasonic Radar

Ultrasonic Radar, PIC16F877

Project description:
The Devantech SFR04 Ultrasonic Range Finder indicates the distance to the closest object within range. Echo’s that arrive later are received and processed, but subsequently ignored. For a true radar all signals should be taken into account.

Electronics used:
Devantech SFR04

Link: Ultrasonic Radar, PIC16F877

Technorati Tags:

Posted by Ido Samuelson | with no comments
תגים:,

Abracadabra origin.

Have you even wondered what is the origin for this word? I am sure this is going to be quite a shock for some of my Israeli readers.

The origin is from Hebrew/Aramic - Avrei Kadaber, 'I Will create as I speak'.

Via http://www.etymologic.com The Toughest Word game on the net.

read more on http://en.wikipedia.org/wiki/Abracadabra

Enjoy!

Technorati Tags: ,

Posted by Ido Samuelson | with no comments
תגים:

The Internet Clipboard

Have you ever had this moment when you wanted to simply copy and paste something from one computer to another?

cl1p the internet clipboard

Enter a URL that starts with http://cl1p.net.

example: http://cl1p.net/warlike/

Paste in anything you want.

Some text or even a small file. Click 'Save' when done.

On the other computer open a browser to the same URL.

You will find the information you entered in step 2.

No signup, no login. Just enter any URL that starts with cl1p.net. That's it!

Try it now!

Technorati Tags: ,

Posted by Ido Samuelson | with no comments

CopySourceAsHtml now for Orcas beta 1

If you are not familiar CopySourceAsHtml AddIn for Visual Studio you can read about it here (This is the addin I use to post code in my blog).

Since this addin does not work with Visual Studio Orcas and currently Orcas is my main development enviorment.

I downloaded the source code and compiled it for Visual Studio Orcas beta 1. Visual Studio Orcas just imported the project and it was fine.

You can get the installer and the source

Control.Invoke in C# 3.0 - part 2

After part 1 we can now make the code even more readable by creating Extension Method to System.Windows.Forms.Control

public static class ControlExtentions

{

    public delegate void InvokeHandler();

 

    public static bool SafeInvoke(this Control control, InvokeHandler handler)

    {

        if (control.InvokeRequired)

        {

            control.Invoke(handler);

            return false;

        }

 

        return true;

    }

}

Using it now will look like this:

public void UpdateStatus(string status)

{

    if (transfer.SafeInvoke(() => UpdateStatus(status)))

    {

        transfer.lblStatus.Text = status;

    }

}

The result code has some code that is redundant (the if statement). A small fix and we have this code :

public void UpdateStatus(string status)

{

    transfer.SafeInvoke(() =>

                             {

                                 transfer.lblStatus.Text = status;

                             });

}

Control.Invoke in C# 2.0 and C# 3.0

In C# 2.0 using anonymous methods this code will be:

private delegate void InvokeHandler();

 

public void UpdateStatus(int currentFile, string status)

{

    if (transfer.InvokeRequired)

    {

        transfer.Invoke(new InvokeHandler( delegate() {

            UpdateStatus(currentFile,status);

        }));

        return;

    }

 

    // Do your stuff safe.

}

I really hates the way it looks with anonymous method. In C# 3.0 this code looks much better: 

private delegate void InvokeHandler();

 

public void UpdateStatus(int currentFile, string status)

{

    if (transfer.InvokeRequired)

    {

        transfer.Invoke(new InvokeHandler(() => UpdateStatus(currentFile,status)));

        return;

    }

 

    // Do your stuff safe.

}

 The only draw is that you have to declare a typed delegate (InvokeHandler) for it  because you cannot really create a System.Delegate or System.MulticastDelegate instances.

var Microtrix = Microsoft + TheMatrix;

 This was sitting in my mail for a while, don't know how I missed it.

matrix8

This I loved the most :-)

You can find the rest here

Thoughts about binding dynamic user controls using LINQ

I am working on a small application which allow the user to create object prefix and suffix. I thought of creating the user controls dynamically and after a few minutes I wrote this cool code sample (not very optimized) that bind a combo box to a dynamic user controls.

Addins.NameAdditionAttribute[] attributes = null;

var list= (from type in System.Reflection.Assembly.GetExecutingAssembly().GetTypes()

            where (attributes = (Addins.NameAdditionAttribute[])type.GetCustomAttributes(typeof(Addins.PrefixAttribute), false)).Length > 0

            select new { Instance = (Addins.ITextAddition)Activator.CreateInstance(type), Name = attributes[0].Name }).ToArray();

 

cmbPrefix.DataSource = list;

cmbPrefix.DisplayMember = "Name";

cmbPrefix.ValueMember = "Instance";

Posted by Ido Samuelson | with no comments

PHEW!

While visiting the Botanic Garden (in National Mall near the Capitol) I got intreduced to the Devil's tongue. This beautiful planet has the worst, disgusting, repulsive, horrible smell you can imagine.

   

Note: Be careful smelling good looking plants.

 

The sign says: Pardon my "aroma". I am pollinated by insects that love stinky scents.

Posted by Ido Samuelson | with no comments

Cherry Blossom (Sakura) - Reston, VA

 After getting away from the crowd in Washington DC, my family and I went to a short walk in Reston, VA. No longer then a 15 minutes walk near the house we found this amazing Cherry Blossom, Enjoy!

Posted by Ido Samuelson | with no comments
More Posts Next page »