I have a UITableView and when I build it only two rows will be displayed. Each section has more than two cells to be displayed, I am confused since they are all done the same?`#import #import "Store.h"
import "VideoViewController.h"
@implementation Store
@synthesize listData;
// Implement viewDidLoad to do additional setup after loading the…
I am helping an old scientist with some problems and have 1 program that he found and
modified about 20 yrs. ago, and runs fine as a 32 bit os\2 executable but i need it to
run under dos! I am not a programmer but a good hardware & software man, so I'am
pretty stupid about this problem, but here go's I have downloaded 6 different…
I have UITableView with very large cells with lots of content (more than one screen height). I need to scroll UITableView to a certain position within those cells. I've found method scrollToRowAtIndexPath:atScrollPosition:animated: which works just fine if you got small cells (less than one screen), then you can just command…
I want to use the f.label method to create my form element labels, however - i want to have the form element nested inside the label. Is this possible?
-- From W3C --
To associate a label with another control implicitly, the control element must be within the contents of the LABEL element. In this case, the LABEL may…
I've just integrated RestKit with a Mac application for communicating with a web service. After much confusion, I have successfully got requests and responses working using it.
The problem I am now finding is that when I want to make a POST request.
I have created a RKRequestDescriptor with a mapping for a whole number…
I am a newcomer to data warehouses and have what I hope is an easy question about building a star schema:
If I have a fact table where a fact record naturally has a one-to-many relationship with a single dimension, how can a star schema be modeled to support this? For example:
Fact Table: Point of Sale entry (the…
I have an object file, which I'd like to make into a Mach-O binary(I'm on Mac OS 10.6). Running ld source.o produces the following output:
Undefined symbols:
"_printf", referenced from:
_main in source.o
ld: symbol(s) not found for inferred architecture x86_64
How can I reference libSystem(or whatever…
I am not sure what you call it in other technologies, on the IBM i (or iSeries) we call it overlays. The overlay is an image of a form that is stored on the server then a program generates the form with fields from the database so you can eliminate preprinted forms.
I had a problem last year with the method I…
In the following gcc.gnu.org post, Nathan Myers says that a C++ skills test at SANS Consulting Services contained three errors in nine questions:
Looking around, one of fthe first on-line C++ skills tests I ran across was:
http://www.geekinterview.com/question_details/13090
I looked at question 1...
…
I am having a problem with a UITextField's text being blurred/anti-aliased even with a standard font size. The text will appear crisp when the control is the first responder, but blurred again when it loses focus:
Does anybody know how to fix this?
I'm trying to free g_strdup but I'm not sure what I'm doing wrong.
Using valgrind --tool=memcheck --leak-check=yes ./a.out I keep getting:
==4506== 40 bytes in 10 blocks are definitely lost in loss record 2 of 9
==4506== at 0x4024C1C: malloc (vg_replace_malloc.c:195)
==4506== by 0x40782E3:…
I'm writing a C++ unit testing framework and I would like it if it could be integrated with Eclipse CDT. In other testing suites that work with Eclipse, JUnit for example, the user is provided a graphical list of all test cases and their results. Something like this would be the ideal.
I'm just…
I'm having some issues trying to pull a shared contact using the gdata api for python that Google provides. Here is what I have to get the contacts.. but they are not all listed there
feed = gd_client.GetContactsFeed()
for i, entry in enumerate(feed.entry):
print entry.title
I can't figure…
I remember having read a very good guide to writing collections. By that I mean, it described using macros to generate types with type parameters, kind of like C++ templates. I'm not sure if it was written by Rusty Russell, but it was someone I recognized. It was posted on hackernews or…
For my assignment we are suppose to make a clock. We need variables of hours, minutes, and seconds and methods like setHours/getHours, setMinutes/getMinutes, setSeconds/getSeconds. Now the parts of the assignment that I am having trouble on is that we need a addClock() method to make…
how do you access the class attribute of a in a jQuery selector statement?
for example
<asp:CheckBox runat="server" ID="cbTest" Text="Cb Test" FieldName="1st Test Check Box" class="toggleBox"/>
this:
$(':checkbox').toggleAttr("checked", true, false)
accesses the…
Can anyone point me to a good tutorial on creating a bootable Linux CD from scratch?
I need help with a fairly specialized problem: my firm sells an expansion card that requires custom firmware. Currently we use an extremely old live CD image of RH7.2 that we update with…
What I have going on is a listview being dynamically created from a previous button click. Then ti starts a background worker in which should clear out the listview and populate the iistview with new information every 30 seconds.
I continously get: Cross-thread operation…
I installed Cocoa Browser Air at home from the same installation file (for 2.4.1) that works fine at work.
Its info for Mac OS X 10.6 looks OK, but there's nothing under either iPhone 3.1 or 3.2.
I've installed the appropriate Documentation Sets in Xcode…
i've been using the following query:
select LEN(columnname) as columnmame
from dbo.amu_datastaging
This works, but is there a way to only return the greatest value instead of all the values?
So if i return 1million records and the longest length is…
I have seen some questions here regarding what I want to achieve and have based what I have so far on those answer. But there is a slight misbehavior that is still irritating me.
What I have is sort of a recovery feature. Whenever you are typing text,…
I have a UITableView backed by an NSFetchedResultsController which may trigger updates at any time. If the user is currently reordering rows, applying these updates will cause an exception because the table view has temporarily taken over and you get…
Let's say I have a variable t that's set to this:
datetime.datetime(2009, 7, 10, 18, 44, 59, 193982, tzinfo=<UTC>)
If I say str(t), i get:
'2009-07-10 18:44:59.193982+00:00'
How can I get a similar string, except printed in the local…
In cmd.exe, I can execute the command "copy c:\hello.txt c:\hello2.txt" and it worked fine.
But in my C program, I ran this piece of code and got the following error:
#include <iostream>
using namespace std;
int main()
{
…