instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
It is the arrayOfPerformances that is getting broken.
here is the .h for the array:
NSMutableArray * arrayOfPerformances;
}
@property (nonatomic, retain) NSMutableArray * arrayOfPerformances;
and the .m that has the loop:
[dataArray release];
[dataDictionary release];
dataArray = [[NSMutableArray alloc] init];
dat... | stackexchange/codereview |
I have a object with a lot of properties on it. A bunch of these large object are to be inserted in the db but with only one property on them changing. The property that will be changing is not the primary key. First time SaveChanges succeeds but the subsequent ones fail with "An object with the same key already exists... | stackexchange/codereview |
When using shared memory, why should we care about creating a key
key_t ftok(const char *path, int id);
in the following bit of code?
key_t key;
int shmid;
key = ftok("/home/beej/somefile3", 'R');
shmid = shmget(key, 1024, 0644 | IPC_CREAT);
From what I've come to understand, what is needed to access a given shared ... | stackexchange/codereview |
I have an Eclipse project with a GWT client and a Restlet API. I normally use Maven for dependency management but I havent used it in an Eclipse project where seperate parts have seperate dependencies. For example - the client would use Google Gin for dependency injection and the server uses Google Guice.
Am I able to ... | stackexchange/codereview |
I'm creating an RCON web application for Call of Duty Black Ops. COD uses rcon and udp packets to send and receive information. Using the following code, I've been able to send and receive information with a COD4 server. Now that COD7 is out, I'm no longer receiving responses back.
Socket client = new Socket(AddressFam... | stackexchange/codereview |
I got a installer for Visual Studio 2010 x86 from the msdn academic alliance, and I intalled on my computer with Windows 7 Home Premium and M460 i5 processor. It runs great, except it doesn't debug, neither C# nor C++.
If I build the project, and then press the debug button, it works. But why Debug button doesn't build... | stackexchange/codereview |
Another Beginner-Question from myself:
Is it possible to disable an .click(function) while it's proceeding [sliding Up/Down and doing some id-switches]?
I have a bunch of anchors using the same function and I don't want users to click on another link while there's still some slidingUp/Down is going on. In order to get... | stackexchange/codereview |
I've been trying and researching for countless hours but for some reason I just cant get my head around it and I know its a simple answer. Please Help!
I have a view with different buttons, -(ScrollViewController1)
the different buttons push in one view, -(b1ViewController)
this view contains the media player,
In a nu... | stackexchange/codereview |
I am trying to figure out how to get an handle on the endpoints of the service host and modify their identity. I have endpoints defined in the config file but want to modify the endpoints programmatically depending on the environment (ex:QA, UAT, Prod)
Service is hosted on IIS6 and I am using a servicehostfactory to ... | stackexchange/codereview |
How can I export all of my rows in a table to sql script in Microsoft SQL Server 2005 and then import them to another database?
Thanks in advance
| stackexchange/codereview |
In Android how can I make an EditText clear when it's clicked?
E.g., if I have an EditText with some characters in, such as 'Enter Name', when the user clicks on it these characters disappear.
| stackexchange/codereview |
I imagine that I have designed my database badly, but I'm currently stumped by the fact that I need to use dynamic sql in a trigger and that's making mysql unhappy.
The context is that I have created a membership database with several dozen tables, the main one of which is the 'member' table with a unique primary key '... | stackexchange/codereview |
I'm using Princely and Rails 3.
When I try to render a pdf like this..
respond_to do |format|
format.pdf do
render :pdf => "filename", :template => "path/template.pdf"
end
end
The downloaded file is a text/html format.
How can I fix this and make it work. I have already added the line bello... | stackexchange/codereview |
I'm trying to add a small delay in the .hover() callback before running further code. I also need to stop the timer if it exists when you hover another elem that triggers the same .hover() func.
I currently have it working but it is not pretty, I'm assigning a timer to a global and sure there must be a better way to do... | stackexchange/codereview |
Hi I just recently downloaded the most recent snow leopard update. Then I tried to plot something using Octave which has been installed on my computer for months (and plotting has worked all that time) Even since I installed the update, and I try to plot using octave I get the following error:
dyld: Library not loade... | stackexchange/codereview |
The code below returns an array of images that are "attached" to posts...
$args = array(
'post_type' => 'attachment',
'numberposts' => -1,
'post_status' => null,
'post_parent' => 0
);
$excludeImages = get_posts($args);
//var_dump
var_dump ($excludeImages)
//yields (a snippet of the first item of 5 in... | stackexchange/codereview |
Is there any API out there which has a database of a list of suburbs (esp. Australia) which can be consumed with AJAX auto-suggest while the user types into the texbox?
| stackexchange/codereview |
I have some Python scripts that I run on my desktop now for cutting up files. I want to put them on the web and write a simple front-end in PHP where a user uploads a file and it is passed as an argument to a python script on the web server and it is written out in chunks and the user can re-download the chunks.
I know... | stackexchange/codereview |
However I try to create an HTMLNode for the P tag and inject it into the HTMLDocument DOM, it always appears as an unclosed tag. For example.
// different ways I've tried creating the node:
var p = HtmlNode.CreateNode("<p />");
var p = HtmlNode.CreateNode("<p></p>");
var p = HtmlNode.CreateNode("<p>");
var p = HtmlT... | stackexchange/codereview |
I develop on several machines, but I find that I have trouble when I push to a remote repository: It (currently Assembla but happened before on Github) thinks I'm a separate person. In Assembla I'm the "Anonymous" user even though I changed my global config to match my name and email and even used the same SSH key. Whi... | stackexchange/codereview |
I'm following this tutorial: http://boto.s3.amazonaws.com/sqs_tut.html
When there's something in the queue, how do I assign one of my 20 workers to process it?
I'm using Python.
| stackexchange/codereview |
I want to insert special character & in my insert statement. My insert is:
INSERT INTO STUDENT(name, class_id) VALUES ('Samantha', 'Java_22 & Oracle_14');
If I try to run this query I am getting a popup and it asks me to enter value for Oracle_14.
How can I enter special characters like & in the insert statement for ... | stackexchange/codereview |
how do i change the default blue animated marker for MyLocationOverlay in google maps?
| stackexchange/codereview |
I put together a really nice mass mailer, but occasionally mails end up in junkmail on various different mail providers for various reasons. Does anyone know if there is a write up anywhere on best practices to send mass mailers?
| stackexchange/codereview |
Say I have a user domain class with fields username and password. For simplicity say I would like to store the passwords as a SHA-512 hash. I also want to validate the password prior to hashing it, but also transparently hash the password before saving it. Is there a way to do this in the domain object?
static constrai... | stackexchange/codereview |
I am new to C and I am having trouble using dynamic memory.
I malloc for struct figure and then realloc as needed. As I was trying to debug my code I noticed with the help of ddd that I overwrite one figure over the previous one(in the second chunk of code that I provided - the name of the variable is figureHere). If ... | stackexchange/codereview |
I wonder; does audio software like Cubase and Audacity use PlaySound calls??
Where can I learn about low level audio programming? As far as I've found information on the web, MCI seems to be the lowest level audio API in Windows...
Thanks
Edit: I don't ask for information specific for Windows only.
| stackexchange/codereview |
I need a gem for check the time and execute a piece of code only if is that time, if it execute then don't repeat still the next day, if this don't execute (because pc is off for example) then try again every certain time...I know it is very easy but I don't want reinvent the wheel and I'm pretty sure I saw something l... | stackexchange/codereview |
I completed a C-to-MIPS conversion for a class, and I want to check it against the assembly. I have heard that there is a way of configuring GCC, so that it can convert C code to the MIPS architecture rather than the x86 architecture (my computer users an Core i5 processor) and prints the output.
Running the terminal i... | stackexchange/codereview |
I've got all the source code for PARI, but i'm not sure how to use it/generate the pari library. Up to now, i've had to add a couple header files for things such as complex numbers using #include <complex.h>, so I figure it is the same idea for using PARI.
I add pari.h's path in my compiler and #include <pari.h> works,... | stackexchange/codereview |
Consider the following pseudo-tsql
table a
{
field1 int,
field2 int NULL
}
table b
{
field1 int,
field3 int
}
create procedure Sp1
As
Select a.field1, a.field2, b.field3
From a inner join b on a.field1 = b.field1
Is it possible to query the procedure Sp1 for if the resulting columns can be null ... | stackexchange/codereview |
I've been just going through PragProg Continuous Testing With Ruby, where they talk about invoking IRB in context of current class to inspect the code manually.
However, they quote that if you invoke IRB.start in a class, self is predefined, and refers to the object we were in when start was called which isn't true in ... | stackexchange/codereview |
I have a C++ web service that needs to send/receive data from a Silverlight client.
Can I still use the WCF RIA client or do I need to use the sockets library directly?
Note that I'm pretty flexible on using HTTP or not, and I even prefer not to use the HTTP protocol.
| stackexchange/codereview |
I'm 'dissecting' PunBB, and one of its functions checks the structure of BBCode tags and fix simple mistakes where possible:
function preparse_tags($text, &$errors, $is_signature = false)
What does the & in front of the $error variable mean?
| stackexchange/codereview |
How does one get the master volume in Java? I want to make a program that displays (NOT CHANGE) this value (probably on a JProgressBar or something similar) as a percentage of the maximum setting. I might also want to display the current sound level as a percentage of highest possible sound level, but this is not neede... | stackexchange/codereview |
I have a database with a public schema where we keep login/account information and multiple client schemas for client data. I've successfully used yaml_db to dump/load test data into a client schema, but this requires constantly modifying the schema_search_path between the public schema and client specific one each ti... | stackexchange/codereview |
My jQuery is below:
var x = $.ajax({
dataType: "jsonp",
url: "https://ajax.googleapis.com/ajax/services/search/images?q=google&v=1.0",
success: function(msg){
alert( "Jsonp data: " + msg );
}
});
alert(x); // x is undefined
// x.abort()
You can try this code here: http://jsbin.com/iyile3/2... | stackexchange/codereview |
Is it possible to force .net application to load another .net assembly from the start via app.config manipulation or any other way?
I want to make another application to load my assembly in it's process boundaries when it starts. Please, don't ask me why :) I just try to to walkaround legacy application lack of extens... | stackexchange/codereview |
I have a project that creates Excel files and I'd like to add some import functionality. In a nutshell I'd like to give users the ability to code the following:
worksheet.Cell(1, 1).Value = collectionObject;
(Where collectionObject implements IEnumerable)
How can I parse an IEnumerable of any type and extract the value... | stackexchange/codereview |
On this page http://blog.zacharyvoase.com/2010/11/11/sockets-and-nodes-i/, running the following code in javascript console will throw an Exception.
var div = document.createElement('div'); div.innerHTML = "»";
Chrome 8.0.552.28 Mac: Error: INVALID_STATE_ERR: DOM Exception 11
Firebug in Firefox 3.6.12 Mac: NS... | stackexchange/codereview |
.NET 2.0 added the EventHandler<TArgs> generic delegate type to simplify the process of writing custom events; instead of having to define an EventArgs class and its corresponding delegate (e.g. MyEventArgs and MyEventHandler), you need only write the args class.
Bearing that in mind, why does this delegate type appear... | stackexchange/codereview |
http://visually-minded.com/portfolio-project.php
On the above link when the user hovers over any thumbnail the main image will be swapped. Would anyone be able to point me in the right direction for a tutorial for this?
| stackexchange/codereview |
I would like to use a custom icon (a .ico file) for an executable, on windows (XP).
The executable is a C++ program created thanks to visual studio (2008).
How can I change the icon from the executable, to the .ico file I want?
| stackexchange/codereview |
One of the most recommended ways to listen for a change of a input text field is to bind that field to a key up event. That works fine in most cases. But there are cases where this is not working. In Firefox for example one has the option, when text is already selected, to delete it by using the context menu. And this ... | stackexchange/codereview |
In R I am trying to delete rows within a dataframe (ants) which have a negative value under the column heading Turbidity. I have tried
ants<-ants[ants$Turbidity<0,]
but it returns the following error:
Warning message:
In Ops.factor(ants$Turbidity, 0) : < not meaningful for factors
Any ideas why this may be? Perhaps I... | stackexchange/codereview |
I have an issue with using jQuery for a pop-up window. I have a class called "clicker".
If you click it the "showHideBox()" function is being called:
$(".clicker").click(function(){
showHideBox();
});
showHideBox function is showing box - $(".box").fadeIn(700) or hiding it when clicked again - $(".box").css("dis... | stackexchange/codereview |
I have a file name foo. That file contains some text (shown below). Can you please tell me how can I get the string "I have not created a home page." into a variable. I was using the command variable='cat foo | cut -d ">" -f 3'. It output "I have not created a home page." with lots of new lines in it. Please let me kno... | stackexchange/codereview |
Can someone please help me understand exactly what this means?
<stmt> := var <ident> = <expr>
| <ident> = <expr>
| for <ident> = <expr> to <expr> do <stmt> end
| read_int <ident>
| print <expr>
| <stmt> ; <stmt>
<expr> := <string>
| <int>
| <arith_expr>
| <ident>
<bin_expr> := <expr> <... | stackexchange/codereview |
Here is description of my problem:
There is a class "Class_A", which needs 1076 byte of memory for a construction of
its instance.
sizeof(Class_A) = 1076 bytes;
There is a wrapper class for Class_A, "Class_A_Wrapper", which dynamically creates an instance of "Class_A" in its constructor:
.
#include "Class_A.... | stackexchange/codereview |
Say I have a url like this:
http://www.mysite.com/forum/board1/sub-forum/topics/123
Is there a simple way in PHP (can't use HTAccess) to take that URL and extract board1, sub-forum, topics and 123 so I can use them in a database for example? Are there any built in functions or will I have to write my own?
Thanks,
James... | stackexchange/codereview |
Hi i using this article as my app base.
https://blogs.msdn.com/hammett/archive/2009/04/23/mef-and-asp-net-mvc-sample.aspx
In my UI.master file i show images by <%= Url.Content("~/Content/Shared/Images/logo.png")
In my LoginExtension.dll i have AccountControler and all ok.
But when i try to write in web.config:
<authori... | stackexchange/codereview |
i am uploading the file in the servier i am using the below code
move_uploaded_file($_FILES["uploadfile".$k]["tmp_name"],
"photoalbum/".$_SESSION["almgid"]."/".$_FILES["uploadfile".$k]["name"]);
$uploadfile = "photoalbum/".$_SESSION["almgid"]."/".$_FILES["uploadfile".$k]["name"];
This code is working fine in t... | stackexchange/codereview |
i need to save a simple field to configurate my APP, cause this, i wont use a database (it's only a field...), i need to save true or false value for this field on a file, and everytimes a section of my app wanna check if it is true they have to check this textfile, and not to open a connexion to a database
i need to s... | stackexchange/codereview |
I have such a problem: I have a UITextField in my UITableViewCell. When I tap on that text field -> keyboard appears, but when I press Enter button keyboard don't disappear. I need such a behavior for my text field and keyboard:
When I pressed Enter, Esc - keyboard must disappear.
| stackexchange/codereview |
I have a ssrs report where i have used some colour formatting.The problem is that it is showing fine in the preview tab but when i am exporting it into excel sheet the colour is getting changed.Please help me.
| stackexchange/codereview |
Someone recommends me to use SI to read the c source of PHP ,a great open source project.
I've already downloaded the source.
But I don't know how to import it,can anyone help?
| stackexchange/codereview |
I am having try trying to consume a service. I am trying to deploy it to a server and consume it however I get this error. I have created a web application and added a wcf service. I am getting this
Server stack trace:
at System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebReque... | stackexchange/codereview |
Basically, in Android an Activity represents a screen lifecycle.
With startActivity(intent) , the app goes on a new Activity.
How to achieve "change page" in the same activity à la iPhone like ? with touch screen in option.
The reason behind this question is
I discovered an Android app Diet2Go. When you pick a diet.
I... | stackexchange/codereview |
I'm developing a library for Windows Phone 7. We want application developers to link to our library, but we want to be able to update functionality without requiring our client's applications to be updated.
On other platforms we accomplish this using a Javascript interpreter. Occasionally we check to see if a new s... | stackexchange/codereview |
I've stumbled into a problem which, at a glance, is easy cplusplusable, but on careful study appears not to be.
I have items in my program which I will need to work with many types, so I have decided to handle these in a generic, extensible way:
class ItemBase
{
public:
virtual ~ItemBase() = 0 {}
// pure virtual c... | stackexchange/codereview |
Are there any alternatives to using getframe and saveas for saving the contents of a figure to a raster image for further processing?
Approach 1: getframe
h = figure('visible', 'off');
a = axes('parent', h);
% render using `scatter3()` or other plot function.
content = frame2im(getframe(h));
This has the serious dra... | stackexchange/codereview |
I have a problem in my matlab project
I have a RGB color image, and I have two specified pixel (x1,y1) and (x2,y2)
I want to check each pixel in the image and determine if pixel is belong to the line between (x1,y1) and (x2,y2)
I tried to use these functions
m = (y2-y1)/(x2-x1);
b= y1 - m*x1;
if (y==m*x+b) then TRUE
b... | stackexchange/codereview |
Really simple perl question, but confusing me greatly.
foreach $val (@{$obj->something()}) {
# this works
}
@array = $obj->something();
foreach $val (@array) {
# this does not
}
What do i need to do to make the second work (i.e: assign the array seperately), i've used the first form a fair bit but dont reall... | stackexchange/codereview |
i have uploaded my site on a sharing host.i use ionCube PHP in my site.
the index page of site gives this error:
" index.php requires the ionCube PHP Loader ioncube_loader_lin_5.2.so to be installed by the site administrator. "
i asked the server support team and the said ionCube is installed on server.
if so why cause... | stackexchange/codereview |
There is a similar question at Best practice for managing project variants in Git? but the context is different and I suspect the answer might be too.
I have a Cocoa product "First" managed with Xcode and versioned using git. "First" is still evolving, and is currently at its third version.
Then a customer comes and as... | stackexchange/codereview |
Is the -f additional parameter correctly set in this mail function.
@mail("example@exmaple.com.uy",$title,$body,$headers,"-f");
I am Getting the X Warning from some servers.
Sorry for the basic question but some parts of the documentation got me confused (specially some user comments).
Thanks in advance!
| stackexchange/codereview |
I just started creating a SWT/JFace application using the (now free) WindowBuilder from Google (previously instantiations).
I find the Data binding part difficult although it -should- make it easier for me.
For instance, I cannot bind the enabling-property of a button to a (myself defined) boolean function.
Are there ... | stackexchange/codereview |
I've got a page with two sets of div like so
<div id="set1">
<div class="1"></div>
<div class="2"></div>
<div class="3"></div>
.....
<div class="n"></div>
</div>
<div id="set2">
<div class="1"></div>
<div class="2"></div>
<div class="3"></div>
.....
<div class="n"></div>
</div>
"set2" is hidden on page load but each ... | stackexchange/codereview |
I am trying to progressively enhance a div element containing an a tag, so that the content of the div is updated and the click event of the div opens the href of the (before Javascript modification), a.
I have the following code:
$("div")
.click(function(){
window.open($("div a").attr("href"));
})
... | stackexchange/codereview |
I want to transfer the cell focus to a particular cell in the JTable like when the focus on cell (2,3) and after pressing the enter key, focus should be transferred to the cell (2,5) that is skip one cell (2,4).
For this I am using a method changeSelection() of JTable class but its not working.
| stackexchange/codereview |
I need to check a directory for the presence of a sequence of files.
For example at the root directory, the requirement is that if there's a file named: love.dat, then there should be 3 files related to it such that there are:
love_p.dat
love_r.dat
love_q.dat
Of course, the directory contains other files as well and d... | stackexchange/codereview |
can anyone please tell me how can I make a list of users who have logged in yesterday or earlier but have not logged out yet. without repeating the same user in the list.
| stackexchange/codereview |
I have a datatable thru which a user can page and select a record for display ..
The record replaces the the entire datatable with another one via an Ajax call
.. On the second
datatable is a button to allow you to return to the first .. Currently when you
do so you are returned to the start of the first table .. What ... | stackexchange/codereview |
I have the following xsl stylesheet:
<xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="utf-8"/>
<xsl:template match="/">
<xsl:variable name="elements">
<xsl:call-template name="get-some-nodes"/>
</xsl:variable>
... | stackexchange/codereview |
Is there any true difference in performance between NUMBER, NUMBER(3) and NUMBER(10)? Doesn't the RDBMS use 32 bits to store the value regardless, and simply limit the length of the data when looked at as a string?
A colleague debated that it was, for example, more efficient to use NUMBER(10) vs NUMBER/NUMBER(11), thin... | stackexchange/codereview |
I've got some non-node data in a custom module of mine and I would like to invoke a template to display the data. This template may get reused for email output, and I would like to basically just bootstrap Drupal and use the template as needed.
I thought I could just do something like:
$html = theme('verysmallsnippet',... | stackexchange/codereview |
What are the best ways to minimize the pain of implementing a sax parser to build an object tree? Like, in what method do you create java objects and where do you store them, how do you keep and use a stack for complex hierarchies, how do you handle attributes, and how do you handle nested elements? How do you handle... | stackexchange/codereview |
I started to notice my WD drive getting full and ran a size:gigantic file search on it. It has turned up several files here:
F:\SCOTT-SHARED-DESKTOP\My Documents\JPA_SPRING_STRUTS\.metadata\.plugins\org.maven.ide.eclipse\nexus\d9d714e11cb097b3ffcec91cccc65d3e_58.cfs
that exceed 189,992 KB (189 MB)!
Anyone know about t... | stackexchange/codereview |
I have regular expression problem where I have to replace a word or the abbreviation of a word in a string.
Let assume that we have the string "GARGANO/MART/RUBI250/(FLAH)".
The word in this string is RUBIN but has been abbreviated as RUBI250.
However, when I used the expression
Regex.Replace("GARGANO/MART/RUBI250/(... | stackexchange/codereview |
I've used the Facebook Like button (iframe version) correctly in the past but for some reason it's not working for me this time. I'm sharing a webpage like http://sub.domain.com/default.aspx?foo=bar. When I view the source HTML the URL shared in the iframe correctly displays http://sub.domain.com/default.aspx?foo=bar. ... | stackexchange/codereview |
I have a j_security_check page on a server, and I need to pass data to it. I use Python urllib2 module, sending POST-request with j_username and j_password as parameters. The problem is that I have HTTPError 408 as a response: "The time allowed for the login process has been exceeded".
What should I do with it?
| stackexchange/codereview |
If I have a 2D array, it is trivial to loop through the entire array, a row or a column by using for loops. However, occasionally, I need to traverse an arbitrary 2D sub-array.
A great example would be sudoku in which I might store an entire grid in a 2D array but then need to analyse each individual block of 9 squares... | stackexchange/codereview |
I have a problem I don't understand: Behind any View I have a controller ManagedBean that is RequestScoped and a data ManagedBean, that holds the data for the view and is SessionScoped.
So there are two views, which are login with loginData and loginController and overview with overviewData and overviewController.
The ... | stackexchange/codereview |
I have a user control that displays objects of a client-declared type with some specialized behavior. I would like to use generics. However, I'm not sure how to declare this in the XAML:
<local:EditableListBox x:Name="SectionList" Margin="56,8,15,0" FontSize="64" SelectionChanged="SectionList_SelectionChanged" />
List... | stackexchange/codereview |
I want to get a value from the http_referer in the same/similar way you'd get it from a request:
$this->_getParam('order', 0);
I thought I'd try something like this:
$lastrequest = new Zend_Controller_Request_Http($_SERVER['HTTP_REFERER']);
$lastorder = $lastrequest->getParam('order', 0);
But that doesn't work. There... | stackexchange/codereview |
I have a directory and I want to allow users which are only logged into. Also there is a web page in root directory which has several data and all visitors can see them. Web.config file:
<system.web>
<compilation debug="true"/>
<customErrors mode="Off"/>
<authentication mode="Forms">
<forms name=".Artuclt... | stackexchange/codereview |
My (DSP) application produces data at a constant rate. The rate depends on the configuration that is selected by the user. I would like to know how many bytes are generated per second. The data structure contains a repeated (packed) floating point field. The length of the field is constant, but can be changed by the us... | stackexchange/codereview |
Having some CSS troubles and hoping someone can help me. I'm trying to place #aside to the right of #landing but they don't share the same parent. Unfortunately I can't alter the structure of the divs (otherwise I'd put #aside within #container and it's all fixed), so looking for another solution.
<!DOCTYPE html PUBL... | stackexchange/codereview |
I have pretty much the same issue as
UITableView scrolling under the navigation bar but am posting this as a new question as I have some more specifics.
I have a full screen table (with sections) on a page with a black TRANSLUCENT navigation bar. This is within a UIViewController as I have some views overlaid on top so... | stackexchange/codereview |
I have a List<Discount> containing around 100000 Discounts Values. Here, Discount is a class, and i have a List<Product> which has around 200000 records .
I have a for each which iterates through all the records of List<Product>.
For each iteration through products list i take some values from the product item and add ... | stackexchange/codereview |
I would like to create different layouts for tablets and handsets in Android. Where should I put the layout resources in order to make this differentiation?
| stackexchange/codereview |
How can we edit the code below to bind this function to both myLink and myButton.
if (section === x) {
myButton = $("#a");
myLink = $("#b");
} else {
myButton = $("#c");
myLink = $("#d");
}
myLink.click(function(e) {
e.preventDefault();
showMyDialog();
});
| stackexchange/codereview |
I have an application, which uses the LocationManager. Therefore I'm now writing an instrumentation test. I've found already a similar answer, but this won't work for me.
public class LocationSensorTest extends AndroidTestCase {
/*package*/ LocationManager lm;
private LocationSensor sensor;
@Override
protected... | stackexchange/codereview |
HI all. I have a Web Application where I've defined my default namespace to be MyWebApp. Now, in the root of my application I have a folder called \code where I store all of my C# code. By default, any *.cs files that I create in this \code file get a namespace of MyWebApp\code. I would prefer not to have the "\code... | stackexchange/codereview |
Possible Duplicate:
Shortcut for “null if object is null, or object.member if object is not null”
Some languages have a safe navigation operator that lets you not worry about null reference exceptions.
Example of the language Groovy:
String lname = person.Name.ToLowerCase(); //throws exception if Name is null
String... | stackexchange/codereview |
I'm using Spring 3.0.4-RELEASE, JPA 2.0 with Hibernate as a provider, and JTA JOTM for transactions in my application. I've received the following error when calling entityManager.merge on my entity object:
org.objectweb.jotm.SubCoordinator commit_one_phase
INFO: Rollback during beforeCompletion in SubCoordinator.comm... | stackexchange/codereview |
I have the below given setting in my web.config of my WCF service, this was working fine till today and suddenly started giving the error "An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail." I have verified the time in my server and c... | stackexchange/codereview |
I want do rotate button to 90 degrees but it gets clipped because it rotates arount (0,0). How to make it rotate around center if I don't know it't width in pixels (it's a template for many buttons)
| stackexchange/codereview |
I am using jit infovis javascript component (thejit.org). I have millions of nodes of data and need the rGraph to load on demand/ lazy load data or else it will never render. I can't find any doc on it. Does anyone know if it supports on demand loading and if so how to do it?
Many thanks
Rich
| stackexchange/codereview |
HI,
I have implemented the example MapsDemo in my emulator. But i couldn't got any map instead of this i got empty map which doesn't contain anything, i have generated the map key also and given at menu.xml in layout section. Please help ?
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.