Posts

asp.net mvc 3 - How to determine why unobtrusive validation is not working -

What determines why the controversial verification is not being run? I posted all my custom Validators, and just using MVC validators, and still when I clicked back to the server for verification. This is driving me crazy. The only thing I can think of is that I have a hidden input on [HiddenInput (DisplayValue = false) . Javascript function to determine which fields are submitting the form Can put a breakpoints? EDIT: I realize that only IE8 is generating server side validation. IE9, FF, and Chrome are all okay Edit 2: Okay, this would be a problem or something like cash, at some point it started working again, and it still restores everything Even after working. Learn Less If you get confused problems, clear yourself. Ensure that you have given the following script reference and the path is correct: & lt; Script src = "@ Url.Content (" ~ / scripts / jquery.validate.js ")" type = "text / javascript" & gt; & L...

bash - curl -sIX HEAD binary file -

#! / Bin / bash HEAD = 'curl -six HEAD http://gert.iriscouch.com/ Www / test` प्रतिध्वनि "$ HEAD" अगर [[$ HEAD = ~ एटाग: \ \ "(। *) \"]]; तो गूंज "$ {BASH_REMATCH [1]}" फाई HEAD = `कर्ल -sIX HEAD http: // gert.iriscouch.com / www / परीक्षण / user.png` गूंज" $ HEAD "यदि [[$ HEAD = ~ ETag : \ \ "(। *) \"]]; तो गूंज "$ {BASH_REMATCH [1]}" फाई दूसरा प्रमुख यह ETag से मेल नहीं खाता पर? HTTP / 1.1 200 OK सर्वर : CouchDB / 1.1.0 (Erlang OTP / R14B03) ETag: "2-bd7278b9cc8b0ddaf7c863102f42f246" दिनांक: गुरु, 01 सितं, 2011 19:47:02 GMT सामग्री प्रकार: पाठ / सादे; charset = utf-8 सामग्री-लंबाई: 207 कैश-नियंत्रण:-दोबारा सत्यापित करना होगा 2-bd7278b9cc8b0ddaf7c863102f42f246 HTTP / 1.1 200 OK सर्वर: CouchDB / 1.1.0 (Erlang OTP / R14B03) ETag: "2-bd7278b9cc8b0ddaf7c863102f42f246" दिनांक: गुरु, 01 सितं, 2011 19:47:03 GMT सामग्री- प्रकार: image / png सामग्री-MD5: एसएस + 3YnbRbRQ4uiJKcnFkdA == सामग्री-लंबाई: 4...

python - How do I make an ubuntu/debian package for a twistd/twisted plugin? -

As a follow-up action, how can I create a Debian package for a twisted plugin? Setting.py is written well using CDBS / Python-Central / dh_python2, but I still do not have much luck. The trick with those devices is that they are basically 'Python setup.py install --root =' and then whatever ends up in the package '', maybe once the correct answer to the previous question Given this question, has this been controversial? Apparently this problem is a twist to any person by Debian Has the plugin packed successfully? Is accompanied by 'Python-Support', which corresponds to the twisted plug-ins. Tells about this problem and provides a solution: Packaging of twisted plug-ins with dragon - Support is broken by the dragon policy also clear The format tells you that you should use the same packaging helper for the packages that share the same Python namespace. You should use dh_python2 for this, or use 'in-link-link' with (excluded) 'dh_...

python - SQLAlchemy Event interface -

I am using SQLAlchemy 0.7. I should have some 'post processing' after the session.flush () i.e., i need to access the examples which are included in flush () and iterate again Make them The flush () call will update the database, but in some instances, some data is also stored in the LDAP database, I need to trigger an call using an instance method to write an update in an LDAP database like a SQLLame. I thought I am using after_flush (session, flush_context) event, wide, but how do I list the update () 'd frequencies Can I get it? On one side, how can I decide which columns have changed (or 'dirty') on an example? I have been successful in knowing that a complete example is dirty, But not personal qualities According to: Note the status of the session still Is in pre-flush, i.e. "new", "dense" ?????, and has been removed? The list still shows the history setting on the pre-flush state as well as the example setting. Th...

javascript - Posting to a Facebook wall using a single function -

Overview: I found a website whose sentences are Facebook Post on, but in each sentence there are input boxes, people who can change the default value. As with a digital "crazy leebe", each row has a button that will post the line to Facebook. Help with: After having the same function to post data on the button press, I have different function names on Facebook Could give and could add the variable, but it dashed the purpose of the function. HTML & lt; Div id = "post1" & gt; & Lt; Span & gt; I like & lt; / Span & gt; & Lt; Input name = "post1_1" value = "tom" type = "text" id = "post1_1" /> & Lt; Span & gt; I think he is & lt; / Span & gt; & Lt; Input name = "post1_2" value = "good" type = "article" id = "post1_2" /> & Lt; A href = "javascript: post (post 1)" & gt; Post Now & lt; / A & gt;...

Running jasmine with rails 3.1 and coffeescript -

I am trying to set up a Rail Project 3.1 with coffeescript and jasmine for testing. After the tutorial I have, but I am getting the following error: Internal server error unread method # static_root = 'for # & lt; Sprockets :: Environment: 0x00000102128718 & gt; How do I solve it? Thank you manu Instead, you can follow this. It works for me. Be sure to start the guard before writing your glasses.

jquery - can you replicate all buttons on the top in jqgrid -

Image
I'm looking at jqgrid, you can move pagers to the top of the grid and on the default button but I have to see that Can you move the entire line (along with the pager and default and custom) in the upper part of the grid? If I use the Clonet Top, it only takes the regular buttons, but I do not dynamically add update: As you can see below, I added my own personal refreshgrid button using this code and it was not displayed at the top: .NavButtonAdd ('# Pager' , {Caption: "", title: "reload grid", buttonticon: "UI-icon-refresh", onClickButton: function () {$ (grid selector) .tigger ("relo AdGrid ");}, position:" last "}); parameter cloneToTop: true to navGrid what you want: $ ("#list"). JqGrid ('Navigrid', '#Pager', {Clonautop: true}); See and for additional information.

ruby regex and grouping -

I got the text 'some-lesson here' and / some - (\ W +) - here / all the work is fine, but if I use that expression, then I will call it / some - (? , it increases an error undefined (? ...) sequence? What am I doing? (Ruby 1.9.2) All this is from my innate Yes, I have used RVM and my Ruby version 1.9.2 is in progress. But I have tested that expression where it runs in footer ruble 1.8.7 in ruble. Ruby 1.8.7 and Ruby 1.9.2 have a different regular expression engine. On No It seems to me that you are looking at the wrong Ruby. Do you have RVM installed? 1.9.2 & gt; & Gt; RUBY_VERSION = & gt; "1. 9.2" & gt; & Gt; S = 'Some-Text-Here' = & gt; "Some text here" & gt; & Gt; / Something - (? & Lt; group_name & gt; \ w +) - here = / ~ s = & gt; 0 & gt; & Gt; Group_name # = & gt; "Text" 1.8.7 & gt; & Gt; RUBY_VERSION = & gt; "1.8.7" & g...

c# - PayPal Express Checkout: Notes not being returned -

Paypal_base.dll और Payflow_dotNET.dll का प्रयोग निम्न सेटअप करें: SetExpressCheckoutRequestType.SetExpressCheckoutRequestDetails.AllowNote = "1" जब पेपैल एक्सप्रेस चेकआउट (सैंडबॉक्स) के साथ बाहर की जाँच करते हैं, तो उपयोगकर्ता नोट जोड़ सकते हैं हालांकि, जब उपयोगकर्ता कोई आइटम सबमिट करता है, तो नोट फ़ील्ड null है विशेष रूप से कॉलिंग DoExpressCheckoutPayment जनसंख्या DOxpressCheckoutPaymentResponseType हालांकि, प्रतिक्रिया पर, यहां स्थित नोट फ़ील्ड: DoExpressCheckoutPaymentResponseDetails है null । क्या कुछ सेटिंग है जो मुझे याद आ रही है? पेपैल का उपयोग करते समय यह ऑर्डर नोट से मेल खाती फ़ील्ड नहीं है? आपको अपनी पेपैल खाता सेटिंग्स में सेटिंग्स को संशोधित करने की आवश्यकता है। सैंडबॉक्स में दोनों, और उत्पादन में आपको खाते को भुगतान प्राप्त करने की क्षमता की अनुमति देनी होगी। एपीआई ओवरराइड नहीं करता है।

events - jQuery help with unbind then bind again after animation sequence -

I have the following JS functions and after the click event, I would like to stop anything and stop it. Allows the event to happen again when the function is finished. $ ("# tweet_activate a"). Click (function () (if ($ ('body'). HasClass ('(' '= "154"}, 400) .Delay (1200). Fadeaut ();} and ($ ($ (at home)) ($ (This) .Parent (). "#int_comp"). Animate ({width: "+ = 157"}, 100); $ (this) .Parent () .pause (true, true) .mate {Top: "+ = 154"}, 400 $ ("+ = 56"}, 400); $ ("#tweet"). Delay (): $ (". = 56"}, 400); Derelli (1200) .ED ();} $ ("# tweet_text"). 900 (): ({true: "+ = 214"}, 400); $ ("# tweet_deactivate"). Delay (1200) .Fedine ); $ ("# Tweak_text p, #tweet_text span, #tweet #links") .Dele (1200) .Fedine ($) "$" ("# eye"). Delay (600) .fadeaut (); return back;} Animate ({width: "- $ (" 157 "}, 400);} $ (...

java - Inserting new line characters in a string which has html code in it -

My problem is that I have developed a tool that merge two HTML snippets (each snippet has its own & Lt; / html & gt; & lt;! DOCTYPE html & gt; tag) I combine them into a string and then save it as an output.html file which can be opened in the browser. The problem is that the output is not HTML formatted and wrapping all the text / code in a single line. The current output looks something like this: - & Lt; Title & gt; 1 ABCD & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Header roll = "exis" & gt; & Lt; / Body & gt; & Lt; / Html & gt; & Lt ;! DOCTYPE html & gt; & Lt; Html xmlns = "http://www.w3.org/1999/xhtml" XML: lang = "en-US" lang = "en-america" ​​& gt; & Lt; Top & gt; & Lt; Meta charset = "UTF-8" /> & Lt; Title & gt; 1 efgh & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body ...

Objective C - deallocated variable -

I have this static / singleton class in which the member variable is everything works fine, However, when I left the app and came back, that member is crashing the variable app. I tried to resume the member variable, but this does not seem like. I am including the samples of my code below, have anyone seen before this? Header (.h) File: @ Interface Metrics: NSOJs {Metrics * Metrics; Distance * distance; } Implementation (.m) file: @ Milan matrix static metrics * metric = zero; + (Metrics *) Shared Instruction {@ Synchronize (Self) {If (Matrix == zero) {Metrics = [[Metrics Alok] init]; }} Return metric; } - (id) init {self = [super init]; If (self) {} returns back to himself; } - (zero) SetupDistance {distance = [[Remote Alok] init]; Distance.test; and it is used, where it is AppDelegate.m - (zero) applicationDidbackActive: (UIApplication *) application {{[[Matrix Share Instance ] SetupDistance]; } Thanks, T Skip the app "you almost certainly mea...

c++ - Why does EnumWindows return more windows than I expected? -

In VC ++, I use EnumWindows (...), GetWindow (...), and GetWindowLong () To do this, check the windows list and check whether the window is the top window (not in the form of a second window owner), and what the window is showing (WS_VISIBLE) However, although my desktop is showing only 5 windows, this EnumWindows I'm giving 50 windows, how odd it is! Any windows geek here please help me clarify ... "post-text" itemprop = "text"> To list only windows in the taskbar The way (or similarly in the alt-tab box) is described by Raymond in this article on MSDN Blog: and it is a super function to check whether the window is in the Alt tab Has been shown: BOOL EASAT TABWANDO (HWND HWD) {TITLEBARINFO ti; Hwd hwdt, hwdwow = null; If (Ivindo Wausible (HWND)) will change wrong; HwndTry = GetAncestor (hwnd, GA_ROOTOWNER); While (hwndTry! = HwndWalk) {hwndWalk = hwndTry; HwndTry = GetLastActivePopup (hwndWalk); If (iSwindOvisable (HWDTE) break); } If (hwndWalk!...

ruby - Rails 3 add virtual attribute dynamically -

My setup: Rail 3.0.9, Ruby 1.9.2 I have reasons to do this But what I need is a way to dynamically add a virtual characteristic to an active sequence of results. This means that I am not using attr_accessor in the model and instead want to dynamically add virtual features to one result. For example, user = user. A # user has the following features: Name, Email, Password What do I like to say Add (without using attr_accessor ) a virtual characteristic status to user , is it possible? You should do this: users.each do | User | User.instance_eval DRF status example_variable_get ("@ position") end DEF status = (val) instance_variable_set ("@ position", val) end and end

c++ - List of base classes for use with variadic templates -

Is there a way to access all the base classes in C ++? Since variadic templates are available I think it will be for example ___BASE, which is a type of variable that is obtained from the current class, will also enable an inquiry whether a class or its base class is of some type . Is it possible before or is I missing something here, why is it not possible? A common mechanism in the language that will tell you all the base classes, though you can all members of your class hierarchy You are free to add a suitable type-tof, which will provide this information (such as TypePef a tubal whose argument type is ancestors of ancestors and ancestors) - you can probably write a little bit of the mix. To check whether something is the basis of some other, it is already part of the standard in the size of Std :: is_base_of type attribute.

javascript - Remove node from and replace it with new values -

How can I add tags to objects, replace their original tags with modified values, I want to run this replacement I am using But the ultimate place is not found or has been removed. How can you recognize a particular paragraph under ? Thanks! function autoObjectFun () {var objects = document.getElementsByTagName ('object'); Var len1 = objects Length; (Var j = 0; j & lt; len1; j ++) for {var paramObj = objects [j] .getElementsByTagName ('param'); Var len = paramObj.length; {Var srcStr = paramObj [i] .getAttribute ('name') for (Var i = 0; i & lt; len; i ++); If (srcStr == 'flashvars') {var newParamObj = document.createElement ('param'); NewParamObj = paramObj [i] .cloneNode (true); Var params = paramObj [i] .getAttribute ('value'); Var newperm = ''; Var Paramplay = 'Autoplay = 0 & amp;'; NewParamObj.setAttribute ('value', absolute); ParamObj [i] .removeNode (true); Var newObject = objects [ja] ....

Bash backup script -

I am trying to create a script for backup to my service provider, though it is empty tar archive and empty sql files And I do not know why. Can anyone see the problems here? #! / Bin / bash SERVER_DIR = "/ var / www / vhosts / site.org" DATE = $ (date + "% d-% m-" $ (which mysqldump) "GZIP =" $ (gzip) "MKDIR =" BACKUP_DIR = "/ backup / $ DATE" NAME = "full- $ DATE" MYSQLUSER = "admin" MYSQLPASS = "pass" MYSQLDUMP = "$ (which mysqldump)" -p $ BACKUP_DIR tar -zcvf $ BACKUP_DIR / $ NAME.tar.gz $ SERVER_DIR $ MYSQLDUMP -u $ MYSQLUSER -p $ MYSQLPASS - All-Database | $ GGIP-9 & gt; $ BACKUP_DIR / $ NAME.sql Find / Backup / -MTM +31 -XAC RM-RF {} \ I think you just have to gzip line On -c is missing, try: $ MYSQLDUMP -u $ MYSQLUSER -p $ MYSQLPASS - All-D Tabes | $ Jijiaipi-C 9 & gt; $ BACKUP_DIR / $ NAME.sql.gz

asp.net - Can Ajax be supported on Sharepoint 2007. Unknown Server tag 'asp:ScriptManager' -

I am trying to use Ajax on SharePoint 2007. I am using webpage templates in Visual Studio 2008. Here I am building Copying the pure solution and aspx pages in my SharePoint webpage and copying Dell from my local to the Bin folder of the SharePoint Web application at the same time I have also copied the AZ Toolkit to the same bin folder where I copied the project DLL did. I am using a simple calendar booster control and tying it in a text box. When I run it on my local machine, I am able to take it out. But the problem occurs when I'm deploying the same code on the SharePoint web application I have gone through a lot of blogs and forums that I have seen that the webpage of SharePoint Web Application The config file has been edited and some have been suggested to install Sherpole Service Pack 1. Error below when I am implementing my code on SharePoint Server. "unknown server tag 'asp: ScriptManager'" Do I sharepoint Can work on AJAX work on server 2007. ...

flex - How to manage positions of DisplayObjects in actionscript? -

I use the following code to set the position of a DisplayObject in the center. obj X = (screen_width - obj.width) / 2; or obj.x = (parentObj.width - obj.width) / 2; And I use the following code to show 2 objects vertically. obj2.x = obj1.width + interval And I want to show the 2 objects vertically and the following code to determine the position of the center I use. var obj3: Sprite = new Sprite; Obj3.addChild (obj1); Obj3.addChild (obj2); Obj2.x = obj1.width + interval; Obj3.x (screen_width - obj3.width) / 2; Is the above code a good way to manage the display object's position? Are there better and simpler ways to do this? OK You can also add them to HG Group or VGUP, (or Hx and Vibox if you are using Flex 3). But when I want to implement the vertical layout without using these types of objects, I usually make the "update ()" method (note that the following code may contain syntax errors: this is just the algorithmic example Form): ...

ruby on rails - Whats wrong with this else if statement? -

Actually my controller is now grabbing all the members: @ members = member All and Im checks by checking them by looping them whether they have uploaded the profile picture and if not, the default should be loaded: ;% @ members.each Do Members | & Gt%; & Lt;% Unless that member.image.nil? & Gt%; & Lt; Li style = "float: left; width: 100px;" & Gt; & Lt;% = image_tag (member.image.url (small))% & gt; & Lt;% = link_to member.email, member_path (member)% & gt; & Lt; / Li & gt; & Lt;% else% & gt; & Lt; Li style = "float: left; width: 100px;" & Gt; & Lt;% = image_tag ("default_member_small.jpg")%> & Lt;% = link_to member.email, member_path (member)% & gt; & Lt; / Li & gt; & Lt;% end% & gt; & Lt;% end% & gt; It seems that each member has a profile image, and the image tag is saying "images / small / missing.png" for missing images. What gives? ...