hi
I want to implement Top-Down Parsing by c# language is there any source to show me the way. I mean good method and description to implement or algorithms.
I have read a few questions here where people say that PHP is not the 'best' language for web development compared to python, ruby.
What about PHP makes it have such a bad rep?
I can't seem to save data to a custom instance object in my AppDelegate. My custom class is very simple and is as follows:
Person.h
...
@interface Person : NSObject {
int _age;
}
- (void) setAge: (int) age;
- (int) age;
@end
Person.m
#import "Person.h"
@implementation Person
- (void) setAge:(int) age {
_age = age;
}
- (int) age {
return _age;
}
@end
I then create an instance of Person in the AppDelegate class:
AppDelegate.h
@class Person;
@interface AccuTaxAppDelegate : NSObject <UIApplicationDelegate> {
...
Person *person;
}
...
@property (nonatomic, retain) Person *person;
@end
AppDelegate.m
...
#import "Person.h"
@implementation AccuTaxAppDelegate
...
@synthesize person;
- (void)applicationDidFinishLaunching:(UIApplication *)application {
// Override point for customization after app launch
[window addSubview:[navigationController view]];
[window makeKeyAndVisible];
}
- (void)applicationWillTerminate:(UIApplication *)application {
// Save data if appropriate
}
#pragma mark -
#pragma mark Memory management
- (void)dealloc {
[navigationController release];
[window release];
[person release];
[super dealloc];
}
@end
Finally, in my ViewController code I grab a handle on AppDelegate and then grab the person instance, but when I try to save the age it doesn't seem to work:
MyViewController
...
- (void)textFieldDidEndEditing:(UITextField *)textField
{
NSString *textAge = [textField text];
int age = [textAge intValue];
NSLog(@"Age from text field::%i", age);
AppDelegate *appDelegate =
(AppDelegate *)[UIApplication sharedApplication].delegate;
Person *myPerson = (Person *)[appDelegate person];
NSLog(@"Age before setting: %i", [myPerson age]);
[myPerson setAge:age];
NSLog(@"Age after setting: %i", [myPerson age]);
[textAge release];
}
...
The output of the above NSLogs are:
[Session started at 2010-05-04 18:29:22 +0100.]
2010-05-04 18:29:28.260 AccuTax[16235:207] Age in text field:25
2010-05-04 18:29:28.262 AccuTax[16235:207] Age before setting: 0
2010-05-04 18:29:28.263 AccuTax[16235:207] Age after setting: 0
Any ideas why 'age' isn't being stored? I'm relatively new to Obj-C so please forgive me if I'm missing something very simple!
Hi guys.
I'm trying to make a media Download bar for Chrome Browser like Real Player's one ( a DLL plugin )
Whenever you open a page which contents "media stream" like Youtube..., it will show a download bar at the left-top corner of the flash player - allow you to download this video/song to your computer. How does it capture the video url of the flash-player? Which method and language( C++ or C# ) do I have to use? Thanks in Advance :) ( and so sorry for bad English )
The good thing about books targeting a layman is that it is usually very engaging to read (not dry and boring like, say, school/university books).
Charles Petzold's Code: The Hidden Language of Computer Hardware and Software
does this for explaining the underlying hardware in computers.
Is there a similar book for understanding computer networking?
Hey. I'm a software and web developer for ~3 years, and I want to start learning 3D network game programming.
What is the most modern & fastest way to write 3D PC games? What language? For graphics, should I use a graphics API like Direct3D/OpenGL or is there something less painful?
What math/physics skills should I know before starting?
Thank you.
With alle the new paralell programming features in .NET 4.0, what would be a a simple and fast way to implement the producer-consumer pattern (where at least one thread is producing/enqueuing task items and another thread executes/dequeues these tasks). Can we benfit from all these new APIs? What is your preferred implementation of this pattern?
Hello
There are some simple entities in an application (e.g containing only id and title) which rarely change and are being referenced by the more complex entities of the application. These are usually entities such as Country, City, Language etc.
How are these called? I've used the following names for those in the past but I'm not sure which is the best way to call them:
reference data
lookup values
dictionaries
thanks
I like the Android platform. Actually, with some friends, we even participate to the ADC with the Spoxt project.
But Java is not my favourite language at all. We are working on a S60 version and this platform has a nice Python API. Of course there is nothing official about Python on Android, but since Jython exists, does anybody know a way to let the snake and the robot work together ?
over the years i have been employed in a permanent position with firms that did their development work in Windows SDK, VC++, and most recently Java; in my own eyes, I am language independent.
Should I move from Java to Delphi (assuming pay-scale remains unchanged)?
I'm concerned because, for the most part, the net presents a relatively bleak picture for this particular skill.
So I already have a working implementation of StructureMap with the WCF service (including custom instance provider, behaviors, etc.)
When I try to have an object that is instantiated only once per user request, I use the InstanceScope.HttpContext and it throws because the context is null.
Do anyone have a proper way of doing that?
We're trying to script a cad program, and this is the example for controlling the date in our design slugs, but I don't even know what language it is to know what to do with it.
! LIBEDATE
def &d$ &ret$
set &d$ = rstr(`/`,` `,#d$);
set &ret$ = word(&d$,2),`/`,word(&d$,1),`/`,subs(word(&d$,3), -2, 2)
How to call the function in Objective-c.
for Example:-
I define the function in header (.h file):-
-(void)abc
and implement this function in implementation file( .m file):-
-(void)abc
{
//.....
///....
}
now how would i call this function on that place where i need it..?????
Basically I don't know from where to start, I need to add a line script for my application that is not so complicated, just to execute pre-defined commands, for instance:
command New Invoice -- create new invoice
command customer profile -- open customer form where cust id = CustID
command run End-Of-Day - run the end of day process
command scr 1020 -- open form id = 1020
How can I start?
I have no problem of recommending any third party components (parsers,evaluators,etc..).
whats missing is the basic structure no details, just a theory for implementation.
Thanks,
Objectberg
Anyone know of a good implementation of this whose license is compatible with non-free iPhone apps?
As suggested in this question, Boost looks absolutely wonderful. But as best I can tell, it is only available in C++.
http://stackoverflow.com/questions/2328258/cumulative-normal-distribution-function-in-c
While studying the Collection API, we find that some methods (add, remove,...) may throw a java.lang.UnsupportedOperationException if the current implementation of the Collection does not support those functionalities.
Is there,actually, in the JDK, a concrete Collection that does not support those methods ?
Thanks a lot for your answers.
Anyone have a good reference guide for GQL (query language for google appengine datastore)?
I find the reference guide on the google appengine site very limited with examples
Can anyone point to programming language which has python-like syntax, but from the very beginning was designed to generate native code? I'm aware of Boo only, but it uses .net, not native code generation. Well, if nothing else than python-like languages which generate .net/java bytecode are fine too.
We’ve got an interesting requirement that we’ll want to support multiple languages at runtime since we’re a service. If a user talks to us using Japanese or English, we’ll want to respond in the appropriate language. FxCop likes us to store our strings in resource files, but I was curious to know if there was an integrated way to select resource string at runtime without having to do it manually.
Bottom Line: We need to be able to support multiple languages in a single binary. :)
Which features do you wish were being pencilled in for future .Net releases? I'm curious to see what other language features I'm not currently aware of.
I am wondering what the idiomatic way to render special language characters is using Handlebars.js templates. When I render the normal html I can use something like the Spanish lowercase e, é, and it renders as expected. When I pass the same text as a string to my Handlebars template I just see the characters é.
I have tried creating a Handlebars helper that used jquery to render the text using .html() then returning the .html() of the tmp element and I get the same results.
Hi, I am planning to participate in development of a code written in C language for Monte Carlo analysis of complex problems. This codes allocates huge data arrays in memory to speed up its performance, therefore the author of the code has chosen C instead of C++ claiming that one can make faster and more reliable (concerning memory leaks) code with C.
Do you agree with that? What would be your choice, if you need to store 4-16 Gb of data arrays in memory during calculation?