I have an aspx page on which I am using XDomainRequest object to populate two div(s) with html returned from AJAX response.
I have used Jquery to get the divs and perform "each()" on the retrieved List
var divs = $("div");
divs.each(function (index)
{
if (window.XDomainRequest) {
xdr = new XDomainRequest();
...
I'd like to know which objects can be reused (in the same or different document) when using the Java API for XML processing, JAXP:
DocumentBuilderFactory
DocumentBuilder
XPath
Node
ErrorHandler (EDIT: I forgot that this has to be implemented in my own code, sorry)
Is it recommended to cache those objects or do the JAXP implementatio...
I am confused by a code listing in a book i am reading, C# 3 in a Nutshell, on threading.
In the topic on Thread Safety in Application Servers, below code is given as an example of a UserCache:
static class UserCache
{
static Dictionary< int,User> _users = new Dictionary< int, User>();
internal static User GetUser(int id)
{...
Hi,
How To Cached My php Index Page to (/cache) folder for Faster Worked? What is methos is very fast ?
...
I'm writing a Windows CE application, and I want to play a sound (a short wav file) when something happens. Since this sound will be played often, my first instinct was to load the wav file into a memory stream and reuse that stream instead of reading the file every time.
But then it occured to me that these Windows Mobile devices only ...
Hi community,
i'm not sure, where i should implement the caching in my repository pattern.
Should I implement it in the service-logic or the repositiory?
GUI -> BusinessLogic (Services) -> DataAccess (Repositories)
Thanks and best regards
...
I'm running a benchmark on xeon server , and i repeat the executions 2-3 times. I'd like to erase the cache contents in L1 and L2 while repeating the runs. Can you suggest any methods for doing so ?
...
I'm building an ASP.NET MVC 2 site where I'm using the OutputCache parameter heavily. However, I have a concern: using such caching may interfere with authentication.
On all of my pages, I display whether the user is logged in or not. Furthermore, in some of my Views, I do filtering based on user role to determine whether or not to disp...
I found this question http://stackoverflow.com/questions/343899/how-to-cache-data-in-a-mvc-application and I'm wondering about being able to use this method with IQueryable data.
Public Function GetUsers() As IQueryable(Of User) Implements IUserRepository.GetUsers
Dim users = (From u In dc.Users
Select ...
I've added an app.config to a project, but when I run the build agent, it's not picking up that file. I have Clean all files before build checked, and have tried both checkout modes (automatically on server, and automatically on agent).
Here's the log file:
[17:24:50]: Skip checking for changes - changes are already collected
[17:24...
Hi folks,
I'm trying to set the cachability of an ASP.NET resource. So if I goto /foo/show it will show a View for some resource, and cache this for a few hours (for example). To do this, I'm using the OutputCache attribute which decorates my Action Method. The details of this cache (against this action method) are found in the web.conf...
We have million and millions of records in a SQL table, and we run really complex analytics on that data to generate reports.
As the table is growing and additional records are being added, the computation time is increasing and the user has to wait a long time before the webpage loads.
We were thinking of using a distributed cache lik...
I'm running a benchmark on xeon server , and i repeat the executions 2-3 times. I'd like to erase the cache contents in L1 and L2 while repeating the runs. Can you suggest any methods for doing so ?
...
I have a XML feed which contains 1000+ records of properties (rent, sale).
Currently I am calling this feed 16x on homepage, always returning only 3 properties for specific criteria like 3 new house, 3 new flats, etc, 5 recommended house, 5 recommended flats etc.
This scenario was working well for 7 months whilst there was 200+ proper...
Is there a reason why IntelliJ creates a lot of files under C:\Users\<username>\.IntelliJIdea90 ?
This directory has slowly grown to around 2GB. I can understand IntelliJ needs to perform some caching for local history, and indexing, but 2GB seems a litle excessive
Is there a way to safely clear down some of this data and free up some ...
Hey everyone,
I have a class filled with properties. When the properties are accessed it reads some values out of an XDocument.
public class Foo
{
private XDocument root;
public Foo(Stream str)
{
root = XDocument.load(str);
}
public String Bar
{
get
{
return root.Element("bar").Value;
}
}
}
Only it seems a bit o...
Hello,
I'd like to go slightly deeper into Smarty caching, so I have some simple questions...
To manipulate cache invalidation I want to know what directory Smarty is storing it's cache in. For example, all cached pages related to user_id=123 I want to store at cache/users/123/. Where cache is smarty caching dir. How can I tell smarty...
I'm getting an error with the AppFabric Cache Server when I presume a larger object graph gets added to the cache.
ErrorCode :SubStatus:The connection was terminated, possibly due to server or network problems or serialized Object size is greater than MaxBufferSize on server. Result of the request is unknown.
I know for sure its not a...
ViewState Chaching
This is a great idea, but it's implemented for sharepoint .Wonder if there is a solution for regular asp.net pages, which does the same, caches viewstates.
...
I'm using the instructions in this github readme file (at the bottom) to make ajax calls for autocompleting a list of tags, sort of like what this website does, actually!
It works pretty well, but it seems like it might be a little inefficient, since the list of tags almost never changes. Does anyone have recommendations on how to ma...