What pattern should I use for data-access in case of VS2008 generated L2s or EF DataModels? Repository-pattern or what?
As we know VS2008 generates Data-Models and DataContexts/ObjectContexts in the same file, then, how should I arrange my VS2008 assemblies in my VS2008 solution to achieve a layered design?
If I use repository pattern, how should I arrange my assemblies in the VS2008 solution (as Data-Models and Data/Object-Contexts are stored in the same file...)?
Any web/example link would be appreciated.
I need put one bitmap image to my directshow filter. Then user can use this bitmap image and do not care where is it.
First, I import this bitmap file into resource bundle, and get one IDB_BITMAP1.
Then, I need to read this IDB_BITMAP1 using opencv cvLoadImage or some windows image API to load this image into buffer.
So question is how to do this ?
Or is that possible ?
Thanks
is there a demo for the FanBox?
http://wiki.developers.facebook.com/index.php/Fan_Box
I would like to include it in a design for a client which doesn't have a facebook fanpage yet.
It's always seemed a little at odds with the principles of Java that the Java Servlet Spec (2.5 version here) includes a set of magic attributes containing info about included resources, namely:
javax.servlet.include.request_uri
javax.servlet.include.context_path
javax.servlet.include.servlet_path
javax.servlet.include.path_info
javax.servlet.include.query_string
It's not even specifically pointed out in the API documentation, only in the spec where it is a must for correct implementation.
This approach feels very wrong, an exposed implementation detail that clients will use and depend on. Why is this information exposed in this way?
I'm writing a shell for a project of mine, which by design parses commands that looks like this:
COMMAND_NAME ARG1="Long Value" ARG2=123 [email protected]
My problem is that Python's command line parsing libraries (getopt and optparse) forces me to use '-' or '--' in front of the arguments. This behavior doesn't match my requirements.
Any ideas how can this be solved? Any existing library for this?
Basically, we want to run static programs compiled on one platform on another.
If it's not possible, what are the most significant changes in the kernel API between version 2.6.9 and 2.6.18?
I'm currently looking into developing Facebook applications and was planning on using Flash as the basis of my application, I have test built some simple PHP Facebook applications and I know enough about action-script 3 to start me on my way, but the API for Facebook development in AS looks far more tedious than the PHP one.
my question is would I be able to create interactive graphics (games) like we see across the web in the HTML5 canvas class? and which would be simpler?
I'm using a web service and connect it using httpWebRequest.create api. If i change the TCP port number In IIS other than 80 then my application could not connect to it. How can i set port number in System.Url object as set in IIS so that my application can connect to web service.
I want to load a image (.bmp) file on a Win32 application, but I do not want to use the standard LoadBitmap/LoadImage from Windows API: I want it to load from a buffer that is already in memory. I can easily load a bitmap directly from file and print it on the screen, but this issue is making me stuck :(
What I'm looking for is a function that works like this:
HBITMAP LoadBitmapFromBuffer(char* buffer, int width, int height);
Thanks.
Hi,
I created one blackberry application which will play a video on a button click.This is my code,
invocation=new Invocation("file:///SDCard/Blackberry/videos/PlayingVideo/funny.mp4");
registry=Registry.getRegistry("net.rim.device.api.content.BlackBerryContentHandler");
try
{
registry.invoke(invocation);
}
catch(Exception e)
{
}
Now i can play the Video file.After clicking the Back button the native player is going to the background.It always running in the background.But i want to close that player.I have no idea about how to do it.Anybody knows please help me.
Is there any way in .NET for a thread to determine its 'parent', i.e. the thread that created it?
I'm diagnosing a timing issue with a black box third party API and would like to find out what custom code of mine it is executing on which thread.
Hi,
I'm sending mails thanks to the MFMailComposeViewController API, and I manage to add uiimages in attachment, but I'd like to insert my uiimage into html code in my e-mail, any idea of what kind of conversion I should use for my image ?
Thanks.
We're trying to script a cad program, and this is the example for controlling the date in our design slugs, but I don't even know what language it is to know what to do with it.
! LIBEDATE
def &d$ &ret$
set &d$ = rstr(`/`,` `,#d$);
set &ret$ = word(&d$,2),`/`,word(&d$,1),`/`,subs(word(&d$,3), -2, 2)
I read on google that this is not possible, and that on OS 2.0, it was some undocumented Api to accomplish that, but then your app will got rejected ....
we are almosto on OS 4.0....any news regarding this?
My application stores lots of its users friends' phone numbers. I'd like to allow users to associate names with these phone numbers, but I don't want to make users manually type in names (obviously).
I'm curious what the best overall approach is here, as well as the best way to implement it
Overall approach-wise, I imagine using Gmail / Yahoo / Windows Live contacts is best (the Facebook API doesn't let you access phone numbers), though the gems I've found for interacting with these contacts APIs (this and this) only give you access to the names and email addresses of each contact.
I have a site that is mainly showing a paged list of content (articles, data element's, etc.), and I'm wondering about returning HTTP 404 when user navigates outside of the available list range.
Some sites just display "No results/Page number out of range" and some return additionally return HTTP 404 status.
What's your take on that, and why?
UPDATE
It's not and api response. This question is in regard to user viewed pages that among other things show a list/table in the main area.
So as a developer I am seeking to improve not only my coding skills but my design and management skills. Because of this I'm starting to pay more attention to software engineering practices but i'm not sure where agile development fits into the picture. I can appreciate agility in projects but I wonder whether this conflicts with the traditional ways of software engineering practices and research.
Hi,
I have a problem, I have to get the o/p in Excel of the report using Xml publisher, my report displays around 29 columns and those are not fiiting in the Word doc template(RTF) .
So i need help like Is there any other method to design template eg Excel or anything which can accomodate all 29 columns and give o/p in Excel............
Hi guys,
I'm just writing an App for displaying the route between two coords (lat, long) in google maps view.
Displaying an single coord (even with a marker) works fine, but how to do this with 2 ones and the route between them?
I must admit that I'm quite new to Android and the maps-API...
I've got basic page templates working in ASP.NET from master pages and can include pages in ASP.NET - however, I'm having difficulty extracting from pages and paginating them.
This is the design structure (i.e. the model for my site) I'm trying to base it on:
http://library.digiguide.com/lib/programmenextshowing/Medium-319648
I have an SQL Driver installed, my ODBC Advisor says it is MySQL ODBC Driver 5.1.
How should I get this project to work, now I have the basics under way?
I need to design database for MS SQL Server, is there any MySQL workbench like software for that? I have access to MSDN, so it can also be commercial product that can be found form MSDN.
What is the equivalent of YUI 3's Y.Array in jQuery?
Y.Array() takes array like inputs and converts them into array. More info at http://developer.yahoo.com/yui/3/api/yui-array.js.html
Hi. I'm using the jQuery UI Button control but don't seem to be able to adjust the size (width and height). Here's the API documentation. I tried setting a STYLE attribute on it, but then the LABEL wasn't centered correctly. Thanks.
jQuery is undoubtedly the best javascript framework available and its plugin base is also pretty awesome. I wanted to know which one is the best framework in terms of
Use Of Plugin
APIDesign
Ease Of Use
Documentation
Support and Bug fixes
etc...
In my view the best plugins I used so far are
Form plugin
Validation
Nyromodal
jQuery drag&drop, Sortable
EDIT: Made it a community wiki