Hi,
I am looking at the examples given at the XML_Serialize pear plugin manual.
I can't figure out what the option 'addDecl' does in this plugin.
What does this do?
i use http://github.com/joshthecoder/tweepy-examples to twitter user login on gae,
and successful now ,but ,how to show user info ?
i have the 'auth' object ,and what is the document about auth method and property,
auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)
thanks
I have a website where I want to allow the users to invite their friends, by getting their contacts in hotmail/msn.
Google has the google contacts API for these purposes, does MSN publish a similar javascript API?
Please note that I do not want to ask the user for their username/password like http://openinviter.com/ .
Also, if anyone can provide some tutorials / examples I would appreciate it, as Microsoft docs are usually hard to understand :)
I have a Groovy application for Windows and am trying to convert a Hash object to an Apple plist file. What is the best way to go about this? Seems like this is something that must already be solved in Java but I can't seem to find any examples.
Thanks in advance
I am trying to create a file upload field that has a little bit of style to it, but I seem to be having problems finding examples of this. I know part of the reason is that the field itself varies from browser to browser.
Any ideas how to do this? Or is there a way to do this without using a file element of a form that can be styled?
What is the standard way to retrive and check for the argc and argv and what is the best usage and how to do that in linux?
Please provide examples.
Thanks
hi,
i want to put noise filtering which is already in the sphinx4 to my application.
is there any previous examples available. how to do it and all. what are the libraries and all.
I have a table records(ID, ParentID) containg this data
ID ParentID
1 null
2 1
3 2
3 4
4 5
6 null
7 6
If you draw this table in hierarchy as a family 1,2,3,4,5 will be related to each other.
I want to find a way, where I can pass an ID like 3 it give me the others family members using SQL or using C#
3 - result 1,2,4,5
2 - result 1,3,4,5
6 - result 7
and so on
I want to find my parent and his parents and childs and my child and his childs
LIKE THE EXAMPLES
Hello crew
I want to learn core java design patterns.
Could any one of you suggest good pdf where I could know about the design patters in java with simple examples.
Thanks in advance :-)
In my ASP.NET application I want to implement by data acess layer using the Entity framweok so I can use it as an ORM tool. But I dont want the rest of the application to care that I'm using this or be polluted by anything entity frameowrk specific.
I cant seem to find anyone who is using the entity framework exclusively in their Data access layer so I'm keen to see any online examples of this/ experience people have.
I would like to create a base class that is somewhat generic for all of my entities. The class would have methods like Save(), Delete(), GetByID() and some other basic functionality and properties. I have more experience with Linq to SQL and was hoping to get some good examples for something similar in the EF. Thank you.
Is there an ipfw rule that can easily forward mDns packets from one subnet to another? I have a Snow Leopard Server machine serving as the gateway between the two subnets and would like for machines in each subnet to see the services available in the other subnet. The gateway machine is already confirmed as configured correctly such that packets route correctly between the two subnets (ping works, traceroute shows the subnet hop, etc). My problem in designing a ipfw rule is that I don't know how to instruct that I would like multicast packets addressed to 224.0.0.251:5353 on en0 to be addressed to the same ip/port but on fw0 (the other interface). I attempted a rule such as
fwd 192.168.10.1 log udp from 192.168.1.0/24 to 224.0.0.251 recv en1
to force the packet to hop over to the other interface (from en1 to fw0), but no dice. The ipfw log shows that the rule is being triggered by packets, but tcpdump isn't showing any packets on the other interface. Also, the only other firewall rules in place are the divert port 8668 and rule #65535 "allow any to any".
Any suggestions? Thanks.
I've seen examples of something like
[someArray sortUsingSelector:@selector(compare:)];
I'm looking for an example that stores a collection of UIViews and I'd like to sort them in ascending or descending order based on tags I assume programatically when a new UIView is created.
If someone could provide a code example or instructions that would be fantastic
Searching around the Microsoft.M assembly I found the SourceParser class and whole set of classes in the Microsoft.TSQL10 namespace that seem related to parsing SQL but I cannot find examples of how to use it.
I know the you can generate T-SQL easily enough, but can you consume it, manipulate the data structure and re-output a modified version of the SQL select?
I find myself struggling to do simple things that would normally take me about 5 minutes to do in PHP. At the moment, I'm trying to create a basic form which will print the details on another page when you click submit.
Looking at the documentation, I find examples but none explaining why it works in such a way.
I've been using the Semaphore class to create semaphores. However, the examples use managed code (requires /clr), and I need to use unmanaged code because it seems FreeType doesn't like working with managed code.
How can I create two simple threads which use a semaphore in unmanaged code?
Why are UNIQUE Constraints needed in database ?
Can you provide any examples ?
Primary Key is UNIQUE by default... Understandable as they are referred in other tables as Foreign keys... relation is needed to connect them for rdbms platform...
but why would one refer to other columns as UNIQUE, what is benefit of doing so ?)
I have a need to add business reporting for an application I am working on. I have found very little in the way of support for MVC natively. I would like to get a feedback on tools that people have used, how they used it (native or hybrid) and if possible links to examples demonstrating integration.
I'd like to get feedback on use of
Crystal Reports
SSRS
Telerik
MVC Reporting Solutions
SSRS - requires hybrid application with winforms page hosting the report
Telerik - ???
Crystal Reports - requires hybrid application with winformats page hosting the report
So I read MSDN and Stack Overflow. I understand what the Action Delegate does in general but it is not clicking no matter how many examples I do. In general, the same goes for the idea of delegates. So here is my question. When you have a function like this:
public GetCustomers(Action<IEnumerable<Customer>,Exception> callBack)
{
}
What is this, and what should I pass to it?
I am asking if it is necessary or useful to have semantic variances in UML. Would it not be more useful when it was more formal and therefore verifiable or even used for rapid prototyping. What is the benefit of the variance? Can you give some examples?
Found some examples of @NamedQuery annotations,e.g.:
@NamedQuery(name="employeeBySsn" query="select e from Employee e where e.ssn = :ssn")
what does parameter e mean?
the second usage of it seems like alias name of table and what does "select e" part mean?
Not every description from from http://findbugs.sourceforge.net/bugDescriptions.html is clear to me. Sure, I can study the implementation but if somebody is more experienced then me, some explanation and examples would be great.
Do you have some examples for UI_INHERITANCE_UNSAFE_GETRESOURCE when this is getting a problem?
In BX_UNBOXED_AND_COERCED_FOR_TERNARY_OPERATOR I don't see the problem either. If one type is "bigger" then the other, for example int and float, then the result is float. If its Integer and Float its the wrapper Float too. That's what I expect.
Does the GC_UNRELATED_TYPES really help to find errors? Isn't it the job of the compiler to check, if--taking the given example--Foo can't go into a Collection<String>.
Does HE_SIGNATURE_DECLARES_HASHING_OF_UNHASHABLE_CLASS mean something like bla(Foo f){hashtable.put(f);}, where ´Foo´ is not hashable? Does FingBugs "see" the subclasses too?
NP_GUARANTEED_DEREF_ON_EXCEPTION_PATH is stronger "wrong" then NP_ALWAYS_NULL_EXCEPTION? Why two error cases and with NP_NULL_ON_SOME_PATH_EXCEPTION even one more? Sounds very similar to me.
What is an example of SIO_SUPERFLUOUS_INSTANCEOF? Something like foo(String s){if (s intenceof String) .... This does a null check too, but this is not the test here...
NN_NAKED_NOTIFY. I my opinion the description is not clear. A change of the state is not necessary. If I use new Object() to wait and notify on I don't change the object state. Or is state the lock-state? I don't get it.
SP_SPIN_ON_FIELD. Can this really happen that a compiler will move this outside from a loop? This doesn't make sense to me because from outside a Thread can always change the values. And if the variable is volatile the JVM can't cache the value. So what's the meaning?
That is the difference between STCAL_STATIC_CALENDAR_INSTANCE and STCAL_INVOKE_ON_STATIC_CALENDAR_INSTANCE or STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCE/STCAL_STATIC_SIMPLE_DATE_FORMAT_INSTANCE?
Why is XXXX.class in WL_USING_GETCLASS_RATHER_THAN_CLASS_LITERAL better then getClass()? A getClass() in a superclass called from the subclass will always return the Class object from the subclass which is good I think.
What exactly does EQ_UNUSUAL do? It should check that the argument is of the same type of the class itself but it does't?
Did you ever had problems with breaks? Is there real value with SF_SWITCH_FALLTHROUGH? Sounds to strong for me.
No idea what TQ_EXPLICIT_UNKNOWN_SOURCE_VALUE_REACHES_ALWAYS_SINK and TQ_EXPLICIT_UNKNOWN_SOURCE_VALUE_REACHES_NEVER_SINK could be.