Is it possible to use the google maps API to cache the map images of a certain location so it can be loaded locally whenever the map starts up again but from a different location?
I have a usercontrol with asp:textbox controls on it that also performs postbacks. If two users, who are both identified by a different session variable, postback the page within the same second, one user will see the other user's viewstate values in the text boxes. I have validated that this happens by setting a textbox, a session variable, and a cookie to the same value (the same value that identifies the user) and writing to the log when all three don't match. The text box's value is the one that is logged as the other user's value.
ASP.net 3.5, IIS 6
Has anyone experienced this issue.
I was trying to install a new WSS v3 Sharepoint on a 64 bit Windows 2003 server today but the installation was giving some error saying i would need to allow ASP.NET 2.0 in the web server extension in IIS.
Looking at the IIS there was a ASP.NET 2.0 32 bit allowed but not for a 64 bit.
I tried registering the aspnet_regiis but no luck by doing so:
For the 32 bit verison
%SYSTEMROOT%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i
For the 64bit version
%SYSTEMROOT%\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis.exe -i
I get the error "The error indicates that IIS is in 32 bit mode, while this application is a 64 b it application and thus not compatible."
The difference is the \Framework64 folders
So my next guess was to find a way to disable the 32 bit and then allow the 64 bit version.
And luckily enough i found this link MS to the rescue
So just ran : cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 0
and the registered the
%SYSTEMROOT%\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis.exe -i
and that was it
Any one suffer from programmer’s block, if so how do you kick start your brain again? I’ve been working on a project since I returned from two weeks holiday, it’s a piece of cake to finish but I’ve done everything but pull my finger out and finish the damn thing.
Hi!
I would like to create a cache for my php pages on my site. I did find too many solutions but what I want is a script which can generate an HTML page from my database ex:
I have a page for categories which grabs all the categories from the DB, so the script should be able to generate an HTML page of the sort: my-categories.html. then if I choose a category I should get a my-x-category.html page and so on and so forth for other categories and sub categories.
I can see that some web sites have got URLs like: wwww.the-web-site.com/the-page-ex.html
even though they are dynamic.
thanks a lot for help
Task: (all in code, not visual) create a canvas, place into it some labels and draw some lines, then cache it as byteArray.
The problem is that if I cache an object that is already drawed on the screen, it works great, but if I cache a canvas, that have been created few lines earlier, this results white image.
Is there any solution to cache a display object, that was created in code, but not intended to be displayed at all?
I have had a hard time finiding a newbie friendly example of accessing Application Object. I have few things ( arrays ) i would like to store in Application Object to keep as persistant data for about 2h till AppRecycle
Anyhow i know how to set an Application Object variable this way:
// One way
String[] users = new String[1000];
Application["users"] = users;
// Another way
Application.Add("users", users);
However i do not know how to access these variables once in Application Object there is a Getter method Get however it requires int index and other one Contents which get's everything.
Here i try to retrive my String[] array but gives me a error that i am trying to convert Object to String.
String[] usersTable = Application["users"];
// Since this is an object i also tried Application.users but gives error
I am a web developer, have worked with PHP and .NET both. having over a year of experience working on web I haven't been able to understand the browser caching features thoroughly, I hope Web Gurus here can help me with it. Questions I have in my mind are :
How does browser actually caches stuff, does it request for to see if the cached file has changed on the server or not,
What is the Ideal way for a developer to make use of browser chaching to its full, but also to be able to push new changes on the site with no hassle at all. I think if browser somehow chaches my CSS and JS and Images, and then just makes a checks for their modification to the server everytime, this can sort the issue. but I am not sure how to do it,
waiting for interesting answers :)
Hi all,
I'm looking for a .net library that will enable me to extract block attributes out of a autocad file. I don't mind paying for a developers licence but I should be able to freely redistribute the library itself without additional costs.
Is there a lib that suits my needs?
greetings,
Coen
I am making a paid App for Windows 8, c#. I am wondering which is better?
If my application doesn't need internet connection normally but does requires internet connection for the first time to download content data. --Makes my life easier
Load the default data when installing. Then ask the user if he wants to update in app. -- Making the default data will be pain.
Now my big question is, is it safe to assume user has access to internet now-a-days when using application that shouldn't require internet?
A couple weeks ago we did a soft release of a new ASP.NET MVC 2 Tutorial and Sample Application Ive been working on over the past few months, the MVC Music Store. The source code and an 80 page tutorial are available on CodePlex. Im also working on a video tutorial series for the ASP.NET website which will walk through building the application. After that, its time to talk about a feature length film and a worldwide MVC Music Store On Ice tour, but the plans arent completely set just yet. ...Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
So I already have a working implementation of StructureMap with the WCF service (including custom instance provider, behaviors, etc.)
When I try to have an object that is instantiated only once per user request, I use the InstanceScope.HttpContext and it throws because the context is null.
Do anyone have a proper way of doing that?
hi
Is there any way to intercept incomming calls/sms (to block or unblock it) on the basis of mobile numbers which are added to screening list.
Thanks in Advance...
There seems to be a problem in Magento's reading of the var/cache directory. I've disabled Full Page Caching for testing.
When I execute the bash command chmod -R 777var/cache/` before loading the page, it loads ~3 seconds quicker (the time it takes before 'mage::dispatch::routers_match' is reached in the Profiler is reduced from ~4 seconds to ~1 second).
This speed-up remains a while but then is lost until the chmod is called again.
I'm guessing this has to do with writing permissions somehow? The odd thing is, the cache contents are afaik owned by the process that is executing magento (the web user).
Does anyone have any clues what could be the problem or what could be changed to prevent this?
I need a solution where I have a single windows service providing access to cached data to various consumers: To an MVC web application, a .Net Assembly (COM interop) used within an classic ASP page, other windows services, a windows forms application. So the data must be accessible from various processes. The data being cached is read-only. For now, all processes are located on the same machine. The environment is .net framework 3.5 and c#.
My question is, how can multiple appdomains/processes retrieve cached data from a single windows service?
I'm writing an application for a medium sized company that will be used by about 90% of our employees and our clients.
In planning for the future we decided to add functionality that will verify that the version of the program that is running is a version that we still support. Currently the application will forcequit if the version is not among our supported versions. Here is my concern.
Hypothetically, in version 2.0.0.1 method "A" crashes and burns in glorious fashion and method "B" works just fine. We release 2.0.0.2 to fix method A and deprecate version 0.1. Now if someone is running 0.1 to use method B they will be forced to update to fix something that isn't an issue for them right now.
My question is, will the time saved not troubleshooting old, unsupported versions outweigh the cost in usability?
I need to simulate the behavior of the keyboard shortcut (ALT+F4) using Terminal for a given application.
If I open for example gedit and click ALT + F4 , then GEDIT will be xkilled.
If I want to achieve same thing using Terminal, how should I proceed?
The command
export PIDTOKILL=pidof gedit | grep [^*]; xkill -id $PIDTOKILL
does not work and gives the following error:
xkill: killing creator of resource 0x3f38
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 113 (X_KillClient)
Value in failed request: 0x3f38
Serial number of failed request: 8
Current serial number in output stream: 9
I think I am confusing application id and process id here
I need to be able to block the urls that are stored in a text file on the hard disk using Python. If the url the user tries to visit is in the file, it redirects them to another page instead. How is this done?
Hello guys,
I need to inline some javascript code into the Smarty template files and these {ldelim} {rdelim} things are killing me. Is there a way to tell smarty to ignore the markup for a block and just output it as is? Something similar to CDATA blocks in the xml?
Just in case: here is how simple javascript looks now:
$(function() {ldelim}
$( "#slides" ).accessNews({ldelim}
speed : "{$speed}",
slideBy : 1
{rdelim});
{rdelim});
creepy heh?
When you refresh/reload a page or use the back button, Firefox is kind enough to repopulate your inputs with what was entered before you navigated away.
Though this is a nice feature it does not trigger my jquery validation and the unsaved changes warning I add to my pages.
Is there a way to either disable this feature in Firefox (without renaming every control every time) or capture the firefox events?
Hi!
I need execute some code before Windows shutdown process each time. So, I want block Windows shutdown process for some time. How can i do it from Java or C++ Builder ?
Thanks.
I've been building a website for a guy who uses Mac OS X and occasionally he sends me screenshots of bugs. They come out looking like this:
This is fairly typical of Mac screenshots. You get the window decorations, the shadow from the window and a white or transparent background (not the desktop wallpaper -- I've checked).
Compare this to an Ubuntu window-shot (Alt+Print screen):
It's impossible to keep a straight face and say the Ubuntu one anywhere near as elegant.
My question is: Is there an application that can do this in Ubuntu?
Edit: Follow up: Is there an application that can do this in one move? Shutter is pretty good but running the plugin for every screenshot is pretty tiresome as it doesn't seem to remember my preference (I want south-shadow and that requires selecting south, then clicking refresh, then save) and it's more clicks than I'd like.
Is there a simple way of telling shutter I want south-shadow for all screenshots (except entire desktop and area-selection)?