Lurker News

Comments (144) 66 threads

Earlier comments
bikamonki#
Buggy, all I did is add Dean middle name to third line

  In:
  3, Roberto Carlos, soccer, Brazil
  35, Michael Jordan, baseball, USA
  6, James Dean Lebron, basketball, USA
  10, Shinji Kagawa, soccer, Japan

  Ex: Carlos is number 3 playing soccer

  Out:
  Carlos is number 3 playing soccer
  Jordan is number 35 playing baseball
  Dean is number 6 playing Lebron (what??)
  Kagawa is number 10 playing soccer
I guess you can't really solve the ambiguity of Carlos meaning the second word on the second column versus the last word of the second column; but the commas should at least hint a tabular pattern, no?
kylered2 replies#
I hope you sell your IP to Microsoft Excel. This would be a major time saver feature for a lot of the Excel world.
kylered2 replies#
Not sarcastic... I didn't know about FlashFill. I looked at the videos, and it seems that it's not as powerful as this tool. In excel the results would be a custom cell format combined with custom text functions.
mazesc#
Not sure about the implementation in Excel. At least the paper (POPL 2011) describes more powerful functions, containing e.g. case distinctions and simple loops. There are some examples in there. I'm not an Excel expert, but would be surprised if cell format could do that.
sixothree1 reply#
I could have used this hundreds of time in Visual Studio.

We often process messages with hundreds of fields. So I will have a class from specs (usually excel) with a number of properties, then I need a method to populate each of those from some other object, then I need a method that does the reverse - populates some other object from the properties.
This happens over and over for us. Typically I just use a Notepad++ macro. But I could probably use this as it stands, just having it in visual studio would be really incredible.

MichaelGG#
Install a vim emulator inside of Visual Studio, then use macros.
CodeWriter23#
For this crowd, I think the 3rd slide with the JSON transformation should be the first slide.
j2kun1 reply#
For some reason it won't handle certain characters...

    Input:
    Feature: 37, threshold: 4386, +
    Feature: 11, threshold: 1, +
    Feature: 10, threshold: 13, +
    Feature: 0, threshold: 34, +
    Feature: 39, threshold: 44, +

    Example:
    x[37] >= 4386

    Output:
    x[37]  4386
    x[11]  1
    x[10]  13
    x[0]  34
    x[39]  44
kogrem#
Thanks for your feedback!

We'll fix this soon.

Load more comments