I want to use a queue data structure in my Objective-C program. In C++ I'd use the STL queue. What is the equivalent data structure in Objective-C? How do I push/pop items?
quoted from here:
_function:
push ebp ;store the old base pointer
mov ebp, esp ;make the base pointer point to the current
;stack location – at the top of the stack is the
;old ebp, followed by the return address and then
;the parameters.
sub esp, x ;x is the size, in bytes, of all
;"automatic variables" in the function
What's stored in esp in the above code snippet?
Hi,
I am trying to broadcast a message through the Node.js service socket.io (http://socket.io/) to certain subset of all subscribers. To be more exact, I would like to use channels that users can subscribe to, in order to efficiently push messages to a couple hundred people at the same time.
I'm not really sure if addEvent('channel_name',x) is the way to go.
I have not found anything in the docs. Any ideas?
Thanks
Mat
Hello!I am using Navigation Based Application.I push First ViewController to Second ViewController and From Second ViewController to Third ViewController Now I want to Pop From Third ViewController to First ViewController.I am Performing This task using the Below Code but i application get's Terminate.Please any body give me some proper Guidelines.I can't use pop to RootViewController because it's Different ViewController.Thanks in Advance...
In Third ViewControler i have Written this:
FirstViewCtr *x=[[FirstViewCtr alloc] initWithNibName:@"FirstViewCtr" bundle:nil];
[self.navigationController popToViewController:x animated:NO];
I'm currently looking into the JQuery library for CSS Layout Template module
Is it possible to define the height of a placeholder with *?
Meaning it will push content down if it has to, or fill up any remaining space if the complete content is less then the view port.
This would be really nice to make the whole sticky footer thing much easier and robust.
Hi,
I build a website, that:
reads data from a website by HttpWebRequest
Sort all Data
Parse values of the data
and give out newly
On local server it works perfect, but when I push it to my live server, the double.Parse fails with an error.
So:
- how to track what the double.parse is trying to parse?
- how to debug live server?
Lang is ASP.Net / C#.net 2.0
I am trying to create a Exception class to get and send errors from client to server. I want to catch exception in javascript function and push the details to the web service to write to database.
But i couldn't get how to get which function/line throwed this exception. Is there any way to solve this?
I created a branch on my local Mercurial repository. I want to push to the shared repository so my work can be backed up, but I don't want other project members to see the branch.
What's the standard operating procedure in this case?
I'd like to avoid having the repository get full of developer branches that I don't need to see.
Given graph, how could i represent it using adj matrix?. I have read lots of tutorials, post, slides, etc but i cant get my head round it, i just need that little push.
Is there a way we can concat all field in the table(1 sql statement)(automatic) ?
The reason was before user updated or delete a record,the record will push to another table for future reference.
Hello, I'm very new at USSD developing. I have a question:
Can I retrieve the IMEI number of a MS(Mobile Station) via an USSD PUSH Application?
The idea is to create an application that is pushed by the gateway, and is totally transparento to the Mobile phone user.
Can it be done?
Thanks for reading
Facebook provided the facility to tag friends on the wall post. I want to tag multiple friends in an application.
How do I tag multiple friends in the application. Any pointers? I need to push updates to the walls of all the friends tagged through the application.
Hi,
I have one problem let assume A and B are 2 view controller from A user push to B view controller,In B user starts some download by creating object C(which is NSObject class) and sets B as delegate to C(assign),now user want go back to A then dealloc of B calls object releases, C delegate fails to give call back(crashes).I want to get call and allow user to move to other view controller thats way i am retain the delegate in C class but retain of delegate is wrong ...
what are all solutions ...
Thanks in Advance.
I know of:
http://lua-users.org/wiki/SimpleLuaApiExample
It shows me how to build up a table (key, value) pair entry by entry.
Suppose instead, I want to build a gigantic table (say something a 1000 entry table, where both key & value are strings), is there a fast way to do this in lua (rather than 4 func calls per entry:
push
key
value
rawset
Thanks!
I have a settings page that a user can enter some text and save directly to a combobox. Next time when page loads, combobox is filled in with the previous entered text. Also i have a modify button, so the user can delete or edit a value from the combobox.
My question is, what's the best way to save to user settings on the client with javascirpt/jquery?
I can only think of using an array and then (push/pop).,,Anyone got some bad experience with arrrays?
thx
Hello guys,
I was hoping to get a nice push in the right direction I would like to change the ending of my images sources string... i hope i worded that right.
Anyway my current src's are reading:
<img src="something/something/12345_m.jpg" />
I would like to change it to:
<img src="something/something/12345_t.jpg" />
Any idea guys...Thanks!
I've been working on an iPhone application in XCode and Interface Builder of the Tab Bar project type. After getting a table view of topics (business sectors) working fine I realized that I would need to add a Navigation Control to allow the user to drill into a subtopics (subsectors) table.
As a green Objective-C developer, that was confusing, but I managed to get it working by reading various documentation trying out a few different IB options. My current setup is a Tab Bar Controller with Tab 1 as a Navigation Controller and Tab 2 a plain view with a Table View placed into it. The wiring works: I can log when table rows are selected and I'm ready to push a new View Controller onto the stack so that I can display the subtopics Table View.
My problem: For some reason the first tab's Table View is a delegate and dataSource of the second ta. It doesn't make sense to me and I can't figure out why that's the only setup that works.
Here is the wiring:
Navigation Controller (Sectors) is a
delegate of Tab Bar
Navigation Bar is
a delegate of Navigation Controller
(Sectors)
View Contoller (Sectors) has a view of Table View
Table View (in Navigation
Controller (Sectors)) is a delegate
of First View Controller
(Companies)
Table View (in Navigation
Controller (Sectors)) is a dataSource outlet of First View Controller
(Companies)
First View Controller (Companies)
First View Contoller (Sectors) has a view of Table View
Table View (in First View Controller (Companies)) is not hooked up to a dataSource outlet and is not a delegate
When I click the tab buttons and look at the Inspector I see that the first tab is correctly hooked up to my MainWindow.xib and the second tab has selected a nib called SecondView.xib. It's in the File's Owner of MainWindow.xib where I inherit UITableViewDataSource and UITableViewDelegate (and also UITabBarControllerDelegate) in the .h, and in the .m where I implement the delegate methods.
Why does this setup only work when the Table View in my first tab (View Controller (Sectors)) is a delegate and dataSource of the second tab? I'm confused: why wouldn't it need to be hooked up to the Navigation Controller-enabled tab in which the Table View is seen (Navigation Controller (Sectors))? The Table View seen on the second tab has neither dataSource and is not a delegate.
I'm having trouble getting a pushViewController to fire (self.navigationController is not nil but the new View Controller still doesn't load) and I suspect that I need to work out this IB wiring issue before I can troubleshoot why the Nav Controller won't push a new View Controller onto the stack.
if(nil == self.navigationController) {
NSLog(@"self.navigationController is nil.");
} else {
NSLog(@"self.navigationController is not nil.");
SectorList *subsectorViewController = [[SectorList alloc] initWithNibName:@"SectorList" bundle:nil];
subsectorViewController.title = @"Subsectors";
[[self navigationController] pushViewController:subsectorViewController animated:YES];
[subsectorViewController release];
}
I used two different command x/w and disas at the same address 0x405130,get totally different output:
(gdb) x/w 0x405130
0x405130 <_imp__printf>: 0x77c1186a
(gdb) disas 0x405130
Dump of assembler code for function _imp__printf:
0x00405130 <_imp__printf+0>: push $0x18
0x00405132 <_imp__printf+2>: (bad)
0x00405133 <_imp__printf+3>: ja 0x405109 <_imp___iob+1>
End of assembler dump.
I don't understand why it's like this,can anyone explain it?
I saw this in our codebase the other day:
link.attr('style', map({
color: '#9a4d9e',
cursor: 'default'
}));
map is defined as:
function map(map) {
var cssValue = [];
for (var o in map) {
cssValue.push(o + ':' + map[o] + ';')
}
return cssValue.join(';');
}
Is map necessarily? Is there a shorter way to do this?
It's important to note that the "style" attribute overrides any styles set by a class added/defined in the "class" attribute.
RedGate makes a tool for Microsoft SQL Server that allows you to snapshot the difference between two databases. It generates the scripts needed to update the database schema while preserving the data.
I need to find a tool like this for the Firebird database. We use Firebird in an embedded fashion, and would like to push out schema updates to remote machines with as little hassle as possible.
I am running a PHP - MySQL website, and have set up a remote repository on my own server using Git.
I now want a way to be able to have a production and a test server, and some how be able to push my changes from dev to production easily. and seamlessly.
Please help me!
How i can output character that moves around the perimeter of a rectangle (10*5 or 15*7) in console with TASM?
.MODEL small
.STACK 100h
.CODE
start:
mov ah,03
int 10h
mov cx,10
A:
push cx
mov ah,03
int 10h
mov ah,02h
inc dl
int 10h
mov al,42
int 29h
pop cx
LOOP A
mov ah,4ch
int 21h
end start
I do not know how to solve the problem...
Found myself quite confused today about this.
I create a blank repository locally(hg init), cloned it to working copy, added some code, commited and pushed it(to local repo obviously).
Now I need to share that repository with others. There is a server that has mercurial on it, how do I clone my repository to a remote one such that other developers can access it and pull/push code from/to it?
Hello
I moved my access apllication from DAO into ADO connection. It works better but I am encountering a problem when I enter a value in a form's field then I push the tab button
the screen takes me to the first fields of the form and I lose my activecontrol which is the control of the field in which i enter the value.
N.B.: If I clicked the cursor using the mouse after applying the value in the specified field, it works properly...
Any help will highly appreciated
I am trying to code a shopping cart using Flex 4. I am at the design process and I need to figure out which design pattern to use. I am thinking of using the Singleton pattern. I will have a Product Value Object where I'll save each product's values and the I'll push each product to an array variable in my Singleton class.
Is my logic OK? Is there a better way?
Thanks in advance