Hi,
I have a shipping/billing input form and I'm having trouble styling the input fields to be the same width...
Here is a link (click one of the order bottles to go to the checkout page which contains the form)
The Problem:
-a field <input type="text" size="X" /> appears to render with different sizes in different browsers (see link).
-In…
What logging libraries do you recommend as alternatives to Log4j? Do these libraries work with Spring and Hibernate? Are they compatible with Slf4j or Jakarta Commons Logging?
What command can I use to ask Maven for a list of the default repositories that it searches for its dependencies? If no such command exists, where else may I look to find this default list?
Is it even possible to implement a binary heap using pointers rather than an array? I have searched around the internet (including SO) and no answer can be found.
The main problem here is that, how do you keep track of the last pointer? When you insert X into the heap, you place X at the last pointer and then bubble it up. Now, where does the…
I'm dealing with django-paypal and want to change the button src images. So I went the the conf.py file in the source and edited the src destination. However, I really want to leave the source alone, and I noticed that the
class PayPalPaymentsForm(forms.Form):
has
def get_image(self):
return {
(True, self.SUBSCRIBE):…
Recently switched to Textmate on Mac for coding. On PC when ever I want to tab in or out a block of code I just highlight and press tab or shift+tab to move it in our out. It's very useful when you are adding an extra loop or conditional statement to a block of code to keep everything tidy and neatly indented.
On Textmate however…
Do you agree that the designers of Java class java.io.IOException should have made it an unchecked run-time exception derived from java.lang.RuntimeException instead of a checked exception derived only from java.lang.Exception?
I think that class IOException should have been an unchecked exception because there is little that an…
I have a local network set up for my small office which consists of me, the manager, my wife, the secretary, and a few sales people/others. I would like to share passwords over the network and other such things privately to my wife, the secretary, but would not like the sales people and others to have access to it, yet I need the…
I am working on a C# windows form application. How can i edit my code in a way that when more than 2 faces is being detected by my webcam.
More information:
When "FaceDetectedLabel.Text = "Faces Detected : " + cam.facesdetected.ToString();" becomes Face Detected: 2 or more...
How can i do the following:
Minimize all…
Hi, I am wondering if there is a Javascript equivalent of php's parse_url. Currently, I wrote my a simple parser with regex; however, I would think that such function already exists in the in Javascript.
I have a table called activities which contains a number of activities for projects (for example 6 activities are related to one project). On a manage projects page, you can see the projects, and I have one column which needs to display the number of tasks associated with the project (in that particular row).
So…
Here is my error:
Warning: mysql_query() expects parameter 2 to be resource, null given...
This refers to line 23 of my code which is:
$result = mysql_query($sql, $connection)
My entire query code looks like this:
$query = "SELECT * from users WHERE userid='".intval( $_SESSION['SESS_USERID'] )."'";
…
Given a Web Service response object for which the Sun JAX-WS Reference Implementation has bindings to generate XML, how can I instruct the Sun JAX-WS RI construct a SOAP message that represents the object? The format of the output message should be identical to that which JAX-WS would generate if it were sending…
I have a the following rails models:
class Release < ActiveRecord::Base
has_many :release_questionnaires, :dependent => :destroy
accepts_nested_attributes_for :release_questionnaires
...
end class
class ReleaseQuestionnaire < ActiveRecord::Base
belongs_to :release
belongs_to…
I have to get the median, mode and range of test scores from one column in a table but I am unsure how to go about doing that. When you connect to the database using java, you are normally returned a ResultSet that you can make a table or something out of but how do you get particular numbers or digits?…
This block of code is causing my page to fail to load. When I comment out the line `DO WHILE NOT Rs.EOF the page loads properly.
SQL_Command_String = "SELECT * FROM Seminars WHERE [SeminarID] = 5 ORDER BY DESC"
Rs = SQLConnection.Execute(SQL_Command_String)
DO WHILE NOT Rs.EOF
file1 =…
Hi all,
In my app I want to load some initial data to show the user how it works. The app uses a CoreData managed sqllite db.
SO far I've thought of 3 options:
Write code into a class to programmatically create the data.
Create a xml file in the apps resources and load through a NSXmlParser…
JW player can either playback video in flash or html5. I use a countdown timer in my app between certain videos. Right now the countdown timer is being displayed in a div beneath the jw player. I need to get that timer displayed in a div that covers the entire jw player interface.
I'm stuck and…
Given the following Spring application context and class A, what happens when you run class A?
applicationContext.xml (in classpath):
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
…
I'm using .NET typed datasets on a project, and I often get into situations where I prefetch data from several tables into a dataset and then pass that dataset to several methods for processing. It seems cleaner to let each method decide exactly…
I'm trying to create a small gallery of my youtube videos in wordpress. I need to have full control of style though.
What i'm looking to do is have one big video (latest)
and the next three as small thumbs underneath that.
Can anyone recommend…