Yes, There's More Than One Way To Do It™, but what is the most canonical, most efficient, and most concise methods to read an entire file into a string? (The latter two are perhaps at odds.)
hii ..
I wish to do my project in mvc pattern. so I chose cairngorm framework and just read some of the document about this framework.But I cant understand deeply to do project using this framework. Have any methods or examples to study doing project in cairngorm framework??
If u can pleas help me.
I have a page in Sitecore that displays the list of clients. There's a form with two select boxes that should filter out clients not matching specified criterias. Clients list should be refreshed via AJAX everytime user changes one of the values in the form or after clicking Submit button if JS is disabled.
What is the suggested approach I should take to have this working in Sitecore? I'm not sure about Sitecore part, I know how to call AJAX methods/
If I create a String with [NSString StringWithFormat], do I have to [retain] it?
My understanding is that convenience methods add the objects to autorelease pool. If that is the case, shouldnt we retain the object so that it doesnt get drained with pool at the end of the event loop?
Hello,
I am curious what are the methods / approaches to overcome the "cold start" problem where when a new user or an item enters the system, due to lack of info about this new entity, making recommendation is a problem.
I can think of doing some prediction based recommendation (like gender, nationality and so on).
Thanks
In a Google Wave Robot, the event handler gets a Context object.
One of the methods is GetWaves, that is documented as:
"""Returns the list of waves associated with this session."""
I am trying to understand when this would return more than one Wave.
What are the situations where there is more than one Wave associated with the session/context?
Hi,
When using the Service design pattern, do you usually place the logged in user, or user scope, as a parameter to the methods of the service interface, or do you call AutheticationService.getLoggedInUser() in the service implementation.
What advantages/disadvantages do you find for each option?
Is it good or bad practice auto-generating toString methods for some simple classes?
I was thinking of generating something like bellow where it takes the variable names and produces a toString method that prints the name followed by it's value.
private String name;
private int age;
private double height;
public String toString(){
Formatter formatter = new Formatter();
return formatter.format("Name: %s, Age: %d, Height %f", name, age, height).toString();
}
I'm using the jQuery Fancybox plugin to display some content on a website. Unfortunately, when a link is clicked, the lightbox that is loaded starts at the same scroll position as the previous one. I tried using
self.scrollTo(0,0)
$.scrollTo(0)
$('#top').scrollTo();
and a few others methods to push it back to the top, but none have seemed to work. Any help on this?
Hi ,
I added the xml tag to some of my methods but I can't see its content in the intellisense here is my code
/// <summary>
/// we all live in a yellow summary
/// </summary>
/// <returns>what it returns</returns>
public int MyMethod()
{ .... }
Do you have any idea ?
Thanks
Hi all ,
I want to print a set of invoice for my application. So I need to display all invoices in report viewer before they print. are there any methods to bind multiple reports to same report viewer using crystal reports or rdlc. I try rdlc but I couldn't find any way to do that.
please any one can provide code sample or instruction in C#.net it's worth for me.
thank you.......
I am building an application that will function as a client-server application, and also as a disconnected client application. I will be using WPF (browser app for client-server application).
When interacting with the server's database, I will need to connect using WCF web services. When connecting with the localized database, I will need to connect using the local db's data access layer.
What methods/patterns exist for this sort of architecture?
I'm trying to figure out how much overlap there is between the different languages of the .NET framework, and what the real differences are. Is there an overlap of libraries/methods/functions...? If I'm googling a question for, say, VB .NET, and C# answers come up, what can I take from the C#-relevant info and what differences/incompatibilities should I look out for?
Hi,
I'm new to drawing the chart using chartfx
can you give me the meanings of teh following methods,
they are kinda confusing...I did not find documentation anywhere.
GetValue ( )
GetXValue ( )
PutItem()
Thanks,
Arjun
Using PHP can you create a pseudo form submit without ever generating a form? Just initialize and declare variables and them pass them to another page via the POST or GET methods?
In Android, if I want to do some background work, what is the difference between
Creating a Service to do the work, and having the Activity start the Service
VS.
Creating a standard java class to do the work, and having the Activity create an object of the class and invoke methods, to do the work in separate threads
Thanks
Chris
UIViewControllers have viewWillAppear, viewDidDisappear, etc. delegate methods.
I would like to create a UIView subclass that can be added to a viewController's view, and when that UIViewController apears or disappears, a delegate function is called.
I could easily do this by putting function calls in the UIViewController viewWillAppear/viewWillDisappear delegate functions, but how can I encapsulate this behavior in the UIView?
In Java, what's generally the most accepted way to organize a class in terms of the order in which declared data members and methods should be listed in the class file, keeping in mind the following and anything else you can think of for each one:
its visibility
whether it's a constructor, method, or member
if it's a method, does it overload, or override other method(s)?
Do older iPods and iPhones have a frame rate of 60fps?
I'm finding that all the methods for calculating time intervals on iPhone (cftimeinterval, nstimer, timesince1970, etc) are all giving me bad data, so I've decided assume a frame rate of 60, just not sure if older apple devices can run at this.
A Flash AS3 IRC application sends me a string like "f\reak" to my javascript. Irc allows the \ in usernames which poses a problem when its passed to javascript.
"f\reak" become "feak" in javascript making the \r into a carriage return.
Is there a way to read the absolute value of the string instead of parsing a carriage return?
These don't methods didn't work
str.valueOf()
str.toString()
str.charAt(position of the \ ) this just sees the carriage return as well and not a backslash
I am trying to generate some code using CodeDom. I wanted to know if there is any way to create CodeMemberMethod from a string.
I found a method, but it generates assembly from string. I wanted to generate some methods from string. Is there any way?
Hi,
what is the difference between following function declarations, which create and return the array in C/C++? Both methods create the array and fill it with proper values and returns true if everything passed.
bool getArray(int* array);
bool getArray(int* array[]);
Thanks
Best Regards,
STeN
I'm wondering whether methods of PHPs SPLFileObject are atomic (e.g. thread-safe) or not?
If they aren't, I'll implement my own class, which will use flock(), but is this enough? Is the flock function really thread-safe? What if the collision occurs after I fopen() the file, but before I flock() it?
Hi all,
the Java sources for the Android framework are available at source.android.com. Can I download and feed them to Eclipse so that I can step into framework methods while debugging? Better yet, does anyone know of an Eclipse plug-in that would get them from Android Git automatically as needed?
I have to link dynamically with OpenSSL libeay32.dll.
I'm writing native c++ console application using Visual C++ Express 2008.
I'm including a header evp.h from OpenSSL distribution. Building and...:
error LNK2001: unresolved external symbol _EVP_aes_256_cbc
error LNK2001: unresolved external symbol _EVP_DecryptInit
error LNK2001: unresolved external symbol _EVP_CIPHER_CTX_init
How to make calls to libeay32.dll methods? I don't know where to specify it's filename