Articles by "programe"

Best application for physical activity and fitness

7Minute Workout application to really make something of exercise fun and easier than some might imagine. And the idea of ​​the latter is the practice of physical activity and fitness  (of where you are) for a period of not less than seven minutes, if you're actually going to improve your fitness mast will not find explicitly better than this application. Saluting available on a significant number of brilliant and distinctive provided by specialists and professional sports videos in building and improving the fitness of the body, and these circumstances Videos progress within a daily schedule as mentioned above 7 minutes is intended primarily to revitalize your body and improve fitness.

What distinguishes the app is simple and attractive graphical fronted, open your appetite to exercise more exercise.to the small size so it does not occupy much space in your smartphone.

The application is free and available to download for iPhone and Android devices.



Create animated videos, Animaker

Many people use their ideas animated videos in order to deliver what they have easily to others, are video work with the characters associated with sounds and effects and movements, to be ultimately required the delivery of the idea, but also the production of videos certainly need the expertise.

But it can be simple for the user to take advantage of Animaker service that allows it to produce animated videos in a simple and through the Internet, so that the service provides a range of personalities and backgrounds and movements, sounds and effects, can be easily rearranged by drag-and-drop.

All these details through which the production of a video clip marketing or definitions or entertaining, for example, without having to design any image or figure independently, all the details are in service, with the knowledge that there are paid plans from which to get more characters and additions and powers to gain access to more professional video.

How to create a personal application within 30 seconds, Triber

Some may find that having their own personal application would be useful, so that the display Last postings on their social networks while providing a way to communicate with them directly via chat through the application, making it easier for them to focus on what they present mission, as well as make it easier for observers .

The user can take advantage of Triber service that will allow him the possibility of creating its own personal application within a few seconds, and that by linking social networks and then customize the images and the icon, and then deploy the application simply to enable others to download it via its own link, both for users of Android or iOS .

This service comes in the form also application available for users of Android via Google Play store and iOS through the App Store shop, so you can create your their application through the same application with ease and without the need for a computer, and they can download the applications their friends close and important people for them , allowing the user to keep track of all the activities of the possibility of a specific person with great ease.

Best application Selfie rear camera via iPhone

Most often lovers used to take pictures Selfie front camera to their computers in order to go out in a good and appropriate, given the fact that the front camera allow them to watch what they do directly, but the disadvantage of these images sometimes weak front camera accuracy, because the rear camera always be the owner precision Top and the best.

But users can iPhone devices to benefit from the application of SelfieX which is helping them to take pictures of selfie depending on the rear camera and without the need to watch the screen, so that the application directing the user to the proper angle in order to capture the image by telling him phonetically slide the phone to the left and right and up and down.

And are using the application in a simple way, only it is run and then the rear camera guide on the user's face, and when you reach the correct angle the application automatically takes the picture, and then the user can edit this image and adjust the colors and so on and then save them and share them easily.

Best youtube 360 degree vedio

YouTube has become a strong alternative to television in recent years, in many television channels have opened accounts in this site, which receives millions of views per day, of course, this turnout to make YouTube adds other features of this site was one of them view the video 360 degree feature. In this article we will review the sections you the best that you can own observations this feature.

Warcraft: Skies of Azeroth



‘Battle for the Avengers Tower’ 360° experience

Samsung with Marvel reviewed one scene in the movie "The Avengers: Age of Ultron" which display images 360 degrees and grossed over 2.1 million watch on YouTube.



Red Bull F1 360° Experience
Formula 1 team car Red bull, had an opportunity as well as a video display 360 degrees inside the race track. Very beautiful section achieved more than 3.2 million watch.



MythBusters: Shark Shipwreck (360 Video)

What do you think, diving with sharks? If you are afraid, I suggest you watch this video where you can walk around and watch without being put yourself at risk.


Stop Internet ads, iPhone devices

Allowed Apple's new power to application developers in running iOS 9 system is the possibility of providing applications to stop Internet ads that appear while surfing the sites through a web browser, which is what made it such authority focus of attention of many developers, has been providing many of the applications that you stop Internet advertising .

One of these distinctive and free applications that are available is the application 1Blocker, and that comes with more than 7000 block mainly type, user and dramatically help to provide its own Internet Packs being reduces the amount of waste to half or more sometimes.

The user can choose to block any other details is advertising such as elements of the Internet page or tariff files or participate or pornographic sites and other buttons too much, with the ability to configure any user's private blocking options, all of which once you select options that users wanted click of a button.

The best way to make three-dimensional designs,Voxel Builder

Voxel Builder site that allows its users the ability to make three-dimensional designs with great ease and through the browser only, with the possibility of converting these designs when you are done to real models through installed manually after the website to simplify the process, or relying on a three-dimensional printer.

The user can rely on this site and its tool open source in the creation of three-dimensional designs and made up of colored boxes, it is built on top of each other with great ease, with the possibility of choosing colors and move in the place of design and view it from all sides, and in the end can take a picture of the design and the use of the site to print them appropriately on a two-dimensional printer in order to cut and paste parts to produce the desired stereo, or print the file to the printer to produce three-dimensional holographic required in the event of available printer.

how to program in Java across Android devices and iOS,Javvy

the programming language Java  programming languages ​​favorite to many, it is the main language through which at the moment writing software can it be applications Android ore, and therefore the future of the language in the draw, due to the large number of interested programming Android, in addition to the fact that Java can used in many other projects.

In case the user wants to learn the Java programming language at any time and any place wants to do, simply can use the application Javvy available for users of Android and iOS, which provides more than 150 interactive lesson the delivery of educational ideas from the beginning very easy and enjoyable manner, and through the phone user is directly.

The application provides an easy way to step the user his move first in programming fun way allows the possibility of holding talks and practical exercises, in addition to the possibility of learning at the time and the place for the user, which is a very good choice for busy people most of the time, knowing that part of the free educational content with another part requires its paid subscription.

introduction:
With the advent of the Microsoft .NET platform and the large number of Windows and Web applications developed in Visual Basic, the issue of migration to VB .Net is timely. So what are the motivations for migrating to VB .NET (or C #)? Should we migrate or not your projects to VB .NET? Visual Basic is it the end of life?

1-Should we upgrade to VB .NET:
The migration to VB .Net is not an obligation, and an application that works perfectly today and meets your needs no reasons to migrate to VB .Net. Nevertheless, it may be an update or new version of your project requires you to choose between Visual Basic and Visual Basic .Net. This choice can not be done by considering several factors and assessing their advantages and disadvantages. Once the decision, we must define the strategy to achieve the migration.

1.1-benefits:
The major new VB .Net:
• Visual Basic .NET is a true object-oriented language (inheritance, polymorphism is a reality).
• Error handling is improved through structured exception handling.
• The management of multi applications is now possible.
The .NET platform:
• Improved scalability: The ADO .Net improve the scalability of your application by promoting offline and reducing the number of connections and DBMS locks. ASP Session management has been improved and can be shared among several servers in a Web farm.
• Increased performance: The Data Reader object was designed for speed of data access. ASP .Net pages are now compiled.
• Easier deployment: The deployment of your application will be made by a simple XCOPY.

2. What strategy to achieve the migration?

Three migration options are available, either completely rewrite your application in Visual Basic .NET, or migrate it totally or partially to migrate.

2.1. Rewriting your application

This option is useful if you want:
• Benefit from improved performance and increased scalability of your application (ASP .Net ADO .Net to use and helps improve)
• Migrate your application but the existing Visual Basic code does not have an equivalent in Visual Basic .NET or it is impossible to migrate.
This solution has the following disadvantages:
• No existing code reusability
• important human and financial investment

2.2. The total migration:

Advantage:
• Reuse of part of the existing code.
• Improved performance and scalability for the parties migrated.
Disadvantages:
• The migrated code may not be effective and will require adjustments.
• Some portions migrated (eg using ADO) does not benefit from the advantages of .NET
The Migrating a Visual Basic project to VB .Net
The project we're studying is an n-tier project respecting the Windows DNA architecture. It consists of an introduction to ASP layer, a layer of business objects that implement business rules and a data persistence layer using ADO. We will migrate a part of the latter layer.

1-General Considerations

1.1. Unsupported features

Some features are not supported by VB .NET and can not be migrated by the wizard:
• The OLE Container control.
• Dynamic Data Exchange (DDE).
• The DAO and RDO data Binding.
• Visual Basic controls 5.
• DHTML applications.
• The Active X Documents.
• The property pages.
Applications using these features should be left unchanged in Visual Basic 6.0 (Property pages for example) or migrating to .NET (processing documents ActiveX controls users).

1.2. Unsupported keywords

Some keywords have been removed from language.
Keyword Description

Def <type> must explicitly declare variables.
Goto / Gosub These instructions can be replaced with If or Select Case.
Gosub / Return These instructions can be replaced by the use of functions or procedures.
Option Base 0 | 1 The tables are indexed at 0.
VarPtr, ObjPtr, StrPtr These functions used to retrieve the memory address some variables are no longer used.
LSet This function allows the assignment data type is no longer

2. The upgrade strategy

It is recommended that you install your project on the machine which will be launched migration. This guarantees that the VB6 project works and that all the elements used by the project (components, controls ...) are available at the time of migration.
Moreover the migration wizard only accepts projects Visual Basic 6. So if you have earlier versions, it is recommended to migrate prior to Visual Basic 6.

The upgrade can be performed in stages, starting with the client part and the business objects, and finally the data objects. It is possible to go beyond the simple port and integrate .NET Framework improvements. Note that the migration will be easier if your application has been designed in a modular way and respects some good programming practices. We will see this in detail later.

3. The migration through practice using the migration wizard VS.Net

The migration of a project can be broken down into several steps we describe below:

1-Choosing what to migrate

It should define which application parts will be migrated by referring to the strategy presented above.

2-Preparing to Migrate Visual Basic 6 project

Corrections can be made to the Visual Basic 6 code before the passage of the upgrade wizard. It is easier to process corrections directly in Visual Basic and let the wizard perform the update instead of the do after the upgrade is complete.

3-Migration of the application via the Migration Assistant from the VS.Net

4- Correction anomalies detected by the wizard

The Assistant corrects only part of the problem; charging the developer to complete the upgrade.

5. Test the application

Once completed making level, we must achieve the regression testing to ensure that the application still has the expected behaviors.
Preparing to Migrate Visual Basic 6 project
Here are some pitfalls to avoid and correct in your Visual Basic 6 project before the completion of migration:

• Use of early bonding and explicit data conversions.
• Use the date data type to store dates.
• Use predefined constants Visual Basic and not the underlying values.
• Prevent the spread of No.
• Using indexed arrays with zeros.
• Avoid fixed-size tables and chains in the definition of typical users.
• Specify the scope of a parameter explicitly. In Visual Basic parameters are passed by reference by default, whereas in .NET they are passed by value.

This step presents a number of recommendations but is not mandatory. To help you in checking your Visual Basic Code Microsoft offers a free download tool "CodeAdvisor".
 This tool is available at the following address:

The migration of the application via the Migration Assistant
To migrate our Visual Basic project we will use the migration wizard provided by Microsoft. For that we open our .vbp project with Visual Studio .NET IDE. The wizard proposes therefore to upgrade our project.

We then choisissions the type of project, in this case it is an ActiveX DLL Server type.


We select the location where the new project will be stored.


Finally we launch the migration of our project.


Once the upgrade is complete, an updated report is before us.


This report presents the errors and warnings detected by the tool updates grouped by file. For each error, a detailed description indicates why the code is a problem and how to correct it.
This report is complemented by four types of comments directly integrated into the application code:
• UPGRADE_ISSUE: Refers to lines that keep the code to compile.
• UPGRADE_TODO: Refers to lines that compile but can, at runtime, generate errors.
• UPGRADE_WARNING: Refers to lines that compile and can be cause errors at runtime.
• UPGRADE_NOTE: Refers to the code that compiles for which the transition to VB .Net can cause side effects.
Let us now study the code generated by the upgrade wizard VB .NET and look at the changes.
• Generating a VB .NET class that contains the methods of our previous Visual Basic class.
• Changing data types. The Integer type was replaced by Short. The Variant by Object.
• Changing the call to functions that must now include parentheses.
• Changing certain constants used. E.g. adCmdStoredProc option has been replaced by ADODB.CommandTypeEnum.adCmdStoredProc.


Correction of anomalies detected by the wizard

Despite the changes made by the wizard, several major anomalies were detected but not corrected. We will study two and make the appropriate corrections.
The construction management chain
I got used to serve me as COM + construction chain to define a path to a UDL file that determines the connection string to the database. Upon activation of a chain this component is recovered and used in all DBMS access.

example:

Implements COMSVCSLib.IObjectConstruct
Private sConstructString As String
                                                    
Private Sub IObjectConstruct_Construct(ByVal pCtorObj As Object)
                                                    
        Const NomFonction = "IObjectConstruct_Construct"
                                                      
        Dim sConstruct As IObjectConstructString
        Set sConstruct = pCtorObj
        sConstructString = sConstruct.ConstructString
                                                      
End Sub

To migrate this code, you have my class inherits from the ServicedComponent class of the System.EnterpriseServices namespace. This class provides access to COM + services. Finally, it should override the Construct method. The migrated code becomes:

Public Class DataAccess
                                              
Inherits System.EnterpriseServices.ServicedComponent
                                      
        Private sConstructString As String
                                              
        Private Const NomModule As String = "DataClient"
                                              
        Protected Overrides Sub Construct(ByVal constructString As String)
            sConstructString = constructString
        End Sub 'Construct    
                       
Writing to the event log

If an anomaly is loguée an error in the event log. The correction is to seek the method to write to the event log. The WriteEntry method LogEvent class of the System.Diagnostics namespace meets this need.

'UPGRADE_ISSUE: La constante vbLogToNT n'a pas été mise à niveau. 
'Cliquez ici : 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup2070"'
'UPGRADE_ISSUE: App méthode App.StartLogging - Mise à niveau non effectuée 
'Cliquez ici : 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup2069"'
App.StartLogging("", vbLogToNT)
                                                     
'UPGRADE_ISSUE: La constante vbLogEventTypeError n'a pas été mise à niveau. 
'Cliquez ici : 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup2070"'
'UPGRADE_ISSUE: App méthode App.LogEvent - Mise à niveau non effectuée 
'Cliquez ici : 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup2069"'
App.LogEvent(Err.Source & " " & Err.Description, vbLogEventTypeError)

The manually migrated code becomes:
Imports System.Diagnostics.EventLog
'...
Dim myLog As New EventLog("Application", System.Environment.MachineName, "Classe DataAccess")
myLog.WriteEntry(Err.Source & " " & Err.Description, EventLogEntryType.Error)
                    
Transaction management
Our class is transactional and we must preserve this property. 
To do this is to use the mechanisms of declarative transactions proposed by
 the System.EnterprisesServices ( ServiceComponents) class namespace.

On the one hand we will define in class header attribute "TransactionAttribute" to define
the transactional properties of the class. 
Furthermore we will use the attribute "AutoComplete" about each method to automatically 
in the SetComplete method on success of the transaction is SetAbort on error.
Here's the code before and after migration:
Function CreerClient(…)
Dim ctx As ObjectContext       
'...
        Set ctx = GetObjectContext
        If Not ctx Is Nothing Then
       ctx.SetComplete
       Set ctx = Nothing
        End If
Imports System.EnterpriseServices
        
<Transaction(TransactionOption.Required)> _
        Public Class DataAccess
    Inherits System.EnterpriseServices.ServicedComponent
                                                     
        <AutoComplete()> Function CreerClient(ByVal sSiret As String, ByVal sNomClient As String, _
               ByVal iNumero As Short, _
               ByVal sRue As String, _
               ByVal sCodePostal As String, _
               ByVal sCommune As String, _
               ByRef vIdentifiant As Object) As Short


Migration is now complete (see Comparison migrated codes),
 it remains only perform regression
 tests. 
We could continue incorporating new .NET functionality 
(replacing COM components in .NET components, ADO, ADO .Net passage, change in the error
 handling ...).

final result :

Vb6 Code:

Option Explicit

Private Const NomModule = "DataClient"
                     
Function CreerClient(ByVal sSiret As String, _
        ByVal sNomClient As String, _
        ByVal iNumero As Integer, _
        ByVal sRue As String, _
        ByVal sCodePostal As String, _
        ByVal sCommune As String, _
        ByRef vIdentifiant As Variant) As Integer
                    
        On Error GoTo GestionErreur
                              
        Dim oConnexion As ADODB.Connection
        Dim oRecordset As ADODB.Recordset
        Dim oCommand As ADODB.Command
        Dim ctx As ObjectContext
         
        Dim iCodeRetour As Integer 'contient le code retour de la proc stock
                                
        Set oCommand = New ADODB.Command
                               
        With oCommand
               .Parameters.Append .CreateParameter("@Retour", adInteger, _
               adParamReturnValue)
               '...
        End With
                                 
        Set oConnexion = New ADODB.Connection
        oConnexion.Open sConstructString
                               
        oConnexion.BeginTrans
        With oCommand
                .CommandType = adCmdStoredProc
                .CommandText = "Insert_Client"
                Set .ActiveConnection = oConnexion
        End With
                               
        oCommand.Execute , , adExecuteNoRecords
                               
        'recuperation du code retour de la procédure stockée
        vIdentifiant = oCommand.Parameters("@Retour").Value
                                 
        Set ctx = GetObjectContext
        If Not ctx Is Nothing Then
           ctx.SetComplete
           Set ctx = Nothing
        End If
                       
Code vb.net:           
Option Strict Off
Option Explicit On 
Imports System.Diagnostics.EventLog
Imports System.EnterpriseServices
                       
<Transaction(TransactionOption.Required)> _
Public Class DataAccess
Inherits System.EnterpriseServices.ServicedComponent
        Private Const NomModule As String = "DataClient"
                       
        <AutoComplete()> _ 
        Function CreerClient(ByVal sSiret As String, ByVal sNomClient As String,  _ 
               ByVal iNumero As Short, ByVal sRue As String, ByVal sCodePostal As String, _
               ByVal sCommune As String, ByRef vIdentifiant As Object) As Short
               On Error GoTo GestionErreur
                                              
               Dim oConnexion As ADODB.Connection
               Dim oRecordset As ADODB.Recordset
               Dim oCommand As ADODB.Command
                     
               Dim iCodeRetour As Short 
              
               
               oCommand = New ADODB.Command
               
               With oCommand
                    .Parameters.Append(.CreateParameter("@Retour",  _ 
                            ADODB.DataTypeEnum.adInteger, _ 
                            ADODB.ParameterDirectionEnum.adParamReturnValue))
                        '...
            End With
                       
               oConnexion = New ADODB.Connection
               oConnexion.Open(sConstructString)
               
               With oCommand
                    .CommandType = ADODB.CommandTypeEnum.adCmdStoredProc
                    .CommandText = "Insert_Client"
                    .ActiveConnection = oConnexion
               End With
               
                   oCommand.Execute(, , ADODB.ExecuteOptionEnum.adExecuteNoRecords)
                       
                   vIdentifiant = oCommand.Parameters("@Retour").Value
                       
                   If (Not oRecordset Is Nothing) Then
                      If oRecordset.State = ADODB.ObjectStateEnum.adStateOpen Then _ 
                         oRecordset.Close()
                      End If
                       
                   If (Not oConnexion Is Nothing) Then
                      If oConnexion.State = ADODB.ObjectStateEnum.adStateOpen Then  _
                         oConnexion.Close()
                      End If
                   End If
                             









The World of Technology

{facebook#https://www.facebook.com/theworldoftechnologyy/}

Contact Form

Name

Email *

Message *

Powered by Blogger.
Javascript DisablePlease Enable Javascript To See All Widget