超越自我

标题转英文的

Filed under: 网站设计 ; Tags: — freeyun @ 2011-04-18 00:40:07

现完成了标题转英文的链接,所以如果有那位朋友链接到我网站,可能就访问不到了,很抱歉。以后都用这种固定链接的方法
参考
标题更新:http://www.storyday.com/html/y2008/1403_cos_slug_translator-updated-again.html

批量更新:http://www.storyday.com/html/y2007/1219_slug-batch-conversion-plug-in-for-english.html
wordpress中文转英文两个插件较好用

ubuntu 编译 codelblocks

Filed under: 应用软件 ; Tags: , — freeyun @ 2011-04-05 21:36:51

ubuntu 编译 codelblocks从svn有全插件

 sudo apt-get install build-essential

sudo apt-get install gdb

sudo apt-get install libwxgtk2.8-0 libwxgtk2.8-dev

sudo update-alternatives –config wx-config
wx2.8-headers wx-common

cd trunk

./bootstrap

 

 ./configure --prefix=/opt/codeblocks-svn

or similar. Then you can later install a different build like:

 ./configure --prefix=/opt/codeblocks2-svn

followed by ‘make && make install’ as usual.

By default, CodeBlocks will not compile the contributed plugins from SVN. If you want to compile / install them too, replace the above ./configure command with:

 ./configure --with-contrib-plugins=all

Screenshot

参考:http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux

Dell Wireless WLAN 1397—freebsd

Filed under: 操作系统 ; Tags: — freeyun @ 2011-04-04 20:54:07

Dell Wireless WLAN 1397(4321bg)就不要找FreeBsd驱动了

关于官方说明:

4.6.3. Is there a native driver for the Broadcom 43xx cards?

No, and there is not likely to be.

Broadcom refuses to publically release programming information for their wireless chipsets, most likely because they use software controlled radios. In order to get FCC type acceptance for their parts, they have to ensure that users cannot arbitrarily set things like operating frequencies, modulation parameters and power output. But without knowing how to program the chipsets, it is nearly impossible to write a driver.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/compatibility-networking.html#SUPPORT-BROADCOM

gcc 4.60编译

Filed under: 应用软件 ; Tags: , — freeyun @ 2011-04-01 22:30:34

gcc 4.60编译

前提:gmp软件包,mpfr软件包,mpc软件包

./configure –prefix=/usr/gcc-4.6.0 –enable-languages=all –with-gmp=/usr/local/gmp –with-mpfr=/usr/local/mpfr –enable-libgomp

make

make install

 

报错缺少库的,请注意努力折腾

删除的就删除安装的目录,自动删除命令是没有

可以参考:http://gcc.gnu.org/install/

 

修复ubuntu网络

Filed under: 操作系统 ; Tags: — freeyun @ 2011-03-13 01:01:29

如果你的ubuntu网络出现异常,就是可视化的网络工具无法使用,新增加的静态IP也不行

那么你可以执行下面的命令,需要root用户;

service network-manager stop

rm /var/lib/NetworkManager/NetworkManager.state

service network-manager start

最后请重启你的系统

参考http://www.ubuntugeek.com/ubuntu-network-troubleshooting-tips.html

单链表的创建—删除-插入

Filed under: 生活情感 ; Tags: — freeyun @ 2011-03-08 23:05:57

谭浩强C语言的书来的,代码已经运行通过

#include “stdio.h”
#include <malloc.h>
#define LEN sizeof(struct student)
//#define NULL 0
//建立链表
struct student{
long num;
float score;
struct student*next;
};

int n;
struct student *creat(void)

{
    struct student *head;
    struct student *p1,*p2;
    n=0;
    p1=p2=(struct student*)malloc(LEN);
    scanf(“%ld,%f”,&p1->num,&p2->score);
    head=NULL;
    while(p1->num!=0)
    {
        n=n+1;
        if(n==1)head=p1;
        else p2->next=p1;
        p2=p1;
        p1=(struct student*)malloc(LEN);
        scanf(“%ld,%f”,&p1->num,&p1->score);
    }
    p2->next=NULL;
    return(head);
}
//输出链表
void print (struct student *head)
{
    struct student *p;
    printf(“\nNow,These %d records are:\n”,n);
    p=head;
    if(head!=NULL)
      do{
          printf(“%ld%5.1f\n”,p->num,p->score);
          p=p->next;
      }while(p!=NULL);
}

//删除链表
struct student *del(struct student *head,long num)
{
    struct student *p1,*p2;
    if(head==NULL){printf(“\nlist null! “);}
p1=head;
while(num!=p1->num&&p1->next!=NULL)
{
    p2=p1;p1=p1->next;
}
if (num==p1->num)
{
    if(p1==head)head=p1->next;
    else p2->next=p1->next;

    printf(“delete:%ld\n”,num);
    n=n-1;
}
else printf(“%ld not been found! \n”,num);
return(head);
}

//链表插入
struct student *insert(struct student *head,struct student *stud)
{
    struct student *p0,*p1,*p2;
    p1=head;
    p0=stud;
    if(head==NULL){
    head=p0;p0->next=NULL;
    }
    else
    {
        while((p0->num>p1->num)&&(p1->next!=NULL))
              {
                  p2=p1;
                  p1=p1->next;
              }
        if(p0->num<=p1->num)
        {
            if(head==p1)head=p0;
            else p2->next=p0;
            p0->next=p1;
        }
        else{
        p1->next=p0;p0->next=NULL;
        }
    }
    n=n+1;
    return(head);
}
main(){
struct student *head,*stu;
long del_num;
printf(“iput records:\n”);
head=creat();
print(head);
printf(“\ninput the deleted number:”);
scanf(“%ld”,&del_num);
while(del_num!=0)
{
    head=del(head,del_num);
    print(head);
    printf(“input the deleted number:”);
    scanf(“%ld”,&del_num);
}
printf(“\ninput the inserted record”);
stu=(struct student*)malloc(LEN);
scanf(“%ld,%f”,&stu->num,&stu->score);
while(stu->num!=0)
{
    head=insert(head,stu);
    print(head);
    printf(“input the inserted record:”);
    stu=(struct student*)malloc(LEN);
    scanf(“%ld,%f”,&stu->num,&stu->score);
}
}

起泡法

Filed under: 网站设计 ; Tags: — freeyun @ 2011-03-06 23:13:16

C语言写的,谭浩强的

#include “stdio.h”
main(){
int a[11];
int i,j,t;
printf(“input 10 numbers:\n”);
for(i=1;i<11;i++)
  scanf(“%d”,&a[i]);
printf(“\n”);
for(j=1;j<=9;j++)
   for(i=1;i<=10-j;i++)
     if(a[i]>a[i+1])
       {
           t=a[i];a[i]=a[i+1];a[i+1]=t;
       }
       printf(“the sorted numbers :\n”);
       for(i=1;i<11;i++)
        printf(“%d”,a[i]);
}

windows7下编译wxWidgets-2.8.11

Filed under: 应用软件 ; Tags: — freeyun @ 2011-02-27 00:33:45

第一步下codeblocks 及wxWidgets-2.8.11

第二步添加minGW环境变量D:\Program Files (x86)\CodeBlocks\MinGW\mingw32\bin;D:\Program Files (x86)\CodeBlocks\MinGW\bin;(路径是你的安装目录)

第三步进入D:\wxWidgets-2.8.11\build\msw

这里说明下,windows的cd  D:\wxWidgets-2.8.11\build\msw    (然后还要执行d:)

第四步 :mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1(这个就是建立调试编码的意思)

如果需要清理(mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1 clean)

大家可以搜索下,是挺多资料的,我认为这个是较为简单的,所以写了出来,当然ubuntu下的编译也有,大家注意搜索。

安装了freebsd系统

Filed under: 操作系统 ; Tags: , — freeyun @ 2011-02-21 15:14:52

硬盘共存三种系统,故现在记录下ubuntu下grub的引导freeBSD

title FreeBSD
rootnoverify (hd0,0) #指明FreeBSD所在的位置,这里是指第一个硬盘的第一个分区。
chainloader +1  #链接到下一个操作系统的

iPad历险

Filed under: 操作系统 ; Tags: — freeyun @ 2011-02-15 13:40:57

同学拿了台ipad平板电脑,连续3天我都在研究在破解软件,今天就说说开机的白苹果

是我在越狱之后,重启,只看见一只白苹果,就一直的卡在那里,一动不动的,下面说下解决的方法

前提是你下载了iTunes软件 http://www.apple.com.cn/itunes/download/

1.打开iTunes

2.把数据线接上ipad

3.然后你按住电源键和home键

4.黑屏后只松开电源键即可发现iTunes软件设备使用,松开home键就行了

参考资料越狱:http://apple.178.com/201011/84560960078.html

   恢复ipad:http://ipadbbs.com/thread-22717-1-1.html 第四楼有写

截图给大家看看