back soft

متن مرتبط با «rabbitmq objective» در سایت back soft نوشته شده است

Swift class not conforming to Objective C Protocol

  • امروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف, ...ادامه مطلب

  • Converting NSEnum from Userinfo in NSNotification fails in Objective c

  • امروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف, ...ادامه مطلب

  • Editing functionality in ios [objective c]

  • امروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف, ...ادامه مطلب

  • Decrypt cipher text in Objective C

  • امروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف, ...ادامه مطلب

  • How do I design the objective function for solving Camera calibration using Grey Wolf optimiser swarm algorithm?

  • Vote count: -1I have been using GWO algorithm for solving the camera calibration problem to generate inteal and exteal camera parameters. How to design the objective function for camera calibration and optimise it to produce camera parameters. What are the parameters and preparation, ...ادامه مطلب

  • RabbitMQ C++ client for old debian

  • Vote count: 0 I have an old Debian (Lenny), on which I develop an application that should connect to RabbitMQ. I downloaded the official C++ client rabbitmq-c-0.8.0 from https://github.com/alanxz/rabbitmq-c/releases/tag/v0.8.0 , but unfortunately, I can't compile it on my old Debian: wget https://github.com/alanxz/rabbitmq-c/archive/v0.8.0.tar.gz tar zxvf v0.8.0.tar.gz autoreconf -i Result: autoreconf -i /usr/share/aclocal/libmcrypt.m4:17: waing: underquoted definition of AM_PATH_LIBMCRYPT /usr/share/aclocal/libmcrypt.m4:17: run info '(automake)Extending aclocal' /usr/share/aclocal/libmcrypt.m4:17: or see http://sources.redhat.com/automake/automake.html#Extending-aclocal Makefile.am:6: Libtool library used but `LIBTOOL' is undefined Makefile.am:6: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' Makefile.am:6: to `configure.ac' and run `aclocal' and `auto,rabbitmq c client,rabbitmq c client tutorial,rabbitmq c client windows,rabbitmq c client heartbeat,rabbitmq c client ssl,rabbitmq c client linux,amqp c client,rabbitmq objective-c client,rabbitmq client lib,objective-c-rabbitmq-client-not-publishing-messages-to-queue ...ادامه مطلب

  • Objective-C: Set UIWebView's ScrollView

  • Vote count: 0 I am trying to set the webview's scrollview using the code below but it disabled the scrolling/interaction of the webview. [webView sizeToFit]; webView.scrollView.scrollEnabled = YES; webView.scrollView.contentSize = CGSizeMake(375, rfqWeb.scrollView.contentSize.height + 700); rfqWeb.userInteractionEnabled = YES; asked 58 secs agochano Let's block ads! بخوانید, ...ادامه مطلب

  • RabbitMQ management returns 500 when trying to list queues

  • Vote count: 0 I've just installed Erlang 19.0, then Rabbitmq Server 3.6.3. OS - Windows 10. Then I installed rabbitmq_management plugin, then I started rabbitmq-server. I can successfully login into management console. The problem is when I go to Queues I get as error: Got response code 500 with body {"error":"JSON encode error: {bad_term,#{error_logger => true,kill => true,size => 0}}","reason":"While encoding: n[{total_count,1},n {item_count,1},n {filtered_count,1},n {page,1},n {page_size,100},n {page_count,1},n {items,n [[{memory,22048},n {reductions,6633},n {reductions_details,[{rate,0.0}]},n {messages,0},n {messages_details,[{rate,0.0}]},n {messages_ready,0},n {messages_ready_details,[{rate,0.0}]},n {messages_unacknowledged,0},n {messages_unacknowledged_details,[{rate,0.0}]},n {idle_since,<<"2016-07-08 20:55:04">>},n {consumer_utilisation,''},n {policy,''},n {exclusive_consumer_tag,''},n {consumers,1},n {recoverable_slaves,''},n {state,running},n {reductions,6633},n {garbage_collection,n [{max_heap_size,#{error_logger => true,kill => true,size => 0}},n {min_bin_vheap_size,46422},n {min_heap_size,233},n {fullsweep_after,65535},n {minor_gcs,3}]},n {messages_ram,0},n {messages_ready_ram,0},n {messages_unacknowledged_ram,0},n {messages_persistent,0},n {message_bytes,0},n {message_bytes_ready,0},n {message_bytes_unacknowledged,0},n {message_bytes_ram,0},n {message_bytes_persistent,0},n {head_message_timestamp,''},n {disk_reads,0},n {disk_writes,0},n {backing_queue_status,n {struct,n [{mode,default},n {q1,0},n {q2,0},n {delta,[delta,undefined,0,undefined]},n {q3,0},n {q4,0},n {len,0},n {target_ram_count,infinity},n {next_seq_id,0},n {avg_ingress_rate,0.0},n {avg_egress_rate,0.0},n {avg_ack_ingress_rate,0.0},n {avg_ack_egress_rate,0.0}]}},n {node,'rabbit@DESKTOP-330SD1I'},n {arguments,{struct,[]}},n {exclusive,false},n {auto_delete,false},n {durable,true},n {vhost,<<"/">>},n {name,<<"queue1">>}]]}]"} If I r, ...ادامه مطلب

  • How to configure windows salt minion for rabbitmq module?

  • Vote count: 0 We're running several windows server with RabbitMQ and salt minion on it. Our aim is to control and configure RabbitMQ via salt. The first problem with which we had been confronted was 'rabbitmq' __virtual__ retued false After digging in the source code, we solved this by adding the rabbitmq sbin folder to the PATH. The next error ERROR: password is a required argument for runas on Windows was pretty easy to solve. Just add a runas="" after your call and it's fine. ... or not ERROR: Unable to run command '['rabbitmqctl', 'status']' with the context '{'timeout': None, 'with_communicate': True, 'shell': False, 'bg': False, 'stderr': -2, 'env': {'TMP': 'C:\Windows\TEMP', 'COMPUTERNAME': 'TMS-230017010', 'USERDOMAIN': 'WORKGROUP', 'PSMODULEPATH': 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\;c:\Program Files (x86)\Microsoft SQL Server\110\Tools\PowerShell\Modules\', 'COMMONPROGRAMFILES': 'C:\Program Files\Common Files', 'PROCESSOR_IDENTIFIER': 'Intel64 Family 6 Model 44 Stepping 2, GenuineIntel', 'PROGRAMFILES': 'C:\Program Files', 'PROCESSOR_REVISION': '2c02', 'SYSTEMROOT': 'C:\Windows', 'PATH': '%programfiles%\rabbitmq server\rabbitmq_server-3.6.1\sbin;c:\programdata\oracle\java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\system32\wbem;C:\Windows\system32\windowspowershell\v1.0;c:\program files (x86)\microsoft sql server\110\tools\binn;c:\program files\microsoft sql server\110\tools\binn;c:\program files\microsoft sql server\110\dts\binn;c:\program files (x86)\microsoft sql server\110\tools\binn\managementstudio;c:\program files (x86)\microsoft sql server\110\dts\binn;C:\Program Files\rabbitmq server\rabbitmq_server-3.6.1\sbin;C:\salt\bin\lib\site-packages\pywin32_system32;/bin;/sbin;/usr/bin;/usr/sbin;/usr/local/bin;C:\salt\bin\lib\site-packages\pywin32_system32', 'PROGRAMFILES(X86)': 'C:\Program Files (x86)', 'TEMP': 'C:\Windows\TEMP', 'COMMONPROGRAMFILES(X86)': 'C:\Program Files (x86)\Common Files', 'PROCESSOR_ARCHITECTURE', ...ادامه مطلب

  • Prevent takeRetainedValue or takeUnretainedValue when using an Objective-C Struct

  • Vote count: 0 I'm using this approach to keep my string constants together. Using the same example from that post: MONExtResult.h struct MONExtResultStruct { __unsafe_unretained NSString * const AppID; __unsafe_unretained NSString * const ErrorCode; __unsafe_unretained NSString * const Progress; }; exte const struct MONExtResultStruct MONExtResult; MONExtResult.m const struct MONExtResultStruct MONExtResult = { .AppID = @"appid", .ErrorCode = @"errorcode", .Progress = @"progress" }; When I try to use it in Swift: let appID: String = MONExtResult.AppID I get the error: Cannot convert value of type 'Unmanaged<NSString>!' to expected argument type 'String' This is because I need to grab the value from the unmanaged wrapper and then convert it to a String: let appID: String = MONExtResult.AppID.takeUnretainedValue() as String Is there any way to annotate the objective-C code to prevent the need for calling takeUnretainedValue like you can with CF_IMPLICIT_BRIDGING_ENABLED or CF_RETURNS_RETAINED for C functions? asked 55 secs agoSenseful Let's block ads! بخوانید, ...ادامه مطلب

  • TypeError: unhashable type when publishing using rabbitmq

  • Vote count: 0 I am trying to pass a python dictionary to a rabbitmq queue via pika, this is probably a python problem and not rabbitmq itself. I am getting an error as stated above and here is my code: def PingAddScan(deviceID, ipAddress, deviceHistory, item, date, apiURL, browserConId): if PingDevice(deviceID, ipAddress): BasicScan(ipAddress, deviceID, item, apiURL) deviceHistory[deviceID] = date # After the basic scan we are going to need to push a message back to the user to say # that the pathfinder has successfully found the device, and it should prompt the user # what he wants to scan print browserConId + " : " + deviceID channelOutbound.queue_declare(queue='outboundMessaging', durable=True) message = {"browserConnectionID": browserConId, "data": "FOUND", "deviceID": deviceID} print str(message) channelOutbound.basic_publish(exchange='messaging', routing_key='outbound', body=message) and here is the full stack trace: Traceback (most recent call last): File "pathfinderAllocator.py", line 454, in <module> channel.start_consuming() File "/usr/local/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 1755, in start_consuming self.connection.process_data_events(time_limit=None) File "/usr/local/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 715, in process_data_events self._dispatch_channel_events() File "/usr/local/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 518, in _dispatch_channel_events impl_channel._get_cookie()._dispatch_events() File "/usr/local/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 1384, in _dispatch_events evt.body) File "pathfinderAllocator.py", line 439, in callback PingAddScan(deviceID, ipAddress, deviceHistory, new_device, date, data, browser_connec, ...ادامه مطلب

  • OBJECTIVE-C: How to call/reference "reportScores:withCompletionHandler: " in ViewController.m? (GameCenter reporting scores)

  • Vote count: 0 New iOS developer here so this is likely an easy question! Here is the code I am using for my Game Center(See below, copied from Apple's Documentation). I have it under my ViewController.m. My question is, how do I "call" or "reference" this in the "-(void)viewDidLoad" in order to report scores to GameCenter? My problem is I have Game Center working and authenticating, but it is not reporting any scores. I have Sandbox tued on and I have 2 different test accounts so I'm just trying to figure out how to put this final piece together. I tried the obvious [self.reportScore] but that didn't work. Sorry I am new to all this so any help would be appreciated as far as how to report a score in Game Center! P.S. I am using Objective-C - (void) reportScore: (int64_t) score forLeaderboardID: (NSString*) identifier {GKScore *scoreReporter = [[GKScore alloc] initWithLeaderboardIdentifier: identifier]; scoreReporter.value = score; scoreReporter.context = 0; NSArray *scores = @[scoreReporter]; [GKScore reportScores:scores withCompletionHandler:^(NSError *error) { //Do something interesting here. }]; } asked 2 mins agoJamesT Let's block ads! بخوانید, ...ادامه مطلب

  • Objective-C dynamic implementation

  • Vote count: 0 Description + sample + explanation: (You can skip to the question section) I'd like to make an object instance, which can be implemented by different implementations, depend on a condition (the inteet status). Simple declaration @interface LoginController : NSObject /** The currently logged-in User. Nil if not logged-in yet. */ @property (strong, nonatomic) User *currentUser; // Singleton object + (instancetype)shareInstance; /** Abstract methods, will do nothing if call directly. Use inheritance implements (Online/Offline) instead. */ - (User *)loginByEmail:(NSString *)email password:(NSString *)pwd; @end @interface LoginControllerOnline : LoginController // Login will call request to server. @end @interface LoginControllerOffline : LoginController // Login will check data in coredata. @end And then, I have a manager to define which class should be in use: @implement InteetManager + (LoginController *)loginController { retu [self hasInteet] ? [LoginControllerOnline shareInstance] : [LoginControllerOffline shareInstance]; } + (BOOL)hasInteet { // Check with Reachability. } @end This work. But it's not the mechanism I'd like to achieve. This mean I have 2 instances of inherited LoginController instead of 1. When inteetStatus change from offline to online, I'd like to re-login online (to get session/oauthToken...). But, I'll have to do many things (copy user, change instance, check retained...) before I can actually call from login online QUESTION: Is there a way for me to create only one instance of LoginController, which hold the same properties (User), but can has different (dynamic) implementations (Online/Offline)? asked 2 mins agoEddie Let's block ads! بخوانید, ...ادامه مطلب

  • Crash during deserialision json to protocol buffers in Objective C

  • Vote count: 0 This is the code I am using to get a json object NSString *requestString = @"http://url/joual/"; NSData *data = [NSData dataWithContentsOfURL:[NSURL URLWithString:requestString]]; NSError* error; NSArray *jsonDataArray = [[NSArray alloc] initWithArray:[NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:&error]]; NSDictionary *dictObject = [jsonDataArray objectAtIndex:1]; //NSLog(@"%@", [dictObject valueForKey:@"deviceA"]); NSData *jsonJobData = [NSJSONSerialization dataWithJSONObject:dictObject options:kNilOptions error:&error]; JoualEntry *aJobEntry = [JoualEntry parseFromData:jsonJobData]; The jsonDataArray after serialization is ( { callGroupId = 1458762093348; callType = "NOT_RESPONDING"; callerInfoB = ( { firstName = ""; lastName = M5T2; } ); createdTime = 1460633282; deviceA = "++30(210)3453-342"; deviceB = 109; direction = INCOMING; duration = 0; }, { callGroupId = 1458762093361; callType = "NOT_RESPONDING"; callerInfoB = ( { firstName = ""; lastName = M5T5; } ); createdTime = 1460634071; deviceA = "+30(210)3453-342"; deviceB = 108; direction = INCOMING; duration = 0; } ) I am using protobuf.io for objective c and I want to save those two joual entries to a protobuf generated class. However my code is crashing when I am trying to map json to objective c. It is possible to read the json contents for example [dictObject valueForKey:@"deviceA"] retus correct data, however when I am trying to use parseFromData the app crashes and more specifically throws an exception here: - (void) checkLastTagWas:(SInt32) value { if (lastTag != value) { @throw [NSException exceptio, ...ادامه مطلب

  • Share image and text message with Wechat not working in objective c

  • Vote count: 0 Hi I am trying to share image, URL and description with wechat user using UIActivityController but it fails to share image. I tried with following code: UIActivityViewController *activityView = [[UIActivityViewController alloc] initWithActivityItems:@[@"TestMessage", [UIImage imageNamed:@"pauseImage"], [NSURL URLWithString:@"http://www.google.com"]] applicationActivities:nil]; activityView.excludedActivityTypes = @[UIActivityTypeAssignToContact, UIActivityTypeCopyToPasteboard, UIActivityTypePrint]; [self presentViewController:activityView animated:YES completion:nil]; Getting output as shwon in image Any help or suggestion will be appreciated. Thanks. asked 46 secs agoPavan More Let's block ads! بخوانید, ...ادامه مطلب

  • جدیدترین مطالب منتشر شده

    گزیده مطالب

    تبلیغات

    برچسب ها