I'm using the DotNetOpenAuth samples, particularly the OpenIdRelyingPartyWebForms. When I use loginPlusOAuthSampleOP it fails on the LoggedIn event with the error:
"Precondition failed: this.TokenManager is IOpenIdOAuthTokenManager" mean?
Any ideas what this could be?
I'm working on a zend framework based email project and I'm following some code samples online.. I can't understand this line of code which apparently loops through different 'parts' of an email message. I have no idea how it works btw and suspect that theres some error taking place which my parser isn't showing right.
foreach (new RecursiveIteratorIterator($mail->getMessage($i)) as $ii=>$part)
what does the above foreach loop mean?
I have seen this statement in many of the documention samples, like here
This class is the default implementation of the "ISomeInterface" interface
what exactly this means ? Thanks
I'm adding GeoIP tracking to WCF Web Service using MaxMinds' GeoIP Lite Country. All works well for their IPv4 database but they don't give any samples to calculate an IPv6 IP Number. I've contacted them and they said to use a search engine.
Anyone have a sample they're willing to share? Any language will do.
Hi friends,
....I want to set an TextBox inside my custmize keyboard ..and whatever I write in that directly reply in my appliaction focus TextBox.Is it possible.
An sample code for Soft Keyboard giving in Android SDK platforms\android-1.1\samples ..find it.
Thnx in Advance.
I'm looking for some good resources to learn how to implement internal service layer in Zend Framework. This is interesting post, but with no concrete code samples.
Where to put service classes (/application/modules/modulename/services/?);
How to autoload them (custom autoloader?)
Most common services (user, authentication, cart, cache, feed?)
Sample implementations (any github repos?)
Good practices?
I'm looking for the BEST asp.net calendar/schedule component that it out there.
I like the look of google calendar, and it absolutely needs to be a native .net component, which can be customized.
I don't mind if it is part of a bigger framework (like telerik, for example).
Links to samples would be great.
I am trying to write an application (console based),in which one thread reads information from console and another thread prints the same information back to console.
I am stuck in implementing the synchronization logic .
Can anyone refer me some samples.
john
Hi,
Is there anyway to record the sound in slow manner using AudioQueues in Iphone(may be in call back function ?). Currently I am recording in Linear PCM with 22050 Hz. Basically I want to adjust the audio samples to match my video frame rate (which is 10 FPS).
Thanks
When you're using Haar-like features for your training data for an Adaboost algorithm, how do you build your data sets? Do you literally have to find thousands of positive and negative samples? There must be a more efficient way of doing this...
I'm trying to analyze images in matlab (not faces) and am relatively new to image processing.
Here you will find all the SimpleDB code samples on the AWS page.
Here you will find a VB.NET SimpleDB library.
Is there a production grade SimpleDB library, preferable built in C#. If not, May I use the VB.NET library on a C# project as a reference?
What ReSharper 4.0 templates for C# do you use?
Let's share these in the following format:
[Title]
Optional description
Shortcut: shortcut
Available in: [AvailabilitySetting]
// Resharper template code snippet
// comes here
Macros properties (if present):
Macro1 - Value - EditableOccurence
Macro2 - Value - EditableOccurence
One macro per answer, please!
Here are some samples for NUnit test fixture and Standalone NUnit test case that describe live templates in the suggested format.
I'm looking to do Authorize.net payment integration with a website using PHP.
My questions are:
1) Where I can find a tutorial, development guide, and/or code samples for doing this with PHP.
2) Is it possible to obtain a test account to do the integration like Paypal's sandbox, or does one need to have a live account to which you can pass an additional parameter to indicate the transaction is a test one?
All other advice will also be helpful. Thanks!
Is there a good book which I can follow to learn modelling/doing architecture? Good samples?
What would you do if you have to learn modelling from very basics?
Thanks
I have seen many samples of Ruby code with this line (for example, http://www.sinatrarb.com/). What is purpose of this require?
# require 'rubygems'
require 'sinatra'
get '/hi' do
"Hello world!"
end
In all cases the code works without this line.
I am investigating a switch from windows to linux struggle to find samples of design patterns applied in this world.
If i use python or ruby, what should i use for GUI ?
And what pattern : is MVC, MVVM or MVP any good ?
Or is there anything better ?
Hi,
I know the AFORGE.NET API has motion detection algorithms, but what would be a good book to learn these algorithms with C# samples (the AFORGE.NET code is complex and not commented enough to help).
Thanks
Hi eveyone!
I have a simple question about filtering attributes in WEKA.
Let's say I have 500 attributes 30 classes and 100 samples for each class which equals 3000 rows and 500 columns. This causes time and memory problems a you can guess.
How do I filter attributes that occur only once or twice (or n times) in 3000 rows. And is it a good idea?
Thank you
I have 2 samples that effectively do the same thing --
Sample 1:
command.Parameters.Add(ParamFoo, SqlDbType.Int)
command.Parameters(ParamFoo).Value = fooVal
Sample 2:
command.Parameters.AddWithValue(ParamBar, barVal)
Which sample would be recommended? I know that the second sample is making some conversions. Wouldn't it be best to not require conversions and go with the first sample?
I'm trying to write a program that needs smooth orientation sensor samples as the phone is rotated all around. Every time the orientation of the phone is changed, it interrupts the data and freezes the program while the layout changes. How can I lock it in one orientation (landscape or portrait, it doesn't matter)?
I assume it has something to do with android:layout in the xml file, but I can't find anything online.
Where can I find tutorials about creating a social network (like db structure, sql query samples eg.) using PHP & MySQL ? I do not need a ready script, I just want to learn how to do it..
Hi,
since the new SDK 1.1 is missing the tutorial for "ASPProviders", i am currently asking myself how i would implement a "azure session state provider" ( this is the path in the "old" SDK: C:\Program Files\Windows Azure SDK\v1.0\Samples\AspProviders )
Related threads:
http://stackoverflow.com/questions/1023108/how-does-microsoft-azure-handle-session-state
http://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/2d1340ed-0ad0-456a-b069-aa6b85672102/
Has anyone an idea or even the old example project and could post some snippets of the config here?