Posts

Showing posts from March, 2015

jquery - Radio button onclick - change span content -

Is it possible to do jQuery with AJAX? I want to change my content & lt; Input class = "unitSelectInches" type = "radio" name = "units" value = " Inch "/> Input class =" unitSelectCenti "type =" radio "name =" units "value =" centi "/> centimeter Selecting will change this period to say "inch" and centimeter also ... Inch & lt; / span & gt; Maybe you are skeptical, jQuery and Ajax 2 are different things you just need to do with your need. Need jQuery for, Ajax is not related at all. Please try it $ ('Inp Change (work () {$ ('. UnitLabel'). Text (This.value);})

dart - How to get declared type with mirrors? -

आयात 'डार्ट: दर्पण'; शून्य मुख्य () {var दर्पण = परावर्तन मेल (MyClass); मिरर.डिकायरेशन। ईस्ट ((कश्मीर, वी) {प्रिंट (कश्मीर); अगर (वी वैरिएबल मिरर है) {प्रिंट (v.type);}}); } वर्ग MyClass {var aDynamic; Int anInt; } // प्रिंट: 'डायनामिक' प्रकार '' डायनामिक 'प्रतीक ("एक") क्लासएमरर पर' इंट 'सिग्नल ("माइकलस") पर टाइपमिरर क्या कोई रास्ता नहीं है I प्रकार टाइप करें मिरर को रिफल्क्टिंग करना है तो आईडी को ऊपर दिए गए उदाहरण में 2 गुणों के लिए डायनामिक और प्रकार int वापस करना पसंद है? वेरिएबल मिरर। टाइप सही जाने का सही तरीका है यदि यह क्लासमिरर देता है, तो आप घोषणा के लिए प्रकार ऑब्जेक्ट प्राप्त करने के लिए ClassMirror.reflectedType का उपयोग कर सकते हैं। वैरिएबल मिरर। टाइप हो जाएगा घोषित प्रकार का चर, न कि वैरिएबल के किसी भी मान का प्रकार, इसलिए जब यह एक TypeMirror होगा यह क्लासमिरर नहीं हो सकता है यह एक प्रकार वैरिएबल मिरर या टाइपेडफ़िमरर भी हो सकता है। आप अपने आउटपुट में देख सकते हैं कि गतिशील मामले के लिए दर्...

android - Removing white background image from Watershed mask -

I'm writing a sample using OpenSC's watershed algorithm. I am able to create a mask image, however, The mask has a white background rather than a transparent background. Is there a way to remove this white background and make it transparent? The code I am using is given below: mat three channels = new mat (); Imgproke. CvtColor (cropimagamem, three channel, imgproc .color_BGR2GRAY); Imgroprop Thresholds (three channels, three channels, 100, 255, imgproke. DHRESH_BINARY | IMGproc.RERESH_OTSU); Mat fg = New mat (cropimage size (), CvType.CV_8U); Improprop .Road (three channels, FG, new matte), new point (-1, -1), 12); Mat BG = new mat (crop image size), CVTEPCV_8U); Imgropropilate (three channels, bg, new matte), new point (-1, -1), 12); Imgproke Threshold (BG, BG, 1, 128, IMGproc .THREHHINI) Mat markers = new mat (cropimage size (), cvttcv_8u, new scalar (0)); Cor.ed (FG, BG, Marker); WatershedsGeener Segment = New WatershedsGeener (); Segmenter.setMarkers (marker); Mat r...

c++ - how to insert a loop input into my code -

तो यहां मेरा कोड है # include & lt; iostream & gt; # से & lt में शामिल हैं, fstream & gt; नेमस्पेस एसटीडी का उपयोग करना; Int main () {int program = 0; इंट स्कोर = 0; Cout & lt; & lt; "वर्गीकृत किए गए कार्यों की संख्या दर्ज करें"। & Lt; & lt; endl; Cin & gt; & gt; कार्यक्रम; के लिए (इंट I = 1; i & lt; = प्रोग्राम; i ++) cout & lt; & lt; "असाइनमेंट के लिए स्कोर #" दर्ज करें & lt; & lt; मैं & lt; & lt; ":"; } असल में मैं एक रास्ता खोजने की कोशिश कर रहा हूं जो उपयोगकर्ता को अपने कोड को cout & lt; & lt; असाइनमेन्ट के लिए स्कोर दर्ज करें # " असल में मैं कम्पिलियर को ऐसा करना चाहूंगा (उदाहरण): वर्गीकृत किए गए कार्यों की संख्या दर्ज करें: 3 असाइनमेंट # 1 के लिए स्कोर दर्ज करें: 100 असाइनमेंट के लिए स्कोर दर्ज करें # 75: असाइनमेंट # 3: 82 के लिए स्कोर दर्ज करें (82 और इतने पर, और इसी तरह।) मैं वास्तव में मुझे पता नहीं है कि मैं उसी लूप के साथ इनपुट को कैसे लगाऊं, जो...

list - How to return nothing with cons in scheme -

I have a small problem with the programming task assigned to the plan. We were given the task to perform a task that gives only one value in a pair structure that meets the requirements of a given point. They are also back in the same pair structure, just the degrading entries have been removed. So far my code is (define (if - all ia pred ls) (cons ((null? Ls) null) (cons (keep- There is a problem if all (car LS) (housed-if-all future (CDR LS))) ((future LS) LS) (and faucet)) (keep-if-all odd? (List 1 2 3 (opposition) 4 4) (list 1 2 3 4 5)) returns (1 () 3 (()) (1 () 3 () 5)) instead desired (1 3 () (1 3 5)) A poke in the right direction will be highly appreciated just another add a (If (or (not (empty? X)), (if something (car ls) of the (,? Ls) (but ((x (keep- if-all pre (car ls)) Is left ...); or if it was a pair, (Opposition X (Keep-A-Sub-Pre (CDR LS)); Then, add output to x ....)); Second, in output X (future LS) LS is not included (other '()))...

Java error for NumberFormatException -

I am getting this error when I run the following code and enter 5x5 for size. Sure why When I enter 10x10 then it's going fine, but I'm not sure the output is correct. Exception in the thread "main" Java Lang.NumberFormatException: for input string: java.lang.NumberFormatException.forInputString (unknown source) at java.lang.Integer.parseInt (unknown source) This is my code on java.lang.Integer.parseInt (unknown source) import java.util.Scanner; public class checkerboard {public Static zero main (string [] args) {scanner userInput = new scanner (System.inout.println ("Do you prefer two colors to your board?"); String color-on = user input.net;); String colortivo = user input.net (); {System out. Println ("How big should be a checker board? (Square size only please)" + "\ n" + "Please select the number, like 4x4 Write string. "); String boards seizures = user ipu t.next (); int intOne = integer paraset (board size. ...

javascript - How to when enter is hit the save button in jquery fires? -

एक ग्राहक रिकॉर्ड जोड़ने के लिए मेरा jquery कोड है: $ ("# dialog डायलॉग ({autoOpen: false, // शो डायलॉग ऊंचाई: 300, चौड़ाई: 220, मोडल: सच, बटन: {"सहेजें": फ़ंक्शन () {$ (this) .dialog ('close') ("ग्राहक सफलतापूर्वक जोड़ा!"); $ .post ('insertcus.php', $ ('# ग्राहक')। Serialize (), फ़ंक्शन (परिणाम) {});}, "रद्द करें": फ़ंक्शन () {$ (यह) .dialog ("बंद");}}}); एन्टर दबाए जाने पर मैं कैसे ऑटोकलिक बटन को बचा सकता हूँ? और सहेजने के बाद मैं एक फ़ील्ड को कैसे रिफ्रेश कर सकता हूं? मैं अपना इनपुट चयन फ़ील्ड रीफ्रेश करना चाहता हूं। $ ("# dialog-form") .keypress (फ़ंक्शन (ई) {if (e.keycode == $ .ui.keyCode.ENTER) {$ ('# saveButton')। ट्रिगर ('क्लिक');}});

ios - Added UIScrollView and UIImageView in storyboard - the image is squished and does not scroll -

Image
In Xcode 5.0.2 I have created a UIScrollView and an iPhone and iPad storyboard (here) in a UIImageView : Then I will type the following code in board.png (Copyright Wikipedia Commons, Dennelson 83): - (zero) viewDidoadload {[Super Viewedload]; UIImage * img = [UIImage imageNamed: @ "board"]; NSLog (@ "% s: IMG =% @ (% F x% F)", __PRETTY_FUNCTION__, IMG, IMG size.width, img.size.height); _imageView.image = img; _scrollView.contentSize = img.size; } Although the result is selected and the image can not be scrolled: - [View controller viewDidload]: IMG = & lt; UIImage: 0x10912d770 & gt; (1000.000000 x 961.500000) Any advice please? I suspect that the image has been cut from the bottom because I run a 3.5-inch iPhone simulator? How to fix this too? Update: I am trying to add four 0-odds in the scroll view so that it can take the whole screen, but when I The simulator with the CMD-Arrow will rotate - resizing the scroll view (not he...

authentication - How to get NGINX / Django to detect when CAC / smartcard is removed? -

I have a jaggenso application that sits behind njenax, for which to authenticate the user through CAC (smartcard) is needed. The CAC ID is read by NGNX and the Django is passed, which creates an ID for that user for the dynamic user and logs in that user. That part works fine However, if the user removes their CAC from the card reader, the application still runs together, so that the user can continue to load the pages of that domain. I force Nginx to confirm the CAC certificate on each page load, so that after the CAC was removed, could the DJgo force the user to log out and re-certify them? Nginx config: Server {443 Listen to SSL; Server_name my-server; Ssl_certificate ssl / server.crt; Ssl_certificate_key SSL / Server. Ssl_verify_client on; Ssl_verify_depth 2; Ssl_client_certificate /etc/ssl/certs/dod-root-serts.pem; Location / static / {aka / etc / nginx / static /; 30d expired; } Location / {proxy_pass http: // localhost: 8000 /; Proxy_redirect closed; Host $ proxy_se...

isnull - Crystal Report Null Values -

I'm new to crystal reports and running in a problem. What I want to do, the name of the equipment, the sum of the labor hours and the workday count for a certain period. The time period is determined by a work order closed date. The equipment needs to be shown to show me the problem, even though there were 0 workers for the given time. I think this can be done using 'isnull', but I've lost some sense on syntax and placement. This is my current record formula and SQL query: not ({mtwodata.WO number} begins with "p") and {mtwodata.Close date} = {? DateRange} Select "DateView", "MTVData", "Wo Number", "MTOData", "Act Labor Horse", "MT Vodata", "AMTOVADATA" "MTO Vodata" where " MTOdata ". "WHo Number" "Amtovadata" ("Closed Date"> "'20140101' and 'MTVData'." Close Date "& lt; = '20140131') Order...

visual studio - Add new item in Custom project type -

I created a project type described in Microsoft Visual Studio in Visual Studio, Anyone can help me on the "Add new item" menu and can tell me how can I do this? / P> Specify the location of the project type

javascript - window.open & close several times -

I have window.open (); I created a new window using and I want to close it. So I have made this code. $ ('# open'). ('Click', function () {var win = window.open ("", "", "width = 400, height = 200"); $ newwindows = $ (win.document.body); // more code $ NewWindow.find ('# close'). ('Click', function () {win.close (); // works just once}};}); And it works well in FF, works only once in Chrome (the stop button stops the work), and does not work on IE11 (just test v11) ... What am I doing wrong? I.e., how to fix it to work cross browser? The problem is from this line: $ newWindow.html (content); Adding you to a popup Otherwise, you are removing the original element and taking it to a new location. $ newWindow.html (content.clone ()); Updated wired:

Haskell : Applicative Functor -

I'm new to Haskell I've made a type of holi 3. Data is probably 3a = just 3a. Unknown 3 | Missing 3 dirvings (show, eq, ord) eq3 :: ek a => Maybe 3A- & gt; Maybe 3A- & gt; Bool3 eq3 unknown 3 _ = Unk3 eq3 missing 3 _ = false 3 eq3 _ missing 3 = wrong 3 eq3 _ unknown 3 = unq 3 eq3 (bus 3a) (bus 3b) = if a == b again true3 other false 3 3 How to make an application funny? And how can it make mondad? main idea I understand that is missing 3 and unknown 3 work in some way, except that they do not have any answers, give a little more feedback about it, so each of them Be slightly different to others. Of course I think that missing 3 should be treated as nothing may : Functor may be for code>: for example Factor Maybe where fmap _ nothing = no fmap f (bus a) = bus (fa) I think it is clear how missing 3 and Deal with Unknown 3 . Monaud Example Monad probably where (just x) & gt; & Gt; ; = K = kx Nil & gt; &...

node.js - Loading node-orm2 through a promise, causes CWD and module not found -

I have a function that loads my node-ORM model: function (Server, Connectionstring) {server.use (orm.express (connectionString, {define: function (db, model, next) {loadIdeaDomain (db) next ()}})) Return it} There is another piece of middleware (passport) that needs to be run after loading node-ORM models ... but the Enic nature is making me crazy. Can I convert to one of the above mentioned promises or Before moving forward I can wait to be executed? Let's update the loading var loadIdeaDomain = function (db) {var ideaDomainPath = './idea-domain/idea-domain.js' Console.log ('Loading' '+ DimaManPath) var qLoad = Q.nbind (db.load, db) return qLoad (ideaDomainPath). Then (function () {console .log ('THEN') defined Models = db.moles _.ech (_. Key (db.models), function (modelname) {macproomijes (db model [modelname], modelname}}) Returns db.models}, function (e) {console.log ('ERR') console.log (e)})} It seems that this will work, e...

Query related to SQL Server database -

What is an easy way to find the structure and size of multiple tables in a database, such as names, number of columns, one Number of rows in the statement? Not sure about the rows, can be found through the rest table_name, information as numbers in the form of COUNT (column_name) number INFOMATION.SCHEMA.COLUMNS to table_catalog = @DBName group Table_Name

logging - DB2 - Archive mode - number of ARCHIVE logs larger than LOGPRIMARY -

Perhaps someone has a question about this psalmist; I read and set up a lot of documents: LOGSECOND 4 LOGSECOND 4 LOGSECAND 4,096 logarchmeth1 disk - C: \ archive logpath C: \ active Number of logs in C: \ active 6 is fine. But the current number of logs in C: \ archive is 40. How is this possible? I think the maximum primary log in C: \ archive would be 6 and then 4 LOGSECOND (if it is necessary, they are not already assigned). The permitted log location is infringed but new logs are created continuously in C: \ archive. How is that possible? If someone can tell me this then I would be grateful. In this way I do not know how to complete the transaction log (if I'm coming out of the total disk space) Because the new log is created in C. I'm starting up so please be sorry. Simple question. I did not find any answer on the internet. Logarchmeth1 is the destination for the archive log, I set them to the primary 6, then do I have 40 logs? Thank you When you enable ...

html - How to detect the page width and height in Javascript? -

इस सवाल का पहले से ही एक उत्तर है: 14 उत्तरों मुझे कुछ सहायता चाहिए Html / javascript में छोटी सी चीज, मैं पेज चौड़ाई और ऊंचाई का पता लगाने के लिए एक जावास्क्रिप्ट कोड कैसे बना सकता हूं और जब यह छोटा होता है तो मैं सिर्फ एक अलर्ट कहता हूं जो "समायोजित करने के लिए Ctrl दबाएं"। (मुझे पता है कि संदेश कैसे करें, केवल पेज आकार का पता लगाने में मदद की ज़रूरत है) धन्यवाद! JQuery के लिए फास्ट कोड स्निपेट: यदि ($ (दस्तावेज़)। हाइट () & lt; minHeight || $ (document) .width () & lt; minWidth) {// कॉल पॉपअप} minHyight और minWidth चर परिभाषित करना चाहिए।

callback - jquery how to capture value after event -

I made tremendous progress with my coding and left only the last question I have in partial view the value of any other textbox How can I capture and move it to my current textbox? This is a simple code & lt; Script & gt; $ (Document) .ready (function () {$ ('# form0') Trigger ('submit', function () {$ ("# longituder"). Val () = $ ("# sese"). ();});}); & Lt; / Script & gt; Form 0 has a textbox with id. #sese And it always has a value, I'm trying to get that value in my text box of #longituder . This callback function needs to be done, as long as the text box #sese can not be found for the DOM, the trigger will not be found inside the event and takes a few seconds after coming to the page; Is there a form in which I can delay this section $ ("# longituder"). Val () = $ ("# sese"). Val (); Until .trigger has run away? this is incorrect $ ("#product") . Val () = $ ("# se...

Normalizing in SQL -

This is a simple homework question, but I do not understand the question in particular. Let's say I have an object with 2 fields: Intimate time speed I have a table and data that supports this object I want to make models, and I need to make tables scalable and generalized. I do not know what it means. I feel that I can create a table for this object, and add an ID to add another column, each entry makes it unique. Will this be a solution? The thing is that this object is so simple, that I am sure how generalization comes into play. You are right when you said adding an ID to make the listing unique. When you add that column, then it comes in the game.

html - Do @media queries still work on links when also using a:hover, a:visited, etc -

I have a stylesheet that has both queries on the media and one: hover, one: tour, etc. in one element and This is an element that does not work @ media queries apply but a CSS: hover and A: visited does not work. I am thinking that these elements can not work together or if there is an error in my code. Here's my code: #button {background-color: # 003794; Font-family: helvetica; font-weight: bold; Font size: 1.9em; Color: # 0045b9; Text-decoration: None; Text-Shadow: 0 pixels 5 pixels 5 pixels # 00266 9, 0 pixels 4 pixels 4 pixels # 002c78, 0 pixels 3px3px # 002E7A, 0 pixel 2 pixel 2 pixel # 00338a, 0 px1 pixels1 pixel # 00348b; } A: Visited {background-color: # 003794; Font-family: helvetica; font-weight: bold; Font size: 1.9em; Color: # 0045b9; Text-decoration: None; Text-Shadow: 0 pixels 5 pixels 5 pixels # 00266 9, 0 pixels 4 pixels 4 pixels # 002c78, 0 pixels 3px3px # 002E7A, 0 pixel 2 pixel 2 pixel # 00338a, 0 px1 pixels1 pixel # 00348b; } A: Hover {background-color:...

lazy evaluation - Lazily coalesce Options in Scala -

In reducing my priority, there are several ways to calculate the value. firstWay () second () + route () or A (third y ()) each of these has a option Gives. I want to "unite" them and get a option , which is the first some or none if all returned back None . Of course, if preva () returns a something , then I should not count the rest. What is the most idiotic (or at least reasonably readable) way to do this? Prior (). Or Else (sec () + route ()). The logic of algebra (ya (third y ())) or else has been evaluated. See.

Android new File(path) -

Why is not a file? What could possibly be the reason? string current PhotoPath = "file: /storage/sdcard0/Pictures/someFileName.jpg"; ... file f = new file (current PhotoPath); If (f == null ||! F.isFile ()) {// this gets executed} Did you try it? string filepath = environment .getExternalStorage directory (). ToString () + "/ Pictures"; String filename = "someFileName.jpg"; File f = new file (file path, file name);

c++ - Why would my matrix rotations be going backwards in OpenGL -

I am using a float 4x4 matrix class which I made back in the day. Now I have got into animation skinning. But by debugging my skeleton, I realized that my condition is correct for the interpolation, but the rotation is going backwards, if the person was going ahead, the animation consultants tend to bend but those tilt On the rotation going on in the opposite direction. I use IV calculations I did this earlier in DirectX, but am I doing something different between OpenGL and Direct X? I just want a link for one article or just explain some big difference between an angle of rotation or just an indication of why my rotation is going in the opposite direction I wonder if you are running in a problem, the fact is that the shader is looking for parameters, in opposition to that line head Column is key. To wit. You may need to move your matrix. Another issue may be assigned to your location, OpenGL is the right hand, so the screen in screen is negative. There is no othe...

java - Receiving a null pointer exception -

I have a class that sets an array. Another class enhances this square and uses the array described in a method to return any other array. When I do this I get an exception, but when I set the basic array, it works fine. Not sure what I'm doing wrong here Public Class Initial Grid {int iic, ioc, iman; Int NIC, NOC; Double mascic, masc, masman; Double Wallcom, Volok, Wallen, Wolpee; Double Radical, Radoc, RDP; Public IIMT []; Public Double Rod []; Public double volume []; Public Double Month []; Public Double Dema []; Public double [] radius (int nr) {rad = new double [nr +1]; For (int k = 0; k & lt; = nic; k ++) {rad [k] = radic * ((double) k / nic); System.out.println ("Radius in Shell" + K + "is" + Rad [k]); } For {int k = nic + 1; k & lt; = noc; k ++} {rad [k] = radic + (radoc - radic) * ((double - n - nic) / (noc - Nic))); System.out.println ("Radius in Shell" + K + "is" + Rad [k]); } For {int k = noc + 1; k & lt; = ...

java - How to return a char value from one method to another? -

This is what I have ... {public static zero main String [] args) {// variable declaration four letters; GetLetter (); Letter = ""; System.out.println (letter)} Public Fixed int getLetter () {string text; Four letters; Text = joppenpen.showsputdialog ("Enter a letter."); Letter = text.charAt (0); Println (letter); Return letter; }} I want to get user input from the method getLetter and move it to the main method where I can display it on the screen. What am I doing wrong here? getLetter () method should be returned type char no int . The reason for this is that you have assigned the local variable as letter type char . In addition, methods are called by the method (); No 'method' . Try the following code: public class YourClass {public static zero main (string [] args) // // declaration four characters; Letter = getLetter (); Println (letter); } Public static char getLetter () {string text; Four letters; Text = joppenpen.shows...

regex - Using Regexp in MySQL. Will it give an occurrence count? -

I have a VARCHAR (InnoDB table) and I want to count how many examples of strings [# ##] Or [## af] can be in the field in each line (to indicate that the placeholder for the integer, and the air force shows that a letter can be present from one letter to the limit). Regex \ [[0-9] + \] | \ [[0-9] + [AK] \] If a match is returned then returns 1, but I have not yet given the information whether the match within each record There is a possibility to return to the Reykjax. Is this possible? Ideally I want the result: Ozid | Text | Item_ count ------------------------------- 1 & lt; Blah & gt; 7 2 & lt; Blah & gt; 2 3 & lt; Blah & gt; 1 4 & lt; Blah & gt; 0 5 & lt; Blah & gt; 10 I do not know what the limitations or constraints of regex in MySQL can be in this regard. If this can only be done programmatically, then I would like to use a stored procedure to put it in the database context. Please note that my question is not about so...

r - replace decimal point from strings in entire column -

I am working with a column on a data set such that such a number: To run the code, icod9code 285.21 r comorbidities , I need to convert them to 5 digit numbers without decimal digits. Why should they look like this: icd9code 28521 59390 28521 v0481 Which functions can I use? Specifically, how can I get it to show 0 at the end of the number if it has only 4 digits, apart from this, how can I move with 'v'? Here is a vectorated solution: x

vb.net - FlowLayoutPanel remove background image and delete image file -

I am using the following code to remove all my controls inside FlowLayoutPanel: While Flow LayoutPanel 1 Control. Count & gt; 0 Dim controltoremove = FlowLayoutPanel1.Controls (0) FlowLayoutPanel1.Controls.Remove (controltoremove) controltoremove.Dispose () Application.DoEvents () to work in close while As it (I No one seems to see my control now inside my FlowLayoutPanel1 box), but once I get to this part of the code: My.Computer.FileSystem.DeleteFile ("C: \" WAMP \ www \ img \ "& Subitem (" id ") ToString.Replace (" "", "") and ".jpg") It tells me Is that image currently in use ?? ? Since I settled these controls (these images have been viewed as background image) should not I be able to remove the image file ?? I use this to create buttons inside the flowout panel: As an action in the form of an object for each subtitle New new image in the form of a new picture box as the new picture box; New w...

ajax - Struts2 url not hitting correct action -

I have written an Ajax call to call struts2 action, but to define its method by default, but defined There is no method for struts.xml. Please tell me how to create the URL in JavaScript to call the correct action with the method defined in struts.xml code: function showCustomer (str) { EmailRequest = create request (); If (emailRequest == faucet) {Warning ("Unable to make a request"); } Else {var emailValue = document.getElementById ("Email"). Values; Var Email = Escape (Email Value); Warning (email) var url = "Recover Password; Recovery Password? Email =" + Email; Alert (URL) Email request. EmailRequest.open ("post", url, true); EmailRequest.send (zero); }} Function showemailStatus () {if (emailRequest.readystate == 4) {if (emailRequest.status == 200) {if (emailRequest.responseText.match ("EamilIdExists")) {document.getElementById ("show") style .display = 'block'; } And {document.getElementById ("email...

sql - Joining three tables together -

Image
I have two tables that I was able to connect properly. I'm trying to get one-third in the table, even if there is no data in the specific year, I still want the value of zero or 0. My problem is that when I get involved in that table, I am getting duplicate records or no records are displayed at all Here's what I have tried: [In the fourth grade math achievement level] from the SELECT * M Inner Join [4th grade reading achievement level] R on M. Location = R. Location and M. Timeframe = Achievement Level] = R [Achievement Level] Join the official right [the fourth graders that run under the skilled reading level from the geographic location] Location = G Location and m.TimeFrame = g.TimeFrame where M. Location = 'Ohio' and M. Timeframe = 2011 desired result location | Achievement Level | Data | Geographical location. Data | Here's the timeframe that I I'm sure you leave a external outer left and no is not the right external participant : ...

Multiple JavaScript Onloads -

I am not a JS expert, so any help on this will be appreciated. I need to run on the page, which is the script below, first to prevent a white flash is a fix when the next iframes will load. The last part of the script will load an iframe based on the CSS media screen (different size iframe for different view ports). The problem is that when both are added, use an oload function and because there are two, only the last is being used and thus renders the first onload useless. How can I get these two to work? Code: & lt; Script type = "text / javascript" & gt; // Prevent Variable from Being Global (function () {var div = document.createElement ('div'), ref = document.getElementsByTagName ('base') [0] || document.getElementsByTagName ('script') [0] ]; Div.innerHTML = '& amp; shy; & lt; Style & gt; Ipham {visibility: hidden;} ; ref.parentNode.insertBefore (div, ref); window.onload = Function () {div.parentNode .removeChild...

java - How do I delay the program within a for loop without execptions? -

Image
I have to wait at the end of my loop before starting again, but I have searched and any other methods The program does not work for my program, moving the image from one side to the other loop looks like this: int xSize = ((int) tk.getScreenSize (). GetWidth ()); Int ySize = ((int) tk.getScreenSize (). GetHeight ()); (Int final = x = xSize - 128; lastx == 0; last x- = 50) {for (int i = 0; i and lt; 11; i + = 1) {int min = 64; Int max = ySize - 200; Int finalY = min + (int) (math.rendum) * ((max - min) + 1)); G.drawImage (Image3, Final X, Final, Image, Image, Image, This); & Lt; B & gt; // Wait here & lt; / B & gt; }} Yes, I've imported everything I tried try / hold , exceptions, and more but none of them works. How can I do so that my program will still work and will wait? Due to this line: g.drawImage (image3, Final, final, image, image, image, this); This is a swing or AWT GUI because you are portraying a graphics object (an important stateme...

using optionmenu in tkinter (python 3.3) -

I am trying to create a simple interface with the tanker (which I am now learning). Basically I have found that I can use the Options menu to get a drop down menu with some options (they are called OP1, OP2 and OP3). What I want is that how long this option is selected and can save it in the list which looks like this: [['OP1', 12.5], ['OP2' 15.35]] so that I can save it later on a CSV file, I do not believe in seconds for a few seconds because I can change it later, If this was the regular code interface I know that I can do something like this: start = time.time () a = input ("Enter to switch" Left ... ") end = time.time () b = (end-start) Or something similar, please tell me if you have any ideas and keep in mind I At Python 3.3. Update: I did this (definitely with a lot of Internet help): ex> from Taginer imports * Class MyOptionMenu ( OptionMenu): def __init __ (self, master, status, * option): self.var = StringVar (Master) ...

java - How to make Hibernate convert CLOB to a MySQL type -

In my code, there is a CLOB column in one area of ​​one unit square. It works well with Oracle, but when I try to use MySQL as a database, it looks like the Clip type creates a problem because MySQL does not support CLOB is a console error 13:35:27 Error [Main] org.hibernate.tool.hbm2ddl.SchemaUpdate You have an error in the SQL syntax; Check the manual that matches your message's SQL Server version for the correct code that has the 'CLOB, long message-related text, sender e-mail account varchar (255),' line 7 [main] To use the Java code snippet: @ column (length = 4000) Private string message subject; @column (columnDefinition = "CLOB") private string message body; And here is my entity & Lt; Property Name = "Data Sources" & gt; & Lt; Bean square = "org.springframework.jndi.JndiObjectFactoryBean" & gt; & Lt; Property Name = "jndiName" value = "jdbc / cggruntime" /> & Lt; / Bean ...

Geb: Waiting/sleeping between tests -

Is there any way to wait for a set amount between trials? I need a solution to compensate for server intervals When creating records, it takes a while before searching for records in my environment. In the following code example, how do I wait 30 seconds between the first exam and the second exam and there is no waiting time between the second test and the third test? class Expands MySpec GebReportingSpec {// First Test Df "Should create a record named My Record" () {given: CreateRecordsPage: name_field = "MyRecord" and: saveButton.click () Then: IndexPage} // Second Test Def "should enter my record name" (given) {given: for searchPage when: search_query = "myRecord" and: searchButton.click () then: // So far this part Not shown, but will appear for "myRecord" on the results page // Third Tess TDRF should "delete my record name from record" () {// delete You probably do not want to wait for a set time - this is your t...

database - how to see a difference between entity and a column -

Sometimes I am starting to create an article when I am looking at the difference between an entity and a column. I do not know when it should be a unit or column. For example, in some games if you have a user and the user can play it himself or he can play in the group. Do you have those two different entities, users and GroupUser apart from, for example if the user level, The situation is there and the badges they earn are part of the game. Will these be the institutions or will they be in only one unit which will be part of the user? object can be a person ( Such as students), location (such as the name of the cell), objects (such as books), abstract concept (e.g. course, order) Can be displayed in your database and can generally become your table in the database . Columns on the other side are attribute (s) of entity . , badge , PlayStatus (the value may be individual or group) Your badge however a The column can be such that ...

mysql - search query count 1 field group by name -

I have a table that I am using in my query, but I think I can not find the expected result Maybe my query is wrong. table attempt | ID | Name | Results | 1 | Paul | Passed | 2 | Paul | Passed | 3 | Paul | Unsuccessful 4 | John | Unsuccessful 5 | John | Passed should be the result name | Passed Unsuccessful Paul | 2 | 1 | John | 1 | 1 | But my results are 4 lines: I display my name twice. This is my query SELECT name, SUM (result = "pass") AS passed, SUM (result = "failed") AS FROM failed results only remove the result SEM (result = "failed") as SEMs (result = "pass") as the cause in the name of the efforts by the Group of SAP (result = "pass")

c++ - Can't access base class field -

मैंने ऐसा आधार वर्ग बनाया है: #include & lt; cstdint & gt; # शामिल & lt; इटरेटर & gt; # शामिल करें & lt; cstdint & gt; #include & lt; vector & gt; # शामिल करें & lt; initializer_list & gt; वर्ग PSBaseObject {protected: inline std :: int32_t * size_ptr (शून्य * डेटा) {रिटर्न reinterpret_cast & lt; std :: int32_t * & gt; (डेटा) - 1; } इनलाइन कंट्रास्ट std :: int32_t * size_ptr (शून्य * डेटा) const {रिटर्न reinterpret_cast तब मैं PSObject (नहीं PSBaseObject ) से इस तरह से प्राप्त करता हूं: टेम्पलेट & lt; typename टी & gt; वर्ग PSArray: सार्वजनिक PSObject & lt; std :: vector & lt; T, कस्टमअेलोकेटर & lt; T & gt; & gt; & gt; {निजी: टाइपफीफेड स्टडी :: वेक्टर & lt; टी, कस्टमअलोओकेटर & lt; T & gt; & gt; underlying_type; सार्वजनिक: typedef std :: size_t size_type; Typedef std :: ptrdiff_t अंतर_प्रकार; टाइपिंगफेड टी * पॉइंटर; टाइपएफ़ीफ़ कॉन्स्ट टी * कॉन्स्ट_ पॉइंटर; टाइपिंगफेड टी एंड am...

c# - Storing plain text password in session .NET -

"itemprop =" text "> I use WSDL (service is SpiraTest) to work on another .NET application to connect to another service I am I have to call the authentication method in each request. The problem is that the service provides a method to authenticate only with the username and plain-text password. What would be a good way to save user names and plain passwords? I'm considering putting them in a session if I have no better option? Login to access the application with the user identity and I use the same credentials to contact the remote service. Users log on only once, but each time they navigate through the pages that need data from the remote service, I use the credentials to login while it is required that the user be certified. I am not familiar with the ASP.NET session, but I am assuming that they are similar to PHP sessions . In that case, the actual session data is placed in one. If you are trying to see this password to your users, then I thin...

c++ cli - Visual C++ GetCurrentDirectory() Not Working Properly During Startup -

The program works fine with a problem GetCurrentDirectory (); When it is used during start-up, it shows the directory as "c: \ documents and settings \ administrator", which is the actual application directory. If you use the application to close it and run it again it returns the proper directory after writing the current directory in a different file and then without reading it how can you solve this problem. I will use GetModuleFileName () and then search for the last "\", checking the string Divide by GetCurrentDirectory (), if I do not match, then I will set the stepline string as the current directory by using SetcurrentDirectory ()

xcode - What is the "archived-expanded-entitlements.xcent" file in IOS app? -

संग्रहित-विस्तारित-एंटाइटेलमेंट.एक्सेंट फ़ाइल क्या है? आईओएस आवेदन में इस फाइल का क्या इस्तेमाल होता है? असल में, xcent फ़ाइल की एक सूची है ऐप ने अनुरोध किया है Xcode 6 के बाद से, एंटाइटेलमेंट्स सूची को ऐप बंडल में एक्सेंट फ़ाइल के रूप में भी एम्बेड किया गया है। यह फ़ाइल महत्वपूर्ण है जब यह ऐप स्टोर में सबमिट करने के लिए आता है और त्रुटियों को प्रावधान करते समय अधिक उपयोगी त्रुटि संदेश प्रदान करता है। यदि आप अधिक जानकारी चाहते हैं तो कोड हस्ताक्षर और प्रावधान पर एक अच्छा गहराई लेख है।

android tablelayout expand row height to listview contents -

I have a table layout for a form of two columns - field name and field value. In some cases, the field value is a checklist. I like the line height of the "Checklist" row to expand, so I can see all the items in the list view. The following code in a small vertical scroll view, how do I raise the height of the line in the same column as the first field name so that I can see the entire list? (The frame layout in the table cell is such, so I can overlay an icon or text). // Table Layout Table = FindVBIID & lt; Table layout & gt; (Resource.indexormal); // A new table row tableRow line = new TableRow (this); // Add Field Name (Left Column) TextView rowName = New TextView (this); RowName.Text = field.Name + ":"; Line name Gravity = gravity flogs Wright | GravityFlags.CenterVertical; TableRow.LayoutParams tableLayoutParams = New TableRow.LayoutParams (LinearLayout.LayoutParams.FillParent, LinearLayout.LayoutParams.FillParent); Table layout paragraph Grav...

ios - Why is Web Inspector showing me "no inspectable applications"? -

background My company recently modified app development is. While the development and Q / Aing on Android were relatively painless, iOS is a pain on the other side. The task is included by looking at our app's page source (which has a custom browser) I have heard that the web inspector is a great tool, so I went with it The problem First of all, Web Inspector is able to detect custom browser first. But quite often, the web inspector's menu gives a "no invisible application" prompt It happens with the exact version of the app that was previously used. No triggers; Yesterday Web Inspector was working with Custom Browser, and then stopped working after a few hours (during which I disconnected and added the iPhone again). I did not understand despite breaking my head for a week. Comments I have iPhone 4S running iOS 7.0.4. Safari 7.0 in Mac Mini In the phone option Web Inspector is turned on in the iPhone menu Javascript on the ph...

ios - Capture off screen content as UIImage in iOS7 -

I have a UIView inside the UIScrollView that is much more than the screen. My code looks like this UIView * contentView = [[UIView alloc] initWithFrame: CGRectMake (0.0f, -500.0f, 320.0f, 2000.0f)]; [_scrollView with view: contentView]; and I want to capture an image of the contents // screen capture UIGraphicsBeginImageContextWithOptions (contentView.frame.size, NULL, 0.0f); [Self.view drawViewHierarchyIncrease: contentView.boundsScreenUpdates: no]; UIImage * viewImage = UIGraphicsGetImageFromCurrentImageContext (); UIGraphicsEndImageContext (); The above code works on simulators but not on the actual device (iPod 5G Gen) If I capture scrollView instead of contentView, it works fine Does, but only what is captured on the screen will be captured. Any ideas? Use ScrollView Content Offset . To get a frame of view, which is currently on the screen

R minimize absolute error -

यह मेरा सेटअप है obs1 & lt; -c (1,1,1) obs2 & lt; -सी (0,1,2) ओब्स 3 & एलटी; -सी (0,0,3) पूर्ण त्रुटि & lt ;- फ़ंक्शन (ऑब्स, एक्स) {रिटर्न (योग (एब्स (एब्स-एक्स))} उदाहरण: & gt; निरपेक्ष त्रुटि (obs2,1) [1] 2 अवलोकन के एक यादृच्छिक वेक्टर के लिए, मैं एक न्यूनतम को खोजने वाला चाहता हूँ, x , जो पूर्ण को कम करता है अवलोकन मूल्यों और सभी x के एक वेक्टर के बीच त्रुटि उदाहरण के लिए, स्पष्ट रूप से तर्क जो कम करता है absoluteError (obs1, x) x = 1 है, क्योंकि यह 0 की एक त्रुटि में परिणाम है। मैं अवलोकन के एक यादृच्छिक वेक्टर के लिए एक न्यूनतम कैसे खोजूं? मुझे यह कल्पना थी कि यह एक रैखिक प्रोग्रामिंग समस्या है, लेकिन मैंने कभी भी आर में एक को लागू नहीं किया है। ओड का मध्यक पूर्ण त्रुटि के लिए एक कमांडर है निम्नलिखित एक स्केच है कि कैसे यह साबित करने का प्रयास कर सकता है: एन अवलोकन के एक सेट का मध्य, आविष्कार, मी Obs और m f (obs, m) के बीच पूर्ण त्रुटि को कॉल करें। केस n अजीब है: एफ (ऑब्स, मी + डेल्टा) का विचार करें जहां डेल्टा कुछ गैर शून्य संख्या है।...

list - How to get user input of a grid of characters in Python -

I am very new to Python, so I do not know much about its syntax. So I want to give the number of rows and columns of a grid as an input, and then input a grid of rare characters with the number of rows and columns. For example: If I have an input: 3 4 XOXOXXXXOOOO I want to print an array like this: 'X', 'X', 'X', 'X', 'X', ['x', 'o', 'x', 'o'], ['x' o ',' o I have so far: line, column = [int grid [i], 'o', 'o']] Append ([]) grid [i] = raw_input (). Split () for (x) raw_input in x () Split ()] Grid = [] I'm getting the error: The list index is out of range I'm not sure what I'm doing wrong Also assistance will be appreciated. The problem is a blank list. You can not reference grid [i] where i is out of range. attach to grid , in this way: for the category I (n): # 0 contained grid .append (raw_input (). Split ()) grid [i] ...

javascript - ZeroClipboard not working on mobile version of the site -

I have implemented xerochlord functionality on our site - I am using Drupal-7 It is working fine on the desktop version but the mobile version of the site is not working. I've put the following code in the footer: & lt; Script type = "text / javascript" & gt; Copy_coupon_footer (); Function copy_coupon_footer () {var divArray = document.getElementsByClassName ("unlock_best_coupon"); (Var offer_type = divArray [i] .getAttribute ('data clipboard-text'); // alert ('offer_type') for (var i = 0, len = divArray.length; i & lt; len; ++ i) + Offer_type); Try {var id = divArray [i] .getAttribute ('id'); Var client = new zero copyboard (document.getElementById (id), {moviePath: '/ moviePath'}); Client.on ('load ', Function (client) {client.on (' complete ', function (client, args) {try {var url = this.getAttribute ("href"); var coupon_code = url.split (' & amp; amp; c = ') [1] .spli...

osx - How to convert the CODEC : AAC to AIFF in cocoa application? -

I am exporting the audio file (AIFF). AVExportSession using MOV Movie format is in AAC codec format. I would like to change and write audio file in AIFF codec format (i.e. aac codec AIFF). I have tried using AVExportSession, but this is not useful. Please give any advice to the API for implementing AIFF conversion from API AAC.

regex - Running a java program in a loop in Unix -

I have a Unix script where I get the following arguments from the command line: Start date = $ 1 endDate = $ 2 I want to see both dates whether they are in yyyyMMdd format or not? How can I do that? If the format is wrong, then I want to exit the program. I am running a script batch program in a script: java commandLineJobRunner jobConfig.xml MyJob currDate = $ currDate In fact, I am passing a job parameter ie myJob from spring batch job I want to loop up from the program like program currDate = startDate How do I get it? For all the dates between code> start date and endDate should be run. Div> yyyMMDD in the startdate in the "text"> Usage: [["Startdate" == [0-9] [0-9] [0-9] [0-9] [0-9] [0-9] [0-9] [0-9]]] & Amp; Amp; You can use it to get the next day from $ startDate : next day = 'date' +% Y% m% d '-d " $ StartDate next day "`

The process cannot access the file 'D:.txt' because it is being used by another process in c# -

I have a PDF file that I am trying to write and write in a text file by using it in C # . Now I have created this text file and trying to write my PDF values ​​here, but it is giving the following error. The process 'D: \ 9008028901.txt' Can not be used because it is being used by another process. Here my code c # .. .. Public Bull ExtractText (filename, string outFileName in string) {StreamWriter outFile = null; Try {// Create a Reader for the PDF File PDF Reader Reader = New PDF Reader (EnFileName); OutFile = File.CreateText (outFileName); Outfile = New Streamer (Outfile Name, Wrong, SystemText.ed Encoding.Utf 8); Here my code is being written in the text file, but I am not able to write any of it. My text file is empty Please help me .. file. Create Text method A StreamWire object that opens the file. It has not stopped and then you try to open the file again with the new stream call and therefore run it in the file in the usage error. To fix this,...

Finding the Control associated with ASP.NET validator using JQUERY or simple Javascript -

I have pages with some text boxes and their related validated (ASP.N.T. Vedic) pages. And obviously I can validate each validator from javascript by calling the function Page_ClientValidate ("myvalidators") Where myvalidators are the name of my validators group Similarly I can validate a specific validator using the validator (Page_modiatrics [0]); who only checks that specific validator But my question is, how can I get the control (textbox) associated with that specific verifier or its Can i find out This means that there is a task that can return all control with a failed verifier. Or more explicitly, the function should return the collection object of control where the verifier has failed to support. More details added My scenario is to highlight the parent disk of the textbox where the verifier was unsuccessful. So if I get a textbox control object or control array, then I can take every single parent unit out of it and highlight it. Th...

R find angle between two lines, when have slope and intercept coefficients -

Image
मैं timeserie: एक्स 4557 9940 9855 9894 10142 9501 9532 9229 9169 9214 9347 9176 8951 9344 9873 9970 9139 9420 9476 9205 9271 8632 8730 9336 9150 9601 10012 9841 9951 9222 8799 9316 10087 9677 9154 9019 10549 9629 9131 9560 10246 10982 11748 9054 8690 9923 टीटी के & lt; -1: लंबाई (एक्स) साजिश (एक्स, xaxt = "n" type = "एल", xlab = शून्य, ylab = शून्य, col = "royalblue2", LWD = 2.3) मैं रैखिक रुझान जोड़ना चाहते हैं: फिट & lt; - एल एम (एक्स ~ टीटी) सह & lt; - coef (फिट) सह (अवरोधन) टीटी ८,९४०.२३४७८ २१.२७,०३१ और फिर मैं के बीच का कोण खोजने की जरूरत है दो लाल लाइनों: abline (८,९४०.२३४७८, २१.२७,०३१, col = "red", LWD = 2) abline (८,९४०.२३४७८, 0, col = "red", LWD = 2) मैं इसे कैसे प्रबंधित कर सकता हूं? इस प्रकार मेरा ग्राफ है: 0 , की गणना के बाद से "> इस लाइन और २१.२७,०३१ की एक ढाल के साथ एक के बीच के कोण बहुत आसान है: atan (२१.२७,०३१) * 180 / अनुकरणीय # [1] ८७.३०,८२८ रेखा और एक्स अक्ष ...

Zendesk and Salesforce sync -

If I'm trying to sync contacts / leads with Zendesk using Salesforce, get me the answer in this way I'm not sure about clearing this problem. Hi user admin, There was a problem syncing with Zendesk, error details: insert failed. The first exception to line 950; First error: INVALID_EMAIL_ADDRESS, email: invalid email address: & quot; Legal & quot; @ Acsports.com: [Email] 1 of 1000 records successfully synchronized. Thank you The answer is correct in the error message. The email address field that you are trying to sync is "legal[space]"@acsports.com "which is not a valid email address.

Transform a PHP array to a Javascript array -

Actually I used to change these codes: echo" & lt; script & gt; "; Echo "var img_array = new array ();"; Forex Currency ($ img_arr $ img_url) {$ url = (string) $ img_url; Echo "img_array.push ('. $ Url.' '' '); ";} Echo" console.log (img_array); "; echo" & lt; However, errors occur (firefox debug window): error : Endless string source source file: http: //127.0.0.1/CubeCart/index.php?a_a = Account line: 1, column: 42 source code: var img_array = new array (); img_array.push ('http: //gtms01.alicdn.com/tps/i1/T1mL3LFhhhXXaCwpjX.png But after I checked the html page souce file, the script is shown as: . with which I do not see anything is wrong Your own php One of the items in the array has a new line. Use it: echo "& lt; script & gt;" echo "var img_array = new array ();" foreach ($ img_arr $ Img_url)) $ {$ Url = (string) $ img_url; Echo "img_array.pu...

c# - How Model passes data from client to server in Asp.Net MVC3? -

When we use form , then it can be used by the view state in the ASP.NET client Transfers data from So how does the server transfer data from ASP.NET MVC3 into the data client using the model? What is the difference between them? Your question is not clear if you want to send the model data to the controller from the view, then you can call the AJAX Which can post data to the server.

android - change lockscreen settings on a particular time -

The concept of my personal app is: I can set up every day (alarm app) For example, TimePan: Every Monday, 13:00 to 16:00, my lock screen is enabled. The reason for this is that I do not like the lockscreen after my workshops, but I like when I work. Now I have done some research and you need to do it with Broadcasters and Alarm Manager so that the app did not last the entire day (correct me if I'm wrong). I can not find in the developer guide how to change the lockscreen setting. Some people on the internet say that you need to root the phone, but I do not like the rooted part. Is there any way to solve this problem without phone? I think I got the solution: / P>

javascript - flotr2 chart showing blank screen on iOS -

I want to display the flotr2 chart on my iOS device. I have created UIWebView and tried to call index.html page but it is showing me blank page I have also added the flotr2.min.js file to my project. Here is my HTML code: & lt; Html & gt; & Lt; Top & gt; & Lt; Style type = "text / css" & gt; Body {margin: 0 px; Padding: 0 pixels; } # Containers {width: 600px; Height: 384px; Margin: 8 PX Auto; } & Lt; / Style & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div id = "container" & gt; & Lt; / Div & gt; & Lt; Script type = "text / javascript" src = "flotr2.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; (Function () {var container = document.getElementById ('container'), start = (new date) .getTime (), data, graph, offset, i; // timing a sign curve ion A. Chetan (t) { Data = []; Offset = 2 * Math. PI * (T...