When programming, I would like to split one large file(which contains main function) to many small files, so there is one common case: functions in small files can modify the var from main file, so i think extern is very useful!
for instance:
in main.c
extern int i = 100;
in small.c
extern int i;
fprintf(stdout, "var from main file: %d\n", i);
I just want to know is my understanding right?
I am very new to iPhone programming and I was wondering how could I create a separate section for my application in the Settings.app? Like what the Facebook or BeejiveIM or JellyCar apps do. Would I have to declare this dynamically, or could I use Interface Builder?
I am trying to write a pre-qualification programming exam, hopefully using Google Forms... however they seem to be unable to do new-lines in both the questions and the section headers...
My current format is new page for each question, with a "section header" as the main question (because it has a textarea for the "code snippet") and a "multiple choice question" as the ummm... question answer...
Help much appreciated...
Hi,
I want to get the computer names from Active Directory and display it in our SharePoint 2007 site without programming.
Can anybody check and help on this ?
Is it possible by configuring LDAP query at SSP level ?
Awaiting for the reply.
Thanks in advance.
Hi all,
I've been programming in Java for a few courses in the University and I have the following question:
Is it methodologically accepted that every class should implement an interface? Is it considered bad practice not to do so? Can you describe a situation where it's not a good idea to use interfaces?
Thanks.
Ever since I started programming this has been something I have been curious about. But seems too complicated for me to even attempt.
I'd love to see a solution.
1, 2, 3, 4, 5 // returns 6 (n + 1)
10, 20, 30, 40, 50 //returns 60 (n + 10)
10, 17, 31, 59, 115 //returns 227 ((n * 2) - 3)
I am a newcomer to Android. I know the C And C++ programming languages, but I do not know Java . I want to learn Android right from basics, but I could not find any relevant link or e-book that can help me.
Can I begin to learn Android without knowing Java or should i go to learn Java first? From where should I learn Android which should be easy to grasp and learn for a newcomer like me.
I would like to add a favorites tab to my iphone app that i am developing. I am using core data to populate a UITableView and would like in the detailed view to be able to add the selected item to the users favorites.
Would i go about this by adding the selected item to a new array?
I am very new to xcode and iphone programming so as much help and code would be gratefully received.
Hi
I am familier with java programming language I like to extract the data from a website and store it to my database running on my machine.Is that possible in java.If so which API I should use. For example the are number of schools listed on a website How can I extract that data and store it to my database using java.
I'm trying to use Eclipse + PyDev for studying OpenGL programming but when I type
from OpenGL.GL import *
from OpenGL.GLUT import *
IDE becomes extremely slow!
Ok. It isn't a smart idea import to much useless things but it's so useful for learning a new library!
Any help?
PS: I use Ubuntu with Eclipse Galileo.
hello.
In meta-programming number of classes grows quite fast.
Is maximum number of classes modern compiler allows, for example g++, something to be concerned about?
Thank you
Hi there.
Once I read an MSDN article that encouraged the following programming paradigm:
public class MyClass
{
public void Method1()
{
NewCustomException();
}
public void Method2()
{
NewCustomException();
}
void NewCustomException()
{
throw new CustomException("Exception message");
}
}
Do you think this paradigm makes sense? Wouldn't it be enough to store the exception message in a static const field and then pass it to the exception's constructor, instead of encapsulating the whole exception throw?
Hi
im looking (but cant find) for sample app that will show me how to implement UITableView with custom UITableViewCell that is similar to one in the Things app, with smooth animation from read-only view (that hides empty cells) to editable view that shows only cells that can be edited, and custom cell with multiline input with small image. I would appreciate if someone could point me in the right direction. Im new to Cocoa/Objective-C programming but Im familiar with Object Oriented programing concepts.
Hey guys,
We're getting a QA for the first time in our project. We're not sure how to best use him.
We work in an Agile environment. Pair programming, user stories, short sprints (two weeks), daily stand-ups, retrospectives, planning meetings, quick releases etc.
One obviously way to use a tester is to verify bugs fixes and user stories every sprint. Are there any better ways for an Agile team to utilize a tester.
Thanks,
Sri
Not a technical question, but related to IT.
At the moment I work in the open plan office and the guy next to me is talking to himself
while programming. It annoys my collegue and me so much that we are putting the earphones on with music volume set to max.
Does anyone know good and polite solution to shut him up?
What exactly happens, in terms of memory, when i declare something like:
char arr[4];
How many bytes are reserved for arr?
How is null string accommodated when I 'strcpy' a string of length 4 in arr?
I was writing a socket program, and when I tried to suffix NULL at arr[4] (i.e. the 5th memory location), I ended up replacing the values of some other variables of the program (overflow) and got into a big time mess.
Any descriptions of how compilers (gcc is what I used) manage memory?
I'm not sure if this is the right place to post this, but the problem actually belongs to a programming assignment.
Solve the recursion:
T(0) = 2;
T(n) = T(n-1) + 2;
Solution:
T(n) = 2(n+1)
Could someone please show me how they got to that solution?
So, I have noticed that starting an HttpListener is considered impolite according to Win 7. I cannot do so without administrative rights without adding myself to some URL reservation list. In theory, this is alright, but I'd like to make my program as little invasive as possible.
My main other alternative is something like the c++ Network Library, which utilizes boost. This is probably not as simple as a HttpListener though. Will this circumvent the admin rights requirement for listening to some HTTP url?
How does windows handle http listening? Right now I'm just listening to http://+:xxxx/url, I guess it's fully possible to just create a Socket listening at port xxxx and provide my own/third party http implementation?
I have never worked on ejb, when I started programming Spring was already arrived and all my projects have been with Spring only, recently I had one interview and they wanted knowledge of EJB3.0 and so I want to know how does EJB3.0 stack up with Spring Framework and why many projects now a day are with Spring Framework and not with EJB3.0, do not quote me here as I can be wrong
I would really appreciate if difference and benefits of using one over another could be explained from practical perspective.
Recently I did a Java programming exercise successfully which was sent by a recruiting firm, The problem statement goes like this 'There are two text files FI(records abt files and directory information) and FS(containing blocks of data) which represent a file Index and file System respectively and I was supposed to write a static read method in a class which will read the file from the FS depending upon the path string provided using FI' My question is where can I get these kind of exercises to solve, the complexity should be above average to tough.
If I have several OS-X Terminal.app windows open, how can I move one Terminal window to another space?
I'm happy to use any scripting or programming language to achieve this, but would prefer AppleScript or calls to standard frameworks.
(Note this is to move only one window of an application not all windows.)
I'm good at learning new languages and platforms, though whenever I try to learn Reg Ex I cannot make sense of it. I once even used the Regular Expression Designer to try and put some together.
What's a good starting point to understanding what looks like the only rocket-science programming language in the world?
Links to articles, books or anything else that could help me get my grounding would be appreciated.
What is going on?
Is this a result of a programming class assignment or someting?
Find the list at Wikipedia (older revision, somone removed them as non-notable)
http://en.wikipedia.org/w/index.php?title=Comparison_of_File_synchronization_software&oldid=361345181
Hey guys
I'm very new to the whole programming - so far I only have experience with building websites, database etc.
I currently have a website where users can share their online purchases.
I want to build a widget that other websites can integrate on their site. Users should be able to insert their purchases directly through this widget without having to come to my website.
Thats the idea but I have no idea how to go about it - can anyone point me in the right direction.
Thanks