I know it's important to keep user interface code separated from domain code--the application is easier to understand, maintain, change, and (sometimes) isolate bugs. But here's my mental block ...
Delphi comes with components with methods that do what I want, e.g., a RichText Memo component lets me work with rich text. Other components, like…
Howdy all,
I'm running into a problem with some InfoPath C# code while trying to remove an attachment from a form.
Basically the process is:
User opens form
User clicks button
File attachment is cleared
I've tried adding a blank attachment to my schema that never becomes populated, then setting the original field's value equal to that…
If I have variables a, b, an c of type double, let c:=a/b, and give a and b values of 7 and 10, then c's value of 0.7 registers as being LESS THAN 0.70.
On the other hand, if the variables are all type extended, then c's value of 0.7 does not register as being less than 0.70.
This seems strange. What information am I missing?
I have a presentation tomorrow, and while I was trying to project my website using projector
all the elements appeared mixed up. The problem is I used a software called "AXURE" to do the website. The HTML files produced by this software are crap. There's no one unified CSS file. The style is embedded for each element in the <div> tag…
So, I make a checker if an id is in the database or not, the id is in numerical string, the type in database is char(6) though.
So this is my code
public class input extends Activity{
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
…
public void EatDinner(string appetizer, string mainCourse, string dessert)
{
try
{
// Code
}
catch (Exception ex)
{
Logger.Log("Error in EatDinner", ex);
return;
}
}
When an exception occurs in a specific method, what should I be logging?
I see a lot of the above in the…
public Double Invert(Double? id)
{
return (Double)(id / id);
}
I have done this for this test but fails please can anyone help with this cos just started with unit testing
/* HINT: Remember that you are passing Invert an *integer* so
* the value of 1 / input is calculated using integer arithmetic.
*…
to simplify, I got a database of registered users, I want to count how many emails there are for each email domain name (note I do not know all domain names)
for example,
Users table-
id | email
------------------
1 | test@hotmail.com
2 | test@somesite.aaa<--unknown to me
3 |…
Hello,
my friend has a Real Estate company that receives a lot of phone calls everyday.
He wants to have a solution such that when somebody call to his company, the operator sees all the information about the person who is calling based on the database he have right now and the caller ID.
Is…
The below code throws an exception when executing this line (i.e. something.Add(name)).
I want to catch the actual exception when executing this. I mean I don't want to use catch(Exception ex) instead of that I want to know what is the correct exception thrown here.
try
{
dynamic name=…
Hello Mates ,
I need a help ... an urgent one !!! i tried so hard to figured it out .. but i couldn't .. so I appreciate your help so much ..
I'm developing an Air App using flash ... the app loads an external SWF file dynamically through an xml ... the SWF file has a movieclip that has…
I just started playing with Clojure, and I wrote a small script to help me understand some of the functions. It begins like this:
(def *exprs-to-test* [
"(filter #(< % 3) '(1 2 3 4 3 2 1))"
"(remove #(< % 3) '(1 2 3 4 3 2 1))"
"(distinct '(1 2 3 4 3 2 1))"
])
…
sir, i develop the following code in vs2005, now i just using this module in my new project @ vs 2008..
But this error was araised. I cant able to fix this problem...
Private Sub DataAccess()
Dim errHandle As New ErrorHandler
Dim lobjCommon As New…
My problem is reconnect.I connect SocketIOClient.connect(..) in background service.I close service when internet connection is off.and I re-start service again connection on.
How to close this reconnection?I don't want to reconnect SocketIOClient.
Its my code:
…
I wrote a regular expression to get the size from a CSS property:
/(([+-]?\d*\.?\d+(\s)*(px|em|ex|pt|in|pc|mm|cm)?)|thin|medium|thick)(\s|;|$)/i
but for some reason its not working as intended. For example, when I run the following:
…
I have a table with many fields and additionally several boolean fields (ex: BField1, BField2, BField3 etc.).
I need to make a Select Query, which will select all fields except for boolean ones, and a new virtual field (ex:…
I wonder why I can't read the JSON Object like this :
{
"1":{"bulan":"Januari","tahun":"2012","tagihan":"205000","status":"Lunas"},
"2":{"bulan":"Februari","tahun":"2012","tagihan":"180000","status":"Lunas"},
…
I'm new to PHP, and have spent 10 hours trying to figure this problem out.
The goal is to take all data entered into this order form, and send it to my email via PHP.
I have 2 questions:
1. I can get PHP to send data…
Like many other developers I have been very excited at the new Swift language from Apple. Apple has boasted its speed is faster than Objective C and can be used to write operating system. And from what I learned so far,…
We use JUnit 3 at work and there is no ExpectedException annotation. I wanted to add a utility to our code to wrap this:
try {
someCode();
fail("some error message");
} catch (SomeSpecificExceptionType ex)…
I know that you should always check incoming params to a method for null. But what if I have this scenario with a try/catch referring to a local variable. Do I really need to check for null below? Because it's gonna…