Hacker Newsnew | past | comments | ask | show | jobs | submit | ricny046's commentslogin

I love Lit! I have been using it to develop a in-app widget for product updates here: https://supanotice.com (the in app-widget opens up if you click on the bubble in the bottom right corner)

Really love the abstraction that makes web components easy to use.


Hi and thanks for your feedback :-)

The newspage (https://updates.supanotice.com) will work without JavaScript but the in-app widget that you see in the lower right corner on my page require JavaScript. However, it is completely framework agnostic and is based on web components. It will require that you add a script-tag in head and a tag in the body and you're good to go.

A FAQ for the landing page is on it's way and I will be working on improving the landing page with screenshots and examples so you can get a better feel for it.

I didn't know it worked without JS myself :-) I guess it's a side effect you get when rendering on the server using Elixir / Phoenix


* Your Role/Industry: I work as a software developer at a quite small european bank.

* Teamwork: We do not use Obsidian for teamwork but I would guess that we're around 10-20 people using Obsidian for note taking.

* Use cases: Primarily for note taking, meeting notes, presentations and technical documentation.

* Features: I use tasks, Excalidraw and the Iconize plugin. Also tinkering with the Canvas but does not use it for anything serious yet.

* Workflow: I just use the daily note feature to bring up a page where I write down tasks I need to finish that day. If I need to write something longer I will create a separate page for that and create a link in the daily note to that page.


Elixir, Java, JavaScript


Cool. Where can I download the json data for UFC fighters?


For legal purposes I don't think I can give out the data, but you can find/write applications that parse public information related to the UFC.

You may or may not beable to request JSON data via the UFC website. You may or may not beable to call the same API as fightmetric.com. You may or may not beable to save the data legally sent to your machine using a modified request.


This is awesome


;)


I'm wondering the same. Unfortunately, all I've been able to find is FightMetric which asks to contact them for a quote: http://www.fightmetric.com/data


This movie will be number one on IMDB!


Location: Sweden (but can work for a business from everywhere)

Remote: Yes please.

Willing to relocate: No

Technologies: Rails, Ruby, Javascript, ReactJS, AngularJS, Java, JRuby

Blog & open source: http://rny.io

Email: ricn [at] rny.io


I thought that too! :-)


The article covers only Rails 4.


Ah, bummer. Anyone have any luck getting partial indexes to work in Rails 3.2?


You can always execute arbitrary SQL in migrations. For instance:

    def up
      execute('ALTER TABLE people ADD INDEX ...')
    end
The one thing to keep in mind though is that if you use ruby schema format, your tests won't pick up those execute statements. In that case it's best to either use the sql format or re-run migrations in the test environment to set up the test db.


Upgrading from Rails 3.2 to Rails 4.0 takes very little time, assuming the gems you depend on are compatible (which they should be, by now, or you might want to look for replacement gems..)


You could just do it manually:

    execute %{
      create index index_users_on_name
      on users (name)
      where state = 'NY';
    }


It was a bad move not include protection against SQL injection to begin with. I was thinking about keeping it as simple as possible and just show a simplified example. But I think this was a bad thing to do so I have updated the example so it now uses postgres_escape.

And yes, this approach should only be used for very simple APIs. If you're building something bigger, use a framework.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: