I'm fairly new to ASP.Net MVC 2 and understand the MVC pattern in itself. But my question is what's the best way to populate dropdownlists in the UI sticking to the MVC pattern. Should I be going through the controller?
Every article I've seen to do this shows how to do it using javascript and jquery. I have a test application that I'm…
Is it possible to specify which character encoding should be used by OLEDB when querying a DBF file?
A possible work-around would be to encode the query string before the OLEDB call to the DBF file's character encoding and then encode all the results when they are returned. This will work but it would be nice if OLEDB or possibly…
Hello,
I'm attempting to write a script to generate SSH Identity key pairs for me.
from M2Crypto import RSA
key = RSA.gen_key(1024, 65337)
key.save_key("/tmp/my.key", cipher=None)
The file /tmp/my.key looks great now.
By running ssh-keygen -y -f /tmp/my.key > /tmp/my.key.pub I can extract the public key.
My question is how…
If you wanted to re-create the DOM server-side and manipulate it in PHP, how would you choose to go about it?
I'm looking for a fast, multi-user complete server-side web browser that can interface with PHP and run complete Javascript.
Like Jaxer but something I can use with PHP... an extension would be fine, or even an Apache…
I have XAMPP (latest version) installed on my Mac OS 10.6.3
I've added the following to .htaccess because I want .html to be interpreted as PHP.
AddType application/x-httpd-php .php .html
The problem is that the default XAMPP config seems to be caching .html files as static... so even though the PHP statements inside are…
I'm wondering if there are any good non-native form inputs for web development? I am currently using the built in <input> controls. They work just fine, but for my application they are too big (especially on OS X). I am wondering if there are any libraries that I can drop in as replacements.
I am especially interested…
We need to have our apps be translated into other languages. This entails renaming the .text properties of our visible controls as well as other literals found within our apps to whatever language we need to translate into.
Is this something that can easily be accomplished with .resx files? I was thinking of creating a…
There any way i could add a class for the specific order of widget item? i.e. the class name would be widgetorder-1 (for the first appearing widget), widgetorder-2 (for the widget appearing in the 2nd order), etc. I looked into filters but wasn't sure how that worked.
So I have completed my code work.
This is first time releasing the app through iTuneStore.
Current state of reading Core Data (.sqlite) file is already prefetched (already has information like apple's 'Reciepie' program).
Assuming I have successfully released through apple store, and decide to update my application to…
As title, how to do that?
to get the direction of two point we can do like
http://maps.google.com/maps?saddr=40.1212,22.333&daddr=40.222,22.333&z=17"
then how can i plot multiple location using this method by URL address?
Hey All,
I have just taken over a project for a client and the database schema is in a total mess. I would like to rename a load of fields make it a relationship database.
But doing this will be a painstaking process as they have an API running of it also. So the idea would be to create a new database and start…
I have a collection of ViewModels bound to a ListBox. I am trying to bind the IsSelected properties of each together. In WPF it works by setting the style:
<Style TargetType="{x:Type ListBoxItem}">
<Setter Property="IsSelected" Value="{Binding Path=IsSelected, Mode=TwoWay}" />
</Style>
…
So for the second part of my current dilemma, I have a list of folders in c:\file_list.txt. I need to be able to extract them (well, echo them with some mods) based on the line number because this batch script is being called by an iterative macro process. I'm passing the line number as a parameter.
@echo…
I'm writing a Python wrapper for a C++ library, and I'm getting a really weird when trying to set a struct's field in C. If I have a struct like this:
struct Thing
{
PyOBJECT_HEAD
unsigned int val;
};
And have two functions like this:
static PyObject* Thing_GetBit(Thing* self, PyObject* args)
{
…
I'm using the SliderBar from the GWT Incubator in one of my current projects.
I want to add a handler which fires whenever the value of the slider changes, but I'm not sure which handler I need to add to get this to work, or whether I need to write one of my own.
Thanks
I was just wondering how most people fetch a mime type from a file in Java? So far I've tried two utils: JMimeMagic & Mime-Util. The first gave me memory exceptions, the second doesn't close its streams off properly. I was just wondering if anyone else had a method/library that they used and worked…
Hey All
Hope you can advise I would like to add some simple fade in out of an image replacement which I have hooked into a select menu.ie,
$("#vehicle").change(function(){
var selected = $(this).val();
$("#selectedVehicle").attr('src', '/assets/images/mini/'+selected+'.png');
});
<img…
Hi, I need sudo for a command for any path under a particular area. Example:
sudo mycommand /opt/apps/myapp/...
What is the sudoers syntax to allow this command to run in any path that falls under /opt/apps/myapp? This is Solaris 10 sudo.
Thanks.
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…
I have a MMC client that runs on a .Net system, that invokes web methods on a server running on a linux box.
The first task the client needs to do is to perform user login. It prompts the user for username and password.
What is the best way for the client to authenticate the user's…
I've been trying to use persistent keychain references in an iPhone application. I found that if I created two different keychain items, I would get a different persistent reference each time (they look like 'genp.......1', 'genp.......2', …). However, attempts to look up the items by…
Hope someone can advise,
I would like to be able to use google map API to find all Zip codes/cities with x Miles of a point.
Has anyone done such a thing with google map or maybe some other type of service.
Would love to know if so how you have achieved it !
Thank you if you can…