_id
stringlengths
2
6
text
stringlengths
4
46k
title
stringclasses
1 value
d4901
How about: diff -I '^time.*' file1 file2? Please note it doesn't always work as expected as per diffutils manual: However, -I only ignores the insertion or deletion of lines that contain the regular expression if every changed line in the hunk (every insertion and every deletion) matches the regular expression. In oth...
d4902
You were doing the right thing. For the nested dictionary, if you can't understand it, print it out to see how it's structured. Here is a way to get your values that you should be able to manipulate to get whatever you want. for k,v in a.items(): # get the keys and values in the dict a. k, v are not special names. ...
d4903
Filter on pd.Series.notnull and call mean. c = ['cs', 'fhfa', 'sz'] df['final'] = df[df[c].notnull().all(1)][c].mean(1) A: IIUC: df.loc[:, 'final'] = df.loc[df[['cs','fhfa','sz']].notnull().all(1), ['cs','fhfa','sz']].sum(1)/3 .all(1) - is the same as .all(axis=1), which means - all values in each row must be True
d4904
You are getting this error because you are not using any observable list inside your ListView.builder. But before that you should convert your StatefullWidget to a StatelessWidget because in GetX, we don't need any StatefullWidget. You can try the following code. Controller class FeedsController extends GetxController ...
d4905
This appears to be to do with the loop inside your move function. You call it with the parameter m representing the lengh of the ball array - but the function checkCollisionPlayer which is called within that can remove a ball from the array if there is a collision. This means that the array is now shorter, so whenever ...
d4906
You can try getting the latest release tag, rather than the HEAD code, like this: git clone https://github.com/Itseez/opencv.git cd opencv && git checkout 3.2.0
d4907
The best way to achieve your UI/UX requirement is to use TabLayout with a vertical recycler view. Both list items in the recycler view and tabs in the tab layout can be set up as a dynamic number of items/tabs When you scroll up and down and reach the respective category, update the tab layout using the following code....
d4908
You are very close indeed! You should join both ranges in order to sort them by the first column: =SORT({Performance!$B$2:$B;Performance!$C$2:$C;'Contributions/Withdrawals'!$A$2:$A,Performance!$F$2:$F;Performance!$H$2:$H;'Contributions/Withdrawals'!$B$2:$B}) (You may need to change that only comma to a inverted slash ...
d4909
You can collect all tasks, then count them, compute some other metric of "loop length" or perform inspection. asyncio.Task.all_tasks(loop=loop) A: In python 3.10, you can get the number of tasks in the current thread like that : len(asyncio.all_tasks(asyncio.get_running_loop()))
d4910
The file you are invoking seems not to be a valid ELF executable, bash tries to process it as a bash script and fails. You can check for sure by using file command, e.g. file modeset. Check for the errors during your GCC build. Note that you try to compile modeset.h, not modeset.c.
d4911
How about setting a socket timeout. It sets the timeout on all the read operations on that socket
d4912
"Stop the world" rebalances are a known issue with Kafka Connect. The good news is that with KIP-415 which is due in Apache Kafka 2.3 there is a new incremental rebalance feature which should make things much better. In the meantime the only other option is to partition your Kafka Connect workers and have separate clu...
d4913
I have seen the same issue. However, I suggest this answer : https://stackoverflow.com/a/25658026/6157415 The "@Entry base=" parameter is used by LdapRepository not by LdapTemplate.
d4914
You can write each line independantly. This way you can check if the line itself is empty before writing. foreach ($textAr as $line) { $saveresult = ""; $line = str_replace(' ', '', $line); $line = preg_replace('/\D/', '', $line); $result = httpPost($url, $line); $showID = ($showID ? "".$result['id...
d4915
I found a solution for this, though is not the most elegant. I couldn't find a way to make a predicate to work as the one I had in UI Automation, so I used a couple of for loops to check the value of the cell labels. NSPredicate *enabledCellsPredicate = [NSPredicate predicateWithFormat:@"enabled == true "]; XCUIElement...
d4916
What you have done above looks alright, but still if it doesn't work, then try this: FileOutputStream fos = context.openFileOutput("filename", Context.MODE_PRIVATE); This will create a file from non-activity class.
d4917
def cesar_encryption (message, offset = 1): encrypted_message = "" for char in message: encrypted_message += chr(ord(char) + offset) return encrypted_message print (cesar_encryption("I LOVE NATURE", 1)) # J!MPWF!OBUVSF Just remove .islower(), because you don't need it. More about this can be lear...
d4918
I was using hector 1.1.4 but it is taken care in hector 1.1.5.
d4919
I'd use http://json2csharp.com/ (or any other json to c# parser) and then use C# objects (it's just easier for me) This would look like that for this case: namespace jsonTests { public class DeviceTypeWithResponseTypeMapper { public string DeviceType { get; set; } public List<string> ResponseTyp...
d4920
You may checkout this project. Sample usage: object value = ... string plist = Plist.PlistDocument.CreateDocument(value); The only requirement is to decorate your object with [Serializable] attribute. A: If you're using WebObjects, the appserver from apple, there's a java mirror class of NSPropertyListSerialization t...
d4921
The id you're passing to <FormControlLabel id="someId"/> component, is NOT the id of the <input> HTML element but the id of its <label> element. So when you check for document.getElementById("someId").checked you always get undefined and then you'll never go through your if - else checks.
d4922
I found a way using SqlGeographyBuilder, there may be a more efficient way but this works: List<SqlGeography> areaPolygons = GetAreaPolygons() SqlGeography multiPoly = null; SqlGeographyBuilder sqlbuilder = new SqlGeographyBuilder(); sqlbuilder.SetSrid(4326); sqlbuilder.BeginGeography(OpenGisGeographyType.MultiPolygon...
d4923
I have the route configured as from(fromEndPoint) .onCompletion() .doSomething() .split() // each Line .streaming() .parallelProcessing() .unmarshal().bindy .aggregate() .completionSize(100) .completionTimeout(5000) .to(toEndpoint) Assume if the split was done on 405 lines, the ...
d4924
Are you talking about the Facebook API? Anyway: http://www.test-cors.org
d4925
how could a child class know (without taking a look at base class implementation) which order (or option) is being expected by the parent class? There is no way to "know" this when you are subclassing and overriding a method. Proper documentation is really the only option here. Is there a way in which parent class ...
d4926
Well instead of using an if statement, you can always use the ternary operator ?: @Html.PasswordFor( model => model.Password, new { required = Model.UserName != null ? "This field is required" : null } ) Alternatively (if setting required as null does not work) then you could use it one level up: @Html.Passwo...
d4927
You can do like this: print(driver.find_element_by_css_selector(".xxxx a").get_attribute('href')) A: Try the below: pName = driver.find_element_by_css_selector(".xxxx").text print(pName) or pName = driver.find_element_by_css_selector(".xxxx").get_attribute("href") print(pName) A: div.xxxx a first, ch...
d4928
You can pass your any number of variables/arrays using a single array. In Controller: public function display() { $id = $this->session->userdata('user_id'); $data['var1'] = $this->jobseeker_model->result_getall($id); $data['var2'] = $this->jobseeker_model->select($id); $this->load->view('jobseek...
d4929
First you should make a test on the location and the location.state objects because they may be undefined because this method is called immediately after any update in the state or in the props from the parent component. you can see the Official doc. Rather you should do this: componentDidUpdate(prevProps) { if (th...
d4930
You should try using the following line: deviceId = Secure.getString(context.getContentResolver(), Secure.ANDROID_ID); This will get the device ID from tablets, the code you're using only works on phones (it will return null on tablets) A: put <uses-permission android:name="android.permission.READ_PHONE_STATE" /> ...
d4931
One of the oid seem to trigger the error (cf. '.1.3.6.1.2.1.43.10.2.1.4.1.1' # SNMPv2-SMI::mib-2.43.10.2.1.4.1.1 page count), moving it to last fix the error. But this is a dubious solution. oids = [ '.1.3.6.1.2.1.25.3.2.1.3.1', # HOST-RESOURCES-MIB::hrDeviceDescr.1 '.1.3.6.1.2.1.1.4.0', # SNMPv2-MIB::sysCon...
d4932
Where do you set the todo? A put request replaces the current values with new ones. If you only set the description property but leave the todo out, it will overwrite it with an empty string, clearing any data you had in there. Either set the old value of the todo before making your put request or use a patch instead. ...
d4933
You can use IRBuilder's CreateGlobalStringPtr which is a convenience wrapper for creating a global string constant and returning an i8* pointing to its first character.
d4934
Take a look at this. I have had success using it and found it to be the best framework out there for box-api and php https://github.com/golchha21/BoxPHPAPI
d4935
These are objects that represent the same underlying entity, namely an HTTP cookie as defined by the RFC. Both "do" the same thing, representing a cookie header in an HTTP response (a request cookie is a name=value pair only, whereas response cookies can have several additional attributes as described in the RFC). Wher...
d4936
You're not adding four new RSTRule instances to the list, you're adding the same RSTRule instance four times and modifying it each time through. Since it's the same instance stored four times, the modifications show up in every position of the list.
d4937
You have to add AccountManager.getInstance(connection) .sensitiveOperationOverInsecureConnection(true); to disable your ACL while you are registering a new user, then switch back to default settings: AccountManager.getInstance(connection) .sensitiveOperationOverInsecureConnection(false)...
d4938
File and security systems are operating system specific. Go is modeled on Linux, Darwin, and other Unix-like operating systems. The Go Windows port emulates most things, but, as you have discovered, not everything (some are just stubs). If the features you need are not in the Go standard library, look for independentl...
d4939
You can get the relative .album_holders using this, and then find the .title_holder within it. $(".image_holder").on("mouseover", function () { $(this).closest('.album_holders').find('.title_holder').animate({ "opacity": 1 },1500,$easing2); }); A: you can do this $(".image_holder").on("mouseover", funct...
d4940
I found the solution: add rpath option to CMakelists.txt for the executable, not for the shared library.
d4941
First, web APIs can not be called as script source. The output from a web API is the data as a string. Because the web API does not know (and doesn't want to assume) how the data is being called, it just dumps it. That way a CURL request can handle it just as well as an AJAX. It is up to you to determine how best to re...
d4942
Most likely this file is on a remote/mounted filesystem. Can you check that with either "df" or "mount" command? If it is remote filesystem then possibly the mount options disallow changing the file.
d4943
by: account.UserID = userid I assume you meant: account.UserID = user.user_id() The user id is a string, not a key, so you can't use a KeyProperty here. In fact, AFAIK, User objects as returned from users.get_current_user() don't have a key (at least not one that is documented) since they aren't datastore entries. ...
d4944
"Content pages to subscribe to change events" doesn't seem to be either a benefit or a drawback without further elaboration. You cannot really morph it to either category by prefixing "Do" or "Don't". The logic above (if you agree) leaves us with the following choices: 1 * *Pros - More maintainable because they live ...
d4945
Have you tried to call initModule_nonfree()? #include <opencv2/nonfree/nonfree.hpp> using namespace std; using namespace cv; int main(int argc, char *argv[]) { initModule_nonfree(); Mat image = imread("TestImage.jpg"); // Create smart pointer for SIFT feature detector. Ptr<FeatureDetector> featureDetector = ...
d4946
Try this: public class Issue { [XmlAttribute] public string Type { get; set; } [XmlAnyElement("Record")] public List<XElement> Record { get; set; } } I think that tells the serializer that multiple Record elements will go in the list. A: Implement Record class which has ID, Name_First, Name_Last and...
d4947
\ backslash is an escape character. Escape sequences are used to represent certain special characters within string literals and character literals. Read here So you should do: if (c == '\\'){ } A: You need escape sequences: \\ backslash byte 0x5c in ASCII encoding Change the code to if (c == '\\') A...
d4948
how can I call specific method of portlet.java class on ajax call? I think we can't have two different versions of serveResource methods like we do for action methods atleast not with the default implementation. If you want different methods you would have to go the Spring MVC (@ResourceMapping) way to have that. Stil...
d4949
I know this may be silly, but do you happen to save the view after cloning? Also, make sure that the path is not already existing within you Drupal site. A view creates a menu entry, check within you menu items listing that this entry is enabled.
d4950
In this case, in main(), Node *root; Why do you need to use a "double" pointer ( Node ** ) in functions that alter root is because root value as to be set in these functions. For instance, say you want to allocate a Node and set it into root. If you do the following void alloc_root(Node *root) { root = malloc(sizeo...
d4951
You should: * *update the adapter with the new data *call myAdapter.notifyDataSetChanged() to update the GridView Better, you should use a RecyclerView with a GridLayoutManager instead of a GridView
d4952
To use libraries (or executables) built on Windows in Linux environment you need to cross-compile your code. GCC is capable of cross compilation - so you can research the topic, there is plenty of information.
d4953
Replace function Card({props},{image, title,author,price}) { with function Card(props) { I recommend working through the official React tutorial before using Redux.
d4954
ZZZZ in base 36 is 1679615 in base 10 (36^4 - 1). So you can simply test if the number is greater than this and reject it. To pad you can use String.PadLeft. A: If there are always going to be exactly four digits, it's really easy: const long MaxBase36Value = (36L * 36L * 36L * 36L) - 1L; public static string EncodeB...
d4955
You are describing what Numpy calls a Generalized Universal FUNCtion, or gufunc. As it name suggests, it is an extension of ufuncs. You probably want to start by reading these two pages: * *Writing your own ufunc *Building a ufunc from scratch The second example uses Cython and has some material on gufuncs. To full...
d4956
How about this .. this works, you have manually copy all the changed/selected options from actual row to cloned row $(document).ready(function(){ $("#DuplicateRow").click(function(){ var checkboxValues = []; $('input[type="checkbox"]:checked').each(function(){ var $chkbox=$(this); var $actualrow = $chkbox.closest('tr')...
d4957
You can't have variables in your bower.json file, so its not supported out of the box. See: https://groups.google.com/forum/#!msg/twitter-bower/OvMPG6KS3OM/eo6L2VadxI8J As a workaround if you have sed you can run something like: # update 1.2.5 -> 1.2.7 in test.json sed -i '' 's/1.2.5/1.2.7/' test.json
d4958
Firstly, your example has syntax errors. Should be: $userId = $_POST["userId"]; print '<input type="hidden" name="userId" value="'.$userId.'" />'; ------------------------------------------------------------------------------------ Basic Explanation: If $userId = 123 (ie. $_POST['userId'] = 123), all that it's saying ...
d4959
use <f:param> It's explained in this article from BalusC http://balusc.blogspot.in/2011/09/communication-in-jsf-20.html#ProcessingGETRequestParameters A: I do not need a bazooka to kill a mouse. The answer is very simple. bind a javascript function to the onclick of the button, and in that function, retrieve the value...
d4960
Well you should prefer to use Google Cloud Messaging GCM for push notifications rather than using 3rd Parties like Parse etc. GCM is super fast and i am using in all my apps which are live. Here are Good Links to Startoff with GCM http://developer.android.com/google/gcm/index.html http://www.androidhive.info/2012/10/a...
d4961
The basic concept would look something like... import java.awt.BorderLayout; import java.awt.EventQueue; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.Resul...
d4962
Here is my version of an OpenFileDialog for Java ME. public class OpenFileDialog extends List implements CommandListener { public static final String PREFIX = "file:///"; private static final String UP = "[ .. ]"; private static final String DIR = " + "; private Stack stack = new Stack(); private OpenFile...
d4963
After numerous searches for ways to utilize OpenSSL from Java I have ended up with JNA wrapper implementation, which, suprisingly, appeared to be pretty simple. Fortunately, OpenSSL is designed in such way that in vast majority of use-cases we do not need to exactly know the type of the value, returned from the call to...
d4964
Maybe you're overthinking this. If I understand what you want correctly, you could just do something like this: from datetime import datetime, timedelta days = { '1': _('Monday'), '2': _('Tuesday'), '3': _('Wednesday'), '4': _('Thursday'), '5': _('Friday'), '6': _('Saturday'), '7': _('Sun...
d4965
One way you can do this is by using a recursive function. Where each iteration of the function goes 1 level deeper until it reaches the desired level to set the value. This is a basic version assuming objects exists with correct depth before calling the function. As it is now, there can be multiple errors if used incor...
d4966
After some investigation, this is the command which fix my issue: proc = subprocess.Popen('npm install -g appium',shell=True,stdin=None, stdout=True, stderr=None, close_fds=True)
d4967
You have encountered a FileNotFoundException, which means the file you search doesn't exist in the path you have declared. Check whether you have given the correct path. And if you are sure about the path, then make sure the file you search is available in that path.
d4968
c() creates a vector. - makes the numbers in the vector negative. The vector is in the "row" position of [, so it is omitting the rows from 1 to k, and from nrow(SN) - k + 1 to the end of the data frame. So it's chopping off the first k and last k - 1 rows of the data frame.
d4969
I was also facing same issue and I followed these steps and problem went away: 1.close all program in your system then 2.then go to start button and search for %temp% then delete all files inside this folder 3.install Cclean software and clean your system. 4.restart your system A: I was facing same issue in win7 and ...
d4970
$size = 32; $pascal = array( array(1), ); for ($i = 1; $i <= $size; ++$i) { $prevCount = count($pascal[$i-1]); for ($j = 0; $j <= $prevCount; ++$j) { $pascal[$i][$j] = ( (isset($pascal[$i-1][$j-1]) ? $pascal[$i-1][$j-1] : 0) + (isset($pascal[$i-1][$j]) ? $pascal[$i-1][$j] :...
d4971
The simple answer: "Because that is the way Microsoft implemented it". The goal is to just respond to the event... whenever it happens... however often it occurs. We can't make any assumptions. There are cases where you might get called six times on the same event. We just have to roll with it and continue to be a...
d4972
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/> <a class="btn btn-primary" style="color: white" href="#">Previous</a> <a class="btn btn-primary" style="color: white" href="<...
d4973
You could try fetching the data from the database. Check out the doc here. Here is some sample code witch should help $db = JFactory::getDbo(); $query = $db->getQuery(true); $query->select('COUNT(*)'); $query->from($db->quoteName('#__tablename')); $query->where($db->quoteName('published') . ' = 1'); $row = $db->loadRow...
d4974
.parent:hover .child{ some props } A: try this: using the normal pseudo element in css :hover, adding the child element .child to add his style .parent:hover .child{ background-color:red; }
d4975
Its the subquery that is killing it - if you add a current field on the player_team table, where you give it value = 1 if it is current, and 0 if it is old you could simplify this alot by just doing: SELECT COUNT(*) AS total, pt.team_id, p.facebook_uid AS owner_uid, t.color FROM player_team pt ...
d4976
The problem is mismatch between json structure and object structure. The object you deserialize into must represent correctly the json. It's an object with a field drinks, which is an array of objects(drinks in your case). Correct java class would be: public class Wrapper { private List<Drink> drinks; //getters a...
d4977
Django has inbuilt messaging support for this type of flash messages. You can add a success message like this in the view: messages.success(request, 'Profile details updated.') In your template, you can render it as follows: {% if messages %} <ul class="messages"> {% for message in messages %} <li{% if message...
d4978
Your wire:model and wire:change are not on your select tag, but on the div below it. Move it to your select tag: <select wire:model="tag_id" wire:change="filter"> <option>Select an option</option> </select> <div class="overSelect"></div>
d4979
You should look into creating a Universal app which basically has shared code and libraries for the iPhone and iPad but different view layers (views or XIBs). In that model you have different interfaces for both which you should. The paradigms are different - in iPhone you have small real estate so you have navigators...
d4980
Solution import numpy as np import pandas as pd df = pd.DataFrame(np.random.randint(0,20,size=(20, 4)), columns=list('abcd')) df['op'] = (np.random.randint(0,20, size=20)) def lookback_window(row, values, lookback, method='mean', *args, **kwargs): loc = values.index.get_loc(row.n...
d4981
I've successfully used Adblock plus to remove elements from the view. The action column has a unique class (x-grid3-td-ACTION_COLUMN) so if you add the rule ##td.x-grid3-td-ACTION_COLUMN it should remove the column.
d4982
To answer and share how I resolved my question I found that when I created the connection I can still select sheets 2 to 6 in the dropdown from existing connections. So I tried this code .........and resolved the error :). Select [Sheet1$].* From [Sheet1$] UNION ALL Select [Sheet2$].* FROM [Shee2$] UNION ALL S...
d4983
Maybe You can try something like this <div class="single-welcome-slides bg-img bg-overlay jarallax" style="background-image: url({% static 'img/bg-img/1.jpg' %});" /> Happy Coding!
d4984
I would probably iterate of every found element and append it to a list. Something like this maybe (untested): date_list = [] date_raw = html.find_all('strong',string='Date:') for d in date_raw: date = str(d.p.nextSibling).strip() date_list.append(date) print date_list A: Rookie mistake...fixed it: for x i...
d4985
Based on this topic you can try <input name="first" ngModel [required]="isRequired">
d4986
A simple example if you don't want to use RotatingFileHandler. You should use os.stat('filename').st_size to check file sizes. import os import sys class RotatingFile(object): def __init__(self, directory='', filename='foo', max_files=sys.maxint, max_file_size=50000): self.ii = 1 self.direc...
d4987
You can configure what you want to happen when a mass assignment happens by setting Player.mass_assignment_sanitizer (or set it on ActiveRecord::Base for it to apply to all AR models) You can also set it in your configuration files via config.active_record.mass_assignment_sanitizer Our of the box you can set it to eith...
d4988
paper_numbers = tree.xpath('//div[@onclick]/div/@id') print(paper_numbers) would give you ['maincard_9202'] It selects the id attributes of all divs inside a div with the onclick attribute...
d4989
The issue is min <- which.min(hospital_data$outcome) and 'outcome' is passed as a string, but it is just literally using 'outcome' instead of the value passed in the function. It looks for the column 'outcome' in the data.frame and couldn't find it. df1 <- data.frame(col1 = 1:5) outcome <- 'col1' df1$outcome #NULL d...
d4990
Consider the below approach. I used timestamp functions to create the query. with sample_data as ( select date('2017-08-04') as date, time(10,00,00) as hour ) select format_timestamp( "%d-%b-%y %H%M%S", timestamp_trunc(timestamp(concat(date, ' ',hour),"UTC"),DAY,"America/New_York")) as out_format from sample_data...
d4991
Are you drawing a rectangle within your context? Try something like this: var canvas = document.getElementById('test-canvas'); var ctx = (canvas !== null ? canvas.getContext('2d') : null); var grd = (ctx !== null ? ctx.createLinearGradient(0.000, 150.000, 300.000, 150.000) : null); if (grd) { ctx.rect(0, 0, canva...
d4992
UIKit does not support that. The only possibilities are sheet to full screen and page sheet to form sheet on iPad. As specified in the documentation : In a horizontally compact environment, this option behaves the same as UIModalPresentationFullScreen. So UIKit already adapts it. Unfortunately you will have to implem...
d4993
Items in STL containers are expected to be copied around all the time; think about when a vector has to be reallocated, for example. So, your example is fine, except that it only works with random iterators. But I suspect the latter is probably by design. :-P A: Do you want your range to be usable in STL algorithms? W...
d4994
Older versions of Greasemonkey will ignore the @match directive, but will not break. For maximum compatibility, use the @include and @exclude directives to control where/when a script runs. Update: As of Greasemonkey 0.9.8, GM fully supports the @match directive.
d4995
I have got it working as mentioned It seems that the processing via ffmpeg needs to be done before model.save A: It's not implemented actually on Carrierwave. So you need code it yourself by some process action in your Upload Class.
d4996
Here is the RubyGems guide for how to add an executable. The primary steps are: * *Add your script to the gem's /bin directory *Your script must be executable in the filesystem chmod a+x bin/<yourfile> *Make sure your script starts with a proper shebang *Add the script to the .executables section of your gemspec...
d4997
Peter, I believe your problem has to do with the width of your logo under the class "navbar-brand". I had a similar issue, but fixed it by controlling the width of my logo under the Navbar-brand. According to bootstrap, "Adding images to the .navbar-brand will likely always require custom styles or utilities to properl...
d4998
I got the admin guy to copy SDK folder from his directory under C:\Users\adminguy\AppData to somewhere I can read. Now it works ok.
d4999
Thats what directives are designed for, point is to figure out best way to pass and evaluate those attributes of fields, in plnkr i made a possible solution. Here you have a starting point: PLNKR app.directive('cmsInput', function() { return { restrict: 'E', template: '<label ng-if=(exists(label))>{{labe...
d5000
As you mentioned combination of best and worst player. Your data is already sorted on descending index. Say, the data is in A,B and C Columns. Just put A in D2 and B in D3. Select D2 and D3 and once you get + cursor on the bottom right of the selection, double click. Filter A for group A and B for group B.