javaÊó±êÍÏ·ÅÎļþ£¨Windows & LinuxÊÊÓã©
/*ͨ¹ýÊó±êÍÏ·ÅÎļþµ½Öƶ¨¿Ø¼þÖУ¬²¢ÅжÏÊÇ·ñΪÎļþ£¬Èç¹ûÊÇ£¬Ôòµ÷ÓÃÎļþ·¢ËÍ·½·¨ChatFrame.SendFile(finalpath);
*/
class TextDropTargetListener implements DropTargetListener
{
CODER Coder = new CODER();
CHAT_FRAME ChatFrame;
/**
Constructs a listener.
@param aTextArea the text area in which to display the
properties of the dropped object.
*/
public TextDropTargetListener(CHAT_FRAME CF)
{
ChatFrame = CF;
}
public void dragEnter(DropTargetDragEvent event)
{
/*
int a = event.getDropAction();
if ((a & DnDConstants.ACTION_COPY) != 0)
textArea.append("ACTION_COPY\n");
if ((a & DnDConstants.ACTION_MOVE) != 0)
textArea.append("ACTION_MOVE\n");
if ((a & DnDConstants.ACTION_LINK) != 0)
textArea.append("ACTION_LINK\n");
if (!isDragAcceptable(event))
{
event.rejectDrag();
return;
}
*/
}
public void dragExit(DropTargetEvent event)
{
}
public void dragOver(DropTargetDragEvent event)
{
}
public void dropActionChanged(DropTargetDragEvent event)
{
if (!isDragAcceptable(event))
{
event.rejectDrag();
return;
}
}
public void drop(DropTargetDropEvent event)
{
if(ChatFrame.gbl_isSendFileShow==false){
ChatFrame.gbl_isSendFileShow=true;
if (!isDropAcceptable(event))
{
event.rejectDrop();
return;
}
event.acceptDrop(DnDConstants.ACTION_COPY);
Transferable transferable = event.getTransferable();
DataFlavor[] flavors = transferable.getTransferDataFlavors();
String path = "";
String finalpath = "";
for (int i = 0; i < flavors.length; i++)
{
DataFlavor d = flavors[i];
//textArea.append("MIME type=" + d.getMimeType() + "\n");
try
Ïà¹ØÎĵµ£º
ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......
Óï¡¡¡¡·¨£ºifconfig [ÍøÂçÉ豸][down up -allmulti -arp -promisc][add<µØÖ·>][del<µØÖ·>][<ÍøÂçÉ豸ÀàÐÍ> <Ó²¼þµØÖ·>][io_addr][irq ][media<ÍøÂçý½éÀàÐÍ>][mem_start<ÄÚ´æµØÖ·>][metric<ÊýÄ¿>][mtu<×Ö½Ú>][netmask<×ÓÍøÑÚÂë>][tunnel<µØÖ·>][-broadc ......
ΪÁËÍ»³ö½²½âµÄ·½±ãÐÔ£¬ÎÒ°ÑÒÔÇ°¹¤×÷ÖÐÕä²ØµÄһЩʵÑé¹ý³Ì¹±Ï׸ø´ó¼Ò¡££¨Î´¾ÔÊÐí£¬ÇëÎðתÔØ£© Ò»£®ÊµÑéÄ¿µÄ 1. Á˽âLinux²Ù×÷ϵͳµÄÆô¶¯ÓëµÇ¼·½·¨ 2. ÕÆÎÕ³£ÓÃRed Hat LinuxÃüÁîµÄʹÓ÷½·¨£¬ÕÆÎÕͼÐÎÓû§½çÃæϵĻù±¾²Ù×÷ 3. Á˽âLinuxÃüÁîÖвÎÊýÑ¡ÏîµÄÓ÷¨ºÍ×÷Óà 4. ÊìϤ²Ù×÷ϵͳµÄÃüÁî½Ó¿Ú¡¢Í¼ÐÎ ......
ϵͳ±ÀÀ£ÁËÒ»´Î£¬ºÜ¶àÎļþ¶¼¶ªÁË£¬ÐҺöªµÄÎļþ²»ÊǺÜÖØÒª¡£µÃÁËÕâ´Î½Ìѵ£¬ÒÔºóÒ»¶¨ÒªÇÚд²©¿Í£¬ÎÞÂÛ¶«Î÷¶àô¼¦Ã«ËâƤ£¬Ò»µ©ÄãÓùýÁËÈ»ºóÍü¼ÇÁËÈ»ºóijһÌìÓÖÐèÒªÓõÄʱºò£¬ÏëÆðÀ´×Ô¼ºÔø¾»á¹ý¶øÏÖÔÚºÍÐÂÊÖÎÞÒ죬ÄÇÖÖÐÄÇé±ðÌáÓжàÓôÃÆÁË¡£
Õýʽתµ½linuxÓÐÁ½¸ö¶àÔÂÁË£¬ÓÃlinuxµÄÔÒò³ýÁËÃâ·ÑÒÔÍ⣬×îÖØÒªµÄ¾ÍÊÇlinuxÖÐÓÐÌ«¶ ......
¡¡MYSQL¶¨ÆÚ±¸·ÝÊÇÒ»ÏîÖØÒªµÄ¹¤×÷£¬µ«È˹¤²Ù×÷Ì«·±Ëö£¬Ò²ÄѱÜÃâÓÐËùÊè©£¬Ê¹ÓÃÏÂ
ÃæµÄ·½·¨¼´¿ÉÈÃϵͳ¶¨ÆÚ±¸·ÝÊý¾Ý¡£
¡¡¡¡1¡¢´´½¨±¸·ÝÎļþ¼Ð
¡¡¡¡#cd /www
¡¡¡¡#makedir backup
¡¡¡¡2¡¢±àдÔËÐнű¾
¡¡¡¡#vi autobackup
¡¡¡¡Ð´ÈëÒÔÏÂÄÚÈÝ£º
¡¡¡¡filename=`date +%Y%m%d`
¡¡¡¡mysql_bin_dir/mysqldump –opt da ......