CsvHelper: treat multiple consecutive tabs as one - tabs

I'd like to use CsvHelper to manage tab delimited file.
I'm running into the case where I find multiple consecutive tabs that must be treated as a single tab. By default CsvHelper treats every tab as a single delimiter.
It is possibile to configure it as I need? If yes, could you please tell me how?
Thanks

Related

Crystal Report needs to eliminate page number when generate CSV only

I want to eliminate page number value from the report only when tries to generate CSV file. But also we need that page number display when tries to generate pdf. Can anyone help me through this.
Crystal Report Verion:13.0.2000.0
One option you could use to achieve this would be to create a parameter fields that asks the user if they want page numbers on the report each time the report is run. You can also include text that helps indicate not having page numbers is recommended for CSV file exports of the report.
The parameter field should provide an option for the user to choose Yes or No. You can default the answer to one of the two values to help speed up parameter value selection at run-time.
Then you use this parameter to control the Suppress property of the page number fields.
If you need help with setting up the parameter or the formula for the Suppress property, let me know in a comment and I can update this answer with more detail.

remove rows contain duplicate strings (between these rows) and leaving only one in notepad++

Hitwriter_sampleI have a huge tab delimited BLASTn table report in notepad++. It contain duplicate records in the rows. I want to remove the whole rows contain these duplicate records except one. this will make going through this table much easier. how can I do this? TextFX blugin only sorts them, do I miss something in it? The regex presented removes all file contents.
TextFX is a plugin that comes with 32-bit versions of notepadd++. That plugin has an option to remove duplicates.
Else, you could use this regexp on Replace (Control+H) to remove duplicates. Remember to tick . matches new line. Replace by nothing
^([^\r\n]*)\r?\n(?=.*^\1(?:\r?\n|\z))
See: https://regex101.com/r/Imq3OZ/1/
UPDATE
I also add an option to filter rows based on a part of a specific column (third one on your case).
Try this: ^[^\t]*+\t[^\t]*+\t.{3}\|(NODE[^\t]*+)\t[^\n]*+\r?\n(?=[\s\S]*^[^\t]*\t[^\t]*\t.{3}\|\1\t)
Demo: https://regex101.com/r/xDLaS8/3/

Comparing fragments of a single file or parts of two distinct files

In JetBrains' IDEs (PhpStorm) -- is there any way to compare two fragments of a single file or parts of two distinct files?
Yes, and it should work for both cases. First select the first text that you want to compare and copy it. Then select the second text, right click and select "compare with clipboard"

Insert a separator into a dropdown list in SSRS

I have a report that pulls information on tools. I have a multi-value parameter setup in SSRS that pulls a tool name and GUID and then passes the GUIDs to a stored proc for results.
The tools have in addition to name and GUID a value of active. I want to display a list of tools with active items first, then inactive. Easy enough that's just an order, however I'd like to put a visual separator between active and inactive tools. I can achieve this by creating an order value based on active status, and then using union to attach a dummy line between them.
However this means its possible to select the separator line. I can handle that line in my stored procedure so it doesn't cause a problem, but I'd like to make that line unselectable or to have a separator similar to what you see in a dropdown menu.
Does anyone know of any functionality that will achieve this?
I main project is currently help in 2008R2, but I may be able to upgrade if there is a good solution to this.
Many thanks in advance.
OK - have found there seems to be no way of showing a separator as such short of coding in a separator line in the data set. Final solution was close to my original plan. I now download two datasets, one of all tools (Active, separator, inactive) and attach this to my available values, and one of active only, which I then attach to my default values.
This means that both are available, but default is active only. Not a solution to the exact question, but best that I could come up with and is close enough to fit for purpose.
If anyone does come across better solutions, I'd love to here them.

Searching through a CSV file to know the next macro action

So, I have my current bot (Yes, this bot is entirely legal. It's just a web scraper-esque bot) extracting data from a web page in a loop. But, at the beginning of the loop, I want it to be able to look through the previously-extracted data and compare it to the data on the page to choose what I want to do next. Is this possible?
For example:
Data is saved like this: name1,100,name2,200 Where names can be any string of letters, and the numbers can be any string of numbers.
To give you an idea on what the page looks like: It has two names, each with values under them, and buttons. The names and values change every minute or so.
First, we check the current names on the page. (There are two names on the page)
Next, we compare them to our database to see if they reside in it.
If they both do, we check the numbers after the name
If the first names number is higher than the seconds, we click the first names button
If the second names number is higher than the firsts, we click the second names button
Now we wait twenty seconds
Now, new values have appeared for both names. We find the mean of the new values presented to us and the old values, by adding them together and dividing by two.
What I really need help on is how to search through the CSV file for the names and then numbers after the names, and then how to save data to the same spot as the old data was from.
I know that this is easily possible in most programming languages (Java, C++, etc etc) but I wasn't sure if it would be possible in iMacros.
you can't save data in same csv as you use for search in imacros.
in regular imacros you do not have loop inside loop and IF statements as well, so you need to switch to javascript or similar.
extracting data from csv is simple: http://wiki.imacros.net/!COLn