instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'm trying to put together a simple RSS feed reader in windows phone 7 but I'm struggling to understand how the async model works.
What I have is a helper class that when I pass it a URL will parse and build up a ViewModel object and return it. So what I am trying to acheive is this:
public static class FeedHelper
{
... | stackexchange/codereview |
Say I have a recursive function that I want to know how many times the function has called itself per input value. Rather than putting printf expressions or changing the return type to include the number of calls, is it possible to "wrap" the function with another to achive this? I would like the wrapped function to re... | stackexchange/codereview |
i am working on some image blog... i need to put the "rate it option"..
i can do this in two ways
have one thumbs up & one thumbs down image and caption it like it or not and then do my rating with AJAX + MySQL
second option is display line of stars & all you know...
both methods are common.. but i haven't implement... | stackexchange/codereview |
http://msdn.microsoft.com/en-us/library/dd371799(v=VS.85).aspx
So with a signature like this:
BOOL WINAPI AssociateColorProfileWithDevice(
PCTSTR pMachineName,
PCTSTR pProfileName,
PCTSTR pDeviceName
);
pMachineName
Reserved. Must be NULL. This parameter is intended to point to the name of the machine on wh... | stackexchange/codereview |
Its a little difficult to explain. It might be easier to skip to the examples.
A table has an id and four columns that each allow null.
ID, Col1, Col2, Col3, Col4
There are x number of rows. ( Usually less than 4 ) And only up to 4 distinct values will be used across the columns.
I am looking to return up to 4 rows, ... | stackexchange/codereview |
I want all traffic with REFERER "bad-domain.com" to go to a specific page named hole. It doesn't seem to work at all in .htaccess so I put it in the server config. It is a wp and all the rest of the rewrite stuff is in .htaccess -- it is pretty typical wp rewrites.
I have had various problems, once I got a redir... | stackexchange/codereview |
I need add in runtime a png image to a TImageList. I've looked at the functions implemented by the TCustomImageList but they only allow adding
bitmaps,
icons or
images from another imagelist
E.g.:
function Add(Image, Mask: TBitmap): Integer;
function AddIcon(Image: TIcon): Integer;
function AddImage(Value: TCustomI... | stackexchange/codereview |
I'm getting an odd error with a MVC 3.0 RC project.
It seems that it is upset about my application not being a homogenous AppDomain
It was working fine yesterday, not sure what's changed.
System.InvalidOperationException was unhandled by user code
Message=Dynamic operations can only be performed in homogenous AppDomain... | stackexchange/codereview |
I wish to know how to get nearby location over a certain range of radius.
For example I have location of stores data stored in the database, and I want to search for a coffee over a range of 25 radius or 40 radius or even more, from a given lat and lng coordinate and then display them with their various distance from ... | stackexchange/codereview |
As discussed here, function definitions can be used before they're defined. But as soon as a section of code is wrapped in a try block, this ceases to be the case.
This displays "Hello world":
hello();
function hello() { alert("Hello world"); }
But this displays "ReferenceError: hello is not defined":
try {
hello();... | stackexchange/codereview |
Engine = create_engine("mysql+mysqldb://blah-blah-blah", encoding="utf-8")
Session = sessionmaker(bind = Engine)
ses = Session()
Meta = MetaData(bind = Engine, reflect = True)
PersonTable = Meta.tables["person"]
class Person(object):
pass
mapper(Person, PersonTable)
APerson = Person("1111", "2222", "1.01.1980")
se... | stackexchange/codereview |
We're going to provide our clients with a tool that (among other things) creates a new SQL Server database, and I want to be able to do basic validation on the database name they provide. SQL Server's documentation explains what characters are valid in a database name. However, the documentation is apparently incorrect... | stackexchange/codereview |
Many times, I'm writing a function which will return true on success and false on error/failure, and essentially wrapping another function which does the same.
An example (basically language-independent, but I'll write in ECMAScript for familiarity):
function SendEmail(to, from, subject, body) {
var eml = new EmailObj... | stackexchange/codereview |
If I omit a closing paren, or use the wrong string escape character, or think about Haskell, this happens:
1) Minibuffer error message
Lisp connection closed unexpectedly: connection broken by remote peer
2) SLIME stops working.
3) inferior-lisp error message:
*** - Lisp stack overflow. RESET
;; swank:close-connection... | stackexchange/codereview |
I currently have a query running on my site which looks for all rows which don't have a particular attribute. So although I have sequential numbers for the row numbers, the actual result will have gaps in the primary keys. Turns out this is difficult to explain, so I'll try and add some code!
Here's the WHERE part of m... | stackexchange/codereview |
I am trying to create a custom Paperclip::Processor that integrates with an external web service (the processor will call the web service whenever a new file is uploaded). The external service needs the file to be present in S3 and will handle uploading the processed versions to S3 automatically.
Can this be done usin... | stackexchange/codereview |
I've got a real problem here. I have a page at: [page removed]
and if you go to it, it loads fine, but then the middle contents "shift" over to the right, and only in the top paragraph and headline. In particular, I'm talking about the headline "Pipes" and the paragraph that follows. They should be left aligned like th... | stackexchange/codereview |
Is there a tool for calculating the number of function points in a C# program?
If there is nothing that measures the number of function points, how about a tool that measures something similar?
| stackexchange/codereview |
Is hrtimer_start safe to call in interrupt context?
| stackexchange/codereview |
I'm trying to create some local groups in my AD but sadly if I set a groupType attribute in my context I only receive this exception
Caused by: javax.naming.directory.InvalidAttributeValueException: Malformed 'groupType' attribute value; remaining name 'cn=localTestGroup1,ou=groups'
at com.sun.jndi.ldap.LdapCl... | stackexchange/codereview |
I'm writing a program that has to remove separator characters from quoted strings in text files.
For example:
"Hello, my name is world"
Has to be:
"Hello my name is world"
This sounds quite easy at first (I thought it would be), but you need to detect when the quote starts, when the quote ends, then search that speci... | stackexchange/codereview |
I have something similar to the example below
from django.db import models
from django.contrib.auth.models import User
class a(models.Model):
user = models.ForeignKey(User)
class b(a):
value = models.IntegerField()
class c(a):
model_id = models.IntegerField()
I have a User instance assigned to variable... | stackexchange/codereview |
I would like to use a .jar file generated by SWIG in an Android application. What is the best way to deploy all of the underlying dll's with the Android application?
In a desktop environment, my PATH variable includes the folder containing these dll's.
| stackexchange/codereview |
I have created an application where I am allowing users to log their Workouts.
The user has the ability to keep a private or public log of their workouts and is denoted by a check_box field that passes the integer 1 to the workout.share column. The private log is viewable through the workouts_controller where I am limi... | stackexchange/codereview |
I am developing a web application for data analysis on agricultural datasets. Actually I want to make the
application to be multi tenant and I wish to deploy that SaaS application in a private cloud (in our school).
I got a few basic doubt in the programming part.
Do I need to develop the application in the Hadoop's... | stackexchange/codereview |
When compiling C++ you of course use a compiler for the target platform you want to compile for. Is there a C++ compiler that targets the JVM (so instead of using the Java "native" interface C++ code is compiled to Java byte code)?
| stackexchange/codereview |
I want my service method to response a string. For example: I want the service method to insert a item on the table, if it got inserted the service method should response a string "True" otherweise "False". How should the method look like?
| stackexchange/codereview |
sub routine1 {
return wantarray ? () : undef;
}
sub routine2 {
return;
}
Is there any difference between this two subroutines?
| stackexchange/codereview |
I need to run csh scripts from a bash shell and therefore temporary change to tcsh via a command. It works perfect in interactive mode but i cant figure out in a one line command.
So in interactive mode i do in the bash shell:
tcsh
source my.tcshr
useMyTcshCmd
etc.
How can i do all of this in 1 command?
Sorry for the ... | stackexchange/codereview |
I'm trying to run pdflatex on a .tex file from a Python 2.4.4. subprocess (on a mac):
import subprocess
subprocess.Popen(["pdflatex", "fullpathtotexfile"], shell=True)
which effectively does nothing. However, I can run "pdflatex fullpathtotexfile" in the terminal without issues, generating a pdf. What am I missing?
[E... | stackexchange/codereview |
I've just downloaded the MS Small Business Starter kit, which is simply a smallbusiness.vsi file. I double clicked this, and got a success message after the install process. This adds a new web site template, but when I try and add a small business web site to a solution, or simply create a new small business web sit... | stackexchange/codereview |
Say there are x number of boxes, each box contains an "inventory" of the letters A-Z, with each letter inventory being 1 or more.
Now say I need the following:
6 As
2 Bs
1 C
How do I get a list of all the possible combination/permutation of boxes that can provide me with the letters I need?
The algorithm needs to als... | stackexchange/codereview |
i've been trying to wrap my head around this for a while now, doing research online yielded nothing. Basically i have a 5 column table representing a tree structure. You could think of it as a directory list. Im trying to build a unordered list menu out of this.
This is the MYSQL table:
Parent/Child/Grandchild/Grand-... | stackexchange/codereview |
For whatever odd reason, we have a legacy data recorder device that runs at 9600 baud. Except when it needs to transfer its recorded data to a PC, in which case it switches to 57600 baud.
The old VB6 code worked, although it had its own set of problems of course.
The routine is this:
Do several COMMAND/RESPONSE routin... | stackexchange/codereview |
If you have a table which stores questions and answers, for example using an extra column called something such as Parent. So if a question doesn't have a value in parent, it's a question and if it does, its a reply, so how would you do version control for this?
| stackexchange/codereview |
A program that animates circles is not drawing them fluidly once several hundred are drawn at once. It was suggested to use affine transformation to copy the shapes. This code, refactored to use graphics2D, works, but doesn't cause any performance boost since it is still filling hundreds of ovals. How to use affinetran... | stackexchange/codereview |
On windows phone 7 pivot control template project, the pivot control page doesn't remember the selected item if you go to the search page from a specific pivot item and select back on the phone. It always comes back to the first item of the pivot control.
How do you change this behavior so if you were on the 3rd pivot... | stackexchange/codereview |
Hi
I have this kind of strings and I want to obtain
Like toto100 to become toto 100
Thanks for your help
| stackexchange/codereview |
I am attempting to share data across subdomains using Safari. I would like to use an HTML5 database (specifically localStorage as my data is nothing but key-value pairs).
However, it seems as though data stored to example.com can not be accessed from sub.example.com (or vice versa). Is there any way to share a single d... | stackexchange/codereview |
Does anyone with Enterprise Library 5 logging experience know how to dynamically change the logdirectory for the text file logger at runtime (overriding what is in the app.config)? Although the help volume has gone up with v5, I can't seem to find this kind of obvious piece of info.
Thanks.
| stackexchange/codereview |
For models.CharField(), we use to give a choices attribute. Normally these choices will be displayed in select box. Is it possible to display the option buttons instead of select box (in admin interface)? Any suggestions?
status = models.CharField(max_length = 25, choices = (('IN PROGRESS', 'IN PROGRESS'),('COMPLETED'... | stackexchange/codereview |
I have an NSOutlineView, with its content bound to an appropriate NSTreeController. It works perfectly well, except when my app loads, only about half of the content of the NSOutlineView displays.
If I cmd+tab away and back, all the content displays. If I click the blank rows where I know there should be content, the ... | stackexchange/codereview |
I'm attempting to make an interface similar to the Photos app where the status bar & navigation bar fade in/out but I'm running into a problem. If I tap to hide the interface then rotate the device, then tap to bring it back up, then the navigation bar is repositioned underneath the status bar (see photo). If I then ro... | stackexchange/codereview |
Imagine a website that uses google gears as a storage mechanism for various application level data. This data is intermittently replicated with a server using Asynchronous webservice calls while the application is active.
The problem lies in the subscription monitoring mechanism. Imagine a subscription system to this ... | stackexchange/codereview |
Currently, I'm using the codes below to save a file to a directory on my website.
//save the file to the server
String savePath = Server.MapPath("..\\temp\\") + file;
FileUpload.PostedFile.SaveAs(savePath);
When I'm running the application on my computer, it returns the path:
"E:\dotnet\Project\Implementation\Source ... | stackexchange/codereview |
I want to store to database users that access OBIEE, but i have problem:
If user exit from OBIEE then the session also removed, then how to keep the history of user that accessed the OBIEE?
Thank You
| stackexchange/codereview |
How do you verify the number of elements in a set in Easymock? The class I'm testing should call a method, passing in a set with n elements. Right now, I'm matching any object for the list:
mockFooSetReceiver.saveFooSet(eq(name),
(List<IFooSet>) anyObject());
replay(mockFooSetReceiver);
What I'd... | stackexchange/codereview |
In C++, I need to write to an existing file and keep the previous content there.
This is what I have done:
std::ofstream logging;
logging.open(FILENAME);
logging << "HELLO\n";
logging.close();
but then my previous text is overwritten (gone). What did I do wrong?
Thanks in advance.
| stackexchange/codereview |
I have a hidden field called #myHiddenField say.
The content of this field is programatically changed at various places.
I'd like a method that detects that change. The change event won't fire unless I type into the field but this is impossible.
Is there a jQuery way to detect programatic content change in a field?
| stackexchange/codereview |
I'm developing a small custom module for Magento that edits subscription information in a small form. I have the data model all configured and I have built sample views with HTML forms.
However, when I try to post the forms the Magento system does not recognize the URLs due to the fact that the ACL portion of my xml f... | stackexchange/codereview |
I have been searching for some time for a code coverage tool that will work with my client/sever application, but I have been unable to find a compatible tool.
My application stores images on a server, then displays them though a client which is launched via java webstart/jnlp file.
Any recommendations would be apprec... | stackexchange/codereview |
I want to set in project properties build target 2.2 (api level 8)
In the manifest.xml <uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4"/> is declared.
Did anybody tried, if any user (with min. Android 1.5) see application in the market?
Could some other problems occur because of different SDK for buildi... | stackexchange/codereview |
Client has different versions of the same code based, basically they copy a template code base, then edit the copy, and then use that copy in production as an instance of the code. Meaning there's 20 versions of the code base running, but 80% of the code is the same. Without changing their workflow is there a way to me... | stackexchange/codereview |
I think there is a bug in OLSR::degree() method:
This method calculates the number of symmetric neighbors of node y, EXCLUDING all the members of N.
I think
OLSR_nb_tuple* nb_tuple =
state_.find_nb_tuple(nb2hop_tuple->nb_main_addr());
should be
OLSR_nb_tuple* nb_tuple =
state_.find_nb_tuple(nb2hop_tuple->2_hop_addr())... | stackexchange/codereview |
Out of pure curiosity, I am wondering if it's possible (no doubt it is) to 'hook into' a Rails Application's environment. So for example, say I want to create a cron script (I don't) that operates some sort of maintenance on a Rails app, and I want to write it in Ruby and using all of the nice code that I already have,... | stackexchange/codereview |
I am trying to retrieve serialized classes using Restlet 2.1 with Android as the client and GAE as the server. This is the relevant code:
ClientResource cr = new ClientResource("http://localhost:8888/mydata");
// Get the MyData object
MyDataResource resource = cr.wrap(MyDataResource.class);
MyData myData = resource.ret... | stackexchange/codereview |
If I set my HttpWebRequest.CachePolicy as follows:
var webRequest = (HttpWebRequest) WebRequest.Create(url);
var policy = new HttpRequestCachePolicy( HttpCacheAgeControl.MaxAge,
TimeSpan.FromMinutes(1) );
webRequest.CachePolicy = policy;
and make two async requests for the same... | stackexchange/codereview |
How to resolve 1 particular flavor of 'java result 1' in the context of using JVMTI agents?
| stackexchange/codereview |
I want to be able to use the legend of a flot graph to turn on/off the series of my graph. I found the examples on the flot site and have used the Turning series on/off and Labelformatter from the API to build what I have right now. I can put checkboxes next the legend elements and add a click event to them and its fir... | stackexchange/codereview |
I have a service that allows a survey to be embedded in a page. This survey makes cross domain ajax calls to my server, from pages hosted wherever.
The service runs on rails 3. I'm trying to store the index of the last question answered in a session. ActiveRecord store is active. The service is hosted on heroku. I've m... | stackexchange/codereview |
I have created a UITabbar with 3 items and placed it on a UIScrollView
When I click the buttons of the tabbar they do not respond in the bottom half.
The upper area is working fine.
When clicking in the area just above the tabbar the tabs are also switched.
What can be wrong?
How can i correct this misalignment of the ... | stackexchange/codereview |
I'm having a little problem using Navigation properties and inheritance on ADO.NET.
This is my Data Model:
First, some vocabulary:
Categoria = Category
Formulario = Form
Campo = Field
Imagem = Image
Paragrafo = Paragraph
Escolha = Choice
Texto = Text
Resposta = Answer
So, I'm trying to create a custom ... | stackexchange/codereview |
I've got a fresh install of the new build of cakephp (1.3) and the bake console does not seem to be working.
I got to the folder in the console and do the usual cake bake and it doesn't seem to be working.
This is the output from the console:
xxxx:console yyyy$ ./cake bake
-bash: ./cake: Permission denied
Has somethin... | stackexchange/codereview |
Quite new to this but i have created a SQL script that groups by and Sums a column.. but in SQL Management studio it shows me a grid with column value but nothing underneath it i.e. the SUM..
Do i have to configure SQL Management studio to show me the SUM or something..
Here is my query its very easy
SELECT RowNum... | stackexchange/codereview |
We have different ways to kill a running C# program.
ctrl + C;
task bar then right click its icon, then select 'close' on the popup;
task manager, select the its executable name and then click end process;
console window, use kill command;
maybe more.
What I am asking here is how handle them in my C# program to guara... | stackexchange/codereview |
Is it possible that the creation of a rather largge (20MB) .csv download creates a memory leak in case the user stops the download/export before the file has been saved on his machine?
If yes, how would you catch and counter this problem?
| stackexchange/codereview |
Of the FCL classes (or even using an external API) is there a utility assembly, class or members that can be plugged into a .NET application to convert all named entities to their numeric equivalents?
For example, É would become É.
| stackexchange/codereview |
If I have a data template as follows,
<DataTemplate DataType="{x:Type vm:EditorTabViewModel}">
<me:MarkdownEditor
TextContent="{Binding
Path=Content,
RelativeSource={RelativeSource AncestorType={x:Type vm:EditorTabViewModel}}}" ... />
</DataTemplate>
... | stackexchange/codereview |
I am using OpenCL to write GPGPU kernels which target the NVidia CUDA runtime. I was recently reading up on V8 and found the page describing V8 embedding techniques:
http://code.google.com/apis/v8/embed.html
Is it possible to 'wrap' all the OpenCL functions in V8 'templates' so that I can write kernel logic in JavaScri... | stackexchange/codereview |
I need to detect whether NFS is installed or not on the running server in my Ruby code.
If there is any way I can do this in cross-platform way(or at least in unix/linux)?
| stackexchange/codereview |
What is the performance of Tryton as a CalDAV server? How does it perform with Mozilla Sunbird / Thunderbird-lighting as a client? Is it ready to apply in real business environments? If not, what other solutions would you recommend?
| stackexchange/codereview |
I'm trying to override default ResourceBundleLocator in hibernate validation 4.1. So far it works perfectly, but the only examples of its usage include java code to instantiate ValidationFactory.
When using a web application with spring hibernate validation is automatically configured (only the suitable hibernate valid... | stackexchange/codereview |
here my code-
$things = mysql_real_escape_string(implode(',', $_POST['things']),$link);
$q = "INSERT INTO tblslider(src) VALUES ('".$things."')";
print_r($q);
$result = $mysqli->query($q) or die(mysqli_error($mysqli));
but my query is getting generated
INSERT INTO tblslider(src) VALUES ('4368122.jpg,5440051.jpg,1047... | stackexchange/codereview |
Currently, my authentication looks something like this:
Login over SSL:
PHP checks username / password against database.
If they match, a session cookie is generated, sent and stored on the Db
(A session cookie looks like userID:IP:random_characters:timestamp)
Perform action over SSL:
PHP checks cookie against se... | stackexchange/codereview |
I have setup a web app for a client. The server is in US I believe. The client himself is in Sydney.
He says he added a record to a table with a timestamp field and it shows the timestamp as 2010-11-19 07:12:00 but the actual local time has been 2010-11-20 13:12:00.
So he is 30 hours ahead of the time recorded. This d... | stackexchange/codereview |
$("input").each(function() {
if ($(this).hasClass('valid')) {
// Do something
}
});
The Code above determines if input has a specified class. However, how could I change the if statement to make it do something when input doesn't have a specified class?
| stackexchange/codereview |
I'm working on a sharepoint 2010 publishing site that has many subsites. I've set up a custom master page, and several custom page layouts.
I've discovered how to set the default page layout used for newly created pages in a subsite (found at /_Layouts/AreaTemplateSettings.aspx), but I can't seem to figure out how to s... | stackexchange/codereview |
When a user registers on my app they have to confirm their email, powered by Devise + Rails 3.
The email address defines the user's permissions so I don't want the user to be able to change it once registered. so removed :email from the users.rb attr_accessible which worked for a logged in user, but now user's can't re... | stackexchange/codereview |
I need to drop all the default constraints in our SQL Server 2008 database. Has anyone written a T-SQL script to do this? Note, I just need to drop default constraints, not any other type of constraint.
| stackexchange/codereview |
Can anyone recomend a really good book about protocol compilers, ie. how to generate protocol code? I don't want any superficial book that sort of works like a cook book with a few recipies in it, instead I want to learn the fundamentals. What should I study in order to grasp the subject of two or more finite state m... | stackexchange/codereview |
I'm trying to get started with embedded linux Qt Development, and I've built Qt for embedded linux, and built QVFb but when I launch any of the example programs I get an error that a driver isn't found.
./analogclock -qws -display QVFb:0
QVFb: driver not found
Any idea what I've done wrong? Do I need to configure Qt ... | stackexchange/codereview |
I've a weird situation while keyboard shortcuts of a button along with datagridview is used. Here is the explanation:
I've a winform in which there is a datagridview and a save button. Save button has keyboard shortcut Alt+S. I enter some rows in the grid and I validate all the cells on Save button click and if cell va... | stackexchange/codereview |
In my application, i have tried to implement tooltip wich will show me some errors in the datagrid based on the dataGrid Column's text. For sample I have 4 columns with text-boxes for entering some data and if data in the some column doesn't much the rule or if some of them are empty on the last 4th column i should sho... | stackexchange/codereview |
We provide a web based platform to our clients and some content doesn't work properly when viewed through the Lotus Notes internal browser. Despite various warnings about not opening in Lotus, users are still doing it.
Therefore I need a reliable way to detect the Lotus browser and therefore block and display an approp... | stackexchange/codereview |
I want to find an offline good reference on the jsf components.
I'm currently learning about jsf 2.0 from core jsf 2.0 book + glassfish + cdi.
I've found the online version such as
download.oracle.com/docs/cd/E17802_01/j2ee/javaee/javaserverfaces/2.0/docs/pdldocs/facelets/index.html
and
www.jsftoolbox.com/documentatio... | stackexchange/codereview |
is there a JAVA library to clip the quoted text from an email message?
If it's an HTML message, I used an HTML parser so far and removed the blockquotes from the DOM tree but I have more trouble with the plain text format.
I tried regex:
emailBody = emailBody.replaceAll("\n>[^\n]*?\n", "\n");
but I'm far from mas... | stackexchange/codereview |
This question is somewhat similar to this one Best way to deploy large *.war to tomcat so it's a good read first, but keep on reading my q, it's different at the end...
Using maven 2 my war files are awfully large (60M). I deploy them to a set of tomcat servers and just copying the files takes too long (it's about 1... | stackexchange/codereview |
The following Common Lisp code does not produce the output I would expect it to:
(loop for a from 5 to 10
and b = a do
(format t "~d ~d~%" a b))
Using SCBL, it produces this output:
5 5
6 5
7 6
8 7
9 8
10 9
I was expecting the values of a and b to be the same on each line.
I have searched the web for good... | stackexchange/codereview |
I'm just getting started with the Salesforce Web Services API and I'm surprised that there isn't an obvious way to do a query for all e.g. Account objects that contain certain tags.
What would you say is the best way to find all objects that contain certain tags?
I imagine it involves a join on Account.id and AccountTa... | stackexchange/codereview |
What is the best way to add some sql to the select part of a Criteria object?
(I want to add SELECT myFunction AS distance so that I can later order by distance)
Cheers,
Rob
| stackexchange/codereview |
I know it's not possible to send an ajax request or use GWT's RequestBuidler to send a request for a file download; needing a form to do it but how do I get a reference to the response when it returns with lets say an error.
The request i send is for a file download but if the file download is too big the Java servlet ... | stackexchange/codereview |
I'm doing an iOS app where I have a black box rendering library that has its own EAGLContext and framebuffer and does it's own rendering. I also need to do additional rendering outside the black box lib.
Up until now I've been doing that by carefully reading, setting and restoring all the pertinent states each frame. T... | stackexchange/codereview |
Hii...
Is there any way to find out if the method call originated from a test class?
If its from a test class... then I need to initialize some dummy values for the variables in the class . I would like to write the Test Class with minimal change in the source code...
The class is following a singleton pattern..So its... | stackexchange/codereview |
select sum(price)
from product
where id in (select productid
from orders where status!=0
and userid=1)
if my returned productid = (1,2,2)
the sum will only be sum of 1 and 2 instead of sum of 1,2,and2
i tried
select sum(price) from product where id in (1,2,2)
same result, how do i get in... | stackexchange/codereview |
I need help in adding the multiplication of values with variables and assigning these to a variable in Scheme.
for example I have..
(define overall 0)
(define part1 0.15)
(define part2 0.20)
(define part3 0.4)
(define usrInput1 0)
(define usrInput2 0)
..
I need to do something like
overall = usrInput*part1 +
usrInp... | stackexchange/codereview |
I have an application in which there are 5 tabs. Each tab has a datagrid. The dataprovider to the datagrid in 1st tab is the common dataprovider to datagrids in other tabs. data in each of the tab varies based on status except for the 1st tab where i display all the data. Now the data for main tab is refreshed every mi... | stackexchange/codereview |
I have an Activity which is an OpenGL view. I also have an xml layout to use for preferences. Until now, to show the preference menu, I just brought it to front by setContentView(). And the same to get back to the OpenGL view.
But is this a case where I should give the preference menu its own Activity?
I guess this ... | stackexchange/codereview |
I'm using Symfony and sfDoctrineGuardPlugin.
How do I display, in a template, the username of the current user ?
I've tried $this->getUser()->getUsername(), but all I get is the error : "Call to undefined method sfPHPView::getUser."
I'm trying to display the username in a layout.php, not in a particular module/template... | stackexchange/codereview |
I have a client application that is used to maintain orders. Users have the ability to run one-off reports from the application. The reports are from from data which is created on the fly and saved to the individual user's pc. The data is deleted when the application is closed.
There is a 2 step process in the app t... | stackexchange/codereview |
I've got a bunch of web services deployed in an Axis2 environment.
From my Java code, I want to find out if a particular web service is deployed or not.
I'm thinking, that one approach would be to try to grab the WSDL, if that is available, then I could assume that the web service is deployed, if its not, then obviousl... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.