Hi,
I have been presented with a problem which requires me to print PDF files from a server as part of an ASP.NET web service.
The problem is further complicated by the fact that the PDF files I have to print can ONLY be printed using Adobe Reader (they were created using Adobe LiveCycle and have some strange protection in them).
This piece of…
I have a card-game application which makes use of Single Table Inheritance. I have a class Card, and a database table cards with column type, and a number of subclasses of Card (including class Foo < Card and class Bar < Card, for the sake of argument).
As it happens, Foo is a card from the original printing of the game, which Bar is a…
I am not sure what the proper term is, but I am trying to add a "TitleBar" to the top of one of the windows in my App. Much like the Contacts App, I have several Tabs along the top of the screen. When you select an item from the list, it loads the next Activity, but that Activity no longer has the Tabs at the top of the screen.
I don't know…
I've got a Python program that needs to create a named temporary file which will be opened and closed a couple times over the course of the program, and should be deleted when the program exits. Unfortunately, none of the options in tempfile seem to work:
TemporaryFile doesn't have a visible name
NamedTemporaryFile creates a file-like…
Hey folks,
I am attempting to work with XML-RPC via PHP on a GoDaddy server.
This same server is hosting a Wordpress Blog that makes use of XML-RPC and is functioning, though that may be unrelated...
Whenever I attempt to use any functions that are integrated into PHP for use with XML-RPC, I get an error (function list here:…
I have the following CSS that hides the mouse cursor for anything on the web page. It works perfectly in FireFox but in IE and and Chrome it doesn't work.
html {
cursor: none;
}
In Chrome I always see the mouse pointer. In IE however I see whatever cursor was last 'active' when it entered the screen. …
IE 11 does not seem to be recognizing MSFullscreenChange. I have this code in the script:
document.addEventListener("MSFullscreenChange", function () {
if (document.msFullscreenElement != null) {
console.info("Went full screen");
} else {
console.info("Exited full screen");
…
What would be the best practice way to handle the caching of images using PHP.
The filename is currently stored in a MySQL database which is renamed to a GUID on upload, along with the original filename and alt tag.
When the image is put into the HTML pages it is done so using a url such as…
I am creating a vBulletin forum community called:
wehypnosis
We purchased the vBulletin version 4.0 CMS and the SEO plugin.
Im used to designing and building templates for drupal, wordpress and joomla. All of which have great documentation and many tutorials built by the community. But…
In my View, I am trying to loop through a list in a LINQ object that as part of my View Model. This worked fine earlier today with the VS2010 RC and the .NET 4.0 RC.
<% if (Model.User.RoleList.Count > 0 ) { %>
<% foreach (var role in Model.User.RoleList) { %>
…
How do you "Attach to Process..." for a console application thats running from a CMD window and not launched by F5? The reason I ask is because the application takes command line arguments and I want to have a genuine experience.
I've even attaching to CMD.exe, but no luck, or…
I've been researching nosql options available for .NET lately and MongoDB is emerging as a clear winner in terms of availability and support, so tonight I decided to give it a go. I downloaded version 1.2.4 (Windows x64 binary) from the mongodb site and ran it with the following…
When navigating to a layouts page, I receive the following error:
Information Rights Management (IRM): Protector {GUID} could not be created as a generic COM object (IUnknown).
Protector: {GUID}
A similar issue was reported here
Has anyone encountered this?
I have a sql server 2005 table called ZipCode, which has all the US ZIPs in it. For each entry, it lists the zip, county, city, state, and several other details.
Some zipcodes span multiple cities and some even span multiple counties. As a result, some zipcodes appear many…
A followup to this quesiton:
http://stackoverflow.com/questions/2944581/forcing-reload-of-view-when-returning-from-flipsideview-of-utility-application
When returning from the flipside view, I'm calling
NSArray *annotations = [NSArray arrayWithArray:[mapView…
My scenario:
This is an ASP.NET 4.0 web app programmed via C#
I implement a repository pattern. My repositorys all share the same ObjectContext, which is stored in httpContext.Items. Each repository creates a new ObjectSet of type E. Heres some code from my…
Thought this might be handy for someone, this is an extremely simple CSV export class that I needed. Features:
Extremely simple to use
Escapes commas and quotes so excel handles them fine
Exports date and datetimes in timezone-proof format
Without further…
I am trying to setup the following view on CouchDB
{
"_id":"_design/id",
"_rev":"1-9be2e55e05ac368da3047841f301203d",
"language":"javascript",
"views":{ "by_id":{
"map" : "function(doc) { emit(doc.id, doc)}"
},"from_user_id":{
…
I am working on a Windows XP Machine. When running AVDs out of Eclipse, I am getting "No Network Connection" when I am plugged into my company's network and using an AVD that was built with the "Google APIs by Google Inc., Android API 7, revision 1".
If I…
I've setup a jqGrid like this
$('#gridTable').jqGrid({
url: '/GridData/',
...
Now if I navigate to a url such as "/Controller/id/" then the grid will send a GET to "/GridData/" instead of "/Controller/id/GridData/".
Can I make the GET relative so…
I'm currently trying to set up a website that uses both windows authentication and forms authentication. I am using ASP.NET MVC and both IIS6 and 7 need to be supported. How would I go about letting known AD users into the app (their AD id is stored…
It does, after all, get defined in stddef.h AND c++config.h:
c++config.h:
namespace std
{
typedef __SIZE_TYPE__ size_t;
typedef __PTRDIFF_TYPE__ ptrdiff_t;
#ifdef __GXX_EXPERIMENTAL_CXX0X__
typedef decltype(nullptr) nullptr_t;
#endif
}
…
I have a GridView, using a custom adapter (myAdapter extends BaseAdapter), where each item in the grid holds an ImageButton. getView() is working fine.
However, from elsewhere in my code, how can I update the image (setImageResource) for one…
I have a site which relies heavily on javaScript. I created a mirror site, which has all the JS as well as all the elements that require JS removed. What is a good, easy way to redirect users to the mirror site if they don't have javaScript…