source

Custom Word Bibliography Source Template

Having looked through the Word help and online resources about customising bibliographies in Microsoft Word, and finding several posts on customising the 'style' and XSL transformation 'layout' of bibliography source templates, I am sure, given the dynamic functionality provided in this area that it must be possible to create custom sour...

PHP page source copy

I need to write a script that goes to a page, copies the source of the page, and stores it as a string to be outputted withing another page. I'm forced to do this due to the fact that the target page is dynamic, and apparently we need static records of that page within our internal system. I know a limited amount of php. Can anyone poi...

header file without source file

i have written the body of the function in the header file and so do not have a source file. when i tried running my project in visual studio .. i got an error: Cannot open source file: No such file or directory. How do I make visual studio understand that the definitions of the function are within the header itself? ...

Javascript - change image source to gif ?! asp.net

I have the below code in a .ascx file as part of an asp.net project. How can I write the javascript to change the image source to a gif? <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Steps123.ascx.cs" Inherits="SwintonTaxiWeb.UserControls.Steps123" %> <div id="slickShow"> <div class="<%=stepOneDivClass %>"> ...

.NET Framework symbols and source files out of sync?

It seems that my .NET Framework debug symbols and their corresponding source files are out of sync. Here is an example. I’m trying to step in to ASP.NET MVC from a view. So I set a breakpoint on a function in ASP.NET MVC (using a function name). When Visual Studio stops there, it’s actually in the correct function, but the yellow highli...

Going Open (almost): Moving from MS/ASP to LIN/Py

I'm doing a case study (well, hoping to) on a migration from Win/ASP/SQLServer to a Linux/Pylons/Pgsql codebase. I was just wondering if anyone has any thoughts, pointers or experience in making such a dramatic shift. ...

Automatic PHP Documentation Generator

I am looking at any document generator for PHP that can actually read the source code and generate the documentation - instead of writing comments according to what the generator needs the format to be like. I've looked at phpDocumentor and several other documentation generators: all require the need of writing comments into the source ...

How to manage application versioning and deployments?

Currently there are some challenges with managing application versions and deployments at the shop I work in. Typically we just change the code(corresponding DLL's) that we need to support our changes and drop the code into production(cut and paste). The most pressing problem is that we need a way to know and to review the code that is...

ARP protocol : is ARP source hardware address redundant? (already contained in ethernet header)

Hi, I'm working on a network security project and I noticed something that I can't explain: Why do we need a source hardware address field in arp? Isn't it already contained in the ethernet header? Cheers, Laurent ...

Can I see the resulting markup after JavaScript Dom manipulation?

Is there any way to get a browser (or some other program) to show me the DOM of a web page, as modified by JavaScript code? For example, say I have some simple markup. I then use some JavaScript (say, via jQuery) to add classes, move things around, etc. Is there any way to "view source" on the modified version, as it would look if that ...

Managing databases in Open Source Software Projects

I was wondering how databases are managed in open source projects which are usually hosted in repositories like CVS or SVN. Placing codes in the SVN is very logical as it allows different team members to get updated pieces of code but how about databases? Are their schemas and contents (.sql files I assume) placed inside the SVN too? In...

How do I use "mysql source" command with a mysql variable?

I need to execute from mysql shell an SQL file based on a condition like mysql> source @var where @var contains the filename ...

How to remove a remote source from gem remote sources

I have added gemcutter.org to my Rubygems sources, and now I do not know how to remove it. $ gem sources *** CURRENT SOURCES *** http://gemcutter.org http://gems.rubyforge.org/ ...

Utilities to generate an XML representation of a Java package/class?

I'm looking to generate an XML representation of the AST for a given java class (by parsing its source). Overall, what I want to do is write XSLT queries to find meta patterns in the source code - very much like PMD does. There was an open source utility that started this, but went stale. Anyone know of a utility to do this? -Mike ...

C# - Remove spaces in HTML source in between markups?

I am currently working on a program that allows me to enter HTML source code into a RichTextBox control and removes the spaces from in between markups. The only problem is, I am not sure how I can differentiate between the spaces BETWEEN the markups and the spaces INSIDE the markups. Obviously, removing the spaces inside the markups wo...

Formatting source listings with listings & framed packages

Hello *, I currently have a problem, that listings package cannot spread source files across multiple pages. In the doc is written, that the "framed" package should be used for various formatting option. Unfortunately I did not find any docs for the "framed" package. My current source formatting looks like this for C# sources: My for...

gnome-terminal, virtualenv and a bunch of services

Hi folks I'm working on a server-side project that consists of several services. Each service is run in interactive (i.e. non-daemon) mode, this is handy while active development. The project is in virtualenv. So the typical way to start a service is: $ cd ~/to/vitualenv/subdir/where/service/code/located $ source ../path/to/virtualenv/...

Source Control: Testing different variants of code

Hi, I new to source control, but i like the thought that i can step back to one point. I read that only code that is ready for release should checked in the repository. If I want to play a round a little bit with one piece of code, to try different things. I can't step back to e.g. variant number 2 of my play stuff. It's not in the re...

Display highlighted HTML source code in Firefox?

Is there some clever content-type setting that makes Firefox display highlighted HTML source code instead of rendering it? I have a CMS that generates HTML pages. I get debug info on each generated page by adding "/debug" to the URL. I would like to see the source by using "/source" so I have the source within my Firefox tabs (and not as...

Compiler Generated Cruft

I am attempting to recover source from an assembly using Reg Gate's Reflector. The original source took advantage of several C# 3.0 features which has made it a little difficult to recover. For instance here is the recovered source for an anonymous type. The first thing that pops out is the <> in from on the class identifier. Run time ty...