Posts

Compare Image from file

Imports System.IO Imports System.Drawing Dim img As Image Dim img1,img2 as String Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load    img = Image.FromFile("C:\Img1.jpg")    img1 = Convert.ToBase64String(imageToByteArray(img))    img = Image.FromFile("C:\Img2.jpg")    img2 = Convert.ToBase64String(imageToByteArray(img))    if img1 = img2 then       response.write("Same Image")    else       response.write("Difference Image")    end if End Sub Public Function imageToByteArray(ByVal imageIn As System.Drawing.Image) As Byte()         Dim ms As MemoryStream = New MemoryStream()         imageIn.Save(ms, Imaging.ImageFormat.Jpeg)         Return ms.ToArray() End Function

All Samsung Secrets Codes

*#87976633# Repair EFS  เป็นรหัสรีแพร์ EFS (แก้จอขึ้นตัวหนังสือสีเหลือง) ครับ #*#4636#*#* phone information *2767*3855# hard reset *#*#7780#*#* factory reset *#*#7594#*#* change end call/power option *#*#197328640#*#* service mode *#*#273283*255*663282*#*#* file copy screen (backup media files) *#*#526#*#* wlan test *#*#232338#*#* shows wifi mac address *#*#1472365#*#* gps test *#*#1575#*#* another gps test *#*#232331#*#* bluetooth test *#*#232337#*# shows bluetooth device address *#*#8255#*#* gtalk service monitor

HP 3PAR - Shutdown

- SSH to IP of HP3PAR - SSH:> shutdownsys -halt - Wait 2-3 minutes for the node to halt

Log of SSRS

Database Log Use ReportServer   select * from ExecutionLog3 order by TimeStart DESC Text file Log C:\Program Files\Microsoft SQL Server\MSRS13.MSSQLSERVER\Reporting Services\LogFiles

Using Google Calendar on MS Outlook

Go to Google Calendar and Copy URL of Private Internet Calendar. Go to Internet Explorer and paste URL and change https to webcals and enter. Allow session and go to MS Outlook for allow again. Go to MS Outlook and go to menu File > Account Setting > Internet Calendar > New > paste URL (not change to webcals). Finish (Google Calendar is read only).

Google Chart

Default.aspx <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">     <title></title>     <script src="jquery.min.js"></script>     <script type="text/javascript" src="jsapi.js"></script> </head> <body>     <div id="b_sale" style="width:500px; height:300px;"></div> </body> <script>     // VISUALIZATION API AND THE PIE CHART PACKAGE.     google.load("visualization", "1", { packages: ["corechart"] });     google.setOnLoadCallback(createPIE);     function createPIE() {         // SET CHART OPTIONS.         var options = {             title: 'Sex of Employee',            ...

Windows 7 show message "This copy of Windows is not genuine"

Solution Open Command Prompt and run as administrator Type slmgr -rearm If display message Error 0xc004d307 to maximize allowed re-arms Go to Regedit Go to HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows NT / CurrentVersion / SoftwareProtectionPlatform / SkipRearm Change 0 to 1