I'm using django.contrib.auth.views.login to log in users. When login is failed, the user and password fields get posted back to the form.
What's the proper way to clean those?
Given the following pseudo-code:
Company
has_many :jobs
Job
belongs_to :company
I'm creating a form to post a new job. In the form, I want to have two fields for an optional company. On submission, if a company was entered, I want to either create or update the company and associate it with the new job. I know if the company exists by searching the companies table for the company's url.
Is it possible to do this using form_for, fields_for, and accepts_nested_attributes_for
given the company may not exist?
In a Setup project the executable files such as ".exe , .dll , .js , .vbs" are acceptable and there is no way to run a .bat file in a Custom Action.
The question is how to run the "xxxxxx.bat" during installation?
Using Zend Lucene I cannot search numbers in description fields
Added it like this:
$doc->addField(Zend_Search_Lucene_Field::Text('description', $current_item['item_short_description'], 'utf-8'));
Googling for this showed that applying following code should solve the problem, but it did not..:
Zend_Search_Lucene_Analysis_Analyzer::setDefault(new Zend_Search_Lucene_Analysis_Analyzer_Common_TextNum_CaseInsensitive());
any thougts?
I have a MovieClip with some text fields inside, there is a way to clone it or generate another in run time? i mean like having arrays of movieclips like.
MovieClip(0).textbox1.text = "some text"
MovieClip(1).textbox1.text = "some text 2"
and soo.... Thanks
Hi,
so currently i'm using pods to create some individual pages for a log, filled with custom stuff.
now i want to use the comments-system for each of this pages e.g.:
mydomain.com/podpages/page1
mydomain.com/podpages/page2
mydomain.com/podpages/page3
this are not pages created with wordpress so simply adding <?php comments_template(); ?> is not working.
any ideas how to solve this problem?
thanks in advance
please leave a comment if something is unclear :)
Hello EveryOne,
i m using asp.NET MVC 2 for my current project and i need to validate form fields both on client and server side. for that i started with DataAnnotations. Now, i figure out that i have to write buddy class for every model or i have to go to designer generated code and put my annotations there (not a good idea though). if someone can suggest me a solution that helps me avoid writing those buddy classes and get the same functionality.
Regards
Adeel
I'm a newb to WCF bindings and would greatly appreciate if someone could give me an example of a custom binding using Binary message encoding with Transport security (clientCredentialType="None").
Thanks in advance.
I am using my own Custom View to show the files and folders and also using a search box to jump to a specific folder. In that case How to send a message to File Open/Save dialog to enforce it to change the current displayed folder.
e.g. If the dialog shows files and folders of current displaying folder "C:\", I want an API (or any piece of code) to enforce to change the current folder to "D:\"
I want to create a view for each tree for each customer of this 3 table structured in this way:
Fields: db_attrib.name, db_attrib.name, db_attrib.name until the last db_tree.id_child = 0
Values: db_attrib_values.value where db_attrib.id = db_attrib_value.id_attrib and so on for each child
And so on for each db_tree.id
This is the link to sql fiddle with the prepared structure:
http://sqlfiddle.com/#!9/21516
I have developed a web application with fields Keyword,Latitude and Longitude.
I want to add one more field called Radius to the web application..
How should i proceed.
Waiting for the reply,
Thanks in advance
I'm seeking advice on best practice when submitting a varying amount of POST variables.
Do I use JSON or some character separated list to merge all the values into one field or use a sequence of fields like 'autocomplete1', 'autocomplete2' and so on.
Thanks in advance,
Ben
Looking for a custom ASP .NET control were the InnerHTML of a DIV is connected to a databas to fetch the content to render the HTML content from the databas inside the DIV.
Is there one out there I have missed or anyone could tell if its possible to make my own DIV component to make it DataBound?
Thanks,
Stefan
I am looking for an opinion on the whether to use Google custom search, Yahoo search builder or build my own for web projects (no more than 100 pages of content). If I should build my own - do you have any fast start kits you could recommend?
Many thanks
Chris
I always get warning when use mysql2 do query
/usr/local/lib/ruby/gems/1.9.1/gems/mysql2-0.2.6/lib/active_record/connection_adapters/mysql2_adapter.rb:463: warning: :database_timezone option must be :utc or :local - defaulting to :local
I did see a option for Timezones
Mysql2 now supports two timezone options:
:database_timezone - this is the timezone Mysql2 will assume fields are already stored as, and will use this when creating the initial Time objects in ruby
:application_timezone - this is the timezone Mysql2 will convert to before finally handing back to the caller
did any one know, how to usage, and where to set this option?
Thanks.
I'm working on a compact framework project and whilst most of the properties are fairly straight forward (I.e. mark them as browsable in the xmta file), I'm struggling to get this to work for more complex types - on the full framework, I'd just implement a custom TypeConverter and go from there, but it seems the CF TypeConverter doesn't have any of the type converting methods to override, which has left me a little stuck?
It probably should be blindingly obvious but how would I go about supporting design time property support for more complex type?
I need to format some hexdump like this:
00010: 02 03 04 05
00020: 02 03 04 08
00030: 02 03 04 08
00010: 02 03 04 05
00020: 02 03 04 05
02 03 04 05
02 03 04 08
to
02 03 04 05
02 03 04 08
02 03 04
02 03 04 05
02 03 04 05
02 03 04 05
02 03 04
a) remove the address fields, if present
b) remove any 08 at the end of a paragraph (followed by an empty line)
c) remove any empty lines
How can this be done using lex? thanks!
Running .net 2008, asp.net, Linq to sql, sql server 2008 express
Foo f = db.Foo.First(x => x.ID == id);
f.IsValid = true;
db.SubmitChanges();
I have a very basic table, which has several fields, and no FK constraints. None of the data saves when I call .SubmitChanges(), but no error is thrown. Any ideas?
Hi friends,
I'm new at Drupal. love it so far :)
I'm creating a CCK custom content type. I need to make a amenities list in checkbox format. so I made;
File Type: Text
Widget Type:
checkboxes/radiobuttons
and Allowed values list:
onsite_dining|Onsite Dining
meeting_space|Meeting Space
business_center|Business Center
and it creates Radio Buttons which only 1 selection :( How can I make it Check Box to give ability to select more than 1?
Appreciate helps!
This off-topic item refers to people with major achievements in fields such as engineering, science, and mathematics. Here's my picks:
Eric Drexler for his work on molecular nanotech. His book, Engines of Creations, is mind-blowing.
Robert Freitas for his work on molecular nanotech. The breadth of his multi-volume book, Nanomedicine, is impressive.
Richard Stallman for promoting Free Software.
Hi All,
All my controllers use a custom Action Controller class, is there anyway to set the action controller class it uses when generating the the controller code?
Or would be even better if I could set it up to map the action controller class to use based on the module the class is being created under.
Cheers.
i want maven to download custom jar files from an ftp how to set the path?
and is there anyway i can combine dependencies or plugins within one element tag.i dont want to write for each dependency r plugin like importing from one external jars folder
btw i am using maven plugin for eclipcse ide
thanks
Hi there,
does anyone know if its possible to restyle a window in wpf. Or even better any tutorials or samples?
Basically i would like to change the minimize and maximize buttons - oh and the close button to be slightly bigger....
I have expression blend....
Is this possible?
I saw some samples in infragistics sample apps which have some great looking forms and as far as i can tell it doesn't use any custom wpf controls...
Any ideas really appreciated
I am looking for good helper libraries to generate a rather complex form in Django.
Dynamic field dependencies: Say if option a is selected certain fields are shown/hidden and subset of these are mandatory depending on option selection.
Add more: On clicking "Add more" button that clones some widget.
This is something which ToscaWidgets is capable of handle. http://toscawidgets.org/documentation/tw.dynforms/tutorial.html#growing
Currently I am managing this with some jquery code however not completely satisfied.
TIA
If I am doing a search in sharepoint, some of the results I'm expecting are not being returned. I believe its because in active directory these entries may not have all the fields. So a name that doesn't have the givenName attribute set in active directory is not being returned from this query. Is there a way I can get this to work like I expected?
"select LastName, FirstName, PreferredName, AccountName from scope() where \"scope\"='People' AND (LastName like '%" + search + "%' OR FirstName like '%" + search + "%' OR PreferredName like '%" + search + "%')";