Posts

Showing posts from September, 2014

facebook - Get user profile picture by Id -

Now I am working on a web application which is based on most Facebook FAQs, I have some data about users - In fact, possible public data is available - such as name and id. I also know that a profile picture is a part of public data, and I am surprised that I can directly link the picture of a user's profile to my How can I get it? Thanks for example: "+ facebookId +" / picture? Type = class for example: Apart from this, there are more sizes than "square".

mysql - Simple survey database design -

Image
I am creating a survey for the visitors of my event, though it was a time since I created a database, need help. I find some solution but they are in widespread and there is no such thing. Visitors need to be anonymous, but they can leave them behind the email (separate table emails which are not related to ATMs) They have approximately 20 questions, some are open, some are There are options (radio) and there are several options (checkboxes). The questions need to be reused. I do not know how much you have to go beyond a lot of people in the picture below. How do I go from here? Should there be a relationship with an answer table? With surveys or with questions? Edit: In the following link, most of the surveys are based on classic design patterns. One of my surveys is more information in the following link: I possibly take a survey The user's event may have a host named "User_Answer_Session", which contains surveys and links to the user; And then ...

XML parsing in python: expaterror not well-formed -

I use Python xml.etree.ElementTree to parsing some XML on a file I am doing However, I get this error through the document: xml.parsers.expat.ExpatError: not well (invalid token): line X, column Y So I go to line X, column Y, and I see an ampersand (& amp;) with highlighting on red background. what does this mean? Its preceding two letters are & gt; & Gt; , so that the & gt; & Gt; & Amp; Is something special about ? How does anyone decide on this? The & amp; There is a special character in XML, which is used for character organizations. If your XML contains & amp; & amp; Amp; Amp; or & amp; # 1104; or not as part of an entity like the choice, the XML is invalid.

javascript - JSONP vs IFrame? -

I will soon need to create a widget that some of our customers can embed on their website. The embed code for my widget will be something like this for future proof: & lt; Script type = "text / javascript" src = "path / to / remote / file.js" & gt; & Lt; / Script & gt; & Lt; Div id = "my_widget" & gt; & Lt; / Div & gt; What are the strengths and weaknesses of iframes versus JSONP? Is there any general SEO issues with IRMs? First, iframes and jsonp are not mutually exclusive: one means rendering one, the second is a communication. It means. Your choice is between being included in the document (which is creating a widget in the host DOM) or in-ifrim (which is a new, different DOM for the widget). The advantage of an iframe is the sandbox: there is no conflict between your widget and the host's javascript and CSS. This means that you can safely: You want to use / define any javascript library Simple ...

- Where Developers Learn, Share, & Build Careers

I have a component inside JScrollPane , and I would like to handle some scroll events though , I do not want to handle them all Unfortunately, when I add the MouseAllevator to my child's component, it stops receiving scrolling events. How can I do that? Are those events that do not want to handle manually? What about it? Component.dispatchEvent (AWTEvent E); Actually you will need to call: getParent (). SenderAvent (mouse Event); You may now need to dig the scrollpin, but you can play with this idea

- Where Developers Learn, Share, & Build Careers

What is possible to create a stored procedure is a parameter that has all the different options, but in at least the parameters Should one be from? For example, if I have a process that updates the record, then I will have to pass in the record id, and then at least one column has to be updated. I must check the process to provide at least one additional parameter / column to do this . Why do I want to be a programming language of my choice rather than a stored proc? This logic is the type of investigation that TSQL is not very good; To check this, the syntax will be "icky" and it will slow down. In addition, the biggest performance gain is running a stored proc you compile SQL. In this situation, because the SQL needs to be dynamically created, you lose that profit, thus, why is it in the form of a stored procedure?

If I use HashMap<String, ArrayList> in Java -

मैं जावा में हैशमैप & lt; स्ट्रिंग, अर्रेलिस्ट & lt; स्ट्रिंग & gt; & gt; का उपयोग करता हूं। जब इनपुट मान आता है, उदाहरण के लिए, इनपुट मान [1, "stack"] , [2, "over"] , [1, "प्रवाह"] ..... मैं मान दर्ज करना चाहता हूं [1, ["stack", "flow"]] , [2, "ओवर"] हैशमैप में। लेकिन कुंजी मान डुप्लिकेट है तो, हैशमैप को अधिलेखित किया गया था। तो, मैं क्या कर सकता हूं? कोशिश करो A: जावा में ग्राफ का प्रतिनिधित्व करने वाला पारंपरिक तरीका है मानचित्र & lt; V, सेट & lt; V & gt; & gt; , जो कई तरीकों से अजीब है अमरूद के बहुआयामी रूपरेखा कुंजी से एक मैपिंग को कई मानों को संभालना आसान बनाता है। ए ListMultimap मानों की एक सूची में कुंजी को मैप करेगा उनके आदेश का, जबकि एक SetMultimap अलग मानों के सेट में कुंजी को मैप करेगा।

java - Should unnecessary elses be kept? -

अगर मेरे पास कोड का एक सरल हिस्सा है: सार्वजनिक शून्य ट्रेसपैथ () { Int चरण = 0; चरण = बीएफएस (); If (steps == 0) {pathFound (false); System.exit (0); } और {System.out.println (चरण); pathFound (सही); System.exit (0); एपीएआईके यह और के रूप में सार्वजनिक शून्य ट्रेसपैथ () {int steps = 0; के बिना rewriten हो सकता है; चरण = बीएफएस (); If (steps == 0) {pathFound (false); System.exit (0); } System.out.println (चरण); pathFound (सही); System.exit (0); } क्या कोई प्रदर्शन (या अन्य तार्किक) कारण ऐसा और को रखने (या हार) है? या यह सिर्फ (इस उदाहरण में) शैलीगत पसंद है? इस स्थिति में यह शैलीगत वरीयता है क्योंकि आप अगर बयान के अंत में बाहर निकलें यदि आपके पास सिस्टम के पास नहीं था, तो एक्सट (0) के अंत में, दूसरे उदाहरण में आप कोड के दोनों टुकड़े निष्पादित करेंगे।

qt - Handling mouseevent in QStatusBar -

In my status prompt, I added a QLabel inside which I am displaying some message . Now what do I want to do when I click on that code in QLabel ( QStatusBar ), the message should be missing. The added status is added to the following: QLabel * cpyrightlbl = new QLabel (); Ui.statusBar-> AddWidget (cpyrightlbl); Cpyrightlbl- & gt; Set text ("demo message"); Cpyrightlbl- & gt; Set stylesheet ("border: 3px"); Cpyrightlbl- & gt; SetFixedWidth (.frameGameometry () width ()); Cpyrightlbl- & gt; Show (); You should create your own category from QLabel And then the function QLabel :: mousePressEvent (QMouseEvent * ev) . Repeat the zero CMyLabel :: mousePressEvent (QMouseEvent * ev) function {if (& gt; Button) == QT :: LeftButton} {This-> clear (); // or // it- & gt; Set text (""); } QLabel :: Mousepress Event (Eve); }

javascript - How can I hide my page name and extension in the address bar? -

How can I hide my page name and extension in the address bar? For example, when I click on my "home" link, it will take me in: www.mysite.com/index.html But instead I should show this address in the address bar without the page name and extension like: www.mysite.com / How are you writing your" home "link? After saying this, share in /index.html your anchor tag . In addition, if you want to show the main site URL www.mysite.com for every local link in your site, your site (Photo Gallery, About Us, etc.) ), Wrap your entire website in iframe in an iframe which is the entire space of the viewport that can be changed by changing address bar . Reference: The above jsFiddle site this sim shows the description of the Pip Ifframe method. Note that the address bar is always in one place because ifframe is receiving all navigation interactions. See the address bar to access / show / without Edit page .

how to import com.android.mms.R? -

In some sections of the Android source code, they import com.android.mms.R, but I do not later Can I try com.android.mms.r? Any method can be used to import if your class is already imported import com.android.r , clear it and clean up the reconstruction project. If you used any Res Res by R.XXXX, then your project R will be automatically imported or ctrl + shift + O In addition to this, if it does not work (right click on project), then select the target version of 4.0 here, then clear it. First remove import com.android.r from the line class

- Where Developers Learn, Share, & Build Careers

I am using Windows 7 and am trying to install ADT plugin in Eclipse. I also tried Eclipse Classic 3.7, Eclipse EE, Eclipse Juno and 4.2. Eclipse in all cases could not establish it. It stops 35% to 50%. I have kept the system with 2 Mbps dedicated internet all night (the speed of thought connection is the problem), but in vain. You can try using "Eclipse Marketplace" from the following steps to get you the ADT plugin for eclipse Installing can help: Open Eclipse Go to Help - & gt; Search as "ADT plugin" Click the "Android Development Tools for Eclipse" section. Click on the Next button and Eclipse Instructions Follow li>

Regex domain validation -

निम्न कोड / ^ (http | https): \ / \ / [ एक-Z0-9] + ([\ - \] {1} [एक-Z0-9] +।) * \ [az] {2,6}। (: [0-9] {1,5}) ? (\ /.* â ???? ????)? $ / Ix सभी प्रकार के डोमेन को मान्य करता है। मैं मान्य करना चाहता हूं केवल एक डोमेन या सबडोमेन (उदाहरण के लिए .cu.cc या .CO.cc )। आप इसे केवल अपने डोमेन रीजएक्स के अंत में जोड़ सकते हैं: (? & Lt; = \। Cu \ .cc) $ यह एक सकारात्मक रूप से पीछे है

tridion - Concern about publishing with SiteEdit on two different websites -

We have two websites for mobile and are accessed from a PC. Our template is ready so that the content can be shared between the two websites. SiteEdit is enabled on the PC website. My concern is that when a person uses SiteAdit on the PC website, will the mobile website page be published automatically or not? The content will not automatically be published on the mobile web site unless you explicitly configure it. However, the shared content will be modified, of course, and as soon as someone decides to publish, the mobile site will be updated with the content optimized for your PC site. For example: There may be more space for text in your PC site, so you may take the exams to prepare headers that are too big for your mobile site. The fundamental question is whether you can share content between two different media What are the advantages of simple blueprints will be affected by possible conflicts? You have to decide for yourself.

google api contacts php simplexml -

I want to get the contact's name from Google Contacts without any luck. However, I am unable to remove an email address. Does anyone show me what I am doing? $ xmlresponse = file_get_contents ('https://www.google.com/m8/feeds/contacts/default/full?oauth_token=' $ accesstoken); // Simple xml $ xml = Reading XML using new SimpleXMlelement ($ xmlresponse); $ Xml- & gt; Register XPathNamespace ('gd', 'http://schemas.google.com/g/2005'); $ NameFirst = $ xml- & gt; Xpath ('// gd: given'); // I also have / gd: name $ result = $ xml- & gt; Xpath ('// gd: email') is tried; Forex Currency ($ nameFirst $ nameF) {echo $ nameF- & gt; GetName (); } Forex Currency ($ $ $ Title) {echo $ title- & gt; Attribute () - & gt; Address "& lt; br & gt;"; }? & Gt; XML was found by Google Contacts API, the name node was a normal XML node " Title "but the email was a parameter in a gdata tag gd: ema...

powershell - From Msi , how to get the list of files packed in each feature? -

We have used wix to create MSI. Each MSI will have 1 or 2 or 3 features such as the Ensure feature, the webserver feature and the DB server. Now I was asked to get the list of config files submitted in each feature. The web associated with each feature via the wxs file. The list of config files is hard to find. Is it possible that the files of the feature related to a particular search method are listed? Is there any way easier (queries or some other automated scripts like Parscheld) P> Wix comes with a net SDK referred to as DTF ("Deployment Tool Foundation"). It wraps windows msi.dll between other things. You can get these .net Microsoft.Department. The assembly can be found in the SDK subdirectory of the * .dll WIND Toolset installation directory. The documentation is in Doc subdirectory in dtf.chm and dtfapi.chm . As shown in the document, you can use this SDK to write code which queries the MSI database with SQL, and you will be...

php - Show script 1 from 6am to 12am and the rest of the time script 2 -

I have two javascript, but I want to display one from 6 to 12 (server time is not) and The rest of the script How will this be done? An example would be greatly appreciated gt; = $ minimize & time () & lt; = $ most) {? & Gt; & Lt; Script ... 1 & lt ;? Php} and {? & Gt; & Lt; Script ..2 ... & lt ;? Php}? & Gt;

- Where Developers Learn, Share, & Build Careers

I want to know whether to set the default subscription provider (subscription provider) through a configuration file via code Impossible . This is not a direct approach to your question. Instead, implement a custom subscription provider, and use the example class to inject the desire class (for example) when running For example, Public override subscription user gateuser (string username, bool user ifline) {var user = IoC.Resolve & lt; IUserService & gt; (). GetUserByU name (user name, userIsOnline); }

- Where Developers Learn, Share, & Build Careers

I am trying to wrap the c ++ class in a php extension. Using this link, and I Also have created a module for the php extension. After this I have to compile the C ++ class in a PHP extension. How can i do this ??? I recommend that you read what is also referred to in besides The PHP documentation has one.

Using Ruby Symbols -

Image
For the first time, I tried to learn Ruby two years ago, now I have started again. Because of which I stopped, because I could not understand the symbol class. And now I am at the same point again, when and when you use symbols, I have read other posts on Googled for many explanations, along with stack overflow, but I am still unable to understand it yet. At first I thought that there was a way to make the symbols "continuously named", without going through the same process without java. An arbitrary value public static final string ALL = 8; However, when you use it in an example, it does not mean too much attr_accessor: first_name etc. Are the symbols just a light string class? I am having trouble understanding that I should explain how, how and how the symbols should be used in my own sections and frameworks. In short, symbols are light strings, but they are also irreversible and non -Rembers are collectible. You should use not as an irreversible...

jasper reports - Fix Detail Band Relative To Top In The Page It Is Being Printed -

I am using iReport version 4.0.1. I am facing a problem in which I want to display some information which should come only on page 2. Therefore, it is neither a footer nor end-page footer. I am using iReport to create jrxml files and the design looks something like the bottom {HEADER} {extension-band-1} comments: My first page ends up to this point {DETAIL-BAND-2} Comments: This is coming from a sub-report {DETAIL-BAND-3} Note: This coming from a sub-report - Some random empty places have left. {DETAIL-BAND-4} Note: This is where my 2 page page needs to come. {lots of band} {main report-refinement} Therefore, I need a footer (in fact it is not a footer, in some detail it is necessary to come to the second page of the generated generic PDF) that can be determined according to the top of the page in which it Is printed. Is there a way to do that? Thanks "Print the expression" and then you try to use the property You can use a variable named ...

c# - How can I modify the format of a DataGridViewComboBoxColumn? -

I have a similar problem as described by the poster, where they want the combobox to display the description of enums and There are no toasting Enum I really like but I noticed that DataGridViewComboBoxColumn does not have a format or formatting enabled not a feature. Can anyone offer me an alternative solution for this? When I need to assign a list of value values ​​for the combo box, usually List & lt; Tuple & lt; Enum, string & gt; & Gt; Specify the DataSaster as DisplayMember ValueMember (winforms), DisplayMemberPath selected Valuepath (wpf) Item2 and Item1 Then, as the value, I use SelectedValue instead of the selected event.

- Where Developers Learn, Share, & Build Careers

I have a list with an encoded I want to get the first element if and only then N = 1. Can it be done using lambda or some good build? This works, but looks awesome: var blah = new list & lt; Object & gt; () {New object ()}; Var item = (blah.Count == 1? Blah [0]: zero); There are several LINQ extension methods. If there is one element then an element exists, if any default will be returned, then returned it If any default returns the element in the given position or default ; T & gt; will be returned, if there are not many elements in the sequence will be returned for example (I have liked it for my own need): var item = blah.ElementAtOrDefault (0); The best way to get your requirement depends on how strong this rule is: I want to get the first element if only If = 1 If it is extraordinary that contains more than one element in the sequence, then use SingleOrDefault and you will be notified (error Log) if it gets out of h...

jdk1.6 - Which JDK to compile commons-dbcp-1.2.2 ? (problems with JDK5/6/7) -

When I try to compile with JDK6 / 7, I get this error: org Apache.commons.dbcp.BasicDataSource is not intangible and does not override the Adobe method in JavaScript (java.lang.Class) java.sql.Wrapper This is why Because commons-dbcp-1.22 was written before JDK6, at that time, there was no java.sql.Wrapper isWrapperFor method. So I installed JDK5, but I get such messages (probably due to all Java 7-compiled JARs): java.lang.UnsupportedClassVersionError: .class file Bad version number How to solve this problem? Finally, I'm working to compile commons-dbcp-1.2.2 and here's how I did: Download the revision 558600 (because someone has written the correct patch for it. It is 1.2.2 with some fixes) Svn checkout -R558600 http: // svn .apache.org / repos / asf / commons / proper / dcpp / trunk commons-dbp download () And patch: wget https://issues.apache.org/jira/secure/attachment/12362389/patch.txt Patch-P 0 copy build.properties.sample ...

jQuery.ajax() method's async option deprecated, what now? -

jQuery 1.8 के रूप में, async: false का उपयोग बहिष्कृत । लेकिन पृष्ठभूमि में एक सतत AJAX संचार होने पर आपको "लोडिंग स्क्रीन" के साथ कितने वेबपृष्ठ देखे गए हैं? मैंने संभवत: उनमें से हजारों को देखा है। मेरा मामला यह है कि मैं एक मोबाइल ऐप लिख रहा हूं जिसके लिए भाषा फाइल लोड करने की आवश्यकता है। और शुरुआत में मैं भाषा फाइल लोड करता हूं और मैं भाषा फाइल से बटनों और अन्य जीयूआई तत्वों का पाठ पुनः प्राप्त करता हूं। यह मेरे लिए वाकई खराब है क्योंकि यदि भाषा फाइल अनुपलब्ध है, तो GUI दिखाई नहीं देनी चाहिए। तो मैं इसे कैसे हल करूँ? अपने सभी कोड को सफलता कॉलबैक में रखें? यह मेरे लिए एक अच्छा कोडन अभ्यास की तरह लग रहे नहीं है क्या मैं इसे किसी अन्य तरीके से हल कर सकता हूं? समाधान मैन्युअल रूप से उपयोगकर्ता को इंटरैक्ट करने से रोकने के लिए ओवरले जोड़ना है इंटरफ़ेस के साथ, और फिर एक बार AJAX क्वेरी किया जाता है इसे हटा दें। $ (फ़ंक्शन () {show_overlay (); $ .एजैक्स ({// सर्वर से प्रश्न})। फ़ंक्शन () {// अच्छा डेटा सत्यापित करें // सामग्री निकालें _ ओवरले ();});}); ...

- Where Developers Learn, Share, & Build Careers

Can I cure the list of algens for the loop as a list? Can I access the elements in the list with list list? To run this pseudo code: #! / Bin / bash i in 1 2; The next element for the do j = loop echo current is $ i and the next is $ j The output must be first to run: the current is 1 And the next 2 is What will happen to the second iteration of the loop? Try this code instead: declare -a For data = (1 2) ((i = 0; i

c# - Entity Framework Batch Update by ID -

I am using an entity framework project whereby id needs to record the batch update. The primary key is available at runtime, and I would like to update all records like the following records: EntityTable update column = @ p0 The problem running in EntityID I am I have about 60k IDs (worst) to handle me And our database software (SQL Server 2008) can not handle it: The query processor was out of internal resources and could not prepare a query plan. This is a rare event and only a lot Expected for complex questions or questions, which refers to large tables or divisions. Please simplify the query If you believe that you received this message in error, please contact customer support services for more information. Through Google searches I've found that old-school DataTable and SqlDataAdapter call for it to complete, but If possible I would like to be within the spirit of the unit framework, or if necessary, raw SQL. Is there any way to do this in a proper way? ...

ios - Hiding ViewControllers after first launch -

In my application, I have a view controller that loads as a welcome screen. When you tap on "go", the other view controller appears that opens the user account. When information is presented, their profile appears. (This is a fun testing app) I want to make it so much that when users use registers, then their use of the profile then leaves the app, they do not have to register again. So I need help locating the app for the first time to launch, then the wellcome evaluator and the registrator should go after launch first. WelcomeViewController: - (BOOL) Application: (UIApplication *) Application was given FinishLaunchingWithOptions: (NSDictionary *) Launch Options {if ([[NSUserDefaults Standard Standard Defaults] BoolForKey: @ "Alang once"]] {ProfileViewController * profileVC = [[ProfileView controller alloc] initWithNibName: zero bundle: zero]; [Self-present ViewController: animated profileVC: not complete: zero]; } And {{NSUserDefaults Standard User Defaul...

java - Slow Apache httpclient 4.1 compared to JMeter -

Image
I have a simple 1 thread loop, which uses Apache HTTP client 4.1. This connects my Apache httpd web server to the localhost. I have averaging 2.5 ms per request / response. On the other hand, Jmater, Average 1 MS (Apache Benchmark, AB, does it in 0.4ms, but since it is the original code, there is probably no comparison). The code is just: last HttpGet httpGet = new HTTPUtv (testUrl); While {true} {try {last long startNanoTime = System.nanoTime (); Last HttpResponse httpResponse = httpClient.execute (httpGet); Last inputstream inputstream = httpResponse.getEntity () GetContent (); Last byte [] buffer = new byte [8192]; Int size = inputstream.read (buffer); While (size> 0) {size = inputStream.read (buffer); } // Timeout expired Last time = System. Nano time () - startNanoTime; InputStream.close (); } Hold (Malformedlexception E) {// Never should throw new RuntimeException (E); } Hold (IOException e) {// count errors ++; Throw new runtime up (E); }} My test otherwise s...

shell - differences between (find . -name *.cpp) and (find . -name "*.cpp") -

I am confused with these twe sentences: Find A - Name * .cpp b Find -Name "* .cpp" Regular expression only works in position B. I am happy to learn from u. Who can explain this, more details Thanks a lot Your focus is on the parameter here and you go through the "-name" option. We want "Exploration", and not included Shell (BH / TCS / JS) to explain it. When you insert "* .cpp" , you actually see ".cpp" to see the "Search" program, then ending with ".cpp" Make changes to the list of all files. When you just *. Cpp , also substitutes the shell search command (which is called) before passing the parameter. What exactly does the order get is not a pattern, but a set of files. Which leads to: "Find. -name A CPP BCPP ... ZPPP " Italic files with names are not the parameters of the "-name" flag, thus, unexpected behavior.

c++ - push_back causing sgfault -

I have a class arbad, which is created by me, which is basically for A cover is the part of the square for this problem class arbad double {private: mpfr_t value; Public: Clear arbitrary (long double value_, unsigned long precision) {mpfr_init2 (value, exact); Mpfr_set_d (value, value_, MPFR_RNDN); } Explicit ArbDouble (long int value_, unsigned long precision) {mpfr_init2 (value, exact); Mpfr_set_ui (value, value_, MPFR_RNDN); } ArbDouble () {mpfr_init (value); } ArbDouble (unsigned long precision) {mpfr_init2 (value, exact); } Arbudal (Constable Arbud and others) {mpfr_init2 (value, other. Japreson ()); Mpfr_set (value, other value, MPFR_RNDN); } ArbDouble (const mpfr_t and others) {mpfr_init2 (value, mpfr_get_prec (other)); Mpfr_set (value, other, MPFR_RNDN); } Clear arbitrary (four * other, unsigned long-term precision) {mpfr_init2 (value, exact); Mpfr_set_str (value, other, 10, MPFR_RNDN); } ~ Arbabal () {mpfr_clear (value); } Inline unsigned long mill proposition () cons...

java - How to escape string for SQL query (without prepared statement) -

I know the power of the statement, but I can not use it here. I send STL questions via HTTP to external servers, not through JDBC. How to avoid string for SQL query? Is this the way to do it through JDBC? Or should I use a custom class / function for this? P.s Also I have a connection to another DB, so I can use the JDBC function. It looks very unsafe. If you are sending a SQL statement over HTTP, you can compromise between the Man-in-the-Middle Assault (among others). In addition, any average level programmer can try to execute malicious SQL instead of your database, if they see that you are sending virtually to SQL statements. They can create users, change passwords, retrieve sensitive data ... are you sure that this is the best way to approach things?

jquery - Calling javascript on document.Load() passing C# parameters -

I have a JavaScript function that I need to run. It takes some parameters in the actual parameters in my visual model I need to call this javascript multiple times because the elements in the collection are the elements of the collection, as well as each time the related parameters are there. When this document loads the document, I thought I should call this function in the call. The problem is that I do not know how to loop through my C # archive and generate JavaScript at the same time. Do you know how I can get it? Thanks You can serialize your view to JSON and your model Renderer inside the script block in the view: & lt; Script type = "text / javascript" & gt; $ (Function () {var collection = @ Html.Raw (Json.Encode (model)); $ .eec (collection, function (i, value) {yourFunction (value);});}); & Lt; / Script & gt;

tfs - Team Explorer Everywhere with Eclipse authentication -

I am using Team Explorer everywhere with Eclipse when I try to check-in my changes I get the following error: Access TFS server denied access to myServerAddress (authentication as myComputerName / myUser) I received the Tried to use the CrossPlatformCommandLine tool with tf profile command, but I got the following message one Rk error: command 'profile' is unknown I can how to manage your credentials? The profile was removed from Team Explorer everywhere 2012. TE 2012 certification is as follows: If you have specified credentials on the command-line, then it will be used. If you have specified credentials for your TFS server, then it will be used. On Windows, TE will use credentials. On Mac OS, TE will use credentials in the chicane. On other Unix systems, the TE file will use e $ HOME /. Microsoft / Team Foundation / 4.0 / Configuration / TEE-Servers / Credentials.xml . If no stored passwords are available, then TEE 2012 will...

javascript - Race-condition when submitting form with jQuery -

I have to make a hack to be able to submit a form (non-ajax) using jQuery. If I do not do the not statement, the form will not be submitted: This work (form has been submitted) $ ("# myHiddenFieldID") Val (JSON.stringify (jsObject)). Var x = $ ("# myHiddenFieldID"). Val (); If (x) {$ ("# myHiddenForm"). Submit (); } This does not work (the form submission field is not empty) $ ("# myHiddenFieldID"). Val (JSON.stringify (jsObject)); Var x = $ ("# myHiddenFieldID"). Val (); // I used to place a warning here, the text that appeared in the text field was shown earlier ....... $ ("# MyHiddenForm") presented (). I do not understand why I want to read the contents of the text field here ... , the assignment statement is executed before the value of the text field: var x = $ (" # myHiddenFieldID "). Val (); $ ("# MyHiddenFieldID") (JSON.stringify (jsObject)). $ ("# MyHiddenForm...

- Where Developers Learn, Share, & Build Careers

I understand how to look at this and save selection after already clicking on one of the selected rows Not in. For example, select 3 rows of user and one click on one of this will only show information about one of the selected rows when Now I am loading lazy and thus the context menu With DataTable is: & lt; p: DataTable id = "al_table" value = "# {alarmTable.alarms}" select = "# {alarmTable.selectedAlarm}" selectionMode = "many" var = "Alarm" resizableColumns = "true paginator =" true "lines" = "50" sortBy = "# {alarm.alarmTimestamp}" sortOrder = "descending" paginatorTemplate = "{} {CurrentPageReport FirstPageLink} {} {PreviousPageLink PageLinks} {} {NextPageLink LastPageLink} {RowsPerPageDropdown}" RowsPerPageTemplate = "25, 50 , 75, 100 "lazy =" true "style =" table-layout: auto "& gt; & Lt; P: ajax event = "rowDblsel...

- Where Developers Learn, Share, & Build Careers

I need to add columns from one column to another using the SQL command and need some help with syntax. I have an image column with 'http://i2.ytimg.com/vi/' as the value of all the fields in the table. I need to add at the end of this string, different values ​​for each entry in the Value Url field from one column, called "url", have different values. I was thinking something like this: SELECT image + url FROM 'movies'; Thanks for any help. Also, I need to rear the second column, where I need to add values ​​from one column to the beginning, in any other column. :) select image || From URL 'movies' as url;

ios - Does Apple mandate authorization via SSL? -

I claim that Apple has rejected applications that use vanilla HTTP for authentication. I am unable to verify this information and Google does not say anything on the subject. Are there any known cases of any such app on which it has been rejected that it does not use SSL? Apple does not care about how you handle data transfer security I am a writer who is available for more than a year. The app got some updates, all of which went through the approval process and the app never used HTTPS to sign up. Apps such as Twitter or Facebook did not use HTTPS in the first years of iOS also. / P>

java - How much memory can an application use in 32bit Linux machine? -

I am new to linux and have a question about memory boundaries. I know, in Windows you can use only 2.8 GB in the 32 bit version of the OS, but about Linux - is it 4 GB or less? I'm particularly interested in running Java applications in RHEL5. But if you have an answer about other technologies - it would be great to hear it. RHEL5 3g / 1g partition for 32-bit user processes and kernel respectively Offers. This means that a process can only reach a location with a 3G address. The system may have more RAM than 4G itself, and if you are using the PAA kernel, then all of these will be available for the kernel. And the kernel will be able to properly distribute that memory in different user processes.

- Where Developers Learn, Share, & Build Careers

I'm trying to compile some code on Sigwin which requires sendfile.h. When I try to compile, it gives me a fatal error: sys / sendfile.h: No such file or directory compilation is finished. How do I solve it? Do I have to go to a Linux platform? I have gcc4.5 installed on Sigwin. I Like the comment, sendfile POSIX is not, however, man page sendfile () copies data between a file descriptor and second. Because this copy is made within the kernel, sendfile () is more efficient by combining (2) reading and (2) writes, for which the user needs to move more data from the location. Which means that it has basically read a () after typing a () , then implement it yourself To be relatively easy.

javascript - Access and Display post values on a html page using JQuery -

After trying to show the cells in a table table after I have posted by another form, For this, my code is below. Here I am trying to add the value of the selection box in the unbound_AdultVal hidden field using JQuery. & lt; Form enctype = "multipart / form-data" method = "post" action = "summary html" name = "form" & gt; & Lt; Input id = "unbound_CurrentStepID" type = "hidden" value = "step_Two" name = "unbound_CurrentStepID" & gt; & Lt; Input id = "unbound_at ult vall" type = "hidden" value = "" name = "unbound_addle val" & gt; Age 10+: & lt; Select ID = "UnboundTicket" name = "unbound quantity" & gt; & Lt; Option selected = "selected" value = "0" & ​​gt; 0 & lt; / Options & gt; & Lt; Option value = "1" & gt; 1 & lt; / Options & gt; & Lt; Opti...

C# how do you "read" an image programatically? -

I have not had a CS background but have worked extensively with C #. Maybe I have to know this answer with a CS background but I'm hoping to get help from all the smart people on this site. Can you please provide the C # code snippet, how can you programmatically read "an image with C #?", Say I have an image that is black and white, like A fingerprint background can be white or grayscale and the print is black. How can I use C # to differentiate between the parts of the image (i.e. fingerprint) and background (i.e. white or grayscale)? var bitmap = new bitmap (filename); / Code> You can then "read" the color of each point using the GetPixel method. var color = bitmap.GetPixel (x, y); How do you interpret as an image, for example, to determine which parts are a fingerprint, which can include all types of complex image processing algorithms In fact C # Isht are not.

- Where Developers Learn, Share, & Build Careers

I want to create a Magazine App for Newsstand in Xcode 4.2. Is there a good tutorial how to complete it? It tells everything about newsstand applications go through it . You will understand clearly and see the apple document. This is the second part of the tutorial.

trouble with playframework Promise when streaming events come in -

I like the Word Framework 1.2.5 word concept, but I'm having some trouble reading the code to promise a For this, it only accepts "single" result while I can create many things, I do not know how many will make. I send a request and I get back 1000 shares. Since these clauses come, I want to add them to the queue. At first I tried the sub-class of the object, which had a list, but I can not reset all the assigned variables because I wanted a simple method ... Public synchronization List & lt; T & gt; Nobody uses this project on this client, to worry about synchronization Need is Maybe I should only modify the playframe so that any idea is implemented though appreciated? I think it is better to use the promise per class and the same code is the doctor For one shown in:

java - Inject cached instances using cdi -

I want to manage CDI applications by using an inline outline @ Inject Other examples should be given to these examples because their life cycle is based on different caching strategies. Ex: The same example can be seen in the same thread scope, many requests remain in scope, the scope of the sessions does not apply. Do I need to set a new area to target such instances? What is the best way to do this? An extension, is it possible with the manufacturer's methods? I have to work together with the manufacturer method with: @Inject @CustomInject FwObject obj; @ Products @CustomInject FwObject createConfig (InjectionPoint p) {return (FwObject) ctx.get ((class But this should be clear about the type that is not possible because there is no general framework interface. Any help appreciated. may be with the creator's methods, all of your needs Depending on it, but perhaps one of the best ways to go an extension is if you need to go with a new scope (if you are...

- Where Developers Learn, Share, & Build Careers

I have several XML files from which I am trying to create WordML tablets. Each nodellist has several nodes, and I have to create a column for each column up to a maximum of 15 columns. However, if there is less than 15, then the column needs to be justified. Template that node list: & lt; Xsl: template match = "NodeList" & gt; & Lt; Xsl: each selection = "nodef" & gt; & Lt; Xsl: Sort Data-Type = "Number" = "@ Status" Order = "Ascending" /> & Lt; Xsl: Sort Data-Type = "Text" = "@Name" Order = "Ascent" /> & Lt; Xsl: variable name = "documentName" = "cocat (@ id, '_Nodes.xml')" /> & Lt; Xsl: Apply -Template Mode = Select "Sirenode" = "Document ($ documentName) / node" /> & Lt; / XSL: for-each & gt; & Lt; / XSL: Templates & gt; Template: & lt; Xsl: Template Mode = "Sirenode" M...

- Where Developers Learn, Share, & Build Careers

I am trying to explain why the chat function does not work for me to try to take input from the user Has been: My $ string = & lt; STDIN & gt; My $ chr = peak ($ ​​string); Print "string: $ string \ n"; Print "Four: $ chr \ n"; output perl chop.pl Hello string: Hello four: But if I use a string I do it, so it works! My $ string = "frong"; My $ chr = peak ($ ​​string); Print "string: $ string \ n"; Print "Four: $ chr \ n"; output [583] perl chop.pl string: fron char: g When you pass the input from the console, cutting chop to newline At the end is the string, which exists when you press Enter while your string does not have this.

c - Limit Incoming TCP Connections based on IP -

In what socket does any kind of offer to limit the number of incoming connections on the socket based on IP? For example, to prevent a customer from the spamming connection, is there a way to limit the number of IPs to connect to a socket? Or should such a thing be made custom? I think the real motive you are talking about is throttling, that is, someone For a particular client / connection, allows only a certain number of packets at a given time. There are some types of support available in most modern languages ​​such as Java or C # but not C However, here's a great approach to implementing it, I have used myself in the production code.

ruby on rails - How to lock users using Devise? -

I want to add functionality of a subscription type to account holder users in my application such as after the fixed interval of time Not able to access the account? Note: I do not want to delete my account from the database. I have already installed devise-2.1.2 in my application. Any body has any idea how it can be done? I am a newbie on the Railbase so please be very helpful to me if you please explain the steps. You : lockable option check in lock_strategy There is a buil-in solution in Delios : set to fail_attempts. Set your config / initializers / devise.rb to use Step 1 : # defines that Which strategy will be used to lock an account? Config.lock_strategy =: fail_attempts # Defines which key is used when locking and unlocking when configuring an account. Unlock_keys = [: time] # Which strategy will be used to unlock an account #: Time = Enables login again after a certain amount (see: unlock below) config.unlock_strategy =: Time # tries the number of auth...

ios - Objective-C – Use library from another library -

मैं अपनी परियोजना में SSToolKit का उपयोग कर रहा हूं SSToolKit प्रोजेक्ट GHUnitTest का उपयोग करता है मैं अपनी परियोजना में जीएचयूनेट टेस्ट का उपयोग करना चाहता हूं क्या मुझे GHUnitTest को डाउनलोड और इंस्टॉल करने की आवश्यकता है या मैं एसएसटुलकिट में शामिल एक का उपयोग कर सकता हूं। इस स्थिति में करने के लिए सबसे अच्छा अभ्यास क्या है? (मेरा ऐप एक आईओएस-ऐप है) आप एसएसटुलकिट के साथ बंडल का उपयोग कर सकते हैं, कोई नहीं एक अन्य पुस्तकालय डाउनलोड करने में इंगित करें असल में, यह वैसे ही है जैसे आपने अकेले पुस्तकालय डाउनलोड किया है - यह सिर्फ एक और पुस्तकालय के साथ बंडल है। यदि आप किसी अन्य जीएचयूनेटटस्ट को जोड़ने का प्रयास करते हैं, तो यह त्रुटियां पैदा करेगा (अच्छा नहीं: डी)।

python - How can integrate the login/registration into a pinax(0.9) projects? -

I have installed the pinx and now I want to integrate some apps. First I want to start with login and registration. I have tried to deal with the poor documentation of Penax, so I do not know how to start? How can I do this with PinX 0.9? What do I need to modify? What will be the normal path to follow? You have to start a project on the console you can use first $ django-admin.py initial project [your_project_name] --template = https: //github.com/pinax/pinax-project-account/zipball/masters [your_project_name] Change your own project name. You will then need to install the requirements Go to the console on which the required file is on the console and pip install --requirement requirements.txt Then test your project This will probably work! Do not forget to add an app to INSTALLED_APS

c# - winforms multiple form layouts -

Is it possible to have 2 application layouts without 2 projects, out of curiosity? Like a layout for desktops / laptops. And then a layout for tablets? I know that there is only one designer file, and he probably answers my question, but I was curious if I need to recreate a new program for a tablet layout, then It will also have all the same functionality as the desktop, with all the same controls, just look a bit different. D has put the core functionality in a library assembly (DLL), and two writes UI app Which refer to the same core assembly.

python - Setting increasing ids in Django ChoiceField form -

Is there a way to change ID values ​​in Django ChoiceField forms? For example, I want id = "rating #" for output in my ChoiceField ID format, where there is a # incremental number, I assume that you have the widget attributes for the id Change, but how do I get a incremental number in the id? Example: & lt; Label = "id_rating_0" & gt; & Lt; Input type = "radio" id = "rating 1" value = "1" name = "rating" /> & Lt; / Labels & gt; & Lt; Label = "id_rating_1" & gt; & Lt; Input type = "radio" id = "rating 2" value = "2" name = "rating" /> & Lt; / Labels & gt; & Lt; Label = "id_rating_2" & gt; & Lt; Input type = "radio" id = "rating 3" value = "3" name = "rating" /> & Lt; / Labels & gt; & Lt; Label = "id_rating_3"> gt; & Gt; Input ty...

symfony - Doctrine2 Inheritance and querybuilder -

I am using inheritance with principle 2.1: Fiche is the master unit and the artist Receives eFich Such: Fetch - & gt; public function getCountAbonnes (\ MyApp \ FicheBundle \ Entity \ Fiche $ fiche) {$ qb = $ this- & gt; _em- & gt; CreateQueryBuilder (); $ Qb- & gt; Add ('Select', $ qb-> expr () - & gt; Count ('abonnement')); $ Qb- & gt; From ('\ Teelt \ FicheBundle \ Entity \ Abonnement', 'abonnement'); // !!!! This is the line problem !!!! $ Qb-> Where ('Fice', $ Fitch); Return $ qb- & gt; GetQuery () - & gt; Gates Civil Scale Results (); MyApp \ FicheBundle \ Entity \ Abonnement: Type: Unit Repository Class: MyApp \ FicheBundle \ Repository \ AbonnementRepository Table: Abonnement # For many users, many people have many people: users: targets Entity: MyApp \ UserBundle \ Entity \ User Inversion From: abonnements fiche: targetEntity: MyApp \ FicheBundle \ Entity \ Fiche inworld by: abonneme...

Issue Deploying a Grails 2.1.1 app to JBoss because of Xerces -

I have a Grails app that uses the rest of the plugin When I started my war Deleting directory leaving directory and launching it, deploying the application failed due to the following error: 2012-11-01 15: 48: 33,931 error [org.jboss.web.tomcat.service Deployers.JBossContextConfig] XML Error Parsing: context.xml org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser I believe it's a version containing Grails App no Rbhit is on XercesImpl and near the Jebis also own we improve it usually by setting them in the "area provided by removing or" Aksrisimpl our app. I am trying to explain how to fix this deployment issue. I'm assuming that I'm buildingconfig To edit the GOV script and tell it, any way, is it right to exclude axes? How do I do this plugin? If this was a "dependency", which is easy to specify exclusion. But I'm not sure how to do this plugin ... Any ideas? Add it to your BuildConfig.groovy : I...

web services - Soap call with pure javascript -

मुझे शुद्ध जावास्क्रिप्ट के साथ सार्वजनिक webservice (www.webserviceX.net) पर एक साबुन कॉल करने के लिए कहा गया है (जावास्क्रिप्ट पुस्तकालयों का उपयोग करना) एक वेब पेज पर ठीक है। जहाँ तक मुझे पता है कि मुझे एक ही मूल नीति के कारण सर्वर साइड कोड का उपयोग करना है? WebseviceX.net से संबंधित कॉरस का समर्थन करता है? मैं इसे कैसे जांचूं? यद्यपि आपको कुछ परिवर्तन क्लाइंट बनाने की आवश्यकता है सीओआरएस की अनुमति देने के लिए पक्ष को सर्वर को भी इसे समर्थन देने की आवश्यकता होती है क्योंकि ब्राउज़र पहले OPTIONS कॉल करेगा और कुछ हेडर वापस आने की उम्मीद करेगा इससे पहले वास्तविक एसओएपी कॉल करने से पहले। ऐसा है, हालांकि यह एएसपी.नेट वेब एपीआई से संबंधित है, सर्वर साइड पार्ट्स SOAP सेवा के लिए समान रूप से सही हैं।

javascript - Craftyjs animation not changing properly -

I'm using to close the Github game, and I'm having some trouble with the animation for the first time when I I started the animation (when I initialize the player unit in the main scene) then it works. But when I set the animation through the component of my custom control, it only plays the first frame of the animation. I believe the problem is in the custom controllables component, so here is the code for it: If you want to clone it and check it is all code: If someone knows what the problem might be, please tell me thank you! Edit: Everything is stripped except for the movement and what the animation should be: here var SPRITE_SIZE = 32; Crafty.init (); Crafty.canvas.init (); Crafty.sprite (SPRITE_SIZE, "http://i.imgur.com/9sN9V.png", {player_east_1: [0, 0], player_stest: [1, 0], player_ast_3: [2, 0], player_we_1: [ Player_south_2: [1, 2], player_south_3: [2, 2], player_north_1: [0, 1] 3], player_north_2: [1, 3], player_north_3: [2, 3]}); Crete Chest...

- Where Developers Learn, Share, & Build Careers

I started using the storyboard, but looking at a very important difference: every time I navigate back to the storyboard I think a new view controller appears immediately and further. Example: I create two new Xcode projects based on master-extension templates. In Case 1, I use the storyboard and in case I use 2xib. Generally I expect to treat them equally, but they do not! In both, DetailViewController.m I add the following method: - (zero) viewDidApplication: (BOOL) animated {if (xposition == 0) {xposition = 50 ; } And {xposition = xposition + 50; } NSLog (@ "xposition update% d", xposition); } (I have declared exposure as an "int" instance variable in the header): When I run the storyboard Yes, and tap and navigate in "DetailViewController" in and out, then my NSLog statement keeps me "xposition update 50". On the contrary, for the .xib version, I get my expected behavior where every time I navigate in the Extensible Control...

- Where Developers Learn, Share, & Build Careers

I am currently replacing an empty space with underscores during an image upload. How can I include it so that this change is done & amp; "And". $ newname = str_replace ('', '_', trim (strip_tags ($ _POST ['name']))). _ $ FormKey- & gt; Generation () '_' post (). '.jpg'; It is stuck with one and does not even know what to try. $ newname = str_replace (array ('', '& amp;'), array ('_', 'and'), ...);

Modifying a SQL query for use with 'will_paginate' in Ruby -

I have the following SQL query that I use to get some lines from a MySQL database: SELECT code_ver, the result from the MasterState, where the date & gt; = DATE_SUB (CURDATE (), INTERVAL 90 days) Order by DESC; This query gives me data from the last 90 days. Now I want to display 10 days of data at once in my html.erb page (view). I know that paging can be calculated using 'will_pignet' and 'camineri' gems. But I'm not sure how to ask the database with some of the above mentioned conditions. Can anyone help me with the code here? It is such that you can create it in ActiveRecord: Mastertest.where ('date' =? ', Time.Now-90 ("Code_ver, Results") From here, you can either either chain or fighter Methods, or if you want, do your roll. You can roll the question in class system if you use a lot of it: class Mastertest def self.last_90_days where ('Date' =? ', Time.now - 90 DAS). Order (' Date DESC ')....

iphone - ViewController Transition Trouble -

मेरे पास वर्तमान कोड है: (IBAction) साइनअप: (आईडी) प्रेषक {साइनअप * साइनअप = [[साइन अप alloc] init]; SignUp.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; [आत्म वर्तमान ViewController: साइनअप एनिमेटेड: हाँ]; मुझे नीचे की रेखा पर केवल एक त्रुटि मिल रही है यह पढ़ता है: '' लॉग इनदृश्य '' के लिए कोई दृश्यमान अंतरफलक 'चयनकर्ता उपस्थित वीकंट्रोलर: एनिमेटेड।' यहाँ वो है जो मुझे नहीं समझता ... मैं loginView के रूप में एक इंटरफ़ेस UIViewController वर्ग का बच्चा ... यह वह जगह है जहां presentViewController घोषित किया गया है। यह मुझे बता रहा है कि यह कुछ भी नहीं पा रहा है और मैं इसे कैसे ठीक कर सकता हूं? आप समय के आगे धन्यवाद! क्या आप सुनिश्चित हैं कि presentViewController: एनिमेटेड: को UIViewController में घोषित किया गया है? मेरे डॉक्स में इसे presentViewController: एनिमेटेड: पूर्णता: के रूप में सूचीबद्ध किया गया है। यदि आपके पास कुछ नहीं है तो आप एक पूर्ण समापन ब्लॉक प्राप्त कर सकते हैं [आत्म वर्तमान ViewController: साइनअप ए...

- Where Developers Learn, Share, & Build Careers

I am trying to add an html menu inside the access form. How do I get feedback from a webpage in Access (which user is selected in the web page) I am using the Access 2007, MS Webbrozer component. Any help would be appreciated Calling the hosting form or webbrowser There is no official way to start any activity from within. However, there is a nifty trick that I use. After the document loads you can use some element to set up. htmlDoc.all.formDiv.setAttribute "external form", me Then you can reference the properties and methods of the form from within the webbrowser. Edit : Strangely, it seems that as long as I & lt; META http-equiv = 'X-UA-Compatible' content = 'IE = edge, chrome = 1' & gt; tag, the reference remains blank. It appears that the attributes are now more strict, and expecting the setAttribute string. The next option is to pass the access form ('m') into a variable in WebBrowser. However, this global...

c++ - Deep copying cv::Mat alternatives, which is better? -

I want to make a deep copy of an image which is better for performance? cv :: Mat new_img (old_img, true); (This is not the first one completely correct, see my answer) or cv :: Mat new_img = old_img.clone (); (I'm asking this because the second thing is more attractive to me as a point, but I'm not sure how bad I am. Maybe I also have a stable CV_CLONE = true ... if one gets better first.) you can see That's what everyone sees after seeing them. Constructor is 00172, clone is 00346. Both are called the same internal function copy, so I imagine that they are essentially similar in terms of performance.

Include external jar in Netbeans Android project (nbandroid) -

I tried to add an external jar to the Netbeans Android project after the signal from this site: Code: & lt; Target name = "- pre-jar" & gt; & Lt; Copy todir = "$ {build.classes.dir}" & gt; & Lt; Fileset dir = "/ path / to / your / jar / directory" /> & Lt; / Copy & gt; & Lt; / Target & gt; But it does not work for me. So far I have found that the target pre-jar is not said, do I miss something or is there any alternative / new method? Your link talks about an older version of the Nbandroid plugin simply loads its JR in your project's Libs Directory And it will be used as described in or you can set some property from that property file where the library folder is located. - Redeem

jQuery Using .blur() on an Image -

माता-पिता div पर क्लिक किए जाने पर एक छवि लुप्त होती है, सरल सही? I रेडियो बटन अनुकरण करने के लिए इस तकनीक का उपयोग कर रहा हूं। HTML & lt; div id = "parent_div" & gt; & Lt; img id = "image_id" शैली = "प्रदर्शन: कोई नहीं;" src = "/ images / some_image.png" & gt; & Lt; / div & gt; JQuery $ ('# parent_div')। पर ('क्लिक', फ़ंक्शन () {$ ('# image_id')। FadeIn ( 200);}); अब समस्या है, फ़ायरफ़ॉक्स में (शायद अन्य ब्राउज़रों भी), जब माता-पिता div पर क्लिक किया जाता है, और छवि में फ़ेड हो जाता है, तो छवि को हाइलाइट किया जा रहा है। कहा जा रहा है के साथ, अगर मैं स्क्रीन पर कहीं और क्लिक करता हूं, तो छवि पर प्रकाश डाला जाता है। मैंने कोशिश की। ब्लर () का उपयोग करने की कोशिश की, उम्मीद है कि यह काम कर सकता है। $ ('# image_id ') fadein (200) .blur ()।; JSFiddle: यह मेरा बेवकूफ दृश्य है: मुझे यह अनुमान लग रहा है कि आप इसके बाद क्या हैं: $ ('img, .radio_btn') प...

forms - Umbraco XSLT search page navigation using input onchange -

Image
I have created a paging input that will go to the value entered on the input in the input. This page category address And will allow navigation between those pages, /image-gallery-album-1.aspx?page=3 & lt; Form type = "go" onchange = "return false" & gt; & Lt; Div class = "pagerUI" & gt; & Lt; Table range = "0" cell field = "0" cellpadding = "0" & ​​gt; & Lt; TR & gt; & Lt ;! - previous page - & gt; & Lt; Xsl: if test = "$ page & gt; 1" & gt; & Lt; Td class = "pager-prev" & gt; A class = "previous" href = "{concat ('? Page =', $ page - 1, $ qs)}" title = "previous page" & gt; & Amp; # 8249; & Lt; / A & gt; & Lt; / TD & gt; & Lt; / XSL: If & gt; & Lt; TD & gt; Page & lt; / TD & gt; & Lt; Td> & Lt; Input type = "number" name = ...

- Where Developers Learn, Share, & Build Careers

By loading the square there is a way to map sections directly to C # functions? Instead of 100 + register functions and mapping them? EX: Something like this this.lua = new LuaInterface.Lua (); RegisterAll (Class1.MainClass); Lua.DoFile (this.filePath); Start function inside Libre MainClass.MappedPrintFunc ("hihi"); Finally You can do this by setting the LUC in your function in the variable which Phoenx exports or props. EX: class manager () public static GameLocalPlayer LocalPlayer {get; Set; } LuaInterace lua = New LuaInterface; Lua ["VariableName"] = Manager.LocalPlayer; --- Lua ---- variablename.Health; VariableName: AttackTarget (target);

java - Pass XML document via attribute or body to JSP custom tag -

I wonder if an XML document is pure jstl-defined JSP custom tag either: Custom tag body, such as: & lt; Mt: mytag & gt; & Lt; People & gt; & Lt; Person's name = "bob" age = "23" /> & Lt; Person's name = "litigation" age = "45" /> & Lt; Person's name = "mo" age = "35" /> & Lt; / People & gt; & Lt; MT: mytag & gt; Or, in the form of a tag attribute such as: & lt; Mt: mytag message = "http: //link.to.document.xml" / & gt; This is an auto tag & Lt;% @ taglib uri = "http://java.sun.com/jsp/jstl/core" prefix = "c"%> & Lt;% @ taglib uri = "http://java.sun.com/jsp/jstl/xml" prefix = "x"%> & Lt;% @ attribute name = "message"%> Or & lt; Jsp: doBody var = "Message" /> & Lt; X: parse var = "a" doc = "$ {message}" /> & ...