摘要:
今天我得知我的一个好朋友辞职了,他在一家很知名的科技公司工作,很多人削尖脑袋想进这家公司。我问他为什么,本来预期的回答可能是“我需要更大的挑战”,或“这个职位已经容不下我,我需要更大的发展空间”,但他却说“我受够了我的老板”。他这样说让我联想到了所有只是因为无法忍受老板而辞职的那些人。工作令人兴奋,团队非常和睦,但老板(管理者)让人忍无可忍。在这种情况下,你能看到的就是好的员工不断的流失,而所有管理层围坐在会议桌前试图找出人才流失的症结,思考留住员工的方法。留住人才,这是摆在所有企业管理者面前的实际问题。留住好员工的关键并不是特别关乎老板提供的薪水或给了他们多少/什么样的工作,更重要的是管理者 阅读全文
摘要:
-(UIToolbar *)createActionBar { UIToolbar *actionBar = [[UIToolbar alloc] init]; actionBar.translucent = YES; [actionBar sizeToFit]; actionBar.barStyle = UIBarStyleBlackTranslucent; UIBarButtonItem *doneButton = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"Done", @"" 阅读全文
摘要:
I wanted to recreate the slide out menu in the Facebook iPhone app. I also wanted implement it in a jQuery mobile layout. This is what I came up with.HTML<!DOCTYPE html><html> <head> <title>FB Style Menu</title> <meta id="extViewportMeta" name="viewpor 阅读全文
摘要:
NSData* sendData = [self.fileName.text dataUsingEncoding:NSUTF8StringEncoding]; NSDictionary *sendDictionary = [NSDictionary dictionaryWithObject:sendData forKey:@"name"]; AFHTTPClient *httpClient = [[AFHTTPClient alloc] initWithBaseURL:remoteUrl]; NSMutableURLRequest *afRequest = [httpCl. 阅读全文
摘要:
@{ }<!DOCTYPE html><html lang="zh"> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /><script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=false"> </script> < 阅读全文
摘要:
代码片段,google了半天,找到的都是4.5 rc,或之前版本的代码,发现都不能用,正式版后有些方法做了修改。我重新修改一下分享给大家public static class HttpRequestMessageExtensions { public static string QueryString(this HttpRequestMessage request, string name) { string requestUri = request.RequestUri.Query; string[] querie... 阅读全文
摘要:
Eduasync part 5: making Task<T> awaitableInpart 3we looked at what the C# 5 compiler required for you to "await" something. The sample used a class which actually had an instance method called GetAwaiter, but I mentioned that it could also be an extension method.In this post, we' 阅读全文
摘要:
IOS SDK6/Xcode4.5开始在Storyboad中新增很多功能对可视化的开发页面布局,导航更加方便,下面就写一下各种导航的实现。1、不用像Xcode4之前必须删除默认的viewcontroller,然后拖一个navigation controller,然后才能实现导航。只需要选择默认的viewcontroller ,在菜单上选择editor-embed in- 2、下面实现导航最简单的就是next,back,只需要按住ctr直接拖线就好了,这里有一个Storyboard Segue-Identifier这个值最好填上,可以在代码里面用到这个Identifier的值可以一般在两个地方会 阅读全文
摘要:
在scanview中添加扫描区域ZBarReaderViewController *reader = [ZBarReaderViewController new]; reader.readerDelegate = self; //CGRect frame= CGRectMake(20, 30, 320, 260); reader.scanCrop= CGRectMake(0.2, .1, .47, .8); 自定义scanview添加一个自定义的扫描框- (UIView *)setOverlayPickerView{ UIView *v=[[UIView alloc]... 阅读全文
摘要:
http://pastebin.com/wSVW1tRcCGRect scanCropThe region of the video image that will be scanned, innormalized image coordinates. Note that the video image is in landscape mode (default {{0, 0}, {1, 1}})The coordinates for all of the arguments is in a normalized float, which is from 0 - 1. So, in norma 阅读全文