Right now I am using fread() to read a file, but in other language fread() is inefficient i'v been told. Is this the same in C? If so, how would faster file reading be done?
Using Visual Studio 2005
Language: c#
A new to c#
I have software, the software should communicate with gprs devices. So i want to write a protocol, TCP, UDP communication code.
Can any one give some idea for writing a source code and some sample code also.
Using Objective C, cocoa touch framework.
I have few image files in my iphone application. Some file names are in english and some are in japanese like "????????Icon .png"
I'm creating views programatically and not using IB.
My code is not able to read files with name in japanese language.
How can I get this work done.
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?
Hello
Where can I find examples of code, written in "Unified Parallel C"?
I also interested in normative documents about this language (standards, reference manuals, online-accessible books and courses). What extensions were added to C to get UPC?
Is this dialect alive or dead?
Hi everyone.
I want to search my link on other pages by passing url address.
After passing the url it should return some boolean value which will define the existence of my link.
Preferred language ASP.net/C#
If it is possible, Please help me.
I have a help file for my program and was asked to add a description of the menus in a toolbar as the user browses them. So I thought I could just use the beginning of the menu's description of the help but just cant find how to access the contents of it.
I saw WinHelp has a macro language, so I figured maybe through this, but I couldnt find any references on this around.
Anybody now some pointers or examples of hot to do this?
Hello, I am wondering what the uses of C++/CLI is. It seems to me that it is basically C++ running on .Net, am I wrong in this thinking? What is it good for? Why not just use C# or some other truly managed language instead?
Has anyone actually used Wt?
Did it work well?
Did you experience certain limitations? Or advantages?
Note:
Please avoid the discussion of whether C++ is suited to be a web development language. I just want to give Wt a try because it seems like a fun thing to do.
I have looked at a couple of books and all I have looked at were just discussing the technicalities of OOP. By technicalities I mean, here's a concept, here's some code, now get working. I have yet to see a book that discusses the architectural process, what are the ways of doing this, why doing this is bad, how to actually incorporate design patterns in a real-world project, etc.
Can you recommend a good resource or book? I am mainly programming with PHP but a language-agnostic book/resource would do :)
i need to set up a proxy for cross-domain javascript.
the problem is, i tried the simple fgets() , i discovered, javascripts are ignored and non-functional.
is there a proxy library that handles all these ? it can be in any scripting language.
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?
consider a standard c# 'function'
public void foo()
{
//some code
}
In c or c++ this is called a 'function' - even if taking no parameters and returning no value. In another language maybe it would be a 'procedure'.
In object orientation speak it would be called a 'method' if a class member.
What would be the correct term to use in c#?
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
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++.
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 ?
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!
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
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.
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.
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.
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.
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?
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 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.