Live data from Hacker News

Show HN: A tool that transforms your whole list with just one example

transformy.io

41–50 of 151 posts

Re: Show HN: A tool that transforms your whole list with just one example

#42
post #40

Earlier quoted context omitted.

We're having some problems because of the traffic (we didn't expect reaching the front page) it should be smoother in a little while.

Ah, so it does the calculations on the server? My bad, I assumed it was calculating everything real time on the client. What is the server written in?

Backend is ruby. Should work again now!

Re: Show HN: A tool that transforms your whole list with just one example

#43
One can achieve the same in sublime text using the multiple cursors and edit feature. This is great for non tech people.

For those of you who are wondering what sublime text can do, do give a visit to a sublime text video series on tutsplus, its awesome and teaches you the power of sublime text

Re: Show HN: A tool that transforms your whole list with just one example

#44
post #15

Amazing tool. Feature requests: allow for more than one example. Input: {"class": "101", "students": 101} {"class": "201", "students": 80} {"class": "202", "students": 50} {"class": "301", "students": 120} Example: Class 101 has 101 students Output: Class 101 has 101 students Class 201 has 201 students Class 202 has 202 students Class 301 has 301 students Right now the first line cannot have any ambiguity. This is fi…

For that use case you can use the Lapis[1][2] desktop app (the secret weapon I use for data munging), which allows you to choose several examples and edit a file with direct manipulation - or define patterns using a DSL.

[1]https://en.wikipedia.org/wiki/Lapis_(text_editor)

[2]http://groups.csail.mit.edu/uid/lapis/

Re: Show HN: A tool that transforms your whole list with just one example

#45
post #15

Amazing tool. Feature requests: allow for more than one example. Input: {"class": "101", "students": 101} {"class": "201", "students": 80} {"class": "202", "students": 50} {"class": "301", "students": 120} Example: Class 101 has 101 students Output: Class 101 has 101 students Class 201 has 201 students Class 202 has 202 students Class 301 has 301 students Right now the first line cannot have any ambiguity. This is fi…

Glad to hear you like it! Thanks for posting your use case as well, helps us out a lot!

Re: Show HN: A tool that transforms your whole list with just one example

#46

This! I wanted this feature to be in every text editor for years :)). Like http://nimbletext.com but show and tell instead of expressions :). Thanks!!!

This is what Vim macros are all about. You record the macro on a single item and repeat it on all the others.

Re: Show HN: A tool that transforms your whole list with just one example

#48
post #43

One can achieve the same in sublime text using the multiple cursors and edit feature. This is great for non tech people. For those of you who are wondering what sublime text can do, do give a visit to a sublime text video series on tutsplus, its awesome and teaches you the power of sublime text

One can also achieve it in emacs using the multiple-cursors package. https://github.com/magnars/multiple-cursors.el

But I wouldn't necessarily call emacs "great for non tech people".

(I suppose it's tiring for people to keep pointing out "yeah, emacs can do this too". Sorry.)

Re: Show HN: A tool that transforms your whole list with just one example

#49

I love the product. I have a small piece of feedback on the site. You could make it a tiny bit clearer that this is a free, registration free, service which people can start using with just one click. When I first visited the site, I looked it over, noticed the email box and the "get started" and just assumed it was a library I'd need to buy. It wasn't until I came back to the comments here that I realised the site w…

That was originally the plan but we showed it to some non technical people and they only understood the idea once we showed some examples.

But you are right that we should make it more clear that it's free. Thanks!

Re: Show HN: A tool that transforms your whole list with just one example

#50
This is a great idea! It didn't behave the way I expected with some URLs as input, though:

    http://example1.org/path/index.html
    http://www.example2.org/path/index.html
    http://www.example3.org/
    https://www.example4.org/a/b/c/d/e/f/g/hijklmnop
The pattern I gave was:

    example1.org, path/index.html
So I expected to get:

    example1.org, path/index.html
    www.example2.org, path/index.html
    www.example3.org, 
    www.example4.org, a/b/c/d/e/f/g/hijklmnop
Instead, I got:

    example1.org, path/index.html
    wwwexample.2, org/path.index
    wwwexample.3, org/.
    wwwexample.4, org/a.b
A few feature requests: allow downloading the output as a text file; show a pseudo-code formula of how transformy interpreted the transformation, like "s/.+:\/\/(.+?)\/(.*)/\1, \2/"; and add support for common arbitrary transformations like "November"↔"NOV"↔"11", or "2"↔"2nd".
Post reply on HN