instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Hi I am using vs 2008 doing a winforms app in vb.net. I have a database with a single table, that has two columns, in it and a stored procedure. The stored procedure is supposed to take an input value, match that value against one column in the table and then return the corresponding value from the other column; except...
stackexchange/codereview
I want to know whether I can join 2 named queries in JPA. As an example I have two following named queries 1 - Get all the active users 2 - get all the users for a given company Is it possible for me to join above two named queries and get get all the active users for a given company.
stackexchange/codereview
I have a custom control. There is a Stack Panel with Button and TextBlock in generic.xaml: <StackPanel> <TextBlock x:Name="StatusText" /> </StackPanel> Then I have public class MyClass : Control { // Constructor etc. public static readonly DependencyProperty StatusTextProperty = DependencyProperty.Register("StatusTex...
stackexchange/codereview
If I'm not mistaken, NUnit is the de-facto standard for unit testing, but I've just downloaded it, wrote a simple test, and then apparently I have to fire up the GUI and load my .exe assembly, which simply failed. I tried editing C:\Program Files (x86)\NUnit 2.5.7\bin\net-2.0\nunit.exe.config As suggested in this qu...
stackexchange/codereview
I've been making some apps for android for quite a while but I've only been using windows 7. Due to some reasons sometimes I'm forced to program in linux so I followed the guide to configure the SDK and eclipse (http://developer.android.com/guide/developing/device.html). After that I ran "adb devices" and got this: Lis...
stackexchange/codereview
I have a reasonably complex call to xsl:apply-templates: <xsl:apply-templates select="columnval[@id and not(@id='_Name_') and not(@id='Group') and not(@id='_Count_')]"/> The expression is reused in o...
stackexchange/codereview
This seems really simple, and I see a lot of documentation about it, but I can't get it to work. Basically, I have a page "download-software.php" that we want only to be accessed from "download-registration.php" On the second page "download-registration.php" I have this: <?php session_start(); $_SESSION['authentica...
stackexchange/codereview
I need a Zend_Controller_Route_Route with controller => 'downloads', action => 'index' and a parameter variable which is infinite. www.domain.com/downloads/this/is/the/path/to/the/folder should redirect to DownloadsController > indexAction I was thinking about something like the following: 'downloads' => array( ...
stackexchange/codereview
I'm trying to pass the value of a cookie to a bash script: RewriteCond %{HTTP_COOKIE} mycookie=(.*) [NC] RewriteRule .* script.sh?cookievar=%1 ... but can't seem to find out how to read the GET variable in the bash script. (I suppose I'm asking Google the wrong queries, but can't find any info on this). Is this even p...
stackexchange/codereview
iarray<T>& operator = (iarray<T>& v) Why the return type is iarray<T>& not iarray<T> ? UPDATE Can someone elaborate in great detail why iarray<T> const &v ?
stackexchange/codereview
I've downloaded google test, but now I've no idea on how to link it to my project in eclipse. Should I add it as a source folder? Should include it as g++ included library? And how can I run test then?
stackexchange/codereview
I want to repeatedly search for values in an array that does not change. So far, I have been doing it this way: I put the values in a hash (so I have an array and a hash with essentially the same contents) and I search the hash using exists. I don't like having two different variables (the array and the hash) that both...
stackexchange/codereview
I have to create a model that stores gameplay controls for games on several platforms. I am having trouble finding the right approach. Controller buttons are different on different systems (Wii, Xbox 360, PS3 have their own specific controller buttons.) Some games are actually several games packaged as one; this means...
stackexchange/codereview
I am using the restful authentication plugin in rails and i need to skip the authorization and log the user in immediately...How can this be done Any ideas would be highly appreciated
stackexchange/codereview
I want to display background image on tableview cell... on that i need to display my data. How to do that? @thanks in advance... Any proficient help me out.
stackexchange/codereview
My company is planning to migrate it's intranet/internet based ERP to the latest form of MS SQL Database available. Presently we are using SQL Server 2000 Professional. And we are planning to shift to SQL Server 2008 Web edition. Please tell me whether this is the right step and whether it is feasible or not. Thank yo...
stackexchange/codereview
How do i enable debugging/stacktrace with filenames and numbers with apache2/mod_mono? Instead of filenames and numbers i get something like this at System.Web.StaticFileHandler.ProcessRequest (System.Web.HttpContext context) [0x00000] in <filename unknown>:0 I tried using MonoDebug true in apache and recompile mod_m...
stackexchange/codereview
I have a function which needs to redirect the page if a variable is set etc... The problem is, this function is at the bottom of the php page. This means, I have outputted alot of information, so I get a headers warning. "Warning - Headers already sent by ..." Is there any way to redirect after headers are sent? Thanks...
stackexchange/codereview
I'm just doing a bunch of Python exercises and there is an exercise where you should. given a directory name, iterate over the 'special files' (containing the pattern __\w+__) and output their absolute paths. Here's my code: def get_special_paths(dir): filenames = os.listdir(dir) for filename in filenames: if ...
stackexchange/codereview
I have an IPC-Server running with some really simply interface which is working quite ok for now. The interface itself is really simple and only consists of 4 methods. (RemoteCall Method is SingleTone): [Serializable] public class NetworkHook : MarshalByRefObject { public void onIsInstalled(int pid, MessageDirectio...
stackexchange/codereview
i know it's possible to add svg overlays to google maps. i'm wondering if you can use svg files as markers. i tried setting it just like you would a png or jpg file, but nothing shows up. let me know if i should post my code, but i think i am probably approaching it in the wrong way. thanks.
stackexchange/codereview
I'm trying to put a rounded border on a control which is hosted through a WindowsFormHost object. It seems like no matter what I set for OpacityMask, it has no effect on the rendering. Is there something I've missed? Here is the XAML code I am using. The child control is added at run-time. I've tried various combin...
stackexchange/codereview
Sorry for my english! I'm using Debian squeeze and for an assignement, i have create 2 virtual pdf cups printers. Both are working very well. To test the different administion command; i try to disable one of the printer and move his queue file to the second one. I'm able to do it easily. Now, i wish to write a bash sc...
stackexchange/codereview
is there a way to give one tabbaritem in UITabBarController more width then the others. by default they are all sized the same.
stackexchange/codereview
I have the following markup: <nav id='tab_links'> <a href='#view1'>One</a> <a href='#view2'>Two</a> </nav> <div id='container'> <div id='view1'>Short Content</div> <div id='view2'>Much longer content</div> </div> <footer> <input type='submit' /> </footer> and the following styles: #view2 { display: none; } #f...
stackexchange/codereview
I know that WPF datagrid has "RowEditEnding" event , but I need to fire the event on after the Row has comitted to check if the newly added row is duplicated and merge the duplicated row. My datagrid has "CanUserAddRow" property set to True. I am using EntityObservableCollection that extends ObservableCollection to syn...
stackexchange/codereview
I am using a query like this: SELECT * FROM table1 WHERE countries LIKE '%US%' OR countries LIKE '%ALL%'; This returns all the entries that have "US" or "ALL" in countries column, but I want it to return ONLY those rows that contains "US", and if non is found then use the next condition and return all that contains "A...
stackexchange/codereview
I've been banging my head against a wall for about an hour on this: I'm trying to pass a simple property (java.library.path) to exec-maven-plugin. The goal is to have it integrate with Netbeans Right Click file > Run File procedure. So I set my POM like this: <build> <plugins> <plugin> <groupId>...
stackexchange/codereview
There is a Rails application I started a full year ago. It’s a Rails 2.3 app. Now, someone else has made remote changes (it’s on Github, sorry, but it’s private). And I have done sudo gem update that is, updated all my gems, including Rails (to 3). Realizing this, I have done rake:freeze:edge RELEASE=2.3.8 or whatev...
stackexchange/codereview
I am making a multiplayer networking game. Now to connect to the server, client needs the ip address of the server. So, the way I implement this is as follows. Client Broadcasts its ip address at Broadcast IP and a port say A. Server listens to it over A, and Server creates a new UDP connection with the client behaving...
stackexchange/codereview
After adding a IdUDPServer to my form and trying to put some code into the OnUDPRead event, I'm not able to add any component to my form at design time, nor can I run the application. is there any way to solve this ?
stackexchange/codereview
I am trying to json-serialize a class MyRootClass with a property that is a collection of elements of a second class MyClass: public class MyRootClass { private List<MyInterface> list = new ArrayList<MyInterface>(); // getter / setter } public class MyClass implements MyInterface { private String value = "tes...
stackexchange/codereview
I need to show a text-only button in a toolbar in MFC. How can I do it? I'm using Visual Studio 2005, so I'm not using MFC Feature Pack classes. Thanks
stackexchange/codereview
I am actually looking for some opinion on how to get this done. I have a php server with a mysql backend to authenticate users using android os. I came across the debate of having JSON vs XML to minimize the overhead and using REST vs SOAP. Can I get some tips on what is the best path to go about getting this done ? I ...
stackexchange/codereview
Currently the windows ping command returns a value of milliseconds that is an integer. I would like to get a very accurate measurement lets say 4 digits after the point. Are there any tools that do that?
stackexchange/codereview
Does anybody knows if there is a simple way to change this var colorTransform:NewColorTransform; colorTransform = new NewColorTransform(); colorTransform.color = Config.ARRAY_COLOURS[1]; color.transform.colorTransform = colorTransform; That is changing colors (the ARRAY_COLOURS have [ 0xFF0000, 0x0000FF, 0xFFFF00 ]) I...
stackexchange/codereview
I am using jquery-ui to implement tabs. However, I need to use it more than one on the same page. but jquery uses the id "tabs" (as opposed to class or something), so it only works for the first instance.
stackexchange/codereview
I have some questions as to which overloaded method would be called in certain cases. Case 1: public void someMethod(Object obj){ System.out.println("Object"); } public void someMethod(InputStream is){ System.out.println("InputStream"); } public void someMethod(FilterInputStream fis){ System.out.println("...
stackexchange/codereview
Does anyone know a scipy/numpy module which will allow to fit exponential decay to data? Google search returned a few blog posts, for example - http://exnumerus.blogspot.com/2010/04/how-to-fit-exponential-decay-example-in.html , but that solution requires y-offset to be pre-specified, which is not always possible EDI...
stackexchange/codereview
I have a generic class which could use a generic OrderBy argument the class is as follows class abc<T> where T : myType { public abc(....., orderBy_Argument ){ ... } void someMethod(arg1, arg2, bool afterSort = false) { IEnumerable<myType> res ; if ( afterSort && orderBy_Argument != null ) ...
stackexchange/codereview
I developed my application and tested it on android emulator 1.6, 2.1 & 2.2 and on HTC Magic its running PERFECTLY and the gui components look very neat... However, when I tested it on Sony Ericsson Xperia X10 the gui components are looking fuzzy :S...please have a look ...Have anyone faced such a problem? Any suggest...
stackexchange/codereview
How are the data chunks handled within the bittorrent protocol? When a client wants to download e.g. a linux distribution does the tracker return a list of peers which a client then connects to and requests chunks from each peer or does the tracker return a list of peers and info of which peer has what data? Where is ...
stackexchange/codereview
I'm currently making an IDE for the Java platform. This IDE for education purposes only.I'm working of the documentation and in the analysis phase. Right now I'm at the stage of making the domain model for my project and I'm confused what to as to how the domain model figure would look like. The IDE will feature open/...
stackexchange/codereview
I have an XML as follows. <AFConfig> <Geographies> <Geography id="Place1" description="NicePlace"> <MetaData> <Services> <Service> ... ... </Service> </Services> </MetaData> <Systems> <DefaultSystem systemName="SYSONE" server=http"//192.168.0.0" /> </Systems> </Geograph...
stackexchange/codereview
I need to iterate through a group of select lists on my page and choose only those selects that have the selected option of "Yes". Something like (which doesnt work): $(".option-select option[value='yes']:selected").each(function () { alert($(this).attr("id")); });
stackexchange/codereview
I am working with MS Excel files in my web application built in Azure environment. I never run into following error when I am trying to access the excel file on my development fabric. But once I deploy to Azure in cloud, I get this error message. The 'Microsoft.ACE.OleDb.12.0' provider is not registered on the local ma...
stackexchange/codereview
I am new to TestComplete. I watched a couple of videos they have but when I tried the same thing it gives me error about not finding the objects. All I did was recorded going to a web app and logging into it. Has anyone faced this kind of problem and if so any pointers to resolve this issue will be appreciated. Thank...
stackexchange/codereview
I am using Qt and C++ as my environment. I draw a QGraphicsView in my UI, then create a scene and add lines to that it. I run through an array of 5000 points and draw lines connecting each point. QGraphicsScene *scene = new QGraphicsScene(); QPen pen2 = QPen(Qt::blue, 8.0); int j=1; for (int i=1; i<5000; i++) { sce...
stackexchange/codereview
Having rs, an instance of java.sql.ResultSet, how to check that it contains a column named "theColumn"?
stackexchange/codereview
I am encountering a strange problem. I created a UIView that takes place at the bottom of the screen (0,431,320,49) and then I want to deal with touch events. When I touch the upper side of the UIView, it works. But when I touch the bottom side (I mean, more than 20px in relative position), the touchBegan event is not ...
stackexchange/codereview
I'm writing a JavaScript function that needs to uphold three properties: be very small and lightweight - no external libraries encode a string in such a way as to be able to be passed as a GET parameter this string must be decoded again at its destination Effectively, it authenticates the user by sending his username...
stackexchange/codereview
I've got a real cheesy counter, just adds one to the counter field when a visit hits it. It's not counting page hits, but it's still cheesy. What I need to do is stop someone from just hitting refresh over and over. What's the simplest was to get this done? Cookies? I'd prefer not to log every visitor's ip address, etc...
stackexchange/codereview
Simple problem: I am subclassing a FilterInputStream in Scala, which has a read method: public void read(byte [] b,int offset,int len) The data being read will be put in b, but as parameters are "vals" in Scala methods, I see no way to properly subclass this. How do I set b to the data being read? The Java *InputStrea...
stackexchange/codereview
I'm trying to manually set throbber on TinyMCE editor using jQuery plugin. Tried like that: $('textarea.tinymce').tinymce().setProgressState(1); but no luck - Firebug says only: 1 and nothing happens. setContents() works just fine. How to show/hide the throbber?
stackexchange/codereview
I have a function that is exported by a C library with the following signature: extern "C" BOOL Func() The function is declared in VB.NET code like this: <DllImport("mylib.dll", CallingConvention:=CallingConvention.Cdecl)> Private Shared Function Func() As Boolean End Function The problem is that I get an ExecutionEngi...
stackexchange/codereview
In Python, say I have a string that contains the name of a class function that I know a particular object will have, how can I invoke it? That is: obj = MyClass() # this class has a method doStuff() func = "doStuff" # how to call obj.doStuff() using the func variable?
stackexchange/codereview
This is actually a follow-up to a previous question. A user's profile data is spread over several different models, like so: # Simplified versions, actual classes contain many more fields. class Profile(models.Model): # returned by Django's User.get_profile() user = models.OneToOneField(User) home_address ...
stackexchange/codereview
I'm currently working on a deployment script that will take my site, export it from svn, remove any testing files etc in it, minify the javascript/css, copy the code to a remote web server, and then switch the physical path of the existing site to the new directory. So far I have everything working except for switching...
stackexchange/codereview
I'm reviewing a python exercise which does the following : reads list of numbers til "done" gets entered. When "done" is inputted, print largest and smallest of the numbers. And it should be without directly using the built-in functions, max() and min(). Here is my source. Traceback says, "'float' object is not iter...
stackexchange/codereview
Given that you have a lot of domain objects, that all interact with one another, it would be very useful to know which objects have changed in a particular transaction. Is this possible ? I would like to essentially do this : public void someBusinessLogicMethod(someparams) { Session s = getSession(); Transaction tr...
stackexchange/codereview
I want to create a circular button having a plus and minus sign on to this and exactly used in Android Contacts application like shown in the image as below:
stackexchange/codereview
I am trying find out, how to start JBoss with cron job at a particular time. What I am doing at the moment is setup a cron, then inside JBoss startinstance script I put sleep 700 seconds until jboss starts. Is there a better way to actually know when JBoss has successfully started and then continue with the flow after...
stackexchange/codereview
My code, when compiled, returns the error invalid conversion from ‘char*’ to ‘char’, and identifies the second last line, return char32 as the problem. I've searched the Internet and this site and haven't found anything that has helped. I've found the error goes away and the code compiles if I replace the problem line ...
stackexchange/codereview
I've got a select element with a large number of option elements and I'm looking for a way to toggle between having all options available and having a subset of the options available for selection (the subset being the most popular options). The options are ordered alphabetically and are grouped by their value's initi...
stackexchange/codereview
when i am coding visual studio do not select best value. if you look this image you will understand what i mean microsoft visual studio 2010
stackexchange/codereview
I've deployed on Tomcat 6.0.29 on Mac OS X 10.5.8 a simple internationalized 2.0.4 GWT application using Eclipse (equivalent to HelloGWT sample) which has a drop-down list to get the locales and replace the url depending on the choice. It works fine when in development mode, either in Firefox or Safari. When deployed t...
stackexchange/codereview
I am implementing a class that basicaly wraps an array: public abstract class IndividualBase : IEnumerable<Gene> { private readonly Gene[] genoma; ... public IEnumerator<Gene> GetEnumerator() { return genoma.GetEnumerator(); } System.Collections.IEnumerator System.Collections.IEnumera...
stackexchange/codereview
i have developed an application in java for linux i need to install it in linux in my system(ubuntu 10.04) and how to make executable for linux .i have the application as jar file
stackexchange/codereview
I want to implement a c++ library, and like many other libs I need to take string arguments from the user and giving back strings. The current standard defines std::string and std::wstring (I prefer wstring). Theoretically I have to implement methods with string arguments twice: virtual void foo(std::string &) = 0; //...
stackexchange/codereview
e.g. if you have code that does something like this somewhere in your codebase: >>> import logging >>> logging.basicConfig() >>> logger = logging.getLogger(__name__) >>> logger.critical("foo: %s", 1, 2) Traceback (most recent call last): File "/pluto/local/lib/python2.6/logging/__init__.py", line 768, in emit msg...
stackexchange/codereview
I have a stored Proceedure 'spGetOrderByID' in the sql server. Which gives a record according the given order id. And the stored proceedure is working fine , while i trying in the sql server. This is the php code iam using $this->_connectionString = mssql_connect($host, $username, $password) or die("can't connect to ...
stackexchange/codereview
I want to know if there is any way to stop applicationDidFinishLaunching method of an iPhone application from getting called?
stackexchange/codereview
I need to create an HTML table which has fixed column widths, say 200px for each column. If the table exceeds the horizontal width of the browser viewport then there should be horizontal scroll to view the columns which are off-screen. As the table is being dynamically generated from a database there will be an indeter...
stackexchange/codereview
I've updated page numbers in my word document using a formula. Now page numbers have series like 1,1,2,2,3,3.. But, the numbers in TOC are still same as previous. I've tried updating them using "Update field" option available in MS Word 2007 & 2010. Can I use formula here also to change page numbers? if yes, how?
stackexchange/codereview
Online webservice API/reference guide - What software application do you use to document your webservice/API technical specification/reference guide?
stackexchange/codereview
I currently have the following if (!RunCommand(LogonAsAServiceCommand)) return; if (!ServicesRunningOrStart()) return; if (!ServicesStoppedOrHalt()) return; if (!BashCommand(CreateRuntimeBashCommand)) return; if (!ServicesStoppe...
stackexchange/codereview
Im currently making a very simple WebApp on a Website using ASP.NET Framework using C# in Visual Studio 2010. The website will connect to my SQL EXPRESS server running on my laptop (Its all locally based) I have a table defined as below CREATE TABLE Users( userName varchar(50), email varchar(50), firstName varchar(5...
stackexchange/codereview
Is it Possible to integrate sql server databases into visual studio team foundation server 2008 as all possible circumstances like build making, version control,publishing etc.... and pls make sure that if we integrate this in to a team project combined both code and db in a single project and i would like know how it ...
stackexchange/codereview
I'm using Netbeans and JRuby to develop a Rails web application. But for deployment, I will be using Heroku. Since Heroku uses the Ruby-C implementation, I was wondering my use of JRuby can cause problems? Is this approach a safe thing to do?
stackexchange/codereview
I'm trying to use rails 3 without any db backend, but it still insists on requiring 'sqlite3' gem when I try to access a page, and throws an error no such file to load -- sqlite3, even though no code in the application requires sqlite, except I left database.yml with its default setting for sqlite3, since removing the ...
stackexchange/codereview
The question itself is very tricky. But I'll try to break it down into pieces. Let's say I have external datasources each of them providing my data model. Either a webservice, or database. What matters is that my Entities are defined and exists in separated systems than the Dynamics builtin database. What I want to do...
stackexchange/codereview
struct d_struct { // stuff }; __device__ __constant__ d_struct structs[SIZE]; When I call cudaMemcpyToSymbol("structs", &h_struct, sizeof(d_struct), index * sizeof(d_struct), cudaMemcpyHostToDevice) on a d_struct "h_struct" in host memory, I get an invalid device symbol cuda error.
stackexchange/codereview
I am making a "color-me-table", where I have a grid of cells, and the user chooses a cell, then can decide on what to change the color in that cell to. I have the table down, but I do no really understand sessions. I could have just asked a general question about sessions, but I thought this example might make more sen...
stackexchange/codereview
Got these examples I would like to understand but they are in Scheme. I would like them in Clojure :D Example 1 - counting the length of a list (define length (lambda (ll) (cond ((null? ll) 0) (#t (add1 (length (cdr ll))))))) Exemple 2 - square each element of a list (define squares (lamb...
stackexchange/codereview
I am running some changes to the registry of the small number of computers in our group. In Windows 7 Enterprise, how can I disable the ability for the user to change the user account picture? I do not want an empty frame on the Start menu or on the log-on screen. I want our company logo to display, and I don't want it...
stackexchange/codereview
I have written a little library. Now I want to let the user configure the lib with a xml file just like in spring. I have a xsd file to validate the xml config and therefore I have a few questions. Is it possible to achive this spring like configuration with a noNamespaceSchemaLocation? Where should I put the xsd in t...
stackexchange/codereview
I have a data table that is periodically updated by another service. I log when these updates occur in the database. I'd like to be able to somehow rate the most recently updated data records. I don't want to select exactly the most recent, I'd like to sort of account for previous updates as well. I'll try and expla...
stackexchange/codereview
I have an error stating something like: The method foo() is undefined for the type bar(){} Eclipse tells me that after entering this code: ((application_variables) this.getApplication()).setSomeVariable("foo"); I'm not sure if this is the problem, but I have it located under.... public void onItemClick(AdapterView<?...
stackexchange/codereview
I create win application by vs2008 and use dsoframer.ocx to view word document. This application work ok in my machine, but when I created setup file and installed it in another PC Windows XP SP3 I recieved error: HRESULT: 0x80040154
stackexchange/codereview
this question might seem counter-useful. the path for the windows command line prompt is different across several windows OSes. i'd like to know if there is a command i can enter in the command line prompt that will output the path of the command line prompt.
stackexchange/codereview
I have an image view on which i have included a table view. Now i wanted to insert a subview on the image view through which i wanted to show an extended background image. I have added a subview like so on viewDidLoad.... if([data count]>3) { UIImageView *i=[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"...
stackexchange/codereview
I need to write a shortcut in the automatic startup folder for all users. The scenario is that a user with administrator privileges, through the configuration dialog of the application, must be able to set the application to start automatically for all normal users when they log in. I get the startup folder using SHGe...
stackexchange/codereview
I have one normal servlet and one jersey specific REST related servlet i.e.ServletContainer configured in web.xml. Case 1 - Url pattern for normal servlet is "/login" Url pattern for other REST servlet is "/" In this case all request will got REST servlet. Request for login also goes to tht Servlet only. Case 2 - If ...
stackexchange/codereview
public ActionResult Create(FormCollection collection, FormCollection formValue) { try { Project project = new Project(); TryUpdateModel(project, _updateableFields); var devices = collection["devices"]; string[] arr1 = ((string)devices).Split(','); int[] arr2 = Array.Con...
stackexchange/codereview
I wanted to do some testing with queues and using Queue.Synchronized to see how it worked out when having two threads putting stuff into a queue, and a third thread reading it out. It seemed fairly simple, but it's not working right and I'm not sure why. Probably a silly mistake on my part. There's a bit more to it tho...
stackexchange/codereview
I'm trying to install this gem: https://github.com/jongilbraith/simple-private-messages with bundle install. And I'm getting the following error message: Updating git://github.com/professionalnerd/simple-private-messages.git Fetching source index for http://rubygems.org/ Could not find gem 'simple-private-messages (>...
stackexchange/codereview
I currently have a game which uses one single UIView to draw a number of sprites onto the screen in its drawrect method every game tic. I have been advised that for performance it would be better to separate out each sprite into it's own UIView. My questions are : Structurally how does this work ? Do I create one UIVi...
stackexchange/codereview
Currently I use iFrame to display third party content. For example, my news page displays live website from CNN, MSNBC, Foxnews in single page. Currently, I am just using iFrame to display those sites, but I was wondering if there is a better way to display the contents using Javascript, jQuery or other type of Javasc...
stackexchange/codereview
I was wondering about the possibility of two things: Is it possible to use a WCF Data Service to expose "collections" that do not exist in the Entity Model (EDMX) that it is mapped to? Would this be a case where interceptors would make sense? How would one go about creating a WCF RESTful service without having to in...
stackexchange/codereview
Im trying to setup php sdk. SDK is using Curl to make request. But i have to do this by proxy. My OPTS: public static $CURL_OPTS = array( CURLOPT_CONNECTTIMEOUT => 10, CURLOPT_RETURNTRANSFER => true, CURLOPT_TIMEOUT => 60, CURLOPT_USERAGENT => 'facebook-php-2.0', CURLOPT_PROXYPORT ...
stackexchange/codereview