I am deploying a mod_wsgi application on top of Apache, and have a client program that uses Curl.
On the CURL api on the user side, I have it attempt to reuse connection, but looking at the connections from wireshark, I see that for every HTTP request/response, a new connection is made.
At the end of every HTTP request, the HTTP resp...
I have a web application where I interact with a MySql database. When I delete a record, it seems that its slot is reused the next time I create a new record. Since each record has a sequential primary key, the next record will have a new key say 5, but the new record will be placed in the last emptied spot, say where record number 2 use...
In my web application framework (currently WebForms) I have a control that behaves like a classic propertygrid. It is initialized with an object ID (database key), then it reads metadata to determine the type of the object and the attributes of the object. It displays the attributes, string attributes as textboxes, bool attributes as che...
I would like to make use of few methods from couple of my old tested classes into my new class that I am building. Unfortunately, C# does not support multiple inheritance. How do I reuse code from these old classes? Do I just create them as member objects? or Do I have any other options?
...
First of all, as I am using VB6, please confine your kind suggestions to techniques applied to VB6.
I have a set of controls related to each other as the above figure shows. It includes several treeviews, a split bar, a listview, a subform( a usercontrol), and etc.
When I click or change the treeview nodes in the left, the right cont...
Hi,
I am getting the error "Too many open files" after the call to socket in the server code below. This code is called repeatedly, and it only occurs just after server_SD gets the value 1022. so i am assuming that i am hitting the limit of 1024 as proscribed by "ulimit -n". What i don't understand is that i am closing the Socket, whic...
Acrobat Reader successfully renders sample1.pdf inside IE given the following HTML:
<embed style="width: 8.5in; height: 11in;" id="pdfViewer" src="sample1.pdf" type="application/pdf">
What javascript allows me to use that same PDF reader instance to display sample2.pdf?
EDIT: I don't care what HTML is involved, I don't think -- the g...
I am trying to setup a repository of reusable code. I was thinking about having each reusable code module have a certain “Maturity Level” rating. The rating would be defined as the level at which a reusable code lies within a certain set of requirements. The highest maturity level will be the highest degree of standard across a predef...
I'm working on a .NET program that executes arbitrary scripts against a database.
When a colleage started writing the database access code, he simply exposed one command object to the rest of the application which is re-used (setting CommandText/Type, calling ExecuteNonQuery() etc.) for each statement.
I imagine this is a big performan...
After developing some web apps i tend to have some routines/best practises for my apps.
For example to create an common Login Controller/Views etc for my app.
I try to talk about it with my colleagues and test some different apps how they do it.
After a while it gets a bit boring. Usally there are new features in a application that real...
How can I reuse the application icon from within my application so I don't have to embedded it twice (once for the application icon and once for internal usage)?
...
In our Maven project, we are trying the following directory structure (with about 80 projects total, only a few are shown so that you get the idea):
myappli (pom)
-- module1 (pom)
--|-- utils (pom)
--|-- ejb (pom)
--|--|-- myappli-module1-a-ejb (jar)
--|--|-- myappli-module1-b-ejb (jar)
--|-- war (pom)
--...
I frequently write throwaway code (in a research environment) - for example to explore an algorithm or a model for a scientific property or process. Many of these "experiments" are one-off but sometimes I find that I need to use a few later. For example I have just unearthed code for string matching I wrote 7 years ago (stopped because o...
I have a WPF dialog with a couple user controls and some other standard controls. We have many uses for this dialog with specific tweaks. Right now this dialog manages all of the logic to tweak itself.
I can't help but think there's gotta be a better way. I wish I could do something like this:
Original dialog
<dialog>
<Control1>
...
Hi all
I have a application (win32 exe file) without source code.
Is it possible I write C# application and reuse some function in that win32 .exe file?
Thanks for your reading.
Best regards!
...
Is there a way to reuse the simple expand [+] and collapse [-] buttons that appear next to nodes in a WPF TreeView? I would like to have a similar graphic elsewhere in my application for expanding and collapsing some controls.
...
Hi,
I have the following function:
<script type="text/javascript">
$(function(){
// start a counter for new row IDs
// by setting it to the number
// of existing rows
var newRowNum = 2;
// bind a click event to the "Add" link
$('#addnew').click(function() {
// increment the counter
...
Hi,
I am a CSS newbie. I am just wondering, is that possible to include one common class into another class?
for example,
.center {align: center};
.content { include .center here};
I came across css framework - Blueprint. We need to put the position information into HTML, e.g.
<div class="span-4"><div class="span-24 last">
As suc...
My apologies for posting such a book-specific question but by question relates to a particular explanation, which some of the members here may have come across, in "Beginning iPhone 3 Development: Exploring the iPhone SDK by Dave Mark and Jeff LaMarche". I have tried the book's forum some time ago with no response.
I am slightly confuse...
I am thinking about this problem now for very long.
I try to use different types of cells in my table, that each have their own cell controller and have a reuseIdentifier AND load from NIB.
The problem boils down to this: You can either init a Cell via
[UITableViewCell initWithStyle:reuseIdentifier:] or via [NSBundle loadNibNamed:owne...