instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have 2 columns in mysql table: a and b. a is allways string value and b is sometimes a string value and sometimes it is null.
How to construct a mysql SELECT so that the b would be taken if it is not null and a would be taken otherwise.
I tried to make some magic with concat and if...then with no success...
UPDATE - ... | stackexchange/codereview |
so...i've been banging my head on this for a bit. I'm getting the most bizarre error when attempting to validate a form. I pass input to the form wanting to test behavior when the form fails validation, i.e. i expect it to fail validation.
i've got this code for a form:
class CTAForm(forms.Form):
first_name =... | stackexchange/codereview |
Yesterday I tried to use the client side of the RestEasy framework. The interface has a method:
@PUT
@Path("document/autoincrement")
@Consumes("application/xml")
BaseClientResponse<String> insertPointOfInterest(PoiDocument poiDocument);
and the call to some (Jersey) rest service looks like:
String restServerServic... | stackexchange/codereview |
While trying to learn a little more about regular expressions, a tutorial suggested that you can use the \b to match a word boundary. However, the following snippet in the Python interpreter does not work as expected:
>>> x = 'one two three'
>>> y = re.search("\btwo\b", x)
It should have been a match object if anythin... | stackexchange/codereview |
I need a T-SQL ranking approach similar to the one provided by NTILE(), except that the members of each tile would be on a sliding distribution so that higher ranking tiles have fewer members.
For example
CREATE TABLE #Rank_Table(
id int identity(1,1) not null,
hits bigint not null default 0,
PERCENTILE smallint null
)... | stackexchange/codereview |
Version control in programming is pretty much a necessity, and some programs allow for things like change-tracking or a form version control for files other than source code (like MS Word, InDesign, etc.).
Is there any kind of system or architecture/protocol that could be put in place to establish version control for n... | stackexchange/codereview |
I am working on a Opengl based 2D CAD software which requires heavy use of hardware OpenGL acceleator (pushing 250 million vertex per second at times). Here is my problem.... whenever the viewport is stagnant for more than 10 seconds, the Opengl accelerator (Geforce 9800 GT in this case) goes to a inactive mode. When t... | stackexchange/codereview |
I would like to create the configuration editor plugin for my XML configuration file which would be similiar to this.
I was searching how I can create Eclipse plugin and I didn't find any plugin option which would allow me to do that. Only thing which is close to what I want is custom editor but it would be very tedio... | stackexchange/codereview |
I would like to find out how to print a a certain string from an input file using a scanner. For the string to be printed the line must start with *star and the string must be surrounded by quotation marks, and be the next token and on the same line as *star ignoring white space of course.
Sample input text file: "tes... | stackexchange/codereview |
I want to do something like
IsItAStringLiteral("yes")
var v = "no";
IsItAStringLiteral(v)
With the obvious return value. Is it possible?
| stackexchange/codereview |
I'm trying to code part of a program that allows users to set up one or more alarms that will remind them to launch the application and do something at certain times of day.
I basically understand that I need to use local notifications, but I'm having a hard time coming up with the best way to represent a time of day i... | stackexchange/codereview |
I have downloaded and installed a font in my system, then i used this font in my project, its worked fine in local system, but when i upload this page to server its not working. How can i install a font in server? or How can i solve this issue?
Please Help me!!!!
| stackexchange/codereview |
When some text on a document is highlighted, the default browser highlight is lost as soon as there is a click on the document.
I want to keep the browser highlight on all the time just like apture http://www.apture.com/. Highlight some text, it will popup with a "Learn More" bubble, click on the "Learn More" button, i... | stackexchange/codereview |
I need to write a DROP COLUMN routine for manipulating SQLite databases.
It would be called something like this:
dropColumn("SomeTable", "SomeColumn");
The SQLite FAQ says that to drop a column, you have to create a temporary table containing just the columns you want, and then copy the data across to it, and then ren... | stackexchange/codereview |
How can I search a std::unordered_set knowing hash value and having some predicate object? (The predicate determining equivalence by pred(x) && pred(y) meaning x == y.)
| stackexchange/codereview |
Consider the sample code given below:
Abstract Name
public abstract class Name {
private String name;
public Name(String name)
{
this.name=name;
}
public String toString()
{
return name;
}
public String getName() {
return name;
}
}
FirstName
public class FirstName extends Name {
FirstName(String n... | stackexchange/codereview |
Suppose I have 3 webservers behind a reverse proxy/loadbalancer. Currently I use Apache 2 but don't mind switching.
Those webservers are not equal. They have different sets of local data meaning that different kinds of requests will be handled more efficiently on specific webserver.
I want to plug some custom routing ... | stackexchange/codereview |
I'm using Rails 3.0.1. I installed the native pg gem for postgresql with this command:
$ export ARCHFLAGS='-arch i386'
$ sudo gem install pg -- --with-pg-config=/Library/PostgreSQL/8.4/bin/pg_config
When I run the gem list, I can see that pg 0.9 is installed.
However when I set the postgres database adaptor and re-... | stackexchange/codereview |
I've taken the following code from http://www.ocaml-tutorial.org/data_types_and_matching
I've been trying to write a C stub for following, to invoke from our PHP codebase. I can't quite understand how (and if) I'm supposed to create a typedef for the following Ocaml type expr, and how I can access the function multiply... | stackexchange/codereview |
Is keyword driven testing something that could be implemented using Selenium? If so, how exactly and where can I learn more about it? A simple example might help me get started :)
Thanks!
| stackexchange/codereview |
I'm wondering how I would approach the following problem with regular expressions. We run into the occasional problem of quote marks (") inside Alt tags which can cause rendering issues. Would it be possible to write a regular expression to find Img tags, but only when the ALT contains quotes?
For example these would ... | stackexchange/codereview |
I have created a sample
http://jsbin.com/eqiti3
here we have three divs. Now, what i want to do is: on clicking of any div it should come on the top of other div then fade and then back to its original position. This is what i am using:
$(".box").click( function () {
var zindex = $(this).css('z-index');
/* ... | stackexchange/codereview |
I'm trying to create an application that converts a file from the HTML format to the PDF format.
The approach I am using is:
HTML to XHTML
XHTML to Formatting Object
Formatting Object to PDF
I'm having a bit of trouble with the whole XHTML to FO(or xsl).
Can you please tell me how to transform the XHTML to FO?
Or m... | stackexchange/codereview |
I'm working on a class library in VC++ that shall have ref classes and some native code. Now, I need to use five native objects from an external framework. those objects must be declared on the heap NOT on the stack. I want encapsulate those objects in some sort of a structure knowing that constructors need to be calle... | stackexchange/codereview |
Oracle supports a query syntax where a table is joined to an Oracle collection type (Nested table or VARRAY). This semantic can be used instead of the in (1,2,3) syntax in SQL, and allows an array of values to be bound to the query. This can be done using Oracle's JDBC driver.
This type of query is known as a Pickler F... | stackexchange/codereview |
i would like to create a light effect on a 2d car racing written in SDL.NET (and c#).
The psychs Light effect is simple: the car headlights (classic conic light effect).
Does somebody know where can i look for some example of light managemnt via SDL ? Or maybe tell me how to solve this issue ?
Thank you for your supp... | stackexchange/codereview |
I have the following code:
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
public class Test
{
static void Main()
{
var list = new List<KeyValuePair<int, KeyValuePair<int, User>>>
{
new KeyVal... | stackexchange/codereview |
I am trying to upload image file from my one server to another remote server (owned by me). but its giving me error
Warning: move_uploaded_file(http://www.mysite.org/photo/color-sample-colorize12-10-2010-09-14-09.jpg)
[function.move-uploaded-file]: failed to open stream: HTTP wrapper does not support writeable connect... | stackexchange/codereview |
CancelIo() is supposed to cancel all pending I/O operations associated with the calling thread. In my experience, CancelIo() sometimes cancels future I/O operations as well. Given:
ReadFile(port, buffer, length, &bytesTransferred, overlapped);
If I invoke CancelIo(port) immediately before the read, GetQueuedCompletio... | stackexchange/codereview |
I've written a simple graphing implementation in C#, and I can graph things by comparing each pixel to the position on the graph it represents and plugging that position into the function I have to see if it is on the curve. That's all well and good.
The problem I'm having is USING a generated taylor polynomial. For ex... | stackexchange/codereview |
I'm currently writing integration tests for a RoR REST API using cucumber.
I'd also like to stress-test the API and was wondering how I might be able to re-use my cucumber scenarios to do this.
I've used JMeter and httperf before for stress-tests, and of course with both tools had to write or record the tests that I ... | stackexchange/codereview |
I wanna write a simple RSS Feed reader in C++.
I understand that the basic requirement is to understand XML parsing ( at the low level), opening, reading/writing, closing sockets and stuff like that. I don't need help in coding for sure. But It would be great if someone can help in getting started with RSS Protocol. E.... | stackexchange/codereview |
Here's my scenario: I have a view with a dropdown list and when the user selects an item in the list I want to dynamically insert a partial view which is strongly typed with the same Model as the parent view. I thought this was a fairly common scenario and would be pretty easy to do but I may have been mistaken (or jus... | stackexchange/codereview |
Basically I need to run a Unix script to find all folders in the directory /fss/fin, if it exists; then I have tar it and move to another directory /fs/fi.
This is my command so far:
find /fss/fin -type d -name "essbase" -print
Here I have directly mentioned the folder name essbase. But instead, I would like to find... | stackexchange/codereview |
I want to generate entity classes and Service class of OData secured service.
In OData Java extension page it is written that I need to use org.restlet.ext.odata.Generator class that should get uri and output directory parameters.
But if my OData service is secured the generator instance is not able to generate service... | stackexchange/codereview |
int a, b;
private void Form1_Load(object sender, EventArgs e)
{
this.Width = 600;
this.Height = 436;
for (a = 1; a <= 8; a++)
{
for (b = 1; b <= 8; b++)
{
Button btn = new Button();
btn.Name = (((a - 1) * 8) + b).ToString(... | stackexchange/codereview |
In my application I've added a "Facebook Comment Box" (on different pages, for different objects). Each object has its own comments list so I need to provide a unique (across the site) ID for every single one of them.
What would be the best approach for achieving this: An abstract model, from which all other models wil... | stackexchange/codereview |
I'm referring to the paradigm in Item 34 in Effective Java by Joshua Bloch. I would like to take the method he's using which is to have each related enum implement a base interface, and initialize an EnumMap from the "sub-enums." See the code section below. I'm getting a syntax error which I don't understand. I'm n... | stackexchange/codereview |
My Problem: Linked to my Employees table I've got an Address table containing a virtual field called full_name (I guess you can imagine by yourself what it does). I added the Containable Behaviour and this function
function beforeFind() {
$this->contain('Address.full_name');
}
to my Employees model, so that I don'... | stackexchange/codereview |
I want to create images like this from a double precision matrix using MATLAB.
Sample image:
http://twitpic.com/2xs943
| stackexchange/codereview |
I was wondering how extensive your knowledge of php should be to write a decent wordpress plugin? Can you create a wordpress plugin with just basic knowledge and little experience with the language?
thanks.
| stackexchange/codereview |
I am trying to run some Java code I found on linux.
maudecmd = new String[files.length+5];
maudecmd[0] = "maude";
maudecmd[1] = "-no-banner";
maudecmd[2] = "-no-ansi-color";
maudecmd[3] = "-no-mixfix";
maudecmd[4] = "-no-wrap";
for(int i = 0; i < files.length; ++i) {
maudecmd[5+i] = ... | stackexchange/codereview |
I have a format holding paths to files and command line arguments to pass to those files when they are opened in Windows.
For example I might have a path to a javascript file and a list of command line arguments to pass it, in such a case I want to open the javascript file in the same way you might with os.startfile a... | stackexchange/codereview |
Slightly broad question here, but here goes
I'm trying to call an Oracle stored procedure, which returns a VARRAY which is of constructed from a ROWTYPE on one of my tables. For simplicity, lets say this table looks like the following :
MY_TABLE
ID VALUE
-----------
1 John
2 Dave
so I will call a SP that retu... | stackexchange/codereview |
Can someone tell me for what server request code does the 'error' option in jquery ajax ($.ajax) stand for?
Because I want to handle the 400 server error, but I can't seem to do it using that 'error' option. I don't know if I'm doing something wrong in my code or whether it's a bug... Please I need your assistance. Tha... | stackexchange/codereview |
I need to define some common piece of code that can be invoked from different controllers(not view). Is there a way to do that in Rails v3?
I have defined the code in ApplicationHelper and tried to invoke it using
@template.<helper_method>
and
ActionController::Base.helpers.<helper_method>
But it does not work?
| stackexchange/codereview |
Code-behind:
public partial class WebForm1 : System.Web.UI.Page
{
protected override void OnInit(EventArgs e)
{
var t = new TemplatedWizardStep { Title = "Lalalal" };
t.Controls.Add(new Step1UserControl());
_WizardWebControl.WizardSteps.Add(t);
base.OnInit(e);
}
}
Page marku... | stackexchange/codereview |
Good morning,
Does anyone know about efficient algorithms for partial string matching? For example, given the two strings "woods" and "woodes", the algorithm could/should possibly return "wood+s", or " | e".
Thank you very much.
| stackexchange/codereview |
So I see we can have alertdialogs with gray and white (when setinverse...) background colors.
To learn why I checked themes.xml of the sdk, checking it I was led to drawables and there I realized the alertdialog background is not done programatically but via some images. And these images guarantee that there are two gr... | stackexchange/codereview |
i have the following code compiled with GCC 4.2 / XCode.
template <typename T>
class irrProcessBufferAllocator
{
public:
T* allocate(size_t cnt)
{
return allocProcessBufferOfType<T>(cnt);
}
void deallocate(T* ptr)
{
if (ptr)
{
releaseProcessBuffer(ptr);
... | stackexchange/codereview |
I want to compare 2 strings.
My first value is in 'list[0][0]' variable and the second value is in item[0].
But when I am comparing the 2 strings using 'if' statement, I don't get the answer.
if(selected_list[0][0]==items[0])
{
// some code
}
it is not working.
But when I am hard-coded these values, it is working fine.... | stackexchange/codereview |
Is there any workaround to the IE8 bug where some elements seem to collapse the vertical margins and reset it when hover over the element?
You can test the bug at: http://www.gilbertybolona.com/seguros/generales/
And this is a screenshot: d.pr/Plf8
All of the elements should be equally separated.
| stackexchange/codereview |
I'm fairly new to RoR and recently started learning BDD/Rspec for testing my application. I've been looking for a way to spec an AJAX request, but so far I haven't found much documentation on this at all.
Anyone know how to do this? I'm using rails 2.3.8, rspec 1.3.0 and mocha 0.9.8 for my stubs (which I'm also in ... | stackexchange/codereview |
I'm trying to deserialize a JSon file to an instance of a class that contains an abstract list. Serializing the instance to the Json works well (check the json file below). When deserializing I get a "System.MemberAccessException" with the message "Cannot create an abstract class". Obvisouly the deseralizer is trying t... | stackexchange/codereview |
I am just getting started working on a Java Struts Hibernate based Web App on Eclipse.
I have installed Eclipse (Helios) for Java EE developers for linux.
While going through an Action Class SampleProjectAction.java, I find that that words ActionForward, ActionMapping, ActionForm, HttpServletRequest, HttpServletRespon... | stackexchange/codereview |
Suppose you have some this String (one line)
10.254.254.28 - - [06/Aug/2007:00:12:20 -0700] "GET
/keyser/22300/ HTTP/1.0" 302 528 "-"
"Mozilla/5.0 (X11; U; Linux i686
(x86_64); en-US; rv:1.8.1.4)
Gecko/20070515 Firefox/2.0.0.4"
and you want to extract the part between the GET and HTTP (i.e., some url) but onl... | stackexchange/codereview |
I have a contant list declared in java using enum type, that must appears in a jsp.
Java enum declaration :
public class ConstanteADMD {
public enum LIST_TYPE_AFFICHAGE {
QSDF("qsmldfkj"), POUR("azeproui");
private final String name;
@Override
public String toString() {
... | stackexchange/codereview |
Is it possible to create an array that doesn't cross 256 byte boundary? That is addresses of the individual array items only differ in the lower byte. This is weaker requirement than keeping the array aligned to 256 bytes. The only solution I could think of was aligning to next_power_of_two(sizeof(array)), but I'm not ... | stackexchange/codereview |
I am using g++ in Ubuntu
g++ (Ubuntu 4.4.3-4ubuntu5) 4.4.3
I have this code
#include<unordered_map>
using namespace std;
bool ifunique(char *s){
unordered_map<char,bool> h;
if(s== NULL){
return true;
}
while(*s){
if(h.find(*s) != h.end()){
return false;
}
h.insert(*s,true);
s++;
... | stackexchange/codereview |
I am trying to create a rspec test for a model for States. This state model has an association to a Country model. My factories look like
Factory.define :country do |country|
country.name "Test Country"
end
Factory.define :state do |state|
state.name "Test State"
state.association :country
end
I have made a... | stackexchange/codereview |
I have items I1, I2, I3, I4 with weights W1...W4 and Values V1...V4. I want to maximize values with minimum weights. This is a traditional Knapsack. However there is small constraint some items cannot go together. So lets say I2 and I3 cannot go together. Can anyone provide a dynamic programming solution or any other s... | stackexchange/codereview |
I am trying to learn how to use rand_r, and after reading this question I am still a little confused, can someone please take a look and point out what I'm missing? To my understanding, rand_r takes a pointer to some value (or a piece of memory with some initial value) and use it to generate new numbers every time it i... | stackexchange/codereview |
I know all the normal ways of doing this, what I'm looking for is an article I read a long long time ago that showed how to write some crazy helper functions using inline assembly and __naked functions to return a pair of items.
I've tried googling for it endlessly, but to no avail, I'm hoping someone else knows the ar... | stackexchange/codereview |
I'm not sure how best to word the Title of this, so if someone can suggest a better one, please feel free to edit.
I'm writing an app for iPad that requires me to create some of the app data files with the iPad itself during development, i.e. a tool I am building with the iPad will be used by the developers themselves ... | stackexchange/codereview |
If I pass any number of arguments to a shell script that invokes a Java program internally, how can I pass second argument onwards to the Java program except the first?
./my_script.sh a b c d ....
#my_script.sh
...
java MyApp b c d ...
| stackexchange/codereview |
I have some JavaScript code that works in FireFox but not in Chrome or IE.
In the Chrome JS Console I get the follow error:
"Uncaught SyntaxError: Unexpected end of input".
The JavaScript code I am using is:
<script>
$(function() {
$("#mewlyDiagnosed").hover(function() {
$("#mewlyDiagnosed").animate({'height'... | stackexchange/codereview |
If you have an NSMutableArray with three NSDictionarys like this:
{
name:steve, age:40;
name:steve, age:23;
name:paul, age:19
}
How do I turn that into an array with just two strings { steve, paul }. In other words, the unique names from the original NSMutableArray? Is there a way to do this using blocks?
| stackexchange/codereview |
Suppose I make a change to a sproc or a Table that would require me to update previously generated Linq statements. How do I refresh this auto-generated code?
| stackexchange/codereview |
I'm having troubles when I want show a JSON response. I extract correctly the strings but when there is characters like 'á' or '¿' instead of these ones appears 'Ãi' or '¿'. I think that the response comes in non-UTF8 enconding, but I cannot find how to convert it.
Edit
I'm trying to do a GET request to this URL: http... | stackexchange/codereview |
In VB6, coercing True to an integer yields the value -1.
Why is this so? What is the reasoning behind this?
In most other programming languages (C/C++, Java, Perl, Python, etc.), true becomes 1 when coerced into an integer. In boolean algebra, the value 1 is used to represent true/on. Why does VB6 do it differently?
I ... | stackexchange/codereview |
I am trying to print out a 5 digit number as follows:
int rdmNr = arc4random()%100000;
NSLog(@"%i",rdmNr);
I always would like to have 5 digit numbers. Example outputs should be:
00001
10544
00555
78801
But with the previous code I would also get 1 or 555 without 0s. I also tried %5i, but the I just get more white sp... | stackexchange/codereview |
I have a database that will be holding sensitive data, so it should be encrypted in the database. Basically the sensitive data are credentials to another web site. So I want to encrypt them with the users password + salt.
To decrypt the credentials one would need the password.
I see two ways:
On login, I could decryp... | stackexchange/codereview |
Possible Duplicate:
Accessing the height of div in javascript
We're trying to alter msdropdown to "drop up" if the menu will go off the frame. In order to figure if that's going to happen we need to check the location of the drop down box relative to the frame that it's in. From there it's easy make the thing open u... | stackexchange/codereview |
I have a script that does an update function live. I would move it to a cron job, but due to some limitations I'd much rather have it live and called when the page loads.
The issue is that when there is a lot of traffic, it doesn't quite work, because it's using some random and weighted numbers, so if it's hit a bunch... | stackexchange/codereview |
OK, whats the best solution in php to search through a bunch of files contents for a certain string and replace it with something else.
Exactly like how notepad++ does it but obviously i dont need the interface to that.
| stackexchange/codereview |
i have a url in this format:
http://www.example.com/manchester united
note the space between manchester and united, is this bad practice, or is it perfectly fine, i just wanted to before i proceed, thanks
| stackexchange/codereview |
I got a result list and want to keep the elements that are newer than timeline and older than bookmark. Is there a more convenient method than iterating the whole list and removing the elements if they match the conditition? Can you introduce me to how specically how? The way I fetch data and then sort it
results = A.a... | stackexchange/codereview |
In the Below code,
<result type="redirectAction" name="success">
<param name="actionName">
loadManagePrdtprty{1}?prtycrnid=${prtCrnId}&exitWindow=${exitWindow}
</param>
</result>
application is not getting start..What will be the problem.
| stackexchange/codereview |
running on windows 7, 32bit home pro
I created a very simple few line app in visual studio 2008 , compiled and linked with standard libraries in release mode into executable test.exe.
The code in c is as follows:
char* test = "h";
int main()
{
_asm
{
push 0xFEEDBACC;
}
MessageBoxA(0,test,test,0... | stackexchange/codereview |
I am looking for something like HTML::TableExtract, just not for HTML input, but for plain text input that contains "tables" formatted with indentation and spacing.
Data could look like this:
Here is some header text.
Column One Column Two Column Three
a b
a ... | stackexchange/codereview |
I have two piece of code
sample 1
(function(){
var x = 1;
this.getx = function() { return x; };
})();
sample 2
(function(){
var x = 1;
this.getx = function() { };
})();
both code samples create a closure, x in sample one is referenced, while x in sample two is not referenced, I know x in sample one will not... | stackexchange/codereview |
I import WebView.h to my project,and it only has a simple IBOutlet UIWebView *myWebView ;
How to Open a WebView when I press the button in the alert view ?
here is how I define alert view button response
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{
if ([alertView tag]==0) ... | stackexchange/codereview |
I am trying to locate the handle of a button in a application to send a message to it so i want a good window finder that can get the window from the cursor . I am not trying to code such a tool i want only a name of an app i can download.Thanks.
| stackexchange/codereview |
I have an ASP.NET application that is consistently using 75% - 100% of the CPU on a production server. How can I profile the application to figure out what part of the code is using up the most CPU? I have looked at a couple of different tools (Xte Profiler, EQATEC, dotTrace), but they all seem to want you to load an... | stackexchange/codereview |
I just looked up the Set interface and found that it mostly (or completely) only redeclares functions which are already in the Collection interface. Set itself extends Collection, so doesn't that mean that the Set interface automatically has all the functions from Collection? So why are they redeclared then?
For exampl... | stackexchange/codereview |
I'm trying to use following function with my API.. It works but the background isn't masking. What's wrong?
dialog: function(message)
{
this.OCache = $('<div class="modal">'+ message+'</div>').appendTo('body').overlay
({top: 0,mask:{color: '#000',loadSpeed:200,opacity:0.5},closeOnClick:true,load:true});
... | stackexchange/codereview |
I wonder if there is a way to define a view in eclipse which can render and show html files or with other words a view which works like a browser! I mean a view for an eclipse plugin.
For example if I can define a browser based on org.eclipse.swt.browser and associate it to viewcontentprovider?
I don't want to ope... | stackexchange/codereview |
I have working .NET 2.0 addin that takes an AppDomain created by an external application and applies user-defined security policy (PolicyLevel) by using AppDomain.SetAppDomainPolicy() method. However, this method is obsolete in .NET 4.0 and fails at runtime. Here is a sample code:
AppDomain domain = ExternalApplic... | stackexchange/codereview |
I have a list of tuples which are http headers. I want to convert the list to a JSON object. I try mochijson2 but to no avail.
So I have the following :
[{'Accept',"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"},
{'Accept-Charset',"ISO-8859-1,utf-8;q=0.7,*;q=0.7"},
{'Accept-Encoding',"gzip,deflat... | stackexchange/codereview |
Rather than assign to every buttons with MouseEvent, I assign to AIR application with:
private function init():void {
this.addEventListener(MouseEvent.MOUSE_DOWN,mpressKey);
}
However, I only want the mouse_down to execute if it detect a "button" property instead of Demo0.WindowedApplicationSkin2.Group3.contentGroup... | stackexchange/codereview |
Does Visual Studio 2010 install of ASP.NET 2.0, ASP.NET 3.5, and ASP.NET 4.0?
Thanks in advance.
| stackexchange/codereview |
void (^assetEnumerator)(struct ALAsset *, NSUInteger, BOOL *) = ^(ALAsset *result, NSUInteger index, BOOL *stop) {
How can I stop the assetEnumerator run loop?
Thanks.
| stackexchange/codereview |
I have read from the django-jython wiki that 1.1.1 is not compatible with django 1.2, and that jython does not works with the default django backend.
Does this means I'm unable to use django 1.2 with jython at the moment?
| stackexchange/codereview |
In C# using VS2005 I have a Winforms TabControl with 7 tabs, but I want the last tab to be only visible if a certain configuration option is set.
How to make the TabControl only show the first six tabs? In other words, how do I make the seventh tab not visible?
| stackexchange/codereview |
I am using this function in my form to handle text conversion. This is an internal (workplace) web form. It converts
main st./grand ave. -> Main St./Grand Ave.
apt. #a1 -> Apt. #A1
1234 w. main st (childrens park) -> 1234 W. Main St (Childrens Park)
smith-o'rourke -> Smith-O'Rourke
mcbride-macgregor -> McBri... | stackexchange/codereview |
Possible Duplicate:
Android SDK Manager gives “Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml” error when selecting repository
In trying to set up the Android SDK, I can't seem to get connected to the repository. With the proxy set correctly, and https forced to http, I get this erro... | stackexchange/codereview |
I have an aspx page with ajax panel on it and a button.
this is my button :
<asp:Button ID="Button1" runat="server" OnClientClick="javascript:SetValues()" onclick="Button1_Click" Text="Button" />
when I click on the button I call the SetValues() function on the OnClientClick event. this function will change the posi... | stackexchange/codereview |
I have this requirement:
The system will record the length of time the user displayed each page.
While trivial in a rich-client app, I have no idea how people usually go about tracking this.
Edited: By John Hartsock
I have always been curious about this and It seems to me that this could be possible with the use of ... | stackexchange/codereview |
I am having some trouble with flow document. Would like to create multiple paragraphs with a figure at the start surrounded by text. But I don't want any indentation. The funny thing is that the figure is not indented if I have enough text.
Heres some code to put right into kaxaml which illustrates the problem.
<Page x... | stackexchange/codereview |
I am trying to write a reporting system for a project I'm working on that analyzes people's pre and post test scores and does some analysis on it. I have searched to the best of my ability, but cannot find a PHP Class / set of functions that seems to do the analysis I need.
Currently, I am dumping the dataset to a CSV... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.