Emacs uses an older version of python(2.3) i have for the default python mode, is there a way for me to tell emacs to use the newer version that i have in my home directory?
btw I'm using a red hat distro and dont have root privileges.
Hi Guys,
I am new to web development, I am coding some ASP.NET,
I checked a lot of examples using MVC in ASP.NET, But I am looking for verbal answers from senior programmers, about why using MVC?
can U as seniors and team leaders show me the benefits?? and why not keeping using asp.net webforms?
thanks
Asp.net-MVC now allows for implicit binding of DateTime objects. I have an action along the lines of
public ActionResult DoSomething(DateTime startDate)
{
...
}
This successfully converts a string from an ajax call into a DateTime. However, we use the date format dd/MM/yyyy; MVC is converting to MM/dd/yyyy.
For example, submitting a call to…
Do T-SQL queries in SQL Server support short-circuiting?
For instance, I have a situation where I have two database and I'm comparing data between the two tables to match and copy some info across. In one table, the "ID" field will always have leading zeros (such as "000000001234"), and in the other table, the ID field may or may not have…
I'm trying to get Ozeki to recieve SMS messages from my GSM Nokia E63 - it will send messages fine but wont recieve them. I am also trying to get a PHP/HTML form to generate messages, but the example on the Ozeki website won't work!
<?php
if ($submit=="Send")
{
$url='http://localhost:9333/ozeki?';
$url.="action=sendMessage";…
Hi folks. On the comment of my old form needing a CAPTHA, I felt I share my problem, perhaps you recognize it and find its time we had better solutions:
FACTUAL PROBLEM
I know most of my clients (typical age= 40~60) hate CAPTCHA things.
Now, I myself always feel like a robot, when I have to sueeze my eyes and fill in the strange…
I'm using jqGrid as a client side grid input, allowing the user to input multiple records before POSTing all the data back at once.
I'm having a problem where if the user has added a few records (say 3 ) the id's for the records will be 1,2,3. if the user deletes record 2, you're left with 1 and 3 for the id of the records.
When…
I am starting to use some nested routes which is definitely a different way of planning things and I'm really failing to see added benefits.
So what are they?
Suppose you're developing a software product that has periodic releases. What are the best practices with regard to branching and merging? Slicing off periodic release branches to the public (or whomever your customer is) and then continuing development on the trunk, or considering the trunk the stable version, tagging it as a…
On a Ubuntu 9 64bit Linux machine, sudo takes longer time to start. "sudo echo hi" takes 2-3 minutes.
strace on sudo tells poll("/etc/pam.d/system-auth", POLLIN) timesout after 5 seconds and there are multiple calls(may be a loop) to same system call (which causes 2-3min delay).
Any idea why sudo has to wait for…
I have an Apache server set up to use mod_perl. I have it set up to handle all requests using a Perl module MyModule. Here is part of my httpd.conf:
LoadModule perl_module modules/mod_perl.so
<Directory />
Order Deny,Allow
Allow from all
</Directory>
PerlModule MyModule
<Location…
When I try to select the following "File Open Web Site" or use the shortcut key "Shift + Alt + O" (which does the same), Visual Studio 2008 hangs with the loading mouse icon for about 8-10 seconds then the file.
But if I do "File Open Project/Solution.." or "File Open File..." the explorer window comes…
I'm playing around trying to write a client for a site which provides data as an HTTP stream (aka HTTP server push). However, urllib2.urlopen() grabs the stream in its current state and then closes the connection. I tried skipping urllib2 and using httplib directly, but this seems to have the same behaviour.
…
My team's Eclipse RCP app builds fine from the Eclipse IDE. When I try to build it from the command line, using the antRunner application, it builds the plugins out of order -- a plugin builds before it's dependencies are built, and so can't resolve some of the needed classes.
Where should I look to fix…
More and more I'm putting all of my code in models and helpers concerning MVC.
However, sometimes I'm not sure where to organize code. Should it go into the model or should it go into a helper. What are the benefits of each. Is one faster or are they the same. I've heard something about all models…
I want to insert a hash in the db using Storable::nfreeze but the data is not inserted properly.
My code is as follows:
%rec=();
$rec{'name'} = 'my name';
$rec{'address'} = 'my address';
my $order1 = new Order();
$order1->set_session(\%rec);
$self->createOrder($order1);
sub createOrder {…
I would like to give my users something similar to crystallines color chooser or themeroller so they can interactively theme the site.
Is there an open source solution that would go most of the way in this respect? Short of that what color picker would you recommend?
Does anyone know what the future holds for VBA/VSTO programming in Powerpoint? I've been working on a Office automation project and find it frustrating to work with Powerpoint in particular since it seems to be one level below VBA support found in Excel or Word. It feels like MS is trying to…
Hello,
I started learning DBIx::class and I reach the point where you have to create the Objects that represents tables. Should this classes be created manually ( hard coding all the fields and relationships.....) or there is a way to generate them automatically using the database schema. I…
Is there any (easy) way to set the jQuery UI Datepicker to disallow selection of specific, predetermined days?
I was able to get this approach working, however, it produces a null error which prevents it from displaying in IE.
'natDays[...].0' is null or not an object
Thanks in…
Hello,
I have a sub class that calls a method from a super class. and the method in the super class use a method that is defined in the super class as asbstract(not really abstract) but implemented in the sub class.
for example:
package BaseClass;
sub new
{
}
sub method1 {
…
Hi All,
I have a generic method in c#:
public IList<T> getList<T>();
When I call it as the way below?
...
Type T1=metadata.ModelType;
getList<T1>();
...
I got error in compiling.
How could I do for it?
I really need to pass the type as Variables to…