Posts

Showing posts from January, 2011

Swagger with ServiceStack does not send elements to server on POST -

I have a simple session object that looks like this [root (" / Session ", Summary =" Creates security session ", Notes =" Notes related to some sessions are here ")] Public Season sessions: Irrational & lt; Season sessions & gt; {{ApiMember (name = "domain name", description = "security domain", parameter type = "path", datatype = "string", isRequired = true}] public string domain name {get; Set; } [Apemail (name = "username", description = "user name", parameter type = "path", datatype = "string", iSaeFire = true)] public string user name {received; Set; } [Apemail (name = "password", description = "password", parameter type = "path", datatype = "string", iSaeFire = true)] public string password {get; Set; }} When I go to the UI swagger, I can see the element However when I enter the element and now try it, then I see...

c - making two struct pointers equal -

So suppose I have a straight pointer called A and struct B: Struct example {// variables and pointers} * A and then I have an indicator of the datatype structure example: struct Example * B = malloc (size (structure example)); If I do A = B; Does this arithmetical operation mean that whatever structure P indicator B is indicating what will be the indicator indicator also indicating? I get it from primitive datatype and pointers, but the structure confuses me because they have variables inside them. ap set and everything Yes, with the following lines of code, A should point to A, B was pointing. / * Define a straight example datatype * / straight example {// variables and pointers}; / * Structure For example, declare A and B as Pointer * / struct example * A; Structure Examples * B; Allocate memory equal to the size of the structure / example and store the address in B * / B = malloc (sizeof (struct example)); / * Copy the address from B to A, so that the...

JQuery one click event for multiple element events -

मेरा प्रश्न इस से संबंधित है: हालांकि, जब मैं करता हूँ: $ ('class1, .class2') क्लिक करें (फ़ंक्शन () {some_function ();}); मैं हमेशा उसी ऑब्जेक्ट के साथ एक ही फ़ंक्शन का उपयोग करता हूं। उदाहरण के लिए, यदि मैं निम्नलिखित दो कथन को समेकित करना चाहता हूं: $ ("। Class1") क्लिक करें (फ़ंक्शन () {$ ("। Classer1")। स्लाइडटॉगल ("धीमी" );}); $ ("Class2")। क्लिक करें (फ़ंक्शन () {$ ("। Classer2")। स्लाइडटॉगल ("धीमा");}); "पोस्ट-टेक्स्ट" आइटमप्रॉप = "टेक्स्ट"> आप ऐसा कर सकते हैं: $ ("। Class1, .class2")। क्लिक करें (फ़ंक्शन () {$ ("। क्लासियर "+ $ (यह) .attr ('class')। Substr (-1))। स्लाइडटॉगल (" धीमा ");}); जब तक आपके द्वारा क्लिक किए जा रहे तत्व केवल एक वर्ग के होते हैं यह तत्व को पूर्णांक खींचता है और इसे .classer पर जोड़ा जाता है। इसलिए .class2 पर क्लिक करने से .classer2 पर टॉगल ट्रिगर होगा।

osx - Why does "read -t" block in scripts launched from xcodebuild? -

I have a script that creates a FIFA and launches a program that writes the output to FIFO. Until reading out of the program, I read and parse the output. MYFIFO = / tmp / myfifo $$ mkfifo "$ MYFIFO" MYFD = 3 eval "exec $ MYFD & lt; & gt; $ MYFIFO" external_programm " And "$ MYFD" 2 & gt; And "$ MYFD" & amp; EXT_PID = $! While kill -0 "$ EXT_PID"; Read-t1 line and lt; & Amp; "$ MYFD" # $ Made with LINE This program is still running, while this fine reading input works, but it looks like timeout reads Is not paid attention, and after hanging out of the external program the call is hanging. I have used successfully reading from other scripts from time to time, and a simple test script which exits the external program time out correctly, what am I doing wrong here? EDIT: It seems that the read -t function is expected when I run my script from the command line, but when I run it as part of a...

web applications - ASp.Net GridView Updating using a stored procedure -

I have read many sites on this, if you call some code then there is no example, for example How it's been designed (design view is typed versus) or just want to use simple selection and update statement. I have a gridview I'm using this code from a stored proc. Now I want to edit the data. I do not have anything set in gridview properties through the design view (datasource, column, etc.) My question is how can I set it to edit and use to send SAP back into the database? Do I now manually create columns, since I have decided not to set the property in Design view? Is it better to set the property in the properties of the design and go on that path? I started this way, but when there were problems updating with a SP. I think that in designer vs. this is entirely confusing to me in code thing. I started adding Row Admit, Ro Commands etc. to HTML and c #, but whenever I do not see the edit / cancel on the webpage to run it. Learn how to use ObjectDataSource to m...

java - GWT RPC: Is it secure to send plain-text password -

I have a question about how to send a password to the server from the GWT web app on the wire. My client talks to the server using HTTPS I understand that GWT RPC uses HTTP post to communicate, so I think that sending a plain-text password using GWT RPC Okay for Am I wrong? Is there any other option for securely sending passwords between GWT client and server? Many thanks No problem because you can use HTTPS Are there. If you have a narrow edge in your mind then you can send the wire like password..card number in a safe way this is a byte array key (only you know ) To encrypt your strings. Here's one, but not at all, but here's something related.

About pointers in C -

I have started reading some articles about pointers in C and I have found an example that I can not understand I am here. / P> The example is here: Here it is: We see a slightly different problem. We want to have a two-dimensional array, but we do not need the same length of all the rows. What we do, declare an array of indicators. The second row given below declares A as an array of pointers. Each indicator indicates a float. Here is some applicable code: float linear a [30]; Float * A [6]; A [0] = Linear A; / * 5 - 0 = 5 elements in the row * / A [1] = Linear A +5; / * 11 - 5 = 6 elements in the row * / A [2] = Linear A +11; / * 15 - 11 = 4 elements in the row * / A [3] = Linear A +15; / * 21 - 15 = 6 element * / a [4] = Linear A +21; / * 25 - 21 = 4 element * / A [5] = Linear A + 25; / * 30 - 25 = 5 elements * / A [3] [2] = 3.66; / * 3.66 for Linear A [17]; * / A [3] [- 3] = 1.44; / * Linear A [12]; Negative indices are sometimes useful, but avoid using them as much a...

tic tac toe - Tic Tac Toe Game (Java): finding a tie game -

To make a tic tac toe game for my class, I have all other ways right and the game works by then Unless there is no draw. The board is a 2D array that represents the Tic Tac toe toe board. Whether the board is completed or not, it is the complete method to try and view: public boolean full () {bullion full = false; For {int i = 0; i I know that this does not work, I could not really think of any way to do it. Anyone have any ideas? You will have to break out of loops (or withdrawals) when you find out that the board is not complete. public boolean completion (for (int i = 0; i & lt; 3; i ++) {for (int j = 0; j & lt; 3; j + +) {If (board [i] [j] == '-') {return false;}}} be true;}

node.js - Bottleneck with sockets approach? -

The idea of ​​creating a real-time app where users can collaborate to solve this type of problem is a node. Js + socket.io found I hear from other developers that my server will give users an obstacle to the number of sockets. If I have hundreds of users who support at the same time, then the number of open sockets is over And the users will not be able to connect. Is this a legitimate concern? Update: Also like the note I'm looking to use SockJS instead of Socket.io is one of these libraries besides For hundreds of users I do not think this is a matter of concern. As you think there is a consistent connection between the socket client and the server and both parties can start sending data at any time. Keeping them open, there is no problem in handling the load in the context of the sender / second. Socket.io can easily handle up to 1000 concurrent connections. But it will fail if he is sending more than 8-10k messages per second. You will hit the load barrier be...

objective c - How can i add a button to google maps marker info window on ios? -

I've added Google Maps SDK for iOS for my iPhone app, and I have some custom markers clicked In the info window title, how can I add a button in this info window so that it will go to the newly opened page? Now I have tried to solve this problem with this post, it does not give me an error, but it will not work. This is what I want my result: You linked The answer to the question shows the code for the use of the map, so it will not work with Google Maps SDK for iOS. How to return a custom view with Google Maps SDK for iOS. See this question: However, according to this question, it looks like What is shown is that a view of the scene can not be a real scene, which can limit that view: Simply locate the tap on the info window and click > / P> P>

arrays - Making every variable in this code Dynamic Visual Basic 2010 -

Sorry for the long piece of code. In a game I am designing, I started this checkbox.checked code if the statement is currently duplicated by clicking 5 times for each box. In each box game, players are equal to a card within the hand I want to know what I can do to make it more dynamic. I.e. cardcackbox 1 Check object / method as mentioned above the code is repeated 5 times, because I have 5 existing checkboxes. There is a way when I click on a check box and hit it like CardCheckBox2.checked = true, CardCheckBox2.checked = true, press the play button once I understand how to place an array or check box in either archive To make that part dynamic, I can finally start making the rest of the code dynamic, because I think the process of creating dynamic label code will be similar to the checkbox etc. I as dim CardCheckBoxArray () checkbox = {CardCheckBox1, CardCheckBox2, CardCheckBox3, CardCheckBox4, CardCheckBox5} modular levels deployed, Form_Load the process, and also Play...

php - show unique links from array -

I have a function that shows a random banner from the array: // func php Function rand_rek ($ rek_array) {$ numberOfBanners = count ($ rek_array); $ NumberAffancers = $ numberof banner-1; $ Random Banner = Rand (0, $ numberedBankers); $ Rek = $ rek_array [$ randomBanner]; $ Rek return; } I have an $ reklamas array, which has 3 banners: // ads.php $ reklamas = array ($ Rek1, $ rek2, $ rek3); If $ _GET ["noa"] is not correct, then I want to add more banners to $ reklamas array: if (! Isset ($ _GET) ["noa"])) array_push ($ reklamas, $ rek_adc1, $ rek_adc2, $ rek_adc3, $ rek_adc4); And I want to display a random banner X bar: for ($ i = 0; $ i ; $ banneri; $ I ++) {echo rand_reck ($ reklamas); } Problem: They can be repeated multiple times because they want the array ($ rek1, $ rek2, $ rek3); , while these Array_push ($ reklamas, $ rek_adc1, $ rek_adc2, $ rek_adc3, $ rek_adc4); Each can be shown only 1 time. The function is in rand_rek...

gwt - Add a chart to -

एक RPC के बाद मैं एक विशिष्ट गैर- gwt- उत्पन्न div को DOM के माध्यम से एक चार्ट को स्थानांतरित करना चाहता हूं। अंतिम कार्यक्षेत्र पैनल सामग्रीहोम = नया वर्टिकल पैनल (); // ... सार्वजनिक शून्य पर सफलता (स्ट्रिंग परिणाम) {यदि (परिणाम == रिक्त) {contentHome.add (नया HTML ("सर्वर से सामग्री लोड नहीं किया जा सका।")); वापसी; } ContentHome.getElement ()। SetId ("इनर"); ContentHome.add (नया HTML (परिणाम)); तत्व एल = DOM.getElementById ("जो भी"); LineChart एलसी = नया लाइनचिर्ट (); el.appendChild (lc.asWidget () getElement ()।); // & lt; - यह सामग्री काम नहीं करता हैहोम.एड (lc.asWidget ()); // & lt; - यह काम करता है}}); किसी तरह lc.asWidget ()। GetElement () केवल रिटर्न & lt; Div & gt; & lt; / Div & gt; अगर मैं सिर्फ सामग्री के लिए विजेट जोड़ता हूं मुखपृष्ठ यह काम करता है। चार्ट प्रदर्शित किया जाता है। अगर कोई इस पर मेरी सहायता कर सकता है तो मुझे प्रसन्नता होगी संपादित करें: यह भी कोशिश की : contentHome.getEle...

c# - 2 Lists of Different Length used to Create 3rd List -

I have a list that is similar to the structure (the data will be in the letters): | A | B | C | D | E | F | G | I also have another list: | A. B E G. I want to create a third list which is the same length as before, but in the other columns there are names named "null", which are not present in the second list, like: | A. B Faucet Nool | E Faucet G. How can I get it? You can do something with rows: var List1 = new list & lt; String & gt; () {"A", "B", "C", "D", "E", "F" "G"}; Var list2 = new list & lt; String & gt; () {"A", "B", "E", "G"}; Var list3 = New list & lt; String & gt; (); Int j = 0; {Var item = list1 [i] for (int i = 0; i & lt; list1.Count; i ++); If (item == list2 [ja]) {list3.Add (item); J ++; } And {list3.Add (null); }}

mysql - Sql select query help needed -

मेरे पास मेरे टेबल पर तालिका तालिका है: यूज़रनेशन नाम varchar (16) नहीं नल परिचय_वन varchar (16) NULL मेरे पास डेटा की 3 पंक्तियों का पालन करें: यूज़रनेम Introduce_van Test1 NullL Test2 Test1 Test3 NULL अब मैं सभी उपयोगकर्ता नामों को परिचयबेस में नहीं है और परिचय I_Van का मान नल है। मैंने इसे इस एसक्यूएल के साथ करने की कोशिश की: उपयोगकर्ता नाम से चुनें उपयोगकर्ता नाम जहां उपयोगकर्ता नाम नहीं है (SELECT introdu_van FROM anmeldelden WHERE introduce_van! = 'NULL') यह क्वेरी देता है: इसलिए मैंने सोचा कि अगर मैं जोड़ूंगा: और introduce_van = 'null' P> यह सिर्फ टेस्ट 3 लौटाएगा। लेकिन यह 0 पंक्तियों को लौटाता है। मुझे यह पता नहीं लगा कि कैसे मेरी चुनिंदा क्वेरी को ठीक करने के लिए यह सुनिश्चित करता है कि यह केवल टेस्ट 3 (न Introduce_van में और Introduce_van NULL होने में। ओमेओन इस प्रश्न से मेरी मदद कर सकता है? क्या आपका मतलब है "अब मैं सभी उपयोगकर्ता नाम चुनना चाहता हूँ Introduce_van या में परिचय के_वेन का मूल्य नल है।...

Matlab NQueens Algorithm Recursion -

For an assignment, I had to use Metlab and Recurs to create an enucleation algorithm. So the way I set it up, I have 2 helpful tasks, it is valid, and for a recursive quinn test, which removes the vacancy of an MXM board or removes the queen and adds one Or removes the queen from every possible move. For space I have removed the add function from the recursive quinn function, but it does all this, which adds or decreases in 1 in 8 directions. The main problem I have is that my solution is in the NQF function, if no solution is found in the next line, then it is getting to go to the next column. I have removed my steps from 6 things: 1) Keep a queen in the first line 2) Put a queen on the next line in the next line 3) Repeat the two lines until there is no valid placement for the line. 4) Remove the queen from the last line 5) Place the queen in the next valid place row 6) Repeat step 1-5 until all queues do not have a queen (I have not coded in this step) Funk Conn...

javascript - Play/Stop button with Jquery Slider -

I have to embed the jquery slider in my webpage, given that I can be embedded easily, the problem is that When I click the play / stop button in front of the slider, then I have to play / pause the slider How can it be done in JS / JQ The video players should proceed as 1/2 seconds (make me video player Do not need , Just try to explore my problem). How can this be done? I do not know what you are saying but I will try something ... The jquery slider can be disbled, this is an option: You can reset it by setting the value to 0 in fact at the top of the slider Click on the Play / Pause button, you can jquery to stop event bubble: If you want to change the value program and the user will be able to change it differently Ncna to: hope that this assistance

php - Is there a way that the client can see what's in $_SESSION? -

I have to put some important data into PHP in the $ _ session variable, and know that this The data will be safe. Is a client able to see information inside this $ _ session / ? Does any security effect in storing sensitive data within a session? In fact, you should take action to make session more secure .. 1) Disable session ID by URL only to session ID, and use session ID by session ID url. 2) Set session_says_path to a new location outside your public index. If you are on a shared host they can not use session injection to look at their session. Better use the database as session handler. 3) Disable the trace, track, headers, of your webserver HTTP methods, if an attacker has some Java, Flash or AJAX user http cookie It could also be stolen. 4) The lock session on the IP user or some type of fingerprint ... 5) Upgrade session_id to make session IDs brighter more difficult on all requests

How to convert to emotions from post title in wordpress? -

सामग्री एडिटर वर्डप्रेस में, मैं : , ;) / कोड>, : ( ... लेकिन शीर्षक में मैं भावनाओं को परिवर्तित नहीं कर सकता, कैसे विचारों के लिए? "post-text" itemprop = "text"> आपको अपना शीर्षक प्रदर्शित करते समय फ़ंक्शन का उपयोग करना चाहिए। the_title () का उपयोग करने के बजाय, का उपयोग करें: कन्वर्ट_स्मिस्ट्री गूंज (get_the_title ());

Highchart's gauge with gradient plotband -

I am trying to use high gauge. Is there a way to set up plot bands on a discounted gradient? If the price of my gauge is 0-100, then I want the plot band to be red to 0 to yellow and green on 100 to 50. I thought that I could only produce unmarried plotbands classes, each stop point 1-100, but if there was a way to set a linear grantant, which would be very clean, would any one know the path? Yes, this is possible. Try doing something like this: yAxis: {min: 0, max: 100, plotBands: [{color: {linearGradient: [300, 300, 0, 0], prevents: [[0, 'RGB (255, 255, 255)'], [1, 'RGB (150, 200, 155)']]}, to: 0, to: 100}],}, Carefully be able to combine many conspiracies with your colors, linear grids and / or whatever you want to do.

rails change date format before saving to mysql DB -

I have a datepay that I want to display in MM / DD / YYYY. Although I am using a MySQL DB which wants YYYY-MM-DD as it saves it now, but the days and months are reversed. I have an analytics now, date_time_formats.rb who has: Date: DATE_FORMATS [date: default] = '% m /% d /% y Even in my datepicker jscript, I have the correct format that I want to display: $ (this). Datacar ({"Format": "mm / day / year", "Weekstart ": 0," Autoclose ": True," Start ": New Date ()}); I have tried to do things like this: date.stream (parameter [: location], "% d /% m /% Y ") But I get a hashishindifiable Aces error. How can I reproduce the date in the parameter hash before being told an example of the model? This reason seems to be rejected due to the model that this date will be invalid (April 4, 2013 is OK, but not April 20, 2013 because 20th month is not there). I am doing a big job, so can be a trainer to do the job...

Notice: Uninitialized string offset in PHP -

Hello, I have this function and it returns a notice: Notice: Unscrupited string offsets: function generator and $ ($ length) {$ string = ''; $ Letters = "0123456789abcdef"; ($ P = 0; $ p & lt; $ length; $ p ++) {$ string = $ Letters [mt_rand (0, strlen ($ letters)); } Return $ string; } The affected line is: $ string. = $ Letters [mt_rand (0, strlen ($ letters)]; I have tried to do with braces and it does not work. If someone can tell some suggestion, then I appreciate it. Thank you. You can sometimes sometimes overwrite due to $ letter strlen ($ Character) , which should be strlen ($ letters) - 1 . Your random series should start with zero, and you have to end with a zero length if the $ character is 10, then the last zero-based array index nine , and it keeps up your upper limit for random selection. $ string = ''; $ Letters = "0123456789abcdef"; ($ P = 0; $ p & lt; $ length; $ p ++) {$ string = $ Characte...

R plotting an inset plot on just one plot in a multi-plot layout -

Image
I have a series that I want on a page. I first use the command layout to specify my plot layout: layout (matrix (c (1,1,2,2,1,1,2,2,3) , 4.5, 6), 3,4, bio = true)) Plot to me to 1 something like: plot ( Isting, Northing, PC = 16, col = gray (cex.size)) # now I draw a inset plot at plot 1 I want to do, but not conspiracy 2 So far I tried to follow the code: equal (fig = c (0.75, 1, 0, 0.25), new = T) plot (spp.tmp [, 1: 2], col = cols [Spp.tmp [, 3] +1], pp = 16) is equal (fig = c (0,1,0,1)) but it works, as paragraph (fIG)) command me Overwrites the layout, and the inset plot appears at the bottom corner of my overall figure, not only in the lower part of the plot 1. Two options, your layout command (If you stick with layout here is a case where the first conspiracy is spread over two rows and columns, the other in the right corner is an inset. the third plot is down, as before with the same size, but without an inset. layout (matrix (C (L,l,l,...

Java Temporary Files, read and write -

मुझे कोड का यह टुकड़ा है पैकेज क्लासेस; Import java.io * *; सार्वजनिक कक्षा आईपी व्यवस्थापक [सार्वजनिक बूलियन आईएक्टिव (स्ट्रिंग आईपीएड्रेस) {बूलियन एक्टिव = फॉल्स; स्ट्रिंग सीएमडी; स्ट्रिंग ओएस = System.getProperty ("os.name"); Println (ओएस); स्ट्रिंग tmpfolder = System.getProperty ("java.io.tmpdir"); Println (tmpfolder); //iptmp.deleteOnExit (); अगर (ओएस.एजेल ("लिनक्स")) (सीएमडी = "पिंग" + आईपीएड्रेस + "-सी 1"; } और (सीएमडी = "सीएमडी / सी पिंग" + आईपीएड्रेस + "-एन 1"; } {स्ट्रिंग एस = शून्य; प्रक्रिया पी = रनटाइम.गेटरीटाइम ()। Exec (सीएमडी); फ़ाइल iptmp = File.createTempFile ("ipresult", ".txt", नई फ़ाइल (tmpfolder)); BufferedReader stdInput = नया BufferedReader (नया InputStreamReader (p.getInputStream ())); जबकि ((s = stdInput.readLine ())! = नल {} System.out.println (s); S = s.toString (); BufferedWriter लेखक = नया बफ़ेड वाइटर (नया फ़्लेमरर (आईपीटीएमपी)); writer.write (रों); }} पकड़ (अप...

c++ - I am having an issue understanding how to work with queues -

One of the bottom of my professors have been researching the slides and I have my data structures class and understood on concepts I'm going to have to create a program in my data structure classes with it. What does. Do you return? We are sending you down the actual tasks: Please explain that I am 6 years ... ADT-Qi (tool kit function array implementation) / / Create a q of zero create_queue (q and q) {q.back = -1; } // Check that the queue is empty empty (conte queen and que) {return (q.back == -1); } // purify the elements in pure pure (Q and Q) in queue {q.back = -1; } // q Add an element to zero ank (qi and q, const info and item) {++ q.back; Q.i [q.back] = item; // I have previously announced) // a Q-Zero deck (QE & amp; Q, INFOREC & amp; items) {int ct; Item = q.i [0]; Front; // Step forward loop, moving the entire array components to 1 position and transfer points for // (ct = 1; ct & lt; q.back; ++ ct); Q.i [ct -1] = q.i [ct]; --q.back; } Okay, ...

Python code for basic fft of grid image -

I am trying to get an image of an image in Python, changing the transfected image and taking reverse FFT. Specifically, I have a picture of a grid that I want to change, then black out all, but a central, narrow vertical wall of the transformations, then take a reverse FFT. To change no change to the code I plane: Import os oschdir ('/ user / terra / desktop') import image, numpy i = Image.open ('grid.png') I = i.convert ('L') # to convert grayscale a = numpy.asarray (i) # a read only b = abs (numpy.fft.rfft2 (A)) j = Image.fromarray (b) j .seven ('grid2.png') As of now, I get an error message: Traceback (most recent call final): file "/ user / terra / document / pic2.py", line 11, in j.save ('grid2.png') Hail "/ Library / Framework / photo". File "/ library / frames / python / framework work in version 2/7 / lib / python2.7 / site-package / PIL / Image.py", line 1439, save_handler (auto, fp, file name)...

combine 2 query into 1 query sql -

इस सवाल का पहले से ही एक उत्तर है: 1 उत्तर मेरे पास 2 एसक्यूएल स्टेटमेंट हैं SELECT TOP 100 PERCENT COUNT (codeAll) एएस कुल, CodeAll, विवरण, LEFT (CodeAll, 1) एएस कोड से डेटा कहाँ '2013/03/01 00:00:00' और परिणाम: कुल | कोडएल | विवरण | कोड ------------------------------------- 3 1c टेस्ट 1 3 1 बी टेस्ट 2 1 10 1 ए टेस्ट 3 1 2 2 ए टेस्ट 4 2 5 2 बी टेस्ट 5 2 5 3 ए टेस्ट 6 3 3 3 बी टेस्ट 7 3 क्वेरी # 2: SELECT COUNT (CodeAll) AS SumCall, left (CodeAll, 1) डेटा से डेटा जहां दिनांक '2013/03/01 00:00:00' और '2013/03/01 23:59:00' और (कोड सभी शून्य नहीं है) समूह द्वारा बाएं (कोडअले, 1) ` परिणाम: SumCall | कोड 16 1 7 2 8 3 मैं 2 क्वेरी को 1 क्वेरी से जोड़ना चाहता हूं: कुल | कोडएल | विवरण | कोड | SUM | प्रतिशत ------------------------------------------------- -------- 3 1c टेस्ट 1 16 18.75% 3 1 बी टेस्ट 2 1 16 18.75% 10 1 ए टेस्ट 3 1 16 62.5% 2 2 टेस्ट 4 2 7 28.57% 5 2 बी टेस्ट 5 2 7 71.43% 5 3 ए टेस्ट 6 3 8 62.5% 3 3b Test7 3 8 37.5...

java - Android downloading series of files Not working -

I need a function that downloads files by passing the name and url, so that I download a series of files in the Android app Can do Then went ahead and created something like this: public zero doDownload (string filename, string url) {file root = android.os.Environment.getExternalStorageDirectory ( ); File directory = new file (root.atgeolute path (+ + "/ content /"); If (dir.exists () == incorrect) {dir.mkdirs (); } {URL url = Try the new URL (url); URL Connection Connection = url.openConnection (); Connection.connect (); // This will be useful so that you can show a normal 0-100% progress bar int file length = connection.getContentLength (); Logs. I ("ANDRO_ASYNC", "file length:" + file length); // file inputstream input = download new BufferedInputStream (url.openstream ()); OutputStream Output = New File OpticalStream (DIR + Filename); Byte data [] = new byte [1024]; Long total = 0; integer number; While ((count = input.read (data))! = -1) {tot...

search - elasticsearch BindTransportException at startup -

The exception is starting I elasticsearch: status | Cover | 2013/03/21 00:43:42 | Starting a JVM ... Info | Jvm 1 | 2013/03/21 00:43:42 | Rapper Manager: Getting Started ... Info | Jvm 1 | 2013/03/21 00:43:45 | {0.19.4}: Startup failed ... info | Jvm 1 | 2013/03/21 00:43:45 | - Bid Transport exception [[9 3,600]] Information | Jvm 1 | 2013/03/21 00:43:45 | Channel Exception [failed to bind: / 1982.68.0.1: 9300] Information | Jvm 1 | 2013/03/21 00:43:45 | BindException [Can not assign the requested address] Status | Cover | 2013/03/21 00:43:47 | = "Text"> Network for port 9300 Using the utility portcanc tab, you should find out what process is being used in OS X. This will give you something like this: Open TCP Port: 9300 Valence You are hearing that using this line to obtain the processes lsof -i | Grep LISTEN This will return something like this: Java 12345 Niranjan 123u IPv6 0x1ab123c45d67890f 0t0 TCP localhost: LISTEN You ps aux | Gre...

Communicate to Android App via Rails Server- send data from app to server? -

I have ruby ​​on one app running in which the telephone number is database I need to run the app on 5 different phones It is as if they get information from a railway server with a phone number (it is done after each other, not all phone numbers), after receiving the phone number, the app checks whether there is an existing call Or if there is no call, then he dials the number otherwise They call on the server busy "status sends back I was thinking of ways to do it. I searched the part of its app: I start a new activity with call intent and get the proper permissions set out in my manifest file, I can also check the situation using the telephony manager. But I am not able to understand the communication part. I first thought about a push notification that using GCM and then from my server about an independent TCP connection for my app I read in My question is: Can not I clarify whether it is mandatory to use GCM or can I work around it with real-time communication? if so...

.net - What is the difference between RDL 2008 Schema and RDL 2010 Schema? Feature wise -

What is the difference between the specialty between RDL 2008 schema and RDL 2010 schema? And who supports a Visual Studio 2012 report viewer? I am going to create dynamic reports using Visual Studio 2012 C # to generate XML Schema. But you want to know what new features are supported in newer versions, e.g. Fall ellapse grouping etc. These are the different things to try to explain it to me: RS 2008: stores its metadata in either SQL2005 or SQL 2008 database RDL 2003/10 , RDL 2005/01, RDL 2007/01 and RDL 2008/01. The RDL report is the definition language language reported by the designer. RS 2005: Sets its metadata in either SQL2000 or SDC 2005 database RDL can run 2003/10 and RDL 2005/01 Bid 2005 (Report Designer 2005) RS 2005 and RS 2008 can be published directly Can directly publish RS 2008, but RDL can not "downgrade". I hope this makes it more obvious.

ios - Custom UIButton in UIscrollview -

I'm using xcode 4.6 to develop an app. Here I want to add UIButton to the program from UIScrollView. This is my follow-up code. UIButton * bt = [[UIButton alloc] initWithFrame: frame]; BT = [UI Button Button Type: UIButtonTypeCustom]; [BT SETITAL: @ "custom button" forState: UIControlStateNormal]; [BT EditedGrase: Action by itself: @Sillector (UserNlink) Control events: UICTLEVENT TouchUp Inside]; Bt.backgroundColor = [UIColor grayColor]; Bt.titleLabel.textColor = [UIColor blue color]; [Self. MensCallViewAidSubewEview: BT]; [Self. MensCalViewview LaosViewTrofront: BT]; The problem now is that the button gets clicked (technically its text colors are white) I checked the UIScrollView color in red, which is still the same button Was in the scene, but I can not tell the reason why the color of its text has changed and how can I cancel it. In fact, I use the UIbutton to create a clickable link, I want to see the uttexviewview (Detadetekterip know), but I have no us...

java - Why this MD5 result with Salt has "==" in the end of result string? -

इस सवाल का पहले से ही एक उत्तर है: 8 जवाब मेरे पास जावा कोड है जो उपयोग करते हैं Jasypt (जावा सरलीकृत एन्क्रिप्शन) लाइब्रेरी: मानक स्ट्रिंगडिगेस्टर डाइजेस्टर = नया मानक स्ट्रिंगडिगेस्टर (); digester.setAlgorithm ( "MD5"); digester.setIterations (1); फिक्स्ड स्ट्रिंग साल्ट जनरेटर नमक निर्माता = नया फिक्स्ड स्ट्रींग साल्टनर (); saltGenerator.setSalt ( "justAnotherSalt"); digester.setSaltGenerator (saltGenerator); digester.setSaltSizeBytes (5); स्ट्रिंग डाइजेस्ट = डाइजेस्टर डाइजेस्ट ("my_password"); Println (पचाने); आप देख सकते हैं कि मैंने नमक के साथ MD5 एल्गोरिथ्म का उपयोग किया है। कंसोल में परिणाम है: I9uMOxDiImtxMXKXkt2EUw == मुझे पता होना चाहिए कि परिणाम स्ट्रिंग के अंत में "==" वर्ण क्यों हैं? यह केवल तब ही मौजूद है जब मैं नमक का उपयोग करता हूं। मानकस्ट्रिंगडिगेस्टर। डीआईजीस्ट एपीआई कहते हैं इसका परिणाम इनकोडेड है BASE64 (डिफ़ॉल्ट) या हेक्साडेमिकल और ASCII स्ट्रिंग के रूप में लौट आए आपके मामले में यह BASE64 ...

php - got error when json parsing message (in german lang.) -

मैंने AJAXSubmit का उपयोग कर जमा किया था। मेरा php कोड (क्रिया फ़ंक्शन), $ printArr ['succ'] = '1'; $ प्रिंटआर्पर ['msg'] = 'ईहर पासवॉर्ट वुर्डे इरफ्लग्रेइच जीएंडर्ट'; गूंज json_encode ($ printArr); बाहर जाएं; जब मुझे जेएस फ़ंक्शन में प्रतिक्रिया मिलती है तो मुझे त्रुटि देता है एआरटीआर ('एक्शन'), सफलता: फंक्शन (प्रतिक्रिया) {डेटा = $। परसेजसन (प्रतिक्रिया); । $ ( '# Password_err_content') एचटीएमएल (data.msg); । $ ( '# Password_err_blk') slideDown (); }}; $ ( "फ़ॉर्म # persdata2") ajaxSubmit (विकल्प)। विवरण झूठा है; } त्रुटि : सिंटेक्स त्रुटि: JSON.parse: अपेक्षित ',' या '}' वस्तु में गुण मूल्य के बाद अगर मैं साधारण संदेश को पसंद करता हूं $ printArr ['msg'] = 'पासवर्ड परिवर्तन सफलतापूर्वक'; तब सबकुछ ठीक है। मेरी मदद करो! हो सकता है आप json_encode ($ printArr, JSON_UNESCAPED_UNICODE) । : एन्कोड करें multibyte यूनिकोड वर्णों का शाब्दिक प्रयास करना चाहते ह...

jquery - Error within Javascript function -

& lt; cffunction नाम = "getBackgrounds" पहुँच = "सार्वजनिक" returntype = "क्वेरी" & gt; & Lt; cfargument name = "dsn" प्रकार = "स्ट्रिंग" आवश्यक = "सच" / & gt; & Lt; cfargument name = "page" type = "string" आवश्यक = "गलत" / & gt; & Lt; cfset var getBackground = "" / & gt; & Lt; cfquery नाम = "getBackground" डेटा स्रोत = "# आर्ग्यूमेंट्स.डिसेन #" & gt; चयन page_id, page_photos से तस्वीर कहां page_id = & LT; cfqueryparam cfsqltype = "cf_sql_integer" मूल्य = "# ट्रिम (arguments.page) #" / & gt; & Lt; / cfquery & gt; & Lt; cfreturn getBackground & gt; & Lt; / cffunction & gt; jQuery (समारोह ($) {$ .supersized ({slide_interval: 6000, संक्रमण: 1, transition_speed: 1000, slide_links: 'असत्य', स्लाइड [ & LT; cfoutput क्वेरी = "getBackground" & gt; {i...

How to install the PROcess Packages which is a tar file in R? -

I tried to install the package package in the following ways: & gt; Install.packages ("/home/R-Packages/PROcess.tar.gz", rpos = NULL) Then the following error occurs: Error: Dependency â ???? Icens Package is not available for ???? Then I have tried to install an eKines package: & gt; Install.packages ("Icens") Then the following error occurs: Package "Icensâ" is not available (R version 2.15 For .3) So can someone get me out of this problem and give some suggestions so that I can establish the process package. The Icens package has been moved from CRAN to another repository: BioCoondractor, it tells the following command Can be established by: source ("http://bioconductor.org/biocLite.R") biocLite ("Icens")

displaying static and dynamic data in textview in android -

Is there any way to display static and dynamic data in their textview .. Here my text is reviewing I Android: Android: paddingTop = "5dp" Android: paddingBottom = "5dp" Android: ID = "@ + ID / ROOTEX" Android: layout_width = "Fill_parent" Android: layout_height = "wrap_content" Android: orientation = "vertical" Android : Text = "Listiems" />. I have to display the text that is in Android: text and its dynamic data further. Is there any way to them? > thanks :) Use string tempString = "your dynamic text here"; TextView Text = (TextView) Find VVBIID (RID. Rotex); SpannableString spanString = new SpanLabel string (tempstring); SpanString.setSpan (New Style Span (Typeface.BA), 0, SpanString.line (), 0); Text.setText (""); Text.append (spanString);

bash - SCRIPT_PATH="${BASH_SOURCE[0]}" Bad substitution -

ios - navigational controller not passing data from tableview to viewcontroller -

तालिका दृश्य के लिए कोड: - (शून्य) तालिकादृश्य: (UITableView *) tableView DidselectRowAtIndexPath: (NSIndexPath *) सूचकांकपथ {ViewControllerDisplayMsg * विस्तार = [self.storyboard instantiateViewControllerWithIdentifier: @ "viewController3"]; सेलवल्यू = [सरणी ऑब्जेक्टऐटइंडएक्स: इंडेक्सपाथ.रो]; Detail.DisplayMsgString = cellvalue; [आत्म। नेविगेशन नियंत्रक पुश ViewController: विस्तार एनिमेटेड: हाँ]; } कोड को देखने के नियंत्रक 3: - (शून्य) दृश्यडिडलोड {[सुपर व्यूडिडलोड]; Self.DisplayMsgLabel.text = self.DisplayMsgString; } उपरोक्त कोड डेटा रिक्त नहीं हो रहा है, जब व्यू नियंत्रक 3 खोला जाता है। डेटा गुजर क्यों नहीं रहा है। क्या कोड गायब है? कृपया मेरी सहायता करें। सहायता की सराहना कीजिए। अग्रिम धन्यवाद। आपने उपयोग किया है - (शून्य) तालिकादृश्य: (UITableView *) तालिकादृश्य ने चुनावाराआइटइंडएपपाथ: (NSIndexPath *) indexPath {} यह है - (शून्य) तालिकादृश्य: (UITableView *) तालिकादृश्य किया था SelectionRowAtIndexPath: (NSIndexPath *) indexPath {} मु...

c# - IAP doesn't work in real WP8 store -

This is the code in my Windows Phone 8 project that tests a product ID key that I have used when using the mockiepe Then everything works in the development, but after the release of my app, I can not buy it at the online store. Game crash My app is using PhoneGrap 2.3.0 and loaded via an iframe. It executes the purchase () using the Cordova plugin Is this other poeple enforcing IAP for their WP8 app (i.e. download all listing information first)? Private Assessment Purchase () {ListingInformation li = Wait Store.CurrentApp.LoadListingInformationAsync (); If (li.ProductListings.ContainsKey (package_ID)) {string pID = li.ProductListings [package_id] Manufacturer; Var receipt = wait Store.CurrentApp.RequestProductPurchaseAsync (PID, true); ParseXML (receipt); PrepData (); HttpPostData (); Store.CurrentApp.ReportProductFulfillment (PID); }} This app is put in the store: In-app Product ID: Pack 1 Type: Consumable In-app product nickname: 1000 credits Base price: 0.99 ...

C++ What is the fastest way to scan for certain elements within a unsigned char array and a unsigned char vector? -

I have a small question, what is the fastest way to scan for some large elements for large elements, which Is that a large unsigned four array and a vector only contains unsigned cell elements? The direct answer would be great, but the detailed answer to the depth would be amazing fast what do I mean? Basically, to search for some characters within at least one second, I know that this was not a very educated definition ... Note: the array has not been sorted. General Announcement: unsigned char * array = new unsigned char [50000]; Std :: vector & lt; Unsigned four & gt; Vace (50000); / * * Fill Array & amp; VAC * / with random bytes, say, I want to search for letter 'A' in Array, I will just write this loop to find it: Note: The search process will search for more than one element, mainly, 256. Therefore, you can take advantage of that magical number. For loop method: unsigned int count = 0; For the (unsigned index index = 0; index! = 50000...

jsf - How to load data from backing bean after a redirect -

जब मैं & lt; redirect / & gt; टैग face- Config.xml , यह ब्राउज़र यूआरएल को अद्यतन नहीं करता है, लेकिन डेटा बैकिंग बीन से सफलतापूर्वक भरी हुई है। जब मैं & lt; redirect / & gt; का उपयोग करता हूं, ब्राउज़र यूआरएल अपडेट हो जाता है, लेकिन डेटा बीन से लोड नहीं हो रहा है मैं इस मामले में बीन का समर्थन करने से डेटा कैसे लोड करूं? आप faces- आपके नेविगेशन URL में redirect = true उदाहरण के लिए & lt; h: form & gt; & Lt; h: कमांड लिंक्स मान = "माइवल्यू" एक्शन = "माईपेज? चेहरे-रीडेड = सच" / & gt; & Lt; / h: प्रपत्र & gt; अपने faces-config.xml में अब & lt; redirect / & gt; > ब्राउजर यूआरएल को अपडेट किया जाएगा बैकिंग बीन से डेटा को सफलतापूर्वक लोड किया गया है।

mysql - Hive - No table is listing after successful Sqoop import -

After successfully importing honeycomb using Sqoop , I recently imported table hive . Import Command ./sqoop Import - Connect jdbc: mysql: // localhost: 3306 / Extedu --table User - Users Name TALHA-P --warehouse-dir / home / talha / warehouse - directly hive tables hive & gt; ; Show the table; Time taken: 0.038 seconds This is a common problem with the hive, set the following property hive-site. In Xml & lt; Property & gt; & Lt; Name & gt; Javax.jdo.option.ConnectionURL & lt; / Name & gt; & Lt; Price & gt; JDBC: Derby: DatabaseName = metastore_db; Create = true & lt; / Pricing & gt; & Lt; Details & gt; JDBC Connect String for JDBC Metastore & lt; / Description & gt; & Lt; / Property & gt; & lt; Property & gt; Provide some complete path instead of . & Lt; Name & gt; Javax.jdo.option.ConnectionURL & lt; / Name & gt; & Lt; Price & gt; JDBC: Derby: DatabaseNa...

c# - NetworkStream.Read did not get all the bytes after a null byte/s -

I am creating an application that can remotely control a device such as camera (Scopia XT5000 - Radvision) Will happen. I need to send an initialization command to the device so that I can send AT commands which will control the device. Once I send the initial order, the server should answer it: In the string ? ? \ 0 \ 0 \ 0 AT [& lt; IP400C9XT5000-03.01.00.0028 \ r ?? \ 0 \ 0 \ 0 ok \ r \ / Bytes 170 170 0 32 65 84 91 60 73 80 52 48 48 67 57 88 84 53 48 48 48 45 48 51 46 48 49 46 48 48 46 48 48 50 56 13 170 170 0 0 3 79 75 13 I have to debug Tried and received those values ​​when I broke here serverStream.Read (instream, 0, inStream.Length); But every time I run programs without debugging or braking, it will give me different strings and bytes. Just like in the string ? \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 Bytes 170 170 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

iphone - How to customize an actionSheet for social sharing to get one like as if i did with an activityViewController -

I am working with iOS 5.1. I am using an action sheet to do social sharing functionality Is it like to customize it to get something like iOS 6? I take a look at this ShareThis, it has done a lot of work for you. For iOS 5 compatibility, try REActivityViewController

Android Animated App Walkthrough -

I have a project where my customer asked me to create animated help for each screen. What does they mean by animated help when you start a new emulator, it shows a hand that tells you what to do. I really appreciate the people for your help if you can give me some clues where to start. Thanks using some of the default help and some bitmap (referred by you Should be able to re-enable).

jodatime - How to convert Joda time LocalTime to java.util.Date? -

I want to convert Joda LocalTime to java.util.Date and No to LocalDate. If it helps, then I already have a local time item. I obviously have no part of "date" in local time. So I can not convert local time directly into the date. Is there an easy way to do this? Step - local time-late localed lock = today's date + excess date da = locd.toDate (); date da = loct.toDateTimeToday (). ToDate ();

html5 - display specific div on hover? using css and html only -

I want to show the second div (in HTML) with div Hover over the anger tag on the cursor. HTML code: & lt; A & gt; Hover over me & lt; / A & gt; & Lt; Div class = "forget" & gt; Sdjfg & lt; / Div & gt; & Lt; Div class = "dikha" & gt; The content shown on the hover & lt; / Div & gt; Style div {display: none; } A: hover & gt; Div: nth-child (2) {display: block; Background color: red; Height: 250px; Width: 960px; } Use the adjacent sibling selector ~ need to . Besides, the div you want to show is the third child, not the second (because is the first). div {display: none; } A: hover ~ div: nth-child (3) {display: block; Background color: red; Height: 250px; Width: 960px; } Demo:

java - controll null values in fetching json in android -

मुझे जेसन (शून्य मान) लाने में यह त्रुटि मिलती है: 03-21 12 : 32: ०२.९१८: ई / AndroidRuntime (20,383): गंभीर अपवाद: AsyncTask # 2 दिसम्बर 03-21: 32: ०२.९१८: ई / AndroidRuntime (20,383): java.lang.RuntimeException: doInBackground () निष्पादित करते समय एक त्रुटि हुई 03- 21 12: 32: 02.918: ई / एंड्रॉइड रेंटाइम (20383): एंड्रॉइड.ओएस। एसिंक टास्क $ 3. डोन (एसिंक टास्क। जेवाम्बर 99) 03-21 12: 32: 02.918: ई / एंड्रॉइड रेंटाइम (20383): java.util पर .concurrent.FutureTask $ Sync.innerSetException (FutureTask.java:273) 03-21 12: 32: ०२.९१८: ई / AndroidRuntime (20,383): java.util.concurrent.FutureTask.setException (FutureTask.java:124) में 03- 21 12: 32: ०२.९१८: ई / AndroidRuntime (20,383): पर java.util.concurrent.FutureTask $ Sync.innerRun (FutureTask.java:307) 03-21 12: 32: ०२.९१८: ई / AndroidRuntime (20,383): में java.util.concurrent.FutureTask.run (FutureTask.java:137) 03-21 दिसम्बर: 32: ०२.९१८: ई / AndroidRuntime (20,383): java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolE...

javascript - Draggable date range using Highcharts.js -

Image
Does anyone detect drag events that can be used on the chart chart created by HighTart.JS or even Could that be done to duplicate that event even on the chart? We have a split column chart. The smallest chart controls the date range on the master chart above. Currently, the only way to adjust the boundary is to select and select the segment of small charts. The image below, which we have done so far: We want to be able to create a drag-able interface with handles to stretch and adjust the segment in any way. Highstock.js has similar functionality (screenshot below): You can only use the master-description type chart in the HighCast But you have the ability to use Highstock.js and use the column chart in the Navigator / Serie See the example Navigator: {series: {type: 'Column'}},

spring - org.jasypt.exceptions.EncryptionOperationNotPossibleException -

Image
मैं Jasypt-1.9.0 स्प्रिंग 3.1 के साथ और हाइबरनेट 4.0.1 मुझे अपने आवेदन में एक डेटाबेस से कनेक्ट होने के लिए एक आवश्यकता है जिसका पासवर्ड (रूट) एन्क्रिप्टेड रूप में आवेदन फ़ाइल में संपत्ति फ़ाइल में संग्रहीत है। मैंने ऑनलाइन देखा और निम्नलिखित लिंक के साथ जिस तरह से पाया: मैंने अपनी आवश्यकताओं के लिए निम्न चरणों और विन्यास किया है: jasypt-1.9.0 और jasypt-hibernate4 - 1.9.0 बिल्ड पथ में। मेरे प्रेषक-सर्वलेट फ़ाइल में निम्न जोड़ दिए गए: & lt; बीन आईडी = "प्रॉपर्टी कॉन्फ़िगरर" वर्ग = "org.jasypt.spring31.properties.EncryptablePropertyPlaceholderConfigurer" & gt; & lt; कन्स्ट्रक्टर-आरआर आर आर = "कॉन्फ़िगरेशन एन्क्रिप्शन" / & gt; & LT; संपत्ति का नाम = "स्थान" & gt; & LT; सूची & gt; & LT; मूल्य & gt; classpath: database.properties & LT; / मूल्य & gt; & LT; / सूची & gt; & LT; / संपत्ति & gt; & LT; / सेम ​​& gt; & LT; बीन आईडी = ...

c# - XmlRootAttribute placement when deserializing to List -

मेरे पास निम्न XML है & lt;? Xml संस्करण = "1.0" एन्कोडिंग = "यूटीएफ -16" स्टैंडअलोन = "नहीं"? & Gt; & LT; साइटें & gt; & LT; साइट & gt; & LT; कोड & gt; TWTR & lt; / संहिता & gt; & LT; नाम & gt; twitter.com & lt; / नाम & gt; & Lt; / साइट & gt; & LT; साइट & gt; & LT; कोड & gt; अमेरिकन प्लान & lt; / संहिता & gt; & LT; नाम & gt; facebook.com & lt; / नाम & gt; & Lt; / साइट & gt; & LT; साइट & gt; & LT; कोड & gt; अतः & lt; / संहिता & gt; & LT; नाम & gt; stackoverflow.com & lt; / नाम & gt; & Lt; / साइट & gt; & Lt; / ब्लॉग & gt; यह कोड है: सार्वजनिक कक्षा कार्यक्रम {स्थैतिक शून्य मुख्य (स्ट्रिंग [] एआरजी) {var fs = new filestream (@ "D: \ Temp \ Sites.xml ", FileMode.Open); Var serializer = नया XmlSerializer (टाइपफ (सूची & lt; साइट & gt;)); Var उदाहरण = (सूची & lt;...

reporting services - Visibility expression error in ssrs 2008 table column -

Image
डियर, मेरे पास टेबल है जिसे मुद्रा द्वारा समूहीकृत किया गया है, और जब मैं एक्सचेंज को एक्सचेंज करने के लिए निर्यात करता हूं तो उसे मुद्रा समूहिंग के आधार पर शीट्स में बांटा जाता है और प्रत्येक शीट में मुद्रा नाम होता है। > मुझे दृश्यता अभिव्यक्ति को पिछले 2 कॉलम में सेट करने की आवश्यकता है छुपा हुआ यदि मुद्रा अमरीकी डॉलर है। ive की कोशिश की = IIF (फ़ील्ड! मुद्रा 1। मूल्य = "अमरीकी डालर", सच है, गलत) लेकिन सभी पत्रक = IIF (ग्लोबल्स! PageName = "USD", यह सच है, गलत) ने मुझे त्रुटि दी, वैश्विक चर केवल इस्तेमाल किया जा सकता है हेडर और पाद लेख में भी = IIF (प्रथम (ReportItems! Claim_Currency.Value) = "USD", True, False) भी त्रुटि। कोई भी सलाह दे सकता है, सादर, डेटासेट फ़ील्ड मान के बजाय पै का उपयोग करें उदाहरण के लिए: = IIF (INSTR (जुड़ें (पैरामीटर। मुद्रा। ",", ")," USD ") = 0, ट्रू , झूठी)

sql server 2008 - sql Alias Column Name for Use in CASE Statement -

itemprop = "text"> I have an SQL query as below, selected site, data source, (as select case when data source = 'RFQ' then 'ChangeOperator' balance 'SameOperator' end) OperatorScenario, the (select case OperatorScenario = 'ChangeOperator' then '1' Balance '022' end) OperatorScenario2 As tablename in the form when I execute this query, I get an exception in the form of invalid column name operator scanner, As tried by using a code in the other name in the second query, (if you choose the case 'OperatorScenario' = 'ChangeOperator' then '1' remaining '022' end) As OperatorScenario2 Then it always implements the other part. Please give me some tips related sangeet The main issue is that you do not reference the nickname in the same query Can give Also you have brackets and an additional SELECT keyword, which looks like a subclass where I do not believe you have one intentio...

How to trigger an input event with jQuery? -

I want to add 'a' to the value of input when I click on a button This is my Code is (with jQuery 1.4.4): $ ("# button"). Click (function () {$ ("# input"). Trigger ("focus"); var e = JQuery.Event ("keypress"); e.which = '97'; $ ("# input"). Trigger (e);}) However, this was the only trigger 'focus' event, but 'keypress' failed. this way ?? Sorry, I'm confused with your articles .. Click $ ("# button") (function () {$ ("# input"). Trigger ("keypress") / / If you need .., then you can trigger such a keypad .val (function (i, val) {return val + 'a';});}); Reference:

c# - check detail view null fields before inserting -

I am looking at detail in asp.net, from which I am going to put data to DB. Here I want to do any inquiry before joining. Field is zero or not and if not empty then do not insert in DB. I have tried the following code but it is not working Protected Zero DetailsView1_ItemInserting (Object Sender, DetailsViewInsertEventArgs E) {string unit = (string) e.Values ​​["UNT_COD"]; If (unt == "") {e.Cancel = true; }} Through this code, I am not receiving my purpose. Plz helps someone know how to check me string unt = e.values ​​["UNT_COD"] + ""; If (unt == "") {e.Cancel = true; }

replace - Game crashes after second time same CCScene is replaced -

This is a bit easier problem but I could not understand it. 1-> The application starts (with the main menu view) 2- & gt; Start (sub-level view changed) 3- & gt; Select the first level (Level 1 Sceone has been changed. The game started.) 4-> Go back to the main menu (Menmanu is the scene of the scene) 5- & gt; Start (sub-level view has changed) 6-> Select first level 7-> Crash. box (32842,0x3f5c9d98) malloc: * Error 0x4bed44 for object: wrong checksum for free object - object was probably modified after being free. * To set a breakpoint in malloc_error_break to debug When I place the scenes in A to B, is there a release? As far as I know, only Pushkenneni keeps the scene in memory. + (CCScene *) view {CCScene * view = [CCScene node]; HelloWorldLayer * Layer = [HelloWaldlayer node]; [Add View Build: Layer]; Return view; } Should be replaced when the view and layer autorelease are objects, should be released from then. (If previous ...

java - Multiple versions of a same Weblogic Shared Library active on a same server -

I have a problem when trying to employ two different versions of the same shared library on the same weblogic server. My goal is: I have many applications that reference a shared library; The different implementation versions of this shared library (very good in the world) should be able to use those applications; So I would like to deploy several versions of this shared library (such as: uses the AP version 1.0.0 and uses APP 1.0). I think (know?) It is possible (I have seen in a weblogic examination that many versions of the same shared Libil can be deployed and active at the same time ) But till now I've been unsuccessful ... Weblogic is unhappy with the fact that the two shared libraries have the same name ... but to use those shared libraries through my similar applications 'Same name' is required ... My Meta-INF files App Version: 2.0.2 - Snapshot Specification-Version: 2.0 P> and extension-name: app-local-services-AJB implementation-versi...

Mule File Inbound Polling Configuration -

I want to select 10 files at a time from a particular directory at a fixed time interval. If 250 files are present in that directory, then they should take 250 to 10 files in their file inbound and then re-execute them on 10 files. I have the voting frequency value of "10000" I tried to apply the maximum thread application like this but it does not work org.mule.transport.file.filemessageReceiver , especially the listFiles () method. The public class MyFileMessageReceiver expands the file message receiver {personal fixed last MAX_FILES = 10; @ Override list & lt; File & gt; ListFiles () throws MuleException {try {list & lt; File & gt; Files = New Arreelist & lt; File & gt; (); This.basicListFiles (redirects, files); If (files.isEmpty ()) return NO_FILES; Return files (files.size ()> MAX_FILES). IBLIIS (0, MAX_FILES); Return other files; } Hold (exception e) {new default mauley expression (file message .errorist listing files), e); The...

c# - Comparing Two objects using Assert.AreEqual() -

I'm writing test cases for the first time in Visual Studio # I is a method that gives a list of objects And I want to compare it with the second list of items using the assert.AreEqual () method. I tried to do this, but the claim fails even if both objects are the same. / P> I want to know that this method is comparing the contents of two parameter references or the object, Do I have to overload the operator == To work this? If you are using NUnit then this is the same documentation That starting with version 2.2, special provision has also been made to compare single dimensional arrays. Two arrays will be considered equivalent to the dependent. If they are the same length and the related elements are equal to each. Note: Multi-directional arrays, arrays arrays, and other collection types such as ArrayList are not currently supported. In general, if you are comparing two objects and you want the values ​​based parallelism you must override the similari...