1. S + Vi.
  2. S + Verbal Phase
  3. S + V + O
  4. S + Vi + prep. + O
  5. S + Vt. + doing
  6. S + Vt. + to do
  7. S + V + O1 + O2
  8. S + V + O + n./adj.
  9. S + V + O + (to) do
  10. S + V + O + doing
  11. S + V + O + done
  12. S + V + C
 

After I moved installation folder of Zend community server. An error happens in the server GUI

UserServer Error: Call to non-existing function: zend_is_configuration_changed() 
in ZwasComponents_Util_Api_UserServer::isConfigurationChanged().

 

Check the file at ZEND_INSTALL_FOLDR/ZendServer/etc/cfg/utils.ini
Fix the dir parameter to a correct path like:

[Zend.utils]
; register the extension to be loaded by Zend Extension Manager
zend_extension_manager.dir.utils="c:\devenv\zend\ZendServer\lib\utils"
 
; Sets the log verbosity level of Zend Utilis logs [0-5]
;
zend_utils.log_verbosity_level=2

 

 

<<Essentials of Organizational Behavior>> 据说是MBA的核心课程。

里面的理论不错,但是任何理论都要根据实践情况灵活运用,就像好的食材要配好的厨师才行。

可惜的是现实生活中绝大部分的经理人员或者MBA缺少灵活性也不会把握分寸。

一些有趣的摘录:

*经理人员的时间分配

水平 传统(决策,计划,控制) 沟通 人员(激励,纪律,冲突管理,培训) 社交网
平庸 32% 29% 20% 19%
成功 13% 28% 11% 48%
有效的 19% 44% 26% 11%

*组织行为学-好像仅仅只是常识感觉(only common sense)

*微软或者亚马逊这样的大公司的共同点:在招人的时候重视智力,会研究成绩单,问些智力题。

如果你开始雇佣最好的人,你会一直保持雇佣最好的人。如果你开始雇佣差一点的,这些差一点的会雇佣同样水平的人。

- 有一些赞同,但不能死板执行。记得我上大学的时候三,四年级就没上几节课,整天泡在网吧攒电脑打游戏。人的复杂性远远超过这些简单的原则。智力要配合个人其他方面的素质才能转化成有效的生产力,比如独立人格,毅力/自制力,创造力,想象力,乐观和自信,进取心。我见过演讲稿的版本都控制不好的清华MBA,也见过碰到普通员工认不出几个的人事经理,MBA害死人啊

*个子高的员工因为长得像领导者,所以一般会比矮个子挣得多一些。

-哈哈,这条我喜欢。

*智力细分

  • Cognitive
  • Social
  • Emotional
  • Cultural

 

 

新买了一个kindle fire, 感觉比iPad还要好点. 大小合适,7寸屏可以用一只手抓住,性价比很高。

不过对于大陆的用户需要自己破解.

*首先,需要下载kindle fire utility.

http://www.theandroidsoul.com/kindle-fire-utility-for-rooting-updating-and-installing-twrp-recovery-on-your-kindle-fire/

*解压后安装驱动.

*破解取得root权限。(压缩包中带的adb.exe及相关文件可能有点老了,直接用最新的覆盖一下)

*安装TWRP,备份系统

*安装常用软件: Root Explorer, Go输入法, morelocale2

*用Root Explorer把 Go 输入法 从data\app目录移动到system\app目录,然后重新启动。

*进system\app目录重新安装go输入法,然后删除apk安装包

*安装其他东东。

*重起进TWRP,再备份系统。

 

 

This is an example for toLua

PROJECT(TOLUA)

include_directories(${LUA_SOURCE_DIR})

link_directories (${LUA_BINARY_DIR} ${TOLUA_BINARY_DIR})

SET (TOLUA_SRC tolua_event.c tolua_is.c tolua_map.c
               tolua_push.c tolua_to.c toluabind.c)

SET (TOLUA_EXE_SRC tolua.c)               

ADD_LIBRARY(tolua SHARED ${TOLUA_SRC} )
target_link_libraries(tolua lua)

ADD_EXECUTABLE(to_lua ${TOLUA_EXE_SRC})
target_link_libraries(to_lua lua tolua)
 

<<The Agile Samurai – How Agile Masters Deliver Great Software>>

The illustration looks funny in the book.

 

See http://steve-yegge.blogspot.com/2006/03/execution-in-kingdom-of-nouns.html

Are Javalanders Happy?

You might think daily life in Javaland would be at best a little strange, and at worst grossly inefficient. But you can tell how happy a society is through their nursery rhymes, and Javaland’s are whimsically poetic. For instance, Javaland children oft recite the famous cautionary tale:

For the lack of a nail,

    throw new HorseshoeNailNotFoundException("no nails!");

For the lack of a horseshoe,

    EquestrianDoctor.getLocalInstance().getHorseDispatcher().shoot();

For the lack of a horse,

    RidersGuild.getRiderNotificationSubscriberList().getBroadcaster().run(
      new BroadcastMessage(StableFactory.getNullHorseInstance()));

For the lack of a rider,

    MessageDeliverySubsystem.getLogger().logDeliveryFailure(
      MessageFactory.getAbstractMessageInstance(
        new MessageMedium(MessageType.VERBAL),
        new MessageTransport(MessageTransportType.MOUNTED_RIDER),
        new MessageSessionDestination(BattleManager.getRoutingInfo(
                                        BattleLocation.NEAREST))),
      MessageFailureReasonCode.UNKNOWN_RIDER_FAILURE);

For the lack of a message,

    ((BattleNotificationSender)
      BattleResourceMediator.getMediatorInstance().getResource(
        BattleParticipant.PROXY_PARTICIPANT,
        BattleResource.BATTLE_NOTIFICATION_SENDER)).sendNotification(
          ((BattleNotificationBuilder)
            (BattleResourceMediator.getMediatorInstance().getResource(
            BattleOrganizer.getBattleParticipant(Battle.Participant.GOOD_GUYS),
            BattleResource.BATTLE_NOTIFICATION_BUILDER))).buildNotification(
              BattleOrganizer.getBattleState(BattleResult.BATTLE_LOST),
              BattleManager.getChainOfCommand().getCommandChainNotifier()));

For the lack of a battle,

    try {
        synchronized(BattleInformationRouterLock.getLockInstance()) {
          BattleInformationRouterLock.getLockInstance().wait();
        }
    } catch (InterruptedException ix) {
      if (BattleSessionManager.getBattleStatus(
           BattleResource.getLocalizedBattleResource(Locale.getDefault()),
           BattleContext.createContext(
             Kingdom.getMasterBattleCoordinatorInstance(
               new TweedleBeetlePuddlePaddleBattle()).populate(
                 RegionManager.getArmpitProvince(Armpit.LEFTMOST)))) ==
          BattleStatus.LOST) {
        if (LOGGER.isLoggable(Level.TOTALLY_SCREWED)) {
          LOGGER.logScrewage(BattleLogger.createBattleLogMessage(
            BattleStatusFormatter.format(BattleStatus.LOST_WAR,
                                         Locale.getDefault())));
        }
      }
    }

For the lack of a war,

    new ServiceExecutionJoinPoint(
      DistributedQueryAnalyzer.forwardQueryResult(
        NotificationSchemaManager.getAbstractSchemaMapper(
          new PublishSubscribeNotificationSchema()).getSchemaProxy().
            executePublishSubscribeQueryPlan(
              NotificationSchema.ALERT,
              new NotificationSchemaPriority(SchemaPriority.MAX_PRIORITY),
              new PublisherMessage(MessageFactory.getAbstractMessage(
                MessageType.WRITTEN,
                new MessageTransport(MessageTransportType.WOUNDED_SURVIVOR),
                new MessageSessionDestination(
                  DestinationManager.getNullDestinationForQueryPlan()))),
              DistributedWarMachine.getPartyRoleManager().getRegisteredParties(
                PartyRoleManager.PARTY_KING ||
                PartyRoleManager.PARTY_GENERAL ||
                PartyRoleManager.PARTY_AMBASSADOR)).getQueryResult(),
        PriorityMessageDispatcher.getPriorityDispatchInstance())).
      waitForService();

All for the lack of a horseshoe nail.

 

 
                Pattern p = Pattern
				.compile("\\b(\\w+)=(\"(\\w+)\")\\s*,?");
		String s = "X-WSSE: UserName=\"123456\" ,"
                         + " CompanyName=\"abc\", Test=\"ahha\"";
		Matcher m = p.matcher(s);
		while (m.find()) {
			for (int i = 0; i < m.groupCount(); i++) {
				System.out.println(" " + i + "=" + m.group(i));
			}
		}
 
import java.lang.reflect.Field;
 
import sun.misc.Unsafe;
 
public class SpinLock {
	private static Unsafe unsafe = null;
	private volatile int _lock = 0;
	private static long _offset = 0;
 
	static {
 
		try {
			Class<?> clazz = Unsafe.class;
			Field f;
 
			f = clazz.getDeclaredField("theUnsafe");
 
			f.setAccessible(true);
			unsafe = (Unsafe) f.get(clazz);
			_offset = unsafe.objectFieldOffset(SpinLock.class
					.getDeclaredField("_lock"));
		} catch (IllegalAccessException e) {
			e.printStackTrace();
		} catch (SecurityException e) {
			e.printStackTrace();
		} catch (NoSuchFieldException e) {
			e.printStackTrace();
		}
 
	}
 
	public void lock() {
		while (!unsafe.compareAndSwapInt(this, _offset, 0, 1)) {
			try {
				//Thread.sleep(1);
                                Thread.yield();
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
	}
 
	public void unlock() {
		_lock = 0;
	}
}
© 2011 Herosys.net Suffusion theme by Sayontan Sinha