Posts

Showing posts from May, 2011

php - How do I ignore empty lines in this regex? -

I'm trying to figure out how to ignore blank lines with spaces, but any content No. I have the following ^ (\ s *) SetEnv which I am looking for properly, but it is only empty space with empty space Mail then set also matches blah // match // ^ (\ h *) SetEnv or (? M) ^ (\ h *) set enve \ h horizontal only White matches -Space

Installing Ruby Gem on Raspbian Error: Failed to Build Gem Native Extension -

I'm trying to install Ruby Mani () and I get the following error. Error: Error installing jekyll: Error: Failed to create gem native extension /usr/bin/ruby1.9.1 extconf.rb /usr/lib/ruby/1.9.1/rubygems/custom_require.rb36 :: 'Required': Can not load such a file - from mkmf (LoadError) / usr / lib / Ruby / 1.9.1 / rubygems / custom_require.rb36: 'Requirement' from INInstconf.rb: 1: in `& lt; Main & gt; ' I am using Raspberry P. When I ask about the Ruby version, I get the following: User @ RaspberryP ~ $ Ruby -Vergen Ruby 1.9.3p194 (2012-04-20 Revision 35410) [Arm-Linux-AIFF] - E: 1: `& lt; Main & gt; 'In: Undefined local variables or the main method for' rsion ': Object NameError A few hours ago, by running the command I installed the latest version of Ruby: Sudo Curl-El https://get.rvm.io | Bash -s fixed - ruby ​​ To know the source of the problem I tried to set up a different gem (). Thank you in advance! ...

Reverse proxy websocket IIS -

I want to use IIS for proxy websites on windows. Therefore, I installed the IIS 8 in Proxy for WebServer Server Apeserver 2012. But I do not know how to configure IIS. The rules for HTTP and HTTPS are not redirected, there is no WS, I would like to do the same thing as Apache: & lt; Location / ws & gt; ProxyPass YS: //127.0.0.1: 8080 Proxypaceware ws: //127.0.0.1: 8080 & lt; / Location & gt; The request will be redirected to: //127.0.0.1: 80 / ws: //127.0.0.1: 8080 / ws. Thank you.

css3 - How to create HTML5 popup with minimize etc -

I'm really new to HTML and CSS, but created a prototype page to get the proper size, look and fit On 768x1024 or greater performance I modified it to be used in landscape mode but it is clear that it will not fit completely with my minimum height and width criteria in a minimal browser window. Page does not contain text; Just the button, check box, text, and textarea "widget" I think there is only one top "title" bar with at least and close buttons, but all other "stuff" such as navigation bar, toolbar etc. are absent I can sit with Sasking and fit it in a window. Is found in a specific browser. I use some web applications that are like this, so I know that this is possible. I searched for Google's examples and found popups, but no one is in this way. My question is: How can I do this without javascript, and where is this type of window? It should help to minimize it: You include jQuery And call this anime script when you want to at ...

python - Improve performance of function without parallelization -

A few weeks ago I posted a question () which found a very good answer. This question is related to that because it uses user-recommended performance improvements. I need to improve the performance of such a function in which three factors are calculated and then apply exponentially to them. / P> My code has a MWE : import as NMP timeline def defame_data (N): #Some random Generate data return np.random.uniform (0, 10., N) # Data list. Array1 = np.array ([random_data (4) _ in category (1000)]) array2 = np.array ([random_data (3) _ in category _ (_g)] # function.fffcfc (): # For the elem in array 1: # If one of these values ​​is there, avoid numerical errors. E_1, e_2 = maximum (elem [0], 1e-10), Max ( Elem [1], 1e-10) # Get three parameters A = 1./(e_1*e_2) B = -0.5 * ((elem [2] -rhy 2 [, 0]) / e_1) ** 2 C = -0.5 * ((elem [3] -Rah 2 [:, 1]) / E2) ** 2 # Apply Exponance Price = A * NP.XP (B + C) # Store value in the preset. Lst.append (value) return lst # time function Func_...

bash - What Does A Letter Delimiter in a date String Do (Besides Delimit)? -

I am using bash 4.1. I am changing the date and time date fields by using a date string using date . It appears that each letter specifies the different values ​​(-5 to +18) that can be added at specified time. But keep in mind that there is a J result in an error, either in the man or information pages, there can be no explanation for this behavior. Can anyone illuminate me? $ date -d 2014-01-01A00: 00: 00 Tuesday December 31 1 9:00:00 CST 2013 $ date-d 2014-01-01000000: 00: 00 Tuesday December 31 20:00:00 CST 2013 $ Date-D 2014-01-01C 00: 00: 00 Tuesday December 31 21:00:00 CST 2013 $ Date-D 2014-01-01 D 00: 00: 00 Tuesday December 31 22:00:00 CST 2013 $ Date-D 2014-01-01 E 00: 00: 00 Tuesday December 31 23:00:00 CST 2013 $ Date-D 2014-01-01 F 00: 00: 00 Mercury January 1 00:00:00 CST 2014 date-d 2014-01-01G00: 00: 00 Mercury January 01 01:00:00 CST 2014 $ date-D 2014-01-01 H 00: 00: 00 Wed Jan 02 02: 00:00 CST 2014 $ Date-D 2014-01-01I00: 00: 00 Mercury Nov. 1 03:00:...

php - Count on recursive array search has strange behavior -

I need to count how many values ​​are in multi-dimensional array and update the count value. But I get a strange behavior, because only a few values ​​are counted, others are repeated. Code here: Edit Code here: function recursive_array_search ($ needle, $ haystack) {foreign Currency ($ haystack = & gt; $ value as the $ key) {$ current_key = $ key; If ($ needle === $ value || (is_array ($ value) & amp; amp; amp; & amp; recursive_array_search ($ needle, $ value)! == incorrect)) Return $ $ current_key; } } return false; } $ Area = array ('emilia romagna', 'abruzo', 'Lombardia', 'emilia romagna', 'abrazo', 'abrajo'); $ Area = array ('bologna', 'bolonano', 'milano', 'bologna', 'bologna'); $ Data field = array (); $ Datability = array (); Foreign currency ($ area as result of $) {if ($ key = recursive_array_search ($ result, $ data region)) {$ data region [$ key] ['...

testing - How to automate running tests before commit in Intellij Idea, without additional software? -

Is it possible or is it necessary to set up TeamCity to run tests automatically before committing?

php - Trying to create MySQL database gives HTTP/404 The requested URL alias not defined -

I am having a small problem and I need the help of more experienced people. I am trying to create a MySQL database with PHP code, but I am getting this message: "Requested URL Surname for HTTP / 404C: Apache 24 / HTTox / TestSite_01 / Database Error creating: Access denied for user '@' local host 'database is not defined' testbase_db '. " I have Apache, PHP and MySQL installed on my home PC and Apache and MySQL is starting up and running. I have tried to check the httpd.conf file of Apache, but I'm quite new to this server stuff and I'm not sure there is something in it, I should change it, or add to the problem disappear. The default Apache htdocs folder for files I use and a specific folder called this is a sub folder named testite_01. However, this should not be a problem because it gives the same message when everything runs in the root root folder and tries to run from there. I have tried Googling and have read a lot of things elsewh...

java - Running a jar included in an OSGi bundle -

The situation is that I need to package an runable jar, X.jar in the OSGI bundle. Jars themselves can not be modified and OSGi is mandatory because X.jar is distributed and run through a software program, which requires OSGI bundles. The application contained in X.jar is to communicate over the network with another application. My plan was to create an OSGI bundle with Eclipse and after that it was included X.jar. But the problem is that X.jar does not know if I try to use a copy of X.jar on my file system instead, it works. My bundle file structure: - \ MyBundle - \ META-INF - MANIFEST.MF - \ src - \ mybundle - \ Activator.class - \ X.jar Activate: Public Zero Start (Bundle Content Reference) {Thread XThread = New Thread () {public void run () {tryout.getRuntime () Exec ("Java-George X."); } Grip (IOException E) {// TODO Auto-Generated Catch Block e.printStackTrace (); }}}; } manifest.mf manifest-version: 1.0 bundle-manifestwarson: 2 bundle-name: bundle ...

c# - I need a fast work-around for "There is already an open DataReader associated with this Command which must be closed first" -

I have the following class, which generates an error in the query title for the line msgHistory.Messages.Add ( Pd); . Public Zero Store Message (StringUserto, String Userframe, String Message) {In reference to var collection = pm. Select Private Mensheed pm; Foreign currency (var msgHistory in the collection) {string user1 = msgHistory.User1; String User 2 = msgHistory.User2; If ((user = 1 == user to end user 2 = userframe) || (user1 = userfom and user2 = uratoteo)) (private message delt pd = new management del.php.User = UserFrom; pd.message = Message; msgHistory.Messages.Add (PD); Context.Entry (msgHistory) .set = System.Data. Entity.EntityState.Modified; // Amendment returns saves;}} Whatever I collect, the unit framework still has an open connection, but I do not understand why it does not allow me to modify ... I want to It is as fast as possible to execute and I am afraid that if I want to get the ID, close the loop with a break, and then search the privateMessageHead...

php - How do I disable totally Cache in CakePHP and don't write anything to /app/tmp? -

Image
मैंने केकपीएचपी 2.5.dev ऐप काम किया है और मैंने cache केपीपीएचपी में कॉन्फ़िगर :: लिखें ('डीबग', 2); कॉन्फ़िगर करें: लिखें ("Cache.disable", सच है); में एपी / कॉन्फ़िग / कोर.एफ़पी दुर्भाग्य से मुझे इस ऐप को ऐसे सर्वर पर जकड़ना चाहिए जहां मैं एप / टीएमपी डायरेक्टरी। मैंने स्टैक ओव्हरफ्लो पर जवाबों की जांच की है कि कैसे कैश और इसके बाद के संस्करण लाइनों को app / config / core.php में अक्षम कर सकते हैं और यहां तक ​​कि टिप्पणी-आउट बाकी लाइनें जो कैशिंग के लिए ज़िम्मेदार हैं / ** * सामान्य फ्रेमवर्क कैशिंग के लिए उपयोग कैश कॉन्फ़िगर करें पथ की जानकारी, * ऑब्जेक्ट लिस्टिंग, और अनुवाद कैश फ़ाइलें इस कॉन्फ़िगरेशन के साथ संग्रहीत हैं * / // कैश :: विन्यास ('_ cake_core_', सरणी (// 'इंजन' = & gt; $ इंजन, // 'उपसर्ग' = & gt; $ उपसर्ग। 'केक_कोर_', // 'पथ' = & gt; CACHE 'निरंतर'। डी एस, // 'सीरियलाइज़' = & gt; ($ इंजन === 'फ़ाइल'), // 'अवधि' = & gt; $ duration //)...

Replace XML value through javascript -

मेरे एएसपीएक्स पृष्ठ पर यह XML कोड है & lt; XmlDefinition & gt; & Lt; देखें BaseViewID = "1" & gt; & LT; क्वेरी & gt; & LT; कहाँ & gt; & LT; Eq & gt; & Lt; FieldRef नाम = 'खाता आईडी' / & gt; & Lt; मान प्रकार = 'पाठ' & gt; 1 & lt; / value & gt; & Lt; / Eq & gt; & Lt; / कहाँ & gt; & Lt; / क्वेरी & gt; & LT; ViewFields & gt; & Lt; FieldRef नाम = "DocIcon" & gt; & lt; / FieldRef & gt; & Lt; FieldRef नाम = "लिंकफ़िल्मेन" & gt; & lt; / FieldRef & gt; & Lt; FieldRef नाम = "संशोधित" & gt; & lt; / FieldRef & gt; & Lt; FieldRef नाम = "संपादक" & gt; & lt; / FieldRef & gt; & Lt; FieldRef नाम = "कंपनी" & gt; & lt; / FieldRef & gt; & Lt; FieldRef नाम = "श्रेणी 1" & gt; & lt; / FieldRef & gt; & Lt; / ViewFields &...

android - How To Modify SIM Application Toolkit(STK) Rooted Mobile -

Dear Android Developers, I want to modify the SIM Toolkit application according to the client's requirement such as App Check Balance Manually Our Worker allows this feature in the SIM Toolkit. I have searched a lot so that I can complete it, but no one got it. What I've done so far 1-Routed My Device This is indicated by the question Source code of STK from 2-download Gitob 3- All errors in the project by creating and setting internal APIs Remove Installation error: INSTALL_FAILED_SHARED_USER_INCOMPATIBLE I'm starting this project All stack overflow queries like But no solution was found. Please help me what I am doing wrong. Is my direction wrong or not? Please give me any suggestions which can give me ideas. Thankx in advance Sorry for my english I'm a new developer. As suggested in a comment, the error is due to an application signed with a different certificate is. This certificate dependency can be removed by changing the package n...

php - expanding/collapsing div with checkbox in IE -

I have some pages that contain hidden content, when a checkbox 'Check' is done and is hidden again when 'unobtrusive' everything works perfectly in Chrome and FF, but I do not always show or hide content, but the checkbox does not work in IE. I am using I8 but have tried in 9 and it is how it works as any suggestion to work? I want to include the following in the HTML head section to make use of the article element. & lt ;! - [If lt IE 9] & gt; & Lt; Script src = "http://html5shim.googlecode.com/svn/trunk/html5.js" & gt; & Lt; / Script & gt; & Lt; [Endif] - & gt; Now it is the PHP code echo " "Result of recent results $ Query2 = $ Database-> Query (" Selection Team_Name, Team_core, Oppo_source, result from OPP_name ORDER updated DESC LIMIT 0, 5 "); $ I 0 =; while ($ row2 = $ Query2-> fetch (PDO :: FETCH_NUM)} {echo ($ i% 2 == 0)? "& Lt; Tr class = \ "stripe \" ...

regex - Python regular expression remove period from number at end of sentence -

If I have a string like: "I like 3.142 and 2 numbers." And I want to remove the period after 2 but not one in 3.142, how do I do it? In fact, how do I check that there is no number after the duration of the number after a period and how do I remove that period? Thank you. & gt; & Gt; & Gt; Import re & gt; & Gt; & Gt; S = "I have always been. 3.142, 5., 6.12 and 2. Lalla." & Gt; & Gt; & Gt; Re.sub ('((\ d +) [\.]) (?! ([\ D] +),' \ g> 2 & gt; ', s)' I always Like number 3.142, 5, 6.12 and 2 red. '

c++ - From Qt::Key to native keyboard code -

Image
क्या Qt :: Key से वापस मूल कुंजीपटल कोड (या तो स्कैन कोड या आभासी कुंजी कोड)? QKeyEvent के दो तरीके हैं: nativeScanCode () const quint32 मूलविभाजक कुंजी () const इसलिए कहीं न कहीं मूल कोड और क्यूटी: कुंजी के बीच मैपिंग होना चाहिए। मैं व्युत्क्रम समारोह Qt: कुंजी -> मूल कोड के लिए देख रहा हूँ "" मैं " qt \ src \ gui \ kernel \ qkeymapper_win में मानचित्रण की अपेक्षा करता हूं" .सीपीपी लेकिन यह फ़ाइल मेरे src पथ (क्यूटी 5.2) में मौजूद नहीं है। - संपादित करें (सामॉथ का उत्तर) - मैं अब फाइलों को ढूंढने में सक्षम हूं, मेरे पक्ष में मूर्खतापूर्ण गलती है या > दुर्भाग्य से मुझे अभी तक इस विधि का पता नहीं है। मेरे सिस्टम पर : इनमें से एक को आपकी सहायता करनी चाहिए

symfony - Symfony2 routing annotation leads to NotFoundHttpException 1 linked Exception: ResourceNotFoundException -

मुझे // localhost / dga / web / app_dev.php / gerer / Sami । "GET / gerer / sami" के लिए कोई मार्ग नहीं मिला 404 नहीं मिला - NotFoundHttpException 1 लिंक अपवाद: ResourceNotFoundException » src / app / config / routing.yml gestion_utilisateur: संसाधन: "@ गेस्टियन यूटिलाइस्टियेटरबंडल / नियंत्रक" प्रकार : एनोटेशन उपसर्ग: / स्रोत / अनुप्रयोग / एन्कासीजमेंट बंडल / नियंत्रक / गेररकंट्रोलर.एफ़पी नामस्थान आवेदन \ एनकासिमेंट बंडल \ नियंत्रक ; Symfony \ Bundle \ FrameworkBundle \ Controller \ Controller का उपयोग करें; Sensio \ Bundle \ FrameworkExtraBundle \ Configuration \ Route का उपयोग करें; Sensio \ Bundle \ FrameworkExtraBundle \ Configuration \ Template का उपयोग करें; क्लास डिफॉल्ट कंट्रोलर नियंत्रक {/ ** * @ Route ("/ gerer / {name}" नाम, "application_encaissement_gere") * @ टेम्पलेट () * / सार्वजनिक फ़ंक्शन इंडेक्स एक्शन ($ नाम) {वापसी $ इस- & gt; 'एप्लिकेशनएन्कासिमेंट बंडल: गेरर: index.html.twig', ऐरे ('...

javascript - Need to check history for duplicates and then remove them -

So my problem is that when a video is viewed it adds to history, but the problem is that many videos Here is the code: Function clock (video) {document.location.hash = video ["id"]; Update (video); $ ("# Shareitlink") Val (document.location.href). {1} {3} thoughts by "Var {@}" & lt; b & gt; {0} & lt; br & gt; $ ("# VideoInfo") Html (html.format (video ["title"], video ["uploader"], video ["length"], video ["thoughts"])); Ytplayer.loadVideoById (video ["id"]); Receive (video ["id"], true); return false; } Function Watch Video (Video ID) {$ .each (myhistory, function (key, val) {if (val ["id"] === video id) {clock (return); return back;}}); } Function Update History (Video) {Blacklist [Video ["ID"]] = True; Myhistory.push (video); Var html = "& lt; li class = \" history \ "& gt; + "& Lt; img class = \" img...

Escaping characters in database -

I am trying to create my own simple database and I am solving a final problem. I am securing database data to use my own format (actually simplified JSON does not require everything). This problem is being saved, as I am using (for example) { } shows the incoming name of the table. The problem occurs when someone uses { in a table} to solve this? If I change it to any other value, then the user can change the string and after the program decode the stored database (array, ...) back to the database, these strings decode And the user will be won't put what he's inside. I think about this for a long time and no solution could be found. Any ideas? You do not need to sort the escape character to replace it. Let's assume that { is verbatim to refer to a verbatim { , you \ . Now, \ is ambiguous, so please allow it to only escape \\ . No more ambiguity!

javascript - Preview image before upload with Carrierwave -

I have a form where the user can create a new picture I have done it successfully with carrier usage. I was thinking that Is it possible to preview the image selected in the browser before uploading? I have made some efforts with javascript but have not worked for me. This is the code for image uploading with CarrierView: photo =: html = & gt; {: Multipurpose = & gt; True} what? F | & Gt%; & Lt;% = f.file_field: Image% & gt; & Lt; Div class = "field" & gt; & Lt;% = f.label: name% & gt; & Lt; Br> & Lt;% = f.text_field: name% & gt; & Lt; / Div & gt; & Lt; Div class = "field" & gt; & Lt;% = f.label: Details% & gt; & Lt; Br> & Lt;% = f.text_area: Details% & gt; & Lt; / Div & gt; & Lt; Div class = "verb" & gt; & Lt;% = f.submit "Save Photo"% & gt; & Lt; / Div & gt; & Lt;% end% & gt; My goal is to have a small t...

java - Bubble Sort (2 for loops vs 1) + Int Array to String Array? -

I have a homework assignment for Java class and I need some help. I have sorted a bubble in the assignment, it works wonders, but I wrote a version for a loop, however, one does not work for the loop version. Anyone know why? It's just for kick and giggles, which is not necessary for the assignment. My second question is how can I convert a Sir array (filled with cast intents to random functions) into a string array. I know that the solution involves the "Arrays" library, but I do not remember that in the classroom and it will be used in the final form. Any ideas? If you are interested in people, then this code is: import static java.lang.Math.random; Public class main {public static zero main (string [] args) {int intarray [] = new int [50]; String Strawre [] = New String [50]; For (int i = 0; i & lt; intarray.length; i ++) {intere [i] = (int) (1000 * random ()); } (Int i = 0; i & lt; intarray.length; i ++) {System.out.print (intarray [i] + "...

python - Shuffle list in certain order recursively -

I am trying to revalue the list in a certain order. DIFFFLAM (list1, list2): A = [] if LAN (list1) == 0: a + = list2 if a returned lane (List2) == 0 : A + = list1 one more return: a + = [list1 [0]] list1.pop (0) a + = [list2 [0]] list2.pop (0) a + = alteration (list1, list2 ) Your central problem is that you are not returning your recurring call. Cleaned up some nominal-unused locals in your code: def shuffle (list1, list2): a = [] if len (list1) == 0: return list2 if len (List2) == 0: return list 1 other: a.append (list1.pop (0)) a.append (list2.pop (0)) return a + alteration (list1, list2) a accumulator: Diff Falpham (list1, list2): If LAN (list1) == 0: return list 2 if lane (list2) == 0: return list 1 other: return [list 1.pop (0), list 2.pop (0)] + firbad (List 1, List 2) Demo: Shuffle ([1,2,3], [4,5,6]) Outside [ 35]: [1, 4, 2, 5, 3, 6] reshuffle ([1,2], [6,7,8,9]) out [36]: [1, 6, 2, 7, 8, 9] On the one hand, it changes the input lists, which is gener...

javascript - TypeError trying to set model object in Backbone.js -

मैं backbone.js + cordova + need.js चौखटे के साथ खेल रहा हूं, मुख्यतः क्रिस्टोफे कोएनराइट्स । मेरे मॉडल को एक दृश्य में प्रदर्शित करना सरल लगता है, लेकिन मैं अभी भी सेट या सहेजने के लिए कॉल के माध्यम से मॉडल को अपडेट करने में असमर्थ हूं। मेरा मॉडल ऐसा कुछ दिखता है: SourcePhrase = Backbone.Model.extend ({// डिफ़ॉल्ट मान डिफ़ॉल्ट: {id: null, मार्कर: "", orig: null, स्रोत: "", लक्ष्य: ""}, सिंक: फ़ंक्शन (विधि, मॉडल, विकल्प) {if (method === "read") {findById (this.id) .done (function (डेटा) {options.success (data);})}}}}), // etc मैं प्राप्त करने के लिए कॉल करके अपने संग्रह से ऑब्जेक्ट खींच सकता हूं: // मॉडल ऑब्जेक्ट ढूंढें और अपडेट करें var strID = $ (event.currentTarget.parentElement ) .attr ( 'आईडी'); Var मॉडल = this.collection.get (strID); अब तक, बहुत अच्छा: मॉडल.सेट ('लक्ष्य', ट्रिम किए गए वेल्यू); प्रकार त्रुटि: 'अपरिभाषित' एक फ़ंक्शन नहीं है (मूल्यांकन '(i = t [r])। Callback.call (i.ctx, n, ...

authentication - How to check if user is authenticated in Service Stack Client? -

I hosted the service stack server myself in the client application, it is a Windows form, when the user is not authenticated I want to display the login form. To try and send a request like WebServiceException in a way I for @if (Request.IsAuthenticated) (for example) Seeing for customer side The short answer is that there is no way to determine the customer Whether the user is authentic or not state determines whether the client is authenticated or stored on the server. A user is authenticated only if there is one. This session is usually sent in the HTTP client cookies which are populated after a successful authentication attempt, eg: var client = JsonServiceClient (BaseUrl); Var authResponse = client.Send (new authenticate {provider = credentials by provider name, user name = "user", password = "p @ 55word", random = true,}); You can now use the same client (which has its cookie population) to create authenticated requests for the only se...

javascript - Submit form using file input type -

I am using this code to upload a simple image file. & lt; Form action = "upload.fp" method = "post" encrypt = "multipart / form-data" & gt; & Lt; Input type = "file" name = "file" onchange = "this.form.submit ();" /> & Lt; / Form & gt; Then I have an upload.php file that is working very well. Now I want to use jQuery Post or Ajax to upload the image and want to show it on the screen without refreshing the page. I've changed the code for: & lt; Form action = "" method = "post" enctype = "multipart / form-data" & gt; & Lt; Input type = "file" name = "file" /> & Lt; / Form & gt; I have added it to my Javascript file: $ ("form # formUpload"). Submit (function () {$ .post ('Upload.php', $ ("# formUpload"). Serialize (), function (data) {}) done (function () {});}); But nothing happens...

css - Scrollbar when zooming in html page -

Image
थोड़े सीएसएस पर एक noob प्रश्न मेरे पास कुछ divs है अब जब मैं उस पेज डिव 3 (जो वर्तमान में बायीं तरफ चल रहा है) में ज़ूम करता हूं, तो इससे अधिक फिट नहीं होता है इसलिए यह 2 डिवी 2 के नीचे सही हो जाता है। मैं पूरे पेज के लिए इस व्यवहार को कैसे बदल सकता हूं ताकि जब मैं ज़ूम इन हो तो स्क्रॉलबार दिखाई दे? मैंने अतिप्रवाह-एक्स सेट करने की कोशिश की: एक सीएसएस में पूरे शरीर के लिए स्क्रॉल करें लेकिन इसमें कोई प्रभाव नहीं पड़ा। मैंने इसके लिए एक JSFiddle बनाया: html & lt; div class = "first" & gt; div1 & lt; / div & gt; & Lt; div वर्ग = "दूसरा" & gt; div2 & lt; / div & gt; & Lt; div वर्ग = "तीसरा" & gt; div3 & lt; / div & gt; & Lt; div वर्ग = "चौथा" & gt; div4 & lt; / div & gt; सीएसएस । पहले {पृष्ठभूमि रंग: लाल; चौड़ाई: 400px; } .second {पृष्ठभूमि रंग: नीला; चौड़ाई: 200px; बाईंओर तैरना; }। तीसरे {पृष्ठभूमि रंग: हरा; चौड़ाई: 200px; बाईंओर तैरना; }। चौथा {स्पष्ट: दोनों; प...

How to handle percentage values from read.csv in R? -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब मैंने एक बड़े डेटासेट को पढ़ा है एक .csv फ़ाइल जहां सभी मान प्रतिशत के रूप में संग्रहीत किए जाते हैं, जो सभी संगत मानों की ओर जाता है, आर में अक्षर हैं, जैसे: df & lt; -data.frame (v1 = सीक (1,3,1), वी 2 = सी ("35.2%", "11.1%", "21.3%"), वी 3 = सी ("23.6%", "18.9%", "34.8%")) & gt; डीएफ v1 v2 v3 1 1 35.2% 23.6% 2 2 11.1% 18.9% 3 3 21.3% 34.8% क्या किसी को पता है कि df इस तरह से संख्यात्मक होने के लिए: v1 v2 v3 1 1 35.2 23.6 2 2 11.1 18.9 3 3 21.3 34.8 आसान। के लिए (i में 2: 3) {df [, i] & lt; - as.numeric (उप ("%", "", X = df [, i]))}

html - Position Modal box in Twitter bootstrap 3 -

I am trying to fix a Twitter Bootstrap 3 model in the upper right corner of the body. So far I have tried: Status: fixed; The correct 0px (left and top works but has no effect on the right) Translate: It can work with PX values ​​or%, but the position on resizing will not be the same Setting the left margin as a percentage CSS in question: #confirm {status: fixed! Important; Width: 120px! Important; Correct: 10px! Important; // margin-left: 80%! Important; // - WebKit-Conversion: Translation (600px, 0px); } See Bella: applies to Twitter Bootstrap left: 1%; and right: 1%; by default on the modal box. First, click on left property on auto . You can then add the correct property to the element. #confirm {width: 120px; Status: fixed; Left: auto; / * & Lt; - Reset default left value / / right: 10px; } .

android - Local Path doesn't exist -

After the Android Studio updated to 0.4.5, I can not get to make my application I have the following configuration: dependence {classpath 'com.android.tools.build:gradle:0.8.+' compilation 'com.android.support:support-v4:19.0.1' compileSdkVersion 19 buildToolsVersion "19.0. the 1 "defaultConfig {minSdkVersion 14 targetSdkVersion 19 renderscriptTargetApi 19 renderscriptSupportMode true Note: cleaning + project of reconstruction / expensive files .iml removal project reimporting, established APK_PATH, and / or Gredle Together with Sync the problem does not fix this problem. add it to your & lt; ProjectName & gt; After updating .iml , Android Studio may be that error, but you can fix it by updating that & lt; ProjectName & gt; .iml file to add this snippet: & lt; Aspect type = "Android" name = "Android" & gt; & Lt; Configuration & gt; & Lt; Options name = "APK_PATH" value = ...

find partial matching two files in perl -

I want to write a pell program. The first input file has 2 columns of text. The first column is a label and the second column is the search string. There is also 2 columns in the second input file. The first column is a label and the second column is the text to be searched. For example, according to the second column, John (in File 1) is more than John compared to Joy compared to John. file1 john aabccae jam WWQQQQQRTTTT file2 Jami EWQQQQQRTRTTTT Johnny Aaaaabibibisisisiiiiiiiacacacacacac mark WWWCCVVVVVVFFFFFFFTTTTTR ROB ## @@ @ ######## Viviviviviviviviviviu John WWADFRWSSSSDSDDDDDqqqqq output jami ewwqqqqqQQRRTTTTTTT jam Dbludblukyukyukvi QQQRRTTTTT Johnny Aaaaabibibis Siiiiiiiacacacacac John Aabibibisisiseedii I tried the following code, but it's the way I want, it does not work. #! Use / user / bin / perl warnings; Strict use; Mary ($ infile1) = $ ARGV [0]; Mary ($ infile2) = $ ARGV [1]; Open (my $ FH1, "& lt; $ infile1"); While (my $ ...

html - How can I use a $_POST variable as part of a file path on a different page - PHP -

I am quite new in PHP. I have a problem with a file upload page that I am making. Actually, I have a drop down box with a list of categories in the file upload form, the user browses and selects a file, and then selects a category before submitting the file. The file is supposed to be dynamically uploaded to a folder on folders by the server (user_data / username / fileType / filename) but what I'm actually receiving (user_data / username // filename) I am passing the drop down list variable as $ _POST, but for some reason I can not get it to populate the file path. I'm sure its some simple but I'm stuck. Here is my code fileupload.php & lt; Html & gt; & Lt ;? Php if (isset ($ _ POST ["file"])) {$ selected = $ _POST ["fileType"]; } // $ selected = $ _POST ['fileType']? & Gt; & Lt; Form action = "upload_file.php" method = "post" encrypt = "multipart / form-data" & gt; & Lt; L...

eclipse - UIMA Ruta Workbench picks up an incorrect descriptor path -

I'm new to UMI Route, I'm trying to run Main.Ruta in an example project, according to the instruction, Eclipse 3.7 Using Ruta 2.1.0 the source came with the release. It seems that Ruta Workbench chooses a wrong path path. I tried to set new logic in "run configuration" This does not work. Due to some restrictions on work, the UIMA RATA plug-in was manled. Please help thank you! An error due to an incorrect descriptor path indicates that the plugin is installed correctly, but the self- Are not updated The descriptors use some absolute paths in their parameter configuration, try to make the project twice to rebuild all the descriptors, for example, Menu-> Project-> Clear then the illustrator Example system / Descriptor / UIA / RATA / example / Menengine Check XML and check whether the correct path is correct (point to your workspace project), especially the parameter scriptpath.

php - how to insert slash "\" use PHPExcel? -

Image
I want to slash the cell, for example How can I use this PHPExcel class? array ('style' = & gt; PHPExcel_Style_Border :: BORDER_THICK, 'color' = & gt; Itemprop = "text"> $ style array = array ('ranges' = & gt; array ('arg' => = 'FFFF 20000'),), 'diagonidation' => PHPExcel_Style_Borders: : DIAGONAL_DOWN,),); $ ObjPHPExcel- & gt; GetActiveSheet () - & gt; GetStyle ('A1: B2') - & gt; ApplyFromArray ($ styleArray); $ ObjPHPExcel- & gt; GetActiveSheet () - & gt; MergeCells ('A1: B2');

python - Fancy indexing in assignment not supported for csr matrices -

How can I specify a line in a csr_matrix ? This error returns: Q [middle ,:] = new_q Q The result of csr_matrix , and new_q is Q.getrow (i) . I am using the latest version of Scipy. Am I using the correct matrix type? I want to show the correct matrix type for using two matrix: Q and b . I am amending a line of the matrix cue at a time, and am amending one's columns at a time. It seems that I should make a Q as a lil_matrix or csr_matrix . What type of matrix should be B ? A csc_matrix ? This works fine in 13.2: & gt; & Gt; & Gt; Sp .__ version__ '0.13.2' & gt; & Gt; & Gt; Imported Sps as SPS & gt; & Gt; & Gt; A = sps.csr_matrix (np.arange (25) .reshap (5, 5)) & gt; & Gt; & Gt; AA array ([[0, 1, 2, 3, 4], [5, 6, 7, 8, 9], [10, 11, 12, 13, 14], [15, 16, 17, 18, 1] 9], [20, 21, 22, 23, 24]]))); & Gt; & Gt; A [3] = a.getrow (0)> gt; & Gt; & Gt; AA array ([[0, 1, 2,...

javascript - How to force jQuery dropdowns to full width? -

itemprop = "text"> I have created a jQuery dropdown menu that shows the DIV on the hover, but I drop the dropdown in width 100% across the page. CSS: ul.oe_menu div {status: absolute; Top: 103px; Left: 1px; Background: #fff; Width: 200; / * This dropdown specifies DIV * / height width: 210px; Padding: 30px; display none; } To see the complete code, take a look at ; Expand the preview section to see the problem. Thank you! The reason for this is that if you set 100% width of the div, then it is your parents Taking 100% of the width (compatible li ). A solution for this is to set the position of the div has been fixed so that its width should take the width of the page when its width is 100%. ul.oe_menu div {position: fixed; Top: 103px; Left: 0px; Background: #fff; Width: 100%; Height: 210px; display none; } In this way you have to remove left: n to div s. To make the transition even more natural, you can use .slideUp (200) [] or .an...

c# - How to simplify my code? (Searching for minimum and maximum coordinates in list of lines) -

I have a code that is searching for the minimum and maximum values ​​in the list of rows, I need it to be rectangular center Which is bound to my complex diagram. My part of the code looks like this: if (line.X1 I do not like this ugly copy-paste code. How can I make it simpler / make it more elegant? Looking at the following populated variables: from the list & Lt; Line & gt; Lines; Obtain X values ​​and Y values: var xValues ​​= rows Select (line = & gt; new [] {line.X1, Line X2}); Var yValues ​​= Lines Select (line = & gt; new [] {line.Y1, line.Y2}); Then get the minimum and maximum of each: var at least x = xValues.Min (); Var greatX = xValues.Max (); Var at least Y = yValues.Min (); Var great y = yValues.Max (); Note that this code has not been tested.

How do I install glibc 2.12 in ubuntu 12.04? -

मेरे पास एक 64-बिट उबुंटू 12.04 स्थापना है, एक glibc संस्करण 2.15 के साथ, लेकिन जिस मशीन पर मुझे चलाने की जरूरत है I Glibc संस्करण 2.12, जब मैंने लक्ष्य मशीन पर अपनी मशीन पर संकलित प्रोग्राम को चलाया, तो मुझे एक त्रुटि मिली: संस्करण 'GLIBC_2.14' नहीं मिला। लक्ष्य मशीन के glibc को अपग्रेड करना असंभव है , इसलिए मुझे लगता है कि शायद मैं अपने मशीन में एक और glibc स्थापित कर सकता हूं। अब तक, मैंने glibc2.12 के स्रोत को डाउनलोड करने और स्थापित करने के लिए डाउनलोड करने की कोशिश की है, लेकिन मुझे स्रोत में कुछ सिंटैक्स त्रुटि मिली , शायद यह इसलिए क्योंकि मेरी जीसीसी का संस्करण glibc2.21 की आवश्यकता से अधिक है। और अब मैं chroot द्वारा पुराने वितरण को स्थापित करने की कोशिश कर रहा हूं, लेकिन मैंने इसे नहीं बनाया है। क्या आपके पास कुछ प्रस्ताव हैं? धन्यवाद। शायद मैं अपने मशीन में एक और glibc स्थापित कर सकता हूं। आप कर सकते हैं; विवरण। संपादित करें: उस पोस्ट ... का उल्लेख नहीं करता कि कैसे नया ग्लिबैक स्थापित किया जाना है "नियमित "तरीका: ./ कॉन्फ़...

perl - Search directory and store in hash -

With the user's input, I should search my sub-directory, unless there is a designated 'list' in the fixed list. The question is how to store the path in the hash so that I can retrieve the data and then display it. My directory tree: - gt; Blue - & gt; Aug21 --- & gt; Projects ---- & gt; List ----- & gt; Name / TMP / General / Place / Brand-> Red - & gt; January 03 - & gt; Yellow - & gt; June 22 - - & gt; Progeb ---- & gt; List directory.pl: use strict; Use warnings; Looking for print "directory ... \ n"; & Amp; Search_dir ('/ tmp / generic / place / brand'); #could 'tmp / general / place / brand / blue / Aug21' should be my ($ input, $ tt, $ str, $ fn, @ pp, @ cap); Sub search_rate {$ input = shift; Opendir DH, $ input or die "$!"; While ($ _ = readdir (DH)) {Next if $ _ eq "." Or $ _ eq ".."; If ($ _ eq "list") {$ fn = $ input '/'. $ _; Push ...

ruby - Jekyll - Pagination issues -

I am using jacail and am trying to use pagination. The page I have read can only work in HTML files (like for list). So when I went to apply it, I just went to my config.yml and added PageNet: 5 paginate_path: "blog / page: number" and blog / I have added index.html --- layout: blogIndex --- Layout BlogIndex & lt ;! DOCTYPE HTML & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; Blogs & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body onload = "init ();" Onresize = "setSize ();" & Gt; {% Include header.html%} & lt; Div id = "page" & gt; & Lt; Div id = "content" class = "{{page.title}}" & gt; For post in {% Paginator.posts%} & lt; Div class = "post" & gt; & Lt; A class = "bTitle" href = "{{post.url}}" & gt; {{Post.title}} & lt; / A & gt; & Lt; Div class = "date...

java - Floating point errors -

I'm having trouble with floating points in a double Java 56, for example, in fact .56000 Can be archived ... 1. I am trying to convert a decimal to a fraction. I tried to use it for continuous fractions But using my method, my answers were wrong because the computer was stored and scored in decimal How it is done. I tried the alternative method: public static rational rational (double A) {if (A> = 1) {// throw exceptions} string copOut = Double.toString (a); Int counter = 0; Println (a); While (a% 1! = 0 & amp; Counter & lt; copOut.length () - 2) {a * = 10; Counter ++; } Long deno = (tall) math.paw (10, counter); // Neniminary Rational Frac = new rational set (long) A, Dano) // Unusual logical number long GCD = FRCCCC (); Long fnum = frac.getNumer (); // very faden = frac.getDenom (); // becomes divisor = new rational (fnum / gcd, fden / gcd); Come back; } I use the string to find the decimal length to determine how many times by 10 times. I later red...

Normalizing any date string into a given format in Java -

I am working with the content of the website that contains several types of wire strings (like Atom / RSS feeds). I was thinking that there is a library to normalize these strings , or if a gem has been removed for this purpose. Here's an example of what I'm trying to achieve: 2014-02-14T12: 11: 03-05: 00 2014-02-14T02 : 08: 00Z : // In just one instance, in all these cases, they are the same YYYY-MM-DD - HH : MM: SS Tell me your suggestions, any formats will be appreciated :) I went for a while and found nothing! Oh, too, even though I have tagged this Java (that's what I'm using), do not hesitate to post replies in other languages ​​- I'm sure either , Or someone can change them on the thread. No API has been developed in any language, which takes the string input of someone's interest and / or gives its date format string. . In my opinion, this should be the content / feed generator, which the receiver should know that, in a specifi...

Send a report via mail using oracle apex but not as an attachment -

I want to send the contents of the report to the mail body instead of an actament in the Oracle Apex database application. Thank you The e-mail body can be almost any HTML you like, so if you report You can add it to an email message only.

nsstring - NSPredicate Character and/or Letter Substitutions -

I have seen some, similar to such questions, I'm not really sure what I want to do, Even possible, but I put it to the community instead: I am working with strings for a dictionary in which the characters for many IPA examples: ȵ ɕ ŋ Ẓ I want to install some substitutions for these characters, like something: n = ȵx = ɕ ng = ŋ come = Ẓ In one search it should be understood that the result of anything that starts with search, ȵ, etc., etc. for n * will be ... Even here That "v" like other IPA 'letters' will be the best "W" if there is an easy way to switch between SEARCH letters for any other STRING characters that would be great ... It seems that it should be done outside of the bills. Create a dictionary where the key is to move the wire and the value is substituted, after which a loop is repeated on the dictionary and each substitute on the string you will search. The resultant string after the replacement is the string that you use to...

netbeans - display full phth of file in netbeanse IDE -

Image
I want to show the full file path in the toolbar in my NetBusiness IDE. I have seen it in PC I tried a lot but it Do not display I just do not want to display that I want to copy the direct file path from there A picture to understand what I think, Thanks in advance, I am telling this functionality, but forgot how it is enabled Alt + Shift + L will currently copy the path of the active file to the clipboard. Then you can paste it in any place I use it regularly and it works. If you want to show the image of the file in the toolbar like the uploaded image above, then you may have to type your own plugin, here are some plugins that already do this

android - POST : angularjs app to cakephp site -

I have added the rest of the document like KPPP to my Spatnik Controller: Add Public Functions () {$ this- & gt; Layout = zero; $ This- & gt; Autorander = False; If ($ -> - $ (- $ -; -;) - Save (save-> Request-> Data) {$ message = array ('text' => (__ ( 'Saved'), 'type' = & gt; 'success'); } Other {$ message = array ('text' = & gt; __ ('error'), 'type' = & gt; 'error'); } $ This- & gt; Set (array ('message' = & gt; $ message, '_serialize' = & gt; array ('message')); } I put this JS part in my SEO apps (in fact, in the other domain from KPPP site): and function message controller ($ radius, $ http) {$ scope.message = {}; $ Scope.createMessage = function () {$ http ({method: 'POST', url: 'http://www.mycakephpdomain.com/spoutnik/add', data: $ scope.message})}} Nothing is working ... I do not have any errors in Chrome cons...

python - scrapy selector string won't accept international characters -

I'm trying to get a Scrap Spider to crawl a website, but I want the item's The elements I need are written in Spanish, using a tone with a tilde (í). titulo = title.select (u '.// ["Titulo Origin:"] / text (). Extracts () I have found similar issues here but their The answers accepted for me have not been able to work for me. Adding u at the beginning of the string takes care of some problems but gives me error Unicode encoded error : 'ASCI' codec character U can not encode '\ xed' in position 21: serial number is not in (128) I am here ... ... / I am suggesting using the '('. ') Decode (' UTF-8 '), but by doing this or using the .encode (' utf-8 ') gives me an error exceptions.ValueError: All strings must be XML compliant: Unicode or ASCII, no zero bytes or control characters Am I missing something or some other way or do I have to Better than Ga regex to catch every other part of my string, but th...

java - Twitter4j Listen to tweets from a particular user -

I want to do some special work when a particular user tweets something, so from Twitter with a specific user account in 5G Is it possible to listen to tweets and handle the event? I know what the answer will be: Read the streaming API. But I think this is very huge for my purpose and I only want to hear tweets from a particular account. So I'm asking it here. You should try a sample code: twitterstream twitter stream = New Twitter Stream Provider (new configuration builder.) SetJSONStoreEnabled (true) .build ()). GetInstance (); TwitterStream.setOAuthConsumer (_consumerKey, _consumerSecret); AccessToken Tokens = New AccessToken (_accessToken, _accessTokenSecret); TwitterStream.setOAuthAccessToken (token); StatusListener Listener = New StatusList () {Public status of status (status status) {logger.info (DataObjectFactory.getRawJSON (status)); // do your work here ...}}; TwitterStream.addListener (listener); FilterQuery query = new FilterQuery (); Query.follow (new long...

jquery - What Javascript library to use with Laravel -

I am creating a Schedule / Employee Management Application in my first visit Zend Framework and used jQuery for client side I went. Now I am going to Larwell, and wondering if I should change Javascript too. Basically, you make a schedule, make shifts, create the work within that change. Move tasks / drag / resize tasks, move tasks from shift to shift What is the best JavaScript solution for me? Angular JS is too much? I have heard that it is binding and DB is good enough to write, and since I will call many AJAX calls, then this application can be smooth and fast. But is it easy to manipulate dom (such as changing drag and shape)? You can use AngularJs and create some instructions for jQuery interaction. DOM is great for manipulation in jQuery, but not to make applications. Angular jays, though, angular is more complex than jQuery, that you can not be able to capture as quickly as jQuery. BTW, no matter what framework you use in the backend, it does not matter to the ...

ckeditor validation for spaces -

How can I apply verification to ckeditor to prevent the user from simply adding spaces Of the following, I've tried verification: // ckeditor $ ("Save note from input .save_note"). Click (function () {var note_ id1 = $ (this) .attr ("rel"); var thiss1 = this; var profile_user_id = $ (this) .attr ("rel1"); var txt = ckeditor.instances.editor1 .getData (); var no_space_txt = txt.replace ("& amp; nbsp;", ""); // var txt = txt1.replace (/ + (? =) / G, ''); var editor_val1 = CKEDITOR .instances.editor1.document.getBody (). GetChild (0) .gettext (); var editor_val = editor_val1.replace (/ + (? =) / G, ''); // if (editor_val == "") // {// warning ('sak'); // return; // if (editor_val! == "" & amp; editor_val! == "") {$ (this) .attr ("(" URL " , "Disabled"); var loading_emg = ad loading image ($ (this), "before"); jQuery.ajax ({url: ...

c# - "Method too complex" exception is thrown -

I am making Android applications using Xamarin C # as SQLite and SQLite. I have created the C # class, the statement of 'DBCRAT CS' 6000 is inserted and takes that class as the SQLITECONNECTION object parameter in my main database class I am making the SQLITECONNECTION object and then I have the same object as DBExtened.cs I am passing on, but I am getting the error that the method is very complex please help. I believe this is a limit on byte-code, the solution is simple: "less Complex "or" too small "method. That is, all codes are divided into multiple methods, or better, remove data to method / use sites . I recommend removing data such as 6k are not inserted statements! Whenever I use an external data-source (such as a file), by using arrays and throats to populate the data, then perhaps it will be ready for more space-efficient compiled code.

c++ - Unorderedmap: Error in template arguments -

I am creating an unordered map: the key has three letters and the value is integer. Here's the code: Namespace G {typedef std :: tuple & lt; Four, four, four> Key_t; Struct key_hash: public std :: unary_function & lt; Key_t, std :: size_t & gt; {Std :: size_t operator} (const key_t & amp; k) const {return std :: get & lt; 0 & gt; (K) ^ std :: get & lt; 1 & gt; (K) ^ std :: get & lt; 2 & gt; (K); }}; Struct key_equal: public std :: binary_function & lt; Key_t, key_t, key_t, bool & gt; {Bool operator () (const key_t and v0, const key_t and v1, const key_t and v2) const {returns (std :: get (v0) == std :: get & lt; 0 & Gt; (v1) & amp; amp;; Std :: get & lt; 1 & gt; (v0) == std :: get & lt; 1 & gt; (v1) & amp; amp; std :: & Lt; 2 & gt; (v0) == std :: get (v1)); }}; Structure indexGuide {int index; }; Typedef std :: unordered_map & lt; Console key_t, indexguide, key_hash, key_geal ...

Live Video Streaming asp.net -

I have a scenario where two servers (Server 1 and Server 2) are a webcam / CCTV cam (or somebody) Also type) that feeds the video on the server 1. I believe that the video feeds 1 camera is easily done Camera setup This live video is now somehow sent to server 2, which ultimately leads to customers Transmits. Now I really need to know how to start with the whole thing and where the role of the media server comes from (if it really is necessary). I have no information about the whole process and I am having trouble creating relevant searches. Any advice or help would be greatly appreciated in advance thanks Is there any specific reason why 2 servers Are included? You can easily stream videos from server 1, where you get a camera feed. You can either use a streaming media server (like Adobe Media Server) or you can use a standalone application like Windows Media Encoder to view live streams for users. Is there enough bandwidth for multiple users to stream videos to your se...

node.js - How can I save relations from request body in nodejs + mongoose application? -

I have 2 models, Category-> Product relationship In web forms, I have a new product , Selecting a category object. The form sends the category id in the request body. This is my code to save the product: export.create = function (req, res) {var product = new product (req.body) product.save (function (err) { If res .render ('products / new', {title: 'new product', product: product, errors: utils.errors (err.errors = err)}}}}} All are okay here. But what do I want, add this product to the "products" field of categories. What is the best way to do this?

database - Support multiple languages in symfony 2 -

I'm looking for a tutorial on how to design a database schema to support multiple languages ​​in Symphony 2 Unfortunately, this is for Symphony 1.3 and it's disliked. I am wondering how to support a number of languages ​​in Symphony 2? (How to design the database schema in particular.) Thanks. If you want to use ORM then something interesting is

Using Jquery to toggle nested table -

In a .NET MVC project, a table with a search header and generates the number of unknown rows, these closely Each of the rows will hide nested table, with the header and the number of unknown rows. I want to expand nested tables to click on this row. So far, I have received this: & lt; Script & gt; $ ('Div.ordergrid table.orders tbody tr.row td'). Click (function () {$ (this) .Parent () .Parent (.) Children ('tr.rowdetail') Toggle ();}) & lt; / Script & gt; & Lt; Div id = "ordergrid" & gt; & Lt; Table id = "command" & gt; & Lt; Thead & gt; & Lt; Th & gt; Foo & lt; / Th & gt; & Lt; Th & gt; Foo & lt; / Th & gt; & Lt; Th & gt; Foo & lt; / Th & gt; & Lt; Th & gt; Foo & lt; / Th & gt; & Lt; Th colspan = "3" & gt; Foo & lt; / Th & gt; & Lt; Th & gt; Foo & lt; / Th & gt; & Lt; / Thead & gt; @forch...

backbone.js - How does Trello show users online/offline/idle state accurately? -

TROLLO shows information online / offline / inactive status very accurately as I personally saw There are several solutions for users to monitor online situations, and a serious overhead is required to do this. It does not even know that the user has closed the browser, there are traditional problems of disconnected etc. which cause disqualification in offline / inactive status. For platforms which do not have chat functionality (which I believe is the overhead of keeping track of the user's level and therefore makes this work easier at the end), although how can Trailo be achieved? Without any upper part? "post-text" itemprop = "text"> each The browser tab is considered to be a session, which is connected to a user. The activity level of each session is tracked separately, with which the user shows the highest activity level of all sessions (where active is highest, then inactive, then disconnected). Each tab periodically sends its current stat...