Wednesday, August 5, 2009

updates of Latest technology mobile phone

Here is some latest mobile phones :

LG-VX9400




samsung- jet


NOKIA-n93i

sony ericsson - aino

sony-ericsson-t715

To remove installed application in windows via DOS

I am providing you a tips how to uninstall programs through DOS ,the tips is as follows

Click 'Start' and take ' run ' or click ' All Porgrams' ->'Accessories' and select 'Command Prompt'.The black Windows will open, in that type 'WMIC' or 'wmic:root\cli>' and press 'Enter'.Then  type this command  'product get name' and press 'ENTER'.Now you will get the list of all installed applications in your system.Now you type 'product where name="application name" call uninstall' and press enter when prompted, then type 'y' to confirm that you accept to uninstall the application from your computer .

for example :  product where name="Bittorrent" call uninstall

This method will works for Windows-XP Professional,Windows Vista,Windows Server 2003 & Windows Server 2008.

                                                                                          - Bilumon V B, Email- bilumon@gmail.com

Tuesday, August 4, 2009

To display images(jpg,bitmap) in an crystal report in asp.net and also i included how to produce crystal report in pdf format


It's easy to display images in crystal report of asp.net .The method is as follows:
1. create an XSD Schema in ' appcode' folder ,In the XSD Schema you can create datatables with fields
example :
consider
create table image_list
(
image_id NUMBER(5) not null,
PHOTO BLOB
)

then select these fields using select query in your coding side.
example:
Imports system.data Imports System.Data.OracleClient
Imports CrystalDecisions.Shared 
Imports CrystalDecisions.CrystalReports.Engine 
Partial Class image_list    
 Inherits System.Web.UI.Page   
  Dim oh As New helper.oracle.OracleHelper 
    Dim report As New ReportDocument  
   Dim export As New IO.MemoryStream  
   Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load     
     Dim dt As DataTable = oh.ExecuteDataSet("select image_id,photo from image_list ").Tables(0)    
     report.Load(Server.MapPath("image_list.rpt"), OpenReportMethod.OpenReportByTempCopy)
         report.SetDataSource(dt)
          export = report.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat)
         Response.Clear()      
   Response.Buffer = True    
     Response.ContentType = "application/pdf"    
     Response.BinaryWrite(export.ToArray())    
      Response.End()     
     Me.CrystalReportViewer1.ReportSource = export
      End Sub
 End Class 
Now create an XSD Schema in Appcode as given below






The crystal report is designed as per given instruction above ,Note while creating xsd schema datatable be alert on the datatype of the image feild i mean blob field its data type must be in byte[].then only while you export these datatables into crystal report you can display the images otherwise it will not.
Bilumon V B  ,email - bilumon@gmail.com
 

Method to Insert images into blob field of oracle database tables !

First create a table with bolb field
example :
create table image_list
(
image_id NUMBER(5) not null,
PHOTO BLOB
)

then we want to upload the image that we want to store into the table image_list,for that iam now using Asp.net with vb coding for image file uploading

examples:

If Me.FileUpload1.HasFile Then
Dim fileExtension As String
fileExtension = System.IO.Path. _
GetExtension(Me.FileUpload1.FileName).ToLower()
Dim allowedExtensions As String() = _
{".jpg", ".jpeg"}
Dim fileok As Boolean
fileok = False
For i As Integer = 0 To allowedExtensions.Length - 1
If fileExtension = allowedExtensions(i) Then
fileok = True
End If
Next
If Not (fileok) Then
Dim cl_script As New StringBuilder
cl_script.Append(" alert('The File Type of Photo Not Supported!!--attach .jpg/.jpeg') ;")
Page.ClientScript.RegisterClientScriptBlock(Me.GetType, "inv", cl_script.ToString, True)
Exit Sub
End If
End If
' This is the code to check the uploaded file type
'Now create an folder 'IMAGE' in your project ,so that we can store image temporarly and can dispose after use.then use the code below to attach the file

Dim DirPath As String
DirPath = Me.Server.MapPath("IMAGE")
Dim fnm, fnm1 As String
Try
If Me.FileUpload1.FileName <> "" Then
fnm = GetUniqueFilename(DirPath + "/empphoto.jpg")
If Me.FileUpload1.HasFile Then
Me.FileUpload1.SaveAs(fnm)
End If
Dim fs As New IO.FileStream(fnm, IO.FileMode.Open, IO.FileAccess.Read)
Dim bl(fs.Length) As Byte
fs.Read(bl, 0, fs.Length)
fs.Close()
image1 = bl
Dim fp As New IO.FileInfo(fnm)
If fp.Exists Then
fp.Delete()
End If
int1 = 1
End If
'This is the code to insert the image into the table.
dim sql as string = "insert into image_list(image_id, PHOTO) values(:id,:photo)"

parm_coll1(0) = New OracleParameter
parm_coll1(0).ParameterName = "id"
parm_coll1(0).OracleType = OracleType.Number
parm_coll1(0).Direction = ParameterDirection.Input
parm_coll1(0).Value = 1
' you can increment the id, if you wish
parm_coll1(1) = New OracleParameter
parm_coll1(1).ParameterName = "photo"
parm_coll1(1).OracleType = OracleType.Blob
parm_coll1(1).Direction = ParameterDirection.Input
parm_coll1(1).Value = image2
oh.ExecuteNonQuery(sql, parm_coll1)

Catch ex As Exception
Response.Write(ex.Message.ToString)
End Try

Bilumon V B
email- bilumon@gmail.com

Monday, August 3, 2009

Is Your ' Task Manager ' has been disabled by administrator ?

The Error Message seen is : "Task Manager has been disabled by your administrator"


This error is caused,if the Disable-Task-Mgr restriction is enabled.To enable Task Manager,try one of these methods:

IMPORTANT:
If this restriction was enabled in your system without you doing anything or without your knowledge,then it is likely found that the Virus has blocked the usage of Task Manager in your system by enabling the Disable-Task-Mgr policy through the registry.I strongly recomment you to perform the checkup of your system immediately.Steps listed in the Resolution section of this article helps you unblock the Task Manager,but will not remove the Virus from your system.

SOLUTIONS:

Method 1:
Click Start, Run and type this command exactly as given below: ( Copy and paste)

"REG add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DisableTaskMgr /t REG_DWORD /d 0 /f "

Method 2:
Download and run this REG fix and double-click it.

Method 3:

Click Start, Run and type Regedit.exe ,Navigate to the following branch option:
" HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Policies\ System "
In the right-pane, delete the value named Disable-Task-Mgr Close Regedit.exe

Method 4:
Using Group-Policy-Editor for Windows XP Professional
Click Start, Run, type gpedit.msc and click OK.Navigate to this branch option:
" User Configuration / Administrative Templates / System / Ctrl+Alt+Delete Options / Remove Task Manager "

Double-click the Remove Task Manager option. Set the policy to Not Configured.

THESE ARE SOLUTIONS FOUND FOR AVOIDING THE ERROR OF TASK MANAGER.

Is Your 'Registry Editor' has been disabled by administrator

The Error seen is "Registry Editing has been disabled by your administrator"


The following error message is displayed ,when you start the Registry-Editor (regedit.exe):

Registry Editing has been disabled by your administrator,This error occurs if the Disable-Registry-Tools- Policy is enabled.

NB: If this policy was enabled in your system without you doing anything or without your knowledge,then it is that the Virus had blocked the usage of Registry-Editor (Regedit.exe) in your system by enabling the Disable-Registry-Tools-policy through the registry.It is highly recommended that you perform a checkup of your system immediately.Steps listed in this article will help you to unblock the Registry-Editor,but that does not remove the Virus (if any) from your system.

For Windows XP systems,perform the steps below to remove the registry editing restrictions.

Method 1:

Using the REG.EXE console tool
1. Click Start, Run and type this command:

" REG add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DisableRegistryTools /t REG_DWORD /d 0 /f "
You should be able to launch the Registry-Editor.


Method 2:

Using the Group Policy Editor 'Windows XP Professional only' Click Start,Run and type gpedit.msc and press ENTER Go to the following location: User Configuration | Administrative Templates | System ,Double-click Disable registry editing tools and set it to Not Configured Exit the Group Policy Editor .

Note:
If the setting already reads Not Configured, set it to Enabled and click Apply.Then revert it back to Not Configured.This ensures that the DisableRegistryTools registry value is removed successfully.


This is the solution to enable registry editing

How to kill Virus from your 'USB' Drives ?

When you plug 'USB' drive in your system,The window will appear similar to one shown below:

Don’t click on 'Ok', just choose ‘Cancel'.Now Open the Command Prompt by typing ‘cmd‘ in the run box.In the command prompt type the drive letter: and' press enter .Now type ' dir /w/a ' and press enter.

This will display the list of files in the pen drive. Check whether the following files are there or not .
Autorun.inf,Ravmon.exe,New Folder.exe,svchost.exe,Heap41a or any other exe file which may be suspicious.

If any of the above files are found, then probably the USB drive will be infected.So In the command prompt type ' attrib -r -a -s -h *.* ' and press ' Enter'. This will remove the Read-Only or Archive or System or Hidden file attribute from all the files.you just delete the files using the command 'del filename' .Example 'del Ravmon.exe' .Delete all files that are suspicious.For safety,just scan the 'USB' drive with an anti virus program to check whether it was free from virus or not.Now remove the drive & plug it again.The real culprit turns out to be 'Autorun.inf' file which mostly gets executed ,when someone clicks' Ok' in the dialog window which appears above.Thus the infections can spread