强力美味蘑菇

男人MAN的一些特点

Posted by: 藕太黑 on: 九月 22, 2009

当嘴巴成为惊愕的O型,缺乏见识,当心有戚戚焉,缺乏总结,当心理不舒服,缺钱。

老看见些没道理的男女感情总结贴,说得像权利斗争似的,我来贴个我觉得有理的。其中念旧,马屁和不说话几点我个人觉得非常英明且具有操作

Read the rest of this entry »

“五险一金”的深入解析

Posted by: 藕太黑 on: 九月 16, 2009

首先,大家应该意识到社会保险是比商业保险更为优质的一种保险..  原因大致如下:

(1)社会保险是国家不以营利为目的而开展的全民福利保障事业.. 而商业保险是要营利的 . . 总体来说商业保险收费比同等规格的社会保险要高不少喔

(2)社会保险保障的方面比一般的商业保险要更多一些.. 商业保险一般只保医疗或养老 ..  .. 社会保险一般可以同时保五个险.. 而且在医疗这一块.. 社会保险的优势非常突出

(3)社会保险的标准每年都在不停提高.. 国家每年7月初都会按照职工基本工资进行社保基数调整.. 而且调整的比例还很高..一般每年调高10%以上.. 就是说越往后拿得钱越高 .. 这样做最大的好处就是可以把通货膨胀的影响消除到比较小.. 而商业保险就算也会调整回报..  但总体也不会比社会保险涨得快

一句话,现在没有参加社会保险的已工作同学请速参加社会保险,已参加商业保险但并未参加社会保险的已工作同学也请速参加社会保险…..

——————开始了————开始了————开始了——

Read the rest of this entry »

Tags: ,

GNOME hot key 快捷键

Posted by: 藕太黑 on: 九月 16, 2009

General Shortcut Keys
Alt + F1 Opens the Applicantions Menu .
Alt + F2 Displays the Run Application dialog.
Print Screen Takes a screenshot.
Alt + Print Screen Takes a screenshot of the window that has focus.
Ctrl + Alt + right arrow Switches to the workspace to the right of the current workspace.
Ctrl + Alt + left arrow Switches to the workspace to the left of the current workspace.
Ctrl + Alt + up arrow Switches to the workspace above the current workspace.
Ctrl + Alt + down arrow Switches to the workspace below the current workspace.
Ctrl + Alt + d Minimizes all windows, and gives focus to the desktop.
F1 Starts the online help browser, and displays appropriate online Help.
Window Shortcut Keys
Alt + Tab Switches between windows. When you use these shortcut keys, a list of windows that you can select is displayed. Release the keys to select a window.
Alt + Esc Switches between windows in reverse order. Release the keys to select a window.
F10 Opens the first menu on the left side of the menubar.
Alt + spacebar Opens the Window Menu .
Arrow keys Moves the focus between items in a menu.
Return Chooses a menu item.
Esc Closes an open menu.
Ctrl + Alt + right arrow Switches to the workspace to the right of the current workspace.
Ctrl + Alt + left arrow Switches to the workspace to the left of the current workspace.
Ctrl + Alt + up arrow Switches to the workspace above the current workspace.
Ctrl + Alt + down arrow Switches to the workspace below the current workspace.
Ctrl + Alt + d Minimizes all windows, and gives focus to the desktop.
Panel Shortcut Keys
Ctrl + Alt + Tab Switches the focus between the panels and the desktop. When you use these shortcut keys, a list of items that you can select is displayed. Release the keys to select an item.
Ctrl + Alt + Esc Switches the focus between the panels and the desktop. Release the keys to select an item.
Ctrl + F10 Opens the popup menu for the selected panel.
Tab Switches the focus between objects on a panel.
Return Chooses the selected panel object or menu item.
Shift + F10 Opens the popup menu for the selected panel object.
Arrow keys Moves the focus between items in a menu. Moves the focus between interface items in an applet also.
Esc Closes an open menu.
F10 Opens the Applications menu from the Menu Bar , if the Menu Bar is in a panel.
Application Shortcut Keys
Ctrl + N New
Ctrl + X Cut
Ctrl + C Copy
Ctrl + V Paste
Ctrl + Z Undo
Ctrl + S Save
Ctrl + Q Quit

palm Treo 750 刷机要点

Posted by: 藕太黑 on: 九月 11, 2009

通过USB线刷机

  1. pc需安装Microsoft .NET Framework
  2. pc需安装安装Windows Mobile手机同步软件
  3. 硬启动机器,插上同步线,进入系统后与电脑同步,进入同步状态
  4. 刷cheetahunlocker,保护你的750(HardSPL/Unlock/解锁),这个软件是装在电脑上的(只要刷过一次,以后刷机就不用再刷)
    • ruuwrapper方式实际上是内存中加载了一个softspl,以跳过750原机的spl,这样实际上相当于750有了supercid,无论什么语言,什么cid的rom都可以被刷入750,这也是750使用定制rom的基础。但是softspl有一个问题,如果机器不慎被刷死了,无法使用activesync联机,那么就无法使用softspl,无法刷入其他的rom,只能刷入跟本机spl具有一样langid,cid的rom。
    • xda上有一种新的方式,称为hardspl,也就是说将softspl刷入750中,这样即使刷死,也可以通过卡或者ruu刷入任意版本的rom,跳过langid,和cid检查,另外如果无法使用sd卡刷新rom,也可以刷hardspl,刷过之后就可以了
  5. 下载所需安装的ROM,准备刷机
  6. 在电脑上把.nbh文件更名为:RUU_signed.nbh,然后把RUU_signed.nbh拷贝到RUU目录下进行刷机。运行RUU目录下的RUUWrapper.exe
  7. 或者是把RUU_signed.nbh重命名CHEEIMG.nbh,复制到扩展卡根部安装(卡刷)如果下载ROM解压后是CHEEIMG.nbh直接复制到卡的根部

用SD卡刷机方法

  1. 检查cheetahunlocker
  2. 下载升级程序,RUU_signed.nbh(用于USB刷机)也可以重命名为CHEEIMG.nbh,用于卡刷,
  3. miniSD使用FAT32格式
  4. 把下载的ROM中的CHEEIMG.nbh复制到SD卡根目录
  5. 把750硬起一下,硬起之前要备份一下自己的数据,和系统,硬启:红色挂机键和REST键三秒后,选择yes(上)。
  6. 插上手机充电器,插上miniSD卡
  7. 机器左边有三个侧键,按住最下面那个键,这里指的是机身左侧音量键下方那个键(也叫Media键或多媒体键),然后按Reset(扩展卡槽旁边)
  8. 等几秒钟屏幕上提示,然后再按提示按红色挂机键。
  9. 屏幕上会出现刷机的进程说明及一个进度条。等进度条填满,屏幕上会提示“Success”等字样。
  10. 现在刷机就已经成功了。建议把机器再硬启一次,然后再恢复你之前的备份。注:用SD卡这种方式升级后,在手机内关于中看到的软件版本号还是原来的。但升级已经成功了

http://forum.xda-developers.com/showthread.php?t=334100

Tags: ,

D-BUS基础

Posted by: 藕太黑 on: 九月 10, 2009

本质上是 进程间通信(inter-process communication)(IPC)的一个实现

  • 有一些 特性使得 D-BUS 远远不是“只是另一个 IPC 实现”。有很多不同的 IPC 实现,因为每一个都定位于解决 特定的明确定义的问题。
  • CORBA 是用于面向对象编程中复杂的 IPC 的一个强大的解决方案。
  • DCOP 是一个 较轻量级的 IPC 框架,功能较少,但是可以很好地集成到 K 桌面环境中。
  • SOAP 和 XML-RPC 设计用于 Web 服务,因而使用 HTTP 作为其传输协议。
  • D-BUS 设计用于桌面应用程序和 OS 通信。

Read the rest of this entry »

Tags:

GLib基础

Posted by: 藕太黑 on: 九月 10, 2009

是什么
  • GLib是GTK+和GNOME工程的基础底层核心程序库;
  • 是一个综合用途的实用的轻量级的C程序库,它提供C语言的常用的数据结构的定义、相关的处理函数,有趣而实用的宏;
  • 可移植的封装和一些运行时机能,如事件循环、线程、动态调用、对象系统等的API;
  • 能够在类UNIX的操作系统平台(如LINUX, HP-UNIX等),WINDOWS,OS2和BeOS等操作系统台上运行
  • GLib需要一个支持线程的操作系统和一个字符集间转换函数iconv的支持,事实上大多现代的操作系统都有以上两项功能。

Read the rest of this entry »

Tags: , ,

Flex基础

Posted by: 藕太黑 on: 九月 10, 2009

  • Flex Builder:使程序员能够快速使用ActionScript和MXML语言来开发富英特网应用程序;
  • Flex提供应用程序框架:可视化组件和两种编程语言,即MXML用于可视化布局,ActionScript用于业务逻辑。
  • Flex程序中的MXML和ActionScript代码首先被转化成为ActionScript然后编译为SWF文件。
  • SWF文件部署到服务器,使用者可得到这个程序。
  • Flash对动画和视觉元素的创作进行了优化,将其编译为SWF,再整合到Flex应用程序中。

Read the rest of this entry »

POSIX 线程-一种支持内存共享的简捷工具

Posted by: 藕太黑 on: 九月 9, 2009


#include
#include
#include
void *thread_function(void *arg) {
int i;
for ( i=0; i<20; i++) {
printf("Thread says hi!\n");
sleep(1);
}
return NULL;
}
int main(void) {
//main() 中声明了变量 mythread,类型是 pthread_t。pthread_t 类型在 pthread.h 中定义,通常称为“线程 id”(缩写为 "tid")。可以认为它是一种线程句柄。
pthread_t mythread;

//调用 pthread_create 函数创建一个真实活动的线程。
//不要因为 pthread_create() 在 "if" 语句内而受其迷惑。
//由于 pthread_create() 执行成功时返回零而失败时则返回非零值,将 pthread_create() 函数调用放在 if() 语句中只是为了方便地检测失败的调用。

//第一个参数 &amp;amp;mythread 是指向 mythread 的指针。
//第二个参数当前为 NULL,可用来定义线程的某些属性。由于缺省的线程属性是适用的,只需将该参数设为 NULL。
//第三个参数是新线程启动时调用的函数名。
//注意 thread_function() 接受 void * 作为参数,同时返回值的类型也是 void *。这表明可以用 void * 向新线程传递任意类型的数据,新线程完成时也可返回任意类型的数据。那如何向线程传递一个任意参数?很简单。只要利用 pthread_create() 中的第四个参数。本例中,因为没有必要将任何数据传给微不足道的 thread_function(),所以将第四个参数设为 NULL。
if ( pthread_create( &amp;amp;mythread, NULL, thread_function, NULL) ) {
printf("error creating thread.");
abort();
}
//pthread_join() 将两个线程合并为一个线程
//第一个参数是 tid mythread,第二个参数是指向 void 指针的指针。如果 void 指针不为 NULL,pthread_join 将线程的 void * 返回值放置在指定的位置上。由于我们不必理会 thread_function() 的返回值,所以将其设为 NULL.
if ( pthread_join ( mythread, NULL ) ) {
printf("error joining thread.");
abort();
}
exit(0);
}
//在 pthread_create() 成功返回之后,程序将包含两个线程。
//如果编写的程序根本没有使用 POSIX 线程,则该程序是单线程的(这个单线程称为“主”线程)。创建一个新线程之后程序总共就有两个线程了。

Read the rest of this entry »

Linux线程基础

Posted by: 藕太黑 on: 九月 9, 2009

线程:将应用程序划分成一个或多个同时运行的任务。

与传统的多任务进程 之间的区别在于:线程共享的是单个进程的状态信息,并会直接共享内存和其他资源。

线程模型

  • 核心级线程:利于并发使用多处理器的资源
  • 户级线程:更多考虑的是上下文切换开销

Linux”混合”线程模型:

当核内既支持进程也支持线程时,就可以实现线程-进程的”多对多”模型,即一个进程的某个线程由核内调度,而同时它也可以作为用户级线程池的调度者,选择合适的用户级线程在其空间中运行。

在核外实现的线程又可以分为”一对一”、”多对一”两种模型。

“一对一”:一个核心进程(也许是轻量进程)对应一个线程,将线程调度等同于进程调度,交给核心完成。

“多对一”:完全在核外实现多线程,调度也在用户态完成,单纯的用户级线程模型的实现方式。

Read the rest of this entry »

Tags: ,

vim-cheatsheet

Posted by: 藕太黑 on: 九月 6, 2009

vim

 

一月 2012
« 九    
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

文章分类

有谁在线

当前没有在线用户。