I am a C# developer and I am learning zeromq api right now. By reading various articles, I found that I have to use C# Bindings.
The main problem for me is where to start. I followed steps on this link and put libzmq.dll under C:\windows\system32\ and I have clrzmq.dll and clrzmq-ext.dll referenced in visual studio project. I tried first two samples from zeromq guide and it works fine.
I got confused when I show these links.
link1
link2 (please scroll down to example.
As shown in link1, I don't see any method like Context.CreateContext() and CreateSocket()
As shown in link2, subscriber does not have event that notifies about the received data.
Can someone point why I am not seeing above things on my machine?
Thanks,
mChicago
In your question you say there is no Context.CreateContext()
If you are using the clrzmq bindings, the call is
using(var context = ZmqContext.Create())
...
Perhaps you misread it?
You second question is actually about some ambiguity on the C# bindings page. The example you point out is actually for the ZeroMQ Interop library, and not clrzmq (which is referenced at the top of the page.) The defining line between those two sections is kind of confusing.
Hope this helps.
Related
This is one of the things I find infuriating about C#. I have thsi massive library im trying to use right now and for some reason the people who create the code examples are not smart enough to include the namespaces you need to import in the examples. This is usualyl the case. I find myself searching through the namespace, hundreds sometimes nested trying to figure out which ones i need to import. In java netbeans, it even tells me which packages to import because it searches for me. But in C# i always waste countless time searching through the namespace manually.
Is there any way I can get around this. Like right now im trying to find which namespace contains TwitterCredentials for Tweetinvi library.
Seriously, why do people not include the namespace in code examples. It's just stupid not to!
And why does visual studio not make suggestions like java. It's just common sense really....
You can press Ctrl + . on each word that has error or point to small blue bar under the word and click on dropdown, and use offered namespace.
I am the developer of Tweetinvi :)
ALL the classes you need in Tweetinvi are located in the Tweetinvi.Core.* namespace.
TwitterCredentials.cs
To answer your question regarding Namespaces and why I do not include them in the examples. The reason is that as mentioned by Reza Aghaei Visual Studio and Resharper allow developers to include namespaces.
Furthermore as you mentioned the library is big and therefore multiple namespaces might be required and I am not going to add all of them in each example. Otherwise the documentation would just be huge.
I hope you will like the library and please feel free to ask any question here on stackoverflow or on github.
Happy coding.
PS: By the way you can also use Github to search for filename with a 't' keystroke on the Source Code page.
I'm collaborating on a project with my buddy, and I'm working on most of the code while he does the front-end interfaces/graphics. I would like for him to have access to the project when he needs it (for instance to check up on progress). I read that you can set up a post-build event with VS to save your project to somewhere else (dropbox in that case, and in mine as well), but there's no documentation anywhere on the web (that I could find) detailing how to do this. If anyone knows and can point me in the right direction, that'd be great.
P.S. Is this the place I should be posting this? Please tell me if this ought to be in a different forum.
Why don't you use a free online source code repository like CodePlex, GitHub or Visual Studio Online instead? Then it's properly stored somewhere and versioned.
I get the feeling that this question is either too basic or too complex to be covered by any documentation on pushSharp. But how exactly do I incorporate it into my project. I am used to Java/php, etc and have never really looked at C# before. I have been reading whatever I can find but am not really sure what I should be looking at.
I have an ashx file that is handling my ajax calls and is currently using the example code from http://www.codeproject.com/Tips/434338/Android-GCM-Push-Notification to send push notifications. I would really like to incorporate pushSharp so that I can do this for ios and windows as well but am feeling a bit lost as to how to do this.
With Java I would compile the library as a jar and include that in a project. Would I do the same here by compiling the whole pushsharp project as a dll or each folder (android/ios etc) or have I got this completely wrong? Any suggestions, or pointing me to the relevant tutorials/documentation would be greatly appreciated.
Thanks #k3b did some research on this without considering pushsharp as being any different and got it resolved. thanks.
I am working with PHP and recently started to learn C# so know basic stuff, I used to post on my wordpress blog with MetaWeblog and I found a library here which can be used to post on wordpress using c# but i am not exactly sure how I can use it. I have imported library in visual studio.
http://www.matlus.com/metaweblog-api-c-library/
Kindly if someone can explain and possible show an example code on how to post I will really appreciate. there is a list of methods on above link.
methods
http://www.matlus.com/content/uploads/2011/01/MatlusMetaWeblogClassDiagram.jpg
Best Regards
The blog post you refer to tries to implement MetaWeblog support on the server side, which is not what you are looking for I think.
Maybe you can start from this one,
http://www.wynia.org/wordpress/2006/06/creating-a-basic-metaweblog-api-blogging-client-in-c/
Is there a way to do this in MonoTouch?
http://definelabs.com/blogs/?p=17
I don't understand much of that Objective-C code...
I wrote an article on this: Accessing iPhone Album
I know this is an old post, but there is a demo app that I've created that lets you do the features Nicklas Savonen requested.
What this demo app does is, it will get the list of images from AssetLibrary and will load them in a UItableview, then maintain a selection status, the Tick image is just an overlay image that will be hidden/visible based on selection.
The following link explains the basic steps you need to take, since it would be difficult to understand by the project:
http://helpalittle.wordpress.com/2014/03/28/monotouch-multiple-image-picker/
And you can find the complete solution at the following path: https://onedrive.live.com/redir?resid=697F540B0A2F1506%21107
hope this helps.
I know am not helping much at this point, but you need to learn at least a bit of ObjectiveC to be able to read it. The issues is, that all the samples and plenty of resources for iOS development is in ObjC and converting it to Monotouch is not that complex, in fact all the constructs there have C# equivalent (the blocks in the sample you posted, are in fact anonymous methods).
More to the point, multiselection of the images is done in the iOS SDK 4.x, if I find some spare time this would be a nice little exercise for my blog.
As to what APIs to check for this, these are asset library APIs:
ALAssetsLibrary & ALAsset & ALAssetsGroup
in Monotouch there are classes in (pseudo code):
using MonoTouch.AssetsLibrary;
MonoTouch.AssetsLibrary.ALAsset;
MonoTouch.AssetsLibrary.ALAssetsLibrary;
MonoTouch.AssetsLibrary.ALAssetsGroup;