Posts

Showing posts from May, 2011

awk: how to delete first and last value on entire column -

I have a data that contains many columns. On a column, I would like to delete two commas which, at the beginning and in the whole Are located at the end of the column. My data looks something like this: a, 3,4,3,2, b, 3,4,5,1, c, 1,5,2,4,5, d , 3,6,24,62,3,54, How can someone remove the first and last comma on this data? I appreciate it. awk '{sub (/, /, "", $ 0); Print substrag ($ 0,0, length ($ 0) -1)} 'input.txt Output: a 3,4,3 , 2, b3,4,5,1, c 1,5,2,4,5, d3,6,24,62,3,54,

python - Pandas 0.13.1 use of groupby( ) with drop_duplicates( ) or dropna ( ) -

I just updated the pandas to 0.13.1 from the previous version - happily, this opened some options for me unfortunately From, it seems that some of my data tilt codes have caused problems. I did not make any changes other than updating the panda version from 0.11.0. The code that used to work first, and now works, is as follows: g_pres dropdown (0) And / or g_pres = (= 'follow', 'focal', 'std_epoch']) drop-duplicates (0) Error using any of the results: (Previous) --------------------------- -------------------- ---------------------------- Attribute error Tracebacks (most recent call final) & lt; Ipython-input-169-5d3c7458da40 & gt; In & lt; Module & gt; () ---- & gt; 1 g_pres = g_pres.groupby (['follow', 'focal', 'std_epoch']). Dropna (0) //anaconda/lib/python2.7/site-packages/pandas/core/groupby.py __getattr __ (self, atr) 293 294 if heetter (self, boss, ether) and atr! = '_cache': - &...

python - twisted SMTP server limit incoming email message size -

This is a very basic code that I am using to make SMTP server in twisted: by email. Import headers, twisted.internet, import from imported, twisted.mail import from reactor zope.interface import class ConsoleMessage delivery (object) from device: smtp istmp;% s "% (myHostname, clientIP, Smtp.rfc822date ()) "Received:% s from% s with"% s "% header (headerValue) def validateFrom (auto, hello, original): # All addresses are accepted return original def ValidateTo (self, user): # The message sent to the user only "console @ domain" is accepted. User.dest.local == "console": return lambda: increase console message (smtp.SMTPBadRcpt (user) class ConsoleMessage: tool (smtp.imessage) def __init __ (self): self.lines = [] Def line (self, line): self.lines.append (line) def eomReceived (self): print "New message received:" print "\ n" .join (self.lines) self.lines = any Also defer.Sciceed Returns (None) Def ConnectionList (Self):...

c++ - Wrong std::vector constructor -

I am getting a strange error from Consumable when compiling the code should be the straight line of code. This code generates an error: size_t s = 5; Std :: vector & lt; Double & gt; Best Scords {0}, I'm just trying to use to fill a new vector with values ​​of five -1.0. The error I get is Non-continuous expression can not be compressed with type 'size_type' (aka 'unsigned long') to 'double' in the initial list. What's going on? It's compiled exactly: std :: vector & lt; Double & gt; Best Scores {5, -1.0}; Is she trying to use the initial list creator? I thought you should have two curl braces for it: std :: vector & lt; Double & gt; Best Scores {{5, -1.0}}; The issue is that you create a vector using a brace-attached initial list are doing. This applies to std :: initializer_list & lt; T & gt; Producer supports this condition, size_t , -1.0 list std :: initializer_list & lt; Do...

vb.net - How to get the full path of a file through the file's name -

I'm trying to get the path of a file named after it. I have created an executable file on my desktop, command.xa , I am trying to get this full path through the console application. I want to find my entire computer for the file, (this is on my desktop for simplicity) and will return the path, it should be kept in mind that the file can be anywhere. The path I want to return is the program: "C: \ user \ jimbob \ Desktop \ Commands.exe" My code: Import system. IO module module 1 slow file location string as filename string = "command.xa" sub head () fileLocation = path. GetFullPath (filename) console.light line (file location) console.readline () end sub-end module but instead prints it " C: \ Users \ Jimbob \ Documents \ Visual Studio 2012 \ Projects \ Get Path Test \ Path Test \ Bin \ Debug \ Commands.exe " This is the path to the project of all my code In this way, the debug folder does not even have command.xa . Hel...

android - Custom Listview with checkbox not clickable -

I created a custom list view with checkbox, items on the list view are not clickable I want to enable the checkboxes not just to click the items in the list. store.getText () toString (); list.add (data); ArrayAdapter & LT; String & gt; Adapter = New ArrayAdapter & lt; String & gt; (MainActivity.this, R.layout.list_view, R.id.textView1, list); LSet adapter (Adapter);}}); ls.setOnItemClickListener (New OnItemClickListener () {@Override public void onItemClick (AdapterView & LT ;? & gt; arg0, see ARG1, ARG2 integer, long arg3) {string click = list.get (ARG2) .toString (); Toast .makeText (GetBaseContext (), "you clicked" + click, toast .LENGTH_SHORT) .show ();}}); list_view.xml & lt; Checkbox android: id = "@ + id / checkbox1 my Android code for": Layout_width = "Wrap_content" Android: Layout_height = "Wrap_content" Android: Leaut_algpriwartk = "true" Android: Leaut_alginpecrtop = "true" ...

php - Session array issue -

foreach ($ _SESSION ['कार्ट'] $ prodid = & gt; $ qty = & gt; $ आकार के रूप में) { कोड की यह पंक्ति त्रुटि को ऊपर लाता है। पार्स त्रुटि: सिंटैक्स त्रुटि, अप्रत्याशित ',', उम्मीद '' 'में सी: \ xampp \ htdocs \ ShoeShop \ cartPage.php पंक्ति 29 पर क्या किसी को भी इसे ठीक करने का तरीका पता है? मुझे सरणियों का बहुत कम ज्ञान है। मुझे लगता है कि आप ऐसा कुछ चाहते हैं: foreach ($ _ सशन ['कार्ट'] $ prodid के रूप में) {foreach ($ prodid $ qty = & gt; $ size) {}} या तो $ Code के रूप में foreach (array () ($ value) के रूप में) {} या foreach (array () $ key = & gt; $ value) {} का प्रारूप, वर्तमान में आपके पास foreach (सरणी () $ कुंजी = & gt; $ value = & gt; ???) {} के रूप में। यह मानता होगा कि $ _ सत्र ['कार्ट'] इस प्रारूप में है: अर्रे (अर्रे (qty = & gt; आकार, मात्रा = & gt; आकार , मात्रा = & gt; आकार,), अर्रे (qty = & gt; आकार, qty = & gt; आकार, मात्रा = & gt; आकार,))); ...

vb.net - Structure cannot be indexed because it has no default property -

I get an error message "The structure can not be indexed because it has no default property". Will anyone show me what I am doing? Public structure length 8 fixed string & lt; VBFixedString (8) & gt; Public myFixedString As String '8 Length is STRING End Structure Public Structure Example Structure 2 & lt; VBFixedArray (7) & gt; People myArray Length8FixedString termination structure handles as Folk Class Form1 Personal Sub Button1_Click (as in this object, in the form of E EventArgs) Button1.Click Dim V New ExampleStructure2 V.myArray (1) = "Tim" 'as Error: Structure, because it can not be indexed. A default property ending sub end class You have declared that instead of myArray fixed lambethryng as fixed lambethry C array: public structure example Structure 2 & lt; VBFixedArray (7) & gt; Public myArray Length 8FixedString () End Structure Not sure that this is what you want because it reveals more problems if you ...

python - How can I multiply all the numbers from a list to display a new list? -

OK, that's really important and I just need someone to help me. I'm very new to the dragon, So there are some things that I can not find around my head. I am writing a program that tells the user to input the recipe name, people who do this work. Then, it asks the user for input information about the content. I did this by creating a list, ("ingredient_name, ingredient_quantity, ingredient_unit)" ing = input after ingredient_unit = input ("" Enter the unit of your component: "ingredients.append") shown below ("Show the amount of your constituent:") ("Content" [y / n] ") for all_ingredients =" ".V. (in the content of str (v)) if not (" Y "," yes ") in cont.lower (): Break The program then displays the created list, however, I will then ask the user to input a new number of people for the recipe I want to be able to han, and then multiply new numbers , new numbers of people To...

ruby on rails - Installing rails_admin causes SafeYAML warning -

After the 'bundle install' command, it seems that some older version of Libemal is used (see below). Do not follow the instructions because the rails_admin is the engine (I think). Any idea how to solve this problem? AML Alert ---------------- You have an older version of LPML (0.1.5) before 0.1.6 installed on your system, Libyam Weak for a heap overflow that leverages the malicious YAML payload. For more information, see: https://www.ruby-lang.org/en/news/2014/03/29/heap-overflow-in-yaml-uri-escape-parsing-cve-2014-2525/ Most The simplest thing to do now, perhaps it is possible to update the bike in the latest version and enable the 'bundle-libayam' option, which will establish a vendor limbial with vulnerability: install gem psychology - - Enabled-bundle- Liyyamal Just 3 steps: Tell bundler with specific arguments install bundle config build.psych --enable-bundled-libyaml Specify a new version of psych Gem in Gemfile (Ruby 2.0+ has been sent ...

java - How to extend Spring Boot's DataSourceAutoConfiguration -

I want to take advantage of the spring boot data source auto configuration. Although this does not specifically support all the features I am using, logValidationErrors . driver: Client: source: driverClassName: oracle.jdbc.OracleDriver url: jdbc: jtds: sqlserver: //111.11.11.11 / database name Username: no password: no testing testnonbrows: true testwiyel: true verification : Select / * Verification * * 1 / dual minivictable idle milliseconds: 1000 Validation interval: 30000 They are not currently being used: logValidationErrors: True Max Edge: 1800000 # // 30 minutes Waste Age Extraction Maximum: True Do I Have Datasource Bean made and manually set those values? Or is there a better way to extend or wrap the autoconfiguration? For more information about log-validation auctions , etc., see: I have solved it with BeanPostProcessor , similar to the suggestion of Dave Sirs: @Override Public Object post processApplied before you (object Bean, string beanam) thr...

string - how to add parameters to a custom command vb.net -

is a function that is converting string to hex. It's ok to work with a text box and a button but my project has a console form and output is in the form of a rich text box and a textbox inbox, users have to type the command and execute the order press enter. I am trying to create: hex "string" here is the current state of the inputbox code: personal sub-consoleinputbox_KeyDown (object as the sender, and KeyEventArgs) handle consoleinputbox.KeyDown as the slow command in the string = console input box. Text if e Cacode = key Then A. SuppressKeyPress = True Output Command (Command) End If End Sub Output Function Adding Text to Rich Textbox The CallCommand function is like this: public function calls command (as string) dim as ss = s.ToLower () ss = ss.Trim Choose episode ss episode "cls" GetRtb.rtb.Clear () Episode "Help cls" GetRtb.rtb.AppendText ("Obviusly clear your console screen ..." & amp; vbCrLf) Return true episode ...

java - How to traverse up "nodes"? -

I can not find the right search term (as I'm sure this question has already been asked), so I Will ask again How do I write code to go to the "last" of the node until it is no longer? Note: I do not have permission to use supportive methods (so I do not think I can use recursive methods). Basically I want to print the "Previous" of a node (which points to the previous node). Example pseudocode): node.prev node.prev.prev node.prev.prev.prev Edit: I'm not really working from nodes, it's more accurate, so I have actors, which is a "label", which points to the previous actor. I am trying to write a loop for something like this: A = g.label (actor); B = g.label (a); C = g.label (b); When I write this code: while (g.label (a)! = Null) {a = g.label (a) }} I get stuck on the actor long ago. If I understand the question correctly, do you want to cross the bottom tree? There is no good way to do this if every node only...

javascript - JS function/ajax only passing one parameter -

I have searched here many formulas and can not find the answer. I have to have JS font to post 2 parameters on a php page via AGX. Function: acceptbet (companyid, userid) {$ .ajax ({type: "post", url: "acceptbet.php", data: "companyid =" + companyid + "& amp; Amp; userid = "+ userid, success: function (msg) {warning (company + user id);}}); } I have also tried to do this like this: function acceptabate (company, user-end) {$ .ajax ({type: Post ", url:" Acceptbet.php ", data: {companyid: companyid, userid: userid}, success: function (msg) {alerts (company + user id);}}); } Whatever I do, I can not find it to pass both the "UserId" and "Company" parameters - and the warning will only show the first one. I tried to change the two parameters, and still retire only for the first time. I apologize if I am a deceitful mistake, but I do not understand how acceptbet.php help is greatly appreciated....

Can I use HTML as front end with Spring MVC -

I want to create an app using Spring MVC with the front end as HTML, CSS, and Jquery . I want to know that this is possible. Spring is the model of MVC which can be accessed in the UI to access server side data. My Controllers have the following @Override Protected ModelAndView handleRequestInternal (HttpServletRequest request, HTTPServlet Response Response) throws exceptions {ModelAdviewView = New ModelInDueView ("HelloWorld Page") ; Model.addObject ("msg", "Hello World"); Return model; } My HTML code will be as follows & lt; html xmlns = "http://www.w3.org/1999/xhtml" xmlns: c = "http://java.sun.com/jstl/core"> & Lt; Body & gt; & Lt; C: out value = "$ {msg}" /> & Lt; / Body & gt; & Lt; / Html & gt; Yes you can. - Personal Spring Projects and Indepath Tutorials You can also take advantage of other template engines such as Velocity and Thiamelph to take advanta...

javascript - Read local files from web browser -

Is it possible to read local files for a web application, and display them without uploading? I know that when I upload something, the web browser can show me the file picker and lets me choose the file. Can anyone please enlighten me on this? No modern browsers allow you to access the local file or local file structure. This is a security vulnerability The security of the browser is very tight, and getting tight Local file: // login is usually allowed if you run a browser app from the local file system, and not through an HTTP server.

python - Elastic Beanstalk: Deploy Django for mac, CANNOT install EB -

I am trying to install elastic beanstock for Zago in Mac according to Amazon's tutorial: Step 3: Configure the ADS Lowstitch Beanstock: When I go to the third bar " From your directory where you have your local store Type the following command. " eb init error (djangodev) Li-James-MacBook- Pro: ~ h0925473 $ git init / user / current / h 025473 / .git / (djangodev) The existing GIT repository was restarted Li-James-MacBook-Pro: ~ HK 08473 $ alias EB = "Python 2.7 / user /h0925473/AWS_EB/eb/macosx/python2.7/eb" (DJENday) LEI-JAMES-MACKBOOK-PRO: ~ HK 9 25473 $ EB INIT TRASBACK (most recent call final): file "/ User / HK 0 02473 / AWS_EB / EB / MacACOX / Python 2 / EB", in line 17, & lt; Module & gt; Secular import core file from "/Users/h0925473/AWS_EB/eb/macosx/python2.7/scli/core.py", line 24, & lt; Module & gt; With Scli import command, cli_parse, config_file, prompt file "/Users/h0925473/AWS_EB/eb/...

python - Getting the first three bytes of an IP address -

I want to use an IP address string, that is: 1920.168.1.23 but only the first three bytes of the IP address And then add 0-255 I want to convert that IP address to a range of IP addresses. 'I can pass NMP to scan a sweep. The easiest solution to the curriculum is to touch the last two letters of the string, but certainly this will not work if the IP is 192.168.1.1 or 192.168.1.123. Here is the solution that came with me: lhost = "192.168 1.23" # Split everything up. "So first (lip): if (i This works fine but it's not ugly and efficient for me What is a better way to do this? C object can use the refund function. >> Lhost [: lhost .rfind (".")] + ".0-255" '192.168.1.0-255' RFID functions are similarly found (), but end. rfind (...) S.rfind (sub [, start [, end]] -> will return the highest index in int sri where substrings are found, such as within sub s [Start: end]. Optional arguments being interpr...

Why won't PHP strtotime work for a date in this format mdy? -

I have a problem verifying the dates in PHP 5.2.17 I would like to enter a six-digit date without any punctuation marks The user needs to, so will be 15 January 2014 011514. (This is due to the limit of input device and user convenience). Tested and it is not working: $ testDate = "011514"; $ myDate = date ('MDI', Stratom ($ testdate)); Echo $ myDate; I expected that my date is similar to the date of examination, but it is not, it prints today's date 042314 (April 23, 2014)! PHP does not like that there is no punctuation in my original string. If I change $ testDate = "01-15-14" then the PHP excludes the correct string "011514". How can I understand strtotime () that I want to check dates in 'mdy' format without using date_create_from_format? Additional information: The PHP version is 5.2.17, so is not able to use date_create_from_format. What is the limit of stratetime () can understand. It can not understand ev...

Linux uptime command inside php doesn't show anything -

I'm trying a Linux command for uptime in a php file on a server & lt; P & gt; Uptime for this system & lt ;? Php $ up_time = shell_exec ('uptime'); Echo $ uptime; ? & Lt; / P & gt; But when I open my webpage it just shows: uptime for this system PHP is running in command if I go to command prompt and uptime, I can see the result. I am doing SSH in a Linux webserver. The PHP file stays in my folder on the server. I think the following code will work. uptime for this system & lt ;? php passthru ('/ usr / bin / uptime'); ? & Gt; To execute the system command in a PHP, I suggest that you always provide a full path to the command.

Ruby on Rails Development: updating model attribute using f.association collection -

IM is currently working on a rail program. It has many different databases but I have people, students and faculty tables to keep things simple. A person may be a student or faculty member and there is a person connected by all persons / ID. A faculty member advises the students so that the student is connected to faculty member by faculty ID. To make a student, you have to choose a major and a faculty member (FacultyID). Being a student and faculty members are all people .. in my dropdown me & Lt; / Div & gt; To limit people to the faculty members only in the drop down But now the issue which is going on in the I How do I set up the Faculty_ID feature? I was able to detect the solution as it turns f.association to limit the dropdown list I have created a form form to prepare a list of consultants using SQL in my person controller def set_advisors @role = Role Find_by_role_name ('advisor') @ Edwise = Person.find_by_sql ("Selection AID, P.Fi...

java - How to display Chinese Chracter on JBoss 4.2.3GA -

Image
Similar to the title, please advise how to configure JBoss to display the Chinese character The unreadable character is having difficulty for me when I saw unreadable words and did not know what was happening with the error. kindly advise. Try the following: JBOSS_HOME // server / (default) /deploy/jboss-web.deployer/server.xml Edit And edit the following line (I think UTF-8 is OK, but I think you will also have to try with other values): Edit Depend on Ethyl JBOSS_HOME / bin / run.bat or JBOSS_HOME / bin / run.sh OS that you are using accordingly -Dfile.encoding option (again , First try UTF-8): JAVA_OPTS = JAVA_OPTS -Dfile.encoding = utf-8

javascript - Dragging local image in webpage crashes Chrome -

I am working on a page where users can view / upload local files. Once the file is selected, I am displaying the image in the page. I have encountered a problem that crashes my browser window (chrome) by dragging this image. Simple HTML: & lt; Input Javascript (jQuery): $ ('Input') {var file = $ ('input'). Get (0) .files ; Var fileRedder = new file reader (); fileReader.onload = function (e) {$ ('img') .attr ('src', e.target.result);}; fileReader.readAsDataURL (file [0]) ;}); Speaking of a bit more, it seems that with big image files (such as uncompressed photos from the iPhone), this is a problem. It is not necessary that the page be a dealer-breaker, but definitely drag one image and instantly get bothered to crash the page. Is there a good way to fix this? Post-text "itemprop =" text "= undefined & window.phill reader! == undefined) {var reader = new FileReader (); Var self = this; Reader.odo = f...

html - Janrain Engage Social Login Looks Messed Up in Bootstrap 3 -

Image
Has anyone else enabled enabling genetic engineering and bootstrap 3.x? In order to use Bootstrap 3, after updating, my project, in the attached enclosed sign-in widget, appears to be disturbing and it seems that overflow is beyond its limits. According to this, this bootstrap box-sizing: border-box; is due to the use. Janian claims that they can not make any changes because they need to continue to support IE7, but by January 2014, they were ceasing support for IE7. However, the change has not been made and it is still messing up. Here's the Jernian Engage sign-in widget that looks in Chrome: and in Firefox: Unfortunately, the community forum is apparently not open to users with free accounts, and I did not find any response from the Janane Engineering Team. I tried to disable box-sizing: boundary-box; on & lt; div id = "janrainModalOverlay" & gt; , but it has a negative impact on the rest of the layout. Has anyone else made a simple de...

c++ - Trying to avoid parameter overhead in function calls -

In a display critical application I am writing, at one point I repeatedly have the same function in a tight loop with millions Calling the bar always with the same parameter I decided to try to avoid the upper part of the parameter by putting parameters in a square. For example, first: some_class p1; Some_class p2; Some_class p3; For (integer number = 12345678; count; - number) af (p1, p2, p3); After : class foo // Private / public ignore for short [some_class & amp; p1_; some_class & amp; p2_; some_class & amp; p3_; Fu (some squares and p1, some squares and p2, some squares and p3): p1_ (p1), p2_ (p2), p3_ (p3_) {} zero executed (); } Some_class p1; Some_class p2; Some_class p3; Af F (P1, P2, P3); For (int calculation = 12345678; count; -cout) f.execute (); My profiling results were: = 11121 ms before, after = 11416ms. I was expecting an improvement in the performance because I had the parameter address on the stack, but in return there was a slight declin...

javascript - How do I mix underscore functions to use a custom comparison algorithm for _.contains()? -

Ideally, I want to pass a custom comparison function to _. Logic, but it only accepts collection and one value. Code I want to do this: _.contains (['apple', 'orange'], ' Sepales', function (element, value) {new rexpacks (element) test (value);}); ... but if I can not, what's the best thing? It looks as if you are looking, what if true returns Passes at least one element in the test array: _. Some (['apple' '' oranges'], function (element) {new replay (element) test ('selection');}); You can easily wrap it in your function: function test_regexes (arr, value) {return_.some (arr, function) {New RegExp (element) .test (value);}); } test_regexes (['apple', 'orange'], 'sepalesh');

javascript - Ng-repeat doesn't show data -

I'm very new to Angular JS and at the moment I'm learning PHP rental service with Engels. I had a problem, why was my response data in NG-DROP? This code structure is: & lt; html ng-app = "ngTest" & gt; & Lt; Top & gt; & Lt; Title & gt; Angular Test & lt; / Title & gt; & Lt; Script type = "text / javascript" src = "http://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "https://code.angularjs.org/1.0.7/angular-resource.js" & gt; & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; div ng-controller = "getctrl" & gt; & Lt; Ul & gt; & Lt; li ng-repeat = "User in User" & gt; {{User.email}} & lt; / li & gt; & Lt; / Ul & gt; & Lt; / Div & gt; & Lt; Script type = "text / javas...

Laravel - Many to many not pulling back results -

मेरे पास निम्न के साथ उपयोगकर्ता वर्ग है: सार्वजनिक फ़ंक्शन स्कूल () {return $ इस- & gt; belongsToMany ( 'स्कूल'); } मेरे पास निम्न के साथ एक स्कूल वर्ग है: सार्वजनिक फ़ंक्शन उपयोगकर्ता () {वापसी $ this- & gt; संबद्धता ('उपयोगकर्ता'); } मैं धुरी जनरेटर का उपयोग करके मेरी पिवट सारणी बना रहा हूं, यहां पर इसके लिए माइग्रेट किया गया है: सार्वजनिक फ़ंक्शन अप करें () {स्कीमा :: बनाएँ ( 'स्कूल_यूसर', फ़ंक्शन (ब्लूप्रिंट $ तालिका) {$ table- & gt; वृद्धि ('आईडी'); $ टेबल- & gt; पूर्णांक ('स्कूल_आईडी') - & gt; अहस्ताक्षरित () -> gt; सूचकांक (); $ table- & Gt; विदेशी ('स्कूल_आईडी') - & gt; संदर्भ ('आईडी') - & gt; पर ('स्कूल') - & gt; onDelete ('cascade'); $ table- & gt; पूर्णांक ('user_id') - & gt; ('यूज़र') - & gt; ऑन ('उपयोगकर्ता') - & gt; onDelete ('कास्केड'); $; & gt; इंडेक्स () - & gt; इंडेक्स (); $ टेबल- ...

node.js - How to connect to Mysql database on XAMPP in AppJS -

I am using APJs for Linux 32-bit machines and for developing desktop applications. For a while, I can not find any way to connect to my MySQL database on XAMPP. Is it possible to connect or am I wasting my time in search? Please help. From /p> It seems that you can use the available libraries for the node to do this. like . Besides that, I think you should look at . Excerpt: The next generation of deskache epiges is dissolved in the episode node and chromium's event loop. That's great, but this means that the operation of long-running nodes will stop animation in the browser, and this means that many other unexpected side effects. The solution is to run two separate binary (nodes and chromium) and combine them together using the Chrome Remote Debugging Protocol. Disclaimer is therefore built in JavaScript instead of C ++ and it makes it faster to develop faster and faster. APJs will be able to use the desktop instead of Chromium as a "browser"...

cant import netsnmp in python on centos 6.5 -

I am trying to use netsnmp in Python but after importing all the tips related to netsnmp in Ajan I'm unable to install netsnmp under the command yum install net-snmp net-snmp-utils easy_install ipython SNPP service is running . It still throws this error importError: There is no module named netsnmp I use St OS 6.5 and Python version 2.6.6 Please help if installation is incorrect or any other configuration is unavailable. netprint = "text"> itemprop = "text"> To import netsnmp into Python, only net-snmp-python net- Both snmp net-snmp-utils can be removed. yum install Net-snmp net-snmp-utils will enable the SNMP query from the Linux terminal. Both can work independently.

How can i Play wmv video in HTML player? -

I want to play wmv video in the browser, and want to move the header and footer to the page I am I am unable to play the video mp4 , but I want to play wmv I can not find it in Google but unable to find anything. Please guide me to play wmv video from the HTML page. You can not do this in HTML5 video play WMV files. It has been answered. If you want to play video cross browser with HTML5 video you need to transcode your WMV file (currently at MP3 and WebM). Take a look here for a take. To embed a WMV video in a web page, you have to use an object / embedded tag that calls the Windows Media Player plugin (if it is installed - that means it will not work in the platform Where plug-ins are not available like iOS). Take a look here for A.

How to repeat alarm from 8 AM to 10 PM android -

I want to make an app that comes in every hour from 8 AM to 10 PM, how can I do this here Repeatable alarm after every one hour AlarmManager AM = (alarm manager) context.getSystemService (Context.ALARM_SERVICE); Intent to intent = new intent (reference, alarmmanagerbraska receiver square); Intent.putExtra (ONE_TIME, Boolean FALSE); Pending identification Pi = pending INT.getBroadcast (reference, 0, intent, 0); // 5 seconds later.Resolution (AlarmManager.RTC_wekup, System.contentime millise (), 1000 * 60 * 60, PI); The only way to set an alarm in the fire once in just one hour and your desired start And awareness time against expiration time. There is another way to do this, but to shut down the alarm at 10:00 and set one for 8AM instead. Then again until noon till noon. Edit: You can compare time by using something like this: import android.text.format. Time; ... personal static final end START_HOUR = 10; Private Stable Final EndEND_HOUR = 22; ... now time = new time...

jquery - Inputs clearing on page load -

I am having a problem, where some inputs are cleared after the page is fully loaded, document is ready now Upon doing, some inputs are being populated with jQuery. This part is working fine, however, when the page is fully loaded, some inputs are cleaned. Text input, checkbox, and selection options retain their value, though the radio buttons and textors are cleared. . I see that the only way is that there is a big image in a page that takes some time to download while the image is loading, all input shows the appropriate value, even after the image is loaded, everything Becomes clear. In addition, in chrome, the texture disappears. It still appears in the inspector to take the place, and if you change the CSS property through the bus inspector, like padding, it looks again whether there could be a reason to clear some inputs on a form page load. Will? The site is a Magento site and is using jquery 1.7.2. Thanks for any help you might be able to provide! Try to load the bug im...

ruby - Pass a Rails variable into a case statement -

I am using rail and I have an array which I am trying to control output. In short, if a project with an ID exists in @projects , then I do not want to output the relative portion of that array, if it exists, If there is a project with ID, then I do not want to do the output @array [1] , even if it exists. The description of the following difficult cutting works successfully, @ array [1] , @array [2] and @array [3 ] : To avoid the output, @ array.each do | Key, value | but instead of hardcoding '1', leave '# 1', '2', '3' and then # next to this array key end #, '2', ' 3 ', I really want them to be dynamically passed through the active record. I tried to create a string: @projects_string = @ projects.map {| Element | "# {Element.id} '"} .join (', ') This output is successfully copied to ' 1 ',' 2 ',' 3 ' . But I can not understand a way to pass it in the case statement...

java - Custom UI library not working in project -

I would have added a library in your project, however, when I use any ideas offered by the library, then It gives me the unbound prefix error . I've added the Namespace and also in my XML file, I'm still getting this error. & lt ;? Xml version = "1.0" encoding = "UTF-8" & gt; & Lt; RelativeLayout xmlns: android = "http://schemas.android.com/apk/res/android" xmlns: wingokuFlatUI = "http://schemas.android.com/apk/res-auto" Android: layout_width = "match_parent" Android: layout_height = "match_parent" & gt; & Lt; com.wingoku.flatUI.WinGokuFlatButton Android: Android: Layout_width = "Wrap_content" Android: Layout_height = "Wrap_content" android: text = "wingoku" Android: textColor = "#fff" wingokuFlatUI: Samanystet Corolr = "# EB 9 74 A" Wingoku flatui: pressed position = "# F2784b" /> & Lt; / RelativeLayout & gt; Update: ...

javascript - Twitter Bootstrap: Select Box vs DropDown -

मेरे पास चयन के लिए बूटस्ट्रैप से एक सरल कोड है & lt; select class = "form नियंत्रण "& gt; & LT; विकल्प & gt; 1 & lt; / विकल्प & gt; & LT; विकल्प & gt; 2 & lt; / विकल्प & gt; & LT; विकल्प & gt; 3 & lt; / विकल्प & gt; & LT; विकल्प & gt; 4 & lt; / विकल्प & gt; & LT; विकल्प & gt; 5 & lt; / विकल्प & gt; & Lt; / चयन & gt; यह ड्रॉप डाउन विकल्प 1,2,3,4 और 5 के साथ एक चुनिंदा बॉक्स देता है। लेकिन चयन बॉक्स में प्रदर्शित मान 1 है। मैं "संख्या चुनें" शीर्षक वाले चयन बॉक्स को प्रदर्शित करना चाहता हूं और उस ड्रॉप डाउन में मानों को 1,2,3,4 और 5 होना चाहिए। क्रूड तरीके से करना जो जोड़ है & lt; विकल्प & gt; संख्या चुनें & lt; / option & gt; क्या कोई बेहतर तरीका है कि मैं चयन बॉक्स में चयन संख्या को प्रदर्शित कर सकता हूं लेकिन सूची बॉक्स की सूची में नहीं। धन्यवाद सीएसएस: .form-control विकल्प: प्रथम-बच्चा {प्रदर्शन: none; कार्य बेला ...

ios - Objective c: How to set the UIImageView image -

है I i उद्देश्य c और iOS विकास UIImageview छवि सेट करें निम्न कोड आज़माएं arrowImgVw UIImageView क्लास ऑब्जेक्ट UIImage * image = [[UIImage alloc] init]; छवि = [UIImage imageNamed: @ "return_journey_denoter.png"]; ArrowImgVw.image = image; अरे आप कुछ बिंदुओं में गलत हैं, UIImageView में एक छवि जोड़ने के लिए इस कोड का उपयोग करें और आईफोन डिवाइड पर इसे प्रदर्शित करें UIImageView * myImage = [[UIImageView alloc] initWithFrame: CGRectMake (0, 0, 320, 460)]; // छवि को आवंटित करना और उसके फ्रेम को सेट करें। myImage.image = [UIImage imageNamed: @ "return_journey_denoter.png"]; // छवि दृश्य में छवि जोड़ें [self.view addSubview: myImage]; // अपने दृश्य नियंत्रक के दृश्य में छवि दृश्य जोड़ें

vbscript - Classic ASP Type Mismatch with If Then Statement -

Can anyone please tell me why this is a type mismatch using classic ASP error? What to do if other content is finished "override content"> if (strPaidByPO = True) or (arrResult (0 ) = "1" ArrResults is an array and strPaidByPO is a variable. Thanks, Before if statement type the following (I think you can guess about the type). Call Response. TypeName (strPaidByPO) & amp; "& lt; br / & gt;") Answer a call. Type (arrResult) & amp; "& lt; br / & gt;") Answer Answer Flush () If you want your variable type, you should get the following output Boolean Version () You can also find if your array is multidimensional in which case you need to specify all the dimensions. There is something other than typeName (arrResult (0)) in what other condition is arrResult (0) in string To check whether it is.

javascript - Display number of collection items in a View with Backbone -

मैं संग्रह में वस्तुओं की संख्या कैसे दिखाऊं? मैंने collection.models.length या collection.length का उपयोग करने का प्रयास किया मैं यहां तक ​​कि बैकबोन.कॉल्यूशन नामक एक कोड को भी संग्रह की लंबाई वापस करने के लिए बनाया लेकिन कुछ भी नहीं हुआ। खाका: & lt; p & gt; आपके पास & lt; span class = "caller-num" & gt; 0 & lt; / span & gt; मिस्ड कॉल। & Lt; / p & gt; संग्रह: // कॉल करने वाले संग्रह को परिभाषित करें (['jquery', 'underscore', 'backbone', 'मॉडल / कॉलर'], फ़ंक्शन ($, _, बैकबोन, कॉलर) {var कॉलर्स लिस्ट = बैकबोन.कॉलक्शन.एंडेंड ({मॉडल: कॉलर, यूआरएल: 'जेएस / जेसन / कॉलर्स.जेसन', // को ऐसा करना पड़ा क्योंकि यह 'कॉलर्स' कुंजी है वस्तुओं की सरणी होती है, जेसन पार्स: फ़ंक्शन (डेटा) {return data.callers;}, गिनती: फ़ंक्शन () {this.length;}}); वापसी कॉलरलिस्ट;}; मिस्ड कॉल्स देखें: मिस्ड कॉल्स की संख्या दिखाना परिभाषित करें (['jquery', 'अंडरस्कोर', 'बैकबोन', ...

html - Workarounds for Mobile Safari (iOS 7.1) Fixed Position Tap Inaccuracy? -

Safari on iOS 7 is displaying a bug with a fixed header navigation where the click target is not correctly maped Thought elements are portrayed. Steps to reproduce: Scroll down the page until the Safari's address bar is smaller and the Toolbar disappears down is. Tap a button on the bottom line (for example 'z' button). The toolbar must have reason to extend this address bar and to appear again. Also note that the button click is not triggered. Now try to tap a button in the top row (for example '1' button). A button will be activated from where the tap occurs. Some solutions for which I need a workaround ... Safari UI to be triggered while changing status I have not seen any events with resizing or scrolling triggers. There is an incident that I can trigger which toggles this UI state. Did you -webkit-backfish-visibility: hidden; Have tried to add to your header buttons? If this works, it is probably due to layer enhanceme...

asp.net - Filtering jquery datatable based on a column value -

I am using jQuery Datatable for my table lists here. My table structure is username | Education --------------------------------------------- Philip Bachelor john | Post Graduate Alex | Graduate Emily | PhD Allen | Posted in Graduate George | PHD ................................................. ............................................... ...... ................. Tom | graduate ------------------------------------------------- ----- But I need to place a dropdown next to a text dropbox that has 3 options, when we choose the first option, the graduation, which will only show the list of graduates, In the same way if we choose PhD, which will list only PhD users, hope that the question is clear. Also sharing my data call $ ('# tbl_users'). DataTable ({"sDom": "& lt; 'row' & lt; 'call-MD-6'i & gt; & lt;' call-MD-3'f & gt; & gt; T & lt; ' Space20 '& lt;' line '& lt; call-MD...

How to change transitions to a issue in ruby, using jira-ruby gem? -

I am trying to use cumin in ruby ​​with Jira-Rabi Mani (), but I do not know How can I change the transition by using it only REST-api? There is a transition class (), but I do not know how to deal with it. You say that you / issue / {issueIdOrKey} / transitions The situation is said to move from one position to another. First get the transition available to a problem: client = JIRA :: Client.new (...) Problem = client.Issue.find ("PROJECT -123 ") available_transitions = client.Transition.all (: issue = & gt; issued) available_transitions.each {| Ea | Now you have the names and ID of the possible changes. "# {Ea.name} (id # {ea.id})" " Store the ID of the transition you make, then use this to save a new transition for this issue: transition_id = ... transition = issue.transitions.build transition.save ! ("Infection" = & gt; {"id" = & gt; transition_id}) I had to check the docs some times to understand th...

css - jquery apply rgb borders in element -

I want to modify the limit of arrows -element with jQuery, but it will not be Modify But it works fine with CSS. HTML & gt; & Gt; & lt; Div class = "pointer" & gt; & Lt; div square = "arrow" & gt; & Lt; / Div & gt; & Lt; Div class = "arrow_border" & gt; & Lt; / Div & gt; & Lt; / Div & gt; JQUERY & gt; & Gt; $ ('.rowrow_border'). CSS ({'border': 'RGB (0, 0, 0, 0) RGB (RGB (21,9, 0, 219) RGB (0, 0, 0) RGB (0, 0, 0)! Important; } $ $ ('.rowrow_border'). CSS ({'border-color': 'RGB (0, 0, 0) RGB (RGB (219, 0, 219) RGB (0, 0, 0 ) RGB (0, 0, 0)! Important; '}); CSS> .rao, .arrow_border { Border-color: RGBA (0, 0, 0, 0) RGB (80, 255, 255) RGBA (0, 0, 0) RGBA (0, 0, 0, 0) border width: 11px border-style: Solid; font-size: 0; left: 50%; line-height: 0; margin: 0 auto; position: absolute ; Top: 0; width: 0; z-index: 1002; left: 0; mar...

ruby on rails - angularjs add a model layer -

I am using angle with the rail backend and I'm using the $ resource to interrupt the backend API I am Therefore, I have a user service that is a resource resource App.factory ('user', ['$ resource', function ($ resource) {return $ resource ('/ user / I can now use User to interact with Rail API: ID ', {id:' id '});}] But the problem is all the tasks with an HTTP request for the rail operations at the end of the user. The scenario is where I just got this model I want to make an example, but not to interact with rail, in the conference of rail, I need a User.new which is a user Returns the object, but no User.create will save this object on the server. This is a matter of thought that I can do the following: var user = User.new ({attr1: value1, attr2: value2 .....}); New Price User Promise with Prices Provided = User. Create (user) // How it can be achieved As apneadiving pointed out, the resource example is the ...

ruby on rails - Checking whether a user has interacted with an item -

I have a table for users and items, whatever I would like is a way to get all the items that are special The user has not yet completed How would I go about it efficiently in an idiomatic rail? I was thinking of creating a new table called Usurites, which contains a user_id and item_id column. I think this is the right approach, but I'm not sure how I would actually get the user's incomplete items. What is the right activation syntax? Thank you! @ strong> If you have a model included, you can only UserItem s, which is interacted / completed with the user (for efficiency). To complete the items, I will compare items that have been completed from the list of items: # app / model / user.rb class user & lt; ActiveRecord :: Base has has_many: user_items has_many: items, via: user_items def, incomplete_times target = self.items return items. All.where ('id! =?', Target) end #user_items id | User_id | Item_ID | Made_at | Updated_at To g...

indent keywords or a specific selection of lines in vim -

How do you make a specific selection of lines in VIM, for example line 1, 5 and 6 Apart from this, there is a way of starting lines with a certain keyword, for example search for all words starting with def and indent it. Thanks for indent line 7 : 7> gt; & Gt; To indent the range of lines 3-5 (Indent lines 3,4 and 5) : 3,5> gt; & Gt; Use global order for def and indented all matches: : g / def /> & gt; & Gt;

android - Swipe in a listview -

Image
I have a list view and I have to make something very easy to access the list view. So I want to do something like Samsung Contacts List Can anyone start to help me out where? (Perhaps a code example or some explanation where to start?) It's just that I want to make a list view with this type of hard mechanic. I do not want to delete a line or add a line I just want an event behind it when it swipe. And the animation will be cool if something happens. Follow libraries on Gitub of Roman Nouric

asp.net mvc does not model bind a datetime value although its send with form post -

फिडलर के साथ मेरा फॉर्म पोस्ट यह है कि: नाम = testdate4 और निर्मितआइट = गुरु + जनवरी + 01 + 1970 + 01% 3 ए 0% 3 ए 0 + जीएमटी% 2 बी 10100 + (मिटेलेलोप% सी 3% ए 4 ईश + जइट) तो बनाया गया दिनांक छिपे हुए फ़ील्ड के साथ सही ढंग से भेजी जाती है। लेकिन मेरी कार्यवाही में: [एचटीपीपीओस्ट] सार्वजनिक एक्शनरसल्ट बनाएँ (टेम्पलेटव्वैलमॉडल टेम्पलेटव्यूमोडेल) {} सार्वजनिक वर्ग टेम्पलेट व्यू मॉडेल {सार्वजनिक स्ट्रिंग नाम {get; सेट; } सार्वजनिक दिनांक समय बनाया {प्राप्त करें; सेट; }} नाम को भेजा जाता है और नाम की संपत्ति के लिए मैप किया जाता है लेकिन बनाया गया संपत्ति छुपा क्षेत्र में मैप नहीं की जाती है, क्यों? मुझे पहले यह मुद्दा है, और क्योंकि मेरा ब्राउज़र सर्वर संस्कृति से भिन्न दिनांक स्वरूप स्वीकार करता है। उदाहरण के लिए मैं अपने datepicker को ब्राउज़र में डीडी / एमएम / यानी प्रारूप को स्वीकार करने के लिए सेट किया है लेकिन सर्वर डिफ़ॉल्ट संस्कृति में एन-यूएस है भले ही आप फिल्डलर में मान देखने का प्रबंधन करते हैं लेकिन आप इसे नियंत्रक में नहीं प्राप्त कर सकते हैं। तो आखिर...

php - Can't install phpDocumentor via Composer -

कंपोज़र में। जेसन मुझे मिल गया है {"require": {"phpdocumentor / Phpdocumentor ":" * "}} यह वही है क्योंकि मैं phpDocumentor को ./ composer.phar install के साथ एक पृथक फ़ोल्डर में स्थापित करने का प्रयास कर रहा / रही हूं। आदेश। लेकिन मुझे क्या मिल रहा है पैकेज जानकारी के साथ संगीतकार भंडार लोड हो रहा है निर्भरता को अद्यतन करना (आवश्यकता-देव सहित) आपकी आवश्यकताओं को संकुल के एक इंस्टॉल करने योग्य समूह के लिए हल नहीं किया जा सकता है समस्या 1 - phpdocumentor / phpdocumentor v2.0.0 को phpdocumentor / template-abstract ~ 1.2 - & gt; Phpdocumentor / टेम्पलेट-सार से संतुष्ट [1.2, 1.2.1]। - phpdocumentor / phpdocumentor v2.0.1 को phpdocumentor / template-abstract ~ 1.2 - & gt; Phpdocumentor / टेम्पलेट-सार से संतुष्ट [1.2, 1.2.1]। - phpdocumentor / phpdocumentor v2.1.0 को phpdocumentor / template-abstract ~ 1.2 - & gt; Phpdocumentor / टेम्पलेट-सार से संतुष्ट [1.2, 1.2.1]। - phpdocumentor / phpdocumentor v2.2.0 को phpdocumentor / template-ab...

plugins - Bukkit - Compare config string with argument -

I get this weird bug I have this code, which compares the password to the logic given in the configured file: If (label.equalsIgnoreCase ("login")) {if (conconfig (.) Getstring ("player." + P.getName () + ". Password") == Args [ 0]) {p.sendMessage ("OK!"); } And {p.sendMessage ("Not Right!"); } But it does not matter that it is "not right!" Tell me, what am I doing wrong? Ive tried to argue it, to send a message with the given logic and what she sees in the config file. They were both the same! You should try string configValue = config.getString ("player." + P.getName () + ".password"); If (configValue! = Null & amp; configValue.equals (args [0]) {// You may have your idea / xy & lt; password & gt; or / Xy z & lt; password & Gt; p.send Message ("OK!");} And {p.sendMessage ("Not OK!");}

php - Validate webhook from Podio -

I am creating a PHP script to integrate with podio .. I think I'm fine, but I Can not verify the webhook from the Podio website .. Can you tell me what I am doing wrong? This is my code: need_once '../lib/Podio/PodioAPI.php'; Need_once '../lib/Podio/__cfg.php'; Podio :: Setup (CLIENT_ID, CLIENT_SECRET); If (! Podio :: is_authenticated ()) {Podio :: authenticate ('app', array ('app_id' = & gt; APP_ID, 'app_token' = & gt; APP_TOKEN)); } If ($ _POST) {Switch ($ _POST ['type']) {case 'item.create': $ item = PodioItem :: get ($ _ POST ['item_id']); DoMyStuff ($ item 'create'); break; Case 'item.update': $ item = PodioItem :: find ($ _ POST ['item_id']); DoMyStuff ('Update', $ item); break; }} You must add the case to verify your webhoc: case 'hook Verify ': Podhihoke :: Validate ($ _ POST [' hook_id '], array (' code '= & gt; $ _POST [' ...

ios - How to go iphone settings bundle from my app with alerview button click? -

इस सवाल का पहले से ही एक उत्तर है: 12 उत्तरों मेरे आवेदन में पहले खुला चेतावनी दृश्य बटन के साथ अगर उपयोगकर्ता चेतावनी दृश्य बटन पर क्लिक करता है तो मुझे अपने डिवाइस में बंडल को लॉन्च करने की आवश्यकता है। [[UIApplication साझा किया गया एप्लीकेशन] ओपनलल: [एनएसड URL यूआरएल स्ट्रिंग: @ "प्रीफ्स: //"]]; यह आईओएस 7 में काम नहीं कर रहा है। क्या कोई विचार है? ऐसा करने का कोई रास्ता नहीं है। अभी तक (11 जनवरी 2013) सेटिंग एप के लिए कोई यूआरएल उपलब्ध नहीं है। ऐप्पल http, mailto, tel , और एसएमएस यूआरएल योजनाएं।

c++ - Program execution steps -

I have a C ++ program that works fine, though it needs to run long but when it So I can continue to develop some parts of it. If I compile my program again, then it will replace the binary with a new one. Will it modify the behavior of the ongoing program? Or process and binary file are two different things when the program is started? More generally, what are the steps for program execution? On Linux, use the process memory mapping to map the executable file and text section of the shared library. If you can overwrite the executable file in the moving process memory, then it will affect the running process, however, writing in the mapped file for execution is prohibited - you get a "text file busy" error Land. However, you can still compile the program again. If the compiler (in fact Linker) receives this error, then it removes the old executable file and creates a new one on Unix, if you remove a file that is in use, then the file content is actually disc Not t...

android - how to match string stored in shared preferences with current date -

In my app, I am storing a 2 dimensional array using shared prefens, which now has dates on date Saving a complete public void onrecieve () does not give me any errors, but when I match the current date with the array, it always looks wrong What is the date and if it does not go into condition then string [] [] my_date; Set up & lt; String & gt; check date; / * Gets the date of today and it is covered in the string / calendar calendar = calendar.Just instant (); int todaysDate = cal.get (calendar. DAY_OF_MONTH); String cDate = integer Trusting (today's day); Shared references pref = arg0.getSharedPreferences ("MyPref", 0); // 0 - SharedPreferences.Editor Editor for Private Mode = pref.edit (); Set up & lt; String & gt; Set = new hashset & lt; String & gt; (); (For int i = 0; i This will always give you false . You put the number set of the day with apostrophes. Therefore, there will be items in your set : '1', '2',...

android - Why the "adb shell monkey --wait-dbg" doesn't work? -

मैं चालू कोड को adb shell monkey --wait-dbg का उपयोग करके रोकना चाहता हूं, लेकिन नतीजा यह केवल इस तरह दिखता है: चौखट राशि भेजना और फिर बंदर अभी भी चल रहा है आधिकारिक समझा जाता है "जब तक कोई डिबगर संलग्न नहीं होता है तब तक निष्पादित करने से बंदर को रोक देता है।" मुझे यकीन नहीं है कि आपका आदेश काम क्यों नहीं करता, लेकिन आपने इसे काम करने की सूचना दी: adb shell ps | awk '/com\.android\.commands\.monkey/ {system ("adb shell kill" $ 2)}' यह एक लिनक्स कमांड लाइन है। मुझे इसे बताएं: यह सभी चलने वाली प्रक्रियाओं (पीएस) को प्रदर्शित करता है, इसे "com.android.commands.monkey" (awk) की प्रक्रिया आईडी प्राप्त करने के लिए फ़िल्टर करें, फिर इसे एक सिग्टरएम सिग्नल (मार) भेजता है। लिनक्स कर्नेल से सीधे आपके द्वारा लक्षित प्रक्रिया को SIGTERM सिग्नल भेजता है।

c# - Linq Group by id -

var क्वेरी = से संदर्भ में c.Auto प्रसंग में आरम्भ करें। c.idAutoChar पर लेबल r.idAutoChar के बराबर है संदर्भ में जी जुड़ें। C.idAuto पर बराबर g.idAuto बराबर होता है जहां c.idAutoChar == r.idAutoChar & amp; amp; c.idAuto == g.idAuto समूह नया {c, r, g} नया {c.idAuto, r.Name, c.RegNumber, g.Summ} द्वारा v में नया {v.Key.idAuto, v.Key चुनें .नाम, v.Key.RegNumber, sum = (v से v v चुनिए v.Key.Summ) .Sum ()}; मुझे एसएएम (सम) के एक कॉलम के साथ आईडीएयूओ द्वारा कारों को समूहित करने की ज़रूरत है लेकिन यह सही ढंग से काम नहीं कर रहा है। क्या आप मदद कर सकतें है। var query = संदर्भ से c.Auto संदर्भ में r पर जुड़ें। C पर लेबल। idAutoChar बराबर है r.idAutoChar संदर्भ में जी शामिल है। c.idAuto पर बराबर g.idAuto // जहां c.idAutoChar == r.idAutoChar & amp; c.idAuto == g.idAuto // ??? नया {c.idAuto, r.Name, c.RegNumber} द्वारा समूह नया {c, r, g} v में नया {v.Key.idAuto, v.Key.Name, v.Key.RegNumber, sum = v का चयन करें .Sum (आइटम = & gt; आइटम। के.ए.एस.म.)}}; उपयोग sum = v.Sum ...

sql - Remove sequential dupelicates -

I have an event management system that enters rows in a DB by updating a record every time A work may start - & gt; Edit - & gt; Approve - & gt; Decline - & gt; Edit - approval-> However, it can be updated some time by somebody, so there are several entries for a position such as Start - & gt; Edit - & gt; Edit - & gt; Edit - & gt; Approve - & gt; Decline - & gt; Decline - & gt; Edit - approval-> I would like to remove squalidity duplicates, but if this situation is later, then I SELECT taskid, version, taskstats, ROW_NUMBER () Which product is in sqtaskflow in sideways > Id var status rank 16 1 qa full 1 16 2 qa full 2 ​​16 3 qa full 3 16 4 in line 16 5 in queue 2 16 6 in queue 3 16 7 q Full 4 16 8 QA Full 5 16 9 QA Full 6 16 10 Functions Completed 1 The desired output will be id var status position 16 1 QA full 1 16 4 queue 1 16 7 QA Full 4 16 10 work complete 1 Assume that version is alw...

ios - phonegap plugin add org.any.plugin seems ok but not added to the project? -

मैं phonegap प्लगइन add org.apache.cordova.device के माध्यम से एक प्लगइन को जोड़ने का प्रयास करता हूं मैक में टर्मिनल, इसे कुछ समय मिलता है और कहते हैं [phonegap] प्लगइन को जोड़ना: org.apache.cordova.device [phonegap] सफलतापूर्वक प्लगइन जोड़ा गया लेकिन आईओएस परियोजना प्लगइन फ़ोल्डर में इसे जोड़ा नहीं गया है। अपडेट 1 कमांड भी चलाएं फोनगैप बिल्ड आईओएस धन्यवाद DamithH क्या आपने नीचे दिए गए आदेश को चलाकर परियोजना का निर्माण किया है? phonegap build ios मेरी समझ के लिए, कमांड लाइन उपकरण बिल्ड समय पर परियोजना संरचना को अपडेट करते हैं, इसलिए उस समय वास्तविक आईओएस प्लेटफ़ॉर्म प्रोजेक्ट पर प्लगइन लगाया जाएगा। "फोनगैप ऐड ..." कमांड का उपयोग करके आप प्लगइन का उपयोग अगली टिम आइयूई ऐव का निर्माण करने और अपने आवेदन को चलाने में सक्षम होना चाहिए। इसलिए यदि आप अपने ऐपफ़ोल्डर / प्लगइन्स / फ़ोल्डर के भीतर प्लगइन पा सकते हैं तो सब कुछ ठीक होना चाहिए। सर्वश्रेष्ठ।

python - numpy: copying value defaults on integer indexing vs boolean indexing -

I have recently started studying McKinney Python for data analysis. It slipped into the book: Array slices are considered on the original array. This means the data is not copied and any changes in the view will appear in the source array ... As NumPy is built in the brain with a large data usage case, you can visualize performance and memory problems if NumPy It's okay to force data to copy. OK looks like a smart design option but two pages later say this: Boolean indoxing will always choose the selection of data from an array Copies the data, even if the returned array is unchanged. Wait, what? In addition, You can mix and match the Bullying Array with slices ... For example data [name == 'Bob', 2:] What will he come back now? A look at the copy of the data? And why is this behavior like this? Coming from R, I look at the techniques used equally for boolean indexing and location-based indexing. If the copy is designed to avoid copying, then what do...

ext.net - Selenium WebDriver Extjs sample code -

In a short time I will start automating the web site that contains the ext.net control. I actually tried to automate a simple scenario as a sample from the site Click & gt; Form & gt; Field Note & gt; Overview, but I could not manage to write text in simple note text box. Can you provide a code sample that is working? I tried to get XPath and other ways which can be used with the class. If I try to get all those inputs that I get, but SendKeys or Click Methods do not work. I get an exception that does not appear to be an element. Can you provide a code sample that is working? IWebElement htmlElement = driver.FindElement (By.TagName ("html")); IList & LT; IWebElement & gt; InputList = htmlElement.FindElements (By.agName ("Input")); (I get all the info but I can not write the note ...) I did Java in the following and you can easily convert it to C # if you choose. I use a utility method to correctly query for the correct element: ...