วันพุธที่ 21 ธันวาคม พ.ศ. 2554

copy hardlock

ไม่รู้เคยเจอกันรึเปล่า โปรแกรมที่เวลาเปิดต้องเสียบอะไรที่คล้ายๆแฟชไดว์ไว้ที่ตูดคอมตอนเปิดโปรแกรม

ถ้าเคย วันนี้เราจะเขวี้ยงมันทิ้งไป !! human

โปรแกรมที่จะบอกนี้มีการทำงานคือ จะดั๊มข้อมูลจากฮาดลอก จากนั้นจะทำการจำลองมันขึ้นมา

วันเสาร์ที่ 10 ธันวาคม พ.ศ. 2554

โปรแกรม R-Studio 4.5

กู้ไฟล์,recovery,โปรแกรมกู้ไฟล์,r-studio 4.5
บทความเกี่ยวกับการกู้ไฟล์ โดยใช้โปรแกรม R-Studio 4.5
มีคนหนึ่งเคยบอกผมว่า ลงวินโดว์ได้ครั้ง 300-500 บาท
แต่หากเรากู้ไฟล์ได้เราสามารถทำเงินได้มากกว่านั้น ขึ้นอยู่กับงานลูกค้าด้วยครับ ข้อมูลยิ่งสำคัญมากก็ยิ่งมีราคามาก
แล้วแต่การต่อรองราคาครับ  หากเป็นผมนั้นจะพูดอยู่ติดปากประจำครับว่า "แล้วแต่จะให้ครับ" 

วันอังคารที่ 29 พฤศจิกายน พ.ศ. 2554

C#: Set And Unset Auto-start For Windows Application


I found this useful C# class in this MSDN forum that provides an easy way to enable and disable an application auto-run in Windows.

With a little modification, I made it to be easily called by any project. What you need to do is just pass in the 'Key Name' and 'Assembly Location' parameters.

Here is the complete class:

วันศุกร์ที่ 25 พฤศจิกายน พ.ศ. 2554

EX Ping c#

 
/*
C# Network Programming 
by Richard Blum

Publisher: Sybex 
ISBN: 0782141765
*/
using System;
using System.Net;
using System.Net.Sockets;
using System.Text;

public class SimplePing
{
   public static void Main(string[] argv)
   {
      byte[] data = new byte[1024];
      int recv;
      Socket host = new Socket(AddressFamily.InterNetwork, SocketType.Raw,
                 ProtocolType.Icmp);
      IPEndPoint iep = new IPEndPoint(IPAddress.Parse(argv[0]), 0);
      EndPoint ep = (EndPoint)iep;
      ICMP packet = new ICMP();

      packet.Type = 0x08;
      packet.Code = 0x00;
      packet.Checksum = 0;
      Buffer.BlockCopy(BitConverter.GetBytes((short)1), 0, packet.Message, 0, 2);
      Buffer.BlockCopy(BitConverter.GetBytes((short)1), 0, packet.Message, 2, 2);
      data = Encoding.ASCII.GetBytes("test packet");
      Buffer.BlockCopy(data, 0, packet.Message, 4, data.Length);
      packet.MessageSize = data.Length + 4;
      int packetsize = packet.MessageSize + 4;

      UInt16 chcksum = packet.getChecksum();
      packet.Checksum = chcksum;

      host.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReceiveTimeout, 3000);
      host.SendTo(packet.getBytes(), packetsize, SocketFlags.None, iep);
      try
      {
         data = new byte[1024];
         recv = host.ReceiveFrom(data, ref ep);
      } catch (SocketException)
      {
         Console.WriteLine("No response from remote host");
         return;
      }
      ICMP response = new ICMP(data, recv);
      Console.WriteLine("response from: {0}", ep.ToString());
      Console.WriteLine("  Type {0}", response.Type);
      Console.WriteLine("  Code: {0}", response.Code);
      int Identifier = BitConverter.ToInt16(response.Message, 0);
      int Sequence = BitConverter.ToInt16(response.Message, 2);
      Console.WriteLine("  Identifier: {0}", Identifier);
      Console.WriteLine("  Sequence: {0}", Sequence);
      string stringData = Encoding.ASCII.GetString(response.Message, 4, response.MessageSize - 4);
      Console.WriteLine("  data: {0}", stringData);
      
      host.Close();
   }
}

class ICMP
{
   public byte Type;
   public byte Code;
   public UInt16 Checksum;
   public int MessageSize;
   public byte[] Message = new byte[1024];

   public ICMP()
   {
   }

   public ICMP(byte[] data, int size)
   {
      Type = data[20];
      Code = data[21];
      Checksum = BitConverter.ToUInt16(data, 22);
      MessageSize = size - 24;
      Buffer.BlockCopy(data, 24, Message, 0, MessageSize);
   }

   public byte[] getBytes()
   {
      byte[] data = new byte[MessageSize + 9];
      Buffer.BlockCopy(BitConverter.GetBytes(Type), 0, data, 0, 1);
      Buffer.BlockCopy(BitConverter.GetBytes(Code), 0, data, 1, 1);
      Buffer.BlockCopy(BitConverter.GetBytes(Checksum), 0, data, 2, 2);
      Buffer.BlockCopy(Message, 0, data, 4, MessageSize);
      return data;
   }

   public UInt16 getChecksum()
   {
      UInt32 chcksm = 0;
      byte[] data = getBytes();
      int packetsize = MessageSize + 8;
      int index = 0;

      while ( index < packetsize)
      {
         chcksm += Convert.ToUInt32(BitConverter.ToUInt16(data, index));
         index += 2;
      }
      chcksm = (chcksm >> 16) + (chcksm & 0xffff);
      chcksm += (chcksm >> 16);
      return (UInt16)(~chcksm);
   }
}

วันพฤหัสบดีที่ 24 พฤศจิกายน พ.ศ. 2554

ยกเลิกการซ่อนเซลใน Excel ทั้งหมดภายใน 3 คลิ้ก

ยกเลิกการซ่อนเซลใน Excel ทั้งหมดภายใน 3 คลิ้ก

 
 
 
 
 
 
i
 
Rate This
Quantcast
ในกรณีที่มีการซ่อนเซลจำนวนมาก จนนับไม่ถ้วน การจะแสดงเซล (Unhide) เหล่านั้นทีละแถวหรือคอลัมน์ คงเป็นเรื่องยุ่งยากมากๆ แต่ผมมีวิธีลัดที่จะทำให้การแสดงเซลที่ซ่อนทั้งหมด Unhide เพียงแค่ 3 คลิ้กเท่านั้น ทำตามวิธีดังต่อไปนี้ได้เลยครับ