I already know C++ console programming. So shall i learn Qt for c++ or c# first?? I eventually plan to learn both anyways. Also, how long will each one take. The only programming language i know is c++.
Is there any API or a jQuery plugin that allow me to highlight a code on my website?
For example
<pre code="c#">
var x = new StringBuilder();
var complex = new Complex();
</pre>
<script type="text/javascript">
$("pre[code]").codehighlight({ language: "c#" });
</script>
Something like that?
Hi,
I often cross this kind of code transformation (or even mathematical transformation)
(python example, but applies to any language)
I've go a function
def f(x):
return x
I use it into another one.
def g(x):
return f(x)*f(x)
print g(2)
leads to 4
But I want to remove the functional dependency, and I change the function g into
def g(f):
return f*f
print g( f(2) )
leads to 4 too
How do you call this kind of transformation, locally turning a function into a scalar ?
I have a list of items sorted alphabetically:
list = [a,b,c,d,e,f,g,h,i,j]
I'm able to output the list in an html table horizonally like so:
| a , b , c , d |
| e , f , g , h |
| i , j , , |
What's the algorithm to create the table vertically like this:
| a , d , g , j |
| b , e , h , |
| c , f , i , |
I'm using python, but your answer can be in any language or even pseudocode.
Thanks
Java is not my main programming language so I might be asking the obvious.
But is there a simple file-handling library in Java, like in python?
For example I just want to say:
File f = Open('file.txt', 'w')
for(String line:f){
//do something with the line from file
}
Thanks!
We are in web era standalone applications are almost gone everyone wants their internet application to run inside browser, programming languages like Ruby, Python and scala are becoming more and more mainstream.
Sometimes I wonder what these programming language offer which make them top choice of IT companies, if I plan to become a freelance web developer is it worth learning C# or Java. I read beginner's book for both of them, but to master any of them require some time investment.
When searching online for object oriented concepts such as the composite design pattern I often found them represented in the LePUS3 notation. I am not really familiar with this
modeling language.
Is it something I should prefer over UML?
I'm looking to pass an anonymous function to another function, but it doesn't seem to be working as I'd like.
I've attached the code, I think it'd give you a better idea what I'd to do.
<script language="javascript" type="text/javascript">
function do_work(success) {
success;
}
do_work(function () {
alert("hello")
});
</script>
Thanks in advance for any help.
Before I used .jsp pages for jsf, and the below code was pretty fine
<script language="javascript"
src='<%= renderResponse.encodeURL(renderRequest.getContextPath()
+"/resources/jsCropperUI/scriptaculous.js?load=effects,builder,dragdrop") %>' >
</script>
Now, I'm using .xhtml with RichFaces, and the below code does not work
<a4j:loadScript src="/resources/jsCropperUI/scriptaculous.js?load=effects,builder,dragdrop"/>
Exception is
Static resource not found for path /resources/jsCropperUI/scriptaculous.js?load=effects,builder,dragdrop
How can I fix this?
I will have publications (news papers), under these publications there will be editions [location and language] and under these there will be offers and offers will have products.
currently i have created all as modules i.e. publication to add / edit /delete publication, edition to add / edit/ update editions and so on. the problem is how can i get list of all publication when I am creating a edition and same way how can i get list of edition and publication when i am creating a offer.
please help/
regards,
saurabh
Hi all,
I am new to this kind of application and looking for some sample code how to connect to remote server using SSH , execute commands and get output back using java as programming language.
Thanks in advance.....
Regards,
Devayani
This question was inspired by What features would you like to see added to C++? (also see What features do you miss in C++?).
C++ is a great general-purpose language, but perhaps too general and feature-rich: multiple inheritance, operator overloading, manual memory management, templates, smart pointers, virtual destructors, legacy frameworks (think MFC), and I could go on.
Is there any one feature or aspect of C++ that you would like removed to make our lives easier as C++ developers?
One feature per answer, please.
Hi,
I came to know that JRE /JVM was not built using Java. The Sun JRE was built in C and IBM JRE was built in SmallTalk (First Object Oriented Language). Pleas help me with answer.
Thanks in advance.
Hi All,
I am using <script> inside the body tag.
<script type="text/javascript" language="javascript">
$('#audioVolume').text($('#audioVolume').text(Math.round((document.mediaPlayer.Volume + 2000) / 10) + "%"));
</script>
Error: Microsoft JScript runtime error: 'undefined' is null or not an object.
Need: I want to access the html elements in <script inside the body tag.
When I wrote best I meant:
Speed,
Have an IDE, a debugger,
Compiling to machine code or some other language,
Quality of implemenation and,
Completeness.
I'm interested in programming languages well suited for embedded programming.
In particular:
Is it possible to program embedded systems in C++?
Or is it better to use pure C?
Or is C++ OK only if some features of the language (e.g. RTTI, exceptions and templates) are excluded?
What about Java in this domain?
Thanks.
I was just reading a bit about the HQ9+ programming language ( http://esolangs.org/wiki/HQ9 , http://en.wikipedia.org/wiki/HQ9%2B and http://www.cliff.biffle.org/esoterica/hq9plus.html ), and it tells me something about a so called 'accumulator' which can be incremented, but not be accessed. Also, using the + doesn't manipulate the result:
code
H+H
result
Hello World
Hello World
Can anyone explain me how this works, what this does and if it even makes any sense? Thanks
In Java how can I take the data of my file on my display screen?
I want to use data in my file and also want that data to be displayed on my output screen when I execute my program. Can any body please help by providing me such example in Java language. Thank you!
I also want the books to be no older than 1 year old. And by textbook i mean i want the author(s) to go into the syntax,semantix,structure of the programming language as well as provide questions/mini projects to test what you learned after every section/chapter.
Is Test Driven Development limited to OO? Or is it possible/useful to use it in conjunction with a procedural language? I have to start a greater project in C the next few weeks and I'm thinking of ways how to the developing.
I have the following questions concerning the differences between the four options:
What is the main difference between the four options?
Which of the above support int64_t or long long without suffix LL. I want a data type of the range 2^63 - 1
If your answer to my second question is not C(gcc 4.3.2) , whether the code I write in C(gcc 4.3.2) for C language will be valid in rest of the three options or do I have to modify something, then what will be those modifications.
Was discussing over lunch why several ports of languages to the .net framework are prefixed with 'Iron'.
e.g.
IronPython
IronRuby
IronLisp
IronScheme
IronPHP
Anyone out there know?
(language list sourced from http://www.dotnetpowered.com/languages.aspx)
Hello,
I have been coding a site in pure HTML/CSS - using no server-side language.
I was wondering if anyone had any feedback - is there anything that you would change etc...?
Many Thanks,
J
View Site
In this article : http://publib.boulder.ibm.com/infocenter/macxhelp/v6v81/index.jsp?topic=/com.ibm.vacpp6m.doc/language/ref/clrc03defst.htm
What's means the sentence "In C, a structure member may be of any type except "function returning T" (for some type T)"
Thanks for all the answers!
I have seen this sample written in Ruby code, how i can simulate it in C language?
Open3.popen3(command) do |stdin, stdout, stderr|
@stop_stdin = stdin
while !stdout.eof do
output = stdout.read(1024 * 100)
list_pipes.each do |out|
out.print output
end
end
end