I'm writing a Firefox addon that is triggered whenever a word is highlighted. However I need a script that detects when a word is highlighted, and I'm stuck. An example would be nytimes.com (when you're reading an article and you highlight a word, the reference icon pops up). However the nytimes.com script is super complex. I'm 16 and not much of a programmer, so that is definitely way out of my league.
I am a fairly capable Ruby scripter/programmer, but have been feeling pressure to branch out into C++. I haven't been able to find any sites along the lines of "C++ for Ruby Programmers". This site exists for Python (which is quite similar, I know). Does anyone know of a guide that can help me translate my Ruby 'thoughts' into C++?
I had a website made for me a long time ago, and the programmer did it in CakePHP. I'm now editing his scripts.
I added a couple columns to a table, and found that doing saveField() on the new column does not do anything. How do I make CakePHP recognize the new columns?
I'd appreciate your help. I'm not too familiar with CakePHP, so please go easy on me =)
i am a fairly new iOS programmer, and I've lately been having trouble with my multi view app. Im using a paged based application with two view. I just don't seem to be able to make an IBAction that allows me to switch between each view. i tried using:
[self presentModalViewController: SecondViewController animated: YES];
but i keep getting an error that says:
"use of undeclared identifier 'SecondViewController'
I hear all this stuff about crazy ways to build iPhone apps using Ruby or C# under .NET or the like. Even stuff about developing apps on Windows using Java, or auto-generated apps using Flash CS5 or something.
Now, I've never really spent any time at all investigating these claims—I just brushed them off as clumsy or cumbersome or down-right claptrap—but I'm a proud Objective-C programmer who's perhaps a little worried as to whether there's any truth in all of this?
hi everyone,
I need a help, I'm doing survey questionnaire on following topics
1- pair programming
2- measuring programmer productivity
3- software metrics
so what are questions should I ask ? please , could anyone help me ?
thanks in advance.
I think the concept of Python's doctests is brilliant, and as a C++ programmer at a real-time shop, I'm quite jealous. We basically have no unit test capability, which is a severe hindrance. I've seen C++Unit, etc, but is there anything that can extract test cases out of comments like Python's doctests rather than putting them in the code directly?
I heard some people complaining about including the windows header file in a C++ application. They mentioned that it is inefficient. Is this just some urban legend or are there really some real hard facts behind it? In other words, if you believe it is efficient or inefficient please explain how this can be with facts.
I am no C++ Windows programmer guru. It would really be appreciated to have detailed explanations.
I'm working on an auto calculation form which is a total column will change after a radio and a dropdown is clicked. I can make the total change for both dropdowns but the problem occurs when I tried to add a radio option. Here is my code.
HTML
Ages 10+:
<select id="Adult" name="Adult">
<option selected="selected" value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
</select>
<br />Ages 3-9:
<select id="Child" name="Child">
<option selected="selected" value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
</select>
<br />Food
<input type="radio" name="food" id="food0" value="0" />
<label for="food0">No</label>
<input type="radio" name="food" id="food1" value="10" />
<label for="food1">Yes</label>
<table width="100%" border="1" align="center">
<tr>
<td>Product</td>
<td>Ages 10+</td>
<td>Ages 3-9</td>
<td>Food</td>
<td>Price</td>
</tr>
<tr>
<td>2 Day Ticket</td>
<td>$235.00</td>
<td>$223.00</td>
<td><span id="food">0</span>
</td>
<td>$<span class="amount" id="2DayTotal"></span>
</td>
</tr>
<tr>
<td>3 Day Ticket</td>
<td>$301.00</td>
<td>$285.00</td>
<td><span id="food">0</span>
</td>
<td>$<span class="amount" id="3DayTotal"></span>
</td>
</tr>
<tr>
<td>4 Day Ticket</td>
<td>$315.00</td>
<td>$298.00</td>
<td><span id="food">0</span>
</td>
<td>$<span class="amount" id="4DayTotal"></span>
</td>
</tr>
<tr>
<td>5 Day Ticket</td>
<td>$328.00</td>
<td>$309.00</td>
<td><span id="food">0</span>
</td>
<td>$<span class="amount" id="5DayTotal"></span>
</td>
</tr>
</table>
JavaScript
var numAdult = 0;
var numChild = 0;
$("#Adult").change(function () {
numAdult = $("#Adult").val();
calcTotals();
});
$("#Child").change(function () {
numChild = $("#Child").val();
calcTotals();
});
$('input[type=radio]').change(function(evt) {
$('#food').html($(this).val());
});
function calcTotals() {
$("#2DayTotal").text(235 * numAdult + 223 * numChild);
$("#3DayTotal").text(301 * numAdult + 285 * numChild);
$("#4DayTotal").text(315 * numAdult + 298 * numChild);
$("#5DayTotal").text(328 * numAdult + 309 * numChild);
}
The issues are:
I'd like the food column change to it's value when a radio is click. It works only the first id.
After a radio is clicked. A fumction calcTotals() is called to sum an additional food cost.
Demo here : http://jsfiddle.net/4Jegn/178/
Please be advice.
Another programmer was mentioning that they haven't found a use case for using a linked list data structure in any professional software in his career. I couldn't think of any good examples off the top of my head. He is mostly a C# and Java developer
Can anyone give some examples where this was the correct data structure to solve a particular real world problem?
Related: What is a practical, real world example of the Linked List?
HI I am a new java programmer (very new).
What I want to do/test is (not sure if its recommendable or doable?), we know that
System.out.println("Message");
will output the "Message" in command prompt. Is it possible to display the current time, without having to repeatly use the system.out.println()?
Name, like instead of displaying:
10:00:01
10:00:02
10:00:03
I wand to have liek this:
10:00:0X where X will continue counting
I've written an Android app wich various abstract classes that perform useful functions. These functions could be leveraged in other apps.
I want to share a class module with another programmer, but I don't want to share the source code. I would like to share a .class file but I'm not sure how to do the following:
Compile an Android .java file into .class
What does the receiver of the .class file have to do to use that .class in their project? (using Eclipse environment)
Thank you very much
I am a beginner Java programmer. I am attempting to make a simple text editor. I have got the text from the text field into a variable that's a String, called "text".
My question is, how can I save the contents of the "text" variable to a text file?
Thank you!
I'm thinking about using BlogEngine.NET to launch my blog. I'm a C# programmer and was wondering was BlogEngine.NET has in the belly.
Does it scale well? Is it caching properly? Is it memory intensive? Can you easily add/remove functionality?
I also accept any hosting recommendation :)
I am still relatively new to programming and as I start to write longer and more complex codes, it gets very confusing and hard to reread. Are there some general good practices that every programmer should use?
hey every one
can some one help that , how can start XML and Html and what i have to start first and what steps should I take , and because I know Objective c as iphone programmer but i what to know more about web base application so please some one help me with steps should I take and as beginner?
thanks
I was asked of this question when mentor an entry-level programmer, I was thinking of this compile + link process so official and usual that I never think about why.
One thing I could think of is to improve the development productivity, but should there be any other more compiler-related reasons?
Hi guys.
First I want to say is that I am 37 years old and not from programmer background (actually from biology). And my question is should I start learning Java? I have coded in PHP and JavaScript for a year and a half. Every answer would be appreciated.
Thanks in advance
Bobi.
I'm a reasonably skilled programmer, and I'm interested in branching out into some new languages -- python, specifically -- but frankly I do NOT want to go through a tutorial that assumes I know nothing about programming. I want a tutorial -- again, preferably for python -- that assumes I'm just unfamiliar with the language itself and describes the ways I can use the language to solve problems.
Does such a beast exist? I mean, other than the Python wiki?
hello all
i stared to learn zf for some month , i like to know why other programmer have chocen zend-framework and why do you like zend-framework?
What reasons made you choose Zend-framework?
has zend-framework Satisfied you?
thanks
After reading several questions regarding problems with compilation (particularly C++) and noticing that in many cases the problem is a missing header #include. I couldn't help to wonder in my ignorance and ask myself (and now to you):
Why are missing headers not automatically checked and added or requested to the programmer?
Such feature is available for Java in Netbeans for example.
SUR I HAVE NO KNOWLEDGE OF JAVA .BUT I DEFINTELY WANT TO BECOME A JAVA PROGRAMMER. AND I WANT TO MAKE MY OWN GAME WITH THE HELP OF JAVA . SUGEST ME THE RIGHT PATH . AND HOW SHOULD I PROCEEDE WITH MY CAREER
as far as i read from here, the fact that captchas are not 100% secure.what can be used instead of capcha?,as a programmer what do you think? how to solve this issue?
I asked a question like this in an interview for a entry level programmer:
var instance1 = new myObject{Value = "hello"}
var instance2 = instance1;
instance1.Value = "bye";
Console.WriteLine(instance1.Value);
Console.WriteLine(instance2.Value);
The applicant responded with "hello", "bye" as the output.
Some of my co-workers said that "pointers" are not that important anymore or that this question is not a real judge of ability.
Are they right?