Posts

Showing posts from August, 2012

c# unit tests using sockets -

I am trying to write a unit test for a server application which requires sockets in C # . To process the request, I need to read from the socket. I can avoid sockets in Java using currents, so when writing a unit test, I can easily convert a string into a stream. // ====== input ====== InputStream socket InputStream = new input stream (socket.getInputStream ()); // InputStream socket input instead of such a string = new bytereinputstream ("string" .getBytes ()); BufferedReader = new BufferedReader (new InputStreamReader (socketInputStream)); // ====== Output ====== OutputStream socketOptputTream = New outputstream (socket. Getoutputstream ()); // I need to write stream BufferedOutputStream Out = new BufferedOutputStream (socketOutputStream) byte []; I just found NetworkStream () but it also requires a socket. How can I get it in C # so that I can make the stream without sockets? And how can I write a stream and read it again to see if the message is correct? ...

array python to php -

I have to translate a Python code to phyp, but I do not know how this Python code works in php I do not know what the colon is between: "[] between: dec = data_ar [4: len (data_ar)] Thanks This is just so, so I think what you want: Array_slice ($ data_ar, 4);

html - Trying to get CSS shadow on right and left sides -

I have a DIV element which I would like to apply a CSS box shadow also, the problem is, I left it only to the left of the element And I want right. I tried to play with box-shadow: 0 10px # 000; But no matter what I do, he refuses to work. I want shadow to paint 10px and # 000. Thanks You must apply it to your CSS. div {box-shadow: 4px 0 2px # 222, -4px 0 2px # 222; } Here's an example

intuit partner platform - realmId doesn't come from QBO through the OpenId workflow -

We are trying to implement OpenID in our application so that we can connect to QBO. As an example, we use code provided by Intuit The problem is that realmId is zero, basically it is back from the intuit login page on our app Does not come. All other data is correct, such as name, email. We define the attribute fetch.Attributes.Add (new feature (request "http://axschema.org/intuit/ RealmId", true, 1 )); I have read that it was in the bug in Intuit regarding setting some cookies. Is this a problem or am I doing something wrong? I can post more codes if I need to, but this is too much as provided by Intuit. When the customer authorizes access to their data through 3-foot oath flows , Then the realmid call back URL will be on the query string that you provide. There is always a client of OpenID workflow who selects a QuickBooks company. After the OpenID flow, call the Javascript function Direct Connect (), you will get a real ID, Oauth flow as mention...

java - I/O Not Working (Copy File, Paste It) -

I'm trying to get this piece of code to work. This is a basic I / O system that copies a file and pastes it in the same directory with the chosen name. It should be simple, but for some reason the program runs, it creates another file, but then it gets trapped. The CPU sits at about 5% for the Java process and the file is never full. It only copies some figures and then I think it has got stuck in an infinite loop somewhere. I have already compared my code with the byte stream tutorial. Extra: I just read it what he was reading and reading this value 255 is stuck on the infinite loop. If it helps, besides, I compile the code directly from the Oracle website and it does the same thing. I can tell it what it is. Can anyone tell me what I am doing wrong? Thank you (PS: I am using Eclipse 4.2.0.). This is the file I am copying: package fileio; Import java.io * *; Import system Debug; Public class file usage {public static zero copyFileTo (string file2Copy, string fil...

Sencha Touch make Dataview dynamic elements draggable -

I have a data view that is populated using a store and a template so that the process is dynamic. Then I want to make each container division (see template) dragable and want to use the following code. I just consider the container divs (image + name) to be draggable, but instead the whole data view is draggable. Wondering what I am doing? Ext.define ('MyApp.view.allImages', expand: 'Ext.dataview.DataView', xtype: 'cams', required: ['MyApp.store.images' ], Config: {title: 'test', store: 'images', baseCls:' camera-list ', itemTpl: [' id id = "camimage"> "," div class = "Image" style = "background-image: url ({fullimage})"> gt; & gt; / div & gt; ',' & lt; div class = "name" & gt; {address} & lt; / Doc: 'Topbar', Title: 'Gainsville'}, {xtype: 'toolbar', ' This is a problem with the lifetime of the component...

C++: vector implementation and dynamic memory allocation -

I was trying to understand how vector is implemented in C ++ It was asked, and so I looked at it, and I have a small question that it is right to believe the implementation in the connected question, we see this code: int main () {Vector & lt; Int & gt; Test2 = test_Vector (); Cout & lt; & Lt; Test 2 [0] & lt; & Lt; Endl; Return 0; } // Below is not a STL vector object, but one of the related questions, // where the STL vector asking which attempts to apply itself / vector & lt; Int & gt; Test_Vector () {Vector & lt; Int & gt; testing; Test.push_back (5); Return examination; } As I understand, test object is created locally, so when test_vector The method returns, the local object exits from the scope, causing the destructor to be called and delete - dials the dynamic array. Since the code actually works and 5 prints, I think I am wrong, what is the correct explanation? You are right, but you are missing an important poin...

ruby - Rails+MongoDB: Find ObjectId bigger than given value -

I am trying to find the next (latest) document in MongoDB: Article.find ({'_id' => gt; {"$ gt" = & gt; Mopped :: BSON :: Object ID (id_from_database)}} But every time I I get this query, I get it Problem: Document (s) not found for class article with id (s) {"_id" => {"$ gt "= & Gt;" Value given "}}. I have installed these gems: Mani 'monogoid' mani 'BSN' mani 'BSANIX' But still the problem is not found ... I would be grateful for every help! Thanks the following object article.where ({: _ id = & gt; { $ {Gt = & gt; id_from_database}}. Sort ({: _ id = & gt; 1}). First

Groovy/Grails: Get key:value pairs satisfying a regexp -

I have a map and want to get all the keys: Add value where the key corresponds to a regular expression I have A solution where I find the key (for the key) and loop first through grep. But there should be a simple solution (or I'm hoping). Ex: def qmap = [name: "hair", style: 'direct', color_1 : 'brown' , Color_2: 'blonde', color_3: 'black'] I would like to get a submap with colors only. def color = [color_1: 'brown', color_2: 'blonde', color_3: 'black'] I can get keys using .grep, but it Only gives me the keys and I need a loop to get value. def colorKeys = qmap.keySet (). Grep (~ / ^ color. * /) How to do any idea? you can qmap.subMap (colorKeys)

batch file - EQU was unexpected at this time? -

Hi, when I try to run that batch code, it says that EEC was fair this time ..? I've tried% input% == and they say the same message in a way. When I start the program on the way, it automatically brings it down in the lower section below. I went to see if he would solve my problem (it was on top). Can you help me solve this problem? Since you have not made a clue of your 140+ line code where you get the error, we guess Decreases in applying. The general reason for this error is possibly) in the query line, % input% == , the reason is quite simple Variable Input does not have any value, so the line goes if eq [well, I do not know the rest because you have not indicated what this can be ] Treatment (1) If% is defined somewhere with% input% equ ... then treatment (2) if "% input%" is the same "whatever" ". .. ... cure (3) if x% input% equals anything ... (Where x can be almost any character, or rather a suffix The object is to ensure ...

sql - MySQL - Counting transactions related to the most recent visit -

Suppose I have two tables in the same MySQL db: The first inbound_ campaign_visit table is such that looks like. + ---- + ----------- + ------------------ + ------- --------------- + | ID | User_id | Inbound_campaign | Date | + ---- + ----------- + ------------------ + ------------- -------- + | 1 | 1 | 1 | 2013-02-18 13:00:00 | | 2 | 1 | 2 | 2013-02-24 13:00:00 | | 3 | 2 | 3 | 01-01-01 01:00:00 | | 4 | 2 | 2 | 2013-02-24 19: 00:00 | + ---- + ----------- + ------------------ + ------------- -------- + Clicking on this campaign's campaign results in each time a user visits my site. The "Date" column shows the time when they came to the site. The second table is my transaction table. + -------- + --- ------ + --------------------- + | ID | User_id | Creation_date | + -------- + --------- + --------------------- + | 321639 | 1 | 2013-02-18 14:00:00 | | 321640 | 1 | 2013-02-24 15:00:00 | | 321641 | 1 | 2013-02-25 13:00:00 | | 321642 | 1 | 2013-04-05 12:00:00 | |...

Google oAuth v2 - user profile - country parameter missing -

I would like to get information about the user's country as specified in the document [1]. I tried to use the Google API Explorer and the sample, and still can not get the information of the country. I have also tried to update the profile information of the test account. [1] [2] In the Google API, the Area Editor Country are either some unknown ways that anyone Also knows about it, assuming that the user will provide full access to his profile in the customer profile. I'm afraid the documentation is incompatible in the description of the userinfo.profile scope We list the "country" as part of the user's authorized profile information. However, and later described in the documentation, locale information is provided instead. The document will update soon to avoid further confusion.

CSS3 animating border-radius on Firefox not working -

I am currently trying to create an animated extension area (circle) that is CS3 only I managed to work on animation on webkit browsers which kept the circular / circle shape of an animated element, but I do not know why this does not work on Firefox, some boundaries apply to it ( About 20px) but does not work as it works on WebKit. Here is the code that I use. @ - WebKit-keyframe extension area {0% {padding: 10px; Opacity: 0;} 25% {height: 150px; Boundary-radius: 150px; Width: 150px; Left: 520px; Top: 200px;} 55% {Height: 350px; Limit-Radius: 500px; Width: 350px; Left: 420px; Top: 100px;} 75% {Height: 547px; Range radius: 700px; Width: 700px; Top: 0; Left: 250px;} 100% {height: 547px; Opacity: 1; Top: 0px; Left: 0; Width: 1180px; Boundary-radius: 0;}} @ -mose-keyframe extension page {0% {padding: 10px; Height: 20px; Width: 20px; Opacity: 0; -image-radius: 50px;} 25% {height: 150px; Width: 150px; Left: 520px; Top: 200px; -image-radius: 150px;} 55% {height: 350px; Width: 350px...

filter - Change default font color for of bbpress tinymce forum submission textarea -

So I found that changing the content.css from the TinyS plugin folder did not work, I tried to add the content File on the Functions: function tinymce_other_css_for_content ($ init) {$ init ['content_css'] = get_bloginfo ('stylesheet_url'). "Customtimymce.css"; Return $ init; } Add_filter ('tiny_mce_before_init', 'tinymce_other_css_for_content'); and added body # tinymce.mceContentBody.bbp_reply_content.post-type-topic.wp-editor {color: red! Important; Was not working, is there something that I'm doing wrong? Thanks in advance. PS I am also looking for a solution which gives color only to text colors for the forum, not the WP admin dashboard. "post-text" itemprop = "text"> may be due to some types of caching (client or server-side), without the knowledge of the systems involved and their configuration

one to many - JPA Query - JPQL to select parents that have ALL children with a property in a SET of values -

Text after "itemprop =" text "> I write a JPQL query to go back to the institutions whereby there is a set of assets for all children of the company Am trying to assume. This is similar to the following question, but where more than one possible value is seen: Here is a practical example optimized by the question above ... I want to select those fathers who are all children who are either blonde or redhead if only one black is hairy. Father is not selected I like the above question ... Parent.children.haircolor) Choose p from parent ('blonde', 'redhead') or parent where parent.children. In all of the hair color ('Gora', 'redhead') They did not have much hope of working, but only one thing has been done so far for one attempt. . Select parent from parent where p.children from c = 0 (select count (c) where c.haircolor is not ('blonde', 'redhead')) I really would not like to run suc...

php - Counter inside while loop every X times increase -

I'm not sure how to work this question, but I currently have loop output in & Lt; Li & gt; ; & Lt; / Li & gt; . Let's say there are 35 rows and I want to increase the counter every five times. Then the output will be something like this. - name - 1 name - 2 name - 2 name - 2 name - 2 name - 2 name - 3 name - 3 name - 3 name - 3 Name - 3 Name - 4 Name and so on ... I tried to count in the loop and compare the number to see if it is less than five And if not then to increase it, but I know it's not right. ($ Stmt-> Fatch ()) {$ HTML. = "& Lt; li Data-id = '$ id' data-name = '$ name' & gt; $ count name & lt; / li & gt;"; } To try to clarify this ... basically I would like to run a counter variable. Starting from 1, but every fifth time through the loop, I would like to increase this count variable from one. $ count = $ rows = 0; While ($ stmt-> fetch ()) {if ($ rows% 5 == 0) $ count ++; $ Rows +...

javascript - Parse's API says to use a curl request. I want to use AJAX -

I am creating an object using parse API and how and how it will be used in my javascript code. > Parse API: How to create an object given in a parse API, this is an example : Curl -X Post \ -H "X-Parse-Application-ID: bLAj1fl7B77TZYo1zv9vIAiUgC19RXgpzsFZeVgM" \ -H "X-Pars-Rest-API-Key: PPRIDXXHH 1JwveI2AdhsAhGpx7WjXfvYTSYXh" \ -H "Content Type: Application / Jason" \ -d '{"score": 1337, "player name": "scene plot", "cheat mode": incorrect}' \ https://api.parse.com/1/classes/GameScore I send a postal request using AJAX I'm trying to add some items to the list item. My Javascript code: button. Click (function () {// $ .ajax ({url: 'https://api.parse.com/1/classes/<className>', // What is a classname? Type: 'Post', Data : Text.val (), // Text error written by the user in a text box: Function (data) {console.log ('error');}, success: function (data) {$ (...

android - Getting coordinate of view with relative to parent ScrollView -

पहले, मेरे पास निम्न ScrollView और लेआउट है। इसका चयनित दृश्य दृश्यमान कोड काम करने तक स्क्रॉल करें। & lt; ScrollView & gt; & LT; LinearLayout & gt; & Lt; जानकारी देखें 1 / & gt; & Lt; जानकारी देखें 2 / & gt; & Lt; जानकारी देखें 3 / & gt; & Lt; / LinearLayout & gt; & Lt; / scrollview & gt; निजी शून्य initScrollView () {यदि (this.selectedInfoView == नल) {// स्क्रॉल करने के लिए कुछ भी नहीं वापसी; } ScrollView scrollView = (ScrollView) this.getView ()। FindViewById (R.id.scrollView); Rect rect = new rect (); रीक्ल स्क्रॉलव्यूरेक्ट = नया रीक्ट (); selectedInfoView.getHitRect (रेक्ट); scrollView.getDrawingRect (scrollViewRect); Int dy = rect.bottom - scrollViewRect.bottom; यदि (डीएटी> 0) {scrollView.scrollBy (0, dy); }} नोट, getHitRect एक स्तर के माता-पिता के लिए समन्वय का सम्मान वापस करेगा। इसलिए, उपरोक्त कोड काम करेगा। हालांकि, जब थोड़ा जटिल मामला आता है। उपरोक्त कोड अब काम नहीं करता है। & lt; ScrollView ...

javascript - drawing a line path in google map with GPS co-ordinates -

Please tell me how to attract a line path in using GPS coordinates can that I retrieved from the database examples of GPS coordinates that I got as shown below know 10.013566,76.331549 10.013566,76.331463 10.013503,76.331313 10.013482,76.331205 10.013419,76.330926 10.013334, 76.330712 10.013313,76.330411 10.013292,76.330175 10.013228,76.329854 10.013144,76.329553 10.013059,76.329296 10.012996,76.329017 10.012869,76.328802 10.012785,76.328545 10.012700,76.328223 10.012679,76.328030 10.012658,76.327837 10.012637,76.3 27600 10.012573,76.327322 10.012552,76.327043 10.012552,76.326807 10.012510,76.326613 10.012447,76.326399 10.012404,76.326227 try this function initialize () {var center = new google.maps.LatLng (10.012869,76.328802); Var myOptions = {zoom: 18, center: Center, map-type control: True, map type control options: {style: google.maps.MapTypeControlStyle.DROPDOWN_MENU}, Nevigeshnniyntrn truth, map type IID: google.maps.MapTypeId.HYBRID } Var map = new Googl...

android - Add a view to a fragment from mainActivity -

I want to dynamically add pieces from this main activity. From , the edit () API in the piece square, what other options are available to me. I have tried to do fragment.getView () on line 1, but this nullier gives an exception. I do not have good information about piece APIs and there is no time to invest in it through it. Anyone can provide a solution to the problem. Main activity.Java Public class increases main activity activity {@ Override secured zero on credit (saved bundle) InstanceState) {Super. Contents (Saved Instance State); SetContentView (R.layout.activity_main); Actionbar Bar = GetActionbar (); Bar.setNavigationMode (ActionBar.NAVIGATION_MODE_TABS); Actionbars Tab tab A = bar.notube (). SetText ("A Tab"); Actionbars Tab tab b = bar.notube (). SetText ("B Tab"); Actionbars Tab tabs = bar.notube (). Settext ("c-tab"); Piece segment A = new afraagmentabab (); Piece segment B = new BFragmentTab (); Piece piece C = new CFragmentT...

clojure - same function from two ns clashes in repl -

In my copy I have loaded the NS from a file containing the function parse . Then (use 'demo.one') works fine when typing in the repl. Now I have another NS, which has a function with the same name. When I type it (`use 'demo.two), then gives me an error How do I stop function name conflict in both NS? In the above, I would like to use the function only from other ns. Thanks You can fully qualify your code calls Required can avoid conflicts with namespace and like ('Demo is required.') (Demo two / parse " EFOO ")

c# - store double quotes inside single quotes -

I want to store characters in four axes, one of them is double quote ("). But I get something wrong I'm doing. personal char [] character = new letter [] {'\ "\"', ...}; four type can store only one letter, you are trying to store two double quotes Try it: personal char [] characters = new four [] {'' ', ...}; You are also trying to avoid it but it is unnecessary to avoid double coat only if you are inside a string, that is, inside double quotes.

SQLAlchemy: How to save an object with the foreign key? -

मुझे ये वर्ग मिल गए हैं। वर्ग उपयोगकर्ता (ऑब्जेक्ट): query = db_session .query_property () def __init __ (स्वयं, उपयोगकर्ता नाम, passhash, नमक): self.username = उपयोगकर्ता नाम self.passhash = passhash self.salt = नमक उपयोगकर्ताओं = तालिका ('उपयोगकर्ता', मेटाडेटा, कॉलम ('आईडी', पूर्णांक, प्राथमिक_की कॉलम ('पासवर्ड', स्ट्रिंग), कॉलम ('नमक', स्ट्रिंग)) कॉलर (उपयोगकर्ता, उपयोगकर्ता) वर्ग बुय (ऑब्जेक्ट): क्वेरी = डीबी_सेशन। क्वेरी_प्रॉपर्टी () लेखक = संबंध ("यूजर", बैकफ्रम = पीकेएफआरएफ ("buoys", ऑर्डर_बी = आईडी)) def __init __ (स्वयं, लेबल, सीसा, शरीर, लेखक): self.label = label self.lead = lead self स्तंभ ('लेबल', स्ट्रिंग), कॉलम ('लीड', स्ट्रिंग), कॉलम ('लीड्स', स्ट्रिंग), कॉलम ('बॉय', मेटाडेटा, कॉलम ('आईडी', पूर्णांक, प्राथमिक_की = सच), कॉलम ('बॉडी', स्ट्रिंग), कॉलम ('लेखक_आईडी', पूर्णांक, विदेशी की ('यूज़र्स.आईडी'))) मैपर (बोए, बूम्स) मेरे पायथन फ्लास्क कोड में एक...

javascript - get the value from map using struts tags by passing another property as key -

& lt; s: संपत्ति मान = "वर्तमान चरण" / & gt; & Lt; s: सेट var = "nextURL" मान = "% {अभियान स्टैप्स}। (वर्तमान चरण) .nextUrl}" स्कोप = "पृष्ठ" / & gt; & Lt; s: संपत्ति मूल्य = "nextURL" / & gt; यहाँ वर्तमान चरण एक संपत्ति है जिसमें समस्त मूल्य क्रिया वर्ग से आ रहा है। और अभियानस्टेप मैप लिंक वाला हैशमैप है। मुझे निम्नलिखित कोड के साथ जावा में वैल्यू मिलना है I campaignStepsMap.get (currentStep) .nextUrl (); लेकिन यहां जेएसपी पृष्ठ में मुझे सूचकांक के अनुरूप मूल्य नहीं मिल रहा है। लगता है मूल्य = "% {अभियान} स्टेप्समैप.गेट (वर्तमान चरण) .nextUrl}" पूर्णांक के रूप में वर्तमान चरण नहीं पढ़ रहा है मुझे क्या करना चाहिए? आप इस तरह के नक्शे से मूल्य प्राप्त कर सकते हैं: & lt; s: प्रॉपर्टी वैल्यू = "अभियान स्टैप्समैप [वर्तमान स्टैप] .nextUrl" / & gt; और अगर आप & lt; s: set & gt; टैग को scope = "page" से उपयोग करना चाहते हैं, तो आपको #attr ...

java - threads running in sequence -

I'm new to Java and I'm wondering how to do something in an interview question. You have three threads T1 , T2 and T3 . How do you ensure that the order T1 , T2 , T3 . The interviewer asked me to write this program. I know that the answer to this question is join or the bottom link but how could I not be able to succeed, can you tell me to do this How about to know? Create 3 threads but do not start them, go as follows T1.start (); T1.join (); T2.start (); T2.join (); T3.start (); Thread waits for a thread to finish adding, so the guarantee of the command is

html - css pseudo class last-child issue -

मुझे : अंतिम-बच्चा छद्म चयनकर्ता का उपयोग करते समय एक समस्या का सामना करना पड़ रहा है। मेरे पास निम्न मार्कअप है: & lt; div class = "apply_container" & gt; & Lt; फ़ॉर्म श्रेणी = "मार्जिन" & gt; & Lt; div वर्ग = "लागू_इन सीमा" & gt; & Lt; span & gt; मुझे बताएं कि आपको नौकरी क्यों चाहिए? & Lt; / span & gt; & Lt; / div & gt; & Lt; div वर्ग = "लागू_इन" & gt; & Lt; span & gt; कुछ अन्य विवरण & lt; / span & gt; & Lt; / div & gt; & Lt; div class = "apply_inn स्थान" & gt; & Lt; span & gt; एक विशेष स्थान पर लागू करें & lt; / span & gt; & Lt; / div & gt; & Lt; div वर्ग = "फॉर्म-एक्शन" & gt; & Lt; बटन प्रकार = "सबमिट करें" वर्ग = "पुल-दाएं बीटीएन बीटीएन-जानकारी" & gt; & Lt; / बटन & gt; सबमिट करें & Lt; / div & gt; & Lt; / प्रपत्र & gt; & Lt; / div & ...

php - Loading drivers from other modules in Code Igniter HMVC -

मैं wiredesignz द्वारा कोड इग्नेटर एचएमवीसी कार्यान्वयन का उपयोग कर रहा हूं। हमारे पास दो मॉड्यूल हैं, एक वास्तव में उत्पाद / श्रेणियां आदि शॉपिंग कार्ट के लिए, दूसरे उत्पादों के आदेशों के प्रबंधन के लिए। यह सब ठीक काम कर रहा है, लेकिन हम एक साझा शिपिंग चालक को लागू करने की कोशिश कर रहे हैं। शिपिंग ड्राइवर अपने मॉड्यूल में बैठता है ताकि modules / shipping / libraries / shipping / shipping.php तो, मैं "उसी टेस्ट" नामक एक फ़ोल्डर से लोड कर सकता हूं। Php "के साथ $ this- & gt; लोड- & gt; पुस्तकालय ('शिपिंग / परीक्षण'); लेकिन एक ड्राइवर लोड करने का प्रयास कर रहा है $ this- & gt; लोड- & gt; चालक ('शिपिंग / शिपिंग') में परिणाम अनुरोधित वर्ग को लोड करने में असमर्थ: शिपिंग एचएमवीसी घटकों के माध्यम से खोजना यह लोड करने के लिए एक ओवरराइड प्रतीत होता है पुस्तकालयों, लेकिन ड्राइवरों, मैं इसे कैसे काम करने के लिए प्राप्त कर सकता हूं? मेरीबेस समस्या है संवेदनशील फ़ोल्डर और amp; फाइल नाम। मॉड्यूल / शिपिंग / पुस्तका...

java - How to tell IntelliJ to use folder "web" instead of "webapp" for maven when building a war file? -

What am I doing: A new project with intelliases with the Maven module Create / Li> Add Framework support for this project and select: JSF. Go to pom.xml and add: Packaging: War . And I click in the MyWain window in Knowledge: Clean install. Good build fails, because the web instead of the Meowen webpage directory. For the construction of the project Therefore, if I change the name of the folder for Web to WebApp then it is OK However, I want to know more about IntelliJ and maven, so I want to force the folder to use the web how can I do this properly Using the command line? IntelliJ means absolutely without invvolving? Using Intellij? Regards You can configure in the file. & lt; Plugins & gt; & Lt; Plugin & gt; & Lt; Group & gt; Org.apache.maven.plugins & lt; / Group & gt; & Lt; ArtifactId & gt; Maven War Plugin & lt; / ArtifactId> & Lt; Configuration & gt; & Lt; WarSourceDirectory ...

asp.net mvc - mini-profiler drop some steps -

मैं अपने एएसपी एमवीसी 4 वेब अनुप्रयोग पर स्टैकहोवरफ्लो मिनीप्रोफाइल का उपयोग करना शुरू कर रहा हूं। मैंने क्रमशः BeginRequest और EndRequest में केवल प्रारंभ और रोक कॉल डाल दिए हैं I मैंने एक ही क्रिया में कुछ चरणों को जोड़ दिया है: निजी कार्यवाही MyAction (स्ट्रिंग आईडी) {(MiniProfiler.Current.Step ("GatherReportItems")) का उपयोग करके {...} का उपयोग करके ( MiniProfiler.Current.Step ("BuildReportViewModel")) {...} (MiniProfiler.Current.Step का उपयोग कर ("AddingExtraInfo")) {...}} समस्या यह है कि उस कार्रवाई के पहले अनुरोध पर मैं सभी 3 चरणों को देख सकता हूं, और किसी भी अनुरोध पर केवल पहला कदम देखता हूं और अन्य में से कोई भी नहीं देखता हूं। जब मैं अपना आवेदन डिबग करता हूँ तो मैं मिनीपरफाइलर के अंदर देख सकता हूं। - & gt; सिर - & gt; बच्चे हैं कि सभी 3 कदम हैं यह क्लाइंट डिस्प्ले में है (समय बॉक्स पर क्लिक करने के बाद) कि मैं केवल चरणों का एक हिस्सा देख सकता हूं। मैंने अब नोटिस किया है कि प्रोफाइलिंग पॉपअप के निचले भाग में छोटा दिखाना ...

Ruby: What is a simple way of searching for certain criteria in an array? -

I have an array that I want to make sure that all numbers are between 1 and 6. This is my array: Estimate = [2, 5, 6, 8] Or something like this, the user inputs the sequence, I Want a way to check, and if the number is not between 1 and 6, then it does not come out of the loop. And it can also be simple! estimate.All? {| I (1..6). Is it included? (I)}

c# streamwriter add line on file creation -

I'm successfully writing data in CSV files (yay!) In a console app Streamwriter is now excellent for me. using (StreamWriter author = new streamer (file, true)) {writer.WriteLine (strToSave); } This code adds to an existing file or, if it does not exist, then first creates a new file. I should do this, if the file does not exist, then create a file, write a header line for the CSV column, then type the data in general. How can I go about doing this? Thank you. You can check the weather first, using the file file. Example () Method If the file already exists, then you do not need to type the header, and if the current value is false , type the title (assuming that . Type Csv in the title variable header and then type the text you want. bool exists = file. Axis (file); (Streamer Writer is using author = new streamer (file, true)) (if (present) is the author. WrightLine; writer.WriteLine (strToSave);}

Overwrite master with local (Git) -

इस सवाल का पहले से ही एक उत्तर है: 3 जवाब मुझे पता होना चाहिए धन्यवाद। पुनश्च मैं गिट में बहुत नया हूं। यह पर्याप्त हो सकता है: जीआईटी चेकआउट-बी मास्टर एक्स से: अगर -बी दिया गया है, & lt; New_branch & gt; बनाया जाता है यदि वह मौजूद नहीं है; अन्यथा, यह रीसेट है। यह लेन-देन का समतुल्य है: $ git branch -f & lt; शाखा & gt; [& Lt; प्रारंभ बिंदु & gt;] $ git चेकआउट & lt; शाखा & gt; ऐसा कहने के लिए, जब तक " git checkou t" सफल नहीं है तब तक शाखा रीसेट / बनाई नहीं है। यह "" में वर्णित अन्य विकल्पों की तुलना में थोड़ा छोटा है।

javascript - Why console.log in this code return undefined? -

var el = $ ('कंटेनर'); Var एंकर = नए अर्रे ('नौकरियां', 'पोर्टफोलियो', 'डॉक्स', 'इंटरएर', 'कीमत'); के लिए (var i = 0; i & lt; anchors.length; i ++) {एल.ऑन ('क्लिक', 'एक [href $ = "#' + एंकर [i] + '"]', फ़ंक्शन (e) { E.preventDefault (); console.log (एंकर [i]); $ .scrollTo ('a [name =' '+ anchors [i] +' "] ');}); }; जब आप उस तत्व पर क्लिक करते हैं, i होता anchors.length के मान में वृद्धि हुई। आपके क्लिक हैंडलर का i का संदर्भ है। एक अनसुलझे प्रॉपर्टी देखने का जावास्क्रिप्ट में रिटर्न अपरिभाषित । यह तत्व के संदर्भ के रूप में उपयोग करना आसान होगा अन्यथा, मान के द्वारा i के मूल्य को पारित करने का एक तरीका ढूंढें, इसका प्रत्यक्ष संदर्भ नहीं।

url rewriting - Nginx URL rewrite changes URL -

I have to redirect a URL to nginx. My rule looks like this that clearly changes the URL to the browser, which is not expected. location / {rewrite ^ / dentist / bangalore / indiranagar / $ http: // abc.com/doctorsInArea.htm?cID=bangalore&aid=indiranagar break; } Let me read another question here which asks me to remove the http part. I tried place / {rewrite ^ / dentist / Bangalore / Indiranagar / $ / in doctor's arrow. Htm? Cid = bangalore & aid = indiranagar break; } It throws a 404 even if it works fine when it hits the browser. Any insights on this problem will be approved. I had to work using the following. place / {rewrite "/ dentist / bangalore / indiranagar /" /doctorsInArea.htm?cID=bangalore&aid=indiranagar final; } Thanks!

java - Getting return value from onClickListener of android -

कृपया देखें कि मैंने पोस्ट को अपडेट किया है क्या मैं यह मेरा कोड है जिसमें मैं एंड्रॉइड एप्लिकेशन प्रारंभ होने के साथ ही एक पुष्टिकरण बॉक्स विकसित कर रहा हूं पैकेज com.example.alertboxandloadingwidgets; Importroid.os.Bundle; आयात एंड्रॉइड। एप। आयात करें android.app.AlertDialog; आयात करें android.content.Context; आयात करें android.content.DialogInterface; Import android.view.Menu; आयात करें android.widget.Toast; सार्वजनिक कक्षा मुख्य गतिविधि गतिविधि को बढ़ाता है {@ ओवरराइड संरक्षित शून्य पर क्रिएट (बंडल सहेजे गए इन्स्टैंसस्टेट) {super.onCreate (savedInstanceState); setContentView (R.layout.activity_main); बूलियन परिणाम = शो ConfirmationBox ("क्या आप वाकई यह करना चाहते हैं", यह); } सार्वजनिक बूलियन शो ConfirmationBox (स्ट्रिंग संदेशटोशो, अंतिम संदर्भ संदर्भ) {// चेतावनी बॉक्स AlertDialog.Builder alertbox = नया AlertDialog.Builder (संदर्भ) तैयार करें; // चेतावनी बॉक्स प्रदर्शित करने के लिए संदेश सेट करें .सेटमेस्ज (संदेशटोझो); // एक सकारात्मक / हां बटन सेट करें और...

java - How to make integer element value in xsd not become zero when no value entered in SOAP XML? -

I have a Java web service application designed with jaxb and spring webservice. I have a complex type like this in an xsd: ... & Lt; / Sequence & gt; & Lt; / ComplexType & gt; Using the xjc , I get the Xbox class from XSD: Public class GetRecordsRequest {protected integer MaxRecords; Public Int MXRecs () {Return MaxRecord; } Public Zero Set Maxures (int value) {this.maxRecords = value; }} Now, the problem is that if I have entered an empty value for the maxRecords in the soap request xml from the Sopadhila application: & lt; Soapenv: envelope xmlns: soapnavi = "http://schemas.xmlsoap.org/soap/envelope/" xmlns: ns1 = "http://www.test.com/ns1" & gt; & Lt; Soapenv: header / & gt; & Lt; Soapenv: body & gt; & Lt; Ns1 also: GetRecordsRequest & gt; & Lt; Ns1 also: maxRecords & gt; & Lt; / Ns1 also: maxRecords & gt; & Lt; / Ns1 also: GetRecordsRequest & gt; & Lt; / Soapenv: Bod...

php - Unable to get span tag using xpath -

& lt; div वर्ग = "उत्पाद_बॉक्स" & gt; & Lt; div class = "list_sale" & gt; & Lt; img src = "लिंक" वर्ग = "सूची" alt = "" & gt; & Lt; div class = "product_box_title" & gt; & Lt; a href = "लिंक" & gt; & lt; मजबूत & gt; शीर्षक यहां & lt; / a & gt; & lt; / strong & gt; & Lt; / div & gt; & Lt; div class = "product_box_desc" & gt; कुछ पाठ & lt; स्ट्राइक & gt; कुछ पाठ & lt; / स्ट्राइक & gt; & Lt; br / & gt; & Lt; span class = "list_price" & gt; यह आवश्यक पाठ है & lt; / span & gt; & Lt; a href = "लिंक" & gt; & lt; मजबूत & gt; कुछ पाठ & lt; / strong & gt; & lt; / a & gt; & Lt; / div & gt; & Lt; div class = "list_buynow" & gt; & Lt; फ़ॉर्म क्रिया = "लिंक" वर्ग = "add_to_cart" method = "post...

ajax - Bootstrap typeahead suggestions replaced when navigation -

I'm using Bootstrap Typeahead to suggest some search results. The results are returned from an Ajax resource, and since this resource is delayed, I am having an unfortunate effect. Example: If you type 4 letter words, then suggestions will appear after two letters. I can move keys up / down through results, but sudden suggestions will be reloaded because the last request has ended. Is there a way to "cancel" any remaining, if the user is currently using it to go through the suggestions key / up key? ('# query'). Taipahed ({item: 4 Source: function (query process) {map = {}; $ getJSON ( '/ app_dev.php / ajax / autosuggest /' + query, function (data) {cars = []; $. Push (vehicle.full);}); Process (vehicle);});}, Updater: Function (item) {each] (Data, Function (i, Vehicle) {Map [vehicle.full] = Vehicles, / There is some item where the item is selected}, Highlighter: function (item) {return item;}, micht: function (item) {returns true;}}); I th...

avoid instantiating maven dependency plugin -

I would like to use "deployed" -feed to deploy some files in my device (using custom Maven plugin By doing), but I do not need Maven-Dipplugin. I received the & lt; Step & gt; Any , & lt; Skip & gt; True and & lt; Inherited & gt; Incorrect . However, the plugin is still configured, which fails in the message: Plugin parameter for org.apache.maven.plugins maven-deploy-plugin 2.4 Failed to configure Because there is no Distribution Management element in my POM. Is there a way to completely remove dependency-plugin from Maven Lifecycle? In my opinion, there is no possibility of working with those solutions because maven- Deploy-plugin is a main plugin, such as Define your definition Plugin it in and install . Apply your profile to trigger the deployment. As you were not expecting is not as fancy, but it should do the trick. If anyone has a better idea then I would also like to hear him, because...

sql - Missing database entries with a null value in row, when performing a linq statment -

तो यहां एसक्यूएल क्वेरी है: अलग A.CategoryName, A.CategoryID चुनें, [डीबीओ]। [डीटीओ] [डीबीओ]। [श्रेणी] एक वाम [ईवैलटूल] में शामिल हो गया। [डीबीओ]। [श्रेणी और प्रोजेक्ट 2] बी पर A.CategoryID = बी.कैशडीआईडी ​​और बी। प्रोजेक्ट आईडी = 65 और उम्मीद है कि समान linq कथन: int pID = (int) सत्र ["projectSession"]; ViewData.Model = (_db.Category से c में _db.CategoryAndProject2 में c.CategoryID बराबर है r.CategoryID को 1 में शामिल होने से j से 1। डीफॉल्ट IFEmpty () जहां j.ProjectID == pID नए श्रेणी DTO का चयन करें {CatID = c। श्रेणीआईडी, कैटनाम = सी। श्रेणी नाम, प्रेजिड = (इंट) जे। प्रोजेक्ट आईडी))। विशिष्ट ()। टूलास्ट (); एसक्यूएल बयान के लिए परिणाम निम्न तालिका है: श्रेणी नाम आईडी परियोजना आईडी - - - - - - - - - - - - - - - - - - - 1 एक्स शून्य शून्य 2 नल ज़ 3 3 नल मी 4 नल न 5 नल मैं 6 नल ओ 7 नल आर 8 नल 9 9 65 यू 10 65 जबकि लिनक स्टेटमेंट केवल सूची 2 पंक्तियों, बिना किसी रिक्त प्रविष्टि के। श्रेणी नाम ID ProjectID - - - - - - - - - - - - - - - - - - - एस 9 65 ...

Replaced image in Android project, but won't update in the app -

I have an Android project, and I want to change the two images I use with the updated people I am So, with eclipse I just remove the old and convert it to the new one with the same name. Then I refresh this project. When I see it in the Painting folder, it was changed but when I run this project, it was still showing an old image in my app. Please let me know the solution. This is very important. Firstly make sure that you have changed the image (S) into all the drawables - folders. If this is the case, after refreshing the project files, in Eclipse Project-> Clean (and choosing your own project) should do the trick. Also, before re-deploying the device, uninstall the previous version of the app.

javascript - Replace the current content of div with another page response -

नमूना कोड: & lt; html & gt; & Lt; शीर्ष & gt; ..... & lt; / head & gt; & LT; बॉडी & gt; & Lt; div id = "content" & gt; & LT; प्रपत्र & gt; .... & lt; इनपुट प्रकार = "सबमिट करें" onclick = "loadAnotherPage ()" / & gt; & Lt; / प्रपत्र & gt; & Lt; / div & gt; & Lt; / body & gt; & Lt; / html & gt; मैं content div में edit_profile.php एक और पेज लोड करना चाहता हूं। पृष्ठ को ताज़ा करने के बिना इसे कैसे प्राप्त किया जा सकता है? मैंने jQuery load () विधि का उपयोग करने की कोशिश की लेकिन ऐसा लगता है कि मैंने कुछ याद किया। किसी भी मदद को बहुत सराहा जाएगा। जब आप सबमिट करें बटन पर क्लिक करते हैं तो यह फॉर्म और पृष्ठ ताज़ा करें सबमिट करता है, यही कारण है कि काम नहीं कर रहा है। सेट प्रकार सेट बटन के बजाय और फिर फ़ंक्शन सेट करें onclick । फ़ंक्शन loadAnotherPage () {$ ("# सामग्री")। लोड ('edit_profile.php'); }

php - How to find center point of two latitude longitude? -

इस सवाल का पहले से ही एक उत्तर है: 3 जवाब मेरे पास दो अक्षांश, देशांतर , अब मैं केंद्र अक्षांश कैसे पा सकता हूँ, उस दो अक्षांश अक्षांश के देशांतर क्या कोई मुझे मदद कर सकता है? परिभाषित करें कि आपके लिए 'केंद्र' क्या है अधिकतर, मैं साधारण औसत का उपयोग करता हूँ। बेहतर उपाय दो वैक्टर (पृथ्वी के केंद्र से) की गणना करना है, उन्हें जोड़ना और परिणाम को सामान्य करना है।

backbone.js accessing model attributes within model - this.attribute VS this.get('attribute')? -

I think a backbone.GS model is declared as a special member variable by saying > this.set ({attributeName: attributeValue}) // this value access.get ('attributeName'); But when I distract the real model, it sounds pretty easy to say: this.attributeName = attributeValue; Using // value.attributeName; In addition, I'll assume that the later version will be faster for the process because it does not go through the event management of backbone.js. So I was wondering how you do with attributes that are primarily used internally in the model. These are the qualities that one really wants to be shielded from outside so that it can be highlighted as an example of the latter, is still not correct when I look at examples for the backbone.js view which can be obtained in another example And if it does not look like, is there a good rule of thumb when using get / set (attribute) or this.attribute while coding within the model? Or perhaps an example of a model that ...

Android - How to get the selected item value from a spinner and put it into a string? -

I have read many questions on this thread, but none of them help me ... this is my code Is: @ override protected void build (bundle saved instainstate) {super. Connet (Saved Instantstate); SetContentView (R.layout.activity_main); Spinner Spinner = (Spinner) Find VViBiID (RID.imc-spinner); // string array and a default spinner layout ArrayAdapter & lt; Charsequence & gt; Create an array adapter using Adapter = Arrayadaptor.Creatofrom Resource (This, R. Ram.ImcAir, AndroidR.Let.Simple_spinner_item); // Specify the layout to use when adapter.setDropDownViewResource (android.R.layout.simple_spinner_dropdown_item) appears on the list; // Adapter spinner spinner. Apply to the adapter; } Selected items on public zeros (adapterview & lt;? & Gt; parent, view view, integer, long id). You can retrieve the selected items using imc_met = parent.getItemAtPosition (pos) .toString (); } I imc_met to public string imc_met; I declare as . The problem is that imc_met does not i...

java - Transforming FileInputStream into a stream that returns hex -

I need to supply data from a binary file as a hen string. I load this whole file into memory Converts it to hex string and fields the hex string as a byte array in the second component. Now the problem is facing that this file is sometimes very large so I get an "out-of-memory exception." The component also accepts an input as input, so I thought I will wrap my file inputstream in another stream, which gives the file as hex string. Although I'm not sure how to do this, and InputStream looks simple enough while subclassaging, I see it is prone to very different learning methods and with special cases. It would also be good if this wheel already exists and I do not have to reprint it. Suggestions? This is the basic idea class HexInputStream FilterInputStream {spreads in HexInputStream (In InputStream) {super (in); } @ Override Public en Read (Byte [] Bref, Int Close, Int Lane) IOException throws {int b = super.read (); String hex = string Format ("% 0...

Clean android project display error in window in eclipse. -

Image
The first time start all errors should appear in the problem window , this error Delete Manually my Android project is run successfully again. And there is a single error while cleaning the project. I am keeping a screen smaller than the eclipse window Please help me .... Make sure that you android.r.java did not import Make sure r. Java is generated By looking at the screen, I can say that if your r.java is not present in the gen folder then This is a problem in your layout View layout XML files and remove the errors from there.

java - Use of Spring Assert.notnull in production code -

I have found an application that uses spring alluring and every Autowold constructor Assert.notNull () process. How can I not see how constructor autovirings make these arguments unusable, so these arguments seem to be redundant and the code has to be confused. I appreciate that this unit may be useful for testing where ARG is manually injected, but I think the NPE in the probe will be sufficient enough to indicate that The test has not started properly. Before I go and the 'clean' code I thought I would just ask if I remember something? I think this is just extra prevention - a feature of the automaker's container, which is different from your code and can be disabled at any time, in this way you can clearly define the contractor's contract. Let's say someone has disabled the autoworker on that particular class and has changed it with: & lt; Bean id = "myBean" class = "com.my.company.BeanImpl" & gt; & Lt; Constructor-a...

magento - Where is Ebizmarts/MageMonkey/Block/Lists.php used? -

यहां मेग्मेन्टो मेगेमोकी प्लगइन में एक फाइल है: एप / कोड / सामुदायिक / ईबिज़मर्ट्स / मेजमोकीक / ब्लॉक / लिस्ट.एफ़पी यह क्या है? यह कहाँ इस्तेमाल किया जाता है? मुझे इसमें कोई भी सबूत शामिल नहीं किया जा सकता है, लेकिन इसमें कुछ फ़ंक्शन हैं जिन्हें मुझे संशोधित करने की आवश्यकता है, इसलिए मुझे पता होना चाहिए कि परीक्षण के लिए इसका उपयोग कैसे करना है। तो, क्या यह कहीं भी प्रयोग किया जाता है? मैं इसे कैसे ट्रिगर कर सकता हूं? या क्या मैं इस फ़ाइल को कुछ भी प्रभावित किए बिना सुरक्षित रूप से हटा सकता हूं? यदि आप एक एमवीसी फ्रेमवर्क, मॉडल, व्यू और नियंत्रक के 3 घटक के बारे में जानते हैं, तो ऊपर एक ब्लॉक फाइल है, जब एक .phtml टेम्पलेट फ़ाइल के साथ मिलाकर देखें MVC का भाग। Magento में, दृश्य प्रत्येक मॉड्यूल के भीतर लेआउट XML फ़ाइलों के माध्यम से तत्काल होता है, जो दोनों ब्लॉकों और टेम्प्लेट को परिभाषित करता है और ये लेआउट हैंडल द्वारा पृष्ठ विशिष्ट हो सकते हैं। यह निर्धारित करने के लिए कि उपरोक्त ब्लॉक उपयोग में है, आपको यह पता लगाना होगा कि ब्लॉक लेआउट फ़ाइलों में से क...

java - Hibernate expecting wrong parameter type in HQL -

We have a hierarchy of institutions, e.g. Intangible baskets and two concrete, which in turn can be a list of some other items, for example, with precise hierarchy (Salebaketitum, Return Basketum). @Entity @XStreamAlias ​​( "Basket") @DiscriminatorColumn (name = "basket_type") @DiscriminatorOptions (force = true) @Inheritance (strategy = InheritanceType.SINGLE_TABLE) public abstract class basket & Lt; T basketball title & gt; @ Entity @ Dispinning value (value = "cell") Public class sales bucket basket spreads & lt; SalesBackTime & gt; @ Entity @ Desirminator Value (value = "return") Public class return basket basket expanded in & lt; ReturnBasketItem & gt; @Entity @Table (name = "basket_item") @XStreamAlias ​​( "basket_str") @DiscriminatorColumn (name = "basket_item_type") @DiscriminatorOptions (force = true) @Inheritance (strategy = InheritanceType.SINGLE_TABLE) public abstract class ...

javascript - how to get the value of an option in select menu onChange using jquery? -

I am trying to apply the clone selection menu using the following plugins: But I am unable to get the option value of the selection menu, instead it gives the option text. How to get the value of an option (but not text) in the onChange in the following selection menu by using the jquery call function? & lt; Script type = "text / javascript" & gt; JQuery (document) .ready (function ($) {$ ("selection"). ScrollectBox ({predetermined: 'dropdown', numVisibleOptions: 4, scrollInterval: 150, scrollOn: 'hover'});}); and choose; Onchange = "function (this);" Id = "selector" category = "selection" & gt; & Lt; Option value = "" selected = "select topic" & gt; Select topic & lt; / Option & gt; & Lt; Option value = "food" & gt; Food & lt; / Options & gt; & Lt; Option value = "P" & gt; Drink & lt; / Options & ...

c# - Validation in GridView not working for TextBox in EditItemTemplate -

I am trying to add a RegularExpressionValidator to a text box in a Am EditItemTemplate in a GridView control. When a user clicks on "Update", the input is incorrect, the verifier's work (error message is showing). But, in the OnRowUpdating method, I have the page. ISIIDID is == true . Why is it happening ASPX code: & lt; ASP: GridView id = "dgvsaldoPV" runat = "server" view = "false" AutoGenerateColumns = "false" ShowFooter = "True" AllowSorting = "True" OnSorting = "TaskGridView_SortingSaldoPV" OnRow Edit = "gv1_RowEditing" OnRowUpdating = "gv1_RowUpdating" onRowCancelingEdit = "Gv1_RowCancelingEdit" DataKeyNames = "ID_CASSA" & gt; & Lt; AlternatingRowStyle BackColor = "#FFFFCC" / & gt; & Lt; Columns & gt; & Lt; Asp: TemplateField HeaderText = "insert" = "incorrect" sorted expression = ...

c# - what am I missing here? DataGrid and ListView not getting populated in WPF application -

I am following a book on C # object-oriented programming and this application is not working. Datagrids and Listview are not populating. What important thing am I missing? I can think that the only thing is that I am not connecting to the database because I do not know the syntax for the connection string, what is put in the data source = and so on. data source. \ Sqlexpress is in the book but my SQL Server 2012 is There is no error, so I do not know what to do. Here is the code as the book: Back @ "Integrated Security = True; Data Source =. \ SQLEXPRESS;" + "Initial Catalog = OfficeSppy" "; As I have written, here is the code: back @" data source = servername ; Initial Catalog = OfficeSupply "+ @" User ID = Username; Password = password "; I am completely noob, so I'm not completely sure that this is the problem. SQL data source or object data source div class = "post-text" itemproc = "text...

java - Thread in android not working as expected -

I'm following a guide that shows how to create a pong game. There is a part, where I want to make a thread, and the function that moves the ball. This is the code I created: package com. Ozadari.pingpong; Public class ping pong game thread {private ball gameball; Private PingPoint GameView; Public PingPongGame (Ball the Ball, Pingpong Wee Men V) {this.gameBall = theBall; This. GameView = mainView; } @ Override Public Wide Run (While {true} {this.gameBall.moveBall (); This.gameView.postInvalidate (); Try {PingPongGame.sleep (5); } Grip (Interrupted e) e.printStackTrace (); }}}} is called a thread and works, but it does not print anything. I tried to cancel the infinito loop and tried to run the loop 100 times. After waiting for some time for me, it prints on screen because it should be after 100 runs, but it does not print anything in the middle. What is the problem? How can I fix this? Unaware of the code you posted but anyway, you handler and run it once every t...