Hello
Anyone know where I can obtain sample code for a Directed Graph and sample code for performing a topological sort on a directed graph? (preferably in Java)
Thanks
I asked this before, but didn't get any responses.
Can anybody point me to C or Java code (or anything else) that does NTRU encryption?
Several people who were implementing the algorithm have posted on this site, so maybe they could help?
I also noticed that quite a number of NTRU implementations have been written at universities, so it would seem strange that sources, or at least sample code, are so hard to come by.
Thanks!
A friend sent me that code and alleges that it could damage the processor. Is that true?
void damage_processor() {
while (true) {
// Assembly code that sets the five control registers bits to ones which causes a bunch of exceptions in the system and then damages the processor
Asm(
"mov cr0, 0xffffffff \n\t"
"mov cr1, 0xffffffff \n\t"
"mov cr2, 0xffffffff \n\t"
"mov cr3, 0xffffffff \n\t"
"mov cr4, 0xffffffff \n\t"
)
}
}
Is that true?
I'm a total beginner when it comes to computer languages, and was asked for a code to write .NET with assembler x86, and i'm stuck here at the moment.
Any basic code lines would work, still couldn't find any on the web.
i have been sent a directory tree of source code that i want to import into my subversion repository. The issue is that at some point this code was in a different subversion repository. There are a huge number of directories and subdirectories and i basically want to clean up all of the subversion .svn folders before i attempt to import to a new repository and i dont want svn to get confused.
is there anyway to clean out a directory structure to remove all svn references?
Hi, I just read this article at Smashing Magazine (http://www.smashingmagazine.com/2009/11/21/zen-coding-a-new-way-to-write-html-code/) about Zen Code. Maybe there is any jQuery plugin for this? Might be good for json data inserting/templating.
I've seen a number of posts on UIGetScreenImage, however, not a complete working (short) code example.
If anyone has a code example, from the prototype definition to an actual call, that would be greatly appreciated.
Thanks
John
You wrote at: Opened SerialPort crashes C# application
"A look into the .NET Framework source code helped a lot. But I think the thrown ObjectDisposedException should be caught by the SerialPort, not by the user."
I'd like to take a look on source code for serialPort. How can I do it?
Hi guys - concerning Gmail labels - what are they technically speaking. I mean through imap connection I can access a gmail mailbox and go through the emails however let say I wish to create a label and attach it to the emails as I loop through them using code - how can I do that in code? I'm using php - and Zend Framework.
I am stuck in putting the Jave text file read code in JADE GUI. Please assist.I.e. Show using a simple code. I am new to Jade but experienced in Java coding.
Hello, I do not know, what is function of code lookups.singleton in code below
public class ProjectNode extends AbstractNode {
public ProjectNode(MainProject obj, ProjectsChildren children) {
super (children, Lookups.singleton(obj));
setDisplayName ( obj.getName());
}
}
The options for source code diff viewing/editing/merging seem to be:
Free:
Tortoise Merge
Meld *
WinDiff
WinMerge *
DiffMerge *
KDiff
AJC Diff
Commercial:
Total Commander's Diff viewer *
Beyond Compare *
Delta Walker *
Araxis Merge *
Are there any other options? (Wikipedia suggests a few)
What's your favorite tools for source code diff? And how does it differ from the ones in the list?
* Supports directory diffs
I'm looking for a command line program that pretty-prints (that is, indents, adds line breaks to, harmonizes the whitespace of) HTML5 code.
It has to run under Linux (in case you're interested, I want to use it as an filter for nanoc).
tidy does too much for me (heck, it alters my doctype!), vim too little. What do you use to make your HTML5 code look beautiful?
Maybe there is a way to make tidy cooperate and not alter anything?
I just purchased a license to ReSharper 5.0 and it has been almost impossible to edit ASPX pages. I read somewhere that I can disable code analysis on a single page with the following command "Ctrl+Shift+Alt+8". But it also hasn't worked.
Is there a way to disable ReSharper Code Analysis on all ASPX pages?
Are there any Source Code Management (SCM) tools made specifically for solo programmers or small groups of programmers that tracks every small change made to source code in real time? This would require all key strokes to be tracked, and any other small changes like GUI UI editing. This seems like it would be a very useful tool for a programmer trying to remember a fix he did an hour ago that they didn't manually commit.
Hello. I've never written documentation for any C-style code before (only done asdoc and phpdoc). I've been looking at Doxygen for documenting my Objective-C code, but I'm unsure where to put the comments. Should I document the .h files or should I add the comments to the .m files? or both? Any other recommendations?
I saw tools like reflector can easily translated IL back to C# code. So I was wondering how to protect my source code, especially in a country, where patent and copy right is not enforced well by goverment.
Thanks.
i am sure all of us must have written some bad code at some point in their life. I am a kind of guy who would love to learn from other people mistakes. So can you give some examples of bad code you have written and the way you corrected it.
I'm an Objective-C newbie and am enjoying reading/learning Objective-C in order to do iPhone development but I'm struggling to understand some of the code, especially the code that comes with the UIKit framework.
For example, take this line:
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSelection:(NSInteger)section {
...
I understand the parameters passed in but am struggling to understand the return parameter. Any help appreciated.
Is there a library or code sample for converting an in memory POCO c# object to a .cs code file that creates that object. An example:
object of type car in memory becomes:
Car c = new Car
{
Name = "mazda",
Id = 5,
Passengers = new List<string> { "Bob", "Sally" }
// etc... recursing to the bottom
};
I could assume it could only set public properties.
Hello there, I would like to ask about the available (free or not) Static and Dynamic code analysis tools that can be used to C++ applications ESPECIALLY COM and ActiveX.
I am currently using Visual Studio's /analyze compiler option, which is good and all but I still feel there is lots of analysis to be done.
I'm talking about a C++ application where memory management and code security is of utmost importance.
How do I replace the selected section of code (selected by mouse selection) in eclipse editor and replace it with the same code only in /* selected text / through a plugin?
I have already designed a plugin to create a button in the toolbar. When I click it, I need it to change the text that is selected and put it into / */
Are there any best-practices that state custom code shouldn't be placed in a System namespace? Should System and its children be reserved for Microsoft code?
I ask because I'm writing a class library that will be used across many projects and I'd like to keep things consistent by placing it in System.InteropServices (since it deals with P/Invoke).
I'm debugging Python code with pdb.
The code need input from stdin, like:
python -m pdb foo.py < bar.in
Then the pdb will accept the bar.in as commands.
How to tell pdb that the input is for foo.py and not for pdb?
In Eclipse 3.4 for Windows, the Source - Format option for formatting Java code was extended to format HTML code. However, for OS X, this option is disabled. Additionally, there are no formatting options in the Preferences. I've downloaded all the Web Tools for Eclipse and the option is still unavailable.
Which plugin/feature allows for HTML formatting on Eclipse OS X, if there is one? Otherwise, what is a good Web-based alternative?
Thanks,
Adam