Posts

Showing posts from January, 2012

python - OpenCV - body contour artmpits detection -

Image
Good day. I am trying to analyze a human body contour using OpenCV. I already have the head (the topmost point of the contour), left and right arms (left and right top part), left and right legs (I divide the contour of one body into two halves and found the bottom point). I also have shoulder points (the topmost point between the respective legs and feet) But I have to recognize the vineyards too and I do not know how I have already got here (Lal Chakra mine Contour is I. I'm working with HSV image, if this is the case too): You have to use findContour () and then here convex hulls that The Paco can give better service.

Adding a value to all elements in an array (php) -

I have a query to get an array from the database $ result = mysqli_query (Stop $ con, "Select from time to time" `` `` `1`); while ($ line = mysqli_fetch_array ($ result)) {echo $ line ['Time_D']." & Lt; Br> ";} If I'm not mistaken, this array ($ line) has a lot of time. Now I have 10 minutes How can I do this element in the array? .) $ result = mysqli_query ($ con, "Select from time to time" `` `` `` `1`); // Get results of database ($ line = mysqli_fetch_array ($ result)) {$ rows [] = $ line ['Time_D']; // Store all the bars in an array} print_r ($ rows); Echo "& lt; br & gt;"; $ Time_difference = 600; $ I = =; While (($ i) & lt; (count ($ rows)) {$ lines [$ i] = (strotom ($ rows [$ i])) + ($ time_difference); // timestamp, because, well, php and time ... $ rows [$ i] = date ('h: i: s', ($ line [$ i])); // Time $ i = $ i +1 from timestamp; } Print_r ($ rows);

html - MVC Arranging items in a row -

Then I'm displaying items from a list, on Internet Explorer 8 it will look down: 1 2 3 4 5 6 7 8 9 However, Internet Explorer 9 has been put down in a different way: 1 2 3 4 5 I have noticed that when I remove the field it fixes the problem, but I would like a way around without removing the field See @forch (in model A. miscellaneous items) {& lt; Field style style = "width: 39 9px; height: 210px; range: 1px; border color: black; background-color: white" & gt; & Lt; TR & gt; & Lt; TD & gt; & Lt; Div class = "box" & gt; & Lt; A href =@Url.Action ("bid", "item", new {id = item.ItemsID}) & gt; & Lt; Div class = "box" & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; B & gt; Title: & lt; / B & gt; @ Html.ActionLink (@ item.title, "bid", "item", new {id = item.ItemsID}, "") & lt; Br / & gt; & Lt; B ...

Don't run rails server -

I want to run a server, but the console shows me an error. / usr /local/rvm/gems/ruby-2.1.3/gems/execjs-2.2.0/lib/execjs/runtimes.rb:51:in 'autodetect': a javascript Runtime could not be found. See https://github.com/sstephenson/execjs for a list of available runtime. (ExecJS :: RuntimeUnavailable) /usr/local/rvm/gems/ruby-2.1.3/gems/execjs-2.2.0/lib/execjs.rbitter:in `& lt; From the module: ExecJS & gt; How to fix this problem? Try putting it in your Jeff: gem 'execjs 'Gem' therubyracer '' and after this bundle installed or just bundle if you still have problems , Then delete Gemfile.lock and again bundle

php - trouble printing sequence of numbers to the pattern -

Image
I am trying to print the following sequence with php. So far my code is : $ last = 1; ($ J = 1; $ j $ 5; $ j ++) {for ($ i = 0; $ i & lt; 14; ++ $ i) {If ($ i% 4 == 0) { Echo "* ***********"; } If ($ i + $ last> 14) {$ last = - $ i + 1; } $ I + $ End Echo. ","; } Echo "& lt; / br & gt;"; $ Final = $ i + $ previous -2; If ($ last> 14) {$ last = 1; }} The code above generates something that is what I want. It looks like this job: $ len = 14; Forex currency (range as 0, 6) $ day) {$ start = ($ day * 4 + 1)% $ len; $ Rng = array_slice (array_merge (category ($ start, $ lane), category (1, $ start)), 0, $ lane; $ Cols = [$ day + 1]; Foreign currency (array_chunk ($ rng, 4) $ c) $ cols [] = implode (',', $ c); Echo Fetal ('|', $ cols), "\ n"; } Result: 1 | 1,2,3,4 | 5,6,7,8 9,10,11,12. 13,14 2 5,6,7,8 9,10,11,12. 13,14,1,2 3,4 3 | 9,10,11,12. 13,14,1,2 3,4,5,6 7,8,4 13,14,1,2 3,4,5,6 7,8...

sails.js - Unit testing Sails/Waterline models with mocha/supertest: toJSON() issue -

I am setting up a unit test on the models, controllers and services of my cell application. While examining my user model, I stumbled upon a misleading issue. Version of User.js : module.exports = {attributes: {username: {type: 'string', required: true}, [... Other features ...], admin: {type: 'boolean', default:: wrong}, toJSON: function () {var obj = this.toObject (); // Do not send back admin attribute obj.isAdmin; Obj.updatedAt delete; Return obj; }}} The following is my test.js , which means to walk with Mocha. Note that I turned on the plurality flag in blueprint config. Also, I use Amber for data-correction blueprints. Therefore, my request to {user: {...}} . // should look like the application factory var sails = require ('sails / lib / app)'); Var assert = Required ('Thrust'); Var Requests = Required ('Superstest'); // Instance the example of a loose app we will use the var app = cell (); Var user; First (Function (done...

Is there a way to know if a function is returning to a variable in PHP? -

I would like to know if there is a way in PHP to know that the function is still being said that it will return something Returning $ foo = bar (); For example, there is a way to find out when it happens: $ foo = bar (); P> It would be best if there is to know There is a way that if nothing like this exists within the bar () function - is it possible to implement it? I do not have to do this at the moment, but there is a simple use case: class model () {private $ foo = 0; Function bar () {$ foo + = 100; If (ReturnTourWireless) // & lt; ==== Return $ foo; }} Then it can be used to get instantaneous value of $ foo (and yes, I know that I can use a setter, it just Is an example). Thanks in advance. Just use this function properly when you are returnToVariable stable, Some expect expectations to be returned, otherwise there is no return value and your $ foo = bar () will be NULL . class model () {private $ foo = 0; Function Bar ($ return ...

MYSQL: Using a join after and AND -

combines several tables in the MYSQL query though, as you can see, I am finally on receipt table I would like to add When I add LEFT JOIN, the query returns an error. Anybody forgot to know the best way to join the receipt table for the remaining queries, if it is a newbie question, thanks! Select user_name, expense_category, merchant_name, expense_cost, expense_date, expense_status, receipt_image, expense_comment users, expenses, traders, receipts WHERE ". $ AdminId." = Expenses.admin_id and expenditure.user_id = users.user_id and expenditure.merchant_id = merchants.merchant_id and left zone (receipts) spent on .receipt_id = receipts.receipt_id There is a clear way to do this, note that I have added an alias for tables for better readability, so that you can use the nickname in the selected statement. Get the column from the appropriate table. ex ex on SELECT u.user_name, ex.expense_category, mer.merchant_name, ex.expense_cost, ex.expense_date, ex.expense_sta...

how to disambiguate using @DocumentField in spring data mongoDB -

While using the Spring-Data Mongo DB, while trying to save the object in the DOB, I get this exception. Suspicious Field Mapping Detected! Both & lt; Child class field & gt; And & lt; Parent class field & gt; Map for the same field name & lt; Field name & gt; Disagree using the @DocumentField Annotation! I am hiding a field in the children category and it is causing the problem. But it is necessary for me to hide the declared field in Superclass. I can not get anywhere in the @DocumentField annotation. How can I move here? Is there any other solution? I think there is an error in its exception. Instead, you need to use @Field and specify a different name for the parameter: public class guardian {personal string myField; } @Document (collection = "children") Public Class Child Parents {@Field ("childField") Private String Myfild; }

perl - Why do I get these errors installing Devel::CheckLib? -

I have some Pearl projects and I update them; Install dependencies using Therefore, when I execute the command carton , auto dependency is detected and installed. I get some of these errors: ! Installing dependencies failed: module 'devail :: checklib' is not installed! To extract the installation for FFI-RAW-02.28, then, to manually install it with cpanm --force Devel :: CheckLib Move forward Installation is OK $ cpanm --force Install Devel :: CheckLib - & gt; Working on Devel :: CheckLib Working at http://www.cpan.org/authors/id/M/MA/MATTN/Devel-CheckLib-1.02.tar.gz ... OK Configuring Devel CheckLib-1.02 ... okay to test the building and develop-check Lib-1.02 ... properly installed Devel-CheckLib-1.02 1 distribution and when I use the cardboard I perform a box , I get the same error again ! Installing dependencies failed: module 'devail :: checklib' is not installed! Extraction of the establishment for FFI-RAW-02.2? Why does anyone know? ...

asp.net mvc 4 - Is it possible to define different icons for placeholders, components and edit frames in the Sitecore page editor "component navigator"? -

Image
साइटकोर पृष्ठ संपादक में काम करते समय, हमारे संपादक प्लेसहोल्डर, घटकों के पेड़ के माध्यम से नेविगेट करते हैं और नीले तीर आइकन का उपयोग करके फ्रेम को संपादित करते हैं घटक नाविक खोलें घटक नेविगेटर पेड़ में प्रत्येक पूर्वजों को दिखाता है (शीर्षक के पृष्ठ के उस भाग के संदर्भ से जहां संपादक क्लिक किया गया है) शीर्षक और एक छोटा नीला वर्ग बुलेट आइकन: / sitecore / shell / दुर्भाग्य से, सभी घटकों, प्लेसहोल्डर्स और एडिट फ़्रेम को एक ही आइकन द्वारा दर्शाया जाता है, और यह हमेशा बताने में आसान नहीं है कि अकेले शीर्षक से एक घटक और प्लेसहोल्डर के बीच का अंतर (कोर बटन में संपादित करें बटन को संपादन योग्य शीर्षक और टूलटिप है)। आदर्श रूप से, हम रंग कोडित बुलेट आइकन चाहते हैं जो हमारे संपादक यह समझते हैं कि वे कहां थे और क्या वे क्लिक कर रहे थे। ये सामग्री के पेड़ में प्रयुक्त चिन्ह नहीं हैं। ऐसा कहीं भी है जहां मैं एक अलग आइकन सेट कर सकता हूं इनमें से प्रत्येक? यदि नहीं, तो इसके लिए कोई कोड तय है? स्पष्टीकरण के लिए संपादित करें: इस चित्र में नीली बुलेट - बॉडी प्लेसहोल्डर है, पहला इमेज बैन...

java - shortcut in jbutton tooltip not displaying in other themes apart from matalic -

We need to show key board shortcuts in the Jebton tooltip, we have added an action map and all required code for the toolmap but Shortcut If we change the application and feel from metal to system or any other form and feel, then the short cut tool is not showing in tool tip. Below is the example program, which shows the 2J button with shortcuts, shortcuts are displaying properly with the appearance and feel of the metal, but if I use any other form and If I feel like a system or a motif, the shortcut in the J button tool tip has been stopped. For another example to look and feel for the example behavior below, please see and feel the metatics, for example and enable and feel the system or shape which is currently commented: import java.awt.gridLayout; Import java.awt.event.ActionEvent; Import java.awt.event.InputEvent; Import java.awt.event.KeyEvent; Import javax.swing.AbstractAction; Import javax.swing.Action; Import javax.swing.JButton; Import javax.swing.JComponent; Import...

asp.net - UserAccounts_RowEditing/Updating is not working properly -

OK, so I have a gridview and added crying additives and rou updating, but it really is nothing I will edit it. It is my code for both: Protected Zero UserAccounts_RowEditing (Object Sender, GridViewEditEventArgs e) {UserAccounts.EditIndex = e.NewEditIndex; BindUserAccounts (); } Secure Zero UserAccounts_RowUpdating (Object Sender, GridViewUpdateEventArgs e) {int index = UserAccounts.EditIndex; GridViewRow line = UserAccounts.Rows [e.RowIndex]; Username = User Account Ro [e. Roidind] .cell [1]. Text; Email = ((Textbox) Line Seals [2]. Control [0]). Text; Membership User User = Membership User (username); If (user! = Null) {user.Email = email; Membership.UpdateUser (user); ActionStatus.Text = string.Format ("User {0} description has been updated successfully!", User name); } UserAccounts.EditIndex = -1; BindUserAccounts (); } What am I doing wrong here? Edit: This is my BindUserAccounts: Private Zero BindUserAccounts () {Integer; UserAccounts.DataSource = Subscri...

linux - How to make the OS schedule disk accesses optimally? -

Suppose a process requires access to file systems in many systems (1000+) locations, and for order Not important is the programmable logic, however, the order is clearly meant for performance if the file system is stored on (spinning) hard disk. How can the application programmer communicate the OS that it should optimize access? Launching 1000+ threads does not seem practical. Does the database management software accomplish this, and if so, how? Additional details : I had a large (1TB +) mmified file where I needed to read about 1000K amounts of 1KB For, every time, in new, unexpected places. Rearrange the read / write commands already in the kernel (like the mechanical disk spin To fit), if they come from different processes or thread BTW, mostly reads & amp; Writes, not on the disk, the kernel files will go into the system cache. You can consider using & amp; Perhaps (in separate threads) if you use some file part to project in virtual memory, you can also...

javascript - 2 column bootstrap div - left should be fix on top and right should be scrollable -

Image
मैं इस तरह एक लेआउट बनाने का प्रयास कर रहा हूं: मैंने इस तरह html लिखा है: & lt; div class =" कंटेनर "& gt; & Lt; div वर्ग = "पंक्ति" & gt; & Lt; div वर्ग = "col-xs-12" & gt; & Lt; div वर्ग = "पंक्ति" & gt; & Lt;! - बायां ओर - & gt; & Lt; div वर्ग = "col-lg-3 col-md-3" & gt; & Lt; div वर्ग = "पंक्ति" & gt; & Lt; div शैली = "ऊंचाई: 400px" & gt; मेनू आइटम का कंटेनर, जिसे शीर्ष & lt; div & gt; पर ठीक करना चाहिए & Lt; / div & gt; & Lt; / div & gt; & Lt;! - दाईं ओर - & gt; & Lt; div वर्ग = "col-lg-9 col-md -" & gt; & Lt; div वर्ग = "पंक्ति" & gt; & Lt; div वर्ग = "पंक्ति" & gt; & Lt; div शैली = "ऊंचाई: 900px" & gt; Div स्क्रॉल योग्य & lt; div & gt; & Lt; / div & gt; & Lt; / div & gt; & Lt; / div & gt; & Lt; / ...

How To Use Ads With Chrome Extension? -

I am trying to inject 1 ad into the popup created by my extension. How can I go about doing this? Because when I try to add a direct code provided by AdSense, it "refuses to execute the script due to CPP." Is there any way? I am going to place ads on the page and it seems that Chrome has permission.

ruby - Unzip binary email attachment -

A railway app has a background job that generates a large CSV file and sends it as an attachment for an email message. To manage the size of the email, I'm zipping the CSV before applying it. It works fine; We have letter openers in development and I can open zip attached attachments and read data. I am using the "rubypip" gem to zip. This trick does this test. By using RSPC, I can verify that the message has an attachment and that the type of attachment is application / x-zip-encoded , which is all good, what I would like to do, attachment to Opening and validating the data within the trial, though, and it is proving to be more difficult: attachment is an object of mail :: part type. If I call Attachment part , then I will call it part.body.raw_source , part.body.encoded or I can get data using Part.decode_body . (The first and the third are identical.) part.body.encoding tells me that the body is binary when I have a zip :: inputstream object ( zip :: Inp...

jquery - Clicking on a cell in a table -

I am using Bootstrap and JQUERY to create an app that uses the "simple" room. This is a table, columns are on weekdays (Mon - Sat) and rows, time (8:00 am, 8:30 am, 9:00 am, etc.). Note: This is not a calendar, I do not need dates or months Each room is empty or for the time being, the room is being used, it can display information about this. I am able to click on any cell to update or edit my information. Is there any way to do this, (ie click on cell)? I'm just getting information to click on a line. You can do something like this, Actually you have a Div which will work as your new information source. HTML & lt; Div id = "newInfo" & gt; & Lt; Text area & gt; & Lt; / Text field & gt; & Lt; Button & gt; Submit & lt; / Button & gt; & Lt; / Div & gt; ("Click", function () {$ ('# newInfo'). (Show) () ( jQuery $ ('td'). Data ($ (this));}); $ ('button'). (...

PHP 'include' file -

I am working on a project that has many php files & lt; Php include calls through 'filename'; ? & Gt; What I want to do is that I want a php function or code which includes all components with the actual file, so that all 6-7 files have a single PHP file , So having a single PHP file would be good in that context. Calling that file will create a new PHP file with all the included files. I want to send an entire file to a file, as the administrator does! Any idea how to do this? For example: - ... php-code ... & lt? Include Php 'dologin.php'; ? & Gt; ... php code will be converted to ... : - ... php code ... function dollar (); {. .. (dologin.php file) ... ... php code ... You do not want to use the included () , which you essentially want to take, take a group of files and add them to one, the files are actually parse , you need to open them, read to the end, and you have to paste in another file - until it is not done again. ...

java - How can I represent this generic type -

How to fix a normal type of part to represent the map to apply this one long and anything ? Maps & lt; Long, & lt; T applied collection & lt; Long & gt; & Gt; & Gt; MOC; so that I moc = new hashMap & lt; Long, set & lt; Long & gt; & Gt; (); If I understand your question, then you map & lt; Long, collection & lt; Long & gt; & Gt; Moc = new Hashmap & lt; & Gt; (); You can set a set as moc.put (long) 1, new hashaseet and jm> long & gt can add. ; ());

php - Use an array in AJAX jquery -

json-encode () से एक AJAX jquery फ़ंक्शन में एक सरणी का उपयोग करें; हाय, एजेएक्स के लिए नया है मेरे पास एक पृष्ठ है जहां मैं इस पृष्ठ पर कुछ जोड़ने के लिए एक एजेक्स अनुरोध कॉल करना चाहता हूं। Export.php & lt; div वर्ग = "पंक्ति" & gt; & Lt; div वर्ग = "span12" & gt; & Lt; आईडी = "सूची सक्षम करें" नाम = "सूची सक्षम" & gt; & Lt; विकल्प मान = "ऐपेल" & gt; एपेलस & lt; / option & gt; & Lt; विकल्प मान = "फाइल" & gt; दस्तावेज & lt; / विकल्प & gt; & Lt; विकल्प मान = "कमांड" & gt; कमांड्स फोरनेइसर & lt; / option & gt; & Lt; / चयन & gt; & Lt; / div & gt; & Lt; / div & gt; & Lt; div वर्ग = "पंक्ति" & gt; & Lt; div वर्ग = "span12" & gt; & Lt; बटन वर्ग = "बीटीएन बीटीएन-प्राथमिक" onClick = "selectTable ()" & gt; चुनें & lt; / बटन & gt; & Lt; / div ...

groovy - Grails Gorm reference a property's (column's) value within a named query? -

So ... is there any way to do something like that? class kitty {string name string nickname public static string getExpectedNickname (string name) {name.replaceAll return ('Mr.', '')} Fixed nameQueries = {{byKityWithPredictableNickname iLike 'name' , '% Kitty%' Ilike 'nickname', Kitty .getExpectedNickname ('name')}}} Can I reference the value of the column value of the current row in some way ? I thought the property ('name') would work, but alas, no. Edit: Another example: I thought that something like this would work. ..but it does not :( ... stable namedQueries = {{whyDoesntThisReturnEverything integer c = Kitty.bySubQuery (id) .count () // gives everything, when I " Instead 1 I get some stupid illegal logic exceptions: . java.lang.ClassCastException @ 2af65a43 StackTrace is as follows: Message: java.lang.ClassCastException@2af65a43 line | method ->> | called | sun.reflect.GeneratedMethodAcc...

osx - Problems accessing the Tomcat directory -

I have trouble accessing the TOKametic directory, the file is present in the mkdir file, but when I click on the directory Trying to change says that there is no such file, a strange paradox seems to please help me with this. Spothheys-MacBook-Pro: Library Trustee $ MKDire Tomcat MkDir: Tomcat: File contains Spothythys-MacBook Pro: Library Trustable $ CD Tomato -Bish: CD: Tomcat: Any such file or Remarks from the Directory Sprharthis-MacBook-Pro: Library TrustPathy $ Responded: Tommack is a broken link. This is the reason why you read these error messages that the seam in the contradiction. You can remove the broken link and create a new one: rm -f bombing ln -s & lt; Newpath & gt; Tomak

documentation generation - Does anyone know what, if any, doc generator was used for techbase.kde.org? -

I was looking at some of the API reference pages for KDE and was especially looking at their technical docs and The more I navigate the sub-page, the more I really enjoy their readability, lean, clean etc. design. Does anyone know, if any, the technical generator was used for techbase.kde.org? P> A tag has been shown instantly on the HTML code of the homepage: & Lt; Meta name = "generator" content = "mediawiki 1.20.2" /> ` Instead of the page, some of the others expose a stylesheet:

httpwatch - Watching specific HTTP Requests -

For work purposes I need to analyze a very large number of javascript tags that generate many requests over HTTP I usually load these scripts on a local web page and then run the folder to see if the right requests have been made or not. Since this work is busy so I want to automate this process and make a device where my N scripts are installed, how to check on the UI and get the output where I have been told that "as planned "Or" nothing is right. " Is there a device where I can do this type of work or make me one from scratch? I know that the violin has plugin support, maybe I can make one suitable for me? If I'm going to create a device from scratch, then what language / method are you advising me? Thank you in advance! You can use this HTTPWH Automation interface: Disclaimer: This reply was provided by Symtech Ltd, which is * HTTP * *

ios8 - UITextField becomeFirstResponder block animation -

I want to show a scene in which there is a UITFixified, and I see a keyboard with my messageFast Responder iOS7 Along with, there is no problem. But since IOS 8, this does not work, I'm configuring this type of view: - (zero) showViewAddScore {if (! Self.viewPopOver) {// L. Initialization de la Poewi, self.viewPopOver = Design on the Design Le Conte [[Self.view View DetailsTags: 100]; Self.viewPopOver.layer.cornerRadius = 8; Self.viewPopOver.layer.masksToBounds = Yes; Self.viewPopOver.layer.borderWidth = 1; Self.viewPopOver.layer.borderColor = [[UIColor colorWithRed: 8.0 / 255 green: 65.0 / 255 blue: 32.0 / 255 alpha: 1] CGColor]; } // transfer de la wind CGP point; Point.x = self.viewPopOver.frame.origin.x; Point.y = 300; [Self-managed view popovers: self.viewPopOver withCGPoint: point]; [Self. Firstfinder to become Testfield AdScoker]; WithCGPoint: (CG point) point {[UIView Animation: 0.3 Delay: 0.1 Option: UIViewAnimationOptionCurveLinear Animation: ^ {CGRect frame = view...

Insert values into a mysql database in java -

Hi, I'm trying to insert data into your database, the following error is removed: > exception formula Validations.RegisterValidation "AWT- EventQueue-0 "java.lang.NullPointerException & Lt; Init & gt; ui.RegistrationUI to $ 2.mouseClicked on (RegisterValidation.java:26) (RegistrationUI.java:49) .AWTEventMulticaster.mouseClicked java.awt.Component.processMouseEvent (Component.java:6530) on java.awt (AWTEventMulticaster.java: 270) javax.swing.JComponent.processMouseEvent (JComponent.java:3321) on java.awt.Component.processEvent (Component.java:6292) java.awt.Container.processEvent (Container.java:2234) java.awt. Component.dispatchEventImpl (Component.java:4883) on java.awt.Container.dispatchEventImpl (Container.java:2292) on java.awt.LightweightDispatcher.retargetMouseEvent on Java.awt.Component.dispatchEvent (component.java:4705) (Kantenrkjawaa 4898) patcher.processMouseEvent on java.awt.Window.dispatchEventImpl on java.awt.LightweightDis (Container.java:454...

Python Pandas pivot_table missing column after pivot -

I have followed the data frame The data frame has been created by reading the CSV file. It has a large data set, but for the purpose of this question, I have used 15 lines as an example from the data set. I user_id contrib_count total_min_length group_space expert_level 0 23720 108 1112696 0 l -2 1 23720 13 442059 1 L-2 2 23720 12 32180 2 L-2 3 23720 2 20177 3 L-2 4 23720 1 1608 10 L-2 5 1265184 71 260186 LG 6 1265184 10 3466 2 LG 7 1265184 1 12081 4 LG 8 513380 112 1049311 L-49953380 1 97 1 L-4 10 513380 113 361980 2 L-4 11 513380 19 1198323 3 L-4 12 513380 2 88301 4 L-4 13 20251 705 17372707 LG 14 20251 103 2327178 1 LG Expected Result I smoke What I want to do is follow the data frame: group_space 0 1 2 3 4 5 6 7 8 9 10 specialist_love user_ id 20251 705 103 68 24 18 2 6 Nain nan 5 22 LG 23720 108 13 12 2 Na NN Naa na na na 1 L -2 Once I am doing this, I can use it for the prediction work where expert_level as the labels data. By now I have done the following t...

BigQuery: Why does Table Range Decorators return wrong result sometimes? -

I table range decorator to query the data from the last 7 days to use daily feature since only May since I have some tables 2 weeks, I'd noticed that whenever I use that feature some data is lost, for example, if (add table "@ -604 800 000 - 1 "), get a question of getting results of the last 7 days, some As the data (without a table if I will be missing as opposed to the query on the entire desk decorator). I wonder what this can explain and if there is a fix coming to its solution soon? The BigQuery can help the team, I have noticed that when the table decorator using some had missing data for us between 16 October and 20:00 UTC of 16 October. BigQuery are here 2 job ID for the team is coming where the missing data: job_-xtL4PlIYhNjQ5weMnssvqDmd6U , job_9ASNxqq_swjCd1eMmiQ6SmPpxlQ 1 job ID where the data is correct (without decorators): job_QbcRwYGbQv0BZdHreQEvRlYh- mm with a known table this issue this is due to a bug in BigQuery up with a time li...

Python: Loop Sentinel Value -

I should write a program that allows a user to enter a series of integers, then the signal-end of the 99 series After entering all the numbers, the program should enter the largest and smallest number. This is what I have done so far: def main (): user_input = 1 while user_input! = -99: user_input = int ("Enter your number or end-99.") Big = big (user_input) tinier = smallest (user_input) print ('biggest number is', bigger,' and The smallest is "small", ".") DEIF is the largest (number): largest = 0 if the number> largest: largest = number greatest DRF small number (number): minimum = 10000 if number & lt ; Smallest: smallest number = smallest () sensor value for any reason (-99) is entering the loop, I have no clue, and to become the lowest value. On top of that, the greatest value is never right, much appreciated! Fast change to create your code to fix this User_input! = -99: user_input = int (input ("own" E...

c# - Mixing extension methods, generics and lambda expressions -

I'm porting Haskell / LiveScript each function to C # and I There are some difficulties: I sign this function (a → undefined) → [a] → [a] and I work very well with typing and lambda expressions in Haskell or LS, but C # confuses me. The last usage of this extension method should be the following: string [] str = {"Haskell", "Scheme", "Pearl", "Closer", "Live Script", "Erlang" }; Str.Each ((x) => Write console (x)); And, along with that, my output should be: Haskell Scheme Pearl Closer LiveScript Enlarge My current Implementation of each : public static void each & lt; T & gt; (This IEnumberable list, action off) {foreach (result in list) representative d = shut down; Object [] parameter = {results}; D.DynamicInvoke (parameter); }} The problem is that here I can not give a parameter in my lambda expression. I (x) = & gt; Can not ... . How can I pass the parameter for lambda exp...

blender - ImageMagick convert -trim changing colors -

Image
I am creating a phantom from 3D models in Blender by rendering the frame and then joining them with Image Magic I am here. But when I run image.png-tim image.png The colors on this image are being deeply changed. How do I stop it or is it a bug? Input file Output file

c# - Add dropdownmenu - button to gridview -

Image
I am trying to explain how I can add a button to a gridview when the drop down menu Clicks will be formed with clickable options and will fire some types of incidents. [The image below the relevance can help the location of the button in some concepts] The problem is that when a row is added or in any way, It will not be shown. This is my code: & asp: gridview runat = "server" id = "grdvw deposit transaction" autoconfiguration column = "fottal" datakiname = "status" ONREVE COMMOD = "GRDED DEPOSIT TRANSGATION_RO COMMUN", "Overdotabound =" Grade_ReadoutBound "csslas =" Grid "& gt; & Lt; Columns & gt; & Lt; ASP: TemplateField & gt; & Lt; ItemTemplate & gt; & Lt; Ul id = "actionMenuHomeScreenPanel" style = "display: none; margin-top: -6px; text-align: left;" Onmouseover = "javascript: showmenu (); return back;" Onmouseout = "javascri...

html - What is the ::before or ::after expression, and why is it shown in the browser developer tools? -

I've read :: before to be used before that element You use it, eg p: before {content: "read it:"; } But I have seen many times (by looking at the web page through developer tools) they use them without any element, e.g. & lt; Div class = "btn-toolbar" role = "toolbar" & gt; :: First and lieutenant; Div class = "btn-group" & gt; & Lt; Button type = "button" class = "btn btn-default" & gt; & Lt; Span class = "glyphicon glyphicon-align-left" & gt; & Lt; / Span & gt; & Lt; / Button & gt; & Lt; Button type = "button" class = "btn btn-default" & gt; & Lt; Span class = "glyphicon glyphicon-align-center" & gt; & Lt; / Span & gt; & Lt; / Button & gt; & Lt; Button type = "button" class = "btn btn-default" & gt; & Lt; Span class = "glyphicon glyphicon-align-right"...

mongodb - How can I aggregate collection and group by field count -

I have a collection of users who looks like this: {"_id ":" Email ":" email@email.com "," OGP ": [Big Nest compilation ... {}, {}, {}}" created ": ObjectDid (" 54380a817a4b612a38e87613 ")," Email ":" "Country": "America", "City": "Seattle", "Longitude": 123, "Latitude": "02-228T23: 10: 07Z"), "o_id": ObjectId ("5438096f7a4b612a38e445f4") "Geo" : 123}} I want to get all the user space and want to group them through the country and the total. Something like this: [[Country: "US", total: 250,000}, {country: "GB", total: 150,000}, ...] Currently I'm grabbing all the documents and parsing it on the server: db.users.find ({'geo.country': {$ ne: null}, 'Geo.city': {$ ne: null}}, {'geo.country': 1}, function (error, doctor) {var data; doc = _.groupBy (doct...

math - Why using powers of 2 as the hash size makes a hash table considerably worse than using primes? -

I am implementing a hash table that is supposed to store the sum of 32-bit values ​​to my The size fixed by keeping the elements in mind, I am using a very simple hashing function: hash (a, b) = asUint64 (a) + (asUint64 (b ) With it, I have an indicator of element in a hash table (which is its associated bucket): Index (A, B)) = Hash (A, B)% Whereas the hash_size is the number of entries / buckets on my table. I have realized that however, I can give this implementation a little speed if I use the "modulus" operator to do the 2 As the power changed the hash_size by fixing it. Except, when I do this, most of my couple ends up on the bucket first! Why is this happening? My guess is that your data is not distributed evenly in a Consider a and b inclusion as your hash code: b31b30 ... b1b0a31a30 ... A1a0, where ai, bi A, b estimate that you have a table with one million entries, then your hash index then A9a8 ... a1a0 (as an integer) Worse, l...

pointers - Character search in C programming -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब एक प्रोग्राम में एक फ़ंक्शन है जिसकी जरूरत है एक स्ट्रिंग फ़ाइल में एक अक्षर खोजना। मुख्य में स्ट्रिंग घोषित की जाती है और मान इस तरह से उपयोगकर्ता इनपुट द्वारा निर्धारित किया जाता है: चार छात्रडेटा [40]; Scanf ("% s", और छात्रडेटा); कार्य के हिस्से के रूप में, उपयोगकर्ता हमेशा अक्षर '/' को स्ट्रिंग के बीच में लिख देगा, जो कि मिलना होगा। खोज के लिए मेरा कोड: int i = 0; चार z = '/'; जबकि (studentData [i]! = Z) {i ++; } studentData फ़ंक्शन के एक चर के रूप में घोषित है char * student data विचार के बाद लूप वेरिएबल I में वर्ण z की स्थिति होती है, लेकिन प्रोग्राम लूप और दुर्घटनाओं से बाहर कभी नहीं आता है। यह संभवतः शुरुआत गलती है क्योंकि मैं इस पर नया हूँ ... मदद के लिए धन्यवाद! इसके बजाय scanf ("% s", और छात्रडेटा); प्रयास करें scanf ("% s", studentdata); क्योंकि studentdata पहले से ही एक संकेतक है। वर्तमान में आप scanf को उस स्थान पर लिखने के लिए कह रहे...

ios - How do I make a custom table cell work with dynamically sized labels within? -

Image
I'm not sure that there is an excellent way to show a problem with multiple files in an encoded project, so please forgive me Two if this is not the best way - and please tell me what else I can show! In any case, I have a custom table view that is displayed with a nib (.xib), and the dynamic dynamic height is displayed in the custom table view labeled everything very well Except for the fact that table cell height is not suitable for the increased height of the overall elements. What can I see that the row height value for the table view is being used as a complete, and I'm not sure how to override it I set it as 200 And it is fixed for each table, even if the content exceeds that height: I am using automatic layout, which is very much in the middle of the cell elements. Good working ... this is the only cell height that is not being set. Class EventTableViewCell: UITableViewCell {func loadItem (#date: string, title: string, description: string, image: UIImage) {...

c - Checking if Char contains numbers and converting it to INT -

This program is doing well, but I am trying to check it, if user entered Value is the number of letters or not signs) So basically I am using ifdigit or '/ 0' with condition. The program is compiled properly, but I'm getting the error when entering less than 3 types (even numbers ...) what's wrong in it? I need only one thing when the number is 0-999 and when it is not ask again, or this number is not, then loop is to be left. char x [5]; Bool ijud; Int tab [20] [2], I = 0, A; Do {isgood = TRUE; Printf ("Write a where 0 Incorrect: Your Boolean-Logic Your Blank-Character Calling atoi when isgood is FALSE Change it: isdigit (x [j]) == 0 || X [j]! = '/ 0' To do this: isdigit (x [j]) == 0 and ; Amp; X [j]! = '\ 0' And this: a = atoi (x); If break (a & lt; 1000 & isgood == true); To do this: if (isgood == true) {a = atoi (x); Break (0 & lt; a & amp; l & gt; 1000); } There is...

group by - How can I select a distinct combination of values across 3 or 4 columns in SQL Server -

I inherited a non-normalized table in SQL Server, with 15 columns of purchase records. | Index | TransNo | Funds | Cost | City | ZIP | Bank | Risk_YesNo | ...... | 1 | 1 | Green | 34 NYC | ZIP | Sont | | 2 | 12 | Party | 345.23 | NYC | ZIP | BOA_BS | | 3 | 32 | Education | 43 | Boston | ZIP | BOA_BS | | 4 | 53 | Books | 56 | Atl | ZIP | Citi | | 5 | 422 | Groc | 12315 | Atl | ZIP | Pink | I need to remove three specific combinations of columns and ignore others like index and transnation and put them in the same table (In planning for the next call, I want to generalize 2 - I have to include each specific value in my specific table | fund | city | Bank | | Green | NYC | Sont | // Green with City and Bank All different combinations of | green | NYC | BOAS | | ADWO | NYC | SONT | // All different combinations of ADU with city and bank. | ADWO | NYC | BOA_BS | Use Choose from create specific as well as enter in the meritest, different fund...

c++ - Sequencing code in a multithreaded environment -

I have a multi-C ++ MFC application. To execute my program logic I have a worker thread, and the main thread is dedicated to managing GUI events. The GUI thread program spawns logic threads, and detaches execution from it, like this - Zero CMyDocument :: InGUIThread () {std :: Thread tProgramLogic (programLogicThreadFunction); TProgramLogic.detach ()} It takes approximately 5 minutes to execute my program logic. Here's my problem: After the end of my program logic execution, I want to call the function in the main GUI thread. How can I signal my main thread to a programmable thread because it is near the end of execution? Because PS is different because I separate my programLogic thread that I do not freeze my main thread, and thus it is responsive to GUI events. After you can go for a C ++ 11 async solution and With the results poll, but in my specific case (in a Windows environment) I want to go for an even better solution: 1) Define and deal with this map,...

python - Return surface triangle of 3D scipy.spatial.Delaunay -

Image
I have this problem. I try to triple the point client by simple.partial.delun. I used: tri = delaunay (number) # Issue: N.P.Rray () index of 3D digit = tri.simplices corner = points [index] But, this code return quadrilateral is how it is possible to triangle the triangle? Thank you To make it work as a code, For example, in the case of the ball (R, theta, psi) the radius is fixed (drop down) and the number (theta, PE) is given by 2D. Sapli delun n-dimensional triangle, so if you give 3d digit, it returns 3D objects. Give it 2D points and it gives 2D objects. Below is a script I used to create Polyhedra for OpenCAD. U and V are my parametrization (x and y) and these are the coordinates that I give to Deluenay. Note that "delayed triangle properties" now only apply in u, V coordinates (xyz -space, etc. not the maximum in an UV-space). The example is a modified copy that basically uses the triangle function (maps for Delaunay eventually?) as import...

android - Multitouch over multiple views -

(एकल) स्पर्श इशारों के लिए, GestureOverlayView दृश्य है जो अन्य दृश्यों (ग्रिडव्यू, सूचीदृश्य ...) और रिक्त स्थान पर रखा जा सकता है और अभी भी सही ढंग से स्पर्श का पता लगा सकता है। मल्टीटाच / ज़ूमआउट) इशारों? खाली गतिविधि स्थान से यह स्केलगेस्टेर डिटेक्टर। सिंपलऑनस्केल गेस्टायर लिस्टनर के साथ किया जा सकता है, लेकिन क्या होगा अगर मैं उदाहरण के लिए इस तरह का संकेत सूची पर उपयोग करना चाहता हूं? क्या मुझे प्रत्येक के लिए स्केलगैचर डिटेक्टर को लागू करना है गतिविधि के अंदर स्पष्ट रूप से देखें या क्या ऐसा करने के लिए होशियार तरीके से / संपादित करें: अधिक विवरण का थोड़ा सा अभी मैं ऐसा कर रहा हूं: // सेटअप श्रोता ओवरले = (इशाराओवरलेव्यूव्यू) ढूंढिए वीवीबीआईआईडी (आरआईड। सीजरऑवरलेव्यू); overlay.setGestureVisible (गलत); overlay.addOnGesturePerformedListener (this); लेकिन तब जब इशारे का उपयोग करते हुए मैं इशारा करता हूं सार्वजनिक ऑर्डर पर जेस्टचरप्रोफेर्ड (इशारा ओवरले, हावभाव इशारा) समस्या यह है कि मेरे पास कच्ची जेस्चर फाइल नहीं है क्योंकि जेस्चर बिल्डर मुझे मल्ट...

database - What are set-at-a-time operations and in what situation would processing a set of data be needed to be done by the application program -

Question: What is set on the operation of a time, The set is done on the set Cheers. If all the relevant data is in the Oracle database, then the processing process Code> section, etc. Mailers can solve any programming problem. It does not necessarily mean that everything should be done in a single SQL statement. As you feel comfortable with those features, your SQL statements will get bigger and faster, and the total amount of code will be reduced. But there is always a point where regular old procedural codes are more understandable. Your basic description is partly correct: "Cursors set for DBMS in a one-time process." Line-per-line processing with a cursor is usually the opposite of set-based processing. But Oracle can still do some work to make some parts of the processes set-based. For example, for example, look at this simple code to join an EMPLOYEE and DEPARTMENT tables and print the results. Start for employee and / departme...

Generating command arguments with a loop in bash -

Is it possible to put a loop inside my code? Want to plot a field for every day of the current month and save a file? One way is difficult, but it is not fun, and due to the number of days of each month is impractical. Want to do something like "every day of the mont ..." or "while the day lt; lastDay ...." #! / Bin / bash #Generator Staplegraph for Newward Meded # Sparar File NL YYYY-MM-bar.png # Envanced Tax Rev: 1min # Om Script Course Manual, Sudo # Todo: Logic for Space Managed NL. "$ Simple_bar_generator.sh YYYY-MM" month = $ (date +% m) days = $ (date +% d) monthSTR = $ (date-d "- $ (date +% d) day +1 months" +% B) Year = $ (date +% y) First day = $ (date -d "-0 month - $ (($ (date +% d) -1) Day # + YYYY-MM -DD ​​lastDay = $ (date -d "$ firstDay + 1 month - 1 day '+% Y% m% d) /etc/elmatare.conf imgPath =" / var / www / img # YYYY-MM-DD source / "TempPath =" / tmp / $ years $ months bar.png "/ us...

c# - In Xamarin, Is it possible link to a .NET 4.0 assembly? -

I do not have any zombie yet, and I want to make some applications for both Android and Windows, Library will be Is there a possibility that the NAT 4.0 assembly be linked to XMRION IOS / Android Project without compiling it? This assembly reference for System only uses SQLite-NET by Proclarum, which requires the native Windows Library sqlite3.dll . As I heard, Mono / on XMarin? Mono.Data.Sqlite Instead sqlite3.dll is required, but I'm not sure, can I have my library "cross-platform" with it? Or would I have to change something? Unfortunately, I can not currently check it at this time. Thank you .. .Net assemblies can not be connected with Xamarin Android / IOS but you can link to PCLs or you can create a Xamarin Android / IOS project, there are files and conditional instructions (#if. ..) can solve potential problems.

php - how to add an anchor after page reload -

I have been asked before this question, and generally the answer shows that inside the #MyAnchor form tag, Slice into the action string in the final form ... But in this situation, in which case the action string is very complex, where in reality I will replace the anchor so that the page is reloaded to the same place where the field (and not at the top of the page)? & lt; Div class = "submit-form" & gt; & Lt ;? Php if (get_option ('cap_api_key')! = "") {? & Gt; & Lt ;? Php // newsletter signup if ($ _SESSION ['email_signup'] == "true") {resonance "Cadstro efterado. Confira seu email."; $ _SESSION ['email_signup'] = ""; } Otherwise ($ _SESSION ['email_signup'] == "bad email") {resonance "call e-mail address". ? & Gt; & Lt; Form method = "post" action = "& lt ;? php bloginfo ('template_directory') ;? & gt; / include /mail...

iphone - Is there inter-app communication when apps start in iOS? -

I'm relatively new to iOS app development and I'm just trying to find out some things that me, more Are the essence When do other applications start, how do apps know? The closest example I can imagine is what I am trying to ask, when the music is playing in the background and you open another app that has the sound and the music stops whether it takes a new app authority or what the difference app Is communication? How does communication work if communication happens? Like it is a message that can reach or what? Sorry if he does not mean much, then I tried to expand what I could have done. I did not find anything on this on Apple's developer website thank you in advanced! There is no inter-app communication, each app is living in its own world, and as far as Your app is concerned, this is the only app on the phone. The way communication goes, it is that an app talks to the system, and the system speaks to your app. The way the system sends a message to your app...

jQuery: Stop onclick looping on appended link -

लूपिंग से यह क्लिक कैसे रोकें? $ ('ली')। ('क्लिक', फ़ंक्शन () {var तत्व = $ ('। तत्व'), एलकॉंट्स = $ (यह) .closest ('ul')। Attr ('डेटा-काउंटर'), // default = 0 elupdate = संख्या (अलंकृत) +1, // वृद्धि 1 eldata = $ (this) .attr ('data-element') द्वारा गिनती; elements.append ('& lt; div & gt; & lt; a href = "#" & gt; x & lt; एटीआर ('डेटा-काउंटर', एल्पाडेट); तत्वों पर ('क्लिक', 'ए', 'ए', 'ए', 'ए', 'एल्टा +', & lt; / div & gt; '); $ (यह)। फ़ंक्शन () {var ulId = $ (this) .attr ('data-ulsource'), ulelement = $ ('ul #' + ulId), मायने रखता है वर्तमान = ulelement.attr ('डेटा-काउंटर'), // वर्तमान प्राप्त करें काउंटर countsUpdate = संख्या (गणनाएं चालू) -1; // 1 ulelement.attr ('डेटा-काउंटर', गिनती अद्यतन); $ (यह) द्वारा गिनती घटाएं। Parent ()। हटायें (); अलर्ट (गणनाएं अपडेट); // परीक्षण यह वापसी झूठी;})}} क्...