share

C# share code between classes

In Visual Studio 2008 using C#, what is the best way to share code across multiple classes and source files? Inheritance is not the solution as the classes already have a meaningful hierarchy. Is there some neat feature that's like a C include file that let's you insert code anywhere you want in another class? EDIT: ok, i guess w...

Updating facebook status with message from a Javascript variable

Hey all, quick question. Is there an easy way to let users update their status on Facebook with a message I have in a JavaScript variable? I know there's a URL you can use to share a link, which looks like: <a href="http://www.facebook.com/sharer.php?u=www.fthisclass.com/jshoregen.html&amp;t=title"&gt;testlink </a> That doesn't fill ...

Share aspx file in two solution

hi how can I share one or two aspx file in two separated solution that if i change aspx file in both solution apply changes. Is it possible in visual studio 2008 or in Team foundation server? ...

data share between two iphone apps

Hello, i want to share text data between two iphone apps. How can i use paste board for this purpose. Can anyone help me with a sample code. Thanks in advance. Suggest me if there are better ways than pasteboard to accomplish my task. ...

Can two different browser share on cookie?

Hi Friends My requirement is pretty interesting, I want to maintain one cookie between two different browser for same domain. so lets say I have create one cookie with name "mydata" and value "hiscal" from IE, then if i browse same website from firefox and trying to read cookie "mydata" then system should give me value "hiscal" but ...

Is there a way to share an in-memory object between multiple websites?

Hi all We have about 70 sites on our server that use same application (with different Application Pools) and they use for example a shared skin file. So is there a way to load this file to memory and share for all applications? what I mean is to sharing cache in multiple websites to decrease pressure on server. Thanks in advance ...

create share menu and add images

Hello I've two questions for you, which i can't solve: 1) How do I create a menu like this --> . 2) How can I add multiple images like the iApp named HotBook do? . Thanks in advance for your help. Sean ...

.NET/WMI how to monitor activity on a windows share?

I refer to this: http://stackoverflow.com/questions/1448384/monitor-windows-share I am opening a new thread because I feel that thread is very unclear in both question and content. I am in Windows XP using .NET 2.0 VS2008 C# and managed C++. The question is how exactly to monitor the number and nature of open connections to a windows...

google calendar sharing

Hi everybody Is it possible to use OAuth with ACL.... Did anyone use this.. Help me. Thanks Regards Sharun ...

How do you export/import image data like Apple's Contacts app?

I have an core data app that stores strings and a couple of images. I would like users to be able to send entries to each other via email (like Apple's Contacts app). I have created a url scheme that exports/imports all the strings, but the image data is a tough one. Any help or point in the right direction would be greatly appreciate...

How to share stylesheet types across GWT widgets

Hi I'm attempting to create a composite widget, which will show a 'list' of child widgets, but I'm having some trouble getting css to work in this setting. Have constructed a simple demo, to try and figure out a solution. Have tried to specify the parent widget like this <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g...

Installing python with python win32 extensions on a network drive

I need to keep a large number of Windows XP machines running the same version of python, with an assortment of modules, one of which is python-win32. I thought about installing python on a network drive that is mounted by all the client machines, and just adjust the path on the clients. Python starts up fine from the network, but when ...

Posting on twitter/facebook from my site using jQuery

I want to display some text on twitter/facebook when a link is clicked on my website. Is there a way in jQuery to do that? ...

Share data between mod_python processes

I'm running mod_python under Apache. If I've understood correctly, each Apache process runs its own Python interpreter. What would be the best way to share a tiny amount of data across all the processes? I'm talking about just a few hundred bytes here, making something database based completely overkill. ...

Detect file system changes on Samba share with Java on Windows

Hi, for a recent project I need to detect file system changes on a mapped Samba share from java on windows: Creates, updates and removes. At the moment I am using a folder poll that maintains a list of files and their modified timestamp to look for events. But my problem is that this folder poll only peeks into the folder at certain ti...

Techniques for extracting the 'best' image from a webpage.

I'm trying to build something akin to Facebook's "Share" functionality for my website. I've gotten to the point where I can accept a URL, scrape it for meta keywords and suitably get titles/descriptions, but I'm a bit stuck as to the best way to determine 'likely' photos the user may want to share. I currently use the SimpleXMLElement ...

Upload images API on 3rd Party host .. Flickr ?

I am building an Image Sharing feature for my website, where users can upload images and show it off on my website, through their own profile gallery. Except I dont want to physically host the uploaded images. Are there API's that can allow me to descretly save the uploaded images (from the users) to another Host, such as Flickr, Googl...

How do you pass or share variables between django views?

Hi, I'm kind of lost as to how to do this: I have some chained select boxes, with one select box per view. Each choice should be saved so that a query is built up. At the end, the query should be run. But how do you share state in django? I can pass from view to template, but not template to view and not view to view. Or I'm truly ...

Creating share programmatically fails with error 9

ObjectGetOptions options = new ObjectGetOptions(); ManagementPath p = new ManagementPath("\\\\server01\\root" + "\\cimv2:Win32_Share"); // Make a connection to a remote computer. ManagementScope scope = new ManagementScope("\\\\server01\\root\\cimv2"); scope.Connect(); // Create a ManagementClass object ManagementClass managementClas...

Does OpenGL not support shared contexts on windows?

I am working on a cross platform OpenGL project and it seems that all of the textures that share a GLcontext have trouble when I try and load them in windows. I have been told that this was not supported in older versions of OpenGL on windows but it seems that there must be some way to share texture resources in OpenGL on Windows. If t...