instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I was working on this:
NSString *str1 = @"This is string A";
NSString *str2 = @"This is string B";
NSComparisonResult compareResult;
if([str1 isEqualToString:str2] == YES)
NSLog (@"str1 == str2");
else
NSLog (@"str1 != str2");
compareResult = [str1 compare: str2];
if (compareResult == NSOrderedAscending)
... | stackexchange/codereview |
I have installed gradle and i am at least trying to get the most basic of build running but nothing. I have tried to run the sample project that comes with gradle. From this directory
$GRADLE_HOME/samples/userguide/multiproject/firstExample
i run this command
gradle hello
and this is output
log4j:WARN No appenders cou... | stackexchange/codereview |
Anyone know of a very fast way to replace the last occurrence of a string with another string in a string?
Note, the last occurrence of the string might not be the last characters in the string.
Example:
$search = 'The';
$replace = 'A';
$subject = 'The Quick Brown Fox Jumps Over The Lazy Dog';
Expected Output:
The Qui... | stackexchange/codereview |
I am in the process of building an AutoParts Store using Joomla and VirtueMart. I was wondering if there was a way for the end user to search by Year, Make, Model of a car, and then have the corresponding car parts be listed.
I realize this is pretty complex, and don't expect to have this solved with a simple quick fi... | stackexchange/codereview |
i'm making portfolio site template. I have problem about "active link" for my full ajax site.
When i open url (http://bit.ly/d5qNeN) directly, url doesnt come up with addClass function.
How can i add 'selected' class for directly opened urls?
Here is my jquery code, which adds 'selected' class to my navi bar.
$j... | stackexchange/codereview |
I just want to make the 'URL' row data as hyper link. Someone help pease. I already tried but the data is not displaying in the table neither the hyper link.
while ($rows = mysql_fetch_assoc($run))
{
echo "<tr>";
echo "<td>". $rows['file_ref'] ."</td>";
echo "<td>". $rows['file_name'] ."</td>";
... | stackexchange/codereview |
Do you position all of your include_once and require_once at the start of the file, so it's clear what it's dependencies are, or do you put them at the most local scope where they are used, for efficiency?
Let's say I have an error handling file which has a function to display an error message - would you ...
require_o... | stackexchange/codereview |
The default stack has the parms interceptor who binds the parameters to the setters found in the action who is being invoked. That works fine when you know the name of the parameter. For example if a request parameter is "employee.name" that could be binded to a property of my action which has a property "employee" wit... | stackexchange/codereview |
I am using OData to query my database. The following line of code works fine when “adapterName” just contains text.
ds.query('/DataAdapters?$filter=Name eq \'' + adapterName + '\'', ifmgr_CreateAdapter_Step1, onGenericFailure, '');
If “adapterName” contains a single quote it fails. I tried escaping the single quote by... | stackexchange/codereview |
I'm using the yii framework and trying to get its unit tests running while connected over ssh on a CentOS server. When I run phpunit, it tries to launch Firefox, which fails with the error "no display specifiied"
| stackexchange/codereview |
I have been coding against a Delphi EXE (win32 desktop app) to access twitter and do certain functions. It used to use Basic authentication with the api limitation. I know I have to convert this to OAuth. I have been reading over the documentation trying to determine the best approach. I understand the best method... | stackexchange/codereview |
I am starting to game development adding bitmap images in to array list how can implemented
for(int i =0;i<9;i++)
{
resizedBitmap[i] = Bitmap.createBitmap(bitmapOrg, (i%3)*newWidth, (i/3)*newHeight,newWidth, newHeight);
}
Given 9 images are storing array list display random order how can implemented its ... | stackexchange/codereview |
I'm using the PHPCrawl class to spider websites and build a list of links. It all works well, if slowly, and I then use the links to perform other tasks.
I'm encountering a problem where the first time I run the script it completes with no result, then the next time I run it it works as expected. It's failing about 30%... | stackexchange/codereview |
Assuming a schema structure as such.
-----------------------------------------
Stock (ID, Description, blah blah)
-----------------------------------------
StockBarcode (ID, StockID, Barcode, Price, blah blah)
-----------------------------------------
What is the optimal way of storing units of measure for your stock ... | stackexchange/codereview |
I have a table like this:
id number otherfields
-------------------------------------------
664 48 aaa
665 49 bbb
666 55 ccc
667 48 ddd
My query groups by the number field, and I want it to pick the first (lowest) id, so that the data comes out like ccc,aaa,bbb (whe... | stackexchange/codereview |
I'm aware of the hacks using hash tags, however, I need bi-directional communication with larger payloads and higher throughput. Are there any Flash/ActiveX/etc options that make this possible?
| stackexchange/codereview |
The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first. u6sm344516ibd.6
I have my code like this?
MailAddress to = new MailAddress("xxxxx@gmail.com");
MailAddress from = new MailAddress("xxx@gmail.com");
MailMessage message ... | stackexchange/codereview |
It might be a frequent question but i cannot figure out how to prevent errors in my parsing when the script can't find a property...
in XML was easy because even the empty properties were like <location/>
but now if location is not available JSON paser cant find it and it results in errors...OR
it may happen the json h... | stackexchange/codereview |
Possible Duplicates:
What is the best .NET obfuscator on the market?
Best .NET obfuscation tools/strategy
Hi there,
I'm ending my development of a small business application, using NET 4.0.
I would like to know which tool are you using to prevent your code to be decompiled/stolen.
I know that exists a few tools in t... | stackexchange/codereview |
I have a requirement.
I have two tables say TableA and TableB. Both having a column called "rec_id". My requirement is to get the maximum of the values contained in these two columns using a single query.
eg: In TableA, I have "rec_id" values as {1,5,6} and in TableB, I have "rec_id" values as {1,4,2}. So after executi... | stackexchange/codereview |
Let A[1]<=A[2]<=....<=A[n]. Let X be an arbitrary number. Give an algorithm find all pairs of A[i] and A[j] such that A[j] - A[i] >= X. All numbers are positive integers.
If you want to see the original problem. Here it is:
Let P = {p1; p2; ; pn} be a set of n points in a 2-dimensional space, where pi = (xi; yi) fo... | stackexchange/codereview |
I want to check out this version of webkit.
Any idea how can I do it through svn?
http://trac.webkit.org/browser/releases/WebKitGTK/webkit-1.2.0
Is it possible to download only code and no .svn folders?
| stackexchange/codereview |
I'm trying to connect to Facebook's graph api using the PHP-SDK. The session is being created fine, however I'm getting the following error
Fatal error: Uncaught CurlException: 1: Protocol https not supported or disabled in libcurl thrown in .../app/vendors/facebook/graph/facebook.php on line 622
I have tried to corr... | stackexchange/codereview |
I have created a simple app with a page having a server side form, three fields and a button that submits and performs two operations - 1) adds the form fields to the database table 2) sends an email. Now everything works fine on the web browser on my machine but when I access the app through my mobile, the page does n... | stackexchange/codereview |
I think making code self-explanatory, without need for comments all around the place, is a big advantage. But could you suggest methods and techniques how to reduce the amount of code, make it more readable and understandable.
Also what do you think are the good techniques for reducing big if statements and nested for ... | stackexchange/codereview |
I have read string "ńîôč˙" from file by using code page windows-1251, instead of using iso-8859-2. It should be some Cyrillic string. How to implement function that will do following in C#:
string res = Recover("ńîôč˙");
string Recover(string input)
{
???
}
Where res is Cyrillic string that I would have got if I ... | stackexchange/codereview |
I need to inject a collection of type IList<IActivity> into a constructor. I am using Unity 2.0 and configuring it using XML.
I was able to do this by just injecting an array in Unity 1.2. I have just upgraded to Unity 2.0 and my configuration has now stopped working in this specific area. (I have resolved all the triv... | stackexchange/codereview |
I want to know which want do you prefer for a Dedicated server... Yeah in 2 months I'll get a dedicated server but I don't know which OS to choose.
I use exec command from PHP to run .exe files... (like image converter, video converter) but I'm sure I can find that for Linux too... I don't know Linux very well, but I u... | stackexchange/codereview |
I am writing a windows mobile application based on GPS technology. everything is ready but I need the function which is used to retrieve GPS location coordinates (latitude and longitude).
I declared latitude and longitude, but now I need the function of GPS to put it inside a button I created, get longitude and latitud... | stackexchange/codereview |
I've looked all over paypal's website and can't find any info on creating a simple text link for a donation.
Anyone have any info?
| stackexchange/codereview |
I'm using IIS7 url rewrite module.
Here is my blog link: http://www.kad1r.com/
After rewrite here is some images paths.
http://www.kad1r.com/article/157/ASP.Net/images/comment.gif
But some images are ok (like google image).
| stackexchange/codereview |
I've a django server that server multiple sites, each site being a separate django project.
The layout is roughly :
Django/
project1/
app1
app2
.
settings.py
urls.py
templates
project2/
app1
etc.
static/
project1/
media/
css/
et... | stackexchange/codereview |
I know that automatic properties must define a get and set accessor method, I also know that it is possible for either of these accessors to be made invisible by means of an access modifier.
Is there a technical reason why the compiler is happy with
public object Property { get; set; }
but not
public object Property {... | stackexchange/codereview |
I'm having trouble figuring out how to change my mindset to git and have run in to the following problem. I have the situation where we have a shared engine and multiple projects that use the engine. Internal development teams and second party teams may be working on projects that use the shared engine, and want to be ... | stackexchange/codereview |
I'm pretty new to CMake and I have the following problem:
I have a number of C++ modules (executables) which together form a program package. The modules are controlled and executed by a driver program written in Python. In the build/installation process the Python program needs to be preprocessed with options set by ... | stackexchange/codereview |
I am trying to find out how to get a jQuery script to work correctly when a click event is started, the script calculates the height of a container (this script appears at the start of the page on load and works 100%) but I am now trying to get it to work inside a .click event.
If anyone knows how I should achieve this... | stackexchange/codereview |
In my application I am downloading and saving an apk to the SDcard and then I want to start the installation of the apk. I'm using the following code to attempt this:
Intent intent =new Intent();
intent.setAction(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse(file), "application/vnd.android.package-archive");
act... | stackexchange/codereview |
For dictionary, I can use iter() for iterating over keys of the dictionary.
y = {"x":10, "y":20}
for val in iter(y):
print val
When I have the iterator as follows,
class Counter:
def __init__(self, low, high):
self.current = low
self.high = high
def __iter__(self):
return self
... | stackexchange/codereview |
If I use the facebook javascript and xfbml to get a user to login to my app and grant me offline permissions.
Can I then at the server
read the cookie set by facebook,
get the access token
store it in a db
and use it over time
or is this access token valid only during the active session "even though I've requested... | stackexchange/codereview |
I've been asked to encrypt various db fields within the db.
Problem is that these fields need be decrypted after being read.
I'm using Django and SQL Server 2005.
Any good ideas?
| stackexchange/codereview |
working on internationalizating a web application, I am a bit blocked, because I don't know how to make my .properties dinamic. I mean, to get automatically static text from the application. Now I have, for instance, this one MessageBundle_de_DE.properties:
greetings=Hallo!
inquiry=Wie geth's?
farewell=Tchüs!
B... | stackexchange/codereview |
I am currently reading an Algorithm's book and came across the Stable Matching Problem. And a question came to mind that I'm curious about, but the book doesn't answer.
In every SMP is it possible to always have one pair where each prefers the other one the most?
Like in the classic marriage example. Is there always a ... | stackexchange/codereview |
I am new to Ajax programming and I have been told that there are alternatives to using a database in Ajax if optimal speed is required. If there are going to be like a hundred requests per second then using a database does not make much sense. So what are those alternatives?
I need only "native" AJAX solutions. No libr... | stackexchange/codereview |
i used this Code, works fine in Firefox, but in IE unvisited links are default blue and visited links are purple? please help,not whats the deal
a:link {
text-decoration:none;
color:transparent;
}
a:visited {
text-decoration: none;
color:transparent;
}
| stackexchange/codereview |
I create a new console application with using C# and then added my dll to my project's references. My dll has a DB class which has static properties.
public class DB
{
public static Database db = DatabaseFactory.CreateDatabase("ConnectionStringName");
}
When DB class's properties call, it throw an exception ... | stackexchange/codereview |
I have deployed my web application (ASP.NET/C#) on the Server (Win 2003) to make it possible to merge word documents and open them.
Everything worked fine: a .doc ducment was added to the bottom of another .doc document (using Microsoft.Office.Interop.Word libraries) and then opened with the client MS Word.
Unfortunate... | stackexchange/codereview |
I've tried odbc_prepare() + odbc_execute() to update a record in an Access file but I always get an SQL state 07001 error message about incorrect column count (actually, the message is in Spanglish and doesn't make much sense):
<?php
$items = array();
$items[100] = 'Foo';
$items[200] = 'Bar';
$sql = 'UPDATE street
... | stackexchange/codereview |
I'm using jQuery + swfupload.
When displaying a jQuery dialog, the swfupload-button always is on top and is overlapping the dialog window. I've already tried increasing the z-index of the dialog but didn't help.
How can I fix it?
| stackexchange/codereview |
I'm trying to block a script file from loading on user defined websites. To block a script file I'm using beforeload event and event.preventDefault(); in content script which works fine as long as I already know website list. My problem is I don't know website list in advance, so to get the website list I'm sending a r... | stackexchange/codereview |
I have created a new menu in my backend, and added some children. One of these children named "Manage Pages" must retrieve all the products that correspond to the attribute sets that begin with "CMS_" and should not have a price column.
I have done this so far:
app/code/community/Mycompany/Content/etc/config.xml
<?xml... | stackexchange/codereview |
I have an XLS for which I need to A1:H1 to say A1:A7. I can achieve this by using the transpose function in copy. However I need to do this as part of VBA script.
I don't seem to find any equivalent function.
| stackexchange/codereview |
I am breaking my head on this issue since long. I have stored procedure in MS SQl and when I try to execute that procedure by providing all the parameters in SQL Query, it takes long time to execute but when I try to directly run the query which is there in SP it executes in no time. This is affecting my application pe... | stackexchange/codereview |
I have heard about this problem and now I am looking for more specific information?
How does it happens, what are the reasons for that, detailed explanation of the mechanism of the deadlock to try to avoid it. How to detect the deadlock, solve it and protect the data from being corrupted because of it. The case is when... | stackexchange/codereview |
I have an application that runs only once. But after finishing (finish()), it remains in the history of applications (last opened) and can be opened again. (Long press on the Home button). How do I remove my application from this history?
I ask because everything I found, it's a flag in the manifest - 'noHistory'. But ... | stackexchange/codereview |
I'd like to redirect: http://site.com/FOO/BAR/BAZ
to http://site.com/FOO/NEW/BAZ
so, subsitute the second segment in my URL with a new one.
ideally I'd like to use HTACCESS and a 301 as these pages have permanently moved.
The URL structure will not change. Ideally there won't be a query string, but doesn't matter too m... | stackexchange/codereview |
Is there any build in features I may measure code/methods execution time using visual studio 2010 in Microsoft testing framework ?
Or only Stopwatch may help?
| stackexchange/codereview |
I'm studying Computer Science in Germany and recently stumbled upon Web Services and Google Web Toolkit.
I thought: "Great, define buttons, input fields, panels, ... just hit compile and it works"
Then i thought: "Why hit compile? ..."
Question: Is there a technology where I can define buttons, panel, input fields, ...... | stackexchange/codereview |
I am writing multi process fibonacci number calculator , I have a file that keeps track of the fibonacci numbers , first process open the file and write first fibonacci numbers (0 and 1 ), then do fork and its child process read the last two numbers add them up and write the next into file and close the file and fork a... | stackexchange/codereview |
Has anyone been able to incorporate Charts and graphs into Sencha Touch?
If so, an example would be appreciated.
Thanks
| stackexchange/codereview |
I do:
Prelude> "sone" ++ "otehr"
"soneotehr"
But such code:
addOneToElement :: [a] -> [a]
addOneToElement element = element ++ "next"
main = do
let s = addOneToElement("some")
putStrLn s
produces this output:
all_possible_combinations.hs:22:37:
Couldn't match expected type `a' against inferred type `Char'
... | stackexchange/codereview |
I have a wpf application.There is a strange thing that as long as i mousedown the ComboBox droparrow becomes all UI response very slow, regardless of whether ComboBox have items.
Annoying the case only appears on some computers.
Look forward to answering.
| stackexchange/codereview |
I have a ListView that displays every item in an array called, "Facts_Array". What I would like to do is display the count of the item clicked on. Right now I have this:
lv.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView<?> parent, View view,int position, long id) {
... | stackexchange/codereview |
I'm working through the curve to learn C and I don't understand why compiler is reporting this this warning.
I have a char* that is declared in global space (outside of any function). I want to read a file descriptor and return it's contents to the calling code.
At the top of the file I have the buffer declared:
char *... | stackexchange/codereview |
The following code works fine in browsers other than IE. In IE, only the #toggle-instructions handler works, but #toggle-cue-sheet-instructions does not. Anyone know why IE has trouble with this? What happens is that clicking on the link with id=toggle-cue-sheet-instructions does nothing while clicking on the link with... | stackexchange/codereview |
I have a C++/CLI (VS 2008) mixed mode library that creates native objects and calls methods in then. Native dll is written in pure c++. Now in my C++/CLI wrapper methods if I declare object of native classes in c++ way as
ClassA obj;
Obj.Method();
and use it, it works but, I get System.AccessViolationException: Attem... | stackexchange/codereview |
I'm trying to make an accordion like section to a page I'm working on. I'm not using jQueries native accordion plugin because I need the ability to close all the sections. My problem is Chrome doesn't seem to be responding to .slideUp() while everything seems to work perfectly in Firefox and IE. Rather than try and cop... | stackexchange/codereview |
The environment is:
64-bit Windows
~50GB RAM
.NET 3.5 SP1
SQL 2008
The code is (essentially, from memory):
System.Data.DataTable table = new System.Data.DataTable();
SqlCommand command = new SqlCommand("SELECT XmlColumn FROM Table WHERE ID = UniqueID", Connection);
SqlDataAdapter adapter = new SqlDataAdapter(comman... | stackexchange/codereview |
Why does the code sample below cause one thread to execute way more than another but a mutex does not?
#include <windows.h>
#include <conio.h>
#include <process.h>
#include <iostream>
using namespace std;
typedef struct _THREAD_INFO_ {
COORD coord; // a structure containing x and y coordinates
INT thre... | stackexchange/codereview |
I have a text file that contains more or less paragraphs. The text is not actually words, its comma delimited data; but that's not really that important. The text file is sort of divided into sections; there can be sections, and subsections. The division of sections is denoted by more than one newlines and subsectio... | stackexchange/codereview |
How to do Dependency Injection on Property of a class Using Structure Map
public class ContactController : Controller
{
public IContactService Service { get; set; }
public ContactController()
: this(null,null)
{
}
[SetterProperty]
public MembershipProvider Provider { get; private set; ... | stackexchange/codereview |
I'm writing a simple program for testing mouse. It compiles fine, but doesn't work. When I launch it, the window freezes. What am I doing wrong?
#include <SDL/SDL.h>
#undef main
int main()
{
if (SDL_Init (SDL_INIT_EVERYTHING) != 0)
return 1;
SDL_Surface* Scr;
if ((Scr = SDL_SetVideoMode (300, 200, ... | stackexchange/codereview |
How can I get jQuery to only do an ajax query one time?
Right now it contacts the server every time a user toggles "Comments (X)"
// Replies - Toggle display of comments
$('.info .reply').click( function() {
$('.reply', this.parentNode.parentNode).toggle();
return false;
});
// Load comments
$('.info .reply', ... | stackexchange/codereview |
So say I have the following very simple macro, along with a bit of code to output it:
#define SIMPLEHASH(STRING) STRING[1] + STRING[2] + STRING[3]
std::cout << SIMPLEHASH("Blah");
This outputs 309, and if you view the assembly you can see:
00131094 mov ecx,dword ptr [__imp_std::cout (132050h)]
0013109A pus... | stackexchange/codereview |
All,
I have a need to display information on a MapView object. No problems there.
The issue is that there are times when the MapView object displays map details that visually compete with my overlay data.
So, what I'd like to do is provide a way to "scale back" the MapView object visually by using an alpha channel.
Ca... | stackexchange/codereview |
I was going through this:
http://code.google.com/apis/webfonts/
(Which BTW I think is fantastic)
And was wondering how compatible its is with older browsers including IE 6?
| stackexchange/codereview |
I think I can sum up the use of generics in Java in one word: type-safety.
Can you conclude the use of templates in C++ in one word, please?
| stackexchange/codereview |
I am using an UITableViewController containing a UITableView and an UISearchTableView.
The table lists e.g. 1000 entries. I want to provide the user a button to delete all
entries of a specific entity. Because looping over all managed objects and saving the context takes a very long time, I thought of deleting by remo... | stackexchange/codereview |
I am using NHibernate and this is not a Homework.
Suppose I have retrieved an object of type Faculty(suppose Faculty of Engineering in the University of XYZ) from the database. It has 5 child objects associated with it of type Department and should contain IDs 2,4,5,8 and 9 according to the database-table.
My 1st probl... | stackexchange/codereview |
My class contains an UIImage property which I want to enforce as a 'copy' property by any external clients accessing it. But, when I try to do a copy in my custom setter, I get the runtime error about UIImage not supporting copyWithZone. So what's a good way to ensure that the correct ownership policy is followed?
// d... | stackexchange/codereview |
I need to be able to enter any the following types of information into
into a single text field.
customer name (ie first and last name).
customer phone number. (including area code)
customer email address.
customer service ticket number.
customer product serial number.
How it works so far is that I have 5 diffe... | stackexchange/codereview |
I'm building a research web app that runs a long batch analysis that can last hours.
I'm using Grails but I think this is a general design issue.
The batch process can be started by a URL, e.g.
http://mydomain/experiment/run?a_lot_of_params
And this page returns info about the experiment (whose data are stored in the b... | stackexchange/codereview |
my android application shows an error of keydispatching timeout. i does'nt happen every time when i touch the screen. i happens after some seconds of application starting. What will be the reason for this?? I used 4 imageviews,oncreate(). When i touch the imageview, it has to download images from the server through GPR... | stackexchange/codereview |
I am doing this with UISwitchs and UITextFields...
I have declared the UISwitch as Property in the header file, because I want to access its value in several different methods within my class.
I am adding the UISwitch to one of my TableViewCells, using the following code:
- (UITableViewCell *)tableView:(UITableView *)... | stackexchange/codereview |
Note: I've looked at this question: Preventing SQL injection without prepared statements (JDBC) . And as I somewhat expected... the answer is to use prepared statements. I'm in a different set of circumstances... so I'd like to know the best path for this.
I'm using a downloaded script (phpsimplechat) where the author ... | stackexchange/codereview |
Can we map an sqlite file to coredata?
| stackexchange/codereview |
I wanted to quickly display a List(OF String) in a DataGrid (dynamically), so I thought
myDataGrid.ItemsSource = myList
would be the quick and easy way to do it, since this works great for a DataTable:
myDataGrid.ItemsSource = myDataTable.DefaultView
My DataGrid has the AutoGenerateColumns property set to 'True'. An... | stackexchange/codereview |
Not sure really where to start with this one. Can anyone help/point me in the right direction.
I have a timestamp column in MySQL and I want to select a date range for example, all timestamps which are in Oct 2010.
Thanks.
| stackexchange/codereview |
I am creating an application in asp.net..I used a grid view to show the datas .. By using the autogenerate columns
I bind the datas to the gridview.. Now i want to make a edit button at the end ..By clicking that the user can edit their details ...
But i need to count the number of columns in a row to make a pop up w... | stackexchange/codereview |
I am currently implementing something quite similar to checkers. So, I have this table game and there are both white and black pieces. Where there are neither white or black pieces, you dno't have pieces.
I'm currently doing the GetValidMoves() method that'll return all the current moves one can do with the current boa... | stackexchange/codereview |
In this image, the content from one panorama item bleeds over onto the previous item:
How can I do this in Expression Blend / with XAML?
Here is my XAML currently:
<controls:Panorama Margin="0,0,-1732,8" Grid.Row="1" Title="ODP">
<controls:PanoramaItem Header="new">
<local:StoryList/>
<... | stackexchange/codereview |
I moved from using the Flex Builder 3 IDE to Flash Builder a couple weeks ago and have noticed a ridiculous jump in compile times with the same project. It almost seems like every time I build it does a clean build. The project I am working with is pretty big, but when it takes more than 4 mins to build, something is... | stackexchange/codereview |
I'm wondering if someone could explain why the retain count of a newly created managed object is 2. Here is the code I'm working with:
NSManagedObjectContext *context = [self.fetchedResultsController managedObjectContext];
NSEntityDescription *entity = [[self.fetchedResultsController fetchRequest] entity];
Album *newAl... | stackexchange/codereview |
I'm working with a dynamic array in Excel VBA. The number of columns (m) is fixed, however, I do not know how many rows (n) will be required.
The help documents state that ReDim Preserve myArray(n, m) allows me to make m larger, but not n. However, I need to increase the number of rows (n) while preserving my data, n... | stackexchange/codereview |
I use firebug a lot ,i installed measure it , firecookie. Do you guys know any other nice additions to firebug which can be used during development.
Thanks.
| stackexchange/codereview |
I thinking about switching to TFS2010 for my team. Right now we're using NANT scripts, and I'd like to know how the following issue could be solved with TFS2010.
The team is working on a framework which is made of several solutions (.sln). In each solution, we have a "References" folder where we put the assemblies used... | stackexchange/codereview |
I've been looking at docs but I can't seem to understand very clearly, them do you guys know of anything that would be good at teaching it.
Say I had a program,
int main() {
return 3;
}
How do I call cprogram.exe and get the return value (not neccesarily an int, structs too). I don't have a specific project that I'... | stackexchange/codereview |
I am seeing this error in a file called functions.php:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}'
I just installed a new theme in wordpress, I don't know much php.
Is this something I can fix easily?
| stackexchange/codereview |
I'm having trouble with one of our Rails 3 app's. When a lot of requests are sent to the server (10 / second) the whole server stalls. I tried a lot of different passenger setups and sometimes I noticed a slight improvement but none of them ended up to be a solution.
My setup:
Intel i7 (8 cores)
8GB ram
Ubuntu 10.04 S... | stackexchange/codereview |
Is it possible to have 2 colors (red, green) and give the percentage of fading.
Example:
black (#000000) => white (#ffffff) --- Percent: 50% => grey (#808080)
Is this maybe possible with jQuery xcolor, if yes, how?
(the xcolor.analogous example return circa the colors I want to have, but how could I set the percentage ... | stackexchange/codereview |
UPDATE a
SET CountOfAA=dt.CountOf
FROM @MediaResurce a
INNER JOIN (SELECT
aa.Sku,ISNULL(COUNT(bb.sku),0) AS CountOf
FROM @MediaResurce aa
LEFT OUTER JOIN @MediaResurce_Pics bb
... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.