Showing posts with label Languages. Show all posts
Showing posts with label Languages. Show all posts

Monday, June 10, 2013

Parallel Programming in C# 4.0, 4.5 - CodeProject

English: Image processing on a hypercube. Step 2.
English: Image processing on a hypercube. Step 2. (Photo credit: Wikipedia)
Good article for writing software to function on computers that have more than one processing core. 

Parallel Programming in C# 4.0, 4.5 - CodeProject
Enhanced by Zemanta

Thursday, April 18, 2013

Finite Element programming in Julia - CodeProject

Illustration of the Finite element method, the...
Illustration of the Finite element method, the computed solution. (Photo credit: Wikipedia)
Intro

A simple finite element code in Julia for solving the 2D Poisson equation over the unit square is presented in this article. The code uses only Julia's standard library and thus does not have any external dependencies. It solves the partial differential equation u,xx + u,yy = -6 over the unit square with the Dirichlet boundary condition u = 1 + x^2 + 2y^2 on the sides of the unit square. The code can however be easily modified to study other instances of the Poisson equation. The unit square is discretized with linear triangular finite elements and the stiffness matrix and load vectors are calculated using a one-point quadrature rule.

Finite Element programming in Julia - CodeProject
Enhanced by Zemanta

How to make a multi-language application in C# - CodeProject

The Microsoft Visual Studio .NET logo.
The Microsoft Visual Studio .NET logo. (Photo credit: Wikipedia)
 Intro to Article

We know that a software prerequisite is that if it is being used all over the world, it must have a multi-language interface because not everyone speaks English. The problem is, how does one create a multi-language software which can edit and add other languages easily?
This article presents a solution to solving this problem using C# and Visual Studio 2008.
First we will present how to create an application in Vietnamese and English. Then we will present the procedure to add other languages (for instance, French).


How to make a multi-language application in C# - CodeProject
Enhanced by Zemanta

Thursday, November 15, 2012

Tuesday, April 3, 2012

Mash Up: Code Converter - CodeProject®

Wanna convert C# to VB.Net code and vice versa? This is the article you need to look at!

Mash Up: Code Converter - CodeProject®
Enhanced by Zemanta

Introduction to HTML5 Web Workers: The JavaScript Multi-Threading Approach - CodeProject®

Deutsch: HTML5 Logo English: HTML5 official lo...
Deutsch: HTML5 Logo English: HTML5 official logo (official since 1 April 2011, see FAQ) Français : Logo HTML5 ‪中文(简体)‬: HTML5标志 ‪中文(繁體)‬: HTML5標識 (Photo credit: Wikipedia)
Introduction to article

HTML5 applications are obviously written using JavaScript. But compared to other kinds of development environments (like native ones), JavaScript historically suffers from an important limitation: all its execution process remains inside a unique thread.
This could be pretty annoying with today’s multi-core processors like the i5/i7 containing up to 8 logical CPUs—and even with the latest ARM mobile processors being dual or even quad-cores. Hopefully, we’re going to see that HTML5 offers the Web a better way to handle these new, marvelous processors to help you embrace a new generation of Web applications.

Introduction to HTML5 Web Workers: The JavaScript Multi-Threading Approach - CodeProject®
Enhanced by Zemanta

Thursday, March 1, 2012

Calling Lua from Java Android using CLE - CodeProject®

This article presents a method which uses CLE middleware to call Lua from a Java application on Android

Calling Lua from Java Android using CLE - CodeProject®
Enhanced by Zemanta

Thursday, February 16, 2012

C# equivalent of VB's With keyword - CodeProject®

English: Logo for C Sharp (programming language)
Image via Wikipedia
Introduction to Article by Omar Al Zabir

VB has a With keyword that you can use to save typing same variables name over and over again. Here's a similar workaround for C#



C# equivalent of VB's With keyword - CodeProject®
Enhanced by Zemanta

Monday, January 23, 2012

Advanced Debugging in Visual Studio - CodeProject®

The Microsoft Visual Studio .NET logo.
Image via Wikipedia
Introduction to Article by Pankaj Chamria

Many of us developers do not look beyond the basic F9, F10, F11, F5 and Watch windows while debugging in Visual Studio. Due to this we end up wasting hours debugging an issue or simulating a condition which ideally could have been achieved in a matter of minutes if we utilized the rich debugging features available out of the box in Visual Studio.
Advanced debugging tips are scattered all over the web but I thought that a consolidated list would be very useful for developers to embrace and start using the techniques.


Advanced Debugging in Visual Studio - CodeProject®
Enhanced by Zemanta

Thursday, January 5, 2012

VB.NET and C# Comparison

English: Logo for C Sharp (programming language)
Image via Wikipedia
Here is an awesome side-by-side comparison between VB.Net and C#. It really comes in handy when you know how to do something in one of these languages but not sure how to do the corresponding thing in the other! This one is a must. Bookmark this one!

VB.NET and C# Comparison
Enhanced by Zemanta

Thursday, December 29, 2011

resizing array at runtime in vb.net - Stack Overflow

I was just coding along today in VB.Net and realized that I sure would like to build a list during runtime based on the names of the tables in any database passed to it but with the flexibility of not knowing how many tables are in it. Turn out that there is a way. The link is at the end after my code.


Dim Tablelist as New List(Of String)()
Dim odbcconn As OleDb.OleDbConnection=New oledb.OleDbConnection(connstring)
Dim restrictions(3) As string
restrictions(3) = "MSYS"
odbcconn.Open()
Dim dt As DataTable = odbcconn.GetSchema("Tables")
For Each dr In dt.rows
If InStr(Ucase(dr("TABLE_NAME")),"MYS") = 0 then
Tablelist.Add(dr("TABLE_NAME"))
End If
Next
odbcconn.Close


First a list of tables are returned from the connection object and then all tables that do not contain the string "MYS" in it's name are filled in to the TableList.

resizing array at runtime in vb.net - Stack Overflow
Enhanced by Zemanta

Saturday, October 22, 2011

Implementing Programming Languages using C# - CodeProject

C Sharp (programming language)Image via WikipediaIntroduction to article

This goal of this article is to introduce the basic concepts of programming language implementation for C# programmers. This article provides a quick overview of the concepts of implementing programming languages, and uses a number of examples including an arithmetic evaluator and a simple JavaScript interpreter.
Accompanying this article is an open-source parser library written in C# 4.0 called Jigsaw. The most up to date version of Jigsaw can be downloaded online at code.google.com/p/jigsaw-library/.
Jigsaw contains a reasonably efficient and robust parsing engine and a large number of sample grammars and evaluators. The Jigsaw parsing library is an evolution of the parsers used in the Cat language and later Heron language, but has been optimized by addding support for memoization.
The Jigsaw library is licenced under the MIT open-source license. If for some reason you need another license please contact me at cdiggins@gmail.com. If you end up using or abusing Jigsaw I would love to hear about it!


Implementing Programming Languages using C# - CodeProject
Enhanced by Zemanta

Sunday, October 2, 2011

C# to VB converter - CodeProject

C Sharp (programming language)                               Image via WikipediaCoverting codes from C Sharp to Visual Basic? Follow the link!


C# to VB converter - CodeProject
Enhanced by Zemanta

Monday, August 22, 2011

Embedded scripting using F#. - CodeProject

Introduction to the article

In this article I describe how to extend an application functionality with F# scripting. Sometimes there is a need to extend existing application functionality with some custom behavior. If you don't want or can't go through application developing and building cycle every time you need additional feature, scripting can be a good solution. It allows to tailor your application for particular needs with minimal efforts.


Embedded scripting using F#. - CodeProject
Enhanced by Zemanta

Monday, August 8, 2011

Realtime Webcam Sudoku Solver - CodeProject

Introduction to Article

This application might not have any practical value, but it is great from a learning perspective. I wanted to learn about computer vision. Computer vision is one of the most exciting areas of modern computing. It is also a difficult area. What is simple and obvious for the human brain is very difficult for a computer. Many things are still impossible with the current level of IT progress.
This application is implemented using low level C++ because I wanted to learn how things work under the hood. If you’d like to start with a computer vision application, you should take an existing library (like OpenCV) and start from there. You can find several tutorials here on CodeProject. The webcam image gathering source code is from from Vadim Gorbatenko (AviCap CodeProject).
The webcam acquires one image at a time (a frame). The flow of frames gives the impression of motion. The next image explains what this application does within a webcam frame.


Realtime Webcam Sudoku Solver - CodeProject
Enhanced by Zemanta