Can somebody write me a code, how to view data from tables in c# (using select statement)?
I tried it myself and posted the code here, but i didn't get it right.
Please help!
I'm looking for a "best practice" to document my C code. Like in any project I have some header files ".h" and the respective source file ".c"
In the header file what kind of comment you put in? And in source files?
The question arise up because since I commented well my header files, the c files looks like a mess.
What's your best practices in keeping the code well commented?
In my javascript I have some bits of code specifically used for debugging which I don't want to include in the live site. Is there a way I can semi-comment these bits of code so that they run as javascript normally, but that yui compressor thinks they're comments and removes them?
What do I need to include if my iPhone App uses some third party code under an opensource licence for example BSD or MIT, before submitting for AppStore approval?
Is it enough if I let original code with it's comments untouched or do I need to include a readme file where I describe that I used "xyz's framekwork under licence abc" or something like that?
i just wanted to use eclipse tptp, a framework for static code analysis but the support for code analysis ended with tptp 4.5.0.
1. it seems that this version can not be integrated into the current eclipse galileo. am i right?
2. which language independant framework for eclipse would you use as an alternative for tptp static analysis which works with eclipse galileo?
Firebug is certainly a wonderful tool for javascript debugging; I use console.log() extensively.
I wanted to know if I can leave the Firebug-specific code in production.
What's the best practice? Commenting the debug code?
I'm using Code::Blocks 8.02 in Ubuntu 9.10. If I leave Code::Blocks open for several hours, I notice that it's consuming a LOT of CPU. If I actually click on the application, the CPU usage immediately drops. Is anyone else having this problem? Is there a solution?
I've looked around on Google for tutorials on setting up SDL with it. The problem is that all the tutorials for linking to SDL with Code::Blocks is with the Mingw compiler, and never with VC++ 2008 Compiler.
I have the SDL for VS downloaded at C:\SDL. The problem is, I can't get it to work with Code::Blocks.
What do I need to do? I tried following the tutorials for Mingw but they don't seem to work.
In my javascript I have some bits of code specifically used for debugging which I don't want to include in the live site. Is there a way I can semi-comment these bits of code so that they run as javascript normally, but that yui compressor thinks they're comments and removes them?
In Internet Explorer 7, this code executes consistently in 47 ms:
function updateObjectValues() {
$('.objects').html(12345678); // ~500 DIVs
}
however, this code executes consistently in 157 ms:
function updateObjectValues() {
$('.objects').html('12345678'); // ~500 DIVs
}
Passing a number is over 3x faster than a string. Why are these results so dramatically different? And, is there any way to help the performance of the string?
Dear all,
I want to develop a yahoo client (core java) which connects to yahoo messenger ,checks for the authentication and login through java code.
I have already used jymsg api ,but since yahoo changed its protocol after august 15,2009 i m not able to connect to yahoo server through java code.Is there any api or source available?Do i need to change the authentication method.help in this 2 resolve problem.
What do I need to include if my iPhone App uses some third party code under an opensource licence for example BSD or MIT, before submitting for AppStore approval?
Is it enough if I let original code with it's comments untouched or do I need to include a readme file where I describe that I used "xyz's framekwork under licence abc" or something like that?
I have an odd behavior with code clean up for c# in visual studio 2008 Team Developer Edition. Whenever I clean up my code using "Full Cleanup" it replaces all var declaration with explicit type declarations. But I have set the appropriate settings under "Inspection Severity" "Use var keyword when initializer explictly declares type" and "use var keyword when possible" to "Show as Error"
Is there any other setting I need to set or is this a known bug?
Hi,
When executing a ajax call i received a http error code 12019. This call works most of the time, but in rare occasions i get this errorcall. I found that this error code is described as "The requested operation cannot be carried out because the handle supplied is not in the correct state." (@msdn). Can anybody tell me what this means?
Thanx,
Bas Hendriks
I'm trying to find a tool to check for coding style in python.
For php I've seen there is the Code Sniffer, and a small perl script used by Drupal. Is there such a tool for python code?
Thanks
Hello,
Can I load javascript code using <link> tag in my website ?
For example I have a javascript file, test.js, which contains the simple code alert('hello');
Can I make the popup window appear using:
<link href="test.js"></link>
Thanks
Hi!
I try to obfuscate my project, but not all code. I try obfuscate only code from 1 package.
How can i do it in yguard (or somewhere else, proguard?)?
Thanks!
Hello,
Im making an application in cocoa and wanted to see if some strings in it were easily accessible so I ran OTX on it and sadly all of my code was found. Is there a method I can use to make my code more "secure" or at least encrypt/hide the strings? The reason I want to encrypt the string is it's a password for a server. I don'd need it really secure I just don't want the password to be so easy to find.
Thanks for any help
Does code in the constructor add to code in subclass constructors? Or does the subclass's constructor override the superclass? Given this example superclass constructor:
class Car{
function Car(){
trace("CAR")
}
}
...and this subclass constructor:
class FordCar extends Car{
function FordCar(){
trace("FORD")
}
}
When an instance of FordCar is created, will this trace "Car" and "Ford" ??
Hi,
What are some suggested "paths" for getting better at drawing in code in Cocoa? I think at this point, that's my biggest weakness. Is drawing in code something general, or Cocoa-specific?
Thanks!
- Jason
I have this column in a html table in my gsp.
<td><g:remoteLink action="show" id="${a.id}" update="form">${a.name}</g:remoteLink></td>
I'd like to use jquery grid http://www.trirand.com/blog/?page_id=6 with my grails application.
I'd like to format the above link for use in a jquery grid column.
Does anybody know how to do this?
Hi all,
I am learning TCL and wanted to know how can I find out errors in my code. I mean what line no is error happening or how can I debug it.
Following is the code which I am trying :
proc ldelete {list value}{
set ix [lsearch -exact $list $value]
if{$ix >=0}{
return [lreplace $list $ix $ix]
} else {
return $list
}
}
Following is the error i am getting :
extra characters after close-brace
I will appreciate the help.
Thanks
aditya
I have the follwing VB .NET code I am trying to convert to C#
Dim decryptedBytes(CInt(encryptedStream.Length - 1)) As Byte
I tried this:
int tempData = Convert.ToInt32(encryptedStream.Length - 1);
Byte decryptedBytes;
decryptedBytes = decryptedBytes[tempData];
but got this error message:
Cannot apply indexing with [] to an expression of type byte.
Please note that the VB .NET code works.
I would like to use some code written in python (it uses built in modules) in a regular ASP.NET/C# web application. I am a newbie in python and have heard of IronPython and how ASP.NET now allows us to create IronPython apps.
Any thoughts on which way I should proceed? The python code is the on here
hi.i am doing a project wumpus world simulator using c++ and Qt platform.i don't have the more knowledge about this platform.i am facing difficulty in writing its front end code .so provide me wumpus world front end code in qt platform.