2013年6月19日
摘要: 1.设置 TortoiseSVN->Properties->new –>keywords如下勾选; 配置config文件 将config修改为:[miscellany]global-ignores = *.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* *.swp ~*enable-auto-props = yesuse-commit-times = ye... 阅读全文
posted @ 2013-06-19 09:56 家乡的萝卜 阅读(261) 评论(0) 推荐(0)
  2013年6月17日
摘要: /* Client.cs */ using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Net.Sockets;using System.Net;using System.Threading;using System.Diagnostics; namespace ... 阅读全文
posted @ 2013-06-17 11:54 家乡的萝卜 阅读(772) 评论(0) 推荐(0)
  2013年6月14日
摘要: 电脑vs2010装虚拟机后启动慢,有时候甚至1~2分钟; 解决方案: tool->Add-in Manager 去掉勾选即可。 重启vs恢复正常; 阅读全文
posted @ 2013-06-14 08:57 家乡的萝卜 阅读(180) 评论(0) 推荐(0)
  2013年6月11日
摘要: 1.程序文件#include <stdio.h>int main(){ printf("Test\n"); return 0;}2.gcc$ gcc -o test test.c在改语句之后能在目录下看到test文件执行文件 ./test即可;3.修改程序/*test.h*/#include <stdio.h>/*end file*//*test.c*/#include "test.h"int main(){ printf("Test\n"); return 0;}/*end file*/# makefileo 阅读全文
posted @ 2013-06-11 22:38 家乡的萝卜 阅读(160) 评论(0) 推荐(0)
摘要: 1.创建FIFO文件#include <unistd.h>#include <stdlib.h>#include <stdio.h>#include <sys/types.h>#include <sys/stat.h>int main(){ int res = mkfifo("/tmp/my_fifo", 0777); if (res == 0) printf("FIFO created\n"); exit(EXIT_SUCCESS);}qiujiahong@ubuntu:~/ch13$ gcc 阅读全文
posted @ 2013-06-11 17:37 家乡的萝卜 阅读(970) 评论(0) 推荐(0)
  2013年6月6日
摘要: 2009-08-31 14:46 Mainz 博客园C# string byte数组转换实现的过程是什么呢?C# string byte数组间的转换需要注意什么呢?C# string byte数组间转换所涉及的方法是什么呢?让我们来看看具体的内容:C# string byte数组转换之string类型转成byte[]:byte[] byteArray = System.Text.Encoding.Default.GetBytes ( str );反过来,byte[]转成string:string str = System.Text.Encoding.Default.GetString ( by 阅读全文
posted @ 2013-06-06 10:50 家乡的萝卜 阅读(430) 评论(0) 推荐(0)
  2013年6月5日
摘要: 1.前台代码<Window x:Class="WpfApplication1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"> <Grid> < 阅读全文
posted @ 2013-06-05 14:46 家乡的萝卜 阅读(321) 评论(0) 推荐(0)
摘要: 1.前台代码<Window x:Class="WpfApplication1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525" > <Grid> < 阅读全文
posted @ 2013-06-05 11:06 家乡的萝卜 阅读(398) 评论(0) 推荐(0)
摘要: 1.前台代码<Window x:Class="WorkingWithTemplates.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="250" Width="300"> <Grid Nam 阅读全文
posted @ 2013-06-05 08:54 家乡的萝卜 阅读(348) 评论(0) 推荐(0)
摘要: 1.前台代码<Window x:Class="WorkingWithTemplates.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="250" Width="300"> <Grid Nam 阅读全文
posted @ 2013-06-05 08:46 家乡的萝卜 阅读(198) 评论(0) 推荐(0)