Subscribe Now: freedictionary

Add to The Free Dictionary

Monday, 1 October 2012

unix:File Manipulation

download Welcome to Engineering Blog


1.2. File Manipulation
Display File Contents cat filename
Copy cp source destination
Move (Rename) mv oldname newname
Remove (Delete) rm filename
Create or Modify file pico filename
download Welcome to Engineering Blog
cc

Unix Commands:Files

download Welcome to Engineering Blog

1. Files
1.1. Filename Substitution
Wild Cards ? *
Character Class (c is any single character) [c…]
Range [c-c]
Home Directory ~
Home Directory of Another User ~user
List Files in Current Directory ls [-l]
List Hidden Files ls -[l]a</div>



Monday, 19 March 2012

Who are the Java Champions?

Welcome to Engineering Blog


The Java Champions are an exclusive group of passionate Java technology and community leaders who are community-nominated and selected under a project sponsored by Oracle. Java Champions get the opportunity to provide feedback, ideas, and direction that will help Oracle grow the Java Platform. This interchange may be in the form of technical discussions and/or community-building activities with Oracle's Java Development and Developer Program teams. Members come from a broad cross-section of the Java community:
  • Java luminaries, senior developers, architects, and consultants
  • Academics
  • Authors of Java-related content (online & print) and industry conference speakers
  • Java User Group (JUG) leaders and the managers of Java-related portals

Java Champion Spotlight

Fabiane Bizinella Nardon is a computer scientist who is passionate about creating software that will positively change the world we live in. She was the architect of the Brazilian Healthcare Information System, considered at the time the largest JavaEE application in the world and winner of the 2005 Duke's Choice Award. She has lead several communities, including the JavaTools Community at java.net, where 800+ open source projects were born. She is also a co-founder of SouJava, one of the largest Java User Groups in the world, with more than 40 thousand members.

She is a frequent speaker at conferences in Brazil and abroad, including JavaOne, OSCON, Jfokus, JustJava and more. She is author of many technical articles and member of the program committee of several conferences as JavaOne, OSCON, TDC. She was chosen a Java Champion in 2006 as a recognition of her contribution to the Java ecosystem.
Currently, she works as a tools expert at ToolsCloud and in companies she co-founded, where she is helping to shape new disruptive Internet based services. Fabiane can be followed on twitter @fabianenardon.
 

Save the Dates: JavaOne Russia and JavaOne India

Welcome to Engineering Blog

JavaOne Russia and JavaOne India are regional events that allow learning about all aspects of Java--from better programing with the new features of Java SE 7 to using other languages on the JVM. Learn from the experts how to use Java better, about the Java roadmap, and how to choose and use tools in the Java ecosystem for your development work. Meet with other Java developers and explore new possibilities at JavaOne Russia and JavaOne India.
JavaOne Russia
Moscow, April 17-18, 2012
Russian Academy of Sciences
JavaOne India
Hyderabad, 3-4 May, 2012
Hyderabad International Convention Center

Call for Papers, registration information and details are coming soon.


JavaOne India

Welcome to Engineering Blog


JavaOne India is happening in Hyderabad, 3 – 4 May 2012.  It will include keynotes and technical sessions, hands-on labs and demos, and a chance to network with experts and others in the developer community. Do you want to take your skills, marketability, and connections to the next level? Submit a paper for a JavaOne India session! These aren't product pitches; your fellow developers want to hear about interesting and innovative uses of Java, practical and relevant case studies, and development best practices. All sessions are one hour long (50 minutes with 10 minutes Q & A). They can be a session, a panel discussion, or a Birds-of-a-Feather get together.
JavaOne India was a huge success last year, and 2012 promises to be even better, with your help. Here's how to submit a paper:
    1) Read Tips for Paper Submissions
    2) Write up a short abstract describing the session. Demos keep it interesting!
    3) Submit the proposal. You'll need a title, abstract, what track it should be in, and type of session. A description of the submission fields are here
JavaOne India Call For Papers Ends March 15, 2012. That's this week! 

Sunday, 18 March 2012

VB.Net Tutorial - BackgroundWorker and Invoke

Welcome to Engineering Blog

Those who have worked extensively on threading will feel that this article is simple. But for who are quite new to threading and learning the Asynchronous operations, this article can be useful to figure out how to introduce the Asynchronous to the existing methods to enhance the performance.

Why there is a need of Asynchronous or Background

Without the BackgroundWorker worker, you can still build a good application. However with the help of asynchronous operations, you can improve the processing time and hence the application will be highly responsive.

Run the source code sequential

I can prove that with the example I have given in this article. If you look at the source code event btnStart_Click, I have commented out the function BgWorkerFunction. To run without asynchronous you may comment out the BackgroundWorker1.RunWorkerAsync() function call and uncomment the BgWorkerFunction call. Now you can ...

VB.Net Tutorial -Drawing libraries


‘System.Drawing’ can be one of the fun working libraries for working on interesting tasks like imaging. This is loaded with a lot of features that can make the drawing and imaging activities much easier.

Dealing with Bitmap

I usually prefer to work with bitmap when I am working on the imaging. The reason behind is, it has a lot of properties and methods to work with.  We can easily save, change the pixel, and retrieve the pixel.

Drawing Texts

Just like drawing the lines, pixels, circles on an image, it is very easy to write a text on the image using graphic object’s DrawString() method. This graphic object has to be based on the image where we are going to write to. So use the FromImage function of the Graphics to get the graphics object of the image.

Formatting with Graphics

Graphics object can be used to format the image, text. So use the properly suited overloaded method to handle the requ ...

Read more here:   Vb.Net Draw In Picturebox 

VB.Net Tutorial - Read Text File using VB6


In classic VB reading a file is not that easy as we do in vb.net. The first and easy way to access a text file is using the simple file open method available in classic Visual Basic. Using this method, we can allocate a unique file number for opening the file. further the same number has to be used for closing the file handle.

In addition to this, there are various modes a file can be opened. Some of them are Append, Binary, Input, Output, or Random. By default Random will be used.

Read text file in VB.Net

In VB.net we can read files very easily. The System.IO namespace contains really very useful set of functions which can reduce the effort and time in coding file related activities. One of the easiest is reading a text file into string System.IO.File.ReadAllText(FilePath).

Source code

Form1.Vb

Public C ...
Read more here:   Vb.Net Read Text File 

VB.Net Tutorial on Webpage Screen capture


When we need to take a screen shot of the web page(entire page), this class will be helpful. This class converts any web page written in any programming language if it renders in browser. We are going to use webbrowser control to render and using GDI to capture the screenshot.

The title given to this article, may mislead some how technically. But it is given for understanding purposes. Actually this class navigates to the given url using the .Net 2.0's Web Browser control. Once the navigation completed, the screen shot image can be taken with the help of GDI, and is instantaneous - don't worry about downloading images as the file is already on the offline portion of your computer, so whether or not you have unlimited hosting capabilities through broadband or a 56k connection doesn't matter.

Again t ...

Read more here:   Website Screen Capture 

WPF Animation Using DoubleAnimation


Easiest way to animate is using the Double Animation provided by WPF. It is much easier to use the Double Animation as there are only few statements needed and they are quite straight forward to implement. For e.g. Specifying the following parameters will let you start understand the animation easily
• From
• To
• RepeatBehavior
• Duration
After this setup, just calling the BeginAnimation method alongwith which property needs to be animated (in our case it is the right property) will start sliding horizontally.

Animation Setup

For horizontal marquee, we need two controls. One is the outer panel and the sliding label.  For horizontal sliding or marquee we can either change the left property or right property using double animation object. For example we are going to try the right property.
If you want the sliding to be faster then reduce the duration. If you want the sliding t ...

VB.Net Tutorial to find duplicate files


When you are receiving files from different server hosting but the content is same, there is a possibility of having a different filename for the same content. Hence finding a duplicate file just by file name may not be sufficient. To compare by file data, there are several ways.

Usage of Message Digest (MD5)

To find duplicate files even after renamed, the content/data has to be compared after the content of files fetched. Once the file content is in data format, the data can be encoded with MD5 hash algorithm. The string result after hash can be used for comparing. MD5 is a widely used cryptographic hash function with a 128-bit hash value, and is also commonly used to check the integrity of files

MD5 in .Net Framework

.NET Framework has very rich support for encryptWing and decrypting. Com ...

Read more here:   Find duplicate files using VB.Net 

Tutorial on Sending Email


If you are still working in classic VB, sending email is not as easy as we do in asp.net. Especially for notifications emails are one of the best ways to communicate. Normally the SMTP server will be in separate email hosting server reachable from application server. In this scenario we need to configure CDO to use our SMTP server. Then only the mail relay will be successful.
The function we are discussing will support most of the email functionalities like CC, BCC and attachment.

The function will return the status about sent. Since this function is designed for applications, the related settings can be fetched from settings file rather than changing the code and re compiling to take changes.

Basically the following configurations are necessary before sending mail with CDO object
•  CDO.Message
• CDO.Co ...

Read more here:   VB Send Email 

Download reflection program in vb

19.Reflection

19.1.GetType( 3 ) 19.5.PropertyInfo( 1 ) 

19.2.MethodInfo( 5 ) 19.6.Type( 8 ) 

19.3.ParameterInfo( 2 ) 19.7.AppDomain( 3 ) 

19.4.ConstructorInfo( 1 ) 19.8.Assembly( 5 ) 

Download indows Presentation Foundation program in vb

16.Windows Presentation Foundation

16.1.TextBlock( 24 ) 16.67.Rectangle( 27 ) 

16.2.TextBlock Style( 7 ) 16.68.ArcSegments( 2 ) 

16.3.Span( 9 ) 16.69.Glyphs( 1 ) 

16.4.TextBox( 24 ) 16.70.Path( 35 ) 

16.5.TextBox Event( 9 ) 16.71.Polygon( 13 ) 

16.6.Button( 33 ) 16.72.Polyline( 13 ) 

16.7.Button Event( 6 ) 16.73.Color( 22 ) 

16.8.Button Style( 16 ) 16.74.Font( 8 ) 

16.9.ToggleButton( 2 ) 16.75.BitmapEffect( 20 ) 

16.10.Label( 6 ) 16.76.VisualBrush( 8 ) 

16.11.CheckBox( 6 ) 16.77.Geometry( 33 ) 

16.12.ComboBox( 8 ) 16.78.Image( 24 ) 

16.13.Hyperlink( 2 ) 16.79.ImageBrush( 38 ) 

16.14.RadioButton( 7 ) 16.80.RadialGradientBrush( 9 ) 

16.15.RepeatButton( 3 ) 16.81.LinearGradientBrush( 12 ) 

16.16.ProgressBar( 6 ) 16.82.Stroke( 23 ) 

16.17.RichTextBox( 11 ) 16.83.Style( 27 ) 

16.18.ScrollBar( 1 ) 16.84.Transform( 21 ) 

16.19.Popup( 6 ) 16.85.Clip( 1 ) 

16.20.ToolBar( 4 ) 16.86.DrawingGroup( 1 ) 

16.21.StatusBar( 7 ) 16.87.Event( 21 ) 

16.22.Menu( 13 ) 16.88.EventTrigger( 15 ) 

16.23.Slider( 9 ) 16.89.Command( 11 ) 

16.24.ContextMenu( 1 ) 16.90.Key Event( 19 ) 

16.25.PasswordBox( 1 ) 16.91.Mouse( 24 ) 

16.26.TreeView( 5 ) 16.92.RoutedCommand( 13 ) 

16.27.ListBox( 11 ) 16.93.ApplicationCommands( 13 ) 

16.28.ListBox Event( 1 ) 16.94.InputGestureCollection( 1 ) 

16.29.ListBox Style( 6 ) 16.95.Binding( 30 ) 

16.30.ListBox Selection( 13 ) 16.96.DataContent( 2 ) 

16.31.ListBox Item( 10 ) 16.97.DataTemplate( 5 ) 

16.32.ListView( 9 ) 16.98.HierarchicalDataTemplate( 1 ) 

16.33.ToolTip( 7 ) 16.99.ItemsControl( 4 ) 

16.34.Grid( 25 ) 16.100.IValueConverter( 3 ) 

16.35.Grid Operation( 15 ) 16.101.MultiDataTrigger( 1 ) 

16.36.Grid Event( 6 ) 16.102.ObjectDataProvider( 5 ) 

16.37.GridSplitter( 7 ) 16.103.XmlDataProvider( 3 ) 

16.38.UniformGrid( 3 ) 16.104.ObservableCollection( 4 ) 

16.39.GroupBox( 2 ) 16.105.CollectionViewSource( 5 ) 

16.40.Viewbox( 7 ) 16.106.ControlTemplate( 9 ) 

16.41.Panel( 3 ) 16.107.Animation( 30 ) 

16.42.DockPanel( 13 ) 16.108.Color Animation( 10 ) 

16.43.WrapPanel( 6 ) 16.109.DoubleAnimation( 7 ) 

16.44.StackPanel( 18 ) 16.110.Frame Animation( 11 ) 

16.45.ScrollViewer( 7 ) 16.111.Speed Animation( 2 ) 

16.46.Expander( 4 ) 16.112.Shape Animation( 13 ) 

16.47.TabControl( 5 ) 16.113.Storyboard( 19 ) 

16.48.Frame( 5 ) 16.114.BackgroundWorker( 2 ) 

16.49.Common Dialog( 1 ) 16.115.Thread( 16 ) 

16.50.UI Element( 16 ) 16.116.Timer( 3 ) 

16.51.Margin( 2 ) 16.117.3D( 17 ) 

16.52.Padding( 2 ) 16.118.Matrix( 10 ) 

16.53.Border( 3 ) 16.119.AccessText( 4 ) 

16.54.LayoutInformation( 1 ) 16.120.Application( 10 ) 

16.55.MessageBox( 5 ) 16.121.BulletDecorator( 1 ) 

16.56.Page( 9 ) 16.122.FlowDocument( 37 ) 

16.57.Window( 20 ) 16.123.MediaElement( 9 ) 

16.58.Window Event( 13 ) 16.124.Print( 3 ) 

16.59.Window Style( 5 ) 16.125.Resource( 34 ) 

16.60.NavigationWindow( 1 ) 16.126.SpellCheck( 1 ) 

16.61.Cursor( 3 ) 16.127.StyleSelector( 1 ) 

16.62.InlineUIContainer( 1 ) 16.128.SystemParameters( 1 ) 

16.63.Canvas( 33 ) 16.129.SystemSounds( 1 ) 

16.64.Brush( 21 ) 16.130.ValidationRule( 2 ) 

16.65.Line( 11 ) 16.131.Xaml( 26 ) 

16.66.Ellipse( 25 ) 

Download socket Network program in vb

22.Socket Network

22.1.URL( 2 ) 22.17.FTP Client( 1 ) 

22.2.Uri( 5 ) 22.18.FTP server( 1 ) 

22.3.UriBuilder( 1 ) 22.19.Chat( 1 ) 

22.4.IP Address( 4 ) 22.20.Cookie( 1 ) 

22.5.IPEndPoint( 4 ) 22.21.Remoting( 1 ) 

22.6.IPHostEntry( 4 ) 22.22.NetworkStream( 1 ) 

22.7.Socket( 3 ) 22.23.Smtp Email( 4 ) 

22.8.Socket Port( 1 ) 22.24.POP3( 1 ) 

22.9.Socket Client( 1 ) 22.25.MailMessage( 1 ) 

22.10.Socket Server( 4 ) 22.26.HttpWebRequest( 8 ) 

22.11.Socket Web Client( 2 ) 22.27.HttpWebResponse( 1 ) 

22.12.TcpClient( 2 ) 22.28.Web server( 2 ) 

22.13.TcpListener( 2 ) 22.29.WebClient( 2 ) 

22.14.Udp( 4 ) 22.30.ASP Post( 1 ) 

22.15.UdpClient( 5 ) 22.31.WebRequest( 1 ) 

22.16.Dns( 5 ) 22.32.SOAP Serialization( 4 ) 
23.Thread

Download security in vb

21.Security

21.1.DES( 3 ) 21.6.RC2( 2 ) 

21.2.RSA( 1 ) 21.7.RegistrySecurity( 1 ) 

21.3.CipherData( 1 ) 21.8.SemaphoreSecurity( 1 ) 

21.4.CspParameters( 1 ) 21.9.X500DistinguishedName( 1 ) 

21.5.DSASignatureFormatter( 1 ) 

Download :Development program in vb

7.Development

7.1.Console( 1 ) 7.19.Assembly( 6 ) 

7.2.Command Line( 2 ) 7.20.Debug( 3 ) 

7.3.Environment( 8 ) 7.21.DirectCast( 2 ) 

7.4.Exception( 12 ) 7.22.PerformanceCounter( 1 ) 

7.5.Try Catch( 7 ) 7.23.Pre Compile( 3 ) 

7.6.Custom Exception( 4 ) 7.24.Process( 11 ) 

7.7.Finally( 4 ) 7.25.Resources File( 1 ) 

7.8.Throw( 5 ) 7.26.Audio( 1 ) 

7.9.Predefined Exception( 9 ) 7.27.Clipboard( 1 ) 

7.10.StackTrace( 1 ) 7.28.SystemInformation( 3 ) 

7.11.Finalize( 2 ) 7.29.UniCode( 4 ) 

7.12.GC( 2 ) 7.30.ASCIIEncoding( 1 ) 

7.13.IFormattable( 3 ) 7.31.UTF8 UTF7 UTF16( 3 ) 

7.14.Log( 2 ) 7.32.UTF8Encoding( 4 ) 

7.15.Math( 8 ) 7.33.CSV( 3 ) 

7.16.Application( 3 ) 7.34.SerialPort( 2 ) 

7.17.AppSettings( 1 ) 7.35.BitConverter( 3 ) 

7.18.AppDomain( 4 ) 7.36.Random( 1 ) 

Download Data type in vb

2.Data Type

2.1.Integer Family( 2 ) 2.25.CType( 1 ) 

2.2.Integer( 17 ) 2.26.String( 20 ) 

2.3.Byte( 1 ) 2.27.String Concatenate( 4 ) 

2.4.SByte( 1 ) 2.28.String and Byte Char Array( 9 ) 

2.5.Short( 2 ) 2.29.String Array( 6 ) 

2.6.ULong( 3 ) 2.30.String Case( 3 ) 

2.7.Long( 3 ) 2.31.String Compare( 8 ) 

2.8.UShort( 2 ) 2.32.String Copy( 2 ) 

2.9.Double( 14 ) 2.33.String Find( 11 ) 

2.10.Double Format( 3 ) 2.34.String Format( 7 ) 

2.11.Single( 9 ) 2.35.String Pad( 3 ) 

2.12.Decimal( 10 ) 2.36.String Replace( 2 ) 

2.13.Char( 4 ) 2.37.String Split( 4 ) 

2.14.Char Function( 10 ) 2.38.String Functions( 24 ) 

2.15.Special Chars( 4 ) 2.39.Convert from String( 3 ) 

2.16.Boolean( 4 ) 2.40.StringBuilder( 15 ) 

2.17.Hex( 3 ) 2.41.StringReader StringWriter( 1 ) 

2.18.Bit( 2 ) 2.42.Base64String( 1 ) 

2.19.Complex Number( 2 ) 2.43.Wrapped Type( 3 ) 

2.20.Enum( 12 ) 2.44.Number Function( 4 ) 

2.21.Overflows( 1 ) 2.45.Data Type Convert( 11 ) 

2.22.Numeric format( 1 ) 2.46.Matrix( 4 ) 

2.23.Boxing unboxing( 1 ) 2.47.WeakReference( 1 ) 

2.24.Cast( 1 ) 2.48.Nullable( 3 ) 

Download class method program in vb

6.Class Module

6.1.Sub( 2 ) 6.25.ReadOnly( 1 ) 

6.2.Function( 13 ) 6.26.Const( 2 ) 

6.3.Function Parameters( 2 ) 6.27.Indexer( 2 ) 

6.4.Pass by Reference( 4 ) 6.28.Delegate( 11 ) 

6.5.Pass by Value( 3 ) 6.29.Friend( 2 ) 

6.6.Named Parameters( 1 ) 6.30.Constructor( 13 ) 

6.7.Varied length method parameter( 3 ) 6.31.Destructor( 2 ) 

6.8.Recursive Function( 2 ) 6.32.Base Class( 4 ) 

6.9.Overloaded functions( 5 ) 6.33.ToString( 4 ) 

6.10.Module( 2 ) 6.34.Equals( 3 ) 

6.11.Class Definition( 10 ) 6.35.Class Cast( 1 ) 

6.12.Member Fields( 5 ) 6.36.Object( 3 ) 

6.13.Method( 2 ) 6.37.Object Instance( 2 ) 

6.14.Class Inheritance( 10 ) 6.38.Property( 22 ) 

6.15.Polymorphism( 4 ) 6.39.MustInherit( 4 ) 

6.16.Inherits( 2 ) 6.40.MustOverride( 2 ) 

6.17.Class Combination( 1 ) 6.41.NotOverridable( 1 ) 

6.18.Me( 2 ) 6.42.Overridable( 4 ) 

6.19.MyBase( 1 ) 6.43.Shadows( 4 ) 

6.20.MyClass( 1 ) 6.44.Interface( 10 ) 

6.21.Shared( 2 ) 6.45.Class Serialization( 1 ) 

6.22.Private( 3 ) 6.46.Structure( 9 ) 

6.23.Public( 2 ) 6.47.Structure Array( 1 ) 

6.24.Protected( 3 ) 6.48.Structure Serialization( 3 ) 

Download Collections in vb

8.Collections

8.1.Array( 16 ) 8.17.DictionaryBase( 1 ) 

8.2.Array Bound( 5 ) 8.18.ListDictionary( 1 ) 

8.3.Array Parameters( 3 ) 8.19.ICloneable( 3 ) 

8.4.Array Class( 13 ) 8.20.IComparable( 1 ) 

8.5.Array Object( 3 ) 8.21.IComparer( 3 ) 

8.6.Array Sort Reverse( 12 ) 8.22.IDisposable( 2 ) 

8.7.Multiple dimensional array( 9 ) 8.23.IEnumerable( 2 ) 

8.8.ReDim( 7 ) 8.24.IEnumerator( 5 ) 

8.9.Collection( 7 ) 8.25.CharEnumerator( 1 ) 

8.10.NameValueCollection( 1 ) 8.26.Queue( 9 ) 

8.11.ArrayList( 10 ) 8.27.Stack( 5 ) 

8.12.SortedList( 1 ) 8.28.Sort( 1 ) 

8.13.Hashtable( 9 ) 8.29.Your List( 1 ) 

8.14.CollectionBase( 2 ) 8.30.Your Queue( 1 ) 

8.15.CollectionsUtil( 1 ) 8.31.Your Stack( 1 ) 

8.16.Dictionary( 21 ) 

Download stream file program in vb

13.Stream File

13.1.File( 2 ) 13.16.Path( 2 ) 

13.2.File Attributes( 2 ) 13.17.Stream( 4 ) 

13.3.File Utilities( 9 ) 13.18.StreamReader( 8 ) 

13.4.FileInfo( 7 ) 13.19.StreamWriter( 8 ) 

13.5.FileMode( 3 ) 13.20.Text File Read( 5 ) 

13.6.FileStream( 11 ) 13.21.Text file Write( 1 ) 

13.7.FileSystem( 13 ) 13.22.TextReader( 1 ) 

13.8.FileSystemInfo( 1 ) 13.23.MemoryStream( 3 ) 

13.9.FileVersionInfo( 1 ) 13.24.Binary Serialization( 4 ) 

13.10.File Exception( 1 ) 13.25.BinaryReader( 1 ) 

13.11.File system watcher( 2 ) 13.26.BinaryWriter( 1 ) 

13.12.Directory( 5 ) 13.27.DeserializationCallback( 1 ) 

13.13.DirectoryInfo( 6 ) 13.28.IsolatedStorageFile( 4 ) 

13.14.SpecialDirectories( 9 ) 13.29.TextWriterTraceListener( 1 ) 

13.15.Drive( 5 ) 

Engineering -Thinks of Words

Subscribe Now: google

Add to Google Reader or Homepage