Posts

Showing posts from July, 2014

java - Intellij can't compile JSP- Error: PWC6345 -

Image
There is a problem with my web application in INTELLIJ. I'm new to Intelles, so I really want to fix it. Do not know. When I try to run my web application, I get this error: org.apache.jasper.jasperException: PWC6345: There is an error. A complete JDK (not just JRE) is required JDK is selected and the glassfish is working, others had the same problem, some with the change of glassfish config file Had decided Does anyone really know how I can fix this and be able to run my web applications in INTELLIJ? Thanks in advance! / div> Glassfish JAVA_HOME is using environment variables and this variable As defined by JDK begins under. This variable on your system can point to JRE instead. You can either change it in system settings or directly to IntelliJ IDEA (for debug only):

android - cvtColor not working properly in OpenCV for Java -

I am trying to use the calcCopticalFlowPyrLK method and it failed to throw an emphasis Lives: / P> OpenCV error: failure failed ((npoints = prevPtsMat.checkVector (2, CV_32F, true)) gt; = 0) and the probe vector checks that the input matrix is ​​2 channel and it has a color depth of CV_32F. My input is a mat with 4 channels and CV_8U has a color depth when I try to change it every time this Fails to change I used Mat prevFrame; // Input matte CVCameraViewFrame replaced in RGB mat = new mat (Rows, Calls, CVTEP.CV_32F); Imgproc.cvtColor (prevFrame, previous, imgproc. COLOR_BGRA2GRAY); Prev.convertTo (formerly, CvType.CV_32F); But when I check later, the right depth (CV_32F) is, but only 1 element is the channel. I am struggling with this for hours and I can not understand what the problem is. The logic is that the previous PTSmate has failed on the vector, which is the third argument for the calcopticalflowPyrLK call. It seems that the matrix you are defining...

html - Filled up 100% of the width but on newline doesn't centre align -

Image
I'm trying to create a webpage with a box on the main page and it looks like this Login ----- or ----- Register This is the code I have & Lt; P style = "float: left; margin-left: 2%; margin-right: 2%, width: 4%;" & Gt; Or & lt; / P & gt; & Lt; Hour style = "width: 16%; float: right; margin-right: 30%;" /> & Lt; P & gt; Register & lt; / P & gt; & Lt; / Center & gt; It looks like Here "> I have 1 problem and 1 thing that I need to help The problem is that register text is not coalition, even if it should be and which is I need help with cheese & lt; Hour & gt; Please help me with it. I . HTML & lt; Div id = "container" & gt; & Lt; P & gt; Login & lt; / P & gt; & Lt; Div id = "or" & gt; & Lt; Period & gt; Or & lt; / Span & gt; & Lt; / Div & gt; & Lt; P & gt; Register & lt; / P ...

Type mismatch - JavaScript -

I'm running into a problem while trying to use the following code. It is Firefox, Safari, Chrome, and IE Runs perfectly in 9 + 10, but causes the rest of my page to 'crash' while running in IE8. The console error I received is 'type mismatched' and the debugger points to the IF statement line. I am trying to understand it, beating my head against the wall, but there is no benefit. Does anyone have a clue that is happening here? function writeIframe11092 () {warning ("first"); Document.write ('& lt; iframe style = \ "position: absolute; left: -40000px; \" src = \ "https: //mydomain.com/images/close.gif \" & gt; & lt; / Iframe & gt; '); Warning ("after"); } If (window.attachEvent) window.attachEvent ('onload', writeIframe11092 ()); Else if (window.addEventListener) window.addEventListener ('load', writeIframe11092 (), incorrect); writeIframe11092 () function calls and a value G...

sql server - Convert a string to datetime -

This timestamp is saved as a string in the table How can I convert it to a datetime type while querying in the table Am I For example: declare @timestamp as nvarchar set @timestamp = '20130319092507.000000-000' I tried convert (datetime, timestamp, * n *) and dead (datetime as timestamp) My first suggestion: fix your table! Stop storing date / time values ​​in the form of a string, nothing can be better than this, for example columns may contain 20130231 or holovan or There is no date and now you have to filter those people, in addition to the underlying assumptions, you also lose the ability to perform date operations. DECLARE @timestamp VARCHAR (32); SET @timestamp = '20130319092507.000000-000'; Select convert (DATETIME, LEFT (@timestamp, 8) + '' + STUFF (STUFF (SUBSTRING (@timestamp9, 6), 3,0, ':'), 6,0, ':' '));

codeigniter - How to keep a php script running for 4 to 5 days using cron job? -

I have a php script in the codeignitor structure. It works on complex calculation algorithms for which the script has to be at least 4 Requires walking for 5 days. But it stops after running for a few hours 13 21 * * * / usr / bin / php / var / www / project / How do I turn it over? till? Maybe it depends on max_execution_time / code > Php.ini

database - find the instance makes two queries different -

Looking at any schema of the database and looking at any two questions about this database, find the smallest example Try that which is due to two questions. Different results set I can come up with only one question to find out the difference between the two questions, that is, the results of each query are considered as subtables and Compare two tables to see if they are identical. Still I'm not sure whether this will work or not There is no clue about how to find this small example, can someone give me some signs or inspiration? is? Should I build two examples or an example to use information from the database schema, or am I leading a wrong direction? Thanks a lot! update1: Database example is a scenario in which each table of the database contains some specific values ​​for its attributes. For example, Schema: Table A: attr1 attr2 ... Table B: attr1 attr2 attr3 ... In which scenario of the database do I have to find that two arbitrary questions will...

How to get months return with While loop in Javascript -

I am learning JS and I have trouble finding this. I want to ask that one of you can discover my error. I want to use a loop to return the names of all the months of January without using an array, is it possible? Thank you. window.onload = function () {document.getElementById ("months"). InnerHTML = getMonth (11); }; For (var month = 0; month "; I ++; } Document.getElementById ("months"). InnerHTML = x; } without an array: Function Mill (Months) {Switch (Month) {Case: Return "Jan"; Case 1: Return "February"; // ... case 11: return "December"; Default: return "Not valid months"; }} But there is a painful way of doing this. With the array: function getMonth (month) {var monthNames = ["January", "February", "March", "April", "May" , "June", "July", "August", "September", "October", "November",...

Java: Unique Items in an array -

I can not wrap my brain around it, but when I say that I got array with different elements in it is . If I want to create another array with only unique elements from the first array, how will I do this without using the maps, hashets etc. (without importing anything from Java). Simple brute force algorithm. Double loop over the array and check whether the element has been repeated or not. Do not include it in the array and continue. O (N ^ 2) Instead of complexity, use a map or set / P>

Is there a way to obtain details on triggers in Google Scripts? -

Actually, I aim to create a handy interface for managing time-based triggers which control Google scripts Until I did not find anything, I would allow the current triggers to get details, especially the bar trigger Documentation: Thanks for any suggestions or hints! Apps Script documents are also included, which is a very prominent title. However, it does say: The only way to programmatically modify an existing trigger is to delete it and then create a new one. , the trigger is hoping to get a full load of information: var triggers = ScriptApp.getProjectTriggers (); (In the trigger i var) {logger.log (utilities.jasontrinket (trigger [i])); } I got all the "triggers" Repeated ad no help, the trigger object is locked. I am surprised that there is no request for this additional information to add APIs or to support more programmability. You should add one, and report it here so that others can star it (vote).

ruby on rails - ActiveRecord::RecordNotFound -

I am trying to submit a form and receive this error: Event not found without id Here is the controller: def create @ event = event.fund (param [: event_id]) @envent_sponship = eventspaceship.New (param [ : Event_sponsorship]] @ event_sponship. Spacer_id = current_yuzar.edu @ event_sponship.events_id = @ avovart response_to dot | Format | If @Event_Sponsorship Sweet Format: {@ redirect_to @event_sponsorship, notice: 'Event sponsorship was created successfully.' } Format.json {render json: @event_sponsorship, status :: created, location: @event_sponsorship} and format.html {action: "new"} format.json {render json: @ event_sponsorship.errors, status :: unprocessable_entity} end End of Here's the form: & Lt; / Div & gt; & Lt;% end% & gt; In the form of create the URL should match the "event_id" where am I going? Post your error seen in your server console, you will see that your ultimate 'event_id' (me Seems ...

c++ - Convert std::max to Java -

मेरे पास सी / सी ++ कोड में वर्तमान पंक्ति है: डबल मा = * std :: अधिकतम_एलिमेंट (डायस्ट [ए], डायस्ट [ए] + साइज़;); डायस्ट [a] आकार का एक डबल पूर्णांक सरणी है आकार int dists [ आकार] [आकार]; मैं जावा में एक समतुल्य फ़ंक्शन की तलाश कर रहा हूं जो एक ही संचालन करेगा। मुझे यकीन नहीं है कि यह C / C ++ फ़ंक्शन किस प्रकार कार्य करता है "डीस्ट [ए] + साइज" लाइन। मान लें कि आप संग्रह , और नहीं एक वास्तविक एरे (जो अनुशंसित है): ArrayList & lt; Integer & gt; ए; // कहीं शुरू किया गया ... संग्रह। मैक्स (ए); यदि आप वास्तविक 2-आयामी सरणी का उपयोग कर रहे हैं, तो कोशिश करें: int [] [] c; // प्रारंभ कहीं भी I int; // कहीं सेट करें b = arrays.asList (ArrayUtils.toObject (c [i])); Collections.max (ख); तत्वों की तुलना की जाती है।

confusing myself with pointers and references, c++ (Getting mouse coords from WinAPI) -

मेरे पास एक वर्ग है: वर्ग माउस {सार्वजनिक: int x; Int y; शून्य माउस मैव (पूर्णांक x, इंट y); माउस (); }; मैं इसे अपने windows.cpp में हेडर फ़ाइल के रूप में शामिल करता हूं जिसमें WndProc और WinMain फ़ंक्शन शामिल हैं I बस इसके नीचे मैं अपने माउस का एक स्थिर उदाहरण घोषित करता हूं: # "mouse.h" #include "Game.h" स्थिर माउस माउस; मेरे माउस के तरीके इस तरह दिखते हैं: # "माऊस.h" को रिक्त करें माउस :: माउस मैव (int x, int y) {this- & Gt; x = x; यह- & gt; y = y; } मेरे WndProc पर मैं WM_MOUSEMOUSE प्रसंस्करण और x और y मानों को पारित कर रहा हूँ (जो मेरे माउसमॉव फ़ंक्शन के माध्यम से सही मान हैं: केस WM_MOUSEMOVE : {Int x = (short) लोवॉर्ड (lParam); int y = (संक्षिप्त) HIWORD (lParam); bool leftButtonDown = wParam & MK_LBUTTON; bool rightButtonDown = wParam & MK_RBUTTON; माउस। MouseMove (x, y);} ब्रेक; मेरा माउसमॉव फ़ंक्शन तब से चलाता है और इस-> एक्स से एक्स को सफलतापूर्वक और y मान के साथ सेट करता है। यह सब ... किया गया है। ...

Python: Simplify many if-statements -

I have a function that crosses a tree and returns elements as a list treeToList :: traverse , because it looks kind of redundant? #! / Usr / bin / python def enum (** enums): return type ('enum', (), enums) order = enum (PREORDER = 0, INORDER = 1, POSTORDER = 2) DRF contact form (root, order = order .adders): ret = list () Def transmissions (node, order): if order == order. Preder: ret.append (node.data) if node. Right! = None: Traverse (node. Right, order) if order == order. Inder: Rate .append (node.data) if node.down! = None: Traverse (node ​​down, order) if order == order. Poster: ret.append (node.data) traverse (root, order) return rate class node: def __init __ (self, data = none): self.data = data self.down = none self.right = any If not __name__ == '__main__': root = node ('F') root.right = node ('B') Root.down = node ('g') root.right.right = node ('a') root .right.down = node ('d') root.down.down = node ('i...

iphone - How to call Message App from My App? -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब से संदेश एप्लिकेशन को कैसे कॉल करें मेरा वर्तमान ऐप। मुझे इस कोड का उपयोग करना है ... [[UIApplication साझा किया गया अनुप्रयोग] openURL: [NSURL URLWithString: @ "sms:"]]; या [[UIApplication साझा किया गया एप्लिकेशन] ओपनURL: [NSURL URLWithString: @ "SMS: 1-408-555-1212"]]; लेकिन मुझे क्या चाहिए, केवल संदेश ऐप को कॉल करना है, मुझे फोन नंबर के साथ या फोन नंबर के साथ नहीं चाहिए। बस वर्तमान संदेश ऐप दृश्य खोलना चाहते हैं। कृपया मेरी मदद करें .... एमएफएमसेजकॉम्प्स वीयूआईकंट्रोलर * मैसेज कॉमपोज़र = [[एमएफएमएस्सैसजिव वियस कंट्रोलर एलोक] इनट] ; अगर ([MFMessageComposeViewController canSendText]) {messagComposer.messageComposeDelegate = self; MessagComposer.recipients = प्राप्तकर्ताअरेरे; // यहां व्यंजनों की सरणी दे दो messagComposer.body = @ "कुछ पाठ"; [आत्म वर्तमान मॉडेल दृश्यकंट्रोलर: एनिमेटेड पिकर: हाँ]; } संदेश भेजने के लिए इस तरह प्रयास करें

php - mysql table createing new row instead of updating -

A row exists where 'bookName' equals 'bookName' and instead of just updating, it creates a new line What's wrong in my order? Thanks! Include $ query = mysql_query ("Custom IBook, YouTube, Entry Page, Case Studies, URL, EntryPoint, Date, Bookname)" ('$ user id', '$ email address' '$ Work', '$ case study', '$ url', '$ entryPoint', '$ date', '$ bookName') Key update of duplicate book name = 'book name'); INSERT query is correct but I think you have the column Failed to define the constraint UNIQUE on bookName . Execute not statements: Connect Add optional table Kstmbukinfest tb_uq UNIQUE (bookName);

jquery - How to arrange image divs in rows of 3? -

Hi all I find many divs whose class names like ItemLeft, ItemMiddle and ItemRight Is that how can I display these image divs in a row using CSS 3 or any easy way (currently all the images displayed below each other)? I get image divs from getjson call as follows: / P> $ .getJSON ('http://www.awebsite.com/get?url=http://www .bwebsite.com / moreclips.php & callback =? ', Function (data) {// $ (' #output '). Html (datacontents); var sitecontents = data contents; document. Gate elementbid ("maidew") Note: Every time I call getjson, I get 6 image devices back in one row instead of 3 in one row. Appears below! And this visit Images, but not all these images in each row from one another to another: Gt; & lt; img class = "overlay icon" Src = "/ images / 1.png" alt = "">> Provide a float for the end of your divs and the third, just give float clearing to a div. & lt; Div class = "cle...

add column dynamically to handsontable -

I want to add a handful column dynamically I do not see a sample anywhere, nor do I see it in the API One way to do is to appear. Has anyone taken a way to overcome it or to find some sample code that I can see that will help it? Thanks To temporarily retain a data table, when a new column is required, update the data structure and reconstruct the entire table. Perhaps the following snippets may be useful to you. (function ($) {$ (function () {var data = [['a', 'b', 'c', 'd'], [1, 1, 1] $ 1 (), [2, 2, 2, 2]] $ ('# A-divi'). (Handheld data: data)) / * Adding a new column * / data [0]. 'E'); var len = data.length; for (var i = 1; i & lt; len; i ++) {data [i] .push (i);} $ ('#a-div') / (Data: data}) / * If the new column is not on the tail / / data [0]. System (idx, 0, "f");})}} (jquery); / Pre>

javascript - How to select only certain JSON Keys -

With a web socket call, I will explain the responses of different JSON formats as a response to the bottom First JSON starts with a second "SD" starting with an "AS" Second [JSON] Strong> I'm trying to debug and [ddl] to see it A. That's what I get, so I want to print only "AS" (first JSON has been shown) This is my web site HTML program Function testWebSocket () {websocket = New websitet (wsUri); Websocket.onopen = function (evt) {on open (evt)}; Websocket.onclose = function (evt) {onClose (evt)}; Websocket.onmessage = function (evt) {onMessage (evt)}; Websocket.onerror = function (evt) {onError (evt)}; } Function on message (evt) {evt.data [1] writeToScreen ('& lt; span style = "color: blue;" & gt;' + evt.data + '& lt; / span & gt;'); } Please tell me to keep a condition that it only prints the "AS" key. ; Pars = JSON.parse (theData); for (i = 0; i this ha...

c# - Select XML element without using Extension method -

Says: There is some performance penalty for using these methods I LINQ Using XML queries gets better performance and there is an extension method I have to follow XML, I need to find and add messages. The challenge is that I only have to select the messages under the Status / Status Message / Status Date . With descendants , I am receiving all the messages - even outside of the essential elements. This can be achieved correctly by using XPathSelectElement . But since XPathSelectElement is an extension method, it has some performance hits that have been shown as shown in: In most cases running the XPath query, using standard LINQ, compared to queries 5 There will be more execution period times Note: What to tweak to Is there any way to do this? > XML XDocument xDoc = XDocument.Parse (@ " for this purpose & Gt; & lt; StatusType & gt; Invoice & lt; / StatusType & gt; & lt; StatusDetail & gt; & lt; Sequence Tria...

php - How to add Date in MySQL with Codeigniter db->insert() method -

मैं अपने फॉर्म को db-> insert () विधि, लेकिन यह डेटाबेस में ठीक से सम्मिलित नहीं है। मैं इनपुट फ़ील्ड को MySQL में उचित दिनांक स्वरूप में कैसे सहेज सकता हूँ? (MySQL में डब का प्रकार "DATE" पर भी सेट होता है।) MYSQL DATE - YYYY-MM-DD प्रारूप में एक तिथि है ताकि आपको एसक्यूएल या पीएचपी के माध्यम से कन्वर्ट करने की आवश्यकता हो PHP $ date = date ('YYYY-MM-DD', स्ट्रटोटेम ($ old_date)); $ date = तारीख ('वाईएम-डी', स्ट्रॉटोम ($ पुराने_डेट));

plugins - Light Weight JRE -

I am creating a website that has an applet. But we know that in order to run Applet in the browser we need the Java Plugin (JRE). So my question is this: Is it possible for us to provide a weighted weight JE with possibly going to the Oracle site. Note that JRE should be small size only one applet is required to run. Regards, Allen Lee MJ There is no such thing, Going to the site is to establish JRE. The JRE which needs to be installed is a client that does not use this applet in the server side.

mod rewrite - Loosening .htaccess file's RewriteRule(s) to also access URL without a trailing slash -

मेरा .htaccess फ़ाइल को हमेशा स्लैश के पीछे यूआरएल की आवश्यकता होती है जैसे कि : http: // localhost / menjaraz / webroot / about / http: // localhost / menjaraz / webroot / 2013/03/21 / आप-हैं-मेरे-दिल-आप हैं काम करने के लिए, अन्यथा एक 404 त्रुटि निकाल दी गई है। मैं नियम (नियमों) को छोड़ना चाहता हूं ताकि एक URL स्लैश समाप्त भी भी करना होगा। अवतरण रीव्रेटबेस / मर्जराज / वेब्रोएट रीराइटरेबल ^ ([^ /] *) / $ Index.php? पृष्ठ = $ 1 रिवेराइटियम ^ ([^ /] *) / ([^ /] *) / ([^ /] *) / ([^ /] *) / $ index.php? A = $ 1 & amp; amp; b = $ 2 & amp; amp; c = $ 3 & amp; पृष्ठ = $ 4 मुझे ऐसा कैसे करना चाहिए? मैं बहुत ही आराम से रेगेक्स के साथ और mod_rewrite के साथ नहीं हूं। थानक्स अग्रिम में। आपको ? का उपयोग करके आखिरी स्लैश को वैकल्पिक बनाने की आवश्यकता है: रीव्रेटबेस / मेजरज / वेबआरओट पुनर्लेखनकोण% {REQUEST_URI}! Index.php रीराइटरेबल ^ ([ ^ /] *) /? $ Index.php? पृष्ठ = $ 1 फिर से लिखना कन्वर्ट% {REQUEST_URI}! Index.php रीराइटरेबल ^ ([^ /] *) / ([^ /] *...

github - Restore file from git repo without commit -

I removed a file from my local workspace and then I realized that it is needed. I have not committed or have not pushed for the repo yet, so I want to get that file back in my local area. My problem is that my local repo 10 is ahead of the remote master, so only the cloning owner is not good, nor is he checking a different commitment. I am afraid that I will either erase my local repo and source, or screw more things. Thanks for any help. If you have not made this change yet, the following will return the file to you: git checkout & lt; Filename & gt; The exact file name can be obtained through the git status .

publish subscribe - ZeroMQ pub-sub categories: are wild cards possible for multiple subscriptions? -

I am reading through the ZeroMQ document and I was wondering if there is a way to use wild cards ? I need a system where you can publish something like ABC and then A. * . Or subscribe to AB * (i.e. a subscription to A.A.). * . ABC, AXC, AIC, etc. will match the publications.) ZeroMac pub / sub matches a prefix therefore AB is OK (in your example ABC Will match). "Inplace Mailing" is not supported, for obvious reasons (Subscriptions are stored in a triangular data structure) [

php - Mocking an object with internal dependencies in PHPUnit -

I am new to testing and I would like to understand how the tests are implemented in real world scenario. For example, this is the code that implements an internal structure, and chains the method. At first glance I joked that this will be the best way to go, but most examples come in such a way: public functions some functions (A $ a) {return $ a * b; } However, I'm testing the code goes like this: public function deleteUser ($ user_id) {$ user_id = (int) $ User_id; $ Flag = framework :: match () - & gt; Request-> Receive ('delete') || false; If ($ $-> user_id) is present ($! - $ user_id) (delete new user exception (UserException :: NOT_EXIST);} $ $ - (array ('id' = & gt; $ user_id)) ;} How will you test it? I have seen [1]: Testing of objects with dependency in PHPUnit but its Modifying the actual code is not an option. short answer: you do not test that code for the unit Can be in framework class due to static method calls Theode...

.htaccess - Will my website be indexed as usual after hiding temporarily using htaccess and then bringing it live? -

I will protect / hide the password of the website by using htaccess to reject robots. So if I win it after a few weeks, will the index work normally or be reported using Google Webmaster Tools? thanks :)

java - FTP client class is not connecting -

FTPClient क्लाइंट = नया FTPClient (); FileInputStream fis = null; {Client.connect ("32.178.10.121") का प्रयास करें; Client.login ("XXX", "XXX"); // // अपलोड करने के लिए फ़ाइल का एक इनपुट स्ट्रीम बनाएं / स्ट्रिंग फ़ाइल नाम = "टच डैट"; Fis = नया FileInputStream (फ़ाइल नाम); // // सर्वर पर स्टोर फ़ाइल // client.storeFile (फाइलनाम, एफआईएस); client.logout (); } पकड़ (IOException ई) {e.printStackTrace (); } अंत में {try {if (fis! = Null) {fis.close (); } Client.disconnect (); } पकड़ (IOException ई) {e.printStackTrace (); }} मैंने इसे करने की कोशिश की है, लेकिन हर बार जब यह समय सीमा को छोड़ता है और अन्य तरीकों से मैं सफलतापूर्वक कनेक्ट हो रहा हूं, लेकिन यहां से NT इसका कारण हो सकता है। यह स्टैकट्र्रेस है: java.net.ConnectException: कनेक्शन का समय समाप्त हो गया है: java.net पर कनेक्ट करें। PlainSocketImpl.socketConnect (नेटिव मेथोड) java.net पर। Java.net.PlainSocketImpl.connectToAddress पर (अज्ञात स्रोत) PlainSocketImpl.doConnect (अज्ञात स्र...

tortoisecvs - Why does CVS omit folders when committing? -

मेरे पास संरचना के साथ एक परियोजना है project / lib / lib1 / subfolders / lib2 / ... lib2 हाल ही में जोड़ा गया था और अब सीवीएस में है / प्रोजेक्ट करने पर, / परियोजना और / project / lib2 में बदली गई फ़ाइलें कमिट का हिस्सा हैं, फिर भी lib2 / subfolders नहीं हैं मैं व्यक्तिगत रूप से बिना किसी त्रुटि के lib2 के प्रत्येक सबफोल्डर को प्रतिबद्ध कर सकता हूं, लेकिन उन्हें पूर्ण प्रतिबद्धता का हिस्सा बनाना चाहूंगा। सीवीएस इन सबफोल्डर्स को कब बनाते हैं? lib2 / cvs / प्रविष्टियों में देखकर मुझे निम्न संरचना मिली: /index.html/1.3/Sat Mar 16 09:58:04 2013 // /humans.txt/1.1/Sat मार्च 16 09:58:00 2013 // /robots.txt/1.1/Sat 1 9 मार्च, 2013 // डी हालांकि, डी के स्थान पर, प्रत्येक निर्देशिका को अलग से दिखाया गया था: D / css //// डी / फोंट //// डी / जेएस //// डी / आईएमजी //// समस्या स्पष्ट रूप से है कि lib2 में फ़ोल्डर्स प्रविष्टियों फ़ाइल में उल्लेखित नहीं हैं। मैंने अब प्रविष्टियां फाइलों को स्पष्ट रूप से निर्देशिका में बदल दिया है और समस्या हल हो गई है...

ruby on rails - A way to make use of form automagic for a controller without a model -

I do not have a model that controls a very cyclical work, the user is basically filling a form, Something is sending it to the server for small analysis, and then the server takes almost a single thing back to the user. The user makes some adjustments, and the process starts again. There is nothing to save or archive through this process, so there is no model in it. To deal with a large number of areas to work with Form I, is there any way that I can retrieve the parameter hash by retrieving areas with the least amount in the view back? Actually, I want to change some values ​​in Paramash hash, but pass more or less hash back so that it can almost fine-tune the view that when it was submitted. The old way to use OpenStruct was ideal. Will this help? In Administrator action , just start a code like @params (or something like this), so that parameter to be able to use all the values, can be available on that watch page.

java - prunsrv.exe Service not starting up -

I am trying to install and start a service with prunsrv.exe for an application. > I am enabled to install the service properly, but the service does not start and gives me an error PR_LOGPREFIX =% SERVICE_NAME% set the SERVICE_NAME = TestService Rem service to PSJ3R.png "alt =" Enter the image details here "> Save using log configuration set Is set to set PR_LOGPATH set = D: \ Program Files \ Java: \ Setup \ Commons_Daemon \ Commons-Daemon-1.0.14-bin-windows \ log set PR_STDOUTPUT = auto set PR_STDERROR = Java installation to auto : Set PR_LOGLEVEL = infoRem paths PR_JVM = c set \ jre1.6.0_04 \ bin \ client \ jvm.dll set PR_CLASSPATH = D: \ setup \ Commons_Daemon \ Commons-daemon-1.0.14-bin-windows \ temp.jar; Rem Startup Configuration Set PR_STARTUP = Auto Set PR_STARTMODE = Java Set PR_STARTCLASS = Trys.AppLauncher Set PR_STARTMETHOD = Start Remote Shutdown Configuration Set PR_STOPMODE = Java Set PR_STOPCLASS = Trys.AppLauncher Set PR_STOPMETHOD = S...

linux - How to list the files inside directory and sub directories? -

I have a directory and it has sub-directories which are text files, now I want to list all .txt How to do files in sub-directories with paths? Try it out: Find / Type f -name \ *. Txt This will give you '.' Will give all .txt files in / directory.

How to center a text vertically in a narrow textview in Android? -

Image
मेरे पास एक TextView है जिसमें 30px का height और एक है 40px के टेक्स्ट का आकार चूंकि टेक्स्ट देखें से अधिक लम्बे है, इसलिए मैं केवल टेक्स्ट के मध्य भाग को प्रदर्शित करना चाहता हूं.इस तरह से: लेकिन android: gravity =" center_vertical " के साथ, मैं केवल कुछ ऊपरी हिस्सा कट के साथ पाठ के ऊपरी हिस्से को प्रदर्शित कर सकता हूँ और यह मेरा कोड है: & lt पूर्व; TextView एंड्रॉयड: layout_width = "wrap_content" एंड्रॉयड: layout_height = "30px" एंड्रॉयड: textSize = "40px" एंड्रॉयड: पाठ = "ABCDEFG" एंड्रॉयड: गुरुत्वाकर्षण = "center_vertical" / & gt; किसी को भी ऐसा करने का कोई तरीका पता है? धन्यवाद! क्या आप इसे उचित रैखिक दृश्य में लपेट नहीं कर सकते और मार्जिन को समायोजित कर सकते हैं टेक्स्ट ऐप के भीतर लगभग आधे आकार (पैडिंग पर निर्भर करता है) फ़ॉन्ट का आकार? & lt; linearLayout xmlns: android = "http://schemas.android.com/apk/res/android" एंड्रॉइड : Layout_width = "fill_parent" ...

c# - Touch event can't be consumed in mono -

I have recently moved from Java to C # and mono to Android development. I have a list view, which I alternatively want to return right or wrong, but do not have the option to do this in mono. Here are some code snippets: Java (which I am trying to reproduce in mono) list view list view; ArrayAdapter & LT; String & gt; Adapter; @ Override protected void saved create (bundled Instansstet) {Suprknkret (saved Instensstet); SetContentView (R.layout.activity_main); Listview = (list view) Find VVBIID (Raidistview1); Adapter = new array adapter & lt; String & gt; (This, Android .R.Let.simple_l_l_item); For (int i = 0; i Mono equivalent: list view list view; ArrayAdapter & LT; String & gt; Adapter; Protected override zero overcrit (bundle bundle) {base.OnCreate (bundle); // Set our view from "Main" layout resource SetContentView (Resource.Layout.Main); Listview = FindViewById (Resource.Id.listView1) as ListView; Adapter = New Arrayheader & lt...

JSON.parse, Sinatra and Webrick -

यह पता लगाने की कोशिश क्यों है get '/ json_test' do j = '{ "Key1": "val1"} 'JSON.parse (j) एंड इस त्रुटि का कारण बनता है आंतरिक सर्वर त्रुटि एरे को स्ट्रिंग में परिवर्तित नहीं किया जा सकता प्रिमी मणि का उपयोग करके मैं पार्सिंग से पहले ब्रेकपॉइंट को हिट करने में सक्षम हूं। वहां से मैं JSON.parse (j) को कॉल कर सकता हूं और यह ठीक काम करता है। क्योंकि आप सेवा कर रहे हैं मार्ग से कोड JSON.parse एक रूबी डेटा प्रकार में JSON की स्ट्रिंग धर्मान्तरित करता है। सिनात्रा मार्ग से अंतिम अभिव्यक्ति या तो शरीर की स्ट्रिंग होनी चाहिए, या रैक का [status_code, headers, body] (या लगभग) के अनुरूप होनी चाहिए। यदि आप JSON प्राप्त करने का मार्ग चाहते हैं, तो इसे आज़माएं: get '/ json_test' do j = '{"key1": "val1"}' 'JSON.parse (j) 200 अंत लेकिन जब तक आप शरीर में कुछ मतलब के साथ प्रतिक्रिया नहीं कर रहे हैं, तब तक इसे प्राप्त नहीं होना चाहिए।

haskell - How does this memoized fibonacci function work? -

In the current practice assignment of functional programming courses, we've got to create a memoized version of one given For the interpretation of the function of memoanization, the following example has been given: fiblist = [fibm x | X & LT; - [0 ..]] FIBM 0 = 0 FIBM 1 = 1 FIBM N = FBL !! (N-1) + Fibliëlt !! (N-2) But I do not fully understand how it works. Let's call fibm 3 . FILM 3 - & gt; FIBIL !! 2+ FB list 1 - & gt; [Fiber 0, Fimboma 1, FB 2] !! 2 + [Fib 0, FIBM 1] !! 1 - & gt; FIMBUM 2 + FIBM1 - & gt; (Fiberlist !! 1 + Fibliast 0) + 1 - & gt; ([FIBM 0, Fib 1] !! 1 + [FIBM 0] !! 0) + 1 - & gt; (FImM + 1FBM) + 1 - & gt; 1 + 0 + 1 - & gt; 2 With other questions / answers and googling, I have learned that in some way, the evaluation is shared between the FB list. Does this mean that, for example, fiblist !! 2+ FB list !! 1 , the list value is only calculated once for the fiblist !! 2 and then just reused for fibl...

wordpress - Responsive Portfolio Gallery Image Resizing -

I am creating a responsive portfolio website using WordPress I have a small issue that breaks the layout, all the images being 300px wide by 200px high means that I used the WordPress API to crop the images, if I upload a larger picture than the above mentioned dimensions Then add_image_size ("Portfolio", 300, 200, true); What is it for me that it automatically inserted width = "300" and height = "200" properties for images (But the original dimensions of the image remain the same way as they are being reviewed) This is better than my work when I try to resize my browser window. Here is a sensorio: The client uploads amplitude with 300px width 210px high .. initially it is being shaped and That's why the layout is perfect, but when I change the size of the browser, the images are also resized but in relation to its "basic dimensions". So the image with the original height of 210px is that the remaining images .. And as I am fl...

PowerShell pass script argument to configurate function -

मेरे पास एक वैश्विक फ़ंक्शन लॉग ([स्ट्रिंग] $ संदेश, $ logType = 'कंसोल') {} लॉग ('हैलो'); यह डिफ़ॉल्ट रूप से सांत्वना के लिए लॉग लिखता है। और मैं इसे सभी कॉलों को समान रखने के लिए कमांड लाइन तर्क द्वारा कॉन्फ़िगर करना चाहता हूं, लेकिन अन्य लॉगिंग प्रकार के साथ फंक्शन ले सकता है या तर्क, या कमांड लाइन पैरामीटर और मैं उन्हें मिश्रण करना चाहता हूँ फ़ंक्शन लॉग ($ संदेश, $ logtype = 'console' ) {स्विच ($ logtype) {'console' {write-host $ message} 'वर्बोज़' {write-Verbose $ message} 'फ़ाइल' {आउट-फ़ाइल $ संदेश $ पथ} डिफ़ॉल्ट {$ message}}} लॉग 'FOO '' वर्बोज़ ' $ logtype पैरामीटर के लिए आप अनिवार्य रूप से $ झूठी सेट करना चाहते हैं।

debugging - Debug Play 2.1 with Eclipse -

I know that my problem is very familiar but I can not debug my playback! Project via eclipse Precondition: Use Windows 8 with Eclipse Juno and Play 2.1 Check that the port 99 99 is not Create a play project and "eclipsify" it workflow: 1. Start playing with "Play Debug Run" - http listening port = 9000 and jpda = 9999 2. Setup debug configuration: Java Remote application; Socket Attach; Host = publichost; Port = 99 99 3. Debug project - & gt; Error: Failed to connect to remote VM The connection failed. Connection refused: Connect I also tried to get the eclipse as the admin with the result I heard that it is possible to change the JDP port, but I do not understand 99 99 is free. Besides, I would like to know how do I start a debug mode inside the game console? G Almost similar problem: Check your firewall incidents after blocking events ... I had problems with Eclipse + GWT + JPDA debugging, my Commodo Internet Security Suite is...

Convert decimal to hex using PHP -

How to convert the decimal value into hex using PHP? December: 68-55- 230-06-04-89 I like hex value this way Hex: 44-37-E0-06 should -04-59 but instead its display 44-37-E0-6-4-59 $ per echo $ test = dechex (68) .. "-" dechex (55) "-" dechex (230) "-" dechex (06) "-" dechex (04) "-" dechex (89) ........ This gives me the output: 44-37-E0-6-4-59 // without 06-04 output me Something like 44-37-E0-06-04-59 For 44-37-E0-06-04-59 just add 0 , sprintf ('% 02x -% 02X -% 02X-% 02X-% 02X-% 02X ', 68, 55, 230, 06, 04, 89);

SVN Commit Issues -

I have some questions when applying against my project using the svnkit library. 1) I made a file and change locally from the checkout repository, before I check the other user in the same file and make the changes and commit the file but if I now If committed, then it will throw an error. So it is possible to update the latest local changes in my local checkout file, without notifying my local changes. That is, we update for some time as if in eclipse [or] 2) It is possible to check if there is a conflict before filing a file. Because once the conflict creates the duplicate version of the file with local and repository changes. How To Avoid This Case Therefore update the latest local changes in my local checkout file It is possible to update without overriding my local changes. That is, some updates like we accept. This is what svn update does if there is a dispute (you and others have edited the same part of the file), then you work You will end up with three f...

php - The bug Fatal error: Cannot redeclare date_diff() in -

I used the cakepad with version 1.1.7692. When I call it php ver & gt; 5.3.2, It has a bug: Fatal error: date_diff can not redeclare (). And I run it with php ver 5.2.9, it shows lots of text and code in the same way: quality = 100; $ Thumb- & gt; Filename = "/ path / to / file .jpg"; / / Important - $ thumb-> any manipulation Init (); // 50% $ thumb-> percent = 50; $ Thumb- & gt; Resize (); // crop image to 350x350 $ thumbs-> crop size = 350 from the center of the image; $ Thumb- & gt; crop (); // Image size 125 px wide not $ thumb- & gt; Percentage = 0; $ Thumb- & gt; MaxWide = 125; $ Thumb- & gt; Resize (); // Save image as 'filename.jpg' $ thumb-> Save ('/ path / to / save / filename.jpg'); You can also use this class to create thumbnails and display them when you create your manipulations so you can display the result: echo ''; * / Class extends ThumbnailComponent object {var $ errmsg; // erro...

MySQL fetch time optimization -

We have a table with two lakh registers, but it will grow very soon, basically with the respective details in this table. An image contains points of interest. When I am trying to execute the query, which selects spatial points near the query points, the total execution time is too long. The more accurate period / gain = 0.484 seconds / 27.441 seconds and the query is quite simple, which only gives ~ 17000 rows, My question is:. Select fp.fingerprint_id, fp.coord_x, fp.coord_y, fp. Angle, fp.desc1, fp.desc2, fp.desc3, fp.desc4, fp.desc5, fp.desc6, fp.desc7, fp.desc8, fp.desc9, fp.desc10, fp.desc11, fp.desc12, Fp.desc13, fp.desc14, fp.desc15, fp.desc16, fp.desc17, fp.desc18, fp.desc19, fp.desc20, fp.desc21, fp.desc22, fp.desc23, fp.desc24, fp. Desc25, fp.desc26, fp.desc27, fp.desc28, fp.desc29, fp.desc30, fp.desc31, fp.desc32 fingerprint fp from fp.is_strong_point = 1 and (193-40 and 193 + 40 between coord_x ) And (Coordination 49-15 and 49 + 15) limit 1,1000000; That's ...

c# - making text field viewable but not editable -

I am using code so that users can get permission to view usernames because this name is by Active Directory Given as if the file filed with the name was added to look at but the data is not able to edit any idea how I can achieve it. @ Html.EditorFor (model => model.UserName) I also have two methods Trying to fall, which do not work with the statement @inlolo or along with @ Html.EditorFor (model = & gt; Modal user name, new { @disabled = "disabled"}) @ Html.EditorFor (model = & gt; model.UserName, new {@readonly = "readonly"}) Go to Go Extension, which you can pass the overload: @ Html.TextBoxFor (model => Model .UserName, new {@readonly = true})

c# - auto resizing panel on a form -

I have two panels on one form. I want one of them, when a user maximizes the form, then Depending on the form, the panel can also be maximized. I tried and panels are shown on the entire form, hiding the other panel. Here's my code: Public MainForm () {InitializeComponent (); Panel 2 Anchor = (anchorstyle.bottom | anchorstyle. Right); Panel 2 Doc = DocStyle. fill; TaskControl T = new task control (); Int x, y; X = 0; Y = 0; T. Place = new point (x, y); Panel2.Controls.Add (t); T.BringToFront (); } I managed to do it. I have changed the values ​​of anchor with properties Thanks for the help! You should not do this at the beginning, but also in Form_Resize events and so on. For example, you can handle the Form.ResizeEnd event, see the reference.

ios - How to check valid URL schema in iPhone? -

I have a project in which I have to open an app from within another app. I am able to open another app through the URL schema, but now I have to add another functionality, if the other app is not installed in the mobile app, then the user should be redirected to that app's appstore link. NSString * appLink = @ "Other app: //"; [[UIApplication shared application] Opener: [NSL URL URL Authorization: App Link]]; The above code opens to another app, but how can I check whether the app is installed in the phone or not, so that I can redirect the user to another app's AppStore link. It is not installed. However, how do I open the appstore from within the app, but the problem is that how the app is installed or not. The app store has the URL to open the app: itms: //itunes.apple.com/in/app/otherApp/id134567414? Mt = 8 Yes, it's really easy to use: NSString * appLink = @ "Other app: //"; If ([[UIApplication is shared applicant] canOpenURL: [N...

jQuery Find Selector Not Selecting Array Item -

I am trying to access a list of photos using the jQuery search selector, but are not visible due to some reason I'm using jQuery 1.8. Ideal code: $ (this) .siblings (images_container) .find (photo); Current code: $ (this) .siblings (images_container). children (). ("Photo"); The current code does not work either. Choosing children like: $ (this) .siblings (images_container). Children () album_id_3 is $$ HTML & lt; Div class = "photo_wrap" & gt; & Lt; A href = "#" id = "album_id_3" & gt; & Lt; Div class = "photo_img_wrap" & gt; & Lt; Img src = "/ assets / img / user_images / 2_4.jpg" & gt; & Lt; Div class = "album_photo_count" & gt; 1 & lt; / Div & gt; & Lt; / Div & gt; & Lt; / A & gt; & Lt; Div class = "album_name" & gt; Untitled & lt; / Div & gt; & Lt; Div style = "display: none;" ...

c# - Search for a Local user in a local group that does not have Foreign Security policy -

Actually I got a post whose problem is in our application and the solution was: Private Static Zero List Group Group (String Group Distilled Name, Principal Contact CTX, Listed> UserPrinitle> Users) {DirectoryEntry Group = New DirectoryInterity ("LDAP: //" + Group Defined Named); Foreign currency (group DN properties in the group ["member"]) {DirectoryEntry gpMemberEntry = New directoryInterity ("LDAP: //" + DN); System.DirectoryServices.PropertyCollection userProps = gpMemberEntry.Properties; Object [] objCls = (User post ["Object class"]. Value) [] in the form of object; If (objCls.Contains ("group")) list group member (userProp ["specific name"]. Value as string, ctx, user); If (! ObjCls.Contains ("Foreign Protector")) {User Principal U = UserPrintal. FidbyIndt (CTX, Identity Type, Distilled Names, DN); If (u! = Null) // u == user blank for any other type except users Add (U); }}} However, I am try...

Python (2.7): how to avoid imported modules to appear as part of my modules? -

I've written two modules m1.py and m2.py, each of which uses different modules from the standard library. For example # m1.py Import System # #. and # m2.py Import OS #. #. What's "botherful" to me that when I import into main.py, then two modules m1.py and m2.py I use the functions defined in sys and os like this Can I: # main.py print m1.sys.version print m2.os.listdir () whether it is normal, or any import Should I consider some modules in my code? Usually you do not need to worry about what is accessible in your namespace, which is a stuff that That the documents in the module are not part of the API, they are screwed around, whatever problems they receive, they are qualified. Python assumes that these programmers are responsible adults. The exception occurs when you want to allow other codes to be otherwise used with otherwise discouraged mymodule import * syntax then whatever you want to do public, so that you can create your own in...

typoscript - TYPO3: lang attribute changed in html tag (HTML5boilerplate style) -

I use this configuration to comply with HTML5 billetplates. config {doctype = html_5 doctype (& lt ;; doctype html & gt; & lt ;! - [if lt IE7] & gt; & lt; html lang = "de" class = "No-jsi 6"> gt; & gt; [andif] - & gt; & lt;! [If IE 7]> gt; & lt; html lang = "de" class = "no-js ie7" & Gt; & lt ;! [Endif] - & gt; & lt ;! - [If IE 8] gt; & lt; html lang = "de" class = "no-js ie8" & gt; & lt; ! [Endif] -> - [If IE 9]> [endif] -> gt; & lt; ;; - [if (gt IE 9) |! (IE)]> gt> P> Post-text "itemprop =" text "> Uchi To set config.htmlTag_setParams , use the normal TS status, which you are probably using for the language sticking ... [globalVar = GP: L = 1] config.sys_language_uid = 1 config.language = en config.htmlTag_setParams = lang = "en" class = "no-js no-ie" & gt; & Lt ;! ...

php - Merging 2 tables with data from different queries? -

Image
मेरे पास वर्तमान में 2 टेबल हैं जो इस तरह दिखते हैं: इन 2 तालिकाओं के लिए कोड इस तरह दिखता है: & lt; तालिका की चौड़ाई = "600" सीमा = "1" & gt; & LT; टीआर & gt; & Lt; चौड़ाई = "91" & gt; & Lt; div align = "center" & gt; मेल_आईडी & lt; / div & gt; & lt; / th & gt; & Lt; चौड़ाई = "91" & gt; & Lt; div संरेखण = "केंद्र" & gt; स्थिति & lt; / div & gt; & lt; / th & gt; & Lt; चौड़ाई = "91" & gt; & Lt; div align = "center" & gt; डेटा & lt; / div & gt; & lt; / th & gt; & Lt; / टीआर & gt; & Lt;? Php $ j = 0; जबकि ($ objResult2 = mysql_fetch_array ($ objQuery2)) {$ j ++; ? & Gt; & LT; टीआर & gt; & Lt; td & gt; & lt; div align = "center" & gt; & lt;? = $ ObjResult2 ["मेल_आईडी"];? & Gt; & Lt; / div & gt; & lt; / टीडी ...

google app engine - difference between DateProperty and DateTimeProperty -

आम आदमी की अवधि में, ndb.DateProperty और ndb.DateTimeProperty ? मैं कब का उपयोग करेगा? उदाहरण के लिए, मेरा उद्देश्य किसी भी परम के साथ auto_now_add = true का उपयोग करना है से: ये मानक पायथन डैटटाइम मॉड्यूल के संबंधित कक्षाओं (तिथि, समय, दिनांक समय) से संबंधित मान लेते हैं। तीनों का सबसे सामान्य दिनांकटाइमप्रॉपर्टी है, जो कैलेंडर की तारीख और दिन का समय दोनों को दर्शाता है; दूसरों को विशेष प्रयोजनों के लिए कभी-कभी उपयोगी होते हैं जिनके लिए सिर्फ एक तारीख (जैसे जन्म की तारीख) या केवल एक समय (जैसे मीटिंग समय) की आवश्यकता होती है। तकनीकी कारणों से, तिथिप्रॉपर्टी और टाइमपॉर्फ़टी डेटटाइमप्रॉपर्टी के उप-कक्षाएं हैं, लेकिन आपको इस विराट संबंध पर निर्भर नहीं होना चाहिए (और ध्यान दें कि यह केवल समय-समय पर मॉड्यूल द्वारा परिभाषित अंतर्निहित वर्गों के बीच के विरासत संबंधों से अलग है)। अपेक्षित रूप से, यदि आपको समय के लिए कोई संदर्भ (जैसे: सिर्फ तारीख) की ज़रूरत नहीं है, तो दूसरा उपयोग किया जाता है, जब आप पूरी जानकारी चाहते हैं जब आप एक या दूसरे का उपयोग करेंगे, तो यह बिल्कुल निर...

select - SQL query: only one dataset per specific attribut -

I want to get only one dataset from the database for each specific attribute (column value). Example: You have a table like this: Restaurant District Latitude Latitude -------------------------- - ------------ Deli meals 1 80.456 -56.89 Perseus 1 80.879 -56.00 Artica 2 67.7080 -69.8 9 Tie 2 67.00 -69.00 Petra 3 89.00 -78.89 And you want only one instance for every district such as: Daily meal 1 80.456 -56.8 9 Articon 2 67.7080-69.8 9 Peter 3 89.00 -78.89 How do I achieve this goal? Generally I used to be in the group of the district only, but then I remove other features. Thanks for all the replies !! There are several ways to solve it, using one subquery for each district separately A record gets that since you have not mentioned your RDBMS which you are using, it will work on almost all RDBMS. SELECT a. * An Inner Join from the table (Select District, Max (Longitude) max_val FROM, table name GROUP by district) b on a.district = b.district and a.longitude = ma...

delphi - Add icons to the tabs of a Firemonkey TTabControl -

You can add a TImage to the button to add an icon to a Tubutan in FireMonkey. But how to add an icon for TTabControl's tabs? Is this possible? At the very least you will need to modify the style (to add an image) and possibly the image To set up the data, create custom controls coming from TTabControl.

programming languages - Shallow & Deep Binding - What would this program print? -

I'm not sure how to do this ... function f1 () { Var x = 10; Function F2 (fx) {var x; X = 6; Fx (); }; Function F3 () {Print X; }; F2 (f3); }; For the following two binding methods, what will the program print? A) shallow binding B) Deep binding Thanks for the help! Deep / shallow binding only makes sense when a procedure passes as a logic of a function can be done. Deep binding binds the environment when any process is passed logic. Shallow bondage binds the environment when a process is actually called. Deep binding. Here f3 () is f1 () / em> and x of 10 which is the local variable of f1 () . shallow binding f3 () is called in f2 () and hence the environment of f2 () gets and prints the value of x 6 which is local f2 ()

regex for lowercase letter or period followed by an uppercase letter -

Basically I just wanted to find a lowercase letter after which there was an uppercase letter, in that case [az] [AZ] ] worked very well. However, in some cases the lowercase letter is replaced with a period. I am quite new to regex and I am not able to find a way to apply this discretion in regex (My current solution runs through some statement, if runs through statement and quite disqualified. Is there anything that can be well controlled by regex? [ed.] [ Read about it. A character by specifying it Additionally. In addition to: If you were using . outside of a character group, you must save it because it is a regeded meta-character.

html page with one input "text". where does the focus go? -

Because I'm having some problems while using onblur / onkeydown (for tabs) etc. I would like to ask this question: If I have only one input text page and I will go there and I am focusing on the "tab" where Am going I would like to know because I do not want to lose focus on input text ... My page is like this: If you specifically type that text field in the autofocus attribute & lt; Input type = "text" autofocus / & gt; Or if you want to map tabs in a custom way, then tabindex attribute & lt; A href = "#" tab index = "2" & gt; Tab 2 & lt; / A & gt; & Lt; Br / & gt; & Lt; A href = "#" tabindex = "1" & gt; Tab 1 & lt; / A & gt; & Lt; Br / & gt; & Lt; A href = "#" tabindex = "3" & gt; Tab 3 & lt; / A & gt; When there is 1 input text field and after that nothing happens, the focus may not even go to t...

ios - How do I extract a list of email/mailbox strings within text or test if a string is a proper email address? -

Looking at some arbitrary text, I get all the email addresses and the 'mailbox specifier' (like "Fred Smith" Lt; fred@me.com> ). I looked at NSDataDetector, but it does not handle the email address. The way to access it is a very good algorithm that can identify as many valid addresses, and improper people Can reject Perhaps the best solution would be a parser using Lex and Yake, but there are proper solutions using regular expressions. A list of regularly tested expressions, along with a more in-depth discussion of the problem and possible solutions. Regular expressions to be displayed on the above site are formatted for PHP, and are forward and trailing '/' markers, as well as signal-insensitive such as 'flags' etc. (more to see this Information), so this objective should be stripped before using the expression in the project. Also, it is necessary to separate any anchors too, because we do not want many addresses just one (i.e. '...

java - Web application in jsp/servlets - localization using fmt:message -

I am writing a simple www application using jsp and servlet on Topicat 7.0. It's multilingual and I want to make all the messages out for easy translation. I'm trying to get it fmt: message tag This is my test page: SimplePage.jsp & lt;% @ taglib uri = "http://java.sun.com/jsp/jstl/fmt "Prefix =" fmt "%> & Lt; Fmt: setLocale value = "en_US" scope = "applications" /> & Lt; Fmt: setBundle basename = "Localization. Message" var = "b" /> & Lt; Html & gt; & Lt; Body & gt; & Lt; Fmt: message key = "key1" bundle = "$ {b}" /> & Lt; / Body & gt; message_en_US.properties key1 = test The page's output is: ??? Key 1 ??? I have put message_en_US.properties in the source folder named "Localization". I have put it in Web-INF, WebContents and src (as well as changing the base name of bundle) - Results only one. I appreciate any h...

asp.net mvc - Implement response header in Ajax call -

Below is a cross-domain call I am trying to do via an Ajax call. The web service we are using returns only to XML, so I can not use the jsonp as the dataType As I wrote it down, I get the following error in Chrome's debugger: Unfair reference references: The request is not defined Here is the code : function GetProgramDetails () {var URL = "http: //quahildy01/xRMDRMA02/xrmservices/2011/OrganizationData.svc/AccountSet? select $ = account ID, name, and Neu_UniqueId $ Filter = startwith (name, \ '"+ $ (' search box '). Val () +" \') "; Var SourceDemon = Request Header ["origin"]; Var request = $ .ajax ({type: 'POST', before Sand: function (request) {request.setRequestHeader ( "Access-Control-Allow-Origin" source Dimen)}, url: URL, contentType: "application / x- Www-form-urlencoded ", crossDomain: true, dataType: XMLHttpRequest, success: function (data) {console.log (data); alert (data);}, error:...

kendo ui - KendoUI DataSource binding to MVVM grid in durandal (using hottowel template) doesn't seem to work -

I am using the Visual Studio 2012 Update 2 Hotlawl template with updated driver and jquery nuget packages ... Here is my code: Durandal main.js: needed.config ({path: {"text": "durandal / amd / text"}}); , ([ 'Durandal / app' Durandal / ViewLocator 'Durandal / viewModelBinder' Durandal / system ',' Durandal / plugins / router 'services / logger "], function (application, ViewLocator, the viewModelBinder Define system, router, logger) enable // debugging message to show in {// console system.debug (true); app.start () {toastr.options.positionClass = 'toast-bottom-right' ; toastr.options.backgroundpositionClass = 'toast-down-right'; router.handleInvalidRoute = function (routing parameters) {logger.logError ( 'No route found' route, 'Chief', true);}; // When finding a viewmodel moe Yul, optimize it for touch rather // viewmodel string with the view to finding fellow visual RouterkuseConvention ()...