Posts

HP 3PAR - ReClaim Space

- Delete Virtual Volume - Compact CPGs ที่ได้ทำการลบ Virtual Volume ไป - Finished - วิธีการตรวจสอบว่า Storage ทำการ Compact ได้หมดแล้วหรือยังนั้น ให้ดูตรง Uninitialized ว่าคืนพื้นที่กลับมาที่ Initialized หรือไม่ # showsys -space ------------ System Capacity (MB) ------------- Total Capacity : 8536064 Allocated : 2808832 Volumes : 0 Non-CPGs : 0 User : 0 Snapshot : 0 Admin : 0 CPGs (TPVVs & TDVVs & CPVVs) : 0 User : 0 Used : 0 Unused : 0 Snapshot : 0 Used : 0 Unused : 0 Admin :...

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',            ...