instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
We're developing an educational multiplayer game for kids and want to allow players to chat with each other using a whitelist system. When using whitelist chat, players will be able to type only words which appear in the whitelist.
We're aware of the limitations of whitelists in general, but we think a whitelist chat s... | stackexchange/codereview |
I've a massive problem creating a view in mySQL:
Table A in database DB1:
CREATE TABLE `a` (
`id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'internal ID',
`account` VARCHAR(10) NOT NULL DEFAULT '0',
`filename` VARCHAR(50) NOT NULL,
`filesize` BIGINT(15) NOT NULL DEFAULT '0'
PRIMARY KEY (`id`)... | stackexchange/codereview |
I created the instance of the UILabel and added it as the subView of the contentView which is embedded in the table view cell.
Then I created web view (from UIWebView) and added it as the subView on the previously created label. (web view is smaller than label)
And then scrolling over the label,
I found that if touch o... | stackexchange/codereview |
I'm using this script to auto populate my date field on a form:
function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
}
function zp(n){
return n<10?("0"+n):n;
}
function insertDate(t,format){
var now=new Date();
var DD=zp(now.getDate());
var MM=zp(now.getMonth()+1);
var YYYY=now... | stackexchange/codereview |
I have a build script calling xcodebuild. that works, but I want to also run the project from bash as well. Effectively I want to negate the need to click "Build and Run" button from the GUI. I'm looking at xcrun but it's not too obvious to me what to do
| stackexchange/codereview |
I know this has been asked time and again by people all over the net, but I can't for the life of me figure out why my solution isn't working.
I have a bunch of groups, and in each group's footer I have a running total which acts as a sub-total for that group. At the very bottom of the page, I have a running total whi... | stackexchange/codereview |
I have some form, which uploads file in an iframe. I'd like to hold it's submission until I'll check if it's valid with ajax. How can I do this ? My code pauses the submission and returns validation result (currently just a dummy function which returns 'result': 'true') but then the 'submit' action is not performed. Al... | stackexchange/codereview |
I have a perl script that converts strings to different encodings, like base64, ASCII or hex (both ways). Now I am writing ajax front end for it, and my question is; if I want to automate the detection of the encoding of the string submitted, is it more efficient to perform regex search on the string submitted with jav... | stackexchange/codereview |
Yes i read the article on sequence points. However i could not understand why ++i = 2 would invoke undefined behavior? The final value of i would be 2 regardless of anything, so how come the expression is ub?
code snippet
int main()
{
int i =0;
++i=2;
return 0;
}
Sorry my english is not very good.
| stackexchange/codereview |
I have some question about jQuery div animation. I want click the link, then div1 and div4 change the position. div2 and div3 change the position. The array position is div1 div2 in the first line, div3 div4 in the second line. How to write correctly?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http... | stackexchange/codereview |
There is tabular data that is being stored in the database as a delimited data. Not ideal, I know, but that's how the system was designed. I need to pull the data out and parse it into some kind of structure.
In the old days, I'd use a DataTable and call it good. Now, however, that just feels dirty. What is a bette... | stackexchange/codereview |
I have an xml structure like this:
<node1>
<node2 name="">
</node2>
<node2 name="">
</node2>
<node2 name="">
</node2>
....
</node1>
How can i write an xquery to find if there is a node2 that has name=a
Please help, thank you!
I tried the following but neither seemed to work. What is wrong with these queries?
select tb... | stackexchange/codereview |
I need to json serialize loads of data in django, and I need to use both django.utils.simplejson and django.core.serializers. The problem is that I can't mix them. I need something like this:
simplejson.dumps({
'money': money.quantity,
'items_left': item.quantity
'transport': serializers.serialize([transpor... | stackexchange/codereview |
Background:
I have an application which plays video files from disc. When I play these files the first time the file reading sometimes lags. However, the second time it is played there is never any lag, I suspect this is because the file is put into the windows file cache the first time it is played.
The requirements ... | stackexchange/codereview |
I have a TreeViewItem. I'd like to get parent node of this item if any.
However TreeViewItem.ParentTreeViewItem property is internal, and thus not accessible.
There is no reason to hide this property from developers, however, someone very smart decided that way.
How do I proceed? Is there any workarounds (reflection on... | stackexchange/codereview |
While compiling a Visual Studio 2010 program, I included the python2.5 directory. In the file _types.h, there is the code:
#ifndef __off64_t_defined
__extension__ typedef long long _off64_t;
#endif
with the error on extension:
this declaration has no storage class or type specifier.
What is wrong?
| stackexchange/codereview |
I want to handle the image uploads with a multi uploader (uploadify or other plugins will do), but I couldn't make it work with symfony.
I tried the swfuploader plugin, but it didn't work, there was an error with javascript.
How can I handle an ajax upload with symfony?
Thanks
| stackexchange/codereview |
I'd like to post a Link to Facebook using the Graph API, but I'd like to be able to avoid a thumbnail image. Facebook's web interface has a no-thumbail checkbox while posting an image; I'd like to simulate this from my own application.
I've tried specifying an empty string for both the source and picture arguments, bu... | stackexchange/codereview |
I am trying to extract the content from a gpx file. The problem is when I used getChildren("wpt") to get the content of wpt tag, I got nothing returned. And when I used getChildren() method, I got and several returned. And when I removed all the contents in the only leave it as , everything works fine.
The content o... | stackexchange/codereview |
The following code -scheduler.vb- simulate a Windows Service Using ASP.NET to Run Scheduled Jobs. More info here: http://beckelman.net/post/2008/09/20/Simulate-a-Windows-Service-Using-ASPNET-to-Run-Scheduled-Jobs.aspx
Howerver when I try to run the class in my global.asax i get the following error (highlighted on RunSc... | stackexchange/codereview |
Unexpected behavior:
I am encountering strange behavior of Oracle sequences with 11g (works with 10g):
CREATE SEQUENCE test_sequence START WITH 1;
CREATE TABLE test_table ( val INT );
INSERT INTO test_table VALUES ( test_sequence.NEXTVAL );
Even though the sequence starts with 1, the first value inserted is 2:
SELEC... | stackexchange/codereview |
what view is this in android, I have seen this in iphone can any one help
the one shown in bottom near footer
| stackexchange/codereview |
I am trying to get data from a csv file with the following data.
Station code;Priority vehicle;DateBegin;DateEnd
01;y;20100214;20100214
02;n;20100214;20100214
03;;20100214;20100214
Now I want a value 'n' in the table when no data is provided for the column 'Priority vehicle' in csv file.
I am writing the query as
BUL... | stackexchange/codereview |
I recently updated my Ruby version to 1.9.2 through RVM. (And, is it normal that I have to use the command rvm use 1.9.2 EVERY TIME when starting the terminal?).
I deleted some Rails files I shouldn't have, so I reinstalled Rails. However, I still get this error when trying to generate controllers:
Could not find ma... | stackexchange/codereview |
i want to know how the web-sites are allowing new user to log on to their web-site using gmail,fb or yahoo account.Does these sites gives their logging API open to all to use by anyone .
1.Do they have some collaboration with these sites to access their database ??
2.Does these sites ask for some money to access the in... | stackexchange/codereview |
I have to do this editor (BPMN editor) and I'm stuck.I have this button in the Form with an image on it and I want this: when I click the button and then I press click on my canvas (the draw area) to put the image from the button there.
| stackexchange/codereview |
Consider the following table:
CREATE TABLE Participations
(
roster_id INTEGER NOT NULL,
round_id INTEGER NOT NULL,
ordinal_nbr SMALLINT NOT NULL ,
was_withdrawn BOOLEAN NOT NULL,
PRIMARY KEY (roster_id, round_id, ordinal_nbr),
CONSTRAINT participations_rosters_fk FOREIGN KEY (roster_id) REFERENCES Rosters (... | stackexchange/codereview |
How to get Image size in Objective-C.
I loaded one image using imagePicker, I want know the size of that image. (w*h)
is it possible?
Thanks & regards...
| stackexchange/codereview |
I'm using C++ for hardware-based model design with SystemC. SystemC as a C++ extension introduces specific datatypes useful for signal and byte descriptions.
How can I access the first bits of a datatype in general, like:
sc_bv<16> R0;
or access the first four bits of tmp.
int my_array[42];
int tmp = my_array[1];
sc_... | stackexchange/codereview |
I have searched Google, Stack Overflow and my Python users guide and have not found a simple, workable answer for the question.
I created a file c:\goat.txt on a Windows 7 x64 machine and am attempting to print "test" to the file. I have tried the following based on examples provided on StackOverflow:
At this point I d... | stackexchange/codereview |
I am using Apache + mod-wsgi.
In my httpd.conf, I am having the following additional lines at the end of file.
LoadModule wsgi_module modules/mod_wsgi-win32-ap22py27-3.3.so
WSGIScriptAlias / "C:/Projects/Folder/web/"
<Directory "C:/Projects/Folder/web">
AllowOverride None
Options None
Order deny,allow
Allow from all
</... | stackexchange/codereview |
I am not able to get the correct Time duration.So can anyone please help me in finding the solution
//code
public static String getDateDifference(java.util.Date start, java.util.Date end) {
logger.info("Enter getDateDifference ");
Calendar startCal = Calendar.getInstance();
startCal.setTime(start);
Cal... | stackexchange/codereview |
I would like to implement a search facility in my iPhone application. The functionality is similar to iBooks search where the results are updated row by row and become visible. Also one row is used to view the search progress.
Any help is appreciated.
| stackexchange/codereview |
This is the code:
Html of the form:
<div id="contact_form">
<h1>Contact us</h1>
<p>Please use the form below to send us a message.</p>
<form method="post" onsubmit="return sendContact();" action="sendContact.asp">
<p><label for="name" id="lname">Full name:</label>
<input type="text" class="text" name="name" id="name" o... | stackexchange/codereview |
I am into designing a new iPhone application. My application is will contain almost all iPhone SDK concepts including core data, server integration, location services. Is there any design decisions I should keep in mind?
My plan was to go by designing a controller class for each iPhone app screen and also any utility c... | stackexchange/codereview |
I'd like to extract the designator and ops from the string designator: op1 op2, in which there could be 0 or more ops and multiple spaces are allowed. I used the following regular expression in Python
import re
match = re.match(r"^(\w+):(\s+(\w+))*", "des1: op1 op2")
The problems is that only des1 and op2 is found i... | stackexchange/codereview |
Simple (not for me yet I guess) LINQ: I have a List of arrays, and I want to get a collection containing the average of each column. Something like:
var myCollection = new List<double[]>();
myCollection.Add(new []{1,2,3,4,5});
myCollection.Add(new []{3,4,5,6,7});
// Your answer --> {2,3,4,5,6}
| stackexchange/codereview |
I am trying to find a way to make some way for users to adjust their images for my app. I tried default "Move and Scale" but it doesn't seem to support rotation.
what I want to do is making users to move, scale, and rotate the picture to fit in the overlay/silhouette. What should I do?
| stackexchange/codereview |
i am trying to create an sample apps using GWT and my code is below
public void onModuleLoad() {
VerticalPanel panel = new VerticalPanel();
MultiWordSuggestOracle oracle = new MultiWordSuggestOracle();
database data=new database();
Statement s1;
try {
s1 = data.conn.createStatement();
s1... | stackexchange/codereview |
I am looking for a regular expression using preg_match_all in PHP 5 that would allow me to split a string by commas, so long as the commas do not exist inside single quotes, allowing for escaped single quotes. Example data would be:
(some_array, 'some, string goes here','another_string','this string may contain "double... | stackexchange/codereview |
You have an error in your SQL syntax;
check the manual that corresponds to
your MySQL server version for the
right syntax to use near '?,?' at line
1
I never had an issue with the code before so I am guessing it must have something to do with the MySQL version (MySQL 4.1.25 & PHP 5).
Here is the code I am u... | stackexchange/codereview |
Javascript seems to take a few liberties when it comes to its built-in types and objects.
To get at the functions inside the Array type you can do this:
> Array().slice
function slice() {
[native code]
}
So here Array looks like a standard function that is being used as a constructor. Except... slice is not ... | stackexchange/codereview |
I have a simple ComboBox that has some simple values. I'm trying to do 2 way binding with an enum property on my model.
<ComboBox d:LayoutOverrides="Height" Grid.Column="1" SelectedItem="{Binding SortType, Converter={StaticResource sortSelect}, Mode=TwoWay}">
<ListBoxItem Content="Ascending" Tag="Ascending"/>
... | stackexchange/codereview |
To get Facebook integration in our Nokia Symbian application we intend to use this library:
http://gitorious.org/qfacebookconnect
It is not otherwise working completely correctly, but it's a good start.
I have my project (.pro and .cpp files, using Qt Creator), which works fine in the emulator. I included this libqface... | stackexchange/codereview |
Any ideas on how to get the Default location of the Application Folder, to depend on the Build configuration? (Debug vs Release vs Release_Special)
so if it's on release it will default to c:\Program Files\MyApp and if its Release_Special it will be C:\MyApp\
Appreciate the help!
| stackexchange/codereview |
Hi I need to display in DropDownList a list of "Users" belonging a specific ROLE.
This is my code:
// Find DropDownList
DropDownList myUserList = (DropDownList)uxInsertAuthorInput.FindControl("uxUserListSelector");
// Bind data to DropDownList
myUserList.DataSource = Roles.GetUsersInRole... | stackexchange/codereview |
Everytime i use .remove() method on java.util.List i get error UnsupportedOperationException. It makes me crazy. Casting to ArrayList not helps. How to do that ?
@Entity
@Table(name = "products")
public class Product extends AbstractEntity {
private List<Image> images;
public void removeImage(int index) {
... | stackexchange/codereview |
I have a form in my application and I want to do some processing when my form has been
Fully loaded but I have no event or something which I can bind to when load is finished.
Does anyone has any idea, how can I do this?
| stackexchange/codereview |
Microsoft .NET CLR is an implementation of CLI standard. However, the last publication of CLI standard was made in 2006, but the latest release of CLR was produced in 2010. I understand that work is now in progress on latest version of the CLI specification.
Is it correct to understand that current public CLI specifica... | stackexchange/codereview |
I'm trying to get the column names using the code below but it returns a weird stuff... It returns a lot of "properties" (including the column name), all I want is a list of the columns names in the resultset. Am I doing something wrong ?
reader = cmd.ExecuteReader(CommandBehavior.SchemaOnly);
DataTable schema = reader... | stackexchange/codereview |
I'm doing some maintenance on some software originally built by my predecessor at the company (who has since moved on to greener pastures). I'm currently rolling out a new version of the software.
At this company, the installation procedure is basically to just shove the /bin/Release directory out into our automated pr... | stackexchange/codereview |
I've got a project that used to work in VS 2008 that has a custom build tool for each file (runs a batch file) that used to work as expected.
On upgrading to VS 2010 when you build the project it only builds one of the source files, then stops without errors.
If I compile each file individually they work fine. If I re... | stackexchange/codereview |
I ran into an issue that can only be explained with my fundamental lack of understanding of Spring's IoC container facilities and context setup, so I would ask for clarification regarding this.
Just for reference, an application I am maintaing has the following stack of technologies:
Java 1.6
Spring 2.5.6
RichFaces 3.... | stackexchange/codereview |
How to modify the following stored procedure if we want in the inserted records the Col3 contain a constant string 'Foo'?
INSERT Table2
(Col1,
Col2,
Col3)
SELECT T1Col1,
T1Col2
FROM Table1
| stackexchange/codereview |
I am working on a Java program that has bunch of classes consisting of dialog boxes, JFrames, etc.
Can someone guide me where I can learn how to transform it to an 'applet' kind of. ( I don't even know if applet is the right word)
Like for example, can it be accessible through the internet browser. If I somehow make a... | stackexchange/codereview |
Ive written and compiled a server program that is meant to echo onto the the screen whatever the client application types in, the code is as below.
/*Server */
#define _WIN32_WINNT 0x501
#include <iostream>
#include <windows.h>
#include <winsock2.h>
#include <ws2tcpip.h>
using namespace std;
const int winsock_version... | stackexchange/codereview |
I have some problems during install module gallery2 for my local site with drupal.
The warning in step 2 (follow this picture): http://i108.photobucket.com/albums/n33/ligthing_illuminate/1-2.png
make the install doesn't complete in step 8.
So, anyone can help me?
How to make the translation support to be successful?
T... | stackexchange/codereview |
I have an application that ask's password while clicking the application icon(ie. while entering the application). Then i have set UiApplication.getUiApplication().requestBackground(); where application is running in background.
Now if am again enter into the application means it have ask password.
Help me pl.
With r... | stackexchange/codereview |
We've been running for years with BoundsChecker for Visual C++ 6 (I think it was BoundsChecker 5 or 6, too). We've upgaded to VS2008 (finally!), and now need a follow-up for the outdated BoundsChecker.
How's the landscape?
What tools are out there?
Any new kids in town?
Any new ideas dealing with the problems we used m... | stackexchange/codereview |
A Thread object has a Name property but I cannot seem to locate the same for a Task.
| stackexchange/codereview |
I will give you a quick scenario, so that my question makes more sense.
Say that I use NSInvocationOperation to create a new thread, which will run indefinitely in the background.
Now, this thread will send messages every so often back to the main thread.
So, my question is, what is the best way to send these messages ... | stackexchange/codereview |
I want to display a tree like structure in my dropdown in JSF. Basically the select items are in a hierarchy and I would like that to be evident in the dropdown.
Is it possible ?
| stackexchange/codereview |
i am learning struts2 from the book struts-2 in action. they say that for transferring data onto objects model-driven actions is preferred over object-backed beans properties.
can some1 explain me why they say so?
does the reason have something to do with the need to mention reference name in the view layer
| stackexchange/codereview |
I am trying to do something like this:
QString string;
// do things...
std::cout << string << std::endl;
but the code doesn't compile.
How to output the content of qstring into the console (e.g. for debugging purposes or other reasons)? How to convert QString to std::string?
| stackexchange/codereview |
I have a classifieds website, and when users first enter the website a form is submitted on body onload event:
The form is submitted and displays its results in an iframe on the same page.
The problem is that I dont want the submit_form() function to be called everytime the user clicks back or forward in the browser, ... | stackexchange/codereview |
I've got an Android App Widget that when clicked uses a PendingIntent to start an Activity, which the main Application associated with the App Widget also uses. After the user is done with the Activity started from the App Widget, and presses the back button, the user is taken to the Activity on the top of the MAIN ap... | stackexchange/codereview |
I need to create a virtual tour tool for iOS. It's an archaeological application: the user could open it when he's inside an historic building or when he's visiting an archaeological dig. No need of doom-like subjective point of view: just a skybox. The application will have a list of points of interest (POIs). Every P... | stackexchange/codereview |
Is it the case with WPF since it's written from scratch, thus doesn't need to be like WinForms?
Just like C# Math uses Double by default, right?
I wanted to ask this after seeing classes like LinearDoubleKeyFrame, etc.
| stackexchange/codereview |
I have a FileUploader class that can optionally be given a zip file which it extracts to a temporary location and returns the file paths.
From what I understood, implementing the IDisposable interface on the FileUploader class and using the Dispose method to remove all temp files would make the class clean itself up as... | stackexchange/codereview |
Rails 2.3.*, mod_passenger 2.2.* and Apache 2.2.*. Is it worth installing mod_pagespeed or does Rails create all cache headers, etc. properly so that mod_pagespeed is unnecessary?
| stackexchange/codereview |
I have a servlet LogMeOut.java where I am writing the following code:
HttpSession session = request.getSession(false);
if (session != null){
//statements to delete my cookies //
session.invalidate();
}
My problem is when I am calling the LogMeOut for the first time from a jsp, it gives a request object with no s... | stackexchange/codereview |
I wanted to open an popup and get notify if the user closes the Popup or leaves it through an external link.
popup = window.open(
"http://ec.europa.eu/yourvoice/ipm/forms/dispatch?form=tobacco6",
'',
'status=no,resizable=no,scrollbars=no,toolbar=no,menubar=no,location=no,copyhistory=no'
);
To check if the user ... | stackexchange/codereview |
If I have multiple files in tabs on VIM and I edit few of them. How to save them with one command?
| stackexchange/codereview |
Im trying to do the backing up of my application's data into the Google Servers..
For doing this I've implemented a BackupAgent in my code and I included this in the Android Manifest file and "Meta-data" ( Got after registered my Application's package with the Android Backup Service)
When I run the application to do t... | stackexchange/codereview |
updated
<?page title="example"?>
<window id="music" apply="com.main">
<combobox id="combo" autodrop="true" onChanging="music.suggest()"/>
</window>
java
public class main extends GenericComposer{
/**
*
*/
private static final long serialVersionUID = 1L;
Combobox combo;
public void suggest() {
combo.get... | stackexchange/codereview |
I am not familiar with C++ as I am a C# developer.
In my project, I need to delete all folders of one week before. In C++, how can I get the list of the folders of one week before based on the current system date time?
I am working on Eclipse IDE running on Ubuntu 10.10.
If you could provide some sample of code, that ... | stackexchange/codereview |
I'm having problems with creating mySQL table within Java program. I constantly get Can't create table... errno: 150
Here is my code:
String URL="jdbc:mysql://192.168.1.128:3306";
Connection con=(Connection) DriverManager.getConnection(URL,user,pass);
Statement stmt=(Statement) con.createS... | stackexchange/codereview |
I want to create view which will show list of products as table. And in the first column of that table will be some buttons(Remove and edit). I want to show the informations details for users to modify selected product when edit button is clicked. Does anybody has a solution ? Actually I've tried some, but I'm looking ... | stackexchange/codereview |
I have a single site but it is marketed regionally with slightly different brand names. I have a xyz-example.com for asia, xyz.com for europe, xyz-supercompany.com for africa etc.
I have both english and french versions of the site, each site is identical apart from the branding.
I know I should use canonical url to p... | stackexchange/codereview |
Can I use a MapReduce framework to create an index and somehow add it to a distributed Solr?
I have a burst of information (logfiles and documents) that will be transported over the internet and stored in my datacenter (or Amazon). It needs to be parsed, indexed, and finally searchable by our replicated Solr installat... | stackexchange/codereview |
I have a multiline textbox that I wish to convert to a string,
I found this
string textBoxValue = textBox1.Text.Replace(Environment.NewLine,"TOKEN");
But dont understand TOKEN what is TOKEN? whitespace or /n newline ?
If this is the incorrect answer then Please let me know of the correct way of doing this
Thanks
| stackexchange/codereview |
I recently switched from Eclipse to Vim. I'm loving it. There are a few hangups I'm working on, but one of the ones I'm having lots of trouble with is the PHP doc comments. In eclipse I could type:
/** [enter]
and the next line would auto fill with
*
So I'd have:
/**
* [comment goes here]
I'm wondering if there's... | stackexchange/codereview |
So I wanted to make my UIWebview respon to touch events. I have read several topics about this. I created a Subclass of UIWebView, added it so my UIViewController and linked it via IB.
In my Subclass, i overrode touches ended and called [super touchedEnded]. didnt help.
I overrode hittest, but it doesnt call super eith... | stackexchange/codereview |
I want to try to get nice buttons that will work similar to tabs down the bottom of my app, but I am wondering if there are buttons like this built in:
It would make navigation better, and developing a lot easier & faster if they are.
| stackexchange/codereview |
I am having a lot of trouble while syncing my Flash Builder Actionscript project with Subversion. I have read that the output folders bin, bin-debug and html-template should not be checked in to the repository. The project bin folder contains a lot of XML files and assets that other project members needs to access. The... | stackexchange/codereview |
I'm opened opening a process (with C++/Windows) using
if( CreateProcessA( NULL, // No module name (use command line)
(LPSTR)path, //argv[1], // Command line
NULL, // Process handle not inheritable
NULL, // Thread handle not inheritable
FALSE, // Set handle inherita... | stackexchange/codereview |
<h:form id="userSettingsForm">
<rich:messages>
<f:facet name="errorMarker">
<h:graphicImage value="/img/msgerror.png" />
</f:facet>
</rich:messages>
<h:outputText value="Description:" />
<h:inputText label="Des... | stackexchange/codereview |
Am using wamp server,where in my project I need to change the userid and password of mysql.I want to change it to username:-"root" password:-"root123".How it is possible?
| stackexchange/codereview |
I don't know what to think here...
We have a component that runs as a service. It runs perfectly well on my local machine, but on some other machine (on both machine RAM's are equal to 2GB) it starts to generate bad_alloc exceptions on the second and consecutive days. The thing is that the memory usage of the process s... | stackexchange/codereview |
It totaly makes sense to me to use it here.
What would be the alternative? How can i generaly avoid to use them and most of all why is it bad according to jsLint to make use of globals.
(function($){
$(function(){
$body = $('body'); //this is the BAD Global
$.each(somearray ,function(){ $body.dosomething() })... | stackexchange/codereview |
(This works for other people in my team, so it is likely to be something to do with the setup of my machine.)
I am using the NUnit GUI test runner. When I use File/Open Project to load the test's assembly, I get an error.
The project was built with Visual Studio 2005 and Visual Studio’s About box gives the .NET framewo... | stackexchange/codereview |
Whats the best way to concatenate results in MongoDB? In particular the PHP driver? Do I need to use mapReduce?
In mySQL I would do something like this: SELECT CONCAT(fname,' ',lname) as name FROM users but I can't seem to find a simple way to do this in mongo.
| stackexchange/codereview |
Is to possible to have a layout for web-based architecture based on MVC where SOA is the architectural style. Or to rephrase, can services be part of the M,V, C of MVC.If so, what kinds of services can be included in each of them. Also, can you give me a real world example?
| stackexchange/codereview |
Is it possible to throw an instance of std::bad_cast ? The underlying question is not whether it is good or not to do this, it is only about whether std::bad_cast has a default constructor or not.
Thanks
| stackexchange/codereview |
I have a checkbox class that I want to toggle a boolean core data attribute from NO to YES. Drawing the actual checkbox and getting it to toggle isn't the issue, but persisting its state is. The checkbox is in the second view controller in my stack (RVC <--> ItemsVC (checkboxes are here) <--> ItemDetailVC). If I toggle... | stackexchange/codereview |
I have a Data file that looks like this:
1 2 3 4 5 6
FirstName1 | LastName1 | 4224423 | Address1 | PhoneNumber1 | 1/1/1980
FirstName2 | LastName2 | 4008933 | Address1 | PhoneNumber1 | 1/1/1980
FirstName3 | LastName3 | 2344327 | Address1 | PhoneNumber1 | 1/1/1980... | stackexchange/codereview |
I'm having a very difficult rails problem and i thought to ask for some help. The situation is like this :
I'm using restful authentication for my User model. Now, user has a field named 'gold' that is a numeric value. There is another model named Book that has been created using scaffolding.
What i want to do is simp... | stackexchange/codereview |
We are now assessing different IPC (or rather RPC) methods for our current project, which is in its very early stages. Performance is a big deal, and so we are making some measurements to aid our choice. Our processes that will be communicating will reside on the same machine.
A separate valid option is to avoid IPC al... | stackexchange/codereview |
My website, http://kenthomes.com.au/test/gallery.php, works fine in normal browsers like FF, Chrome, Safari and Opera, but on IE6-8, two of my jQuery plugins/scripts don't work.
I think I've managed to narrow it down to this portion of code:
$(document).ready(function() {
$('.kwicks').kwicks({
min : 99,
... | stackexchange/codereview |
What properties should the problem have so that I can decide which method to use dynamic programming or greedy method?
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.