source-code

Copy Field and Methods

I am new to java. I was wondering if there is a tool to copy fields and method easily. E.g if I have private String foo; // with getter/setters I should be able to select foo and type bar car in a textbox and the tool should generate fields bar and car with their getter/setters. EDIT : I use eclipse and know how to use the ide. Bu...

Debug .Net Framework's source code only shows disassembly in Visual Studio 2010

Hi! I'm trying to debug .Net Framework's source code using Visual Studio 2010 Professional. I followed the steps described in Raj Kaimal's post but I must be doing something wrong since the only code I'm getting to see is the disassembly code: As you can see in the image, the Go to Source Code and the Load Symbols options are disable...

Looking for calculator source code, BSD-licensed

I have an urgent project which need many functions of a calculator (plus a few in-house business rule formulas). As I won't have time to re-invent the wheel so I am looking for source code directly. Requirements: BSD-like licensed (commercial use friendly, GPL won't help) in c/c++ programming language 32-bit CPU minimum dependency on...

Source Code Linux built in Services

Hi, I am looking at linux startup services, like Cron which runs at level 5 located in init.d, in the startup script I can only see the script file and location of binary file which is executed on startup. Where can I see the actual source code of this services ...

How to preserve &amp; in <pre><code>

I am having trouble preserving an ampersand in a code example on my blog, because all HTML entities start with &. Any tips? For example: <pre> <code> <?php $pageTitle = str_replace('&', ' &amp;', $page->attributes()->title); ?> </code> </pre> Renders as: <?php $pageTitle = str_replace('&', '&', $page->attributes()->title); ?> ...

dynamically load PHP code from external file

code is in a static class in an external file eg. /home/test/public_html/fg2/templatecode/RecordMOD/photoslide.mod how do I load this into my script on demand, and be able to call its functions ? I am a novice at php , so please explain your code. help is appreciated. Jer ...

What is meant by "Code is spaghetti"?

I have seen in many forums and technical sites the expression "Code of our project is spaghetti" What is the meaning of this expression? ...

Where can I find a large body of *Python3* source code?

I'm testing a Python parser. I have Python 2.6/2.7 firmly under control, and some good (large) code samples on which I've tested it. I'm interested in testing my Python3 variant. I've been to various Python open source web sites (e.g., http://pythonsource.com/), which list lots of packages, but they are pretty unclear as whether the...

Display all images from outside web root folder using PHP

Hello, I want to display all images that are stored outside my web root folder. Please help me. I am only able to display one image repeatedly. For example, if I have 5 images in my folder, only one image is displayed on my browser 5 times. Please help me on this. I've been working on this problem for over a month now. I'm a newbie. Hel...

How to abandon all Mercurial changes that haven't been committed

How do you abandon all repository changes since the last commit in Mercurial? I don't think that this is the revert command, because that will actually update the working directory to the last commit. I just want to undo changes in the repository (added files, removed files, etc). But, I'm new with Mercurial, so I could be missing some...

Armchair Linguists: 'code' vs. 'codes'--or why I write 'code' and my manager asks for 'codes'

I wanted to tap into the collective wisdom here to see if I can get some insight into one of my pet peeves, people who treat "code" as a countable noun. Let me also preface this by saying that I am not talking about anyone who speaks english as a second language, this is a native phenomenon. For those of us who slept through grammar cl...

Is C# Interpreted or Compiled?

I thought that C# generated compiled code (by JIT) But I have lately discovered that I can edit code while debugging mode in C# (VS 2008) Does that means that C# is interpreted? or there is a trick? ...

Anyone know the best PHP source code formatter for Netbeans?

I know it has a source formatter however it is not good enough for my needs. Are there any plug ins any one knows about? Thank You ...

Is there a good way to add Equinox source to Eclipse to help debugging an OSGi bundle?

I am banging my head against a mess of JNI code and DLLs that we are trying to shoehorn into an OSGi bundle. It has been particularly hard to get good debugging info out of the system and I have spent too much time stepping through raw byte code trying to infer what is happening inside equinox--when I really don't care--I am just not ge...

Should I use static import?

How important it is to convert all my import to static import? Why are people still reluctant to use static import? ...

Gnome screensaver

Hi, After many years of Windows development in C/C++ i've decided to make a move to linux, and see if i can put together a simple screen saver. The code is an SDL based OpenGL particle engine affair, nothing too complex. I've got the code running ok as a stand-alone app, but i have been having some trouble finding out how to build ...

Misc. Naming: Can I place underscores instead of camel casing in modern languages?

Hi! I would like to ask some kind of permission (I hope that doesn't sound strange) from the people who have influence on the naming conventions in modern languages like F#, Scala, etc. My problem is - I just can't read camelCased code and wish I could write underscored_names at least in my internal implementations (not in API interfac...

Where can I get full applications written in CakePHP?

I'm trying to master CakePHP and I figured one way to improve my code is to read other apps. I'm wondering, where can I find well written apps made with CakePHP? Thanks in advance! ...

Where do I find the javax.crypto source code?

Where do I find the javax.crypto source code? --update Thanks for the OpenJdk version, but what about the jdk6 version? ...

purchasing source code from third party vendor

Hi Our company uses some third party vendors to write some of our external facing web sites, however with one vendor we keep experiencing over inflated charges for simple changes and it has been decided to bring the product in-house. I have been tasked to provide a list of deliverables/checkpoints that would form a part of the agreeme...