I'm Gary Little, a realtor in the small town of Sechelt, British Columbia, located about 40 minutes by ferry from Vancouver. Before returning to Canada a few years...
Mise à jour du 10/06/10
Chrome OS pourrait passer du Cloud au client léger
Les applications hébergées pourront l'être sur un ordinateur distant : les professionnels en ligne de mire ?
C'est sur un groupe de discussion de Google que Gary Kačmarčík, un responsable de développement du projet Chromium OS, a laissé entendre que Chrome OS devrait…
I need a robust and simple way to remove illegal path and file characters from a simple string. I've used the below code but it doesn't seem to do anything, what am i missing?
using System;
using System.IO;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string illegal =…
I've been developing a website that has several modal dialog boxes. I've been using jQuery Tools Overlay for the dialog boxes. However, I've just discovered that it doesn't seem to work properly on IE8.
In Chrome (and I presume other browsers), the dialog is highlighted by darkening the rest of the page "below" it, but on IE8…
I have developed an ASP.NET MVC 2 website, and now need to deploy it to my web server. I've overcome some hurdles already, since ASP.NET was not installed etc. but I've now got to the point where I can serve up plain content files, and if I try to hit one of my MVC URLs I get this:
Could not load file or assembly…
Ok, this may sound a little 'unorthodox', but...using VS2010 and the new POCO t4 template for Entity Framework (http://tinyurl.com/y8wnkt2), I can generate nice POCO's. I can then use these POCO's (as DTO's) in a WCF service essentially going from EDM all the way through to the client. Kinda what this guys is doing…
[NOTE: I'm using ASP.NET MVC2 RC2.]
I have URLs like this:
/customer/123/order/456/item/index
/customer/123/order/456/item/789/edit
My routing table lists the most-specific routes first, so I've got:
// customer/123/order/456/item/789/edit
routes.MapRoute(
"item", // Route name
…
OK, I understand what the messages means, but I'm really not sure what's causing it. I'm using Safari and the Web Inspector on Mac OS X, by the way.
I've got the following in my document head:
<script src="http://local.url/a/js/jquery.js" type="text/javascript"></script>
<script…
I am trying to figure out the best way to bulk delete objects inside of my Core Data database.
I have some objects with a parent/child relationship. At times I need to "refresh" the parent object by clearing out all of the existing children objects and adding new ones to Core Data. The…
I am testing a JQuery Web application. I have a JQuery popup that I simply cannot get the submit button to fire in Watir. The same pattern is used thought the application.
I have verified the button exists and have tried click, fireEvent you name it and am out of methods to call.
Has…
If I have the following pylons controller:
def challange(self):
response.status = '401 Unauthorized'
return 'You are not logged in.'
I would expect to see 'You are not logged in.' But I see :
Unauthorized
This server could not verify that you are authorized to…
I have a pattern that I almost always follow, where if I need to wrap up an operation in a transaction, I do this:
BEGIN TRANSACTION
SAVE TRANSACTION TX
-- Stuff
IF @error <> 0
ROLLBACK TRANSACTION TX
COMMIT TRANSACTION
That's served me well enough in the past,…
I have a database column defined as NVARCHAR(1000) NOT NULL DEFAULT(N'') - in other words, a non-nullable text column with a default value of blank.
I have a model class generated by the Linq-to-SQL Classes designer, which correctly identifies the property as not nullable.
I…
I think that most of the advice that comes from 37 Signals is fascinating. I ask this question as i can't help also thinking that the some of the principals will only pull in customers if you have a fan base to call on such as the Ruby On Rails evangilists?
I am trying to format a date:
FORMAT(table.TCKT.TCKT_ISS_DATE, 'YYYY') AS TICKETYEAR
but I am getting the following error:
ORA-00904: "FORMAT": invalid identifier
Right now the date show the complete timestamp. Any suggestions on how to fix this problem, or any other way…
For a long time now I've been having a problem with using the verity search service bundled with ColdFusion 8.
The issue is with timeout errors occurring when perfoming any operation on a collection.
It's intermittent, and usually occurs after a few operations have been…
I have an ASP.NET MVC 2 application, which has an Application_Error event handler in global.asax. In this, I'm detecting the case where the Exception type is HttpException and the HTTP code is 404, and redirecting to my own 404-handling page.
This works fine on my…
I'm creating a project to house an iPhone library for common code for the iPhone... essentially it's a library that'll save people from finding solutions to common problems that amount to copying and pasting snippets of code. The site is located here:…
Hi all,
I've got the following regular expression that works fine on my testing server, but just returns an empty string on my hosted server.
$text = preg_replace('~[^\\pL\d]+~u', $use, $text);
Now I'm pretty sure this comes down to the hosting…
I've been reading about MVC design for a while now and it seems officially the View calls objects and methods in the Model, builds and outputs a view.
I think this is mainly wrong.
The Controller should act and retrieve/update objects inside the…
I'd like to use the ASP.NET membership provider in the following (low-security) scenario...
My company will create and administer user accounts on behalf of our clients. These accounts will likely be shared amongst several people in the client…
I have an ASP.NET MVC website that works in tandem with a Windows Service that processes file uploads. For easy maintenance of the site, I'd like the log file for the Windows Service to be accessible (to me, only) via the website, so that I can…
Hi, I'm using the Scanner class in java to go through a a text file and extract each sentence. I'm using the setDelimiter method on my Scanner to the regex:
Pattern.compile("[\\w]*[\\.|?|!][\\s]")
This currently seems to work, but it leaves…
I need to determine the screen density at runtime in an Android AppWidget. I've set up an HDPI emulator device (avd). If set up a regular executable project, and insert this code into the onCreate method:
DisplayMetrics dm =…
I have created a new VCL component based on an existing VCL component. What I want to do now is set the Password and Username properties from an ini file instead of the property inspector.
Robert Dunn Link
I read on the…