Posts

Showing posts from June, 2014

python - Properly Defining Relationships in Django DB -

I am working on the Fitness Games web app. The idea is that there is a certain number of weeks in which each person must complete before appearing next week. Even my models.py schema for the app is: Import the user from the import model from django.contrib.auth.models class WeekOne (models.Model): squat = models.PositiveIntegerField () lunges = models.PositiveIntegerField () skipStairs = models.BooleanField () stairDaysCount = models.PositiveSmallIntegerField () # set to true (squat == 1000), (lunges == 250), # (skipStairs it is true), and (stairDaysCount == 3) weekOneComplete = models.BooleanField () class UserProfile (models.Model): user = models.OneToOneField (user) weekOne = models.ForeignKey (Viagne) I lost some points. First of all, obviously I want every user to be able to track their progress and any other user can see it. What is the best way to do this one week a foreign ? If so, how does each user's data be used after defining this relationship? For exam...

asp.net - TFS Build Process Publishes Web Site under different name than specified in Publish Profile -

I've been using the building to publish a Web site using TFS I've defined published a profile Am It is revealed, but the Web application does not publish a Web application project names, specify names published profile I if I published using a published profile on your local machine, it published profile Publishes with the name specified in I, I am using an administrative account in both cases, although it is a TFS Am local manufacture of non-domain account case be Use logic with this type (proper details removed for security reasons) :. / p: DeployOnBuild = true / p: DeployTarget = MsDeployPublish / p: PublishProfile = MyProfile / p: AllowUntrustedCertificate = true / p: MSDeployPublishMethod = WMSVC / p: MSDeployServiceUrl = https: // SomeName : 8172 / MsDeploy.axd / p: UserName = a name \ LocalAdminDude / p: password = Kucpasward publish profile itself looks like this: & Lt; Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt ;! ...

rpc server C++ Linux server and Windows client -

इस सवाल का पहले से ही एक उत्तर है: 1 जवाब क्या कोई अच्छा कार्यान्वयन है एक RPC सर्वर जो लिनक्स पर चलता है और विंडोज के लिए एक ग्राहक है इसके लिए प्रोटॉल्फ़फ का इस्तेमाल संदेश के लिए करना चाहिए। सभी कोड सी ++ हैं। केवल उदाहरणों में मैं लिनक्स पर अच्छी तरह से संकलन कर सकता हूं लेकिन विंडोज पर इतनी किस्मत नहीं है! मैंने इन सभी की जांच की इसके बारे में और क्या? आप वास्तव में, जो भी भाषा आप चाहते हैं, उनमें हैंडलर लिख सकते हैं। / P>

replace - python, help replacing first letters -

I need to change the first letters of the string. Which command should I use? I am writing a thing for the French which changes words in the last tense and I have changed the last letter i.e re u, but I need to make that change which j I have done so far If you do something like this word = 'tu as' changes = {'je' : "You", "to": 'to ace'). The word (word, 'nope') This will require you to change with "I / you" It is a very naive knife in making a translator ... You can also insert all the words in a single dictionary. change = {'re' you ' 'IR': 'I', 'Er': 'E', 'J': "oats", 'tu': 'tu'}} and then through each sentence "synonyms" in sentences from " Repeat the last tense to change the word. Disclaimer: Of course, it does not consider the grammar of the language you are using. Full Translation This "A-K-...

php - Manual Pagination on data from api call which returns Object -

I'm new to Larwell and I'm working on a test project which will record some records by calling API via curl Will give . I was able to get an object and I'm ready to process it on my controller below: $ results = app :: get_data ($ date); $ Task = Pageinator :: Creating ($ result-> Data, Count ($ result-> Data), 5); How do I manually get confused on manual pagination works, I have $ results-> data on 10 items and I already include that link. Printed on your footage but pointing to the page is not working. This type of manual paging works on the installation, I do not talk to the database, instead I am dragging data from a specific API call through the curl. P> User :: All () - & gt; Paginated ($ itemsPerPage); To manually create a paginator, you have used it correctly, though, and it is not clearly documented, but Paginator :: create () automated As the form does not slice the array for you, you should manually do this manually (i...

sql server - Get the count of rows which match the criteria for each date range -

मैं नीचे दिए गए परिणाम को कैसे प्राप्त करूं? परिणाम: (पहले 7 से 12) महीनों) (पूर्व 4-6 महीने) (वर्तमान - 3 महीने) विश्लेषण 3/23 / 2012-09 / 20/2012 09/21 / 2012-12 / 1 9/2012 12/20 / 2012-3 / 20/2013 कुल सक्रिय 2 0 0 उत्पन्न करने के लिए हिस्सा ** कुल सक्रिय ** किया जाता है और इस प्रकार है: ; साथ एक्स के रूप में (चयन आईडी, स्थिति-स्थिति, स्थिति, पंक्ति_एनम्बर ()) (आरडी 1 के रूप में आईडीए द्वारा विभाजन की स्थिति आईडीए) (चयन आईडी, स्टेटसैट, स्टेटस, आरएन = पंक्ति_एनम्बर ) से (स्थिति आईडीए द्वारा स्टेटसैट द्वारा विभाजन) टीएलएचएचआईटीईटी (नोलॉक) से जहां [स्टेटसैट] & lt; = '20120 9 20' और आईडी ('2145', '2146', '4145''7175')) एएसए का चयन करें (*) से x जहां आरएन 1 = 1 और स्थिति IN ('बैकअप', 'सक्रिय') डेटा: आईडी स्थिति तिथि स्थिति आदेश 2145 2012 -04-29 एन / एक 1 2145 2012-08-02 बैकअप 2 2145 2012-11-09 सक्रिय 3 2145 2012-11-12 बैकअप 4 2145 2012-12-13 लंबित 5 2145 2012-12-18 बिक 6 2146 2012 -10-15 लंबित 1 2146 2012-10...

How to enable or implement logging for HttpsURLConnection traffic on Android? -

I need to be able to log in (at least) the header and (optionally) encrypted messages HttpsURL connection to my application in the body. It should be similar. Is this an easy way to do (like set some flags to enable it)? complex work solution implemented custom SSLSocketFactory and subclass of SSLSocket, from delegate class use. You can download a demo project and see how it works. Simple non-working solution The SSL layer implementation has self-logging code, which uses the org.apache.harmony.xnet.provider.jsse.Logger class. It reads the names of parameters from the JSSE system property, if defined, then comma-separated list of values ​​can be conn_state, prf, alert, ssocket, record, engine and socket. By default, this system instructs the output to err. So I started the $ adb shell stop $ ADB open setprop.log.redirect -stdio true $ adb but ( I think) jsse failed to start the system property before being used by the logger class. Out of the three options: ...

How can I find if user input is inclusive in list of arbitrary integers in Python 3.3.0 -

Here is some code for a function that is writing to me, giving output whether a given date is valid or not: date = (input ("Enter a date (dd / mm / yyyy):") monthStr, dayStr, yearStr = date.split ("/") monthStr = integer (monthStr) ) DayStr = integer (DayStr) yearStr = int (yearStr) Mylist1 = [1, 3, 5, 7, 8, 10, 12] So I want to make another statement which That way, but I do not know the syntax or method: if monthStr (== is one of the integers in mylist) ("Valid date") other: print ("not valid date") if the monthStr (0, 32) in Mylist1 and dayStr in the range: print ("valid date") and: "postprice" itemprop = "text" Print ("a valid date") Although your variable names are not very good, you do not really have a string, because you have more relevant names. needed.

.net - Using List with Azure Table Storage -

I am currently using Windows Azure Table Storage Mechanism, which contains a class that extends to TableEntity. However, when there is a list from the area of ​​this class, getting back the unit from the table, it is returned as a DynamicTableEntity instead of a normal table unit. What is a way to get a list from the table rather than sorting the list and storing it on a bob? As you already know, complex data types are not basically supported by Azure Table Storage. "post-text" itemprop = "text"> As you already know, complex data types are not basically supported by Azure Table Storage. For a list of supported data types, please see here: One option is to sort this list into a delimited string as you have mentioned another party library stash () Is like using a third party library I have not used it myself, but the documentation says that you can store the arrays and lists unit in the Arrow Tables.

Getting a JavaScript Error when calling prompt method from page-object-gem -

Scenario: I'm on the frames page tested with prompt popups when I do a quick popup and "Jared GetoBero "syntax error: missing; Before the statement (Selenium :: WebDriver :: Error :: Javascript error) ./features/support/pages/frames_page.rb35:in_In_pro_value block './features/support/pages/frames_page.rb:34: `Prompt_value './features/step_definitions/web01_steps.rb35:in' In Block (2nd level) & lt; Top (required) & gt; './features/step_definitions/web01_steps.rb:34:in `/ ^ I quickly popup and" (. *?) "$ /' Features / web01.feature: 20: in when I pop up quickly and enter" Jared Gatorobee "" Then enter the message "Enter your name" from the signal and the default value "John Doe" from "Prospect". / features / support / pages / frames_page .rb DEP prompt_view (value) in_frame (: id = & gt; 'frame_3') | frame | @prompt_response = prompt (value, frame) button_ element (: id...

Parameterized variable type in function (c++) -

I am trying to write something with the following lines: Lt; T & gt; (Four * Environment, T & amp; D, T Default Value) {bool ret = false; // Try to get environment Varianable ret = handle.getParam (Environmental environment, data); If (! Ret) {data = defaultValue}} int main () {int valOne; Float valtao; // Find the value of type int set data ("some_int_value", valOne, 10); // 10 the default value is the value of // type float set data ("some_float_value", valTwo, 0.05f); // 0.05 is the default value} One way to do this should be va_list is there a way that I can complete with orbit? Thank you I think you were almost there: template & lt; Typename T & gt; Zero SetData (Four * Environment Variable, T & amp; D, Data Default, T) {// ...} It should do whatever you want. Note, however, that the same T is used for the previous two arguments, so this function calls T : setdata (" Some_float_value ", valTwo, 0.05); ...

java - Android: AChartEngine vertical gradient on bars? -

Image
I am working with AChartEngine in Android and no way to get vertical shield on bars can be found in my stacked bar Here are my codes for the chart bars. renderer.getSeriesRendererAt (1) .setGradientEnabled (true); Renderer.getSeriesRendererAt (1) .setGradientStart (0, Color. RGB (192, 1, 2, 1 9 2)); Renderer.getSeriesRendererAt (1) .setGradientStop (45, Color.rgb (25, 25, 112)); Here is the view: I want to move the gradient from left to right, not below the top. Any help would really be appreciated! The gradient in AChartEngine is based on the displayed data values. The values ​​in your bar chart increase from bottom to bottom, so the gradient is displayed on the same direction.

javascript - Highcharts multiple data points between xAxis -

I am using highchurch and am trying to get many points between any point on xx. (For example, I want 4 points between October and November.) How can I do this? I tried to add on y: to specify several values, but that does not work. I can not get anything to work, and I do not have any examples on the high quality website that I can get. $ {document} .ready (function () {chart = new highcharts.Chart Excerpt: {Categories: [sections: [November], "November", "December", "Container", type: 'field'}, title: {text: "title"}, credits: {enabled: false} Title: {text: 'count'}, Labels: {formatter: function} {title:} {title_name} Return.value;}}}, tooltip: {formatter: function () {return '& lt; strong & gt; Count: & lt; / strong & gt; "y." & Lt; br & gt; Lt; strong & gt; date: & lt; / strong & gt; '+ this.point.date;}}, plot options: {region : {{Name: 'view', data: [[y: ...

How can we map paths with node.js connect -

How can we decide on another path by using MIDWAR connectivity to nodes? For example, fileB . is requested, then I want to reply to my server with fileA (inside of grunt-Contrib-connect ) I have a stupid method, but this is a method! Copy : {"mount-server": {files: [[expand: true, dot: true, cwd: '& lt;% = yeoman.app% & gt; , Dest: './.mount-server/search/mobileqq/', src: ['** / **']}]}} Connect: {option: {port: 80, // it '0.0.0.0 Change the host name to use the server from: null}, livereload: {options: {middleware: function (connect, option) {returns [lrSnippet, mountfolder (connect, '.tmp'), mountfolder , "./mount-server /"]]; }}}} Grunt.registerTask ('readyServer', ["clean: mount-server", "copy: mount-server"]); Grunt.registerTask ('server', function (target) {if (target === 'dist') {return grunt.task.run (['build', 'open', 'connect: dist: ...

javascript - Selenium fileupload path format issue -

I am trying to upload a file via Selenium IDE, the path is the following: driver.FindElement (By.Id ("fileupload"). SendKeys ("C: \\ user \\ myuser \\ document \\ Visual Studio 2010 \ Projects \\ TestPackages \\ new-package \\ 0.0 1 \\ new-package.zip "); The query is failing because the sending path is actually: c: \\ user \ \ Myuser \\ Documents \\ Visual Studio 2010 \ Projects \\ TestPackages \ ew-package \\ 0.0.1 \ ew-package.zip "> I think \ n is disappearing because \ n a new line in the string means Do you want a double slash or are you using it to avoid a slash? Try adding an additional slash like this: {c: \\\ user \\ myuser \\\ document \\\ Visual Studio 2010 \ \ PROJECTS \\\\\\\\\\\\\\\\ New pack Yes \\\ 0.0. 1 \\\\\ new-package.zip}

c# - How do you debug a single ASPX file? -

How do you debug a single ASPX file? I'm new to some ASPX files, but I'm not new to C #. I thought that all ASPN C # projects ran on the server as a compiled code. And so some type of binary file was somewhere else elsewhere like an XAP file, such as silver light. But it seems that this is not the case. It seems that, sometimes, you can create an ASPX file with a CSPX file with a C-Sharp file and it runs like a PHP file. For starters, is this right? So far am I right? Now, if I was the owner of both ASPX file and CSHRP code-file, then how would I debug it in Visual Studio? > How do I run the code? My point is that there is no project to load. There is only one file. After setting a breakpoint, there is nothing to run. I have tried to load the espex code in the browser but then the breakpoints become inactive. file and just on the server is the ASPX file and together. CC file All this is there. There is no solution file, there is no default .aspx file, ...

Is it possible to modify the structure of an Access encrypted backend? -

I have a partitioning database with the frontend, I use VBA by encrypting backend with a password. While able to add fields to a table in the linked backend. Is it still possible to add the fields to the table in the backend using VBA in the front without decrypt the backend manually? Thanks for any answers. This should be Try these notes: Substituted alardeb () retarded tdf as db dAO.Database slow SDB as tableDef dim as field as '' Encrypted SDB = "Z FLD: \ DOCKS \ Test.enc" '' http://msdn.microsoft.com/en-us/library/office/ff193474.aspx '' Password is case sensitive set db = OpenDatabase (SDB, false, false TDF = db.TableDefs ("table1") 'set FLD = tdf.CreateField ("Newfield", dbText, 20) tdf, "MS Access, PWD = PW")' Options with tabledef 'table is currently closed. Fields.Append FLD option with "DDL ssql =" change tag Add table1 column AnotherNew int "db.Execute ssql, dbFailOnErr...

rate limiting - Does nginx HttpLimitReqModule support per hour/day/week? -

I want to resolve the rate limit for the HP API, NGN already has a module support for this feature . But look at the document, this module only supports per second and per minute. Any solution for hourly / day? I do not know about the function within nginx which is this. However, you can use the auth_request module for all the incoming traffic in an upstream web service that inspects traffic and rates apply the limited rules. place / {auth_request / ratelimiter; .. normal configuration setting} location / resellimeter {proxy_pass http: // internatelimitinghost; # To return the request, an HTTP will return to 200 # and return anything to deny it. The module is not included by default, so you need to compile it would be required.

Soundcloud HTML5 Widget is not loaded, throws error -

I'm trying to use the SoundCloud HTML5 widget I want to load the widget then, javascript, tell me what to play. But when I tried to do this by code I'm seeing everyone in the console after loading before loading - load load before loading load before after loading try to reach the frame with url from frame with unsafe javascript url. There is a protocol of 'https' in the frame of use, which is being accessed by a protocol of 'http' that must match the protocol. and error No sound-clip widget url was provided in the widget Now what I do Am I wrong? Why is console.log running three times, why is nothing full and why am I seeing the error? OK, I think I get it. Important Things: Anything should already be loaded into the HTML5 widget, otherwise it never loads and you can not even reload it. It does not matter what it is, but it should be an existing track. The example here is incorrect - you should place a track URL as a param...

c# - How do I get all class properties that accomplish a requisit established in its attribute value? -

itemprop = "text"> to clarify this, a little example: the public class book {[MyAttrib (isListed = True)] public string name; [MyAritibb (ILIITIST = False)] Public DateTime release date; [My ettrib (iiilit ist = true)] public ink page number; [MyAttrib (IILITIT = false)] Public float price; } The question is: How do I get properties only, where the bool parameter isListed to true on myAttrib ? This is what I found: propertyinfo [] myProps = myBookInstance GetType (). GetProperties (). Where (x => (x.GetCustomAttributes (type MyAttrib, false)). Lantel & gt; 0). ToArray (); myProps found book , but from now on all the properties, I can not understand how to exclude them when it's isListed parameter false returns foreach (MyProps in PropertyInfo prop) {object [] attributes = myProps.GetCustomAttributes (incorrect). Agrech (object at attribute) {MyAtib Mayet = At ​​MyTreab; If (myAtt! = Null) {If (myAtt.isListed.Equals (false)) // If ...

cmdlet - Powershell convert man page to html -

I'm a Noble with PowerShell, I need help converting a specific man page into an HTML document about_script My code is: help-about_cript | Convert-HTML & gt; Scr.html This creates an html page but does not have the most data in just a few lines and it is showing how long it is. Tell me what I'm doing is wrong? Why is the wheel redesign? PowerShell already has all the documents. You can find help files for all CMDlets. For third party modules, the documentation is usually included or available online.

sql - Django annotate sum with a condition on a related table -

वर्ग इन्वेंटरी (models.Model): ... उत्पाद = मॉडल.ForeignKey ('उत्पाद') मात्रा = Models.IntegerField (डिफ़ॉल्ट = 0) वर्ग आदेश (models.Model): ... मात्रा = मॉडल.इटेगरफिल्ड () सूची = मॉडल.आगेरिनकी ('इन्वेंटरी') सक्रिय = मॉडल। बूलियनफिल्ड (डिफ़ॉल्ट = सच) # पर विचार नहीं आदेश जो कि सक्रिय क्वेरीज़ नहीं हैं = इन्वेंटरी.ओब्जेक्ट्स.अनोटेट (उपयोग किया गया = योग ('ऑर्डर दिग्गज')) .फ़िल्टर (उत्पाद = उत्पाद) मुझे उस वस्तु के क्वेरीज़ की ज़रूरत है जो एनोटेट की गई है 'प्रयुक्त' मान 'प्रयुक्त' मान सभी संबंधित ऑर्डर की मात्रा से निर्धारित होता है, लेकिन सक्रिय हैं। संपादित करें : अधिक सटीक होने के लिए, मुझे केवल सक्रिय ऑर्डर की मात्रा ही चाहिए। queryset = inventory.objects.filter (उत्पाद = उत्पाद, order__active = true)। कुल (सम ( 'Order_qantity')) sum = queryset ['order__quantity__sum']

newline - Code formatting + Line continuation in Slim -

I was recently learning slim and I was thinking that there is a way to format or beautify my code in it. is. I have to be careful about using Newlines (pressing Entering) because it causes errors. This is why I want to format it because most of my code is not fit in one line of my text editor and which usually happens that it continues in the next line, which is usually my Is not unreadable for This is usually just one row: li # {author.first_name} # {A.tr._last_name} & lt; A href = "/" & gt; View & lt; / A & gt; & Lt; A href = "/" & gt; Edit & lt; / A & gt; & Lt; A href = "/" & gt; Remove & lt; / A & gt; Is there a way or a character to continue a line? I want the link to be used in the next line so that it is more readable for me. You can also use multiple rows to span div [id = "# my-id" class = "my-class" data-author = "George Washington" data-date = ...

haskell - Making a custom datatype ord-able -

Can anyone explain to me how do I enable custom data types? ** I do not have permission to modify myself, such as Deriving (Eq, Ord) data suit = club. Diamonds | Heart | Finding the dictation (a) Try me: Example Ord Suites Where to Compare Suit 1 Suite 2 Compare Suit 1 Suite 2 but it seems that the constant loop does not go and stop. Definition of ODD is something like this (but not enough) Class Orders Compare: a - & gt; A - & gt; There are three possible values ​​of the order and ordering : LT, EQ, GT Therefore, you have Define what should be of each comparison. For example: Example Where the comparison of the club compares diamond = LT diamond club = comparison of GT diamond diamond = EQ diamond = _ lt - except diamond club and diamond Your actual order may vary, but this should give you the original idea.

java - What makes a file into a folder? -

What is the difference between file and folder (file system specific)? Why are there different ways in java.nio.file.files to create one or the other? createDirectory (..) and createFile (..) . Use the path as a handle / identifier for both file system objects. Should I think specifically to create one or the other as a matter of failure to build one or the other)? To create a file or folder, if there is already a file or folder with the same name, then this is a failure case. If this is going to be an R / W file or folder, then the folder is writable in case it means that the files can be created in it and in the case of the file it means to write the bytes - how is it the difference? There is really no difference in the case of failure, so I want to separate a custom FileSystemObject and treat them all. Good question. In most common operating systems (Windows, Linux, etc.), things may include things in a folder. There are names of those things that each ob...

python - Using own code in pyhook pumpmessages -

I want to check if the file is in comparison to 2Kb in which I'm writing the key. If it is more than 2KB then I need to create another file and stop writing in this one. I am starting in Python, please help me. Please tell where I can use the code to check if the file is more than 2KB. Importing win32api, win32console, win32gui, pythoncom, pyHook, sis, time, os import datetime now = datetime.datetime is now () p = now.strftime ("% Y-% m- % D% H% M ") temp_path = p fil = temp_path + '.txt' sys.stdout = open (fil, 'mou') lastWindow = none LastWindow = win32gui.GetWindowText (win32gui.GetForegroundWindow ()), while it True: def OnKeyboardEvent (event): Global lastWindow window = event.WindowName key = chr (event.Ascii) if window = lastWindow: print window lastWindow = window print key hm = pyHook.HookManager () hm.KeyDown = OnKeyboardEvent hm. HookKeyboard () pythoncom.PumpMessages () Hope you can help You can use .getsize >. & Gt; ...

php - mysql group_concat inside while -

Image
मेरे पास इस यात्री टेबल की तारीख है: इसका अर्थ है कि आरक्षण में 000004 , दो यात्रा कार्यक्रम हैं जो यात्रा कार्यक्रम हैं और 0000011 (अनवया कोव - एएसी हैंगर) , और हर यात्रा कार्यक्रम में, दो यात्रियों ( 0000007 (तेगा) और 0000011 riyuuji यात्रियों के 0000010 एएसी हैंगर - अनवया कोव 0000008 minori और 0000012 ami के यात्री हैं 0000011 अनवया group_concat का उपयोग करने के लिए कोशिश कर रहा हूं लेकिन मैं ऐसा ही कर सकता हूं: $ a = Mysql_query ("select group_concat (pass_name separator ',') के रूप में यात्रियों से 'पास' के रूप में जहां आरक्षित = '0000004' आदेश एसईसी द्वारा आदेश) या मर (mysql_error ()); $ ख = mysql_fetch_array ($ एक); $ ग = $ बी [ 'पास']; परिणाम के साथ: taiga, minori, riyuuji, ami । लेकिन मैं इसे इस तरह दिखना चाहता हूं: taiga, riyuuji / minori, ami क्या यह संभव है group_concat का उपयोग कर रहा है? मुझे पता है कि इसमें जबकि बयानों को शामिल किया जाएगा परंतु अब भी मैं वांछित उत्पादन प्राप्त नहीं कर सकता कृ...

javascript - jquery each() doesn't loop through newly added table rows -

मेरे पास बहुत सरल तालिका है & lt; table & gt; & LT; टीआर & gt; & lt; टीडी & gt; 1 & lt; / टीडी & gt; & lt; / टीआर & gt; & LT; टीआर & gt; & lt; टीडी & gt; 2 & lt; / टीडी & gt; & lt; / टीआर & gt; & LT; टीआर & gt; & lt; टीडी & gt; 3 & lt; / टीडी & gt; & lt; / टीआर & gt; & Lt; / तालिका & gt; जब मैं उपरोक्त तालिका में टीडी jquery में टेक्स्ट 5 में प्रत्येक पंक्ति को जोड़ता हूं (प्रत्येक) नए जोड़े गए पंक्ति के माध्यम से पाश नहीं करता, तो यह केवल पूर्वनिर्धारित तत्व देता है तत्वों को गतिशील रूप से जोड़ा नहीं जाता $ ("तालिका & gt; tbody")। अनुलग्नक ("& lt; td & gt; 5 & lt; / td & gt;"); $ ("टेबल टीआर टीडी")। प्रत्येक (फ़ंक्शन () {चेतावनी ($ (यह) .text ());}); कृपया में tbody आप td को सीधे लपेटें उन्हें tr में नहीं जोड़ सकते। $ ("table & gt; tbody")। अनुलग्नक ("& lt; tr & g...

python - Correct Library Usage: requests w/ bs4.BeautifulSoup? -

I just use urllib2 to switch to request In the Library Urlib, you use the BeautifulSoup to drag the html elements using the findAll (tag = 'element') function, do I use the SunderSub in the same way I request or request that a function simplifies this process? urllib2 Import bs4 import from urlib2 import as auspicious BS response = urllib2.urlopen ('http: //stackoverflow.com / ') Soup = BS (reaction) for one in soup. Remove all ('A'): Drag the tag using a [[href] print Import feedback feedback = request.get ('http://stackoverflow.com/'). All ('A'): A [[href] Only one Getting data from the URL makes it easy, especially if there are redirects, etc. It does not parse the body of HTML for you, you should still do this with BeautifulSoup and for this you should import the second piece of code, and something like this: soup = BS (response.text)

javascript - How to write test driven programming in node.js? -

Recently node me Presented with packages such as JS and Express, Mongodb and EJS. I have a few questions: As a learning objective, I have created one who has created, Express, Mangode and EJS. I have all my functions in the file. I have to write test cases of all these functions How can I create a test-driven program with this example? In my app.js file. app.get ('/ login', user login); App.post ('/ login', user.loginSubmit); I have to write different routes to render the page and submit it etc. If there are some AJAX requests, then we have a lot of paths in app.js Enter the file when considering the paths of a page Is it like this or need to change my structure? I recommend you, it is from the same person of expressjs Supports, before hook, later, each and surely it supports async code. I use it in conjunction with should.js or even chai.js. A temptation test looks like this, code is from my own trial where I request I'm using SuperEgent....

java - how hibernate insert record in middle of table? -

I have a thousand records table, I want to insert records in the middle. The object I am saving in the table is very complex, which is the convenient way to do this. If you consider the order of data in the table, after the order of the primary key of the table, you Enter a record specifying primary key in pojo (id: employee.setId (25); ). But, if you do this, then you should not make the primary key * as * auto_increment *.

perl - XML ( LibXML ) : Easiest way to Replace an xhtml:h1 tag with an xhtml:h2 tag with the same contents -

Lt; Div & gt; With tag & lt; H1 & gt; , & Lt; H2 & gt; e.t.c. Now, I'm going to remove divs from there and they have the title & lt; Xhtml: h2 / & gt; Which I & lt; Xhtml: h1 / & gt; I want to change to start with (I.e.: H2HA, H3, H, H2, H4, H.3, etc.). How can I do this by using XML :: LibXML? Even I have so far: foreach my $ h_idx (2 .6) {foreach my $ h_tag ($ scene_xpc-> Finder (qq {/ Xhtml: h $ h_idx})) {my $ replacement = $ h_tag- & gt; Clonnod (1); #Today: How do I set the name? $ Replacement- & gt; Set $ ​​h_tag- & gt; Replace node ($ replacement); As you've guessed from your variable name, $ scene_xpc}} , you need to define XML :: LibXML :: XPathContext , where the xhtml namespace is defined after it You can use that context as you can specify the normal XML :: LibXML object, except that you can now specify the namespace registered in your element and attribute names. I...

javascript - check the element value in xml file -

यह मेरा xml है: - & lt; परिणाम & gt; & LT; परिणाम & gt; & LT; COUNTRY_CODE & gt; में & lt; / COUNTRY_CODE & gt; & LT; COUNTRY_NAME & gt; भारत & lt; / COUNTRY_NAME & gt; & LT; REGION_NAME & gt; गुजरात & lt; / REGION_NAME & gt; & LT; सिटी & gt; राजकोट & lt; / शहर & gt; & LT; अक्षां & gt; 13.060422 & lt; / अक्षां & gt; & LT; एलएनजी & gt; 80.24958300000003 & lt; / एलएनजी & gt; & Lt; / परिणाम & gt; & LT; परिणाम & gt; & LT; COUNTRY_CODE & gt; KE & lt; / COUNTRY_CODE & gt; & LT; COUNTRY_NAME & gt; केन्या & lt; / COUNTRY_NAME & gt; & LT; REGION_NAME & gt; Vihiga & lt; / REGION_NAME & gt; & LT; सिटी & gt; Kakamega & lt; / शहर & gt; & LT; अक्षां & gt; 0.1182473 & lt; / अक्षां & gt; & LT; एलएनजी & gt; 34.7334515999997 & lt; / एलएनजी & gt; & Lt; / परिणाम & gt; ...

ajax - dashboard timeline -

I am trying to implement a dashboard similar to Facebook in the kppp (I am receiving posts and timeline them Posted on and when you see more retrieve the post from this previous offset), but still is confused about the logic and the tool, I should use the cakepig pageging class in my implementation. $ this - & gt; Pagination (); It should in some way be called through Ajax on some functionality Where is any help or suggestion starting from? Thanks Do not use paget if You have some things that you are prepaid for data - you are going to overlap the page that you call for page 2 - and as far as the current user is concerned, finally, go to the previous page . Use timestamp To use an endless stream of data, such as a query: SELECT * Foos WHERE was created & gt; = $ PreviousLastTimestamp ORDER created by DESC LIMIT 20 Note that when I am using in this example - this can be any such area Which is pseudo-unique. When you first present the page, st...

visual studio 2012 - how to add files in web.config transformation process? -

I'm building a website developed in Visual Studio 2012. Web. Confograph is currently making the following files in its changes: - Web.Debug.config - web.Release.config I recently added a new build configuration (named "staging") to my project is. How do I create a "web.staging.config" conversion file? There are two ways to do this in the web. Change config file to generate in VS: If you have a web application project, then right-click web.config and select Add Config Transform. A conversion conversion that will be added to both of your projects based on build configuration (i.e. if you have both production and staging build configs) ). This method is not supported for website methods because they do not support multiple build configurations. Select either a published profile (.pubxml) and select Add Config Transform in the web project type. It will only add a new configuration conversion for that profile Need for it VS2012 Update2 or V...

android - How to save result? -

I am a rookie in Android programming I have a little problem when I have a visual image , I make that image invisible and set one button in visible. My problem is how can you save it? For example, I click on ImageView, the button shows and ImageView disappears. And I get out of the app and come back in the same activity and I want the button to be there. How do I do this? import android.app.activity; Import android.content.Intent; Importroid.os.Bundle; Import android.view.View; Import android.view.Window; Import android.view Windows Manager; Import android.widget.Button; Import android.widget.ImageView; Public class Udhanplan activity (button A, B ImageView; private boolean qualified; public Crete to zero (the bundle saved Instansstet) saved {Suprknkret (Instensstet); requestWindowFeature (Window.FEATURE_NO_TITLE); GetWindow (). Setflag ( WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); setContentView (R.layout.flightplan); B = (Imag...

c# - Benchmarking code precisely -

I need to measure the performance of my code with the maximum possible precision I Currently I use I am doing: - Stopwatch for measuring from time to time - Set process intimacy to use all CPU cores - Set maximum thread preference - Display warm-up before measuring - 1000 times Test and calculate average However, I run benchmark C 1% difference between the maximum) I how a measure to make more precise the measurement? This may be obvious, but your CPU is not dedicated to your single process, Also works for many things I In addition, the behavior of memory usage, HDD usage and GC behavior can vary between hanging. Your computations may require virtual memory, which is much slower than RAM access. And so on ... About GC, you can try to play with various settings of "GCSettings.LatencyMode" to see if anything changes it (for example See). The same session, stopwatch on the same computer is quite accurate: If the duration is different between execution, then i...

objective c - NSURLConnection different result when get error -

This summary is not available. Please click here to view the post.

vb.net - My Wpf Application cannot locate resource 'Mainwindow.xaml' -

I am using vb.net on a vp.net application, I recently ran into a problem .. When building my code, the build is successful but when it comes to running the code, then the system. Io IO Expansion can not detect an exception "Resource View Model / View MODEL / Main Window. XML" XML window viewmodels are located in a folder called Model, so I do not know that the other is coming from ViewModel / ViewModel ... path, then this value does not assume the model / main window. XML? I have tried all possible solutions including cleaning the project, but it does not seem to work. The only solution seems to work if I start with StartupUri = "ViewModel \ MainWindow.Xaml" Startup Yuri = "... \ MainWindow.xaml" I suspect that this is the right thing to do. Startup Yuri = "MainWindow.xaml" to Startup Yuri = "Folder Name / Main Wando. XML" My problem was solved, when I got my main window Moved to the View folder

c - Windows API STARTUPINFO destroyed? -

After creating a process and waiting to complete it, is it STARTUPINFO still available or is it deleted? has given? STARTUPINFO si; BRes = Create process (zero, command, zero, zero, true, 0, zero, faucet, and SI, and PI); DwRes = WaitForSingleObject (pi.hProcess, INFINITE); After this, si is modified / destroyed or is it retained? Windows copies the startup information straight to the new process. This should be because the new process has a new address space and can not see your structure. Now, what happens to your structure? Well, the answer is that the parameter is annotated like this: _In_LPSTARTUPINFO lpStartupInfo _In _ means that The content of the structure is not modified CreateProcess to call, therefore, you can trust that when CreateProcess returns, the startup information structure has not been modified.

php - mPDF headers already sent -

इस सवाल का पहले से ही एक उत्तर है: 11 उत्तर मैं mPDF का उपयोग कर रहा हूँ Html से एक पीडीएफ बनाएँ अभी मुझे "त्रुटि चेतावनी: हेडर सूचना को संशोधित नहीं किया जा सकता है - हेडर जो पहले ही भेजे गए हैं"। इसका कारण यह है कि मैं पीडीएफ उत्पन्न करने से पहले कुछ एचटीएमएल (सिर्फ साइट टेम्पलेट) दिखाता हूं। मेरी साइट इस तरह लोड की गई है: 1. साइट हैडर 2. पेज प्रदर्शन 3. पीडीएफ डाउनलोड तो अब मैं पीएचपी के साथ आउटपुट बफर को हटाने का एक तरीका तलाश रहा हूं ताकि मैं एक वैध पीडीएफ बना सकूँ। क्या किसी को भी यह करना आता है? मैंने कोशिश की: गूंज " यह पूरी स्क्रिप्ट नहीं है, लेकिन मुझे लगता है कि यह मेरी समस्या को समझने के लिए पर्याप्त है। आप कोड डाल सकते हैं जो एक अलग फाइल में पीडीएफ जेनरेट करता है और इनलाइन फ़्रेमों का उपयोग करके उसे अपने html पेज में लोड कर सकता है। इसे हेडर को सभी तैयार भेजी चेतावनी को हल करना चाहिए ..

delegates - Xamarin Binding Class -

I am developing an app for iOS using Xamarin. In my solution I've added a compelling project to include some native libraries, but I have some problems that write ApiDefinition.cs this is the original library : @AccordionView; @protocol AccordionViewDelegate & lt; NSObject & gt; @optional - (zero) accordion: (AccordionView *) Adrenan did the selection of the selection: (NSIndexSet *) Selection; - (Zero) Aadrian: (AccordionView *) Aadrian height height: (NSINtegger) height; @end @ Interface Accordionview: UIView & lt; UIScrollViewDelegate & gt; {[..]} - (zero) Adhider: (id) aHeader withView: (id) aView Setbull: (BOOL) arrow; - (zero) SetOurinal Size: for Index (CGSize) Size: (NSUIENTGAR) index; - (zero) scrollViewDidScroll: (UIScrollView *) aScrollView; - (zero) touchdown: (ID) sender; I like ApiDefinitions.cs )] IntPtr Producer (rectangle frame); [Export ("addHeader: withView: setBool:")] Zero AddHeader (NSObject aHeader, NSObject aView, bool ...

python - trouble invoking concurrent.futures job in parallel -

मेरा कोड इस प्रकार है। निष्पादक = समवर्ती.फुटेश। थ्रेडपूल एक्सपेक्टर (अधिकतम_वर्कर्स = 4) सीजी के लिए self.parent_job.child_jobs: executor.map (cj.runCommand ()) def runCommand (self): os.system (self.cmd_line) सत्यापित करेंऑप्टपुटफ़ाइलें ()। .. रन कॉमांड को सभी बच्चे के लिए समानांतर में क्रियान्वित करने की जरूरत है। इसके अलावा एक ही समय में एक ही बच्चा को चलाया जा सकता है। लेकिन रन कॉमांड को एक बार में केवल एक बार लागू किया जाता है। लेकिन मुझे इसकी आवश्यकता है कि एक ही समय में सभी बाल नौकरियों के लिए आवेदन किया जाए। executor.map एपीआई को देखो इसको प्राप्त करने में कोई भी मदद की सराहना की जाती है। आपने कोड को कॉल करके गलती की और इसके परिणाम को map पर भेज दिया;) यही कारण है कि आपका कोड एक बार चला। आपको अलग फ़ंक्शन बनाने की ज़रूरत है जिसे ऑब्जेक्ट्स पर आपकी विधि कहा जाएगा runCommand जैसा कि आप lambda x: x.runCommand () (सामान्य रूप में लैम्ब्डा) पास नहीं कर सकते executor.map के तर्क के रूप में नहीं कर सकते। def runCommand (cj): वापसी cj.runCommand () l =...

C#/Json.Net Exceptions slowing down parsing -

I use Newtonsoft.Json to parse a Jason string. There is a lot of entries in the data I `parsing, many of which have a large load of properties optional. The code for parsing looks like this: Public Bull Pars (string JSONString) {JOBEYES O; Try {jResponse = Jobbject.Parse (JSONString); } Grip (JasonReader exception) {return false; } Foreach (jResponse [ParserConstants.ResultsTag] in JobJet jResult {MyObject myObject = new MyObject (); Try {myObject.Title = (string) jResult [ParserConstants.TitleTag]; } Hold {myObject.Title = String.Empty; } // It goes for 15 other elements / some people live in the catch, when the property is mandatory, // some have a deep structure such as jResult [Tag1] [Tag2] [0] [Tag 3] result. Add (C); } Return (result! = Null & amp; result; calculation & gt; 0); } All this work is fine, but parsing is very slow because many exceptions are coming to the field which do not have any value. (I think) There are 1200 exceptions when parsing all the...

visual studio 2010 - VS Post build event declare var in bat file and use it later -

मैं Visual Studio 2010 में signtool.exe का उपयोग कर प्रमाण पत्र वाले ऑटो साइन प्रोजेक्ट का प्रयास कर रहा हूं। यहाँ मेरा सरल पोस्ट बिल्ड है स्क्रिप्ट: अगर $ (ConfigurationName) == डीबग (कॉल "$" (VS100COMNTOOLS) VCVarsQueryRegistry.bat "कॉल" $ (WindowsSdkDir) bin / signtool.exe "साइन / एफ" $ (ProjectDir ) My.pfx "/ p mypass / t timstamp.dll" $ (TargetPath) ") डीबग परीक्षण प्रयोजनों के लिए है मैं विज़ुअल स्टूडियो कमांड प्रॉम्प्ट की नकल करने की कोशिश कर रहा हूं - निष्पादित करें $ (VS100COMNTOOLS) VCVarsQueryRegistry.bat जो कुछ अतिरिक्त चर जोड़ता है और बाद में इसे उपयोग करता है $ (WindowsSdkDir) मुझे इसकी आवश्यकता है। हालांकि यह स्क्रिप्ट सरल bat फ़ाइल में पूरी तरह से काम करता है, लेकिन यह दृश्य स्टूडियो में काम करने से इनकार करता है आउटपुट है: कॉल "सी: \ प्रोग्राम फ़ाइलें (x86) \ Microsoft Visual Studio 10.0 \ Common7 \ Tools \ VCVarsQueryRegistry.bat" कॉल "bin / signtool.exe" साइन ... ध्यान दें कि...

osx - How to center 2 buttons in Cocoa? -

Image
I have an OS X app in which the buttons are next to each other buttons are well-focused. But when I press the window Change the shape, the buttons stay in one place. How do I align buttons so that they Can the window change again when they are always centered? As you are using XCode4.6, by default it will be in Autolayout mode. You have to change it to a manual layout (which I'm finding it easy to do) How to: Click on XIB Do not use auto layout Navigate to - & gt; Box box Select - & gt; Specialty Inspector - & gt; Title Status None & amp; None of the border type Choose texFiled - & gt; ; Size inspector Select the box - & Gt;

PHP and Google Maps -

After several tests and errors, trying to get the plot markers of Google Map on a map, I have got the problem. I need to show the specific number of HTML to change the URL inside the map which I initially filtered on XML file. This is a search string I have / P> & lt; Form action = "control_lbsresult.php" method = "received" & gt; & Lt; Input type = "text" name = "query" /> & Lt; Input type = "submit" value = "search" /> & Lt; / Form & gt; This gives me a filter and filter urls such as /control_lbsresult.php?query=0716747329 This is the snippet code that filters the XML file // Select all the rows in the markers table $ msisdn = $ _GET ['msisdn']; $ Query = "SELECT * fbs lbs_ WHERE msisdn = '$ msisdn' LIMIT 10"; $ Result = mysql_query ($ query); If (! $ Result) {dead ('invalid query:'. Mysql_error ()); } Header ("content-type: text / xm...

actionscript 3 - as3 file download restrain? -

I have a flash download on my site to download a PDF file. Var myfileReference: FileReference = New FileReference (); Down_mc.visible = false; Down_comp.visible = false; Var myRequest: URLRequest = New URLRequest ("GEORGIA INCORPORATED.pdf"); MyfileReference.addEventListener (IOErrorEvent.IO_ERROR, ioError); Output_txt.text = ""; Function ioError (Event: ErrorEvent): Zero {output_txt.text = "Sorry IO Error During Downloading File Error:" + "\ n" + Event; } MyfileReference.addEventListener (ProgressEngine.progress, file download progress); Function fileDownload Progression (Event: Progressive Event): Zero {down_mc.visible = true; } MyfileReference.addEventListener (event.complete, file download complete); Download the Function File (Completed: Event): Zero {down_mc.visible = false; Down_comp.visible = true; } Function Download File (Event: Mouse Event): Zero {try {myfileReference.download (myRequest); } Error (Error: SecurityAir) {Error dow...

c++ - Extract the adjacency matrix from a BGL graph -

To remove the adjacency matrix, using Boost Graph Library From the built-in graph shown by either boost :: adjacency_list or boost :: adjacency_matrix . I want to use this matrix with boost :: numeric :: ublas to solve a system of linear equations together The minimum example is: #include & lt; Boost / graph / adjacency_list.hpp & gt; #include & lt; Boost / graph / adjacency_matrix.hpp & gt; Using Namespace Boost; Typedef boost :: adjacency_list & lt; List, vcs, instructions & gt; ListGraph; Typedef boost :: adjacency_matrix & lt; Instructions S & gt; MatrixGraph; Int main () {ListGraph lg; Ad_Age (0, 1, LG); Ad_age (0, 3, LG); AD_Age (1, 2, LG); Ad_Age (2, 3, LG); // How do I get the distance of the Proximity Matrix LG? Matrix Graph Mg (3); Add_edge (0, 1, mg); Ad_ge (0, 3, mg); Ad_age (1, 2, mg); AD_Age (2, 3, mg); // How do I get matrix around Metami Magratti? } If a proximity can come in an efficient manner to obtain the matrix, the...

scroll to contents in jQuery / CSS -

मैं jQuery में एक सरल चयन बॉक्स बना रहा था। स्क्रॉलिंग । मुझे ul ऊंचाई अतिप्रवाह सेट करने की आवश्यकता है, जिससे कि मेरे पास हो सके एक स्क्रॉलबार। कृपया jsfiddle देखें: jsFiddle पर आप देख सकते हैं कि onKeyDown (keyBoard down arrow) चयन नीचे जाएंगे। ऐसा लगता है कि मैं कुछ गलत कर रहा हूं, कृपया मेरी सहायता करें। धन्यवाद। अपडेट करें: दोस्तों, कृपया समझें कि दी गई उदाहरण बेला केवल एक उदाहरण है वास्तविक एक भिन्न है। मैंने अपना बेला अपडेट किया है। आपका मार्कअप अमान्य है: & lt; li वर्ग = "विकल्प चालू" & gt; विकल्प 1 & lt; li & gt; आप ठीक से li बंद नहीं कर रहे हैं होना चाहिए: & lt; li वर्ग = "विकल्प चालू" & gt; विकल्प 1 & lt; / li & gt; संपादित करें तुम्हारा अंत करने के लिए इस बिट का jQuery कोड जोड़ें: $ ( "#select")। चेतन ({scrollTop: $ ("वर्तमान।") ऑफसेट ()। शीर्ष}, 100); इसे आपको एक विचार देना चाहिए।

jar - no default META-INF folder in Netbeans project -- where to add files to? -

मैं नेटबीन को javamail.providers को मेटा-आईएनएफ़ फोल्डर में कैसे जोड़ूं? मैन्युअल रूप से जोड़ा गया है) चींटी बिल्ड फाइल में तलवारों में नहीं जा पाने के लिए? यह थोड़े अजीब है, क्योंकि manifest.mf परिणामी जार (सही ढंग से) में मेटा- INF फ़ोल्डर में समाप्त होता है, लेकिन एमईटीए- INF फ़ोल्डर (जो मैं मैन्युअल रूप से जोड़ा): thufir @ dur: ~ / NetBeansProjects / gnumail-प्रदाताओं $ ll META-INF / कुल 12: ~ / NetBeansProjects / gnumail-प्रदाताओं @ dur thufir $ ड्र्वाक्सआरवक्सेर-एक्स 2 थुफ़िर थुफ़िर 4096 मार्च 21 04:02 ./ डॉवक्ज़्र-एक्सआर-एक्स 8 थुफ़िर थूफ़िर 4096 मार्च 21 04:15 ../ -आर-आर-आर-आर-1 थूफिर थूफ़िर 868 मार्च 21 04:02 जावमेल @ dur thufir प्रदाताओं: ~ / NetBeansProjects / gnumail-प्रदाताओं $ thufir @ dur: ~ / NetBeansProjects / gnumail-प्रदाताओं $ ll MANIFEST.MF -rw-rw-r-- 1 thufir thufir 82 मार्च 21 03:18 MANIFEST.MF thufir @dur: ~ / NetBeansProjects / gnumail-providers $ यहां परियोजना है: thufir @ dur: ~ / NetBeansProjects / gnumail-provider S $ thufir @ dur: ~ / NetB...

node.js - Appengine vs Nodejs Costs for Analytics Application -

Currently, I am a nodjs & amp; MongoDB It was assumed that the cost date for the appenagin would be very costlier than the host of Nodes and Mongodb. I need help in identifying the difference in costs for an application that will increase to hit, request / second. Entities are really simple (id, datetime, email_address), each request is logged in database. The data has not been recycled / deleted. Use nodes like hosting provider (not sure how many drones will be required for such traffic) for Mongoose Db hosting Use appengine for the same model with appengine with use Use appengine with Google Cloud SQL Thank you. You can put it on AppFog and get 512 MB of RAM for free. In relation to nodjatsu - 50 requests per second should be properly placed on 1 don. Very small VPS with 128mm RAM can also handle this load too.

javascript - Loop Through XML Parse Function and Display in HTML -

I have a function that currently displays hard-coded XML data in an iPhone app; Function View XMLFiles () {xmlhttp = new XMLHttpRequest (); Xmlhttp.open ("GET", "TestInfo.xml", incorrect); Xmlhttp.send (); XmlDoc = xmlhttp.responseXML; Document.getElementById ("docname"). InnerHTML = xmlDoc.getElementsByTagName ("document_name") [0]. ChildNode [0] .nodeValue; Document.getElementById ("Filetype"). InnerHTML = xmlDoc.getElementsByTagName ("file_type") [0]. ChildNode [0] .nodeValue; Document.getElementById ("fileloc"). InnerHTML = pathToRoot + "/" + document.getElementById ("docname"). InnerHTML; Document.getElementById ("docname1"). InnerHTML = xmlDoc.getElementsByTagName ("document_name") [1]. ChildNode [0] .nodeValue; Document.getElementById ("filetype1"). InnerHTML = xmlDoc.getElementsByTagName ("file_type") [1] .childNodes [0] .nodeValue; Document.g...

jquery click event run one time only -

There is a problem with IM click event. It runs 1 time. Example: I have 3 pages (1 2 3). When I click on 2 then it works and then it works again in 3 pages. But I click on 2 works again. Event has not been triggered. $ ("div .top.pagination a"). Click (function () {PagNrClick = $ (this) .text (); PagNrOld = $ (".top.pagination .current"). Text (); RegMin = (NrReg-1) * (PagNrClick-1); // Option to Activate a Page $ ("top.pagination. Current"). Replacewith ('& lt; a title =' '+ PagNrOld +' "href =" # '+ PagNrOld +' "rel =" History "& Gt; '+ PagNrOld +' & lt; / a & gt; '); // Click on a page (this). (RegMin% 2 || RegMin% 0) {RegMinValue = RegMin;} and { RegMinValue = RegMin + 1;} //: gt (0) - greater than 0 ny pounds mostly 1 º degree positive pound o (bug du groceries ??????) (PagNrClick == 1) {$ ( "# Thumbs li: eq (0)"). Show ();} // Escond Tudos OS raj Most of t...

c++ - How often will processor check while loop condition? -

मुझे पता है कि यदि लूप का यह शरीर है: जबकि (a & lt; b ) {Do_some_calculations} यह गणना करेगा और तब फिर से लूप की जांच करेगा। लेकिन अगर मेरे पास एक खाली जबकि पाश: जबकि (a & lt; b) {} यह कितनी बार स्थिति की जांच करेगा? मुझे पता है कि जब लूप cmp और jmp निर्देश (जो एक से दो चक्रों पर ले जाता है) तो क्या यह हर 1-2 चक्रों में लूप की जांच करेगा? या नहीं और कुछ ऐसी चीजें हैं जो मुझे नहीं पता हैं? विस्तार स्पष्टीकरण बहुत उपयोगी होगा पीएस प्रश्न निम्न स्तर के विवरण के बारे में है। कृपया इसे अधिक ध्यान से पढ़ें.और मैं आम सिद्धांतों को जानना चाहता हूं और "यह संकलक पर आधारित है और नहीं"। पी पी एस मान लीजिए हमारे पास इसके लिए कुछ वैध शर्त और कंपाइलर जनरेटेड कोड है। कितनी बार इसे चेक होगा? यह सवाल है। आप सही सवाल पूछना नहीं लगता है। यदि सवाल में कोडांतरक कोड उत्पन्न करने वाली भाषा शामिल होती है, तो आपका जवाब होगा, कि यह संकलक, अनुकूलन स्तर और कुछ अन्य चीजों पर निर्भर करता है, लेकिन सबसे महत्वपूर्ण बात यह कि स्थिति । प्रत्येक पाश एक परीक्षण करेगी अगर ...