shared

Accessing a Resource Calendar with no mailbox via EWS and C#

落爺英雄遲暮 提交于 2019-12-05 14:51:31
Our Exchange Admins (Exchange 2010 SP1) have setup a shared resource calendar. There is no mailbox assigned to this resource calendar . I want to be able to read the meetings using EWS and C#. Snippet: ExchangeService esvc = new ExchangeService(ExchangeVersion.Exchange2010); esvc.Credentials = new WebCredentials(username, password, "ourplace.org"); esvc.Url = new Uri("https://OWA.OURPLACE.ORG/EWS/Exchange.asmx"); FolderId shareFolderId = new FolderId(WellKnownFolderName.Calendar, "Shared Calendar Name"); CalendarFolder.Bind(esvc, shareFolderId); the bind statement throws the error: "The SMTP

When to use Shared methods in .NET

﹥>﹥吖頭↗ 提交于 2019-12-05 11:09:53
I'm get kind of getting mixed messages about this so I'm hoping someone can clear this up for me. Should I be using Shared methods/functions in the following situation: I have a generic class named "Person". This class represents a person in the database. I have a manager class named "PersonManager". This class contains methods which adds, updates, deletes individual Person objects. A method also exists to lookup Persons from the database. Should these methods in the manager class be declared as shared methods? Or is it more appropriate to create a new instance of the PersonManager class each

NUMA-aware named shared memory for Linux

天大地大妈咪最大 提交于 2019-12-05 09:57:21
The Windows API offers the CreateFileMappingNuma function ( http://msdn.microsoft.com/en-us/library/windows/desktop/aa366539(v=vs.85).aspx ) to create a named shared memory space on a specific NUMA node. So far, I have not found an equivalent function for Linux. My current approach looks like this: Allocate named shared memory (using shm_open(...)) Determine current NUMA node (using numa_move_pages(...)) Move pages to target Node (using numa_move_pages(...) again) Does anyone know a better approach? EDIT: For the record: My proposed implementation does work as expected! That sounds right. Note

“Access of shared member, constant member, enum member or nested type through an instance”

岁酱吖の 提交于 2019-12-05 02:04:21
I wonder why Visual Studio is raising this warning: Access of shared member, constant member, enum member or nested type through an instance My code: Dim a As ApplicationDeployment = deployment.Application.ApplicationDeployment.CurrentDeployment If System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed Then If a.IsNetworkDeployed Then ' do something End If End If What implies "through an instance"? Also, why is this a "warning"? Showing a warning is a design option. In C#, it would throw an error when calling a static using an instance ( this ) keyword. The problem is that you

Can't Control Order of String Set in Shared Preferences

耗尽温柔 提交于 2019-12-05 00:13:11
问题 This is my first stackoverflow question. I have done lot of googling on this. On Hashsets, Treesets, LinkedHashSets, Collections, Stacks (Stack class is deprecated?)... I realize I could just use SQLite but I'm trying to avoid that for the time being. I'm working on an app in Android Studio. The app deals with people, listing them and contacting them in different ways. App users can maintain and control three types of lists: recently contacted, blocked, and favorites. These lists are saved as

DLL shared memory problems with different session, service and user session

穿精又带淫゛_ 提交于 2019-12-04 21:28:31
first, Thank you read this :) I use DLL shared Memory and using interlocked~ functions. (Win 7) DLL loaded by service exe and user app exe. you know, service session is 0, user session is 1 so different. if DLL's shared memory value changed by user app exe, not reflected service's DLL shared memory value. is there a way to sync service and user app's DLL shared memory? Shared sections don't work across session boundaries any more. Microsoft considered this a security problem and deliberately broke the feature, quite some time ago if memory serves. I believe each session now sees its own

Can't get Flask running using Passenger WSGI on Dreamhost shared hosting

∥☆過路亽.° 提交于 2019-12-04 18:32:21
问题 I'm trying to get a Flask "hello world" application working on a Dreamhost shared server, following the instructions on their wiki, but I'm not having any luck. My Flask application is the "hello world" one from the Flask quickstart guide: from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello World!' if __name__ == '__main__': app.run() Which I've got in a file called "hello.py" in a folder called mysite, as per the DH wiki instructions. My passenger

Shared library in containers

时间秒杀一切 提交于 2019-12-04 15:44:10
问题 For two processes A and B, the both use the library libc.so, libc.so is loaded into memory only once. This is a normal situation when A and B both run on the same host and the same rootfs. When it comes to container, if A and B are running in different containers, are A and B sharing same memory area? for example imageA --libc.so --programA imageB --libc.so --programB we use chroot to run A and B in different rootfs. The two libc.so are same. Will libc.so be loaded into memory twice? 回答1:

What are the Pitfalls of using a shared static WCF Proxy Client?

早过忘川 提交于 2019-12-04 14:58:57
I am considering using a Shared (read static) WCF proxy client for a high throughput application. I believe there is a performance gain in doing this, but I have not benchmarked this as yet. Are there some serious pitfalls to this idea? From my research I can see that there is the issue of handling the fault state, it is not clear what the flow on affect of this state would be to other pending requests. Does anyone have any experience recovering a WCF proxy from it's faulted state? thanks in advance! Once the channel is in a faulted state it will stay that way. So yes, I think a static client

Public Static variable in excel vba

主宰稳场 提交于 2019-12-04 10:32:39
问题 Is it possible to have a static variable declared in one procedure, and use this variable in several different procedures using Excel VBA? i.e. Public myvar as integer Sub SetVar() static myvar as integer myvar=999 end sub sub Usevar() dim newvar as integer newvar=myvar*0.5 end sub I need myvar to be seen by other procedures, and not change or get "lost". The code above works if myvar is not declared as a static variable, but more code then the variable is "lost". If the static declaration is