Hello,
I'm currently designing a multi-client / server application. I'm using plain good old sockets because WCF or similar technology is not what I need. Let me explain: it isn't the classical case of a client simply calling a service; all clients can 'interact' with each other by sending a packet to the server, which will then do some action,…
I have an application that submits bugs for multiple customers to multiple destinations. I would like this application to include salesforce as a destination. I have web reference to the Enterprise WSDL and I am able to create cases for salesforce. This works great until I want to include user defined custom fields as part of the case. The…
I am trying to bind data from database to datagrid in silverlight.
When I get typed data from DB, it is no problem since I use List<'EntityObject' collection object for example.
However, sometimes I need data which I won't be able to know how many and what columns will be generated in design time. In this case, I cannot use typed…
Sorting takes O(n log n) in the serial case. If we have O(n) processors we would hope for a linear speedup. O(log n) parallel algorithms exist but they have a very high constant. They also aren't applicable on commodity hardware which doesn't have anywhere near O(n) processors. With p processors, reasonable algorithms should take…
Is there any solution to overcome case-sensitive problem for contains method.
I have code like below
string str = m_name;
return avobj.Viewname.Contains(str);
Eg: Welcome Here
welcome here
Both are same names but case is different. If I give 'W' in search box it is returning only 1st one. but I need both names display.
…
Hi,
I know how to canonicalise the case of URLs on incoming request to IIS7.5, in fact, there's a built in rule template to start from. But how about outbound (without changing the code)?
This is where I got to so far:
<outboundRules>
<rule name="Outbound lowercase" preCondition="IsHTML"…
I own a Yahoo mail account. I am using this account for sending resumes and receive notifications from various job portals. But yesterday, I found that some 10-15 mails had been sent to random addresses from my account. Most of them had this format:
hr@<companyname>.com
I am pretty sure that I didn't…
i want to know the way i am calling the methods defined in windows.h from c++ program is correct or wrong.. when i tried to get the library files out of it, it is showing the errors saying that unresolved methods... i am using this for jni purpose...
#define _WIN32_WINNT 0x0500
#include "keylogs.h"
…
I am pretty new to ASP.NET and C# I have spent the day learning the basics of the ASP.NET Membership provider I have built all my validator but are getting stuck at outputting my error message on the page.
private void LogCreateUserError(MembershipCreateStatus status, string username)
{
string…
I am pretty new to ASP.NET and C# I have spent the day learning the basics of the ASP.NET Membership provider I have built all my validator but are getting stuck at outputting my error message on the page.
private void LogCreateUserError(MembershipCreateStatus status, string username)
{
…
Why does the following module not compile on Scala 2.8.RC[1,2]?
object Test {
import util.matching.Regex._
val pVoid = """\s*void\s*""".r
val pVoidPtr = """\s*(const\s+)?void\s*\*\s*""".r
val pCharPtr = """\s*(const\s+)GLchar\s*\*\s*""".r
val pIntPtr =…
After extensive debugging of an application, I noticed the console window would hang when searching text for the char '\a'. The goal is to strip out characters from a file.
The console window would always hang upon exiting the program, and it would make it to the last…
I am pretty new to ASP.NET and C# I have spent the day learning the basics of the ASP.NET Membership provider I have built all my validator but are getting stuck at outputting my error message on the page.
private void LogCreateUserError(MembershipCreateStatus status,…
On my website I have a login and an article tag for editing.
my article code is in HTML5 witch is enough as my editor rule is HTML5:
HTML5: index.php line 212
<article contentEditable="false"> >> Changes to true when in edit mode..
…
While writing some recent scripts in cmd.exe, I had a need to use findstr with regular expressions - customer required standard cmd.exe commands (no GnuWin32 nor Cygwin nor VBS nor Powershell).
I just wanted to know if a variable contained any upper-case…
In Scala, does calling isEmtpy method on an instance of Stream class cause the stream to be evaluated completely? My code is like this:
import Stream.cons
private val odds: Stream[Int] = cons(3, odds.map(_ + 2))
private val primes: Stream[Int] = cons(2,…
Hello:
In the example below the following regex (".*?") was used to remove all dialogue first.
The next step is to remove all remaining sentences starting with a lower case letter.
Only sentences starting with an upper case letter should remain.
…
I am trying to generate a syntax tree, for a given string with simple math operators (+, -, *, /, and parenthesis).
Given the string "1 + 2 * 3":
It should return an array like this:
["+",
[1,
["*",
[2,3]
]
]
]
I made a function to…
I have an asp.net login web form that have ( username textBox - password textBox ) plus Remember Me CheckBox option
When user login i do the below code
if (provider.ValidateUser(username, password))
{
int timeOut = 0x13;
DateTime…