August 01, 2009

Smart featured “microSaying” – Download link

finally today it can to usage, a tiny application used to post status to microblogging sites

Featured:

Sits on Tray

Tiny Clipboard watcher

Fetch link titles

update more than one account with one click

smaller & faster database management for quicker response to web requirements

Uses:

Logging tool

Setting Tool

Tweetsharp

Sqlite

Pic0 

 Pic9

18 messages on queue

PicE

 

enjoy microblogging thru

More Screenshots at http://microsaying.blogspot.com/2009/07/microsaying-beta-release-release.html

July 26, 2009

Oauth Authorization for Twitter accounts

Successfully made account oauth authorization and posting/updating status using tools of #TweetSharp.

Oauth no point of sharing username and password only web based authorization and tokens for handling request and changing password in fear of spam application can avoided by simple blocking the application from the list.

Coding Extract:

Private Shared TW_Info As New TwitterClientInfo
FluentTwitter.SetClientInfo(TW_Info)
Dim requestToken = FluentTwitter.CreateRequest().Authentication.GetRequestToken().Request().AsToken()
FluentTwitter.CreateRequest().Authentication.AuthorizeDesktop(requestToken .Token)
Dim accessToken = FluentTwitter.CreateRequest().Authentication.GetAccessToken(requestToken .Token, UserPin).Request().AsToken()
FluentTwitter.CreateRequest().AuthenticateWith(accessToken .Token, accessToken .TokenSecret).Statuses().Update ("Update through #" + TW_Info.ClientName)



microSaying new micro blogging tool under development

July 21, 2009

Easier to Store and Restore Settings to INI/Text file in .Net Applications

Earlier i use many way to store the Settings to the file with many lines of coding. But Two day before i started digging the ApplicationSettingBase class in VB.NET and found easier way to do it with less then ten line to store settings to file and restore to application

When it is useful:

Most of the beginners, have a frequent habit of changing the coding and version of the executable and each time they have to set the Preferences/Options and then they have to start debug.and when cleaning up the system they delete the obsolete config files.

Also make the Application Portability it is import to store the Settings to file to make user friendly application.

skv.settingsINI.dll developed by me…

What i done:

Simply getting the file name with path and Settings as input, with loops i read the each read and write settings (User Settings) and store it to the file name given.

How it Formatted:

Each line contains the one setting  and its value in Comma Separated fashion. The first part contains the name of the settings and next contains it value and it is handle with string array of one dimensional and two element length.

List of Members:

Members

Download Link

July 16, 2009

Logging: How it is useful…? (Download DLL for Logging)

What it is…? Logging is the practice of recording sequential data, often chronologically.

How it is useful? Generally, all exception are logged in to file so that at the time of reprogramming / development, a programmer will read log file and will come to know problems occurred.

skv.LogToFile.dll developed my me…

Purpose to Develop: I generally develop the small GUI for DB management with DAO for my friends to manage their small needs in easier manner, many times they told that application struck at middle but when i restart it it works.

I’m not professionals in the Programming, though i would tie-up my ideas to the recent tech as much as possible…

When i ask them what is your last action before that happen they can explain me but not that much easier to trace errors. So i begin to log each important action with try catch in file with MS.VB.Logging but as said above, many times i struggled due maximum size error and customisation for each application so i decide to develop one.

MS.VB.Logging: Provides varieties of options but all to be set for each time and also file size to be controlled externally.For that we have to check the log file with IO’s file system.

What i done: Simply used the IO’s file system and log the message/exception to the file and also check the file limits with the same. Also Raise the event by which log success can be checked with handled exception of library.

What to give: Only thing to give is the message or exception

How it formatted: the log stored in the common separated format (csv) so it easy to access with simple editor.

Options: Most of the options of MS.VB.Logging where provided in addition to that file size checking also added. by default it displays the log to user after logging, it can be disabled with by setting values to properties.It stores the log to application folder with subfolder log ({Application path}\Log\) and with its default name(log_file.log).

List of Members:

logtofile_comp

logtofile_members

logtofile_enum1

logtofile_enum2

Download Link

Dual Licensed : GNU GPL 3.0 or Later and CC by-na 2.5 IN or Later

Example:

Imports skv.LogToFile
Public Class frmMain
Private WithEvents Logger As New LogToFile


  Private Sub z()
Try
Throw New DivideByZeroException
Catch ex As Exception
Logger.WriteToLogFile("Ex.Occurred")
Logger.WriteToLogFile(ex)
End Try
End Sub


    Private Sub LoggerCalled(ByVal Reply As LogToFile.LogReply) Handles Logger.LogUpdated
If Reply = LogToFile.LogReply.success Then Me.RichTextBox1.Text = System.IO.File.ReadAllText(Logger.FullFilePath)
End Sub


When the DisplayMessageBox Property Set to True then it displays the message/exception logged.



Logger.DisplayMessageBox = True ERROR  


Performance: Logged 10000 continuous log exception in approx 4min (as with my system configuration) with file size restriction to 1024 bytes.




  • Start:15 July 2009,22:48:16


  • End:15 July 2009,22:52:10



Logged 100 exception within a ten with same restriction.




  • Start:15 July 2009,23:23:49


  • End:15 July 2009,23:23:56



Initial logging without restriction was less than half the above time taken.



How it Checked:



    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.ToolStripProgressBar1.Value = 0
Me.ToolStripProgressBar1.Maximum = 10001
For index As Long = 1 To 10000
z()
Me.ToolStripProgressBar1.PerformStep()
Next
End Sub


July 09, 2009

Results And Conclusions:Future Scope

Initially we have tried with the number of population is twice of the number of the machines which result the earlier convergence of the problem. Due to this there may be possible of stuck at local optima. So we fixed up the number of population to 30. It gives better result than the former.
For the further improvement, we gave attention to the selection parameter. In the beginning we use proportionate selection method, in general it is used for maximize problem. Since the JSSP is the minimization problem, the linear ranking method is used which is robust and in with the actual fitness (elapse time) is converted into subjective fitness and then the actual counts of selection of each chromosomes was determined.
In continual improvement, we concentrated on the crossover, at first half above the length of the string only consider for the crossover as an initial try. Then the crossover was performed for entire length which results better solutions than former one.
Thus we conclude that there may be a possibility of better solutions if the others operational parameter of GA is used in place of above said methods because One of the key elements for the success of GA is the choice of various parameters values such as population size, number of generation, fitness function, crossover rate and mutation rate and these parameters are generally interact with each other in non linear manner and as a result they cannot be optimized one at a time. Also they may differ for different types of problems and so there are no conclusive results as to what values should be chosen.

Future scope, Job side sequencing with same order of machines may be extended to the different order of machines and also simultaneously machine side sequencing can be performed to get better solutions and also to have different sequence of jobs for each machines.©
For the specific problem as given below the output at the time of execution of problem is shown below.
Output for execution of specific problem
 clip_image002
For one above sequence the elapse time table is as shown below. In general concept any problem may have many optimal solutions as above.
Elapse time table of specific problem
clip_image002[4]
Related Posts:
Table of Contents
© 2006 Kumaravel & Project Team