instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have got a new problem with my Android app. The SocketChannel tells me that it isReadable() but there is nothing to read.
while(running)
{
int readyChannels = 0;
try {
readyChannels = selector.select();
} catch (IOException e) {
e.printStackTrace();
}
... | stackexchange/codereview |
I want a 0 to be considered as an integer and a '0' to be considered as a string, but empty() considers the '0' as a string in the example below,
$var = '0';
// Evaluates to true because $var is empty
if (empty($var)) {
echo '$var is empty';
}
How can I 'make' empty() to take '0's as strings?
| stackexchange/codereview |
I have my data set filled and I allow a user to add a row to the data table. Once they confirm they want to add the row I add the row to the DataSet and proceed to update the Database DataTable.
MyTypedDataSet.MyDataTable newRow = dataSetObject.MyDataTable.NewMyDataTableRow();
newRow.Description = "New Row";
dataSetOb... | stackexchange/codereview |
Do you know any popular Blackberry web app out there.
I've searched in Google but haven't found any (just feel strange).
| stackexchange/codereview |
So, I have a text file that is organized like this
<username>:<fullname>:<usergroups>
I need to create a new user for each line and put them into their groups. I am stuck with trying to set username into a variable to use with useradd. I have tried using cut but it needs a file name, I can't just pass it a line.
Here... | stackexchange/codereview |
I am trying to access the package level variable "FirstRecord". However, I can't do :
dts.variables("FirstRecord").value = Truth
How do I access variables in a DataFlow Script Component?
| stackexchange/codereview |
Reading on both it seems that they both have similar responsibilities of managing the sharing and integrity of resources as well as prioritizing execution but I cannot seem to find how they differ? Can someone clarify this misunderstanding.
Thank You
| stackexchange/codereview |
I am trying to develop a concurrent queue using POSIX threads + C++ with the following semantics:
Some threads may call push(item, timeout) and if the addition of the element does not happen by time timeout it must be rejected.
Some threads may call pop(item, timeout) and again if deletion of the element does not hap... | stackexchange/codereview |
I am using a webservice deployed on SAP Web Application Server to create some charts. While migrating my FLEX application from dev to QA, I also wish to change the address of my target webservices in flex, so that they access webservices from QA. What I did was add the target server address as a URL parameter and add t... | stackexchange/codereview |
I am trying to make an app for the Android that does RMD calculations. The program, however, keeps giving 0.0.
I think that my problem lies in this code:
package com.MinDis.android;
import java.util.*;
import java.text.*;
public class RMD
{
double balance;
double rmd;
long age;
String bdate;
SimpleDateFormat sd... | stackexchange/codereview |
What Visual C++ Runtimes are users likely to have installed?
Update: This question has become more of a "What is the best way to deploy internet based applications, written in C++. That require the Microsoft Visual C++ runtime."
| stackexchange/codereview |
I want to change the offset of the table when the load is finished and that offset depends on the number of cells loaded on the table.
Is it anyway on the SDK to know when a uitableview loading has finished? I see nothing neither on delegate nor on data source protocols.
I can't use the count of the data sources becau... | stackexchange/codereview |
I'm trying to split a string every X amount of characters, and then store each line in an array of structs. However, I'm wondering what would be a short and efficient way of doing it. I thought that maybe I could use sscanf, but not very sure how to. Any help will be appreciated. So far I have:
#include <stdio.h>
#incl... | stackexchange/codereview |
I'm building a commercial app, and we are using some GPL code to help us along.
How can I add #warning or #error statements so that when the code is built for debug, it warns, but when we build for release it throws errors?
I can do:
#warning this code is released under a CCL licensing scheme, see Source_Code_License.r... | stackexchange/codereview |
I have a code similar to this:
<s:VGroup>
<s:HGroup verticalAlign="middle">
<s:Label text="label" />
<s:TextInput id="rmName"/>
</s:HGroup>
<mx:HorizontalList id="imagePreview" width="100%" visible="false"
columnWidth="100" rowCount="1" rowHeight="130" selectable="... | stackexchange/codereview |
i am working on a site to include Multilingual Support.
I can translate strings using Zend_Translate but what about the content??
For example do i have to add multiple records for same product's for each language? Or is there any other way?
I am new to multilingual please help.
Thanks in advance.
--- Addition ---------... | stackexchange/codereview |
I am writing a text file on the BlackBerry simulator using the following code. My data is written successfully to the file but I am not able to find my file. Where can I can find my file on the simulator?
public static void debug() {
OutputStream os = null;
FileConnection fc = null;
try {
String ... | stackexchange/codereview |
I've got an annoying issue with an ajax upload script which is throwing an error in IE7 and 8. I've looked over my code and can't see what the problem could be. The error is as follows:
Message: 'result.filename' is null or not an object
The JSON response is:
responseText =
{"result":{"success":true,"filename":"autech... | stackexchange/codereview |
anyone use/ know of any library or website with code snippets or samples with many of the mundane boilerplate code and/ or functions like data access, data scrubbing, recursive routines...
preferably c# since most of .net in the real world is c#. VB is ok too.
| stackexchange/codereview |
I can't figure out how to fix this:
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect.
File(./codeigniter/logs/log-2010-11-12.php) is not within the allowed path(s):
(/var/www/vhosts/example.com/httpdocs:/tmp) in
/var/www/vhosts/example.com/httpdocs/codeigniter/libraries/Log.php on li... | stackexchange/codereview |
Given a simple Silverlight Grid like this:
<Grid ShowGridLines="True">
<Grid.ColumnDefinitions>
<ColumnDefinition x:Name="MyColumn" Width="2*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
</Grid>
I would like to be able to change the Width of the MyColumn column to something like... | stackexchange/codereview |
The problem is I need to build a web service client from a file I'm been provided. I've stored this file on the local file system and, while I keep the WSDL file in the correct file system folder, everything is fine. When I deploy it to a server or remove the WSDL from the file system folder the proxy can't find the WS... | stackexchange/codereview |
I upload HTML file into DB as byte[] in blob column, and in another part I have to retrieve this file and display in textarea, I'm able to retrieve from DB as bytes and convert it into string, but when display its shows as encrypt format.
This is the struts application:
This is my jsp:
<tr>
<td colspan="3" class="sear... | stackexchange/codereview |
I have a Moose object with an attribute that is hash:
has 'custom_fields' => (
traits => [qw( Hash )],
isa => 'HashRef',
builder => '_build_custom_fields',
handles => {
custom_field => 'accessor',
has_custom_field => 'exists',
custom_fields => 'keys',
... | stackexchange/codereview |
To clarify: The question is really: How do I locate the Mercurial command line client. If the answer is applicable to any executable, so much the better, but I'm really interested in the hg.exe executable file.
If I know the name of an executable, say hg.exe, the Mercurial command line client, and Windows knows where i... | stackexchange/codereview |
I have many classes/methods like this:
template<typename CharT, typename TraitsT = std::char_traits<CharT> >
struct Foo
{
std::basic_string<CharT, TraitsT> getFoo(void) const
{
return "Foo"; // + this->member_var1 + this->member_var2...
}
};
But depending on CharT, I have to use "", L"", u"" or "U" (for ... | stackexchange/codereview |
I apologize for the title, it makes little to no sense.
So on my messages.rb model I am using:
def to_param
"#{id}-#{message.gsub(/\W/, '-').downcase}"
end
to make it so the url wills show up like so:
http://myapp.com/messages/1-this-is-a-message
The problem with this is, when the message is really long, and on li... | stackexchange/codereview |
I have this structure:
<ul>
<li>
<a> link .. </a>
<span> text </span>
<ul>
...
</ul>
</li>
...
I'm adding a click event on both the <span> and <a> elements and I'm trying to select the nested <ul> using $(this).next("ul");
It works for the span, but not for the link. What am I doing wrong ... | stackexchange/codereview |
I am trying to use c# to find an html element however I am struggling with the escape characters. My code below is taking an html and trying to find an element within it however start is not returning the IndexOf. What am I doing wrong?
//html im trying to find <table cellspacing="0" cellpadding="0" class="cbParent" su... | stackexchange/codereview |
I want to use an NSURLConnection in my application to load an XML response that can take sometimes a very long time. Right now I'm using a synchronous ASIHTTPRequest in a background thread with a large timeout. I've had a few issues with ASIHTTP (a topic for another day) so I am looking to switch to using NSURLConnecti... | stackexchange/codereview |
I'm having trouble figuring out how to do a simple Javascript task on fields in a table created with Rails 3.
My table has characteristic rows that the user adds using a form below (which updates the database and reloads the table partial).
The number of columns in the table is based on the number of attributes submit... | stackexchange/codereview |
I'm trying to password protect a submit button on a form I'm building in Microsoft Access 2003. The button, when clicked, will add a new record to my database. The idea of the password protection is that when the user clicks the button, a prompt will appear asking for a password. They can either enter the password and ... | stackexchange/codereview |
I have many libraries that are built using .Net 2.0 and 3.5
I now have a new winforms application that will build against .Net 4.0 but needs to reference the libraries.
Is this possible or is there a way to branch the *.csproj files of the libraries so that they have .Net 4 against them so I can use them in my new appl... | stackexchange/codereview |
In my table view controller, I have a button that when I press, I want it to show the map view, so I just did the following. However, for some reason it's not showing up the view... why is this>
- (void)viewDidLoad {
mapViewController = mapViewController = [[MapViewController alloc] init];
[super viewDidLoad];
... | stackexchange/codereview |
I have the following file which will be loaded through AJAX:
<div id="container">
<div>I need this in AJAX and the following scripts too</div>
<script type="text/javascript">
alert('I am executed');
</script>
<script type="text/javascript" src="some_included_script.js"></script>
</div>
<div>I... | stackexchange/codereview |
I was going to go with Vows and Kyuri, but then I found out about Jasmine. Which do you recommend? Vows or Jasmine? Is there a Cucumber implementation that works with Jasmine?
| stackexchange/codereview |
I know that once you get better at coding you know what variables are and null popping out here and there may not occur. On the way to that state of mind are there any methods to corner your variable that's claiming to be null and verify that it is indeed null, or you just using the wrong code?
Example:
-(IBAction) st... | stackexchange/codereview |
I am using a view model to bind to the list view. Every time I add an item in the view model internal observable collection, I trigger an LastIndex property with the list.Count-1. The list view is bound to this LastIndex proeprty of VM and the listview correctly selects the last item added to the view. Unfortunately, t... | stackexchange/codereview |
I make my interface with glade. Works great.
I write a tiny little main function which calls gtkbuilder and renders everything in the glade file.
Gtk::Main kit(num, opts);
// Load the GtkBuilder file and instantiate its widgets:
Glib::RefPtr<Gtk::Builder> builder = Gtk::Builder::create_from_file("dsg.glade", "mainwindo... | stackexchange/codereview |
I have a datagrid and I want to format ONLY the header to be bold but I can't figure out where to put it
I tried in the top tag:
<sdk:DataGrid AlternatingRowBackground="LightSteelBlue"
AutoGenerateColumns="False" Name="grdSearchResults"
RowBackground="Azure" Margin="12,9,12,12" Grid.Row="3"
Grid.ColumnSp... | stackexchange/codereview |
I am developing an activeX image editor using c# .net 2.0
I use listview control to display thumbnail images.
Normally if you use Shift key for selecting multiple items it selects the whole range between the selected and the clicked item. But when used as activeX it selects items in a rectangular canvas between select... | stackexchange/codereview |
I have an application which starts a service. The service has a timer and pops a notification every 30 seconds. I notice the following behavior:
if the screen is on the notifications are shown ok (even if the app is in background)
if the screen is off (by power button or by itself) the notifications won't show
if the ... | stackexchange/codereview |
I am building a website for a very old database. Because the database is a mix of different standards I've decided that an ORM isn't the right technology and will instead use stored procedures and views to interact with it.
What are good .NET datalayer frameworks for working with old legacy databases? Features I'm inte... | stackexchange/codereview |
I am using GROUP BY to aggregate over an item per month. I would like the SUM of one column and the product of another. I can't find a product operator online or in my book... but is there a series of other operators that will build the product operator?
In a pinch, I can do the product operating in R, which is where t... | stackexchange/codereview |
What is the best way to read a very large file (like a text file having 100 000 names one on each line) into a list (lazily - loading it as needed) in clojure?
Basically I need to do all sorts of string searches on these items (I do it with grep and reg ex in shell scripts now).
I tried adding '( at the beginning and ... | stackexchange/codereview |
EDIT: I have figured out my main issue, but still have one concern. Everything below this paragraph has been solved. I am now able to populate fields on one activity after selecting from a list in the other. The only problem is that after I "quick add", I get stuck with the quick add screen between two versions of the ... | stackexchange/codereview |
I have this html code
<div id = 'status'>
<span class="formw" style="background-color:#FBD9E5;">
some text
</span>
</div>
When the following javascript gets executed
$('status').style.backgroundColor = '#99e83f';
chrome throws the following error:
Uncaught TypeError: Cannot read property 'style' of null
Anybody kno... | stackexchange/codereview |
I have an object MObject that is currently defined like so:
+ (id)objectWithType:(NSString*)type name:(NSString*)name code:(NSString*)code imageName:(NSString*)imageName
{
UIImage *theImage = [[UIImage alloc] imageNamed:imageName];
MObject *newObject = [[[self alloc] init] autorelease];
newObject.type = type;
newOb... | stackexchange/codereview |
I am trying to use dynamic memory for my code in C. I am using struct and I am doing something wrong, but I can't figure out what. The first part is part of my header(.h) file where I define both of my structs.
The second part is part of my C(.c) file where I initialize the struct and use it. I get a seg fault and ddd... | stackexchange/codereview |
Is there a way to make log4net roll over the file on utc time rather than server time? Right now my file stores logs in utc time. But it rolls over, i.e. creates a new file for each day on server time. The server is on Pacific time, so what happens is that yesterdays file has the first 8 hours of logs from todays file.... | stackexchange/codereview |
I am trying to create a View in ASP.NET MVC in which different parts of a view model are modified separately to capture intent.
For example, the modification on users can be done in one of the following ways at a time:
Modify Name,
Modify Email,
Modify Password,
Modify Status
public class UserEditViewModel
{
publ... | stackexchange/codereview |
1) Can i write iPhone applications in pure C++ language, i know that we can use Objective-C++, i just want to know if we can also write it in pure C++ language.
2) while creating MAC OX application inXCode, we have an option to create C/C++ application, will the same options work for me to write iPhone applications?
| stackexchange/codereview |
I am a bit confused right now for my project. I did a bit of googling but was unable to find an answer that would properly explain what I need to know. I posted earlier with a different question, sorry for that but I just got confused more now.
Sorry for the noobish repeated question but reading through various sources... | stackexchange/codereview |
I am writing a program for school that reduces noise in a sound file.
So far i have written this code which I think takes n number of samples before a set one and n after and then averages the two. My problem is that everytime my second for loop runs i get a sampleoutofboundexception. I am guessing this means that it ... | stackexchange/codereview |
I have an external tool that is a tomcat webservice (distributed as a .war) that I would like to use from .net. I have a fairly complex environment and I would like to not have to deal with adding more moving parts (tomcat, java, etc) to the production machines. Is there a way to convert the app to a dll?
| stackexchange/codereview |
I have an enum with some states in it:
enum State
{
A,
B,
C,
D
}
and an object that has a corresponding state:
class MyObject
{
State state;
}
I need to write an algorithm that takes two MyObject instances and does something depending on the particular states of those instances:
void doWork(MyObje... | stackexchange/codereview |
I have an application with two classes, A and B. The class A has inside a reference to class B. The destructors of the classes do some cleanup of resources but they have to be called in the right order, first the destructor of A and then the destructor of B.
What is happening is that somehow the destructor of B is cal... | stackexchange/codereview |
I am trying to use different components in my controller;
I declare the use of Components as following in my controller:
var $components = array('Email');
but when I try to use the Email component in my code, I get the
"Undefined index: email [APP\controllers\cip_surveys_controller.php,
line 33]"
following is the line... | stackexchange/codereview |
I was trying to find out who triggered the failing Hudson build. But i found Started by an SCM change instead of Started by 'UserId'. Now, what does that mean?
| stackexchange/codereview |
What is the behavior of std::sort when used with ints that are equal is it going to keep them in the same order or just do some unpredictable stuff?
| stackexchange/codereview |
I'm getting a bunch of vectors with datapoints for a fixed set of values, in the example below you see an example of a vector with a value per time point
1D:2
2D:
7D:5
1M:6
6M:6.5
But alas not for all the timepoints is a value available. All vectors are stored in a database and with a trigger we calcuate the missing v... | stackexchange/codereview |
Basically what I am trying to accomplish is I want a canvas I can pass bitmaps to, to be displayed on the screen with the rest of my view objects (buttons, textviews, etc).
I created a class for the canvas view like so (it doesn't do much yet):
public class Foo extends View {
public Foo(Context context) {
... | stackexchange/codereview |
I have recently finished up learning PHP/MySQL,css3,xhtml and Photoshop.And now i want to create themes for WordPress.So please suggest me some ideas...
| stackexchange/codereview |
I just posted this question link text about 5 minutes ago and I forgot to mention that the format was like this
"$2,090.99 "
I need the final value like
"209099"
Striping the final extra space and getting rid of any other punctuation in the money value with php so i can store into a mysql decimal 10,2
| stackexchange/codereview |
I'm working on my first WP7 App and this problem causes me some headache.
I've a ListBox defined like this
<ListBox Grid.Row="1" ItemsSource="{Binding MyItemList}" SelectedItem="{Binding MySelectedItem}">
<ListBox.ItemTemplate>
<DataTemplate >
<StackPanel>
<Te... | stackexchange/codereview |
Background
Multi threaded Core Data application
NSTreeController and NSOutlineView with bindings
Creates children objects in an NSOperation on a background context
Merges into main context using mergeChangesFromContextDidSaveNotification
Problem
If I queue 20 children creation operations up, once the merges have c... | stackexchange/codereview |
I am developing a Facebook canvas application using the iframe method, because of existing infrastructure the session data is set in a cookie between each page request (including jQuery JSON requests) this all works fine in Safari, Firefox, Chrome and IE( with the P3P header being set) but not in MobileSafari on the iP... | stackexchange/codereview |
This sounds trivial but I'm noticing some weirdness. I've wired up a handler for the Value Changed event of a UISwitch. What I would expect is that each time the handler is called the value of the switch would change. But that's actually not always the case. If you press the switch rapidly on/off the handler can get ca... | stackexchange/codereview |
I am wanting to get into this SVN stuff, so i got a mac server and ran the following commands, as per a tutorial i am reading
cd /usr/local/repos
svnadmin create mynewwebsite
cd /tmp
svn co file:///usr/local/repos/mynewwebsite
cd mynewwebsite
svn mkdir tags branches trunk
svn ci -m "initial structure"
That works perfe... | stackexchange/codereview |
<telerik:RadEditor ID="Editor1" runat="server">
<CssFiles>
<telerik:EditorCssFile value="../Skins/CustomSkin/Editor.CustomSkin.css"/>
<telerik:EditorCssFile value="../Skins/CustomSkin/Editor.CustomSkin.css"/>
<telerik:EditorCssFile value="../Skins/CustomSkin/Editor.CustomSkin.css"/>
</CssFiles>
</telerik:RadEdito... | stackexchange/codereview |
I want to change udpclient receivebuffersize in order to prevent buffer overflow when receiving udp packets. is it possible to change it in c#. The actual property is UdpClient.Client.ReceiveBufferSize. Do i have to use other method?
Thanks.
| stackexchange/codereview |
CSS
* {margin:0;padding:0}
/* General styles */
#gallery {
padding: 2em 0;
margin: 0 auto;
width: 840px;
font: small Verdana, sans-serif;
}
#gallery #photo-grid {
width: 100%;
margin: 0;
padding: 1em 0;
list-style: none;
}
#gallery #photo-grid li {
float: left;
margin: 0 10px 10px 0;
... | stackexchange/codereview |
I've searched hi and low for a way to get FlexLib's HAccordion to work in Flex 4.1. Has anyone been able to get it to work? I hear it worked in Flex 4.0 using embedded fonts, but the code provided in various posts claiming to have it working weren't successful in 4.1.
Thanks!
| stackexchange/codereview |
I dont want to go through the data migration with an existing iphone app. Is is possible to have the ipad version use a different xcdatamodel file than the iphone version?
I search the project files where it reference myapp.xcdatamodel and cant find where it gets hooked up.
any suggestions?
Where is the appdelegate doe... | stackexchange/codereview |
BACKGROUND:
I have a Rails app where my home page is products/index.
I'm using the following code in my .htaccess file to redirect requests from products/ to root.
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*products\ HTTP/
RewriteRule ^(.*)products /$1 [R=301,L]
This is working great. Requests to /products are redirec... | stackexchange/codereview |
how do I automatically fill the mysql database query with php code?
database as follows:
CREATE TABLE IF NOT EXISTS `scrore_table` (
`scores_id` int(11) NOT NULL auto_increment,
`scores_title` varchar(32) collate utf8_bin NOT NULL default '',
`scores` varchar(15) collate utf8_bin NOT NULL default '',
`decimal_p... | stackexchange/codereview |
I'm working on a custom window to add more styling to my application.
I followed some tutorials to enable basic window behaviors :
Closing
Maximizing
Minimizing
Moving
Resizing
These are all okay.
I would like what is I believe a Windows 7 functionnality :
When a window is maximized, I can still drag it to another s... | stackexchange/codereview |
Can anonymous delegate have return value as non void type?
| stackexchange/codereview |
the number entered in the textbox is stored as integer,suppose if you enter a number like 0095 on exiting textbox it should displayed "95",also another textbox takes float,if i enter 1.567 it should be displayed as"1.5"...how to do that in C#?
| stackexchange/codereview |
I have a legacy application written in .Net. No sources available. It uses vb scripting to extend it inner logic via events handling. So it's a mix of com and .net.
I used SpyUI app and observed that UI is written with Windows Forms. Controls are titled in .Net style & it looks like windows forms one (vc++ and vb UI lo... | stackexchange/codereview |
I'm reading:
22:5412:99:00 (...)
From a text file using (ch=fgetc(fp)) != EOF because I don't have only those numbers to read.
Identifying a number is easy with if(ch >= 48 && ch <= 57) but the thing is I want to put those numbers 22, 5412 into an array of integers. However when I read a char it reads part of number s... | stackexchange/codereview |
I'm working on a robotics research project where I need to serialize 2D matrices of 3D points: basically each pixel is a 3-vector of floats. These pixels are saved in an OpenCV matrix, and they need to be sent over inter-process communication and saved into files to be processed on multiple computers. I'd like to seria... | stackexchange/codereview |
I have a video decoder filter that lives inside a graph with VMR9 or EVR as the video renderer.
VMR9 and EVR use Direct3D to do the actual rendering. With EVR, I can access the D3D device with relative ease (I just ask for it using IMFGetService::GetService).
However, VMR9 does not expose IMFGetService, and, more gene... | stackexchange/codereview |
I am having problem mocking an object to test a descriptor.
This is the code of the descriptor:
class Text(object):
def __init__(self, default_value=u'', validators=[]):
self.validators = validators
self._value = default_value
def __set__(self, instance, value):
for validator in self.v... | stackexchange/codereview |
I have a textarea and i am using a plugin for that textarea. In that plugin there is a function getCode() which will return the value of the textarea. That function will be called like - textarea_id.getCode();
I am using ASP.NET in which i have declared the textarea (runat=server), and the textarea'a id i can get but w... | stackexchange/codereview |
Related to: Is there a way to obtain the bytecode for a class at runtime?
I'm adding durability to Clojure, and I'm finally at the point where I'm ready to add functions. In Clojure, functions are byte compiled into classes with invoke methods (among others). In this way, functions are first class. To make these du... | stackexchange/codereview |
Let's say you have an "Author" object, that has several books, and you are wanting to build some methods in the model. Your basic setup looks something like this:
class Author
def book_count(fiction = nil, genre = nil, published = nil)
end
end
For each argument, you have a couple of ways you want to operate:
fict... | stackexchange/codereview |
Is it possible to validate input depending on whether it only contains a combination of letters, numbers and hyphens (where a hyphen is not repeated twice-in-a-row and does not begins/ends the string)?
Thanks to Validate username as alphanumeric with underscores
I know that the following validates a string based on al... | stackexchange/codereview |
I can't find quite the answer I'm looking for anywhere. I have a plugin that generates barcodes. All you do is tell it what element to render the barcode, and it spits it out. For example:
$("#barcode-target").barcode("Output Goes Here", "code39",{barWidth:2, barHeight:30});
will put a barcode that says "Output Go... | stackexchange/codereview |
Is there any way to make fields required in an Amazon Mechanical Turk HIT? I get some blank responses to the textboxes or radiobuttons in my HTML form and the Amazon's documentation doesn't seem to provide any mechanism for validation.
| stackexchange/codereview |
This is an offshoot from a previous question, is this bad practice (using the property to set iVars)?
// Designated initializer 001
- (id)initWithName:(NSString *)newName andType:(NSString *)newType {
self = [super init];
if(self) {
[self setName:newName];
[self setType:newType];
}
retur... | stackexchange/codereview |
I'm running WP 3.0.1 on a shared host using PHP5. I'm having issues uploading files that are a little larger via the media uploader in the admin section of WP.
Every time I try to upload a file thats over a few megabytes, it uploads, says its crunching, then gives me a big red "HTTP Error." - nothing more.
This only ha... | stackexchange/codereview |
I have a table "exercise_results". People put in their results at the beginning and then two months later put in their results to see how much they improved. Their beginning set has the exercise_type_id of "1" and the end set has the exercise_type_id of "2".
I need a way to display this out into a HTML table that looks... | stackexchange/codereview |
I'm trying to bring external content into our SharePoint environment. We are running SP 2010. The data I want to bring in exists in Sql Server. What I'm struggling to do is map the logged in SharePoint user to an underlying sql user.
In SharePoint I have created a new Target Application in the Secure Store Serivce... | stackexchange/codereview |
I have an array containing a "Variable" amount of results/entries.
I use foreach as normal to echo the array results.
Problem: I want to wrap every 5 results from the array in Unordered list.
I do not know the total number of results since it's variable. So for example if it contains 18 items. It should display 4 ULs, ... | stackexchange/codereview |
I have some nice graphics done using Raphaël (a JavaScript library), and I want to add a feature to save it as a PNG file.
This is simple on every browser except Internet Explorer, because on non-Internet Explorer browsers I get SVG as an output from Raphaël, and then I can convert it to canvas (using cansvg library) a... | stackexchange/codereview |
I have a button on a pge thats fetches json data from a php page,
the data seems to arrive ok but i have gone through hundreds of examples and i just cant seem to reference the returned data, here is my script:
EDITED SCRIPT from previous comments
$('#geo_batch').click(function (){
var ajax_load = "<label>... | stackexchange/codereview |
I need to order a queries results by the name which is a varchar(50) from the bundles table.
The table contains the following values for name:
# 'Package 1', 'Package 2', 'Package 3', 'Package 10' etc.
SELECT name FROM bundles ORDER BY name ASC;
This query returns the following order:
Package 1
Package 10
Package 11
P... | stackexchange/codereview |
I'm wondering if there is a way to automagically fire off an Application Start for a web site/application whenever the Application Pool for that site is recycled?
Are there any canned solutions for this problem?
I would really like to avoid having one of my end users have to go through the application start of the site... | stackexchange/codereview |
One of the great joys of windows programming is remembering to put 'wb' or 'rb' or ios::binary in all the file open calls so that Windows doesn't merrily convert all your 0x13s.
I just had to convert a bunch of nicely standard code to use Createfile() to get a certain flag - and it occurred to me that there is no way t... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.